From ec157abe0cb1f9c0ec79c022db8a5e6245f53df8 Mon Sep 17 00:00:00 2001 From: Jan Amann Date: Thu, 3 Dec 2020 11:42:06 +0100 Subject: [PATCH] fix: Get rid of deprecation notice (#63) * Add additional preview workflow * Regenerate node_modules * Bump non-breaking dependencies * Downgrade eslint * Bump `@actions/github` * Update call site --- .github/workflows/lint-pr-title-preview.yml | 19 + node_modules/.bin/semver | 2 +- node_modules/.yarn-integrity | 184 +- .../@actions/{github => core}/LICENSE.md | 2 + node_modules/@actions/core/README.md | 3 +- node_modules/@actions/core/lib/command.d.ts | 5 - node_modules/@actions/core/lib/command.js | 19 +- node_modules/@actions/core/lib/command.js.map | 2 +- node_modules/@actions/core/lib/core.js | 22 +- node_modules/@actions/core/lib/core.js.map | 2 +- .../@actions/core/lib/file-command.d.ts | 1 + .../@actions/core/lib/file-command.js | 29 + .../@actions/core/lib/file-command.js.map | 1 + node_modules/@actions/core/lib/utils.d.ts | 5 + node_modules/@actions/core/lib/utils.js | 19 + node_modules/@actions/core/lib/utils.js.map | 1 + node_modules/@actions/core/package.json | 9 +- node_modules/@actions/github/README.md | 77 +- node_modules/@actions/github/lib/context.d.ts | 7 +- node_modules/@actions/github/lib/context.js | 9 +- .../@actions/github/lib/context.js.map | 2 +- node_modules/@actions/github/lib/github.d.ts | 15 +- node_modules/@actions/github/lib/github.js | 43 +- .../@actions/github/lib/github.js.map | 2 +- .../@actions/github/lib/interfaces.d.ts | 4 + .../@actions/github/lib/internal/utils.d.ts | 6 + .../@actions/github/lib/internal/utils.js | 43 + .../@actions/github/lib/internal/utils.js.map | 1 + node_modules/@actions/github/lib/utils.d.ts | 21 + node_modules/@actions/github/lib/utils.js | 54 + node_modules/@actions/github/lib/utils.js.map | 1 + node_modules/@actions/github/package.json | 24 +- node_modules/@actions/http-client/LICENSE | 21 + node_modules/@actions/http-client/README.md | 79 + node_modules/@actions/http-client/RELEASES.md | 22 + node_modules/@actions/http-client/actions.png | Bin 0 -> 33889 bytes node_modules/@actions/http-client/auth.d.ts | 23 + node_modules/@actions/http-client/auth.js | 58 + node_modules/@actions/http-client/index.d.ts | 124 + node_modules/@actions/http-client/index.js | 535 + .../@actions/http-client/interfaces.d.ts | 49 + .../@actions/http-client/interfaces.js | 2 + .../@actions/http-client/package.json | 39 + node_modules/@actions/http-client/proxy.d.ts | 2 + node_modules/@actions/http-client/proxy.js | 57 + .../core/node_modules/p-each-series/index.js | 4 + .../core/node_modules/p-each-series}/license | 0 .../node_modules/p-each-series/package.json | 51 + .../core/node_modules/p-each-series/readme.md | 65 + .../core}/node_modules/p-reduce/index.js | 0 .../@jest/core/node_modules/p-reduce/license | 21 + .../core}/node_modules/p-reduce/package.json | 0 .../core}/node_modules/p-reduce/readme.md | 0 node_modules/@octokit/auth-token/README.md | 5 +- .../node_modules/@octokit/types/LICENSE | 0 .../node_modules/@octokit/types/README.md | 0 .../@octokit/types/dist-node/index.js | 2 +- .../@octokit/types/dist-node/index.js.map | 0 .../@octokit/types/dist-src/AuthInterface.js | 0 .../types/dist-src/EndpointDefaults.js | 0 .../types/dist-src/EndpointInterface.js | 0 .../types/dist-src/EndpointOptions.js | 0 .../@octokit/types/dist-src/Fetch.js | 0 .../GetResponseTypeFromEndpointMethod.js | 0 .../types/dist-src/OctokitResponse.js | 0 .../@octokit/types/dist-src/RequestError.js | 0 .../@octokit/types/dist-src/RequestHeaders.js | 0 .../types/dist-src/RequestInterface.js | 0 .../@octokit/types/dist-src/RequestMethod.js | 0 .../@octokit/types/dist-src/RequestOptions.js | 0 .../types/dist-src/RequestParameters.js | 0 .../types/dist-src/RequestRequestOptions.js | 0 .../types/dist-src/ResponseHeaders.js | 0 .../@octokit/types/dist-src/Route.js | 0 .../@octokit/types/dist-src/Signal.js | 0 .../types/dist-src/StrategyInterface.js | 0 .../@octokit/types/dist-src/Url.js | 0 .../@octokit/types/dist-src/VERSION.js | 1 + .../types/dist-src/generated/Endpoints.js | 0 .../@octokit/types/dist-src/index.js | 0 .../types/dist-types/AuthInterface.d.ts | 0 .../types/dist-types/EndpointDefaults.d.ts | 0 .../types/dist-types/EndpointInterface.d.ts | 0 .../types/dist-types/EndpointOptions.d.ts | 0 .../@octokit/types/dist-types/Fetch.d.ts | 0 .../GetResponseTypeFromEndpointMethod.d.ts | 0 .../types/dist-types/OctokitResponse.d.ts | 17 + .../types/dist-types/RequestError.d.ts | 0 .../types/dist-types/RequestHeaders.d.ts | 0 .../types/dist-types/RequestInterface.d.ts | 0 .../types/dist-types/RequestMethod.d.ts | 0 .../types/dist-types/RequestOptions.d.ts | 0 .../types/dist-types/RequestParameters.d.ts | 0 .../dist-types/RequestRequestOptions.d.ts | 0 .../types/dist-types/ResponseHeaders.d.ts | 0 .../@octokit/types/dist-types/Route.d.ts | 0 .../@octokit/types/dist-types/Signal.d.ts | 0 .../types/dist-types/StrategyInterface.d.ts | 0 .../@octokit/types/dist-types/Url.d.ts | 0 .../@octokit/types/dist-types/VERSION.d.ts | 1 + .../types/dist-types/generated/Endpoints.d.ts | 2972 + .../@octokit/types/dist-types/index.d.ts | 0 .../@octokit/types/dist-web/index.js | 2 +- .../@octokit/types/dist-web/index.js.map | 0 .../node_modules/@octokit/types/package.json | 51 + node_modules/@octokit/auth-token/package.json | 6 +- node_modules/@octokit/core/README.md | 50 +- node_modules/@octokit/core/dist-node/index.js | 95 +- .../@octokit/core/dist-node/index.js.map | 2 +- node_modules/@octokit/core/dist-src/index.js | 39 +- node_modules/@octokit/core/dist-src/types.js | 1 + .../@octokit/core/dist-src/version.js | 2 +- .../@octokit/core/dist-types/index.d.ts | 6 +- .../@octokit/core/dist-types/types.d.ts | 9 + .../@octokit/core/dist-types/version.d.ts | 2 +- node_modules/@octokit/core/dist-web/index.js | 41 +- .../@octokit/core/dist-web/index.js.map | 2 +- .../node_modules/@octokit/auth-token}/LICENSE | 0 .../@octokit/auth-token/README.md | 271 + .../@octokit/auth-token/dist-node/index.js | 49 + .../auth-token/dist-node/index.js.map | 1 + .../@octokit/auth-token/dist-src/auth.js | 12 + .../@octokit/auth-token/dist-src/hook.js | 6 + .../@octokit/auth-token/dist-src/index.js | 14 + .../@octokit/auth-token}/dist-src/types.js | 0 .../dist-src/with-authorization-prefix.js | 11 + .../@octokit/auth-token/dist-types/auth.d.ts | 2 + .../@octokit/auth-token/dist-types/hook.d.ts | 2 + .../@octokit/auth-token/dist-types/index.d.ts | 7 + .../@octokit/auth-token/dist-types/types.d.ts | 25 + .../dist-types/with-authorization-prefix.d.ts | 6 + .../@octokit/auth-token/dist-web/index.js | 46 + .../@octokit/auth-token/dist-web/index.js.map | 1 + .../@octokit/auth-token/package.json | 48 + .../node_modules/@octokit/graphql/README.md | 4 +- .../@octokit/graphql/dist-node/index.js | 2 +- .../@octokit/graphql/dist-node/index.js.map | 2 +- .../@octokit/graphql/dist-src/version.js | 2 +- .../@octokit/graphql/dist-types/version.d.ts | 2 +- .../@octokit/graphql/dist-web/index.js | 2 +- .../@octokit/graphql/dist-web/index.js.map | 2 +- .../node_modules/@octokit/request}/LICENSE | 3 +- .../node_modules/@octokit/request/README.md | 538 + .../@octokit/request/dist-node/index.js | 148 + .../@octokit/request/dist-node/index.js.map | 1 + .../request/dist-src/fetch-wrapper.js | 93 + .../request/dist-src/get-buffer-response.js | 3 + .../@octokit/request/dist-src/index.js | 9 + .../@octokit/request/dist-src/version.js | 1 + .../request/dist-src/with-defaults.js | 22 + .../request/dist-types/fetch-wrapper.d.ts | 11 + .../dist-types/get-buffer-response.d.ts | 2 + .../@octokit/request/dist-types/index.d.ts | 1 + .../@octokit/request/dist-types/version.d.ts | 1 + .../request/dist-types/with-defaults.d.ts | 2 + .../@octokit/request/dist-web/index.js | 132 + .../@octokit/request/dist-web/index.js.map | 1 + .../node_modules/@octokit/types}/LICENSE | 0 .../node_modules/@octokit/types/README.md | 3 +- .../@octokit/types/dist-node/index.js | 8 + .../@octokit/types/dist-node/index.js.map | 0 .../@octokit/types/dist-src/AuthInterface.js | 0 .../types/dist-src/EndpointDefaults.js | 0 .../types/dist-src/EndpointInterface.js | 0 .../types/dist-src/EndpointOptions.js | 0 .../@octokit/types/dist-src/Fetch.js | 0 .../GetResponseTypeFromEndpointMethod.js | 0 .../types/dist-src/OctokitResponse.js | 0 .../@octokit/types/dist-src/RequestError.js} | 0 .../@octokit/types/dist-src/RequestHeaders.js | 0 .../types/dist-src/RequestInterface.js | 0 .../@octokit/types/dist-src/RequestMethod.js | 0 .../@octokit/types/dist-src/RequestOptions.js | 0 .../types/dist-src/RequestParameters.js | 0 .../types/dist-src/RequestRequestOptions.js | 0 .../types/dist-src/ResponseHeaders.js | 0 .../@octokit/types/dist-src/Route.js | 0 .../@octokit/types/dist-src/Signal.js | 0 .../types/dist-src/StrategyInterface.js | 0 .../@octokit/types/dist-src/Url.js | 0 .../@octokit/types/dist-src/VERSION.js | 1 + .../types/dist-src/generated/Endpoints.js | 0 .../@octokit/types/dist-src/index.js | 21 + .../types/dist-types/AuthInterface.d.ts | 0 .../types/dist-types/EndpointDefaults.d.ts | 0 .../types/dist-types/EndpointInterface.d.ts | 0 .../types/dist-types/EndpointOptions.d.ts | 0 .../@octokit/types/dist-types/Fetch.d.ts | 0 .../GetResponseTypeFromEndpointMethod.d.ts | 0 .../types/dist-types/OctokitResponse.d.ts | 0 .../types/dist-types/RequestError.d.ts | 11 + .../types/dist-types/RequestHeaders.d.ts | 0 .../types/dist-types/RequestInterface.d.ts | 0 .../types/dist-types/RequestMethod.d.ts | 0 .../types/dist-types/RequestOptions.d.ts | 0 .../types/dist-types/RequestParameters.d.ts | 0 .../dist-types/RequestRequestOptions.d.ts | 0 .../types/dist-types/ResponseHeaders.d.ts | 0 .../@octokit/types/dist-types/Route.d.ts | 0 .../@octokit/types/dist-types/Signal.d.ts | 0 .../types/dist-types/StrategyInterface.d.ts | 0 .../@octokit/types/dist-types/Url.d.ts | 0 .../@octokit/types/dist-types/VERSION.d.ts | 1 + .../types/dist-types/generated/Endpoints.d.ts | 39437 +++++++++ .../@octokit/types/dist-types/index.d.ts | 1 + .../@octokit/types/dist-web/index.js | 4 + .../@octokit/types/dist-web/index.js.map | 0 .../node_modules/@octokit/types/package.json | 4 +- .../@octokit/request/package.json | 64 + .../@octokit/graphql/package.json | 4 +- .../node_modules/@octokit/request/README.md | 35 +- .../@octokit/request/dist-node/index.js | 2 +- .../@octokit/request/dist-node/index.js.map | 2 +- .../@octokit/request/dist-src/version.js | 2 +- .../@octokit/request/dist-types/version.d.ts | 2 +- .../@octokit/request/dist-web/index.js | 2 +- .../@octokit/request/dist-web/index.js.map | 2 +- .../@octokit/request/package.json | 4 +- .../core}/node_modules/@octokit/types/LICENSE | 0 .../node_modules/@octokit/types/README.md | 64 + .../@octokit/types/dist-node/index.js | 8 + .../@octokit/types/dist-node/index.js.map | 0 .../@octokit/types/dist-src/AuthInterface.js} | 0 .../types/dist-src/EndpointDefaults.js} | 0 .../types/dist-src/EndpointInterface.js | 1 + .../types/dist-src/EndpointOptions.js | 1 + .../@octokit/types/dist-src/Fetch.js | 1 + .../GetResponseTypeFromEndpointMethod.js | 1 + .../types/dist-src/OctokitResponse.js | 1 + .../@octokit/types/dist-src/RequestError.js | 1 + .../@octokit/types/dist-src/RequestHeaders.js | 1 + .../types/dist-src/RequestInterface.js | 1 + .../@octokit/types/dist-src/RequestMethod.js | 1 + .../@octokit/types/dist-src/RequestOptions.js | 1 + .../types/dist-src/RequestParameters.js | 1 + .../types/dist-src/RequestRequestOptions.js | 1 + .../types/dist-src/ResponseHeaders.js | 1 + .../@octokit/types/dist-src/Route.js | 1 + .../@octokit/types/dist-src/Signal.js | 1 + .../types/dist-src/StrategyInterface.js | 1 + .../@octokit/types/dist-src/Url.js | 1 + .../@octokit/types/dist-src/VERSION.js | 1 + .../types/dist-src/generated/Endpoints.js | 1 + .../@octokit/types/dist-src/index.js | 21 + .../types/dist-types/AuthInterface.d.ts | 0 .../types/dist-types/EndpointDefaults.d.ts | 0 .../types/dist-types/EndpointInterface.d.ts | 0 .../types/dist-types/EndpointOptions.d.ts | 0 .../@octokit/types/dist-types/Fetch.d.ts | 0 .../GetResponseTypeFromEndpointMethod.d.ts | 0 .../types/dist-types/OctokitResponse.d.ts | 17 + .../types/dist-types/RequestError.d.ts | 11 + .../types/dist-types/RequestHeaders.d.ts | 0 .../types/dist-types/RequestInterface.d.ts | 0 .../types/dist-types/RequestMethod.d.ts | 0 .../types/dist-types/RequestOptions.d.ts | 0 .../types/dist-types/RequestParameters.d.ts | 0 .../dist-types/RequestRequestOptions.d.ts | 0 .../types/dist-types/ResponseHeaders.d.ts | 0 .../@octokit/types/dist-types/Route.d.ts | 0 .../@octokit/types/dist-types/Signal.d.ts | 0 .../types/dist-types/StrategyInterface.d.ts | 0 .../@octokit/types/dist-types/Url.d.ts | 0 .../@octokit/types/dist-types/VERSION.d.ts | 1 + .../types/dist-types/generated/Endpoints.d.ts | 2972 + .../@octokit/types/dist-types/index.d.ts | 21 + .../@octokit/types/dist-web/index.js | 4 + .../@octokit/types/dist-web/index.js.map | 0 .../node_modules/@octokit/types/package.json | 51 + .../core/node_modules/node-fetch/CHANGELOG.md | 272 - .../core/node_modules/node-fetch/README.md | 590 - .../core/node_modules/node-fetch/browser.js | 25 - .../node_modules/node-fetch/lib/index.es.js | 1640 - .../core/node_modules/node-fetch/lib/index.js | 1649 - .../node_modules/node-fetch/lib/index.mjs | 1638 - .../core/node_modules/node-fetch/package.json | 66 - node_modules/@octokit/core/package.json | 18 +- node_modules/@octokit/graphql/README.md | 378 +- .../@octokit/graphql/dist-node/index.js | 108 + .../@octokit/graphql/dist-node/index.js.map | 1 + .../@octokit/graphql/dist-src/error.js | 15 + .../@octokit/graphql/dist-src/graphql.js | 47 + .../@octokit/graphql/dist-src/index.js | 17 + .../graphql}/dist-src/types.js | 0 .../@octokit/graphql/dist-src/version.js | 1 + .../graphql/dist-src/with-defaults.js | 12 + .../@octokit/graphql/dist-types/error.d.ts | 9 + .../@octokit/graphql/dist-types/graphql.d.ts | 3 + .../@octokit/graphql/dist-types/index.d.ts | 3 + .../@octokit/graphql/dist-types/types.d.ts | 50 + .../@octokit/graphql/dist-types/version.d.ts | 1 + .../graphql/dist-types/with-defaults.d.ts | 3 + .../@octokit/graphql/dist-web/index.js | 95 + .../@octokit/graphql/dist-web/index.js.map | 1 + node_modules/@octokit/graphql/index.js | 15 - node_modules/@octokit/graphql/lib/error.js | 16 - node_modules/@octokit/graphql/lib/graphql.js | 36 - .../@octokit/graphql/lib/with-defaults.js | 13 - .../node_modules/@octokit/request}/LICENSE | 12 +- .../node_modules/@octokit/request/README.md | 538 + .../@octokit/request/dist-node/index.js | 148 + .../@octokit/request/dist-node/index.js.map | 1 + .../request/dist-src/fetch-wrapper.js | 93 + .../request/dist-src/get-buffer-response.js | 3 + .../@octokit/request/dist-src/index.js | 9 + .../@octokit/request/dist-src/version.js | 1 + .../request/dist-src/with-defaults.js | 22 + .../request/dist-types/fetch-wrapper.d.ts | 11 + .../dist-types/get-buffer-response.d.ts | 2 + .../@octokit/request/dist-types/index.d.ts | 1 + .../@octokit/request/dist-types/version.d.ts | 1 + .../request/dist-types/with-defaults.d.ts | 2 + .../@octokit/request/dist-web/index.js | 132 + .../@octokit/request/dist-web/index.js.map | 1 + .../universal-user-agent/LICENSE.md | 0 .../universal-user-agent/README.md | 0 .../universal-user-agent/dist-node/index.js | 0 .../dist-node/index.js.map | 0 .../universal-user-agent/dist-src/index.js | 0 .../dist-types/index.d.ts | 0 .../universal-user-agent/dist-web/index.js | 0 .../dist-web/index.js.map | 0 .../universal-user-agent/package.json | 0 .../@octokit/request/package.json | 64 + .../node_modules/@octokit/types}/LICENSE | 0 .../node_modules/@octokit/types/README.md | 64 + .../@octokit/types/dist-node/index.js | 8 + .../@octokit/types/dist-node/index.js.map | 1 + .../@octokit/types/dist-src/AuthInterface.js | 1 + .../types/dist-src/EndpointDefaults.js | 1 + .../types/dist-src/EndpointInterface.js | 1 + .../types/dist-src/EndpointOptions.js | 1 + .../@octokit/types/dist-src/Fetch.js | 1 + .../GetResponseTypeFromEndpointMethod.js | 1 + .../types/dist-src/OctokitResponse.js | 1 + .../@octokit/types/dist-src/RequestError.js | 1 + .../@octokit/types/dist-src/RequestHeaders.js | 1 + .../types/dist-src/RequestInterface.js | 1 + .../@octokit/types/dist-src/RequestMethod.js | 1 + .../@octokit/types/dist-src/RequestOptions.js | 1 + .../types/dist-src/RequestParameters.js | 1 + .../types/dist-src/RequestRequestOptions.js | 1 + .../types/dist-src/ResponseHeaders.js | 1 + .../@octokit/types/dist-src/Route.js | 1 + .../@octokit/types/dist-src/Signal.js | 1 + .../types/dist-src/StrategyInterface.js | 1 + .../@octokit/types/dist-src/Url.js | 1 + .../@octokit/types/dist-src/VERSION.js | 1 + .../types/dist-src/generated/Endpoints.js | 1 + .../@octokit/types/dist-src/index.js | 21 + .../types/dist-types/AuthInterface.d.ts | 31 + .../types/dist-types/EndpointDefaults.d.ts | 21 + .../types/dist-types/EndpointInterface.d.ts | 65 + .../types/dist-types/EndpointOptions.d.ts | 7 + .../@octokit/types/dist-types/Fetch.d.ts | 4 + .../GetResponseTypeFromEndpointMethod.d.ts | 5 + .../types/dist-types/OctokitResponse.d.ts | 17 + .../types/dist-types/RequestError.d.ts | 11 + .../types/dist-types/RequestHeaders.d.ts | 15 + .../types/dist-types/RequestInterface.d.ts | 34 + .../types/dist-types/RequestMethod.d.ts | 4 + .../types/dist-types/RequestOptions.d.ts | 14 + .../types/dist-types/RequestParameters.d.ts | 45 + .../dist-types/RequestRequestOptions.d.ts | 26 + .../types/dist-types/ResponseHeaders.d.ts | 20 + .../@octokit/types/dist-types/Route.d.ts | 4 + .../@octokit/types/dist-types/Signal.d.ts | 6 + .../types/dist-types/StrategyInterface.d.ts | 4 + .../@octokit/types/dist-types/Url.d.ts | 4 + .../@octokit/types/dist-types/VERSION.d.ts | 1 + .../types/dist-types/generated/Endpoints.d.ts | 2972 + .../@octokit/types/dist-types/index.d.ts | 21 + .../@octokit/types/dist-web/index.js | 4 + .../@octokit/types/dist-web/index.js.map | 1 + .../node_modules/@octokit/types/package.json | 51 + .../universal-user-agent/.travis.yml | 38 - .../universal-user-agent/LICENSE.md | 7 - .../universal-user-agent/README.md | 25 - .../universal-user-agent/browser.js | 6 - .../universal-user-agent/cypress.json | 4 - .../universal-user-agent/index.d.ts | 1 - .../universal-user-agent/index.js | 15 - .../universal-user-agent/package.json | 47 - .../universal-user-agent/test/smoke-test.js | 57 - node_modules/@octokit/graphql/package.json | 108 +- .../openapi-types/.github/dependabot.yml | 18 + .../workflows/release-notification.yml | 14 + .../.github/workflows/release.yml | 21 + .../.github/workflows/update.yml | 82 + .../@octokit/openapi-types/CODE_OF_CONDUCT.md | 74 + node_modules/@octokit/openapi-types/LICENSE | 7 + node_modules/@octokit/openapi-types/README.md | 9 + .../openapi-types/cache/openapi-schema.json | 65825 ++++++++++++++++ .../@octokit/openapi-types/generated/types.ts | 27768 +++++++ .../@octokit/openapi-types/package.json | 27 + .../openapi-types/scripts/download.js | 35 + .../openapi-types/scripts/update-package.js | 15 + .../@octokit/plugin-paginate-rest/README.md | 103 +- .../plugin-paginate-rest/dist-node/index.js | 72 +- .../dist-node/index.js.map | 2 +- .../dist-src/compose-paginate.js | 5 + .../generated/paginating-endpoints.js | 1 + .../plugin-paginate-rest/dist-src/index.js | 5 +- .../plugin-paginate-rest/dist-src/iterator.js | 33 +- .../normalize-paginated-list-response.js | 39 +- .../plugin-paginate-rest/dist-src/paginate.js | 2 +- .../plugin-paginate-rest/dist-src/types.js | 1 + .../plugin-paginate-rest/dist-src/version.js | 2 +- .../dist-types/compose-paginate.d.ts | 2 + .../generated/paginating-endpoints.d.ts | 1380 + .../dist-types/index.d.ts | 3 +- .../dist-types/iterator.d.ts | 10 +- .../normalize-paginated-list-response.d.ts | 19 +- .../dist-types/paginate.d.ts | 4 +- .../dist-types/types.d.ts | 222 +- .../dist-types/version.d.ts | 2 +- .../plugin-paginate-rest/dist-web/index.js | 86 +- .../dist-web/index.js.map | 2 +- .../node_modules/@octokit/types/README.md | 3 +- .../@octokit/types/dist-node/index.js | 2 +- .../@octokit/types/dist-src/AuthInterface.js | 1 + .../types/dist-src/EndpointDefaults.js | 1 + .../types/dist-src/EndpointInterface.js | 1 + .../types/dist-src/EndpointOptions.js | 1 + .../@octokit/types/dist-src/Fetch.js | 1 + .../GetResponseTypeFromEndpointMethod.js | 1 + .../types/dist-src/OctokitResponse.js | 1 + .../@octokit/types/dist-src/RequestError.js | 1 + .../@octokit/types/dist-src/RequestHeaders.js | 1 + .../types/dist-src/RequestInterface.js | 1 + .../@octokit/types/dist-src/RequestMethod.js | 1 + .../@octokit/types/dist-src/RequestOptions.js | 1 + .../types/dist-src/RequestParameters.js | 1 + .../types/dist-src/RequestRequestOptions.js | 1 + .../types/dist-src/ResponseHeaders.js | 1 + .../@octokit/types/dist-src/Route.js | 1 + .../@octokit/types/dist-src/Signal.js | 1 + .../types/dist-src/StrategyInterface.js | 1 + .../@octokit/types/dist-src/Url.js | 1 + .../@octokit/types/dist-src/VERSION.js | 2 +- .../types/dist-src/generated/Endpoints.js | 1 + .../@octokit/types/dist-src/index.js | 20 + .../types/dist-types/OctokitResponse.d.ts | 4 +- .../types/dist-types/RequestError.d.ts | 11 + .../@octokit/types/dist-types/VERSION.d.ts | 2 +- .../types/dist-types/generated/Endpoints.d.ts | 41562 +--------- .../@octokit/types/dist-types/index.d.ts | 1 + .../@octokit/types/dist-web/index.js | 2 +- .../node_modules/@octokit/types/package.json | 10 +- .../plugin-paginate-rest/package.json | 31 +- .../@octokit/plugin-request-log/README.md | 11 +- .../plugin-request-log/dist-node/index.js | 2 +- .../plugin-request-log/dist-node/index.js.map | 2 +- .../plugin-request-log/dist-src/index.js | 7 +- .../plugin-request-log/dist-src/version.js | 2 +- .../plugin-request-log/dist-types/index.d.ts | 2 +- .../dist-types/version.d.ts | 2 +- .../plugin-request-log/dist-web/index.js | 9 +- .../plugin-request-log/dist-web/index.js.map | 2 +- .../@octokit/plugin-request-log/package.json | 27 +- .../plugin-rest-endpoint-methods/README.md | 2671 +- .../dist-node/index.js | 14172 +--- .../dist-node/index.js.map | 2 +- .../dist-src/endpoints-to-methods.js | 60 + .../dist-src/generated/endpoints.js | 7804 +- .../dist-src/generated/method-types.js | 1 + .../parameters-and-response-types.js | 1 + .../dist-src/index.js | 27 +- .../dist-src/register-endpoints.js | 60 - .../dist-src/types.js | 1 + .../dist-src/version.js | 2 +- .../dist-types/endpoints-to-methods.d.ts | 0 .../dist-types/generated/endpoints.d.ts | 13088 +-- .../dist-types/generated/method-types.d.ts | 7146 ++ .../parameters-and-response-types.d.ts | 2441 + .../rest-endpoint-methods-types.d.ts | 38224 --------- .../dist-types/index.d.ts | 1 + .../dist-types/register-endpoints.d.ts | 1 - .../dist-types/types.d.ts | 20 +- .../dist-types/version.d.ts | 2 +- .../dist-web/index.js | 7936 +- .../dist-web/index.js.map | 2 +- .../node_modules/@octokit/types/README.md | 3 +- .../@octokit/types/dist-node/index.js | 2 +- .../@octokit/types/dist-src/AuthInterface.js | 1 + .../types/dist-src/EndpointDefaults.js | 1 + .../types/dist-src/EndpointInterface.js | 1 + .../types/dist-src/EndpointOptions.js | 1 + .../@octokit/types/dist-src/Fetch.js | 1 + .../GetResponseTypeFromEndpointMethod.js | 1 + .../types/dist-src/OctokitResponse.js | 1 + .../@octokit/types/dist-src/RequestError.js | 1 + .../@octokit/types/dist-src/RequestHeaders.js | 1 + .../types/dist-src/RequestInterface.js | 1 + .../@octokit/types/dist-src/RequestMethod.js | 1 + .../@octokit/types/dist-src/RequestOptions.js | 1 + .../types/dist-src/RequestParameters.js | 1 + .../types/dist-src/RequestRequestOptions.js | 1 + .../types/dist-src/ResponseHeaders.js | 1 + .../@octokit/types/dist-src/Route.js | 1 + .../@octokit/types/dist-src/Signal.js | 1 + .../types/dist-src/StrategyInterface.js | 1 + .../@octokit/types/dist-src/Url.js | 1 + .../@octokit/types/dist-src/VERSION.js | 2 +- .../types/dist-src/generated/Endpoints.js | 1 + .../@octokit/types/dist-src/index.js | 20 + .../types/dist-types/OctokitResponse.d.ts | 4 +- .../types/dist-types/RequestError.d.ts | 11 + .../@octokit/types/dist-types/VERSION.d.ts | 2 +- .../types/dist-types/generated/Endpoints.d.ts | 41562 +--------- .../@octokit/types/dist-types/index.d.ts | 1 + .../@octokit/types/dist-web/index.js | 2 +- .../node_modules/@octokit/types/package.json | 10 +- .../plugin-rest-endpoint-methods/package.json | 29 +- .../@octokit/request/dist-node/index.js | 6 +- .../@octokit/request/dist-node/index.js.map | 2 +- .../request/dist-src/fetch-wrapper.js | 2 +- .../@octokit/request/dist-src/version.js | 2 +- .../@octokit/request/dist-types/version.d.ts | 2 +- .../@octokit/request/dist-web/index.js | 4 +- .../@octokit/request/dist-web/index.js.map | 2 +- .../node_modules/is-plain-object/README.md | 8 +- .../{index.cjs.js => dist/is-plain-object.js} | 4 +- .../{index.es.js => dist/is-plain-object.mjs} | 2 +- .../node_modules/is-plain-object/index.d.ts | 3 - .../is-plain-object/is-plain-object.d.ts | 1 + .../node_modules/is-plain-object/package.json | 20 +- node_modules/@octokit/request/package.json | 8 +- node_modules/@octokit/rest/README.md | 41 +- node_modules/@octokit/rest/dist-node/index.js | 17 + .../@octokit/rest/dist-node/index.js.map | 1 + .../@octokit/rest/dist-src/index.js | 0 .../@octokit/rest/dist-src/version.js | 1 + .../@octokit/rest/dist-types/index.d.ts | 0 .../@octokit/rest/dist-types/version.d.ts | 1 + node_modules/@octokit/rest/dist-web/index.js | 13 + .../@octokit/rest/dist-web/index.js.map | 1 + node_modules/@octokit/rest/index.d.ts | 42072 ---------- node_modules/@octokit/rest/index.js | 43 - node_modules/@octokit/rest/lib/constructor.js | 29 - node_modules/@octokit/rest/lib/core.js | 3 - node_modules/@octokit/rest/lib/factory.js | 10 - .../@octokit/rest/lib/parse-client-options.js | 89 - .../@octokit/rest/lib/register-plugin.js | 9 - .../@octokit/request-error/README.md | 68 - .../@octokit/request-error/dist-node/index.js | 55 - .../request-error/dist-node/index.js.map | 1 - .../@octokit/request-error/dist-src/index.js | 40 - .../request-error/dist-types/index.d.ts | 27 - .../request-error/dist-types/types.d.ts | 5 - .../@octokit/request-error/dist-web/index.js | 44 - .../request-error/dist-web/index.js.map | 1 - .../@octokit/request-error/package.json | 54 - .../@octokit/types/dist-src/VERSION.js | 1 - .../@octokit/types/dist-src/index.js | 1 - .../@octokit/types/dist-types/VERSION.d.ts | 1 - .../types/dist-types/generated/Endpoints.d.ts | 41416 ---------- .../universal-user-agent/LICENSE.md | 7 - .../universal-user-agent/README.md | 25 - .../universal-user-agent/dist-node/index.js | 22 - .../dist-node/index.js.map | 1 - .../universal-user-agent/dist-src/browser.js | 8 - .../universal-user-agent/dist-src/index.js | 1 - .../universal-user-agent/dist-src/node.js | 12 - .../dist-types/browser.d.ts | 1 - .../dist-types/index.d.ts | 1 - .../universal-user-agent/dist-types/node.d.ts | 1 - .../universal-user-agent/dist-web/index.js | 11 - .../dist-web/index.js.map | 1 - .../universal-user-agent/package.json | 33 - node_modules/@octokit/rest/package.json | 138 +- .../authentication-deprecated/authenticate.js | 52 - .../before-request.js | 43 - .../authentication-deprecated/index.js | 31 - .../request-error.js | 55 - .../plugins/authentication/before-request.js | 53 - .../rest/plugins/authentication/index.js | 76 - .../plugins/authentication/request-error.js | 61 - .../rest/plugins/authentication/validate.js | 21 - .../with-authorization-prefix.js | 23 - .../@octokit/rest/plugins/pagination/index.js | 7 - .../@octokit/rest/plugins/validate/index.js | 7 - .../rest/plugins/validate/validate.js | 151 - .../@semantic-release/changelog/README.md | 4 +- .../@semantic-release/changelog/package.json | 28 +- .../commit-analyzer/README.md | 11 +- .../commit-analyzer/lib/analyze-commit.js | 5 +- .../.bin/conventional-commits-parser | 2 +- .../node_modules/braces/CHANGELOG.md | 184 + .../node_modules/braces/LICENSE | 21 + .../node_modules/braces/README.md | 593 + .../node_modules/braces/index.js | 170 + .../node_modules/braces/lib/compile.js | 57 + .../node_modules/braces/lib/constants.js | 57 + .../node_modules/braces/lib/expand.js | 113 + .../node_modules/braces/lib/parse.js | 333 + .../node_modules/braces/lib/stringify.js | 32 + .../node_modules/braces/lib/utils.js | 112 + .../node_modules/braces/package.json | 77 + .../conventional-commits-parser/CHANGELOG.md | 418 + .../conventional-commits-parser}/LICENSE.md | 21 +- .../conventional-commits-parser/README.md | 376 + .../conventional-commits-parser/cli.js | 165 + .../conventional-commits-parser/index.js | 101 + .../conventional-commits-parser/lib/parser.js | 303 + .../conventional-commits-parser/lib/regex.js | 55 + .../node_modules/.bin/JSONStream | 1 + .../conventional-commits-parser/package.json | 54 + .../node_modules/fill-range/LICENSE | 21 + .../node_modules/fill-range/README.md | 237 + .../node_modules/fill-range/index.js | 249 + .../node_modules/fill-range/package.json | 69 + .../node_modules/is-number/LICENSE | 21 + .../node_modules/is-number/README.md | 187 + .../node_modules/is-number/index.js | 18 + .../node_modules/is-number/package.json | 82 + .../node_modules/micromatch/CHANGELOG.md | 108 + .../node_modules/micromatch/LICENSE | 21 + .../node_modules/micromatch/README.md | 1000 + .../node_modules/micromatch/index.js | 467 + .../node_modules/micromatch/package.json | 118 + .../readable-stream/CONTRIBUTING.md | 38 + .../readable-stream/GOVERNANCE.md | 136 + .../node_modules/readable-stream/LICENSE | 47 + .../node_modules/readable-stream/README.md | 106 + .../readable-stream/errors-browser.js | 127 + .../node_modules/readable-stream/errors.js | 116 + .../readable-stream/experimentalWarning.js | 17 + .../readable-stream/lib/_stream_duplex.js | 139 + .../lib/_stream_passthrough.js | 39 + .../readable-stream/lib/_stream_readable.js | 1124 + .../readable-stream/lib/_stream_transform.js | 201 + .../readable-stream/lib/_stream_writable.js | 697 + .../lib/internal/streams/async_iterator.js | 207 + .../lib/internal/streams/buffer_list.js | 210 + .../lib/internal/streams/destroy.js | 105 + .../lib/internal/streams/end-of-stream.js | 104 + .../lib/internal/streams/from-browser.js | 3 + .../lib/internal/streams/from.js | 64 + .../lib/internal/streams/pipeline.js | 97 + .../lib/internal/streams/state.js | 27 + .../lib/internal/streams/stream-browser.js | 1 + .../lib/internal/streams/stream.js | 1 + .../node_modules/readable-stream/package.json | 68 + .../readable-stream/readable-browser.js | 9 + .../node_modules/readable-stream/readable.js | 16 + .../node_modules/string_decoder/LICENSE | 48 + .../node_modules/string_decoder/README.md | 47 + .../string_decoder/lib/string_decoder.js | 296 + .../node_modules/string_decoder/package.json | 34 + .../node_modules/through2/LICENSE.md | 9 + .../node_modules/through2/README.md | 134 + .../node_modules/through2/package.json | 32 + .../node_modules/through2/through2.js | 95 + .../node_modules/to-regex-range/LICENSE | 21 + .../node_modules/to-regex-range/README.md | 305 + .../node_modules/to-regex-range/index.js | 288 + .../node_modules/to-regex-range/package.json | 88 + .../commit-analyzer/package.json | 23 +- node_modules/@semantic-release/git/README.md | 24 +- node_modules/@semantic-release/git/lib/git.js | 17 +- .../@semantic-release/git/lib/glob-assets.js | 37 - .../@semantic-release/git/lib/prepare.js | 61 +- .../@semantic-release/git/package.json | 25 +- .../@semantic-release/github/README.md | 4 +- .../github/lib/glob-assets.js | 3 +- .../github/lib/parse-github-url.js | 2 +- .../@semantic-release/github/lib/publish.js | 22 +- .../github/node_modules/.bin/semantic-release | 1 + .../github/node_modules/fs-extra/CHANGELOG.md | 896 - .../github/node_modules/fs-extra/LICENSE | 15 - .../github/node_modules/fs-extra/README.md | 261 - .../fs-extra/lib/copy-sync/copy-sync.js | 166 - .../fs-extra/lib/copy-sync/index.js | 5 - .../node_modules/fs-extra/lib/copy/copy.js | 232 - .../node_modules/fs-extra/lib/copy/index.js | 6 - .../node_modules/fs-extra/lib/empty/index.js | 48 - .../node_modules/fs-extra/lib/ensure/file.js | 69 - .../node_modules/fs-extra/lib/ensure/index.js | 23 - .../node_modules/fs-extra/lib/ensure/link.js | 61 - .../fs-extra/lib/ensure/symlink-paths.js | 99 - .../fs-extra/lib/ensure/symlink-type.js | 31 - .../fs-extra/lib/ensure/symlink.js | 63 - .../node_modules/fs-extra/lib/fs/index.js | 128 - .../github/node_modules/fs-extra/lib/index.js | 27 - .../node_modules/fs-extra/lib/json/index.js | 16 - .../fs-extra/lib/json/jsonfile.js | 11 - .../fs-extra/lib/json/output-json-sync.js | 12 - .../fs-extra/lib/json/output-json.js | 12 - .../node_modules/fs-extra/lib/mkdirs/index.js | 14 - .../fs-extra/lib/move-sync/index.js | 5 - .../fs-extra/lib/move-sync/move-sync.js | 47 - .../node_modules/fs-extra/lib/move/index.js | 6 - .../node_modules/fs-extra/lib/move/move.js | 65 - .../node_modules/fs-extra/lib/output/index.js | 40 - .../fs-extra/lib/path-exists/index.js | 12 - .../node_modules/fs-extra/lib/remove/index.js | 9 - .../fs-extra/lib/remove/rimraf.js | 302 - .../node_modules/fs-extra/lib/util/stat.js | 139 - .../node_modules/fs-extra/lib/util/utimes.js | 26 - .../github/node_modules/fs-extra/package.json | 70 - .../github/node_modules/globby/gitignore.js | 118 - .../github/node_modules/globby/index.d.ts | 176 - .../github/node_modules/globby/index.js | 177 - .../github/node_modules/globby/package.json | 82 - .../github/node_modules/globby/readme.md | 170 - .../node_modules/globby/stream-utils.js | 46 - .../github/node_modules/ignore/CHANGELOG.md | 32 - .../github/node_modules/ignore/README.md | 392 - .../github/node_modules/ignore/index.d.ts | 63 - .../github/node_modules/ignore/index.js | 597 - .../github/node_modules/ignore/legacy.js | 495 - .../github/node_modules/ignore/package.json | 70 - .../github/node_modules/jsonfile/CHANGELOG.md | 165 - .../github/node_modules/jsonfile/LICENSE | 15 - .../github/node_modules/jsonfile/README.md | 205 - .../github/node_modules/jsonfile/index.js | 88 - .../github/node_modules/jsonfile/package.json | 40 - .../github/node_modules/slash/index.d.ts | 25 - .../github/node_modules/slash/index.js | 11 - .../github/node_modules/slash/readme.md | 44 - .../@semantic-release/github/package.json | 39 +- node_modules/@semantic-release/npm/README.md | 10 +- node_modules/@semantic-release/npm/index.js | 28 +- .../@semantic-release/npm/lib/add-channel.js | 45 + .../npm/lib/definitions/errors.js | 2 +- .../@semantic-release/npm/lib/get-channel.js | 3 + .../npm/lib/get-release-info.js | 29 +- .../@semantic-release/npm/lib/prepare.js | 12 +- .../@semantic-release/npm/lib/publish.js | 22 +- .../npm/lib/set-npmrc-auth.js | 2 +- .../npm/lib/verify-config.js | 2 +- .../npm/node_modules/.bin/semver | 1 + .../npm/node_modules/semver/CHANGELOG.md | 111 + .../npm/node_modules/semver/LICENSE | 15 + .../npm/node_modules/semver/README.md | 566 + .../npm/node_modules/semver/bin/semver.js | 173 + .../node_modules/semver/classes/comparator.js | 139 + .../npm/node_modules/semver/classes/index.js | 5 + .../npm/node_modules/semver/classes/range.js | 463 + .../npm/node_modules/semver/classes/semver.js | 290 + .../node_modules/semver/functions/clean.js | 6 + .../npm/node_modules/semver/functions/cmp.js | 48 + .../node_modules/semver/functions/coerce.js | 51 + .../semver/functions/compare-build.js | 7 + .../semver/functions/compare-loose.js | 3 + .../node_modules/semver/functions/compare.js | 5 + .../npm/node_modules/semver/functions/diff.js | 23 + .../npm/node_modules/semver/functions/eq.js | 3 + .../npm/node_modules/semver/functions/gt.js | 3 + .../npm/node_modules/semver/functions/gte.js | 3 + .../npm/node_modules/semver/functions/inc.js | 15 + .../npm/node_modules/semver/functions/lt.js | 3 + .../npm/node_modules/semver/functions/lte.js | 3 + .../node_modules/semver/functions/major.js | 3 + .../node_modules/semver/functions/minor.js | 3 + .../npm/node_modules/semver/functions/neq.js | 3 + .../node_modules/semver/functions/parse.js | 37 + .../node_modules/semver/functions/patch.js | 3 + .../semver/functions/prerelease.js | 6 + .../node_modules/semver/functions/rcompare.js | 3 + .../node_modules/semver/functions/rsort.js | 3 + .../semver/functions/satisfies.js | 10 + .../npm/node_modules/semver/functions/sort.js | 3 + .../node_modules/semver/functions/valid.js | 6 + .../npm/node_modules/semver/index.js | 48 + .../node_modules/semver/internal/constants.js | 17 + .../npm/node_modules/semver/internal/debug.js | 9 + .../semver/internal/identifiers.js | 23 + .../npm/node_modules/semver/internal/re.js | 182 + .../npm/node_modules/semver/package.json | 38 + .../npm/node_modules/semver/preload.js | 2 + .../npm/node_modules/semver/range.bnf | 16 + .../npm/node_modules/semver/ranges/gtr.js | 4 + .../node_modules/semver/ranges/intersects.js | 7 + .../npm/node_modules/semver/ranges/ltr.js | 4 + .../semver/ranges/max-satisfying.js | 25 + .../semver/ranges/min-satisfying.js | 24 + .../node_modules/semver/ranges/min-version.js | 57 + .../npm/node_modules/semver/ranges/outside.js | 80 + .../node_modules/semver/ranges/simplify.js | 44 + .../npm/node_modules/semver/ranges/subset.js | 155 + .../semver/ranges/to-comparators.js | 8 + .../npm/node_modules/semver/ranges/valid.js | 11 + .../@semantic-release/npm/package.json | 39 +- .../release-notes-generator/README.md | 6 +- .../release-notes-generator/index.js | 25 +- .../.bin/conventional-commits-parser | 2 +- .../conventional-commits-parser/CHANGELOG.md | 418 + .../conventional-commits-parser/LICENSE.md | 21 + .../conventional-commits-parser/README.md | 376 + .../conventional-commits-parser/cli.js | 165 + .../conventional-commits-parser/index.js | 101 + .../conventional-commits-parser/lib/parser.js | 303 + .../conventional-commits-parser/lib/regex.js | 55 + .../node_modules/.bin/JSONStream | 1 + .../conventional-commits-parser/package.json | 54 + .../readable-stream/CONTRIBUTING.md | 38 + .../readable-stream/GOVERNANCE.md | 136 + .../node_modules/readable-stream/LICENSE | 47 + .../node_modules/readable-stream/README.md | 106 + .../readable-stream/errors-browser.js | 127 + .../node_modules/readable-stream/errors.js | 116 + .../readable-stream/experimentalWarning.js | 17 + .../readable-stream/lib/_stream_duplex.js | 139 + .../lib/_stream_passthrough.js | 39 + .../readable-stream/lib/_stream_readable.js | 1124 + .../readable-stream/lib/_stream_transform.js | 201 + .../readable-stream/lib/_stream_writable.js | 697 + .../lib/internal/streams/async_iterator.js | 207 + .../lib/internal/streams/buffer_list.js | 210 + .../lib/internal/streams/destroy.js | 105 + .../lib/internal/streams/end-of-stream.js | 104 + .../lib/internal/streams/from-browser.js | 3 + .../lib/internal/streams/from.js | 64 + .../lib/internal/streams/pipeline.js | 97 + .../lib/internal/streams/state.js | 27 + .../lib/internal/streams/stream-browser.js | 1 + .../lib/internal/streams/stream.js | 1 + .../node_modules/readable-stream/package.json | 68 + .../readable-stream/readable-browser.js | 9 + .../node_modules/readable-stream/readable.js | 16 + .../node_modules/string_decoder/LICENSE | 48 + .../node_modules/string_decoder/README.md | 47 + .../string_decoder/lib/string_decoder.js | 296 + .../node_modules/string_decoder/package.json | 34 + .../node_modules/through2/LICENSE.md | 9 + .../node_modules/through2/README.md | 134 + .../node_modules/through2/package.json | 32 + .../node_modules/through2/through2.js | 95 + .../release-notes-generator/package.json | 21 +- node_modules/@types/glob/LICENSE | 21 - node_modules/@types/glob/README.md | 16 - node_modules/@types/glob/index.d.ts | 89 - node_modules/@types/glob/package.json | 42 - node_modules/@types/minimatch/LICENSE | 21 - node_modules/@types/minimatch/README.md | 16 - node_modules/@types/minimatch/index.d.ts | 214 - node_modules/@types/minimatch/package.json | 27 - node_modules/atob-lite/.npmignore | 6 - node_modules/atob-lite/LICENSE.md | 18 - node_modules/atob-lite/README.md | 37 - node_modules/atob-lite/atob-browser.js | 3 - node_modules/atob-lite/atob-node.js | 3 - node_modules/atob-lite/package.json | 42 - node_modules/btoa-lite/.npmignore | 6 - node_modules/btoa-lite/README.md | 37 - node_modules/btoa-lite/btoa-browser.js | 3 - node_modules/btoa-lite/btoa-node.js | 3 - node_modules/btoa-lite/package.json | 41 - .../node_modules/supports-color/browser.js | 0 .../node_modules/supports-color/index.js | 31 +- .../node_modules/supports-color}/license | 0 .../node_modules/supports-color/package.json | 6 +- .../node_modules/supports-color/readme.md | 66 + .../crypto-random-string/index.js | 10 + .../node_modules/crypto-random-string/license | 21 + .../crypto-random-string/package.json | 43 + .../crypto-random-string/readme.md | 49 + .../node_modules/unique-string/index.js | 4 + .../node_modules/unique-string/license | 21 + .../node_modules/unique-string/package.json | 44 + .../node_modules/unique-string/readme.md | 32 + .../CHANGELOG.md | 11 + .../package.json | 4 +- .../writer-opts.js | 25 +- .../conventional-commit-types/index.json | 4 - .../conventional-commit-types/package.json | 2 +- .../conventional-commits-parser/CHANGELOG.md | 17 + .../conventional-commits-parser/README.md | 6 + .../conventional-commits-parser/cli.js | 36 +- .../conventional-commits-parser/index.js | 14 +- .../conventional-commits-parser/lib/parser.js | 102 +- .../conventional-commits-parser/lib/regex.js | 22 +- .../node_modules/hosted-git-info/CHANGELOG.md | 175 + .../node_modules/hosted-git-info/LICENSE | 13 + .../node_modules/hosted-git-info/README.md | 133 + .../hosted-git-info/git-host-info.js | 79 + .../node_modules/hosted-git-info/git-host.js | 156 + .../node_modules/hosted-git-info/index.js | 146 + .../node_modules/hosted-git-info/package.json | 46 + .../node_modules/lru-cache/LICENSE | 15 + .../node_modules/lru-cache/README.md | 166 + .../node_modules/lru-cache/index.js | 334 + .../node_modules/lru-cache/package.json | 34 + .../node_modules/meow/index.d.ts | 306 + .../node_modules/meow/index.js | 206 + .../node_modules/meow/license | 9 + .../node_modules/meow/package.json | 76 + .../node_modules/meow/readme.md | 343 + .../normalize-package-data/AUTHORS | 4 + .../normalize-package-data/LICENSE | 30 + .../normalize-package-data/README.md | 106 + .../lib/extract_description.js | 14 + .../normalize-package-data/lib/fixer.js | 418 + .../lib/make_warning.js | 23 + .../normalize-package-data/lib/normalize.js | 39 + .../normalize-package-data/lib/safe_format.js | 9 + .../normalize-package-data/lib/typos.json | 25 + .../lib/warning_messages.json | 30 + .../node_modules/.bin/semver | 1 + .../normalize-package-data/package.json | 32 + .../node_modules/semver/CHANGELOG.md | 111 + .../node_modules/semver/LICENSE | 15 + .../node_modules/semver/README.md | 566 + .../node_modules/semver/bin/semver.js | 173 + .../node_modules/semver/classes/comparator.js | 139 + .../node_modules/semver/classes/index.js | 5 + .../node_modules/semver/classes/range.js | 463 + .../node_modules/semver/classes/semver.js | 290 + .../node_modules/semver/functions/clean.js | 6 + .../node_modules/semver/functions/cmp.js | 48 + .../node_modules/semver/functions/coerce.js | 51 + .../semver/functions/compare-build.js | 7 + .../semver/functions/compare-loose.js | 3 + .../node_modules/semver/functions/compare.js | 5 + .../node_modules/semver/functions/diff.js | 23 + .../node_modules/semver/functions/eq.js | 3 + .../node_modules/semver/functions/gt.js | 3 + .../node_modules/semver/functions/gte.js | 3 + .../node_modules/semver/functions/inc.js | 15 + .../node_modules/semver/functions/lt.js | 3 + .../node_modules/semver/functions/lte.js | 3 + .../node_modules/semver/functions/major.js | 3 + .../node_modules/semver/functions/minor.js | 3 + .../node_modules/semver/functions/neq.js | 3 + .../node_modules/semver/functions/parse.js | 37 + .../node_modules/semver/functions/patch.js | 3 + .../semver/functions/prerelease.js | 6 + .../node_modules/semver/functions/rcompare.js | 3 + .../node_modules/semver/functions/rsort.js | 3 + .../semver/functions/satisfies.js | 10 + .../node_modules/semver/functions/sort.js | 3 + .../node_modules/semver/functions/valid.js | 6 + .../node_modules/semver/index.js | 48 + .../node_modules/semver/internal/constants.js | 17 + .../node_modules/semver/internal/debug.js | 9 + .../semver/internal/identifiers.js | 23 + .../node_modules/semver/internal/re.js | 182 + .../node_modules/semver/package.json | 38 + .../node_modules/semver/preload.js | 2 + .../node_modules/semver/range.bnf | 16 + .../node_modules/semver/ranges/gtr.js | 4 + .../node_modules/semver/ranges/intersects.js | 7 + .../node_modules/semver/ranges/ltr.js | 4 + .../semver/ranges/max-satisfying.js | 25 + .../semver/ranges/min-satisfying.js | 24 + .../node_modules/semver/ranges/min-version.js | 57 + .../node_modules/semver/ranges/outside.js | 80 + .../node_modules/semver/ranges/simplify.js | 44 + .../node_modules/semver/ranges/subset.js | 155 + .../semver/ranges/to-comparators.js | 8 + .../node_modules/semver/ranges/valid.js | 11 + .../node_modules/through2/README.md | 42 +- .../node_modules/through2/package.json | 24 +- .../node_modules/through2/through2.js | 86 +- .../node_modules/type-fest/index.d.ts | 35 + .../node_modules/type-fest/license | 9 + .../node_modules/type-fest/package.json | 45 + .../node_modules/type-fest/readme.md | 648 + .../type-fest/source/async-return-type.d.ts | 23 + .../type-fest/source/asyncify.d.ts | 31 + .../node_modules/type-fest/source/basic.d.ts | 67 + .../type-fest/source/conditional-except.d.ts | 43 + .../type-fest/source/conditional-keys.d.ts | 43 + .../type-fest/source/conditional-pick.d.ts | 42 + .../type-fest/source/entries.d.ts | 57 + .../node_modules/type-fest/source/entry.d.ts | 60 + .../node_modules/type-fest/source/except.d.ts | 22 + .../type-fest/source/fixed-length-array.d.ts | 38 + .../type-fest/source/iterable-element.d.ts | 46 + .../type-fest/source/literal-union.d.ts | 33 + .../type-fest/source/merge-exclusive.d.ts | 39 + .../node_modules/type-fest/source/merge.d.ts | 22 + .../type-fest/source/mutable.d.ts | 22 + .../node_modules/type-fest/source/opaque.d.ts | 65 + .../type-fest/source/package-json.d.ts | 627 + .../type-fest/source/partial-deep.d.ts | 72 + .../type-fest/source/promisable.d.ts | 23 + .../type-fest/source/promise-value.d.ts | 27 + .../type-fest/source/readonly-deep.d.ts | 59 + .../source/require-at-least-one.d.ts | 32 + .../type-fest/source/require-exactly-one.d.ts | 35 + .../type-fest/source/set-optional.d.ts | 34 + .../type-fest/source/set-required.d.ts | 34 + .../type-fest/source/set-return-type.d.ts | 29 + .../type-fest/source/stringified.d.ts | 21 + .../type-fest/source/tsconfig-json.d.ts | 872 + .../source/union-to-intersection.d.ts | 58 + .../type-fest/source/value-of.d.ts | 40 + .../node_modules/yallist/LICENSE | 15 + .../node_modules/yallist/README.md | 204 + .../node_modules/yallist/iterator.js | 8 + .../node_modules/yallist/package.json | 29 + .../node_modules/yallist/yallist.js | 426 + .../node_modules/yargs-parser/CHANGELOG.md | 226 + .../node_modules/yargs-parser/LICENSE.txt | 0 .../node_modules/yargs-parser/README.md | 83 +- .../node_modules/yargs-parser/browser.js | 29 + .../node_modules/yargs-parser/build/index.cjs | 1026 + .../yargs-parser/build/lib/index.js | 53 + .../yargs-parser/build/lib/string-utils.js | 56 + .../build/lib/tokenize-arg-string.js | 35 + .../build/lib/yargs-parser-types.js | 1 + .../yargs-parser/build/lib/yargs-parser.js | 1023 + .../node_modules/yargs-parser/package.json | 87 + .../conventional-commits-parser/package.json | 8 +- node_modules/crypto-random-string/index.d.ts | 17 + node_modules/crypto-random-string/index.js | 6 +- node_modules/crypto-random-string/license | 20 +- .../crypto-random-string/package.json | 79 +- node_modules/crypto-random-string/readme.md | 4 +- .../node_modules/iconv-lite/lib/streams.js | 109 - node_modules/env-ci/lib/git.js | 2 +- node_modules/env-ci/lib/utils.js | 6 +- node_modules/env-ci/package.json | 19 +- node_modules/env-ci/services/github.js | 3 +- node_modules/env-ci/services/vsts.js | 5 +- node_modules/execa/index.d.ts | 15 +- node_modules/execa/index.js | 6 +- node_modules/execa/lib/error.js | 10 +- node_modules/execa/lib/kill.js | 26 +- node_modules/execa/lib/promise.js | 30 +- node_modules/execa/license | 2 +- .../execa/node_modules/p-finally/index.js | 17 - .../execa/node_modules/p-finally/package.json | 39 - .../execa/node_modules/p-finally/readme.md | 59 - node_modules/execa/package.json | 18 +- node_modules/execa/readme.md | 108 +- node_modules/fs-extra/CHANGELOG.md | 32 + node_modules/fs-extra/README.md | 2 +- .../fs-extra/lib/copy-sync/copy-sync.js | 60 +- node_modules/fs-extra/lib/copy/copy.js | 66 +- node_modules/fs-extra/lib/empty/index.js | 2 +- node_modules/fs-extra/lib/ensure/file.js | 42 +- .../fs-extra/lib/ensure/symlink-paths.js | 24 +- .../fs-extra/lib/ensure/symlink-type.js | 2 +- node_modules/fs-extra/lib/fs/index.js | 29 +- node_modules/fs-extra/lib/index.js | 29 +- node_modules/fs-extra/lib/json/index.js | 2 +- node_modules/fs-extra/lib/json/jsonfile.js | 5 +- .../fs-extra/lib/json/output-json-sync.js | 14 +- node_modules/fs-extra/lib/json/output-json.js | 25 +- node_modules/fs-extra/lib/mkdirs/index.js | 18 +- .../fs-extra/lib/mkdirs/make-dir.js | 0 .../fs-extra/lib/mkdirs/mkdirs-sync.js | 54 - node_modules/fs-extra/lib/mkdirs/mkdirs.js | 63 - node_modules/fs-extra/lib/mkdirs/win32.js | 25 - node_modules/fs-extra/lib/remove/rimraf.js | 14 +- node_modules/fs-extra/lib/util/buffer.js | 12 - node_modules/fs-extra/lib/util/stat.js | 143 +- node_modules/fs-extra/lib/util/utimes.js | 53 - .../node_modules/universalify/LICENSE | 20 - .../node_modules/universalify/README.md | 76 - .../node_modules/universalify/index.js | 25 - .../node_modules/universalify/package.json | 34 - node_modules/fs-extra/package.json | 21 +- node_modules/globby/gitignore.js | 1 + node_modules/globby/index.d.ts | 18 +- node_modules/globby/index.js | 3 +- node_modules/globby/package.json | 23 +- node_modules/globby/readme.md | 24 +- .../iconv-lite/.github/dependabot.yml | 0 node_modules/iconv-lite/Changelog.md | 96 +- node_modules/iconv-lite/README.md | 68 +- .../iconv-lite/encodings/dbcs-codec.js | 144 +- node_modules/iconv-lite/encodings/index.js | 3 +- node_modules/iconv-lite/encodings/internal.js | 14 +- .../iconv-lite/encodings/sbcs-data.js | 5 + .../encodings/tables/gbk-added.json | 5 +- node_modules/iconv-lite/encodings/utf16.js | 96 +- .../iconv-lite/encodings/utf32.js | 0 node_modules/iconv-lite/encodings/utf7.js | 8 +- node_modules/iconv-lite/lib/index.d.ts | 17 + node_modules/iconv-lite/lib/index.js | 53 +- node_modules/iconv-lite/lib/streams.js | 190 +- node_modules/iconv-lite/package.json | 26 +- node_modules/jsonfile/CHANGELOG.md | 20 + node_modules/jsonfile/README.md | 129 +- node_modules/jsonfile/index.js | 132 +- node_modules/jsonfile/package.json | 13 +- .../node_modules => }/jsonfile/utils.js | 0 .../node_modules/p-locate/index.js | 34 - node_modules/lodash.set/README.md | 18 - node_modules/lodash.set/index.js | 990 - node_modules/lodash.set/package.json | 17 - node_modules/marked-terminal/README.md | 6 + node_modules/marked-terminal/index.js | 190 +- .../node_modules/ansi-escapes/index.d.ts | 248 + .../node_modules/ansi-escapes/index.js | 157 + .../node_modules/ansi-escapes/license | 9 + .../node_modules/ansi-escapes/package.json | 57 + .../node_modules/ansi-escapes/readme.md | 245 + .../node_modules/ansi-styles/index.d.ts | 197 + .../node_modules/ansi-styles/index.js | 163 + .../node_modules/ansi-styles}/license | 0 .../node_modules/ansi-styles/package.json | 57 + .../node_modules/ansi-styles/readme.md | 158 + .../node_modules/chalk/index.d.ts | 415 + .../node_modules/chalk}/license | 0 .../node_modules/chalk/package.json | 68 + .../node_modules/chalk/readme.md | 293 + .../node_modules/chalk/source/index.js | 229 + .../node_modules/chalk/source/templates.js | 134 + .../node_modules/chalk/source/util.js | 39 + .../node_modules/color-convert/CHANGELOG.md | 54 + .../node_modules/color-convert/LICENSE} | 6 +- .../node_modules/color-convert/README.md | 68 + .../node_modules/color-convert/conversions.js | 839 + .../node_modules/color-convert/index.js | 81 + .../node_modules/color-convert/package.json | 48 + .../node_modules/color-convert/route.js | 97 + .../node_modules/color-name/LICENSE | 8 + .../node_modules/color-name/README.md | 11 + .../node_modules/color-name/index.js | 152 + .../node_modules/color-name/package.json | 28 + .../node_modules/has-flag/index.d.ts | 39 + .../node_modules/has-flag/index.js | 8 + .../node_modules/has-flag}/license | 0 .../node_modules/has-flag/package.json | 46 + .../node_modules/has-flag/readme.md | 89 + .../node_modules/supports-color/browser.js | 0 .../node_modules/supports-color/index.js | 27 +- .../node_modules/supports-color/license | 0 .../node_modules/supports-color/package.json | 12 +- .../node_modules/supports-color/readme.md | 33 +- .../node_modules/type-fest/index.d.ts | 26 + .../node_modules/type-fest}/license | 0 .../node_modules/type-fest/package.json | 54 + .../node_modules/type-fest/readme.md | 637 + .../type-fest/source/async-return-type.d.ts | 23 + .../node_modules/type-fest/source/basic.d.ts | 67 + .../type-fest/source/conditional-except.d.ts | 43 + .../type-fest/source/conditional-keys.d.ts | 43 + .../type-fest/source/conditional-pick.d.ts | 42 + .../node_modules/type-fest/source/except.d.ts | 22 + .../type-fest/source/literal-union.d.ts | 33 + .../type-fest/source/merge-exclusive.d.ts | 39 + .../node_modules/type-fest/source/merge.d.ts | 22 + .../type-fest/source/mutable.d.ts | 22 + .../node_modules/type-fest/source/opaque.d.ts | 65 + .../type-fest/source/package-json.d.ts | 585 + .../type-fest/source/partial-deep.d.ts | 72 + .../type-fest/source/promisable.d.ts | 23 + .../type-fest/source/promise-value.d.ts | 20 + .../type-fest/source/readonly-deep.d.ts | 59 + .../source/require-at-least-one.d.ts | 32 + .../type-fest/source/require-exactly-one.d.ts | 36 + .../type-fest/source/set-optional.d.ts | 32 + .../type-fest/source/set-required.d.ts | 32 + .../type-fest/source/tsconfig-json.d.ts | 872 + node_modules/marked-terminal/package.json | 16 +- node_modules/marked/README.md | 2 +- node_modules/marked/bin/marked | 38 +- node_modules/marked/lib/marked.esm.js | 2472 + node_modules/marked/lib/marked.js | 3777 +- node_modules/marked/marked.min.js | 4 +- node_modules/marked/package.json | 60 +- node_modules/marked/src/Lexer.js | 455 + node_modules/marked/src/Parser.js | 255 + node_modules/marked/src/Renderer.js | 164 + node_modules/marked/src/Slugger.js | 33 + node_modules/marked/src/TextRenderer.js | 42 + node_modules/marked/src/Tokenizer.js | 659 + node_modules/marked/src/defaults.js | 32 + node_modules/marked/src/helpers.js | 243 + node_modules/marked/src/marked.js | 234 + node_modules/marked/src/rules.js | 337 + .../node_modules/yargs-parser/CHANGELOG.md | 601 - .../meow/node_modules/yargs-parser/index.js | 1032 - .../yargs-parser/lib/tokenize-arg-string.js | 40 - .../node_modules/yargs-parser/package.json | 46 - node_modules/node-fetch/CHANGELOG.md | 6 + node_modules/node-fetch/README.md | 53 +- node_modules/node-fetch/browser.js | 4 +- node_modules/node-fetch/lib/index.es.js | 11 +- node_modules/node-fetch/lib/index.js | 11 +- node_modules/node-fetch/lib/index.mjs | 11 +- node_modules/node-fetch/package.json | 128 +- node_modules/normalize-url/index.d.ts | 41 +- node_modules/normalize-url/index.js | 59 +- node_modules/normalize-url/package.json | 11 +- node_modules/normalize-url/readme.md | 34 +- node_modules/npm/AUTHORS | 5 + node_modules/npm/CHANGELOG.md | 34 + .../npm/docs/content/cli-commands/npm.md | 3 +- .../npm/docs/content/using-npm/semver.md | 6 + .../public/cli-commands/npm-access/index.html | 4 +- .../cli-commands/npm-adduser/index.html | 4 +- .../public/cli-commands/npm-audit/index.html | 4 +- .../public/cli-commands/npm-bin/index.html | 4 +- .../public/cli-commands/npm-bugs/index.html | 4 +- .../public/cli-commands/npm-build/index.html | 4 +- .../public/cli-commands/npm-bundle/index.html | 4 +- .../public/cli-commands/npm-cache/index.html | 4 +- .../public/cli-commands/npm-ci/index.html | 4 +- .../cli-commands/npm-completion/index.html | 4 +- .../public/cli-commands/npm-config/index.html | 4 +- .../public/cli-commands/npm-dedupe/index.html | 4 +- .../cli-commands/npm-deprecate/index.html | 4 +- .../cli-commands/npm-dist-tag/index.html | 4 +- .../public/cli-commands/npm-docs/index.html | 4 +- .../public/cli-commands/npm-doctor/index.html | 4 +- .../public/cli-commands/npm-edit/index.html | 4 +- .../cli-commands/npm-explore/index.html | 4 +- .../public/cli-commands/npm-fund/index.html | 4 +- .../cli-commands/npm-help-search/index.html | 4 +- .../public/cli-commands/npm-help/index.html | 4 +- .../public/cli-commands/npm-hook/index.html | 4 +- .../public/cli-commands/npm-init/index.html | 4 +- .../npm-install-ci-test/index.html | 4 +- .../cli-commands/npm-install-test/index.html | 4 +- .../cli-commands/npm-install/index.html | 4 +- .../public/cli-commands/npm-link/index.html | 4 +- .../public/cli-commands/npm-logout/index.html | 4 +- .../public/cli-commands/npm-ls/index.html | 6 +- .../public/cli-commands/npm-org/index.html | 4 +- .../cli-commands/npm-outdated/index.html | 4 +- .../public/cli-commands/npm-owner/index.html | 4 +- .../public/cli-commands/npm-pack/index.html | 4 +- .../public/cli-commands/npm-ping/index.html | 4 +- .../public/cli-commands/npm-prefix/index.html | 4 +- .../cli-commands/npm-profile/index.html | 4 +- .../public/cli-commands/npm-prune/index.html | 4 +- .../cli-commands/npm-publish/index.html | 4 +- .../cli-commands/npm-rebuild/index.html | 4 +- .../public/cli-commands/npm-repo/index.html | 4 +- .../cli-commands/npm-restart/index.html | 4 +- .../public/cli-commands/npm-root/index.html | 4 +- .../cli-commands/npm-run-script/index.html | 4 +- .../public/cli-commands/npm-search/index.html | 4 +- .../cli-commands/npm-shrinkwrap/index.html | 4 +- .../public/cli-commands/npm-star/index.html | 4 +- .../public/cli-commands/npm-stars/index.html | 4 +- .../public/cli-commands/npm-start/index.html | 4 +- .../public/cli-commands/npm-stop/index.html | 4 +- .../public/cli-commands/npm-team/index.html | 4 +- .../public/cli-commands/npm-test/index.html | 4 +- .../public/cli-commands/npm-token/index.html | 4 +- .../cli-commands/npm-uninstall/index.html | 4 +- .../cli-commands/npm-unpublish/index.html | 4 +- .../public/cli-commands/npm-update/index.html | 4 +- .../cli-commands/npm-version/index.html | 4 +- .../public/cli-commands/npm-view/index.html | 4 +- .../public/cli-commands/npm-whoami/index.html | 4 +- .../docs/public/cli-commands/npm/index.html | 9 +- .../public/configuring-npm/folders/index.html | 4 +- .../public/configuring-npm/install/index.html | 4 +- .../public/configuring-npm/npmrc/index.html | 4 +- .../configuring-npm/package-json/index.html | 4 +- .../package-lock-json/index.html | 4 +- .../configuring-npm/package-locks/index.html | 4 +- .../shrinkwrap-json/index.html | 4 +- node_modules/npm/docs/public/index.html | 2 +- .../npm/docs/public/static/d/2215187023.json | 2 +- .../docs/public/using-npm/config/index.html | 4 +- .../public/using-npm/developers/index.html | 4 +- .../docs/public/using-npm/disputes/index.html | 4 +- .../npm/docs/public/using-npm/orgs/index.html | 4 +- .../docs/public/using-npm/registry/index.html | 4 +- .../docs/public/using-npm/removal/index.html | 4 +- .../docs/public/using-npm/scope/index.html | 4 +- .../docs/public/using-npm/scripts/index.html | 4 +- .../docs/public/using-npm/semver/index.html | 4 +- node_modules/npm/lib/ci.js | 4 + node_modules/npm/lib/hook.js | 13 + node_modules/npm/lib/install.js | 2 +- node_modules/npm/lib/utils/replace-info.js | 2 +- node_modules/npm/man/man1/npm-README.1 | 2 +- node_modules/npm/man/man1/npm-access.1 | 2 +- node_modules/npm/man/man1/npm-adduser.1 | 2 +- node_modules/npm/man/man1/npm-audit.1 | 2 +- node_modules/npm/man/man1/npm-bin.1 | 2 +- node_modules/npm/man/man1/npm-bugs.1 | 2 +- node_modules/npm/man/man1/npm-build.1 | 2 +- node_modules/npm/man/man1/npm-bundle.1 | 2 +- node_modules/npm/man/man1/npm-cache.1 | 2 +- node_modules/npm/man/man1/npm-ci.1 | 2 +- node_modules/npm/man/man1/npm-completion.1 | 2 +- node_modules/npm/man/man1/npm-config.1 | 2 +- node_modules/npm/man/man1/npm-dedupe.1 | 2 +- node_modules/npm/man/man1/npm-deprecate.1 | 2 +- node_modules/npm/man/man1/npm-dist-tag.1 | 2 +- node_modules/npm/man/man1/npm-docs.1 | 2 +- node_modules/npm/man/man1/npm-doctor.1 | 2 +- node_modules/npm/man/man1/npm-edit.1 | 2 +- node_modules/npm/man/man1/npm-explore.1 | 2 +- node_modules/npm/man/man1/npm-fund.1 | 2 +- node_modules/npm/man/man1/npm-help-search.1 | 2 +- node_modules/npm/man/man1/npm-help.1 | 2 +- node_modules/npm/man/man1/npm-hook.1 | 2 +- node_modules/npm/man/man1/npm-init.1 | 2 +- .../npm/man/man1/npm-install-ci-test.1 | 2 +- node_modules/npm/man/man1/npm-install-test.1 | 2 +- node_modules/npm/man/man1/npm-install.1 | 2 +- node_modules/npm/man/man1/npm-link.1 | 2 +- node_modules/npm/man/man1/npm-logout.1 | 2 +- node_modules/npm/man/man1/npm-ls.1 | 4 +- node_modules/npm/man/man1/npm-org.1 | 2 +- node_modules/npm/man/man1/npm-outdated.1 | 2 +- node_modules/npm/man/man1/npm-owner.1 | 2 +- node_modules/npm/man/man1/npm-pack.1 | 2 +- node_modules/npm/man/man1/npm-ping.1 | 2 +- node_modules/npm/man/man1/npm-prefix.1 | 2 +- node_modules/npm/man/man1/npm-profile.1 | 2 +- node_modules/npm/man/man1/npm-prune.1 | 2 +- node_modules/npm/man/man1/npm-publish.1 | 2 +- node_modules/npm/man/man1/npm-rebuild.1 | 2 +- node_modules/npm/man/man1/npm-repo.1 | 2 +- node_modules/npm/man/man1/npm-restart.1 | 2 +- node_modules/npm/man/man1/npm-root.1 | 2 +- node_modules/npm/man/man1/npm-run-script.1 | 2 +- node_modules/npm/man/man1/npm-search.1 | 2 +- node_modules/npm/man/man1/npm-shrinkwrap.1 | 2 +- node_modules/npm/man/man1/npm-star.1 | 2 +- node_modules/npm/man/man1/npm-stars.1 | 2 +- node_modules/npm/man/man1/npm-start.1 | 2 +- node_modules/npm/man/man1/npm-stop.1 | 2 +- node_modules/npm/man/man1/npm-team.1 | 2 +- node_modules/npm/man/man1/npm-test.1 | 2 +- node_modules/npm/man/man1/npm-token.1 | 2 +- node_modules/npm/man/man1/npm-uninstall.1 | 2 +- node_modules/npm/man/man1/npm-unpublish.1 | 2 +- node_modules/npm/man/man1/npm-update.1 | 2 +- node_modules/npm/man/man1/npm-version.1 | 2 +- node_modules/npm/man/man1/npm-view.1 | 2 +- node_modules/npm/man/man1/npm-whoami.1 | 2 +- node_modules/npm/man/man1/npm.1 | 7 +- node_modules/npm/man/man5/folders.5 | 2 +- node_modules/npm/man/man5/install.5 | 2 +- node_modules/npm/man/man5/npmrc.5 | 2 +- node_modules/npm/man/man5/package-json.5 | 2 +- node_modules/npm/man/man5/package-lock-json.5 | 2 +- node_modules/npm/man/man5/package-locks.5 | 2 +- node_modules/npm/man/man5/shrinkwrap-json.5 | 2 +- node_modules/npm/man/man7/config.7 | 2 +- node_modules/npm/man/man7/developers.7 | 2 +- node_modules/npm/man/man7/disputes.7 | 2 +- node_modules/npm/man/man7/orgs.7 | 2 +- node_modules/npm/man/man7/registry.7 | 2 +- node_modules/npm/man/man7/removal.7 | 2 +- node_modules/npm/man/man7/scope.7 | 2 +- node_modules/npm/man/man7/scripts.7 | 2 +- node_modules/npm/man/man7/semver.7 | 2 +- .../npm/node_modules/configstore/package.json | 18 +- .../npm/node_modules/configstore/readme.md | 2 +- .../node_modules/define-properties/.eslintrc | 12 + .../npm/node_modules/dot-prop/index.js | 18 + .../npm/node_modules/dot-prop/package.json | 26 +- .../npm/node_modules/dot-prop/readme.md | 2 + .../npm/node_modules/es-abstract/.eslintrc | 66 + .../es-abstract/operations/.eslintrc | 5 + .../node_modules/es-to-primitive/.eslintrc | 22 + .../npm/node_modules/function-bind/.eslintrc | 15 + .../node_modules/function-bind/test/.eslintrc | 9 + .../npm/node_modules/has-symbols/.eslintrc | 11 + .../npm/node_modules/iferr/package.json | 68 +- .../npm/node_modules/is-callable/.eslintrc | 12 + .../npm/node_modules/is-date-object/.eslintrc | 9 + .../npm/node_modules/is-regex/.eslintrc | 19 + .../npm/node_modules/is-symbol/.eslintrc | 14 + .../meant/.github/workflows/ci.yml | 20 + .../npm/node_modules/meant/.npmignore | 37 - .../npm/node_modules/meant/.travis.yml | 16 - .../npm/node_modules/meant/CHANGELOG.md | 10 +- node_modules/npm/node_modules/meant/README.md | 2 +- .../npm/node_modules/meant/package.json | 36 +- .../node_modules => }/minimist/.travis.yml | 0 .../{rc/node_modules => }/minimist/LICENSE | 0 .../minimist/example/parse.js | 0 .../{rc/node_modules => }/minimist/index.js | 0 .../node_modules => }/minimist/package.json | 4 +- .../minimist/readme.markdown | 0 .../minimist/test/all_bool.js | 0 .../node_modules => }/minimist/test/bool.js | 0 .../node_modules => }/minimist/test/dash.js | 0 .../minimist/test/default_bool.js | 0 .../node_modules => }/minimist/test/dotted.js | 0 .../minimist/test/kv_short.js | 0 .../node_modules => }/minimist/test/long.js | 0 .../node_modules => }/minimist/test/num.js | 0 .../node_modules => }/minimist/test/parse.js | 0 .../minimist/test/parse_modified.js | 0 .../node_modules => }/minimist/test/proto.js | 0 .../node_modules => }/minimist/test/short.js | 0 .../minimist/test/stop_early.js | 0 .../minimist/test/unknown.js | 0 .../minimist/test/whitespace.js | 0 .../node-gyp/gyp/pylib/gyp/MSVSUtil.pyc | Bin 7670 -> 7734 bytes .../node-gyp/gyp/pylib/gyp/MSVSVersion.pyc | Bin 14442 -> 14618 bytes .../node-gyp/gyp/pylib/gyp/__init__.pyc | Bin 16462 -> 16606 bytes .../gyp/__pycache__/MSVSUtil.cpython-38.pyc | Bin 0 -> 6260 bytes .../__pycache__/MSVSVersion.cpython-38.pyc | Bin 0 -> 11528 bytes .../gyp/__pycache__/__init__.cpython-38.pyc | Bin 0 -> 13430 bytes .../gyp/__pycache__/common.cpython-38.pyc | Bin 0 -> 15098 bytes .../gyp/__pycache__/input.cpython-38.pyc | Bin 0 -> 52357 bytes .../__pycache__/msvs_emulation.cpython-38.pyc | Bin 0 -> 40517 bytes .../__pycache__/ninja_syntax.cpython-38.pyc | Bin 0 -> 4692 bytes .../__pycache__/simple_copy.cpython-38.pyc | Bin 0 -> 1838 bytes .../xcode_emulation.cpython-38.pyc | Bin 0 -> 50684 bytes .../__pycache__/xcode_ninja.cpython-38.pyc | Bin 0 -> 6442 bytes .../__pycache__/xcodeproj_file.cpython-38.pyc | Bin 0 -> 76075 bytes .../node-gyp/gyp/pylib/gyp/common.pyc | Bin 19654 -> 20062 bytes .../gyp/pylib/gyp/generator/__init__.pyc | Bin 170 -> 178 bytes .../__pycache__/__init__.cpython-38.pyc | Bin 0 -> 182 bytes .../generator/__pycache__/make.cpython-38.pyc | Bin 0 -> 63675 bytes .../__pycache__/ninja.cpython-38.pyc | Bin 0 -> 57965 bytes .../__pycache__/xcode.cpython-38.pyc | Bin 0 -> 21302 bytes .../node-gyp/gyp/pylib/gyp/generator/make.pyc | Bin 71385 -> 71881 bytes .../gyp/pylib/gyp/generator/ninja.pyc | Bin 68640 -> 69208 bytes .../gyp/pylib/gyp/generator/xcode.pyc | Bin 26249 -> 26369 bytes .../node-gyp/gyp/pylib/gyp/input.pyc | Bin 63526 -> 64118 bytes .../node-gyp/gyp/pylib/gyp/msvs_emulation.pyc | Bin 48332 -> 48988 bytes .../node-gyp/gyp/pylib/gyp/ninja_syntax.pyc | Bin 6491 -> 6627 bytes .../node-gyp/gyp/pylib/gyp/simple_copy.pyc | Bin 2234 -> 2282 bytes .../gyp/pylib/gyp/xcode_emulation.pyc | Bin 61914 -> 62690 bytes .../node-gyp/gyp/pylib/gyp/xcode_ninja.pyc | Bin 7565 -> 7605 bytes .../node-gyp/gyp/pylib/gyp/xcodeproj_file.pyc | Bin 93911 -> 95295 bytes .../npm-registry-fetch/CHANGELOG.md | 20 + .../npm-registry-fetch/check-response.js | 7 +- .../node_modules/.bin/JSONStream | 1 + .../npm-registry-fetch/package.json | 24 +- .../npm/node_modules/object-keys/.eslintrc | 17 + .../.eslintrc | 20 + .../node_modules/readable-stream/package.json | 86 +- .../node_modules/require-directory/.jshintrc | 67 + .../node_modules/string_decoder/package.json | 58 +- .../node_modules/update-notifier/package.json | 2 +- node_modules/npm/package.json | 6 +- .../octokit-pagination-methods/.travis.yml | 36 - .../CODE_OF_CONDUCT.md | 46 - .../octokit-pagination-methods/README.md | 42 - .../octokit-pagination-methods/index.js | 12 - .../lib/deprecate.js | 12 - .../lib/get-first-page.js | 7 - .../lib/get-last-page.js | 7 - .../lib/get-next-page.js | 7 - .../lib/get-page-links.js | 15 - .../lib/get-page.js | 38 - .../lib/get-previous-page.js | 7 - .../lib/has-first-page.js | 9 - .../lib/has-last-page.js | 9 - .../lib/has-next-page.js | 9 - .../lib/has-previous-page.js | 9 - .../lib/http-error.js | 15 - .../octokit-pagination-methods/package.json | 48 - .../octokit-pagination-methods/test.js | 93 - node_modules/p-each-series/index.d.ts | 41 + node_modules/p-each-series/index.js | 16 +- node_modules/p-each-series/license | 20 +- node_modules/p-each-series/package.json | 94 +- node_modules/p-each-series/readme.md | 16 +- node_modules/p-locate/index.js | 44 +- node_modules/p-locate/package.json | 20 +- node_modules/p-locate/readme.md | 6 +- .../node_modules}/p-locate/index.d.ts | 0 .../node_modules/p-locate/index.js | 52 + .../read-pkg-up/node_modules/p-locate/license | 9 + .../node_modules/p-locate/package.json | 20 +- .../node_modules/p-locate/readme.md | 6 +- node_modules/semantic-release/README.md | 42 +- .../semantic-release/bin/semantic-release.js | 8 +- node_modules/semantic-release/cli.js | 14 +- .../docs/developer-guide/js-api.md | 62 +- .../docs/extending/plugins-list.md | 30 +- .../shareable-configurations-list.md | 8 + .../semantic-release/docs/recipes/README.md | 6 + .../docs/recipes/distribution-channels.md | 116 + .../docs/recipes/github-actions.md | 30 +- .../docs/recipes/gitlab-ci.md | 53 +- .../docs/recipes/jenkins-ci.md | 61 + .../docs/recipes/maintenance-releases.md | 156 + .../docs/recipes/pre-releases.md | 196 + .../semantic-release/docs/recipes/travis.md | 2 + .../semantic-release/docs/support/FAQ.md | 20 +- .../docs/support/node-version.md | 6 +- .../docs/support/resources.md | 1 + .../docs/support/troubleshooting.md | 13 + .../semantic-release/docs/usage/README.md | 1 + .../docs/usage/ci-configuration.md | 13 +- .../docs/usage/configuration.md | 36 +- .../docs/usage/getting-started.md | 5 +- .../semantic-release/docs/usage/plugins.md | 8 +- .../docs/usage/workflow-configuration.md | 186 + node_modules/semantic-release/index.js | 156 +- .../semantic-release/lib/branches/expand.js | 18 + .../semantic-release/lib/branches/get-tags.js | 33 + .../semantic-release/lib/branches/index.js | 70 + .../lib/branches/normalize.js | 106 + .../lib/definitions/branches.js | 23 + .../lib/definitions/constants.js | 8 +- .../lib/definitions/errors.js | 124 +- .../lib/definitions/plugins.js | 25 +- .../semantic-release/lib/get-commits.js | 19 +- .../semantic-release/lib/get-config.js | 28 +- .../semantic-release/lib/get-git-auth-url.js | 89 +- .../semantic-release/lib/get-last-release.js | 43 +- .../semantic-release/lib/get-next-version.js | 30 +- .../lib/get-release-to-add.js | 60 + node_modules/semantic-release/lib/git.js | 240 +- .../semantic-release/lib/hide-sensitive.js | 20 +- .../semantic-release/lib/plugins/index.js | 12 +- .../semantic-release/lib/plugins/normalize.js | 4 +- .../semantic-release/lib/plugins/pipeline.js | 2 +- .../semantic-release/lib/plugins/utils.js | 4 +- node_modules/semantic-release/lib/utils.js | 95 +- node_modules/semantic-release/lib/verify.js | 21 +- .../auth-token}/LICENSE | 12 +- .../@octokit/auth-token/README.md | 270 + .../@octokit/auth-token/dist-node/index.js | 49 + .../auth-token/dist-node/index.js.map | 1 + .../@octokit/auth-token/dist-src/auth.js | 12 + .../@octokit/auth-token/dist-src/hook.js | 6 + .../@octokit/auth-token/dist-src/index.js | 14 + .../@octokit/auth-token/dist-src/types.js} | 0 .../dist-src/with-authorization-prefix.js | 11 + .../@octokit/auth-token/dist-types/auth.d.ts | 2 + .../@octokit/auth-token/dist-types/hook.d.ts | 2 + .../@octokit/auth-token/dist-types/index.d.ts | 7 + .../@octokit/auth-token/dist-types/types.d.ts | 25 + .../dist-types/with-authorization-prefix.d.ts | 6 + .../@octokit/auth-token/dist-web/index.js | 46 + .../@octokit/auth-token/dist-web/index.js.map | 1 + .../node_modules/@octokit/types/LICENSE | 0 .../node_modules/@octokit/types/README.md | 64 + .../@octokit/types/dist-node/index.js | 8 + .../@octokit/types/dist-node/index.js.map | 1 + .../@octokit/types/dist-src/AuthInterface.js | 0 .../types/dist-src/EndpointDefaults.js | 0 .../types/dist-src/EndpointInterface.js | 0 .../types/dist-src/EndpointOptions.js | 0 .../@octokit/types/dist-src/Fetch.js | 0 .../GetResponseTypeFromEndpointMethod.js | 0 .../types/dist-src/OctokitResponse.js | 0 .../@octokit/types/dist-src/RequestError.js} | 0 .../@octokit/types/dist-src/RequestHeaders.js | 0 .../types/dist-src/RequestInterface.js | 0 .../@octokit/types/dist-src/RequestMethod.js | 0 .../@octokit/types/dist-src/RequestOptions.js | 0 .../types/dist-src/RequestParameters.js | 0 .../types/dist-src/RequestRequestOptions.js | 0 .../types/dist-src/ResponseHeaders.js | 0 .../@octokit/types/dist-src/Route.js | 0 .../@octokit/types/dist-src/Signal.js | 0 .../types/dist-src/StrategyInterface.js | 0 .../@octokit/types/dist-src/Url.js | 0 .../@octokit/types/dist-src/VERSION.js | 1 + .../types/dist-src/generated/Endpoints.js | 0 .../@octokit/types/dist-src/index.js | 21 + .../types/dist-types/AuthInterface.d.ts | 31 + .../types/dist-types/EndpointDefaults.d.ts | 21 + .../types/dist-types/EndpointInterface.d.ts | 65 + .../types/dist-types/EndpointOptions.d.ts | 7 + .../@octokit/types/dist-types/Fetch.d.ts | 4 + .../GetResponseTypeFromEndpointMethod.d.ts | 5 + .../types/dist-types/OctokitResponse.d.ts | 0 .../types/dist-types/RequestError.d.ts | 11 + .../types/dist-types/RequestHeaders.d.ts | 15 + .../types/dist-types/RequestInterface.d.ts | 34 + .../types/dist-types/RequestMethod.d.ts | 4 + .../types/dist-types/RequestOptions.d.ts | 14 + .../types/dist-types/RequestParameters.d.ts | 45 + .../dist-types/RequestRequestOptions.d.ts | 26 + .../types/dist-types/ResponseHeaders.d.ts | 20 + .../@octokit/types/dist-types/Route.d.ts | 4 + .../@octokit/types/dist-types/Signal.d.ts | 6 + .../types/dist-types/StrategyInterface.d.ts | 4 + .../@octokit/types/dist-types/Url.d.ts | 4 + .../@octokit/types/dist-types/VERSION.d.ts | 1 + .../types/dist-types/generated/Endpoints.d.ts | 39437 +++++++++ .../@octokit/types/dist-types/index.d.ts | 21 + .../@octokit/types/dist-web/index.js | 4 + .../@octokit/types/dist-web/index.js.map | 1 + .../node_modules/@octokit/types/package.json | 49 + .../@octokit/auth-token/package.json | 48 + .../node_modules/@octokit/core/LICENSE | 21 + .../node_modules/@octokit/core/README.md | 406 + .../@octokit/core/dist-node/index.js | 175 + .../@octokit/core/dist-node/index.js.map | 1 + .../@octokit/core/dist-src/index.js | 129 + .../@octokit/core/dist-src/types.js | 0 .../@octokit/core/dist-src/version.js | 1 + .../@octokit/core/dist-types/index.d.ts | 40 + .../@octokit/core/dist-types/types.d.ts | 22 + .../@octokit/core/dist-types/version.d.ts | 1 + .../@octokit/core/dist-web/index.js | 134 + .../@octokit/core/dist-web/index.js.map | 1 + .../core/node_modules/@octokit/types/LICENSE | 7 + .../node_modules/@octokit/types/README.md | 64 + .../@octokit/types/dist-node/index.js | 8 + .../@octokit/types/dist-node/index.js.map | 1 + .../@octokit/types/dist-src/AuthInterface.js | 0 .../types/dist-src/EndpointDefaults.js | 0 .../types/dist-src/EndpointInterface.js | 0 .../types/dist-src/EndpointOptions.js | 0 .../@octokit/types/dist-src/Fetch.js | 0 .../GetResponseTypeFromEndpointMethod.js | 0 .../types/dist-src/OctokitResponse.js | 0 .../@octokit/types/dist-src/RequestError.js | 0 .../@octokit/types/dist-src/RequestHeaders.js | 0 .../types/dist-src/RequestInterface.js | 0 .../@octokit/types/dist-src/RequestMethod.js | 0 .../@octokit/types/dist-src/RequestOptions.js | 0 .../types/dist-src/RequestParameters.js | 0 .../types/dist-src/RequestRequestOptions.js | 0 .../types/dist-src/ResponseHeaders.js | 0 .../@octokit/types/dist-src/Route.js | 0 .../@octokit/types/dist-src/Signal.js | 0 .../types/dist-src/StrategyInterface.js | 0 .../@octokit/types/dist-src/Url.js | 0 .../@octokit/types/dist-src/VERSION.js | 1 + .../types/dist-src/generated/Endpoints.js | 0 .../@octokit/types/dist-src/index.js | 21 + .../types/dist-types/AuthInterface.d.ts | 31 + .../types/dist-types/EndpointDefaults.d.ts | 21 + .../types/dist-types/EndpointInterface.d.ts | 65 + .../types/dist-types/EndpointOptions.d.ts | 7 + .../@octokit/types/dist-types/Fetch.d.ts | 4 + .../GetResponseTypeFromEndpointMethod.d.ts | 5 + .../types/dist-types/OctokitResponse.d.ts | 0 .../types/dist-types/RequestError.d.ts | 11 + .../types/dist-types/RequestHeaders.d.ts | 15 + .../types/dist-types/RequestInterface.d.ts | 34 + .../types/dist-types/RequestMethod.d.ts | 4 + .../types/dist-types/RequestOptions.d.ts | 14 + .../types/dist-types/RequestParameters.d.ts | 45 + .../dist-types/RequestRequestOptions.d.ts | 26 + .../types/dist-types/ResponseHeaders.d.ts | 20 + .../@octokit/types/dist-types/Route.d.ts | 4 + .../@octokit/types/dist-types/Signal.d.ts | 6 + .../types/dist-types/StrategyInterface.d.ts | 4 + .../@octokit/types/dist-types/Url.d.ts | 4 + .../@octokit/types/dist-types/VERSION.d.ts | 1 + .../types/dist-types/generated/Endpoints.d.ts | 39437 +++++++++ .../@octokit/types/dist-types/index.d.ts | 21 + .../@octokit/types/dist-web/index.js | 4 + .../@octokit/types/dist-web/index.js.map | 1 + .../node_modules/@octokit/types/package.json | 49 + .../node_modules/@octokit/core/package.json | 57 + .../node_modules/@octokit/graphql/LICENSE | 21 + .../node_modules/@octokit/graphql/README.md | 384 + .../@octokit/graphql/dist-node/index.js | 108 + .../@octokit/graphql/dist-node/index.js.map | 1 + .../@octokit/graphql/dist-src/error.js | 15 + .../@octokit/graphql/dist-src/graphql.js | 47 + .../@octokit/graphql/dist-src/index.js | 17 + .../@octokit/graphql/dist-src/types.js | 0 .../@octokit/graphql/dist-src/version.js | 1 + .../graphql/dist-src/with-defaults.js | 12 + .../@octokit/graphql/dist-types/error.d.ts | 9 + .../@octokit/graphql/dist-types/graphql.d.ts | 3 + .../@octokit/graphql/dist-types/index.d.ts | 3 + .../@octokit/graphql/dist-types/types.d.ts | 50 + .../@octokit/graphql/dist-types/version.d.ts | 1 + .../graphql/dist-types/with-defaults.d.ts | 3 + .../@octokit/graphql/dist-web/index.js | 95 + .../@octokit/graphql/dist-web/index.js.map | 1 + .../node_modules/@octokit/types/LICENSE | 7 + .../node_modules/@octokit/types/README.md | 64 + .../@octokit/types/dist-node/index.js | 8 + .../@octokit/types/dist-node/index.js.map | 1 + .../@octokit/types/dist-src/AuthInterface.js | 0 .../types/dist-src/EndpointDefaults.js | 0 .../types/dist-src/EndpointInterface.js | 0 .../types/dist-src/EndpointOptions.js | 0 .../@octokit/types/dist-src/Fetch.js | 0 .../GetResponseTypeFromEndpointMethod.js | 0 .../types/dist-src/OctokitResponse.js | 0 .../@octokit/types/dist-src/RequestError.js | 0 .../@octokit/types/dist-src/RequestHeaders.js | 0 .../types/dist-src/RequestInterface.js | 0 .../@octokit/types/dist-src/RequestMethod.js | 0 .../@octokit/types/dist-src/RequestOptions.js | 0 .../types/dist-src/RequestParameters.js | 0 .../types/dist-src/RequestRequestOptions.js | 0 .../types/dist-src/ResponseHeaders.js | 0 .../@octokit/types/dist-src/Route.js | 0 .../@octokit/types/dist-src/Signal.js | 0 .../types/dist-src/StrategyInterface.js | 0 .../@octokit/types/dist-src/Url.js | 0 .../@octokit/types/dist-src/VERSION.js | 1 + .../types/dist-src/generated/Endpoints.js | 0 .../@octokit/types/dist-src/index.js | 21 + .../types/dist-types/AuthInterface.d.ts | 31 + .../types/dist-types/EndpointDefaults.d.ts | 21 + .../types/dist-types/EndpointInterface.d.ts | 65 + .../types/dist-types/EndpointOptions.d.ts | 7 + .../@octokit/types/dist-types/Fetch.d.ts | 4 + .../GetResponseTypeFromEndpointMethod.d.ts | 5 + .../types/dist-types/OctokitResponse.d.ts | 17 + .../types/dist-types/RequestError.d.ts | 11 + .../types/dist-types/RequestHeaders.d.ts | 15 + .../types/dist-types/RequestInterface.d.ts | 34 + .../types/dist-types/RequestMethod.d.ts | 4 + .../types/dist-types/RequestOptions.d.ts | 14 + .../types/dist-types/RequestParameters.d.ts | 45 + .../dist-types/RequestRequestOptions.d.ts | 26 + .../types/dist-types/ResponseHeaders.d.ts | 20 + .../@octokit/types/dist-types/Route.d.ts | 4 + .../@octokit/types/dist-types/Signal.d.ts | 6 + .../types/dist-types/StrategyInterface.d.ts | 4 + .../@octokit/types/dist-types/Url.d.ts | 4 + .../@octokit/types/dist-types/VERSION.d.ts | 1 + .../types/dist-types/generated/Endpoints.d.ts | 39437 +++++++++ .../@octokit/types/dist-types/index.d.ts | 21 + .../@octokit/types/dist-web/index.js | 4 + .../@octokit/types/dist-web/index.js.map | 1 + .../node_modules/@octokit/types/package.json | 49 + .../universal-user-agent/LICENSE.md | 0 .../universal-user-agent/README.md | 0 .../universal-user-agent/dist-node/index.js | 0 .../dist-node/index.js.map | 0 .../universal-user-agent/dist-src/index.js | 0 .../dist-types/index.d.ts | 0 .../universal-user-agent/dist-web/index.js | 0 .../dist-web/index.js.map | 0 .../universal-user-agent/package.json | 0 .../@octokit/graphql/package.json | 54 + .../@octokit/plugin-paginate-rest/LICENSE | 7 + .../@octokit/plugin-paginate-rest/README.md | 0 .../plugin-paginate-rest/dist-node/index.js | 0 .../dist-node/index.js.map | 0 .../generated/paginating-endpoints.js | 1 + .../plugin-paginate-rest/dist-src/index.js | 0 .../plugin-paginate-rest/dist-src/iterator.js | 0 .../normalize-paginated-list-response.js | 0 .../plugin-paginate-rest/dist-src/paginate.js | 0 .../plugin-paginate-rest/dist-src/types.js | 1 + .../plugin-paginate-rest/dist-src/version.js | 0 .../generated/paginating-endpoints.d.ts | 0 .../dist-types/index.d.ts | 0 .../dist-types/iterator.d.ts | 0 .../normalize-paginated-list-response.d.ts | 0 .../dist-types/paginate.d.ts | 0 .../dist-types/types.d.ts | 0 .../dist-types/version.d.ts | 0 .../plugin-paginate-rest/dist-web/index.js | 0 .../dist-web/index.js.map | 0 .../node_modules/@octokit/types/LICENSE | 7 + .../node_modules/@octokit/types/README.md | 64 + .../@octokit/types/dist-node/index.js | 0 .../@octokit/types/dist-node/index.js.map | 1 + .../@octokit/types/dist-src/AuthInterface.js | 1 + .../types/dist-src/EndpointDefaults.js | 1 + .../types/dist-src/EndpointInterface.js | 1 + .../types/dist-src/EndpointOptions.js | 1 + .../@octokit/types/dist-src/Fetch.js | 1 + .../GetResponseTypeFromEndpointMethod.js | 1 + .../types/dist-src/OctokitResponse.js | 1 + .../@octokit/types/dist-src/RequestError.js | 1 + .../@octokit/types/dist-src/RequestHeaders.js | 1 + .../types/dist-src/RequestInterface.js | 1 + .../@octokit/types/dist-src/RequestMethod.js | 1 + .../@octokit/types/dist-src/RequestOptions.js | 1 + .../types/dist-src/RequestParameters.js | 1 + .../types/dist-src/RequestRequestOptions.js | 1 + .../types/dist-src/ResponseHeaders.js | 1 + .../@octokit/types/dist-src/Route.js | 1 + .../@octokit/types/dist-src/Signal.js | 1 + .../types/dist-src/StrategyInterface.js | 1 + .../@octokit/types/dist-src/Url.js | 1 + .../@octokit/types/dist-src/VERSION.js | 0 .../types/dist-src/generated/Endpoints.js | 1 + .../@octokit/types/dist-src/index.js | 21 + .../types/dist-types/AuthInterface.d.ts | 31 + .../types/dist-types/EndpointDefaults.d.ts | 21 + .../types/dist-types/EndpointInterface.d.ts | 65 + .../types/dist-types/EndpointOptions.d.ts | 7 + .../@octokit/types/dist-types/Fetch.d.ts | 4 + .../GetResponseTypeFromEndpointMethod.d.ts | 5 + .../types/dist-types/OctokitResponse.d.ts | 17 + .../types/dist-types/RequestError.d.ts | 11 + .../types/dist-types/RequestHeaders.d.ts | 15 + .../types/dist-types/RequestInterface.d.ts | 34 + .../types/dist-types/RequestMethod.d.ts | 4 + .../types/dist-types/RequestOptions.d.ts | 14 + .../types/dist-types/RequestParameters.d.ts | 45 + .../dist-types/RequestRequestOptions.d.ts | 26 + .../types/dist-types/ResponseHeaders.d.ts | 20 + .../@octokit/types/dist-types/Route.d.ts | 4 + .../@octokit/types/dist-types/Signal.d.ts | 6 + .../types/dist-types/StrategyInterface.d.ts | 4 + .../@octokit/types/dist-types/Url.d.ts | 4 + .../@octokit/types/dist-types/VERSION.d.ts | 0 .../types/dist-types/generated/Endpoints.d.ts | 0 .../@octokit/types/dist-types/index.d.ts | 21 + .../@octokit/types/dist-web/index.js | 0 .../@octokit/types/dist-web/index.js.map | 1 + .../node_modules/@octokit/types/package.json | 0 .../plugin-paginate-rest/package.json | 0 .../@octokit/plugin-request-log/LICENSE | 7 + .../@octokit/plugin-request-log/README.md | 70 + .../plugin-request-log/dist-node/index.js | 30 + .../plugin-request-log/dist-node/index.js.map | 1 + .../plugin-request-log/dist-src/index.js | 24 + .../plugin-request-log/dist-src/version.js | 1 + .../plugin-request-log/dist-types/index.d.ts | 9 + .../dist-types/version.d.ts | 1 + .../plugin-request-log/dist-web/index.js | 28 + .../plugin-request-log/dist-web/index.js.map | 1 + .../@octokit/plugin-request-log/package.json | 44 + .../plugin-rest-endpoint-methods/LICENSE | 7 + .../plugin-rest-endpoint-methods/README.md | 0 .../dist-node/index.js | 0 .../dist-node/index.js.map | 0 .../dist-src/endpoints-to-methods.js | 0 .../dist-src/generated/endpoints.js | 0 .../dist-src/generated/method-types.js | 0 .../parameters-and-response-types.js | 0 .../dist-src/index.js | 0 .../dist-src/types.js | 0 .../dist-src/version.js | 0 .../dist-types/endpoints-to-methods.d.ts | 4 + .../dist-types/generated/endpoints.d.ts | 0 .../dist-types/generated/method-types.d.ts | 0 .../parameters-and-response-types.d.ts | 0 .../dist-types/index.d.ts | 0 .../dist-types/types.d.ts | 0 .../dist-types/version.d.ts | 0 .../dist-web/index.js | 0 .../dist-web/index.js.map | 0 .../plugin-rest-endpoint-methods/package.json | 0 .../node_modules/@octokit/rest/LICENSE | 0 .../node_modules/@octokit/rest/README.md | 0 .../@octokit/rest/dist-node/index.js | 0 .../@octokit/rest/dist-node/index.js.map | 0 .../@octokit/rest/dist-src/index.js | 8 + .../@octokit/rest/dist-src/version.js | 0 .../@octokit/rest/dist-types/index.d.ts | 13 + .../@octokit/rest/dist-types/version.d.ts | 0 .../@octokit/rest/dist-web/index.js | 0 .../@octokit/rest/dist-web/index.js.map | 0 .../node_modules/@octokit/rest/package.json | 0 .../node_modules/@octokit/types/LICENSE | 7 + .../node_modules/@octokit/types/README.md | 0 .../@octokit/types/dist-node/index.js | 0 .../@octokit/types/dist-node/index.js.map | 1 + .../@octokit/types/dist-src/AuthInterface.js | 0 .../types/dist-src/EndpointDefaults.js | 0 .../types/dist-src/EndpointInterface.js | 0 .../types/dist-src/EndpointOptions.js | 0 .../@octokit/types/dist-src/Fetch.js | 0 .../GetResponseTypeFromEndpointMethod.js | 0 .../types/dist-src/OctokitResponse.js | 0 .../@octokit/types/dist-src/RequestHeaders.js | 0 .../types/dist-src/RequestInterface.js | 0 .../@octokit/types/dist-src/RequestMethod.js | 0 .../@octokit/types/dist-src/RequestOptions.js | 0 .../types/dist-src/RequestParameters.js | 0 .../types/dist-src/RequestRequestOptions.js | 0 .../types/dist-src/ResponseHeaders.js | 0 .../@octokit/types/dist-src/Route.js | 0 .../@octokit/types/dist-src/Signal.js | 0 .../types/dist-src/StrategyInterface.js | 0 .../@octokit/types/dist-src/Url.js | 0 .../@octokit/types/dist-src/VERSION.js | 0 .../types/dist-src/generated/Endpoints.js | 0 .../@octokit/types/dist-src/index.js | 0 .../types/dist-types/AuthInterface.d.ts | 31 + .../types/dist-types/EndpointDefaults.d.ts | 21 + .../types/dist-types/EndpointInterface.d.ts | 65 + .../types/dist-types/EndpointOptions.d.ts | 7 + .../@octokit/types/dist-types/Fetch.d.ts | 4 + .../GetResponseTypeFromEndpointMethod.d.ts | 5 + .../types/dist-types/OctokitResponse.d.ts | 17 + .../types/dist-types/RequestHeaders.d.ts | 15 + .../types/dist-types/RequestInterface.d.ts | 34 + .../types/dist-types/RequestMethod.d.ts | 4 + .../types/dist-types/RequestOptions.d.ts | 14 + .../types/dist-types/RequestParameters.d.ts | 45 + .../dist-types/RequestRequestOptions.d.ts | 26 + .../types/dist-types/ResponseHeaders.d.ts | 20 + .../@octokit/types/dist-types/Route.d.ts | 4 + .../@octokit/types/dist-types/Signal.d.ts | 6 + .../types/dist-types/StrategyInterface.d.ts | 4 + .../@octokit/types/dist-types/Url.d.ts | 4 + .../@octokit/types/dist-types/VERSION.d.ts | 0 .../types/dist-types/generated/Endpoints.d.ts | 0 .../@octokit/types/dist-types/index.d.ts | 0 .../@octokit/types/dist-web/index.js | 0 .../@octokit/types/dist-web/index.js.map | 1 + .../node_modules/@octokit/types/package.json | 0 .../@semantic-release/github/README.md | 81 +- .../@semantic-release/github/index.js | 14 +- .../github/lib/add-channel.js | 52 + .../github/lib/definitions/constants.js | 5 + .../github/lib/definitions/errors.js | 11 +- .../github/lib/definitions/sr-issue-id.js | 1 - .../@semantic-release/github/lib/fail.js | 5 +- .../github/lib/find-sr-issues.js | 4 +- .../github/lib/get-client.js | 7 +- .../github/lib/get-fail-comment.js | 21 +- .../github/lib/get-release-links.js | 22 + .../github/lib/get-success-comment.js | 4 +- .../github/lib/glob-assets.js | 6 +- .../github/lib/is-prerelease.js | 1 + .../github/lib/parse-github-url.js | 8 +- .../@semantic-release/github/lib/publish.js | 45 +- .../github/lib/resolve-config.js | 10 +- .../@semantic-release/github/lib/success.js | 102 +- .../@semantic-release/github/lib/verify.js | 23 +- .../@semantic-release/github/package.json | 42 +- .../release-notes-generator/README.md | 75 - .../release-notes-generator/index.js | 93 - .../lib/hosts-config.js | 55 - .../lib/load-changelog-config.js | 42 - .../.bin/conventional-changelog-writer | 1 - .../.bin/conventional-commits-parser | 1 - .../node_modules/.bin/semantic-release | 1 - .../release-notes-generator/package.json | 101 - .../node_modules/agent-base/README.md | 145 - .../agent-base/dist/src/index.d.ts | 63 - .../node_modules/agent-base/dist/src/index.js | 206 - .../agent-base/dist/src/index.js.map | 1 - .../agent-base/dist/src/promisify.d.ts | 4 - .../agent-base/dist/src/promisify.js | 18 - .../agent-base/dist/src/promisify.js.map | 1 - .../node_modules/agent-base/package.json | 57 - .../node_modules/ansi-regex/index.d.ts | 37 + .../node_modules/ansi-regex/index.js | 10 + .../node_modules/ansi-regex/license | 9 + .../node_modules/ansi-regex/package.json | 55 + .../node_modules/ansi-regex/readme.md | 78 + .../node_modules/ansi-styles/index.d.ts | 197 + .../node_modules/ansi-styles/index.js | 163 + .../node_modules/ansi-styles/license | 9 + .../node_modules/ansi-styles/package.json | 57 + .../node_modules/ansi-styles/readme.md | 158 + .../node_modules/braces/CHANGELOG.md | 184 + .../node_modules/braces/LICENSE | 21 + .../node_modules/braces/README.md | 593 + .../node_modules/braces/index.js | 170 + .../node_modules/braces/lib/compile.js | 57 + .../node_modules/braces/lib/constants.js | 57 + .../node_modules/braces/lib/expand.js | 113 + .../node_modules/braces/lib/parse.js | 333 + .../node_modules/braces/lib/stringify.js | 32 + .../node_modules/braces/lib/utils.js | 112 + .../node_modules/braces/package.json | 77 + .../node_modules/cliui/CHANGELOG.md | 76 + .../node_modules/cliui/LICENSE.txt | 14 + .../node_modules/cliui/README.md | 115 + .../node_modules/cliui/index.js | 354 + .../node_modules/cliui/package.json | 65 + .../node_modules/color-convert/CHANGELOG.md | 54 + .../node_modules/color-convert}/LICENSE | 28 +- .../node_modules/color-convert/README.md | 68 + .../node_modules/color-convert/conversions.js | 839 + .../node_modules/color-convert/index.js | 81 + .../node_modules/color-convert/package.json | 48 + .../node_modules/color-convert/route.js | 97 + .../node_modules/color-name/LICENSE | 8 + .../node_modules/color-name/README.md | 11 + .../node_modules/color-name/index.js | 152 + .../node_modules/color-name/package.json | 28 + .../node_modules/emoji-regex/LICENSE-MIT.txt | 20 + .../node_modules/emoji-regex/README.md | 73 + .../node_modules/emoji-regex/es2015/index.js | 6 + .../node_modules/emoji-regex/es2015/text.js | 6 + .../node_modules/emoji-regex/index.d.ts | 23 + .../node_modules/emoji-regex/index.js | 6 + .../node_modules/emoji-regex/package.json | 50 + .../node_modules/emoji-regex/text.js | 6 + .../node_modules/fill-range/LICENSE | 21 + .../node_modules/fill-range/README.md | 237 + .../node_modules/fill-range/index.js | 249 + .../node_modules/fill-range/package.json | 69 + .../node_modules/find-up/index.d.ts | 137 + .../node_modules/find-up/index.js | 89 + .../node_modules/find-up/license | 9 + .../node_modules/find-up/package.json | 53 + .../node_modules/find-up/readme.md | 156 + .../node_modules/http-proxy-agent/README.md | 74 - .../node_modules/http-proxy-agent/index.js | 129 - .../http-proxy-agent/package.json | 38 - .../https-proxy-agent/.editorconfig | 37 - .../https-proxy-agent/.eslintrc.js | 86 - .../.github/workflows/test.yml | 46 - .../node_modules/https-proxy-agent/README.md | 137 - .../node_modules/https-proxy-agent/index.d.ts | 22 - .../node_modules/https-proxy-agent/index.js | 239 - .../https-proxy-agent/package.json | 36 - .../is-fullwidth-code-point/index.d.ts | 17 + .../is-fullwidth-code-point/index.js | 50 + .../is-fullwidth-code-point/license | 9 + .../is-fullwidth-code-point/package.json | 42 + .../is-fullwidth-code-point/readme.md | 39 + .../node_modules/is-number/LICENSE | 21 + .../node_modules/is-number/README.md | 187 + .../node_modules/is-number/index.js | 18 + .../node_modules/is-number/package.json | 82 + .../node_modules/issue-parser/README.md | 440 - .../node_modules/issue-parser/index.js | 197 - .../issue-parser/lib/hosts-config.js | 115 - .../node_modules/issue-parser/package.json | 80 - .../node_modules/locate-path/index.d.ts | 83 + .../node_modules/locate-path/index.js | 65 + .../node_modules/locate-path/license | 9 + .../node_modules/locate-path/package.json | 45 + .../node_modules/locate-path/readme.md | 122 + .../node_modules/micromatch/CHANGELOG.md | 108 + .../node_modules/micromatch/LICENSE | 21 + .../node_modules/micromatch/README.md | 1000 + .../node_modules/micromatch/index.js | 467 + .../node_modules/micromatch/package.json | 118 + .../node_modules/p-locate/index.d.ts | 64 + .../node_modules/p-locate/index.js | 52 + .../node_modules/p-locate/license | 9 + .../node_modules/p-locate/package.json | 53 + .../node_modules/p-locate/readme.md | 90 + .../node_modules/path-exists/index.d.ts | 28 + .../node_modules/path-exists/index.js | 23 + .../node_modules/path-exists/license | 9 + .../node_modules/path-exists}/package.json | 22 +- .../node_modules/path-exists/readme.md | 52 + .../node_modules/semver/CHANGELOG.md | 41 + .../node_modules/semver/README.md | 173 +- .../node_modules/semver/bin/semver.js | 157 +- .../node_modules/semver/classes/comparator.js | 139 + .../node_modules/semver/classes/index.js | 5 + .../node_modules/semver/classes/range.js | 463 + .../node_modules/semver/classes/semver.js | 290 + .../node_modules/semver/functions/clean.js | 6 + .../node_modules/semver/functions/cmp.js | 48 + .../node_modules/semver/functions/coerce.js | 51 + .../semver/functions/compare-build.js | 7 + .../semver/functions/compare-loose.js | 3 + .../node_modules/semver/functions/compare.js | 5 + .../node_modules/semver/functions/diff.js | 23 + .../node_modules/semver/functions/eq.js | 3 + .../node_modules/semver/functions/gt.js | 3 + .../node_modules/semver/functions/gte.js | 3 + .../node_modules/semver/functions/inc.js | 15 + .../node_modules/semver/functions/lt.js | 3 + .../node_modules/semver/functions/lte.js | 3 + .../node_modules/semver/functions/major.js | 3 + .../node_modules/semver/functions/minor.js | 3 + .../node_modules/semver/functions/neq.js | 3 + .../node_modules/semver/functions/parse.js | 37 + .../node_modules/semver/functions/patch.js | 3 + .../semver/functions/prerelease.js | 6 + .../node_modules/semver/functions/rcompare.js | 3 + .../node_modules/semver/functions/rsort.js | 3 + .../semver/functions/satisfies.js | 10 + .../node_modules/semver/functions/sort.js | 3 + .../node_modules/semver/functions/valid.js | 6 + .../node_modules/semver/index.js | 48 + .../node_modules/semver/internal/constants.js | 17 + .../node_modules/semver/internal/debug.js | 9 + .../semver/internal/identifiers.js | 23 + .../node_modules/semver/internal/re.js | 182 + .../node_modules/semver/package.json | 22 +- .../node_modules/semver/preload.js | 2 + .../node_modules/semver/ranges/gtr.js | 4 + .../node_modules/semver/ranges/intersects.js | 7 + .../node_modules/semver/ranges/ltr.js | 4 + .../semver/ranges/max-satisfying.js | 25 + .../semver/ranges/min-satisfying.js | 24 + .../node_modules/semver/ranges/min-version.js | 57 + .../node_modules/semver/ranges/outside.js | 80 + .../node_modules/semver/ranges/simplify.js | 44 + .../node_modules/semver/ranges/subset.js | 155 + .../semver/ranges/to-comparators.js | 8 + .../node_modules/semver/ranges/valid.js | 11 + .../node_modules/string-width/index.d.ts | 29 + .../node_modules/string-width/index.js | 18 +- .../node_modules/string-width/package.json | 22 +- .../node_modules/string-width/readme.md | 23 +- .../node_modules/strip-ansi/index.d.ts | 6 +- .../node_modules/strip-ansi/index.js | 5 +- .../node_modules/strip-ansi/package.json | 14 +- .../node_modules/strip-ansi/readme.md | 23 +- .../node_modules/to-regex-range/LICENSE | 21 + .../node_modules/to-regex-range/README.md | 305 + .../node_modules/to-regex-range/index.js | 288 + .../node_modules/to-regex-range/package.json | 88 + .../universal-user-agent/LICENSE.md | 0 .../universal-user-agent/README.md | 0 .../universal-user-agent/dist-node/index.js | 0 .../dist-node/index.js.map | 0 .../universal-user-agent/dist-src/browser.js | 0 .../universal-user-agent/dist-src/index.js | 0 .../universal-user-agent/dist-src/node.js | 0 .../dist-types/browser.d.ts | 0 .../dist-types/index.d.ts | 0 .../universal-user-agent/dist-types/node.d.ts | 0 .../universal-user-agent/dist-web/index.js | 0 .../dist-web/index.js.map | 0 .../universal-user-agent/package.json | 0 .../node_modules/wrap-ansi/index.js | 186 + .../node_modules/wrap-ansi/license | 9 + .../node_modules/wrap-ansi/package.json | 61 + .../node_modules/wrap-ansi/readme.md | 97 + .../node_modules/yargs/CHANGELOG.md | 1238 +- .../node_modules/yargs/LICENSE | 5 +- .../node_modules/yargs/README.md | 16 +- .../yargs/build/lib/apply-extends.d.ts | 2 + .../yargs/build/lib/apply-extends.js | 65 + .../node_modules/yargs/build/lib/argsert.d.ts | 2 + .../node_modules/yargs/build/lib/argsert.js | 65 + .../node_modules/yargs/build/lib/command.d.ts | 64 + .../node_modules/yargs/build/lib/command.js | 416 + .../yargs/build/lib/common-types.d.ts | 36 + .../yargs/build/lib/common-types.js | 25 + .../yargs/build/lib/completion-templates.d.ts | 2 + .../{ => build}/lib/completion-templates.js | 11 +- .../yargs/build/lib/completion.d.ts | 21 + .../yargs/build/lib/completion.js | 135 + .../yargs/build/lib/is-promise.d.ts | 1 + .../yargs/build/lib/is-promise.js | 9 + .../yargs/build/lib/levenshtein.d.ts | 1 + .../yargs/{ => build}/lib/levenshtein.js | 66 +- .../yargs/build/lib/middleware.d.ts | 10 + .../yargs/build/lib/middleware.js | 57 + .../yargs/build/lib/obj-filter.d.ts | 1 + .../yargs/build/lib/obj-filter.js | 14 + .../yargs/build/lib/parse-command.d.ts | 11 + .../yargs/build/lib/parse-command.js | 36 + .../yargs/build/lib/process-argv.d.ts | 2 + .../yargs/build/lib/process-argv.js | 31 + .../node_modules/yargs/build/lib/usage.d.ts | 49 + .../node_modules/yargs/build/lib/usage.js | 540 + .../yargs/build/lib/validation.d.ts | 34 + .../yargs/build/lib/validation.js | 330 + .../node_modules/yargs/build/lib/yargs.d.ts | 274 + .../node_modules/yargs/build/lib/yargs.js | 1190 + .../node_modules/yargs/build/lib/yerror.d.ts | 4 + .../node_modules/yargs/build/lib/yerror.js | 11 + .../node_modules/yargs/index.js | 3 +- .../node_modules/yargs/lib/apply-extends.js | 67 - .../node_modules/yargs/lib/argsert.js | 68 - .../node_modules/yargs/lib/command.js | 447 - .../node_modules/yargs/lib/completion.js | 116 - .../node_modules/yargs/lib/is-promise.js | 3 - .../node_modules/yargs/lib/middleware.js | 64 - .../node_modules/yargs/lib/obj-filter.js | 11 - .../node_modules/yargs/lib/usage.js | 549 - .../node_modules/yargs/lib/validation.js | 350 - .../node_modules/yargs/lib/yerror.js | 11 - .../node_modules/yargs/locales/be.json | 11 +- .../node_modules/yargs/locales/de.json | 11 +- .../node_modules/yargs/locales/en.json | 15 +- .../node_modules/yargs/locales/es.json | 11 +- .../node_modules/yargs/locales/fi.json | 49 + .../node_modules/yargs/locales/fr.json | 62 +- .../node_modules/yargs/locales/hi.json | 11 +- .../node_modules/yargs/locales/hu.json | 11 +- .../node_modules/yargs/locales/id.json | 11 +- .../node_modules/yargs/locales/it.json | 11 +- .../node_modules/yargs/locales/ja.json | 21 +- .../node_modules/yargs/locales/ko.json | 11 +- .../node_modules/yargs/locales/nb.json | 11 +- .../node_modules/yargs/locales/nl.json | 11 +- .../node_modules/yargs/locales/nn.json | 13 +- .../node_modules/yargs/locales/pl.json | 11 +- .../node_modules/yargs/locales/pt.json | 11 +- .../node_modules/yargs/locales/pt_BR.json | 10 +- .../node_modules/yargs/locales/ru.json | 11 +- .../node_modules/yargs/locales/th.json | 11 +- .../node_modules/yargs/locales/tr.json | 11 +- .../node_modules/yargs/locales/zh_CN.json | 11 +- .../node_modules/yargs/locales/zh_TW.json | 11 +- .../node_modules/yargs/package.json | 61 +- .../node_modules/yargs/yargs.js | 1256 +- node_modules/semantic-release/package.json | 55 +- node_modules/semver-diff/index.d.ts | 58 + node_modules/semver-diff/index.js | 28 +- node_modules/semver-diff/license | 20 +- .../semver-diff/node_modules/.bin/semver | 2 +- .../node_modules/semver/CHANGELOG.md | 70 + .../semver-diff/node_modules/semver/LICENSE | 15 + .../semver-diff/node_modules/semver/README.md | 443 + .../node_modules/semver/bin/semver.js | 174 + .../node_modules/semver/package.json | 28 + .../semver-diff/node_modules/semver/range.bnf | 16 + .../node_modules/semver/semver.js | 0 node_modules/semver-diff/package.json | 67 +- node_modules/semver-diff/readme.md | 45 +- node_modules/supports-color/index.js | 31 +- node_modules/supports-color/package.json | 6 +- node_modules/supports-color/readme.md | 21 +- node_modules/supports-hyperlinks/index.js | 14 +- .../node_modules/has-flag/index.d.ts | 39 + .../node_modules/has-flag/index.js | 12 +- .../node_modules/has-flag/license | 20 +- .../node_modules/has-flag/package.json | 91 +- .../node_modules/has-flag/readme.md | 28 +- .../node_modules/supports-color/browser.js | 5 + .../node_modules/supports-color/index.js | 135 + .../node_modules/supports-color/license | 9 + .../node_modules/supports-color/package.json | 53 + .../node_modules/supports-color/readme.md | 33 +- node_modules/supports-hyperlinks/package.json | 31 +- node_modules/supports-hyperlinks/readme.md | 3 + node_modules/temp-dir/index.d.ts | 18 + node_modules/temp-dir/index.js | 8 +- node_modules/temp-dir/license | 20 +- node_modules/temp-dir/package.json | 75 +- node_modules/temp-dir/readme.md | 6 +- node_modules/tempy/index.d.ts | 45 +- node_modules/tempy/index.js | 26 +- node_modules/tempy/license | 2 +- .../tempy/node_modules/is-stream/index.d.ts | 80 + .../tempy/node_modules/is-stream/index.js | 29 + .../tempy/node_modules/is-stream/license | 9 + .../tempy/node_modules/is-stream/package.json | 41 + .../tempy/node_modules/is-stream/readme.md | 57 + .../tempy/node_modules/type-fest/index.d.ts | 231 +- .../tempy/node_modules/type-fest/license | 2 +- .../tempy/node_modules/type-fest/package.json | 26 +- .../tempy/node_modules/type-fest/readme.md | 570 +- .../type-fest/source/async-return-type.d.ts | 23 + .../node_modules/type-fest/source/basic.d.ts | 67 + .../type-fest/source/conditional-except.d.ts | 43 + .../type-fest/source/conditional-keys.d.ts | 43 + .../type-fest/source/conditional-pick.d.ts | 42 + .../node_modules/type-fest/source/except.d.ts | 22 + .../type-fest/source/literal-union.d.ts | 33 + .../type-fest/source/merge-exclusive.d.ts | 39 + .../node_modules/type-fest/source/merge.d.ts | 22 + .../type-fest/source/mutable.d.ts | 22 + .../node_modules/type-fest/source/opaque.d.ts | 65 + .../type-fest/source/package-json.d.ts | 115 +- .../type-fest/source/partial-deep.d.ts | 72 + .../type-fest/source/promisable.d.ts | 23 + .../type-fest/source/promise-value.d.ts | 20 + .../type-fest/source/readonly-deep.d.ts | 59 + .../source/require-at-least-one.d.ts | 32 + .../type-fest/source/require-exactly-one.d.ts | 35 + .../type-fest/source/set-optional.d.ts | 34 + .../type-fest/source/set-required.d.ts | 34 + .../type-fest/source/tsconfig-json.d.ts | 872 + .../source/union-to-intersection.d.ts | 58 + node_modules/tempy/package.json | 21 +- node_modules/tempy/readme.md | 42 +- node_modules/tunnel/.idea/encodings.xml | 6 + node_modules/tunnel/.idea/modules.xml | 8 + node_modules/tunnel/.idea/node-tunnel.iml | 12 + node_modules/tunnel/.idea/vcs.xml | 6 + node_modules/tunnel/.idea/workspace.xml | 797 + node_modules/tunnel/.travis.yml | 6 + node_modules/tunnel/CHANGELOG.md | 22 + .../node-fetch/LICENSE.md => tunnel/LICENSE} | 11 +- node_modules/tunnel/README.md | 185 + node_modules/tunnel/index.js | 1 + node_modules/tunnel/lib/tunnel.js | 264 + node_modules/tunnel/package.json | 34 + node_modules/unique-string/index.d.ts | 16 + node_modules/unique-string/license | 20 +- node_modules/unique-string/package.json | 80 +- node_modules/unique-string/readme.md | 4 +- .../node_modules/semver-diff/index.js | 27 + .../node_modules/semver-diff/license | 21 + .../semver-diff/node_modules/.bin/semver | 1 + .../node_modules/semver-diff/package.json | 34 + .../node_modules/semver-diff/readme.md | 52 + .../node_modules/iconv-lite/Changelog.md | 96 +- .../node_modules/iconv-lite/LICENSE | 0 .../node_modules/iconv-lite/README.md | 68 +- .../iconv-lite/encodings/dbcs-codec.js | 144 +- .../iconv-lite/encodings/dbcs-data.js | 0 .../iconv-lite/encodings/index.js | 3 +- .../iconv-lite/encodings/internal.js | 14 +- .../iconv-lite/encodings/sbcs-codec.js | 0 .../encodings/sbcs-data-generated.js | 0 .../iconv-lite/encodings/sbcs-data.js | 5 - .../encodings/tables/big5-added.json | 0 .../iconv-lite/encodings/tables/cp936.json | 0 .../iconv-lite/encodings/tables/cp949.json | 0 .../iconv-lite/encodings/tables/cp950.json | 0 .../iconv-lite/encodings/tables/eucjp.json | 0 .../encodings/tables/gb18030-ranges.json | 0 .../encodings/tables/gbk-added.json | 5 +- .../iconv-lite/encodings/tables/shiftjis.json | 0 .../iconv-lite/encodings/utf16.js | 96 +- .../node_modules/iconv-lite/encodings/utf7.js | 8 +- .../iconv-lite/lib/bom-handling.js | 0 .../iconv-lite/lib/extend-node.js | 0 .../node_modules/iconv-lite/lib/index.d.ts | 17 - .../node_modules/iconv-lite/lib/index.js | 53 +- .../node_modules/iconv-lite/lib/streams.js | 121 + .../node_modules/iconv-lite/package.json | 26 +- node_modules/yargs-parser/CHANGELOG.md | 134 + node_modules/yargs-parser/README.md | 63 +- node_modules/yargs-parser/index.js | 508 +- .../yargs-parser/lib/tokenize-arg-string.js | 12 +- node_modules/yargs-parser/package.json | 21 +- .../node_modules/yargs-parser/CHANGELOG.md | 40 - .../node_modules/yargs-parser/LICENSE.txt | 0 .../node_modules/yargs-parser/README.md | 26 +- .../node_modules/yargs-parser/index.js | 168 +- .../yargs-parser/lib/tokenize-arg-string.js | 0 .../node_modules/yargs-parser/package.json | 2 +- package.json | 12 +- src/index.js | 2 +- yarn.lock | 366 +- 2296 files changed, 364246 insertions(+), 275295 deletions(-) create mode 100644 .github/workflows/lint-pr-title-preview.yml rename node_modules/@actions/{github => core}/LICENSE.md (96%) create mode 100644 node_modules/@actions/core/lib/file-command.d.ts create mode 100644 node_modules/@actions/core/lib/file-command.js create mode 100644 node_modules/@actions/core/lib/file-command.js.map create mode 100644 node_modules/@actions/core/lib/utils.d.ts create mode 100644 node_modules/@actions/core/lib/utils.js create mode 100644 node_modules/@actions/core/lib/utils.js.map create mode 100644 node_modules/@actions/github/lib/internal/utils.d.ts create mode 100644 node_modules/@actions/github/lib/internal/utils.js create mode 100644 node_modules/@actions/github/lib/internal/utils.js.map create mode 100644 node_modules/@actions/github/lib/utils.d.ts create mode 100644 node_modules/@actions/github/lib/utils.js create mode 100644 node_modules/@actions/github/lib/utils.js.map create mode 100644 node_modules/@actions/http-client/LICENSE create mode 100644 node_modules/@actions/http-client/README.md create mode 100644 node_modules/@actions/http-client/RELEASES.md create mode 100644 node_modules/@actions/http-client/actions.png create mode 100644 node_modules/@actions/http-client/auth.d.ts create mode 100644 node_modules/@actions/http-client/auth.js create mode 100644 node_modules/@actions/http-client/index.d.ts create mode 100644 node_modules/@actions/http-client/index.js create mode 100644 node_modules/@actions/http-client/interfaces.d.ts create mode 100644 node_modules/@actions/http-client/interfaces.js create mode 100644 node_modules/@actions/http-client/package.json create mode 100644 node_modules/@actions/http-client/proxy.d.ts create mode 100644 node_modules/@actions/http-client/proxy.js create mode 100644 node_modules/@jest/core/node_modules/p-each-series/index.js rename node_modules/{p-each-series/node_modules/p-reduce => @jest/core/node_modules/p-each-series}/license (100%) create mode 100644 node_modules/@jest/core/node_modules/p-each-series/package.json create mode 100644 node_modules/@jest/core/node_modules/p-each-series/readme.md rename node_modules/{p-each-series => @jest/core}/node_modules/p-reduce/index.js (100%) create mode 100644 node_modules/@jest/core/node_modules/p-reduce/license rename node_modules/{p-each-series => @jest/core}/node_modules/p-reduce/package.json (100%) rename node_modules/{p-each-series => @jest/core}/node_modules/p-reduce/readme.md (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/LICENSE (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/README.md (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-node/index.js (84%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-node/index.js.map (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/AuthInterface.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/EndpointDefaults.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/EndpointInterface.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/EndpointOptions.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/Fetch.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/OctokitResponse.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestError.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestHeaders.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestInterface.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestMethod.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestOptions.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestParameters.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestRequestOptions.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/ResponseHeaders.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/Route.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/Signal.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/StrategyInterface.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/Url.js (100%) create mode 100644 node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/VERSION.js rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/generated/Endpoints.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-src/index.js (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/AuthInterface.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/Fetch.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts (100%) create mode 100644 node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-types/RequestError.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/RequestInterface.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/RequestMethod.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/RequestOptions.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/RequestParameters.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/Route.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/Signal.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-types/Url.d.ts (100%) create mode 100644 node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/VERSION.d.ts create mode 100644 node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/auth-token}/node_modules/@octokit/types/dist-types/index.d.ts (100%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-web/index.js (67%) rename node_modules/@octokit/{rest => auth-token}/node_modules/@octokit/types/dist-web/index.js.map (100%) create mode 100644 node_modules/@octokit/auth-token/node_modules/@octokit/types/package.json rename node_modules/@octokit/{rest/node_modules/@octokit/request-error => core/node_modules/@octokit/auth-token}/LICENSE (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/README.md create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-node/index.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-node/index.js.map create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/auth.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/hook.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/index.js rename node_modules/@octokit/{rest/node_modules/@octokit/request-error => core/node_modules/@octokit/auth-token}/dist-src/types.js (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/auth.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/hook.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/index.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/types.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/with-authorization-prefix.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-web/index.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-web/index.js.map create mode 100644 node_modules/@octokit/core/node_modules/@octokit/auth-token/package.json rename node_modules/{octokit-pagination-methods => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/LICENSE (91%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/README.md create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js.map create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/fetch-wrapper.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/get-buffer-response.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/index.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/version.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/with-defaults.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/get-buffer-response.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/index.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/version.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/with-defaults.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js.map rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types}/LICENSE (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/README.md (92%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-node/index.js rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-node/index.js.map (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/AuthInterface.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/EndpointDefaults.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/EndpointInterface.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/EndpointOptions.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/Fetch.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/OctokitResponse.js (100%) rename node_modules/@octokit/{plugin-rest-endpoint-methods/dist-src/generated/rest-endpoint-methods-types.js => core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestError.js} (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/RequestHeaders.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/RequestInterface.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/RequestMethod.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/RequestOptions.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/RequestParameters.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/RequestRequestOptions.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/ResponseHeaders.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/Route.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/Signal.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/StrategyInterface.js (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/Url.js (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/VERSION.js rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-src/generated/Endpoints.js (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/index.js rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/AuthInterface.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/Fetch.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestError.d.ts rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/RequestInterface.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/RequestMethod.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/RequestOptions.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/RequestParameters.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/Route.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/Signal.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/Url.d.ts (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/VERSION.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts rename node_modules/{@semantic-release/github => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-types/index.d.ts (95%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-web/index.js rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/dist-web/index.js.map (100%) rename node_modules/@octokit/{rest => core/node_modules/@octokit/graphql/node_modules/@octokit/request}/node_modules/@octokit/types/package.json (94%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/package.json rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => @octokit/core}/node_modules/@octokit/types/LICENSE (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/README.md create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-node/index.js rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-node/index.js.map (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js => @octokit/core/node_modules/@octokit/types/dist-src/AuthInterface.js} (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js => @octokit/core/node_modules/@octokit/types/dist-src/EndpointDefaults.js} (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointInterface.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointOptions.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Fetch.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/OctokitResponse.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestError.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestHeaders.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestInterface.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestMethod.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestOptions.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestParameters.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestRequestOptions.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/ResponseHeaders.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Route.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Signal.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/StrategyInterface.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Url.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/VERSION.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/generated/Endpoints.js create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-src/index.js rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/AuthInterface.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/Fetch.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestError.d.ts rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/RequestInterface.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/RequestMethod.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/RequestOptions.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/RequestParameters.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/Route.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/Signal.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts (100%) rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-types/Url.d.ts (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-types/VERSION.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-types/index.d.ts create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/dist-web/index.js rename node_modules/{@semantic-release/github => @octokit/core}/node_modules/@octokit/types/dist-web/index.js.map (100%) create mode 100644 node_modules/@octokit/core/node_modules/@octokit/types/package.json delete mode 100644 node_modules/@octokit/core/node_modules/node-fetch/CHANGELOG.md delete mode 100644 node_modules/@octokit/core/node_modules/node-fetch/README.md delete mode 100644 node_modules/@octokit/core/node_modules/node-fetch/browser.js delete mode 100644 node_modules/@octokit/core/node_modules/node-fetch/lib/index.es.js delete mode 100644 node_modules/@octokit/core/node_modules/node-fetch/lib/index.js delete mode 100644 node_modules/@octokit/core/node_modules/node-fetch/lib/index.mjs delete mode 100644 node_modules/@octokit/core/node_modules/node-fetch/package.json create mode 100644 node_modules/@octokit/graphql/dist-node/index.js create mode 100644 node_modules/@octokit/graphql/dist-node/index.js.map create mode 100644 node_modules/@octokit/graphql/dist-src/error.js create mode 100644 node_modules/@octokit/graphql/dist-src/graphql.js create mode 100644 node_modules/@octokit/graphql/dist-src/index.js rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-rest-endpoint-methods => @octokit/graphql}/dist-src/types.js (100%) create mode 100644 node_modules/@octokit/graphql/dist-src/version.js create mode 100644 node_modules/@octokit/graphql/dist-src/with-defaults.js create mode 100644 node_modules/@octokit/graphql/dist-types/error.d.ts create mode 100644 node_modules/@octokit/graphql/dist-types/graphql.d.ts create mode 100644 node_modules/@octokit/graphql/dist-types/index.d.ts create mode 100644 node_modules/@octokit/graphql/dist-types/types.d.ts create mode 100644 node_modules/@octokit/graphql/dist-types/version.d.ts create mode 100644 node_modules/@octokit/graphql/dist-types/with-defaults.d.ts create mode 100644 node_modules/@octokit/graphql/dist-web/index.js create mode 100644 node_modules/@octokit/graphql/dist-web/index.js.map delete mode 100644 node_modules/@octokit/graphql/index.js delete mode 100644 node_modules/@octokit/graphql/lib/error.js delete mode 100644 node_modules/@octokit/graphql/lib/graphql.js delete mode 100644 node_modules/@octokit/graphql/lib/with-defaults.js rename node_modules/{semantic-release/node_modules/issue-parser => @octokit/graphql/node_modules/@octokit/request}/LICENSE (86%) create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/README.md create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js.map create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/fetch-wrapper.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/get-buffer-response.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/index.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/version.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/with-defaults.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/get-buffer-response.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/index.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/version.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/with-defaults.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js.map rename node_modules/@octokit/{core/node_modules/@octokit/graphql => graphql/node_modules/@octokit/request}/node_modules/universal-user-agent/LICENSE.md (100%) rename node_modules/@octokit/{core/node_modules/@octokit/graphql => graphql/node_modules/@octokit/request}/node_modules/universal-user-agent/README.md (100%) rename node_modules/@octokit/{core/node_modules/@octokit/graphql => graphql/node_modules/@octokit/request}/node_modules/universal-user-agent/dist-node/index.js (100%) rename node_modules/@octokit/{core/node_modules/@octokit/graphql => graphql/node_modules/@octokit/request}/node_modules/universal-user-agent/dist-node/index.js.map (100%) rename node_modules/@octokit/{core/node_modules/@octokit/graphql => graphql/node_modules/@octokit/request}/node_modules/universal-user-agent/dist-src/index.js (100%) rename node_modules/@octokit/{core/node_modules/@octokit/graphql => graphql/node_modules/@octokit/request}/node_modules/universal-user-agent/dist-types/index.d.ts (100%) rename node_modules/@octokit/{core/node_modules/@octokit/graphql => graphql/node_modules/@octokit/request}/node_modules/universal-user-agent/dist-web/index.js (100%) rename node_modules/@octokit/{core/node_modules/@octokit/graphql => graphql/node_modules/@octokit/request}/node_modules/universal-user-agent/dist-web/index.js.map (100%) rename node_modules/@octokit/{core/node_modules/@octokit/graphql => graphql/node_modules/@octokit/request}/node_modules/universal-user-agent/package.json (100%) create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/request/package.json rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-rest-endpoint-methods => @octokit/graphql/node_modules/@octokit/types}/LICENSE (100%) create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/README.md create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-node/index.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-node/index.js.map create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/AuthInterface.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointDefaults.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointInterface.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointOptions.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Fetch.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/OctokitResponse.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestError.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestHeaders.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestInterface.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestMethod.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestOptions.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestParameters.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestRequestOptions.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/ResponseHeaders.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Route.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Signal.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/StrategyInterface.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Url.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/VERSION.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/generated/Endpoints.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/index.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/AuthInterface.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Fetch.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestError.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestInterface.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestMethod.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestOptions.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestParameters.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Route.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Signal.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Url.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/VERSION.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/index.d.ts create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-web/index.js create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/dist-web/index.js.map create mode 100644 node_modules/@octokit/graphql/node_modules/@octokit/types/package.json delete mode 100644 node_modules/@octokit/graphql/node_modules/universal-user-agent/.travis.yml delete mode 100644 node_modules/@octokit/graphql/node_modules/universal-user-agent/LICENSE.md delete mode 100644 node_modules/@octokit/graphql/node_modules/universal-user-agent/README.md delete mode 100644 node_modules/@octokit/graphql/node_modules/universal-user-agent/browser.js delete mode 100644 node_modules/@octokit/graphql/node_modules/universal-user-agent/cypress.json delete mode 100644 node_modules/@octokit/graphql/node_modules/universal-user-agent/index.d.ts delete mode 100644 node_modules/@octokit/graphql/node_modules/universal-user-agent/index.js delete mode 100644 node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json delete mode 100644 node_modules/@octokit/graphql/node_modules/universal-user-agent/test/smoke-test.js create mode 100644 node_modules/@octokit/openapi-types/.github/dependabot.yml create mode 100644 node_modules/@octokit/openapi-types/.github/workflows/release-notification.yml create mode 100644 node_modules/@octokit/openapi-types/.github/workflows/release.yml create mode 100644 node_modules/@octokit/openapi-types/.github/workflows/update.yml create mode 100644 node_modules/@octokit/openapi-types/CODE_OF_CONDUCT.md create mode 100644 node_modules/@octokit/openapi-types/LICENSE create mode 100644 node_modules/@octokit/openapi-types/README.md create mode 100644 node_modules/@octokit/openapi-types/cache/openapi-schema.json create mode 100644 node_modules/@octokit/openapi-types/generated/types.ts create mode 100644 node_modules/@octokit/openapi-types/package.json create mode 100644 node_modules/@octokit/openapi-types/scripts/download.js create mode 100644 node_modules/@octokit/openapi-types/scripts/update-package.js create mode 100644 node_modules/@octokit/plugin-paginate-rest/dist-src/compose-paginate.js create mode 100644 node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js create mode 100644 node_modules/@octokit/plugin-paginate-rest/dist-types/compose-paginate.d.ts create mode 100644 node_modules/@octokit/plugin-paginate-rest/dist-types/generated/paginating-endpoints.d.ts create mode 100644 node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestError.js create mode 100644 node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestError.d.ts create mode 100644 node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js create mode 100644 node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/method-types.js create mode 100644 node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/parameters-and-response-types.js delete mode 100644 node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/register-endpoints.js rename node_modules/{@semantic-release/github/node_modules => }/@octokit/plugin-rest-endpoint-methods/dist-types/endpoints-to-methods.d.ts (100%) create mode 100644 node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types.d.ts create mode 100644 node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts delete mode 100644 node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/rest-endpoint-methods-types.d.ts delete mode 100644 node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/register-endpoints.d.ts create mode 100644 node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestError.js create mode 100644 node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/RequestError.d.ts rename node_modules/@octokit/request/node_modules/is-plain-object/{index.cjs.js => dist/is-plain-object.js} (87%) rename node_modules/@octokit/request/node_modules/is-plain-object/{index.es.js => dist/is-plain-object.mjs} (96%) delete mode 100644 node_modules/@octokit/request/node_modules/is-plain-object/index.d.ts create mode 100644 node_modules/@octokit/request/node_modules/is-plain-object/is-plain-object.d.ts create mode 100644 node_modules/@octokit/rest/dist-node/index.js create mode 100644 node_modules/@octokit/rest/dist-node/index.js.map rename node_modules/{@semantic-release/github/node_modules => }/@octokit/rest/dist-src/index.js (100%) create mode 100644 node_modules/@octokit/rest/dist-src/version.js rename node_modules/{@semantic-release/github/node_modules => }/@octokit/rest/dist-types/index.d.ts (100%) create mode 100644 node_modules/@octokit/rest/dist-types/version.d.ts create mode 100644 node_modules/@octokit/rest/dist-web/index.js create mode 100644 node_modules/@octokit/rest/dist-web/index.js.map delete mode 100644 node_modules/@octokit/rest/index.d.ts delete mode 100644 node_modules/@octokit/rest/index.js delete mode 100644 node_modules/@octokit/rest/lib/constructor.js delete mode 100644 node_modules/@octokit/rest/lib/core.js delete mode 100644 node_modules/@octokit/rest/lib/factory.js delete mode 100644 node_modules/@octokit/rest/lib/parse-client-options.js delete mode 100644 node_modules/@octokit/rest/lib/register-plugin.js delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/request-error/README.md delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-node/index.js delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-node/index.js.map delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-src/index.js delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-types/index.d.ts delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-types/types.d.ts delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-web/index.js delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-web/index.js.map delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/request-error/package.json delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/VERSION.js delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/index.js delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/VERSION.d.ts delete mode 100644 node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/LICENSE.md delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/README.md delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js.map delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/browser.js delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/index.js delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/node.js delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/browser.d.ts delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/index.d.ts delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/node.d.ts delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js.map delete mode 100644 node_modules/@octokit/rest/node_modules/universal-user-agent/package.json delete mode 100644 node_modules/@octokit/rest/plugins/authentication-deprecated/authenticate.js delete mode 100644 node_modules/@octokit/rest/plugins/authentication-deprecated/before-request.js delete mode 100644 node_modules/@octokit/rest/plugins/authentication-deprecated/index.js delete mode 100644 node_modules/@octokit/rest/plugins/authentication-deprecated/request-error.js delete mode 100644 node_modules/@octokit/rest/plugins/authentication/before-request.js delete mode 100644 node_modules/@octokit/rest/plugins/authentication/index.js delete mode 100644 node_modules/@octokit/rest/plugins/authentication/request-error.js delete mode 100644 node_modules/@octokit/rest/plugins/authentication/validate.js delete mode 100644 node_modules/@octokit/rest/plugins/authentication/with-authorization-prefix.js delete mode 100644 node_modules/@octokit/rest/plugins/pagination/index.js delete mode 100644 node_modules/@octokit/rest/plugins/validate/index.js delete mode 100644 node_modules/@octokit/rest/plugins/validate/validate.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/CHANGELOG.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/LICENSE create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/README.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/index.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/compile.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/constants.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/expand.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/parse.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/stringify.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/utils.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/braces/package.json create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/CHANGELOG.md rename node_modules/{btoa-lite => @semantic-release/commit-analyzer/node_modules/conventional-commits-parser}/LICENSE.md (50%) create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/README.md create mode 100755 node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/cli.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/index.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/lib/parser.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/lib/regex.js create mode 120000 node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/node_modules/.bin/JSONStream create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/package.json create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/fill-range/LICENSE create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/fill-range/README.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/fill-range/index.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/fill-range/package.json create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/is-number/LICENSE create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/is-number/README.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/is-number/index.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/is-number/package.json create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/micromatch/CHANGELOG.md create mode 100755 node_modules/@semantic-release/commit-analyzer/node_modules/micromatch/LICENSE create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/micromatch/README.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/micromatch/index.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/micromatch/package.json create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/CONTRIBUTING.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/GOVERNANCE.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/LICENSE create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/README.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/errors-browser.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/errors.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/experimentalWarning.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/_stream_duplex.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/_stream_passthrough.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/_stream_readable.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/_stream_transform.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/_stream_writable.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/internal/streams/async_iterator.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/internal/streams/buffer_list.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/internal/streams/destroy.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/internal/streams/end-of-stream.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/internal/streams/from-browser.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/internal/streams/from.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/internal/streams/pipeline.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/internal/streams/state.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/internal/streams/stream-browser.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/lib/internal/streams/stream.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/package.json create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/readable-browser.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/readable-stream/readable.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/string_decoder/LICENSE create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/string_decoder/README.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/string_decoder/lib/string_decoder.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/string_decoder/package.json create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/through2/LICENSE.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/through2/README.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/through2/package.json create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/through2/through2.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/to-regex-range/LICENSE create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/to-regex-range/README.md create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/to-regex-range/index.js create mode 100644 node_modules/@semantic-release/commit-analyzer/node_modules/to-regex-range/package.json delete mode 100644 node_modules/@semantic-release/git/lib/glob-assets.js create mode 120000 node_modules/@semantic-release/github/node_modules/.bin/semantic-release delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/CHANGELOG.md delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/LICENSE delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/README.md delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/copy-sync/copy-sync.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/copy-sync/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/copy/copy.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/copy/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/empty/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/ensure/file.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/ensure/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/ensure/link.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/ensure/symlink-paths.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/ensure/symlink-type.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/ensure/symlink.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/fs/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/json/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/json/jsonfile.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/json/output-json-sync.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/json/output-json.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/mkdirs/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/move-sync/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/move-sync/move-sync.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/move/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/move/move.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/output/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/path-exists/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/remove/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/remove/rimraf.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/util/stat.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/lib/util/utimes.js delete mode 100644 node_modules/@semantic-release/github/node_modules/fs-extra/package.json delete mode 100644 node_modules/@semantic-release/github/node_modules/globby/gitignore.js delete mode 100644 node_modules/@semantic-release/github/node_modules/globby/index.d.ts delete mode 100644 node_modules/@semantic-release/github/node_modules/globby/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/globby/package.json delete mode 100644 node_modules/@semantic-release/github/node_modules/globby/readme.md delete mode 100644 node_modules/@semantic-release/github/node_modules/globby/stream-utils.js delete mode 100644 node_modules/@semantic-release/github/node_modules/ignore/CHANGELOG.md delete mode 100644 node_modules/@semantic-release/github/node_modules/ignore/README.md delete mode 100644 node_modules/@semantic-release/github/node_modules/ignore/index.d.ts delete mode 100644 node_modules/@semantic-release/github/node_modules/ignore/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/ignore/legacy.js delete mode 100644 node_modules/@semantic-release/github/node_modules/ignore/package.json delete mode 100644 node_modules/@semantic-release/github/node_modules/jsonfile/CHANGELOG.md delete mode 100644 node_modules/@semantic-release/github/node_modules/jsonfile/LICENSE delete mode 100644 node_modules/@semantic-release/github/node_modules/jsonfile/README.md delete mode 100644 node_modules/@semantic-release/github/node_modules/jsonfile/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/jsonfile/package.json delete mode 100644 node_modules/@semantic-release/github/node_modules/slash/index.d.ts delete mode 100644 node_modules/@semantic-release/github/node_modules/slash/index.js delete mode 100644 node_modules/@semantic-release/github/node_modules/slash/readme.md create mode 100644 node_modules/@semantic-release/npm/lib/add-channel.js create mode 100644 node_modules/@semantic-release/npm/lib/get-channel.js create mode 120000 node_modules/@semantic-release/npm/node_modules/.bin/semver create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/CHANGELOG.md create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/LICENSE create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/README.md create mode 100755 node_modules/@semantic-release/npm/node_modules/semver/bin/semver.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/classes/comparator.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/classes/index.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/classes/range.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/classes/semver.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/clean.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/cmp.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/coerce.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/compare-build.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/compare-loose.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/compare.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/diff.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/eq.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/gt.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/gte.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/inc.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/lt.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/lte.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/major.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/minor.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/neq.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/parse.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/patch.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/prerelease.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/rcompare.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/rsort.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/satisfies.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/sort.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/functions/valid.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/index.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/internal/constants.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/internal/debug.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/internal/identifiers.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/internal/re.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/package.json create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/preload.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/range.bnf create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/gtr.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/intersects.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/ltr.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/max-satisfying.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/min-satisfying.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/min-version.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/outside.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/simplify.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/subset.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/to-comparators.js create mode 100644 node_modules/@semantic-release/npm/node_modules/semver/ranges/valid.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/conventional-commits-parser/CHANGELOG.md create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/conventional-commits-parser/LICENSE.md create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/conventional-commits-parser/README.md create mode 100755 node_modules/@semantic-release/release-notes-generator/node_modules/conventional-commits-parser/cli.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/conventional-commits-parser/index.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/conventional-commits-parser/lib/parser.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/conventional-commits-parser/lib/regex.js create mode 120000 node_modules/@semantic-release/release-notes-generator/node_modules/conventional-commits-parser/node_modules/.bin/JSONStream create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/conventional-commits-parser/package.json create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/CONTRIBUTING.md create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/GOVERNANCE.md create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/LICENSE create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/README.md create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/errors-browser.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/errors.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/experimentalWarning.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/_stream_duplex.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/_stream_passthrough.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/_stream_readable.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/_stream_transform.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/_stream_writable.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/internal/streams/async_iterator.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/internal/streams/buffer_list.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/internal/streams/destroy.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/internal/streams/end-of-stream.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/internal/streams/from-browser.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/internal/streams/from.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/internal/streams/pipeline.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/internal/streams/state.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/internal/streams/stream-browser.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/lib/internal/streams/stream.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/package.json create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/readable-browser.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/readable-stream/readable.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/string_decoder/LICENSE create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/string_decoder/README.md create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/string_decoder/lib/string_decoder.js create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/string_decoder/package.json create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/through2/LICENSE.md create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/through2/README.md create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/through2/package.json create mode 100644 node_modules/@semantic-release/release-notes-generator/node_modules/through2/through2.js delete mode 100644 node_modules/@types/glob/LICENSE delete mode 100644 node_modules/@types/glob/README.md delete mode 100644 node_modules/@types/glob/index.d.ts delete mode 100644 node_modules/@types/glob/package.json delete mode 100644 node_modules/@types/minimatch/LICENSE delete mode 100644 node_modules/@types/minimatch/README.md delete mode 100644 node_modules/@types/minimatch/index.d.ts delete mode 100644 node_modules/@types/minimatch/package.json delete mode 100644 node_modules/atob-lite/.npmignore delete mode 100644 node_modules/atob-lite/LICENSE.md delete mode 100644 node_modules/atob-lite/README.md delete mode 100644 node_modules/atob-lite/atob-browser.js delete mode 100644 node_modules/atob-lite/atob-node.js delete mode 100644 node_modules/atob-lite/package.json delete mode 100644 node_modules/btoa-lite/.npmignore delete mode 100644 node_modules/btoa-lite/README.md delete mode 100644 node_modules/btoa-lite/btoa-browser.js delete mode 100644 node_modules/btoa-lite/btoa-node.js delete mode 100644 node_modules/btoa-lite/package.json rename node_modules/{istanbul-lib-report => chalk}/node_modules/supports-color/browser.js (100%) rename node_modules/{jest-worker => chalk}/node_modules/supports-color/index.js (83%) rename node_modules/{@semantic-release/github/node_modules/globby => chalk/node_modules/supports-color}/license (100%) rename node_modules/{jest-worker => chalk}/node_modules/supports-color/package.json (93%) create mode 100644 node_modules/chalk/node_modules/supports-color/readme.md create mode 100644 node_modules/configstore/node_modules/crypto-random-string/index.js create mode 100644 node_modules/configstore/node_modules/crypto-random-string/license create mode 100644 node_modules/configstore/node_modules/crypto-random-string/package.json create mode 100644 node_modules/configstore/node_modules/crypto-random-string/readme.md create mode 100644 node_modules/configstore/node_modules/unique-string/index.js create mode 100644 node_modules/configstore/node_modules/unique-string/license create mode 100644 node_modules/configstore/node_modules/unique-string/package.json create mode 100644 node_modules/configstore/node_modules/unique-string/readme.md create mode 100644 node_modules/conventional-commits-parser/node_modules/hosted-git-info/CHANGELOG.md create mode 100644 node_modules/conventional-commits-parser/node_modules/hosted-git-info/LICENSE create mode 100644 node_modules/conventional-commits-parser/node_modules/hosted-git-info/README.md create mode 100644 node_modules/conventional-commits-parser/node_modules/hosted-git-info/git-host-info.js create mode 100644 node_modules/conventional-commits-parser/node_modules/hosted-git-info/git-host.js create mode 100644 node_modules/conventional-commits-parser/node_modules/hosted-git-info/index.js create mode 100644 node_modules/conventional-commits-parser/node_modules/hosted-git-info/package.json create mode 100644 node_modules/conventional-commits-parser/node_modules/lru-cache/LICENSE create mode 100644 node_modules/conventional-commits-parser/node_modules/lru-cache/README.md create mode 100644 node_modules/conventional-commits-parser/node_modules/lru-cache/index.js create mode 100644 node_modules/conventional-commits-parser/node_modules/lru-cache/package.json create mode 100644 node_modules/conventional-commits-parser/node_modules/meow/index.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/meow/index.js create mode 100644 node_modules/conventional-commits-parser/node_modules/meow/license create mode 100644 node_modules/conventional-commits-parser/node_modules/meow/package.json create mode 100644 node_modules/conventional-commits-parser/node_modules/meow/readme.md create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/AUTHORS create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/LICENSE create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/README.md create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/lib/extract_description.js create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/lib/fixer.js create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/lib/make_warning.js create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/lib/normalize.js create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/lib/safe_format.js create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/lib/typos.json create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/lib/warning_messages.json create mode 120000 node_modules/conventional-commits-parser/node_modules/normalize-package-data/node_modules/.bin/semver create mode 100644 node_modules/conventional-commits-parser/node_modules/normalize-package-data/package.json create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/CHANGELOG.md create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/LICENSE create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/README.md create mode 100755 node_modules/conventional-commits-parser/node_modules/semver/bin/semver.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/classes/comparator.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/classes/index.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/classes/range.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/classes/semver.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/clean.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/cmp.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/coerce.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/compare-build.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/compare-loose.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/compare.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/diff.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/eq.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/gt.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/gte.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/inc.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/lt.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/lte.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/major.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/minor.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/neq.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/parse.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/patch.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/prerelease.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/rcompare.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/rsort.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/satisfies.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/sort.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/functions/valid.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/index.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/internal/constants.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/internal/debug.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/internal/identifiers.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/internal/re.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/package.json create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/preload.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/range.bnf create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/gtr.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/intersects.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/ltr.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/max-satisfying.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/min-satisfying.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/min-version.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/outside.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/simplify.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/subset.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/to-comparators.js create mode 100644 node_modules/conventional-commits-parser/node_modules/semver/ranges/valid.js create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/index.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/license create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/package.json create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/readme.md create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/async-return-type.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/asyncify.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/basic.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/conditional-except.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/conditional-keys.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/conditional-pick.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/entries.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/entry.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/except.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/fixed-length-array.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/iterable-element.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/literal-union.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/merge-exclusive.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/merge.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/mutable.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/opaque.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/package-json.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/partial-deep.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/promisable.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/promise-value.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/readonly-deep.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/require-at-least-one.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/require-exactly-one.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/set-optional.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/set-required.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/set-return-type.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/stringified.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/tsconfig-json.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/union-to-intersection.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/type-fest/source/value-of.d.ts create mode 100644 node_modules/conventional-commits-parser/node_modules/yallist/LICENSE create mode 100644 node_modules/conventional-commits-parser/node_modules/yallist/README.md create mode 100644 node_modules/conventional-commits-parser/node_modules/yallist/iterator.js create mode 100644 node_modules/conventional-commits-parser/node_modules/yallist/package.json create mode 100644 node_modules/conventional-commits-parser/node_modules/yallist/yallist.js create mode 100644 node_modules/conventional-commits-parser/node_modules/yargs-parser/CHANGELOG.md rename node_modules/{meow => conventional-commits-parser}/node_modules/yargs-parser/LICENSE.txt (100%) rename node_modules/{meow => conventional-commits-parser}/node_modules/yargs-parser/README.md (84%) create mode 100644 node_modules/conventional-commits-parser/node_modules/yargs-parser/browser.js create mode 100644 node_modules/conventional-commits-parser/node_modules/yargs-parser/build/index.cjs create mode 100644 node_modules/conventional-commits-parser/node_modules/yargs-parser/build/lib/index.js create mode 100644 node_modules/conventional-commits-parser/node_modules/yargs-parser/build/lib/string-utils.js create mode 100644 node_modules/conventional-commits-parser/node_modules/yargs-parser/build/lib/tokenize-arg-string.js create mode 100644 node_modules/conventional-commits-parser/node_modules/yargs-parser/build/lib/yargs-parser-types.js create mode 100644 node_modules/conventional-commits-parser/node_modules/yargs-parser/build/lib/yargs-parser.js create mode 100644 node_modules/conventional-commits-parser/node_modules/yargs-parser/package.json create mode 100644 node_modules/crypto-random-string/index.d.ts delete mode 100644 node_modules/encoding/node_modules/iconv-lite/lib/streams.js delete mode 100644 node_modules/execa/node_modules/p-finally/index.js delete mode 100644 node_modules/execa/node_modules/p-finally/package.json delete mode 100644 node_modules/execa/node_modules/p-finally/readme.md rename node_modules/{@semantic-release/github/node_modules => }/fs-extra/lib/mkdirs/make-dir.js (100%) delete mode 100644 node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js delete mode 100644 node_modules/fs-extra/lib/mkdirs/mkdirs.js delete mode 100644 node_modules/fs-extra/lib/mkdirs/win32.js delete mode 100644 node_modules/fs-extra/lib/util/buffer.js delete mode 100644 node_modules/fs-extra/node_modules/universalify/LICENSE delete mode 100644 node_modules/fs-extra/node_modules/universalify/README.md delete mode 100644 node_modules/fs-extra/node_modules/universalify/index.js delete mode 100644 node_modules/fs-extra/node_modules/universalify/package.json rename node_modules/{encoding/node_modules => }/iconv-lite/.github/dependabot.yml (100%) rename node_modules/{encoding/node_modules => }/iconv-lite/encodings/utf32.js (100%) rename node_modules/{@semantic-release/github/node_modules => }/jsonfile/utils.js (100%) delete mode 100644 node_modules/locate-path/node_modules/p-locate/index.js delete mode 100644 node_modules/lodash.set/README.md delete mode 100644 node_modules/lodash.set/index.js delete mode 100644 node_modules/lodash.set/package.json create mode 100644 node_modules/marked-terminal/node_modules/ansi-escapes/index.d.ts create mode 100644 node_modules/marked-terminal/node_modules/ansi-escapes/index.js create mode 100644 node_modules/marked-terminal/node_modules/ansi-escapes/license create mode 100644 node_modules/marked-terminal/node_modules/ansi-escapes/package.json create mode 100644 node_modules/marked-terminal/node_modules/ansi-escapes/readme.md create mode 100644 node_modules/marked-terminal/node_modules/ansi-styles/index.d.ts create mode 100644 node_modules/marked-terminal/node_modules/ansi-styles/index.js rename node_modules/{@semantic-release/github/node_modules/slash => marked-terminal/node_modules/ansi-styles}/license (100%) create mode 100644 node_modules/marked-terminal/node_modules/ansi-styles/package.json create mode 100644 node_modules/marked-terminal/node_modules/ansi-styles/readme.md create mode 100644 node_modules/marked-terminal/node_modules/chalk/index.d.ts rename node_modules/{execa/node_modules/p-finally => marked-terminal/node_modules/chalk}/license (100%) create mode 100644 node_modules/marked-terminal/node_modules/chalk/package.json create mode 100644 node_modules/marked-terminal/node_modules/chalk/readme.md create mode 100644 node_modules/marked-terminal/node_modules/chalk/source/index.js create mode 100644 node_modules/marked-terminal/node_modules/chalk/source/templates.js create mode 100644 node_modules/marked-terminal/node_modules/chalk/source/util.js create mode 100644 node_modules/marked-terminal/node_modules/color-convert/CHANGELOG.md rename node_modules/{@semantic-release/github/node_modules/ignore/LICENSE-MIT => marked-terminal/node_modules/color-convert/LICENSE} (87%) create mode 100644 node_modules/marked-terminal/node_modules/color-convert/README.md create mode 100644 node_modules/marked-terminal/node_modules/color-convert/conversions.js create mode 100644 node_modules/marked-terminal/node_modules/color-convert/index.js create mode 100644 node_modules/marked-terminal/node_modules/color-convert/package.json create mode 100644 node_modules/marked-terminal/node_modules/color-convert/route.js create mode 100644 node_modules/marked-terminal/node_modules/color-name/LICENSE create mode 100644 node_modules/marked-terminal/node_modules/color-name/README.md create mode 100644 node_modules/marked-terminal/node_modules/color-name/index.js create mode 100644 node_modules/marked-terminal/node_modules/color-name/package.json create mode 100644 node_modules/marked-terminal/node_modules/has-flag/index.d.ts create mode 100644 node_modules/marked-terminal/node_modules/has-flag/index.js rename node_modules/{istanbul-lib-report/node_modules/supports-color => marked-terminal/node_modules/has-flag}/license (100%) create mode 100644 node_modules/marked-terminal/node_modules/has-flag/package.json create mode 100644 node_modules/marked-terminal/node_modules/has-flag/readme.md rename node_modules/{jest-worker => marked-terminal}/node_modules/supports-color/browser.js (100%) rename node_modules/{istanbul-lib-report => marked-terminal}/node_modules/supports-color/index.js (68%) rename node_modules/{jest-worker => marked-terminal}/node_modules/supports-color/license (100%) rename node_modules/{istanbul-lib-report => marked-terminal}/node_modules/supports-color/package.json (84%) rename node_modules/{istanbul-lib-report => marked-terminal}/node_modules/supports-color/readme.md (92%) create mode 100644 node_modules/marked-terminal/node_modules/type-fest/index.d.ts rename node_modules/{locate-path/node_modules/p-locate => marked-terminal/node_modules/type-fest}/license (100%) create mode 100644 node_modules/marked-terminal/node_modules/type-fest/package.json create mode 100644 node_modules/marked-terminal/node_modules/type-fest/readme.md create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/async-return-type.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/basic.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/conditional-except.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/conditional-keys.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/conditional-pick.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/except.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/literal-union.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/merge-exclusive.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/merge.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/mutable.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/opaque.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/package-json.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/partial-deep.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/promisable.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/promise-value.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/readonly-deep.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/require-at-least-one.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/require-exactly-one.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/set-optional.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/set-required.d.ts create mode 100644 node_modules/marked-terminal/node_modules/type-fest/source/tsconfig-json.d.ts create mode 100644 node_modules/marked/lib/marked.esm.js create mode 100644 node_modules/marked/src/Lexer.js create mode 100644 node_modules/marked/src/Parser.js create mode 100644 node_modules/marked/src/Renderer.js create mode 100644 node_modules/marked/src/Slugger.js create mode 100644 node_modules/marked/src/TextRenderer.js create mode 100644 node_modules/marked/src/Tokenizer.js create mode 100644 node_modules/marked/src/defaults.js create mode 100644 node_modules/marked/src/helpers.js create mode 100644 node_modules/marked/src/marked.js create mode 100644 node_modules/marked/src/rules.js delete mode 100644 node_modules/meow/node_modules/yargs-parser/CHANGELOG.md delete mode 100644 node_modules/meow/node_modules/yargs-parser/index.js delete mode 100644 node_modules/meow/node_modules/yargs-parser/lib/tokenize-arg-string.js delete mode 100644 node_modules/meow/node_modules/yargs-parser/package.json create mode 100644 node_modules/npm/node_modules/define-properties/.eslintrc create mode 100644 node_modules/npm/node_modules/es-abstract/.eslintrc create mode 100644 node_modules/npm/node_modules/es-abstract/operations/.eslintrc create mode 100644 node_modules/npm/node_modules/es-to-primitive/.eslintrc create mode 100644 node_modules/npm/node_modules/function-bind/.eslintrc create mode 100644 node_modules/npm/node_modules/function-bind/test/.eslintrc create mode 100644 node_modules/npm/node_modules/has-symbols/.eslintrc create mode 100644 node_modules/npm/node_modules/is-callable/.eslintrc create mode 100644 node_modules/npm/node_modules/is-date-object/.eslintrc create mode 100644 node_modules/npm/node_modules/is-regex/.eslintrc create mode 100644 node_modules/npm/node_modules/is-symbol/.eslintrc create mode 100644 node_modules/npm/node_modules/meant/.github/workflows/ci.yml delete mode 100644 node_modules/npm/node_modules/meant/.npmignore delete mode 100644 node_modules/npm/node_modules/meant/.travis.yml rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/.travis.yml (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/LICENSE (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/example/parse.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/index.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/package.json (93%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/readme.markdown (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/all_bool.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/bool.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/dash.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/default_bool.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/dotted.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/kv_short.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/long.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/num.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/parse.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/parse_modified.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/proto.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/short.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/stop_early.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/unknown.js (100%) rename node_modules/npm/node_modules/{rc/node_modules => }/minimist/test/whitespace.js (100%) create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/MSVSUtil.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/MSVSVersion.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/__init__.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/common.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/input.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/msvs_emulation.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/ninja_syntax.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/simple_copy.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/xcode_emulation.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/xcode_ninja.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__pycache__/xcodeproj_file.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/__init__.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/make.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/ninja.cpython-38.pyc create mode 100644 node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/xcode.cpython-38.pyc create mode 120000 node_modules/npm/node_modules/npm-registry-fetch/node_modules/.bin/JSONStream create mode 100644 node_modules/npm/node_modules/object-keys/.eslintrc create mode 100644 node_modules/npm/node_modules/object.getownpropertydescriptors/.eslintrc create mode 100644 node_modules/npm/node_modules/require-directory/.jshintrc delete mode 100644 node_modules/octokit-pagination-methods/.travis.yml delete mode 100644 node_modules/octokit-pagination-methods/CODE_OF_CONDUCT.md delete mode 100644 node_modules/octokit-pagination-methods/README.md delete mode 100644 node_modules/octokit-pagination-methods/index.js delete mode 100644 node_modules/octokit-pagination-methods/lib/deprecate.js delete mode 100644 node_modules/octokit-pagination-methods/lib/get-first-page.js delete mode 100644 node_modules/octokit-pagination-methods/lib/get-last-page.js delete mode 100644 node_modules/octokit-pagination-methods/lib/get-next-page.js delete mode 100644 node_modules/octokit-pagination-methods/lib/get-page-links.js delete mode 100644 node_modules/octokit-pagination-methods/lib/get-page.js delete mode 100644 node_modules/octokit-pagination-methods/lib/get-previous-page.js delete mode 100644 node_modules/octokit-pagination-methods/lib/has-first-page.js delete mode 100644 node_modules/octokit-pagination-methods/lib/has-last-page.js delete mode 100644 node_modules/octokit-pagination-methods/lib/has-next-page.js delete mode 100644 node_modules/octokit-pagination-methods/lib/has-previous-page.js delete mode 100644 node_modules/octokit-pagination-methods/lib/http-error.js delete mode 100644 node_modules/octokit-pagination-methods/package.json delete mode 100644 node_modules/octokit-pagination-methods/test.js create mode 100644 node_modules/p-each-series/index.d.ts rename node_modules/{ => read-pkg-up/node_modules}/p-locate/index.d.ts (100%) create mode 100644 node_modules/read-pkg-up/node_modules/p-locate/index.js create mode 100644 node_modules/read-pkg-up/node_modules/p-locate/license rename node_modules/{locate-path => read-pkg-up}/node_modules/p-locate/package.json (75%) rename node_modules/{locate-path => read-pkg-up}/node_modules/p-locate/readme.md (91%) create mode 100644 node_modules/semantic-release/docs/recipes/distribution-channels.md create mode 100644 node_modules/semantic-release/docs/recipes/jenkins-ci.md create mode 100644 node_modules/semantic-release/docs/recipes/maintenance-releases.md create mode 100644 node_modules/semantic-release/docs/recipes/pre-releases.md create mode 100644 node_modules/semantic-release/docs/usage/workflow-configuration.md create mode 100644 node_modules/semantic-release/lib/branches/expand.js create mode 100644 node_modules/semantic-release/lib/branches/get-tags.js create mode 100644 node_modules/semantic-release/lib/branches/index.js create mode 100644 node_modules/semantic-release/lib/branches/normalize.js create mode 100644 node_modules/semantic-release/lib/definitions/branches.js create mode 100644 node_modules/semantic-release/lib/get-release-to-add.js rename node_modules/semantic-release/node_modules/{@semantic-release/release-notes-generator => @octokit/auth-token}/LICENSE (86%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/README.md create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-node/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-node/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-src/auth.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-src/hook.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-src/index.js rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/method-types.js => semantic-release/node_modules/@octokit/auth-token/dist-src/types.js} (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-types/auth.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-types/hook.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-types/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-types/types.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-types/with-authorization-prefix.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-web/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/dist-web/index.js.map rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/LICENSE (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/README.md create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-node/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-node/index.js.map rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/AuthInterface.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/EndpointDefaults.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/EndpointInterface.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/EndpointOptions.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/Fetch.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/OctokitResponse.js (100%) rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/parameters-and-response-types.js => semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestError.js} (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestHeaders.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestInterface.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestMethod.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestOptions.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestParameters.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/RequestRequestOptions.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/ResponseHeaders.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/Route.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/Signal.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/StrategyInterface.js (100%) rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/Url.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/VERSION.js rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-src/generated/Endpoints.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/AuthInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Fetch.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts rename node_modules/{@semantic-release/github/node_modules/@octokit/plugin-paginate-rest => semantic-release/node_modules/@octokit/auth-token}/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestError.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestMethod.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestParameters.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Route.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Signal.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Url.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/VERSION.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-web/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-web/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/node_modules/@octokit/types/package.json create mode 100644 node_modules/semantic-release/node_modules/@octokit/auth-token/package.json create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/LICENSE create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/README.md create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/dist-node/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/dist-node/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/dist-src/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/dist-src/types.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/dist-src/version.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/dist-types/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/dist-types/types.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/dist-types/version.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/dist-web/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/dist-web/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/LICENSE create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/README.md create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-node/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-node/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/AuthInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointDefaults.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Fetch.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/OctokitResponse.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestError.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestHeaders.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestMethod.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestParameters.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestRequestOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/ResponseHeaders.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Route.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Signal.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/StrategyInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Url.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/VERSION.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/generated/Endpoints.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/AuthInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Fetch.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts rename node_modules/{@semantic-release/github => semantic-release/node_modules/@octokit/core}/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestError.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestMethod.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestParameters.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Route.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Signal.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Url.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/VERSION.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-web/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/dist-web/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/node_modules/@octokit/types/package.json create mode 100644 node_modules/semantic-release/node_modules/@octokit/core/package.json create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/LICENSE create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/README.md create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-node/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-node/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-src/error.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-src/graphql.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-src/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-src/types.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-src/version.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-src/with-defaults.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-types/error.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-types/graphql.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-types/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-types/types.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-types/version.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-types/with-defaults.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-web/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/dist-web/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/LICENSE create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/README.md create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-node/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-node/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/AuthInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointDefaults.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Fetch.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/OctokitResponse.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestError.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestHeaders.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestMethod.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestParameters.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestRequestOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/ResponseHeaders.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Route.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Signal.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/StrategyInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Url.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/VERSION.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/generated/Endpoints.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/AuthInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Fetch.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestError.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestMethod.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestParameters.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Route.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Signal.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Url.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/VERSION.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-web/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-web/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/node_modules/@octokit/types/package.json rename node_modules/{@octokit/core/node_modules/@octokit/request => semantic-release/node_modules/@octokit/graphql}/node_modules/universal-user-agent/LICENSE.md (100%) rename node_modules/{@octokit/core/node_modules/@octokit/request => semantic-release/node_modules/@octokit/graphql}/node_modules/universal-user-agent/README.md (100%) rename node_modules/{@octokit/core/node_modules/@octokit/request => semantic-release/node_modules/@octokit/graphql}/node_modules/universal-user-agent/dist-node/index.js (100%) rename node_modules/{@octokit/core/node_modules/@octokit/request => semantic-release/node_modules/@octokit/graphql}/node_modules/universal-user-agent/dist-node/index.js.map (100%) rename node_modules/{@octokit/core/node_modules/@octokit/request => semantic-release/node_modules/@octokit/graphql}/node_modules/universal-user-agent/dist-src/index.js (100%) rename node_modules/{@octokit/core/node_modules/@octokit/request => semantic-release/node_modules/@octokit/graphql}/node_modules/universal-user-agent/dist-types/index.d.ts (100%) rename node_modules/{@octokit/core/node_modules/@octokit/request => semantic-release/node_modules/@octokit/graphql}/node_modules/universal-user-agent/dist-web/index.js (100%) rename node_modules/{@octokit/core/node_modules/@octokit/request => semantic-release/node_modules/@octokit/graphql}/node_modules/universal-user-agent/dist-web/index.js.map (100%) rename node_modules/{@octokit/core/node_modules/@octokit/request => semantic-release/node_modules/@octokit/graphql}/node_modules/universal-user-agent/package.json (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/graphql/package.json create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/LICENSE rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/README.md (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-types/generated/paginating-endpoints.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/LICENSE create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/README.md rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/AuthInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Fetch.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/OctokitResponse.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestError.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestHeaders.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestMethod.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestParameters.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Route.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Signal.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/StrategyInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Url.js rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/VERSION.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/AuthInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Fetch.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestError.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestMethod.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestParameters.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Route.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Signal.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Url.d.ts rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/VERSION.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/index.d.ts rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-web/index.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-web/index.js.map rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/package.json (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-paginate-rest/package.json (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/LICENSE create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/README.md create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/dist-node/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/dist-node/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/dist-src/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/dist-src/version.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/dist-types/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/dist-types/version.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/dist-web/index.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/dist-web/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-request-log/package.json create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-rest-endpoint-methods/LICENSE rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/README.md (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js.map (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/method-types.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/parameters-and-response-types.js rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/endpoints-to-methods.d.ts rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/endpoints.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/index.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/version.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js.map (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/plugin-rest-endpoint-methods/package.json (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/rest/LICENSE (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/rest/README.md (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/rest/dist-node/index.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/rest/dist-node/index.js.map (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/rest/dist-src/index.js rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/rest/dist-src/version.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/rest/dist-types/index.d.ts rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/rest/dist-types/version.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/rest/dist-web/index.js (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/rest/dist-web/index.js.map (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/rest/package.json (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/LICENSE rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/types/README.md (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/types/dist-node/index.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-node/index.js.map create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/AuthInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/EndpointDefaults.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/EndpointInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/EndpointOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/Fetch.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/OctokitResponse.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/RequestHeaders.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/RequestInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/RequestMethod.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/RequestOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/RequestParameters.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/RequestRequestOptions.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/ResponseHeaders.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/Route.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/Signal.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/StrategyInterface.js create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/Url.js rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/types/dist-src/VERSION.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-src/generated/Endpoints.js rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/types/dist-src/index.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/AuthInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/Fetch.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/RequestInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/RequestMethod.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/RequestOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/RequestParameters.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/Route.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/Signal.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-types/Url.d.ts rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/types/dist-types/VERSION.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts (100%) rename node_modules/{@octokit/rest => semantic-release}/node_modules/@octokit/types/dist-types/index.d.ts (100%) rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/types/dist-web/index.js (100%) create mode 100644 node_modules/semantic-release/node_modules/@octokit/types/dist-web/index.js.map rename node_modules/{@semantic-release/github => semantic-release}/node_modules/@octokit/types/package.json (100%) create mode 100644 node_modules/semantic-release/node_modules/@semantic-release/github/lib/add-channel.js create mode 100644 node_modules/semantic-release/node_modules/@semantic-release/github/lib/definitions/constants.js delete mode 100644 node_modules/semantic-release/node_modules/@semantic-release/github/lib/definitions/sr-issue-id.js create mode 100644 node_modules/semantic-release/node_modules/@semantic-release/github/lib/get-release-links.js create mode 100644 node_modules/semantic-release/node_modules/@semantic-release/github/lib/is-prerelease.js delete mode 100644 node_modules/semantic-release/node_modules/@semantic-release/release-notes-generator/README.md delete mode 100644 node_modules/semantic-release/node_modules/@semantic-release/release-notes-generator/index.js delete mode 100644 node_modules/semantic-release/node_modules/@semantic-release/release-notes-generator/lib/hosts-config.js delete mode 100644 node_modules/semantic-release/node_modules/@semantic-release/release-notes-generator/lib/load-changelog-config.js delete mode 120000 node_modules/semantic-release/node_modules/@semantic-release/release-notes-generator/node_modules/.bin/conventional-changelog-writer delete mode 120000 node_modules/semantic-release/node_modules/@semantic-release/release-notes-generator/node_modules/.bin/conventional-commits-parser delete mode 120000 node_modules/semantic-release/node_modules/@semantic-release/release-notes-generator/node_modules/.bin/semantic-release delete mode 100644 node_modules/semantic-release/node_modules/@semantic-release/release-notes-generator/package.json delete mode 100644 node_modules/semantic-release/node_modules/agent-base/README.md delete mode 100644 node_modules/semantic-release/node_modules/agent-base/dist/src/index.d.ts delete mode 100644 node_modules/semantic-release/node_modules/agent-base/dist/src/index.js delete mode 100644 node_modules/semantic-release/node_modules/agent-base/dist/src/index.js.map delete mode 100644 node_modules/semantic-release/node_modules/agent-base/dist/src/promisify.d.ts delete mode 100644 node_modules/semantic-release/node_modules/agent-base/dist/src/promisify.js delete mode 100644 node_modules/semantic-release/node_modules/agent-base/dist/src/promisify.js.map delete mode 100644 node_modules/semantic-release/node_modules/agent-base/package.json create mode 100644 node_modules/semantic-release/node_modules/ansi-regex/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/ansi-regex/index.js create mode 100644 node_modules/semantic-release/node_modules/ansi-regex/license create mode 100644 node_modules/semantic-release/node_modules/ansi-regex/package.json create mode 100644 node_modules/semantic-release/node_modules/ansi-regex/readme.md create mode 100644 node_modules/semantic-release/node_modules/ansi-styles/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/ansi-styles/index.js create mode 100644 node_modules/semantic-release/node_modules/ansi-styles/license create mode 100644 node_modules/semantic-release/node_modules/ansi-styles/package.json create mode 100644 node_modules/semantic-release/node_modules/ansi-styles/readme.md create mode 100644 node_modules/semantic-release/node_modules/braces/CHANGELOG.md create mode 100644 node_modules/semantic-release/node_modules/braces/LICENSE create mode 100644 node_modules/semantic-release/node_modules/braces/README.md create mode 100644 node_modules/semantic-release/node_modules/braces/index.js create mode 100644 node_modules/semantic-release/node_modules/braces/lib/compile.js create mode 100644 node_modules/semantic-release/node_modules/braces/lib/constants.js create mode 100644 node_modules/semantic-release/node_modules/braces/lib/expand.js create mode 100644 node_modules/semantic-release/node_modules/braces/lib/parse.js create mode 100644 node_modules/semantic-release/node_modules/braces/lib/stringify.js create mode 100644 node_modules/semantic-release/node_modules/braces/lib/utils.js create mode 100644 node_modules/semantic-release/node_modules/braces/package.json create mode 100644 node_modules/semantic-release/node_modules/cliui/CHANGELOG.md create mode 100644 node_modules/semantic-release/node_modules/cliui/LICENSE.txt create mode 100644 node_modules/semantic-release/node_modules/cliui/README.md create mode 100644 node_modules/semantic-release/node_modules/cliui/index.js create mode 100644 node_modules/semantic-release/node_modules/cliui/package.json create mode 100644 node_modules/semantic-release/node_modules/color-convert/CHANGELOG.md rename node_modules/{lodash.set => semantic-release/node_modules/color-convert}/LICENSE (52%) create mode 100644 node_modules/semantic-release/node_modules/color-convert/README.md create mode 100644 node_modules/semantic-release/node_modules/color-convert/conversions.js create mode 100644 node_modules/semantic-release/node_modules/color-convert/index.js create mode 100644 node_modules/semantic-release/node_modules/color-convert/package.json create mode 100644 node_modules/semantic-release/node_modules/color-convert/route.js create mode 100644 node_modules/semantic-release/node_modules/color-name/LICENSE create mode 100644 node_modules/semantic-release/node_modules/color-name/README.md create mode 100644 node_modules/semantic-release/node_modules/color-name/index.js create mode 100644 node_modules/semantic-release/node_modules/color-name/package.json create mode 100644 node_modules/semantic-release/node_modules/emoji-regex/LICENSE-MIT.txt create mode 100644 node_modules/semantic-release/node_modules/emoji-regex/README.md create mode 100644 node_modules/semantic-release/node_modules/emoji-regex/es2015/index.js create mode 100644 node_modules/semantic-release/node_modules/emoji-regex/es2015/text.js create mode 100644 node_modules/semantic-release/node_modules/emoji-regex/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/emoji-regex/index.js create mode 100644 node_modules/semantic-release/node_modules/emoji-regex/package.json create mode 100644 node_modules/semantic-release/node_modules/emoji-regex/text.js create mode 100644 node_modules/semantic-release/node_modules/fill-range/LICENSE create mode 100644 node_modules/semantic-release/node_modules/fill-range/README.md create mode 100644 node_modules/semantic-release/node_modules/fill-range/index.js create mode 100644 node_modules/semantic-release/node_modules/fill-range/package.json create mode 100644 node_modules/semantic-release/node_modules/find-up/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/find-up/index.js create mode 100644 node_modules/semantic-release/node_modules/find-up/license create mode 100644 node_modules/semantic-release/node_modules/find-up/package.json create mode 100644 node_modules/semantic-release/node_modules/find-up/readme.md delete mode 100644 node_modules/semantic-release/node_modules/http-proxy-agent/README.md delete mode 100644 node_modules/semantic-release/node_modules/http-proxy-agent/index.js delete mode 100644 node_modules/semantic-release/node_modules/http-proxy-agent/package.json delete mode 100644 node_modules/semantic-release/node_modules/https-proxy-agent/.editorconfig delete mode 100644 node_modules/semantic-release/node_modules/https-proxy-agent/.eslintrc.js delete mode 100644 node_modules/semantic-release/node_modules/https-proxy-agent/.github/workflows/test.yml delete mode 100644 node_modules/semantic-release/node_modules/https-proxy-agent/README.md delete mode 100644 node_modules/semantic-release/node_modules/https-proxy-agent/index.d.ts delete mode 100644 node_modules/semantic-release/node_modules/https-proxy-agent/index.js delete mode 100644 node_modules/semantic-release/node_modules/https-proxy-agent/package.json create mode 100644 node_modules/semantic-release/node_modules/is-fullwidth-code-point/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/is-fullwidth-code-point/index.js create mode 100644 node_modules/semantic-release/node_modules/is-fullwidth-code-point/license create mode 100644 node_modules/semantic-release/node_modules/is-fullwidth-code-point/package.json create mode 100644 node_modules/semantic-release/node_modules/is-fullwidth-code-point/readme.md create mode 100644 node_modules/semantic-release/node_modules/is-number/LICENSE create mode 100644 node_modules/semantic-release/node_modules/is-number/README.md create mode 100644 node_modules/semantic-release/node_modules/is-number/index.js create mode 100644 node_modules/semantic-release/node_modules/is-number/package.json delete mode 100644 node_modules/semantic-release/node_modules/issue-parser/README.md delete mode 100644 node_modules/semantic-release/node_modules/issue-parser/index.js delete mode 100644 node_modules/semantic-release/node_modules/issue-parser/lib/hosts-config.js delete mode 100644 node_modules/semantic-release/node_modules/issue-parser/package.json create mode 100644 node_modules/semantic-release/node_modules/locate-path/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/locate-path/index.js create mode 100644 node_modules/semantic-release/node_modules/locate-path/license create mode 100644 node_modules/semantic-release/node_modules/locate-path/package.json create mode 100644 node_modules/semantic-release/node_modules/locate-path/readme.md create mode 100644 node_modules/semantic-release/node_modules/micromatch/CHANGELOG.md create mode 100755 node_modules/semantic-release/node_modules/micromatch/LICENSE create mode 100644 node_modules/semantic-release/node_modules/micromatch/README.md create mode 100644 node_modules/semantic-release/node_modules/micromatch/index.js create mode 100644 node_modules/semantic-release/node_modules/micromatch/package.json create mode 100644 node_modules/semantic-release/node_modules/p-locate/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/p-locate/index.js create mode 100644 node_modules/semantic-release/node_modules/p-locate/license create mode 100644 node_modules/semantic-release/node_modules/p-locate/package.json create mode 100644 node_modules/semantic-release/node_modules/p-locate/readme.md create mode 100644 node_modules/semantic-release/node_modules/path-exists/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/path-exists/index.js create mode 100644 node_modules/semantic-release/node_modules/path-exists/license rename node_modules/{@semantic-release/github/node_modules/slash => semantic-release/node_modules/path-exists}/package.json (60%) create mode 100644 node_modules/semantic-release/node_modules/path-exists/readme.md create mode 100644 node_modules/semantic-release/node_modules/semver/classes/comparator.js create mode 100644 node_modules/semantic-release/node_modules/semver/classes/index.js create mode 100644 node_modules/semantic-release/node_modules/semver/classes/range.js create mode 100644 node_modules/semantic-release/node_modules/semver/classes/semver.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/clean.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/cmp.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/coerce.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/compare-build.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/compare-loose.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/compare.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/diff.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/eq.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/gt.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/gte.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/inc.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/lt.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/lte.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/major.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/minor.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/neq.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/parse.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/patch.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/prerelease.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/rcompare.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/rsort.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/satisfies.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/sort.js create mode 100644 node_modules/semantic-release/node_modules/semver/functions/valid.js create mode 100644 node_modules/semantic-release/node_modules/semver/index.js create mode 100644 node_modules/semantic-release/node_modules/semver/internal/constants.js create mode 100644 node_modules/semantic-release/node_modules/semver/internal/debug.js create mode 100644 node_modules/semantic-release/node_modules/semver/internal/identifiers.js create mode 100644 node_modules/semantic-release/node_modules/semver/internal/re.js create mode 100644 node_modules/semantic-release/node_modules/semver/preload.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/gtr.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/intersects.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/ltr.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/max-satisfying.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/min-satisfying.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/min-version.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/outside.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/simplify.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/subset.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/to-comparators.js create mode 100644 node_modules/semantic-release/node_modules/semver/ranges/valid.js create mode 100644 node_modules/semantic-release/node_modules/string-width/index.d.ts create mode 100644 node_modules/semantic-release/node_modules/to-regex-range/LICENSE create mode 100644 node_modules/semantic-release/node_modules/to-regex-range/README.md create mode 100644 node_modules/semantic-release/node_modules/to-regex-range/index.js create mode 100644 node_modules/semantic-release/node_modules/to-regex-range/package.json rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/LICENSE.md (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/README.md (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/dist-node/index.js (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/dist-node/index.js.map (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/dist-src/browser.js (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/dist-src/index.js (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/dist-src/node.js (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/dist-types/browser.d.ts (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/dist-types/index.d.ts (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/dist-types/node.d.ts (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/dist-web/index.js (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/dist-web/index.js.map (100%) rename node_modules/{@octokit/core => semantic-release}/node_modules/universal-user-agent/package.json (100%) create mode 100755 node_modules/semantic-release/node_modules/wrap-ansi/index.js create mode 100644 node_modules/semantic-release/node_modules/wrap-ansi/license create mode 100644 node_modules/semantic-release/node_modules/wrap-ansi/package.json create mode 100644 node_modules/semantic-release/node_modules/wrap-ansi/readme.md create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/apply-extends.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/apply-extends.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/argsert.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/argsert.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/command.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/command.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/common-types.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/common-types.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/completion-templates.d.ts rename node_modules/semantic-release/node_modules/yargs/{ => build}/lib/completion-templates.js (85%) create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/completion.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/completion.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/is-promise.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/is-promise.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/levenshtein.d.ts rename node_modules/semantic-release/node_modules/yargs/{ => build}/lib/levenshtein.js (54%) create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/middleware.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/middleware.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/obj-filter.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/obj-filter.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/parse-command.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/parse-command.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/process-argv.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/process-argv.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/usage.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/usage.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/validation.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/validation.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/yargs.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/yargs.js create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/yerror.d.ts create mode 100644 node_modules/semantic-release/node_modules/yargs/build/lib/yerror.js delete mode 100644 node_modules/semantic-release/node_modules/yargs/lib/apply-extends.js delete mode 100644 node_modules/semantic-release/node_modules/yargs/lib/argsert.js delete mode 100644 node_modules/semantic-release/node_modules/yargs/lib/command.js delete mode 100644 node_modules/semantic-release/node_modules/yargs/lib/completion.js delete mode 100644 node_modules/semantic-release/node_modules/yargs/lib/is-promise.js delete mode 100644 node_modules/semantic-release/node_modules/yargs/lib/middleware.js delete mode 100644 node_modules/semantic-release/node_modules/yargs/lib/obj-filter.js delete mode 100644 node_modules/semantic-release/node_modules/yargs/lib/usage.js delete mode 100644 node_modules/semantic-release/node_modules/yargs/lib/validation.js delete mode 100644 node_modules/semantic-release/node_modules/yargs/lib/yerror.js create mode 100644 node_modules/semantic-release/node_modules/yargs/locales/fi.json create mode 100644 node_modules/semver-diff/index.d.ts create mode 100644 node_modules/semver-diff/node_modules/semver/CHANGELOG.md create mode 100644 node_modules/semver-diff/node_modules/semver/LICENSE create mode 100644 node_modules/semver-diff/node_modules/semver/README.md create mode 100755 node_modules/semver-diff/node_modules/semver/bin/semver.js create mode 100644 node_modules/semver-diff/node_modules/semver/package.json create mode 100644 node_modules/semver-diff/node_modules/semver/range.bnf rename node_modules/{semantic-release => semver-diff}/node_modules/semver/semver.js (100%) create mode 100644 node_modules/supports-hyperlinks/node_modules/has-flag/index.d.ts create mode 100644 node_modules/supports-hyperlinks/node_modules/supports-color/browser.js create mode 100644 node_modules/supports-hyperlinks/node_modules/supports-color/index.js create mode 100644 node_modules/supports-hyperlinks/node_modules/supports-color/license create mode 100644 node_modules/supports-hyperlinks/node_modules/supports-color/package.json rename node_modules/{jest-worker => supports-hyperlinks}/node_modules/supports-color/readme.md (92%) create mode 100644 node_modules/temp-dir/index.d.ts create mode 100644 node_modules/tempy/node_modules/is-stream/index.d.ts create mode 100644 node_modules/tempy/node_modules/is-stream/index.js create mode 100644 node_modules/tempy/node_modules/is-stream/license create mode 100644 node_modules/tempy/node_modules/is-stream/package.json create mode 100644 node_modules/tempy/node_modules/is-stream/readme.md create mode 100644 node_modules/tempy/node_modules/type-fest/source/async-return-type.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/basic.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/conditional-except.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/conditional-keys.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/conditional-pick.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/except.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/literal-union.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/merge-exclusive.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/merge.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/mutable.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/opaque.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/partial-deep.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/promisable.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/promise-value.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/readonly-deep.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/require-at-least-one.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/require-exactly-one.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/set-optional.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/set-required.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/tsconfig-json.d.ts create mode 100644 node_modules/tempy/node_modules/type-fest/source/union-to-intersection.d.ts create mode 100644 node_modules/tunnel/.idea/encodings.xml create mode 100644 node_modules/tunnel/.idea/modules.xml create mode 100644 node_modules/tunnel/.idea/node-tunnel.iml create mode 100644 node_modules/tunnel/.idea/vcs.xml create mode 100644 node_modules/tunnel/.idea/workspace.xml create mode 100644 node_modules/tunnel/.travis.yml create mode 100644 node_modules/tunnel/CHANGELOG.md rename node_modules/{@octokit/core/node_modules/node-fetch/LICENSE.md => tunnel/LICENSE} (88%) create mode 100644 node_modules/tunnel/README.md create mode 100644 node_modules/tunnel/index.js create mode 100644 node_modules/tunnel/lib/tunnel.js create mode 100644 node_modules/tunnel/package.json create mode 100644 node_modules/unique-string/index.d.ts create mode 100644 node_modules/update-notifier/node_modules/semver-diff/index.js create mode 100644 node_modules/update-notifier/node_modules/semver-diff/license create mode 120000 node_modules/update-notifier/node_modules/semver-diff/node_modules/.bin/semver create mode 100644 node_modules/update-notifier/node_modules/semver-diff/package.json create mode 100644 node_modules/update-notifier/node_modules/semver-diff/readme.md rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/Changelog.md (58%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/LICENSE (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/README.md (70%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/dbcs-codec.js (82%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/dbcs-data.js (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/index.js (95%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/internal.js (95%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/sbcs-codec.js (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/sbcs-data-generated.js (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/sbcs-data.js (91%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/tables/big5-added.json (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/tables/cp936.json (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/tables/cp949.json (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/tables/cp950.json (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/tables/eucjp.json (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/tables/gbk-added.json (93%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/tables/shiftjis.json (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/utf16.js (57%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/encodings/utf7.js (95%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/lib/bom-handling.js (100%) rename node_modules/{ => whatwg-encoding/node_modules}/iconv-lite/lib/extend-node.js (100%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/lib/index.d.ts (70%) rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/lib/index.js (68%) create mode 100644 node_modules/whatwg-encoding/node_modules/iconv-lite/lib/streams.js rename node_modules/{encoding => whatwg-encoding}/node_modules/iconv-lite/package.json (63%) rename node_modules/{semantic-release => yargs}/node_modules/yargs-parser/CHANGELOG.md (89%) rename node_modules/{semantic-release => yargs}/node_modules/yargs-parser/LICENSE.txt (100%) rename node_modules/{semantic-release => yargs}/node_modules/yargs-parser/README.md (93%) rename node_modules/{semantic-release => yargs}/node_modules/yargs-parser/index.js (84%) rename node_modules/{semantic-release => yargs}/node_modules/yargs-parser/lib/tokenize-arg-string.js (100%) rename node_modules/{semantic-release => yargs}/node_modules/yargs-parser/package.json (97%) diff --git a/.github/workflows/lint-pr-title-preview.yml b/.github/workflows/lint-pr-title-preview.yml new file mode 100644 index 000000000..0257c2ed8 --- /dev/null +++ b/.github/workflows/lint-pr-title-preview.yml @@ -0,0 +1,19 @@ +name: 'Lint PR title preview (current branch)' +on: + pull_request: + types: + - opened + - edited + - synchronize + +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - uses: ./ + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver index 3d9135be6..287a478da 120000 --- a/node_modules/.bin/semver +++ b/node_modules/.bin/semver @@ -1 +1 @@ -../@typescript-eslint/eslint-plugin/node_modules/semver/bin/semver.js \ No newline at end of file +../@semantic-release/npm/node_modules/semver/bin/semver.js \ No newline at end of file diff --git a/node_modules/.yarn-integrity b/node_modules/.yarn-integrity index 895b5b87c..231958bc0 100644 --- a/node_modules/.yarn-integrity +++ b/node_modules/.yarn-integrity @@ -5,48 +5,28 @@ ], "flags": [], "linkedModules": [ - "api_cerebro", - "api_products", - "api_stores", - "babel-preset-react-hot", - "draft-js-autolist-plugin", - "eslint-config-molindo", - "fbjs", - "graphql", - "graphql-mock", - "molindo-eslint-config", - "molindo-node-logger", - "molindo-node-rest-client", - "multi-sitemap", - "react", - "react-apollo-network-status", - "react-dom", - "schedule", - "setlist-component-gallery", - "setlist-draftjs-plugins-news", - "setlist-graphql", - "zacasa-kfi-draftjs-plugins-content", - "zacasa-kfi-graphql" + "webpack" ], "topLevelPatterns": [ - "@actions/core@^1.2.4", - "@actions/github@^1.1.0", - "@semantic-release/changelog@3.0.5", - "@semantic-release/commit-analyzer@6.3.3", - "@semantic-release/git@7.0.18", - "@semantic-release/github@7.1.1", - "@semantic-release/release-notes-generator@7.3.2", - "conventional-changelog-conventionalcommits@4.4.0", - "conventional-commit-types@^2.3.0", - "conventional-commits-parser@^3.1.0", + "@actions/core@^1.2.6", + "@actions/github@^4.0.0", + "@semantic-release/changelog@5.0.1", + "@semantic-release/commit-analyzer@8.0.1", + "@semantic-release/git@9.0.0", + "@semantic-release/github@7.2.0", + "@semantic-release/release-notes-generator@9.0.1", + "conventional-changelog-conventionalcommits@4.5.0", + "conventional-commit-types@^3.0.0", + "conventional-commits-parser@^3.2.0", "eslint-config-molindo@5.0.1", "eslint@7.9.0", "jest@24.9.0", - "semantic-release@15.13.30" + "semantic-release@17.3.0" ], "lockfileEntries": { - "@actions/core@^1.2.4": "https://registry.yarnpkg.com/@actions/core/-/core-1.2.4.tgz#96179dbf9f8d951dd74b40a0dbd5c22555d186ab", - "@actions/github@^1.1.0": "https://registry.yarnpkg.com/@actions/github/-/github-1.1.0.tgz#06f34e6b0cf07eb2b3641de3e680dbfae6bcd400", + "@actions/core@^1.2.6": "https://registry.yarnpkg.com/@actions/core/-/core-1.2.6.tgz#a78d49f41a4def18e88ce47c2cac615d5694bf09", + "@actions/github@^4.0.0": "https://registry.yarnpkg.com/@actions/github/-/github-4.0.0.tgz#d520483151a2bf5d2dc9cd0f20f9ac3a2e458816", + "@actions/http-client@^1.0.8": "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.9.tgz#af1947d020043dbc6a3b4c5918892095c30ffb52", "@babel/code-frame@^7.0.0": "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a", "@babel/code-frame@^7.10.4": "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a", "@babel/core@^7.1.0": "https://registry.yarnpkg.com/@babel/core/-/core-7.11.1.tgz#2c55b604e73a40dc21b0e52650b11c65cf276643", @@ -111,42 +91,47 @@ "@nodelib/fs.stat@^2.0.2": "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz#34dc5f4cabbc720f4e60f75a747e7ecd6c175bd3", "@nodelib/fs.walk@^1.2.3": "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz#011b9202a70a6366e436ca5c065844528ab04976", "@octokit/auth-token@^2.4.0": "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.4.2.tgz#10d0ae979b100fa6b72fa0e8e63e27e6d0dbff8a", + "@octokit/auth-token@^2.4.4": "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.4.4.tgz#ee31c69b01d0378c12fd3ffe406030f3d94d3b56", "@octokit/core@^2.4.3": "https://registry.yarnpkg.com/@octokit/core/-/core-2.5.4.tgz#f7fbf8e4f86c5cc2497a8887ba2561ec8d358054", + "@octokit/core@^3.0.0": "https://registry.yarnpkg.com/@octokit/core/-/core-3.2.3.tgz#7fc41fe4f7992109dbd06fd39b3df4e928713850", + "@octokit/core@^3.2.3": "https://registry.yarnpkg.com/@octokit/core/-/core-3.2.3.tgz#7fc41fe4f7992109dbd06fd39b3df4e928713850", "@octokit/endpoint@^6.0.1": "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.5.tgz#43a6adee813c5ffd2f719e20cfd14a1fee7c193a", - "@octokit/graphql@^2.0.1": "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-2.1.3.tgz#60c058a0ed5fa242eca6f938908d95fd1a2f4b92", "@octokit/graphql@^4.3.1": "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.5.6.tgz#708143ba15cf7c1879ed6188266e7f270be805d4", - "@octokit/plugin-paginate-rest@^1.1.1": "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-1.1.2.tgz#004170acf8c2be535aba26727867d692f7b488fc", + "@octokit/graphql@^4.5.8": "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.5.8.tgz#d42373633c3015d0eafce64a8ce196be167fdd9b", + "@octokit/openapi-types@^1.2.0": "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-1.2.2.tgz#55d927436c07ef148ec927fbf4d55580a19bd68e", "@octokit/plugin-paginate-rest@^2.2.0": "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.4.0.tgz#92f951ddc8a1cd505353fa07650752ca25ed7e93", + "@octokit/plugin-paginate-rest@^2.2.3": "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.6.2.tgz#45d13dbf5ff8aed54f1a3716b1d57fdc62720c5f", + "@octokit/plugin-paginate-rest@^2.6.2": "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.6.2.tgz#45d13dbf5ff8aed54f1a3716b1d57fdc62720c5f", "@octokit/plugin-request-log@^1.0.0": "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.0.tgz#eef87a431300f6148c39a7f75f8cfeb218b2547e", - "@octokit/plugin-rest-endpoint-methods@2.4.0": "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-2.4.0.tgz#3288ecf5481f68c494dd0602fc15407a59faf61e", + "@octokit/plugin-request-log@^1.0.2": "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.2.tgz#394d59ec734cd2f122431fbaf05099861ece3c44", "@octokit/plugin-rest-endpoint-methods@3.17.0": "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-3.17.0.tgz#d8ba04eb883849dd98666c55bf49d8c9fe7be055", - "@octokit/request-error@^1.0.2": "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-1.2.1.tgz#ede0714c773f32347576c25649dc013ae6b31801", + "@octokit/plugin-rest-endpoint-methods@4.3.1": "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.3.1.tgz#2447983f5d7fab44ce147e4ba0515838a05fb038", + "@octokit/plugin-rest-endpoint-methods@^4.0.0": "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-4.3.1.tgz#2447983f5d7fab44ce147e4ba0515838a05fb038", "@octokit/request-error@^2.0.0": "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.2.tgz#0e76b83f5d8fdda1db99027ea5f617c2e6ba9ed0", - "@octokit/request@^5.0.0": "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.7.tgz#fd703ee092e0463ceba49ff7a3e61cb4cf8a0fde", - "@octokit/request@^5.2.0": "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.7.tgz#fd703ee092e0463ceba49ff7a3e61cb4cf8a0fde", "@octokit/request@^5.3.0": "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.9.tgz#0a46f11b82351b3416d3157261ad9b1558c43365", "@octokit/request@^5.4.0": "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.9.tgz#0a46f11b82351b3416d3157261ad9b1558c43365", - "@octokit/rest@^16.15.0": "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.43.2.tgz#c53426f1e1d1044dee967023e3279c50993dd91b", - "@octokit/rest@^16.27.0": "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.43.2.tgz#c53426f1e1d1044dee967023e3279c50993dd91b", + "@octokit/request@^5.4.12": "https://registry.yarnpkg.com/@octokit/request/-/request-5.4.12.tgz#b04826fa934670c56b135a81447be2c1723a2ffc", "@octokit/rest@^17.0.0": "https://registry.yarnpkg.com/@octokit/rest/-/rest-17.11.2.tgz#f3dbd46f9f06361c646230fd0ef8598e59183ead", - "@octokit/types@^2.0.0": "https://registry.yarnpkg.com/@octokit/types/-/types-2.16.2.tgz#4c5f8da3c6fecf3da1811aef678fda03edac35d2", - "@octokit/types@^2.0.1": "https://registry.yarnpkg.com/@octokit/types/-/types-2.16.2.tgz#4c5f8da3c6fecf3da1811aef678fda03edac35d2", + "@octokit/rest@^18.0.0": "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.0.11.tgz#2b20eb7366ea3c11aae8e3befa29e165d0ed4e65", "@octokit/types@^4.1.6": "https://registry.yarnpkg.com/@octokit/types/-/types-4.1.10.tgz#e4029c11e2cc1335051775bc1600e7e740e4aca4", "@octokit/types@^5.0.0": "https://registry.yarnpkg.com/@octokit/types/-/types-5.4.0.tgz#25f2f8e24fec09214553168c41c06383c9d0f529", "@octokit/types@^5.0.1": "https://registry.yarnpkg.com/@octokit/types/-/types-5.4.0.tgz#25f2f8e24fec09214553168c41c06383c9d0f529", "@octokit/types@^5.5.0": "https://registry.yarnpkg.com/@octokit/types/-/types-5.5.0.tgz#e5f06e8db21246ca102aa28444cdb13ae17a139b", + "@octokit/types@^6.0.0": "https://registry.yarnpkg.com/@octokit/types/-/types-6.0.3.tgz#df21856c3690a90e332ea36e39fbf413b0a4f25d", + "@octokit/types@^6.0.1": "https://registry.yarnpkg.com/@octokit/types/-/types-6.0.3.tgz#df21856c3690a90e332ea36e39fbf413b0a4f25d", + "@octokit/types@^6.0.3": "https://registry.yarnpkg.com/@octokit/types/-/types-6.0.3.tgz#df21856c3690a90e332ea36e39fbf413b0a4f25d", "@rushstack/eslint-patch@1.0.2": "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.0.2.tgz#a8d0048fed2885802351144bfc651f06b5178521", - "@semantic-release/changelog@3.0.5": "https://registry.yarnpkg.com/@semantic-release/changelog/-/changelog-3.0.5.tgz#37423eee40f550acb8e09ff1d951ba79263e3b2d", - "@semantic-release/commit-analyzer@6.3.3": "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-6.3.3.tgz#885f7e46e2f0aef23a23be0904dbf18d6ece45ca", - "@semantic-release/commit-analyzer@^6.1.0": "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-6.3.3.tgz#885f7e46e2f0aef23a23be0904dbf18d6ece45ca", + "@semantic-release/changelog@5.0.1": "https://registry.yarnpkg.com/@semantic-release/changelog/-/changelog-5.0.1.tgz#50a84b63e5d391b7debfe021421589fa2bcdafe4", + "@semantic-release/commit-analyzer@8.0.1": "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz#5d2a37cd5a3312da0e3ac05b1ca348bf60b90bca", + "@semantic-release/commit-analyzer@^8.0.0": "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz#5d2a37cd5a3312da0e3ac05b1ca348bf60b90bca", "@semantic-release/error@^2.1.0": "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0", "@semantic-release/error@^2.2.0": "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0", - "@semantic-release/git@7.0.18": "https://registry.yarnpkg.com/@semantic-release/git/-/git-7.0.18.tgz#f37c076bc094762cb343dab49ab893d31de961e8", - "@semantic-release/github@7.1.1": "https://registry.yarnpkg.com/@semantic-release/github/-/github-7.1.1.tgz#e998aa9a9cd770838d9f27c64f060c2b686b9d95", - "@semantic-release/github@^5.1.0": "https://registry.yarnpkg.com/@semantic-release/github/-/github-5.5.8.tgz#2c16d212ca057ba0b0553b6eb62ff0949cfbca6a", - "@semantic-release/npm@^5.0.5": "https://registry.yarnpkg.com/@semantic-release/npm/-/npm-5.3.5.tgz#4a83952056d32e1401e1078c3910a159afc0cba8", - "@semantic-release/release-notes-generator@7.3.2": "https://registry.yarnpkg.com/@semantic-release/release-notes-generator/-/release-notes-generator-7.3.2.tgz#a858b35c9c62f780d285aeaca8ef9891a62c2f9c", - "@semantic-release/release-notes-generator@^7.1.2": "https://registry.yarnpkg.com/@semantic-release/release-notes-generator/-/release-notes-generator-7.3.5.tgz#ed0941d5b594f18fa1d2667493c03e811f97c0ff", + "@semantic-release/git@9.0.0": "https://registry.yarnpkg.com/@semantic-release/git/-/git-9.0.0.tgz#304c4883c87d095b1faaae93300f1f1e0466e9a5", + "@semantic-release/github@7.2.0": "https://registry.yarnpkg.com/@semantic-release/github/-/github-7.2.0.tgz#925f3efd91adabfc4bbe0de24b79fe1a8a38b4e2", + "@semantic-release/github@^7.0.0": "https://registry.yarnpkg.com/@semantic-release/github/-/github-7.1.1.tgz#e998aa9a9cd770838d9f27c64f060c2b686b9d95", + "@semantic-release/npm@^7.0.0": "https://registry.yarnpkg.com/@semantic-release/npm/-/npm-7.0.6.tgz#1301bd57d246eae048d7104a735467bb0829f3d8", + "@semantic-release/release-notes-generator@9.0.1": "https://registry.yarnpkg.com/@semantic-release/release-notes-generator/-/release-notes-generator-9.0.1.tgz#732d285d103064f2a64f08a32031551ebb4f918b", + "@semantic-release/release-notes-generator@^9.0.0": "https://registry.yarnpkg.com/@semantic-release/release-notes-generator/-/release-notes-generator-9.0.1.tgz#732d285d103064f2a64f08a32031551ebb4f918b", "@tootallnate/once@1": "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82", "@types/babel__core@^7.1.0": "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.9.tgz#77e59d438522a6fb898fa43dc3455c6e72f3963d", "@types/babel__generator@*": "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.1.tgz#4901767b397e8711aeb99df8d396d7ba7b7f0e04", @@ -155,16 +140,13 @@ "@types/babel__traverse@^7.0.6": "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.0.13.tgz#1874914be974a492e1b4cb00585cabb274e8ba18", "@types/color-name@^1.1.1": "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0", "@types/eslint-visitor-keys@^1.0.0": "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d", - "@types/glob@^7.1.1": "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.3.tgz#e6ba80f36b7daad2c685acd9266382e68985c183", "@types/istanbul-lib-coverage@*": "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762", "@types/istanbul-lib-coverage@^2.0.0": "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762", "@types/istanbul-lib-report@*": "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686", "@types/istanbul-reports@^1.1.1": "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz#e875cc689e47bce549ec81f3df5e6f6f11cfaeb2", "@types/json-schema@^7.0.3": "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.6.tgz#f4c7ec43e81b319a9815115031709f26987891f0", "@types/json5@^0.0.29": "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee", - "@types/minimatch@*": "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d", "@types/minimist@^1.2.0": "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.0.tgz#69a23a3ad29caf0097f06eda59b361ee2f0639f6", - "@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-14.0.27.tgz#a151873af5a5e851b51b3b065c9e63390a9e0eb1", "@types/node@>= 8": "https://registry.yarnpkg.com/@types/node/-/node-14.0.27.tgz#a151873af5a5e851b51b3b065c9e63390a9e0eb1", "@types/normalize-package-data@^2.4.0": "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e", "@types/parse-json@^4.0.0": "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0", @@ -191,7 +173,6 @@ "acorn@^6.0.1": "https://registry.yarnpkg.com/acorn/-/acorn-6.4.1.tgz#531e58ba3f51b9dacb9a6646ca4debf5b14ca474", "acorn@^7.4.0": "https://registry.yarnpkg.com/acorn/-/acorn-7.4.0.tgz#e1ad486e6c54501634c6c397c5c121daa383607c", "agent-base@4": "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee", - "agent-base@5": "https://registry.yarnpkg.com/agent-base/-/agent-base-5.1.1.tgz#e8fb3f242959db44d63be665db7a8e739537a32c", "agent-base@6": "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.1.tgz#808007e4e5867decb0ab6ab2f928fbdb5a596db4", "agent-base@^4.3.0": "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee", "agent-base@~4.2.1": "https://registry.yarnpkg.com/agent-base/-/agent-base-4.2.1.tgz#d89e5999f797875674c07d87f260fc41e83e8ca9", @@ -204,7 +185,7 @@ "ansi-align@^2.0.0": "https://registry.yarnpkg.com/ansi-align/-/ansi-align-2.0.0.tgz#c36aeccba563b89ceb556f3690f0b1d9e3547f7f", "ansi-colors@^4.1.1": "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348", "ansi-escapes@^3.0.0": "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b", - "ansi-escapes@^3.1.0": "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b", + "ansi-escapes@^4.3.1": "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61", "ansi-regex@^2.0.0": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df", "ansi-regex@^3.0.0": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998", "ansi-regex@^4.0.0": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997", @@ -212,6 +193,7 @@ "ansi-regex@^5.0.0": "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75", "ansi-styles@^3.2.0": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d", "ansi-styles@^3.2.1": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d", + "ansi-styles@^4.0.0": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359", "ansi-styles@^4.1.0": "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359", "ansicolors@~0.3.2": "https://registry.yarnpkg.com/ansicolors/-/ansicolors-0.3.2.tgz#665597de86a9ffe3aa9bfbe6cae5c6ea426b4979", "ansistyles@~0.1.3": "https://registry.yarnpkg.com/ansistyles/-/ansistyles-0.1.3.tgz#5de60415bda071bb37127854c864f41b23254539", @@ -247,7 +229,6 @@ "async-limiter@~1.0.0": "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd", "asynckit@^0.4.0": "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79", "at-least-node@^1.0.0": "https://registry.yarnpkg.com/at-least-node/-/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2", - "atob-lite@^2.0.0": "https://registry.yarnpkg.com/atob-lite/-/atob-lite-2.0.0.tgz#0fef5ad46f1bd7a8502c65727f0367d5ee43d696", "atob@^2.1.2": "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9", "aws-sign2@~0.7.0": "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8", "aws4@^1.8.0": "https://registry.yarnpkg.com/aws4/-/aws4-1.10.1.tgz#e1e82e4f3e999e2cfd61b161280d16a111f86428", @@ -262,7 +243,6 @@ "balanced-match@^1.0.0": "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767", "base@^0.11.1": "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f", "bcrypt-pbkdf@^1.0.0": "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e", - "before-after-hook@^2.0.0": "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.1.0.tgz#b6c03487f44e24200dd30ca5e6a1979c5d2fb635", "before-after-hook@^2.1.0": "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.1.0.tgz#b6c03487f44e24200dd30ca5e6a1979c5d2fb635", "bin-links@^1.1.2": "https://registry.yarnpkg.com/bin-links/-/bin-links-1.1.8.tgz#bd39aadab5dc4bdac222a07df5baf1af745b2228", "bin-links@^1.1.8": "https://registry.yarnpkg.com/bin-links/-/bin-links-1.1.8.tgz#bd39aadab5dc4bdac222a07df5baf1af745b2228", @@ -278,7 +258,6 @@ "browser-process-hrtime@^1.0.0": "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626", "browser-resolve@^1.11.3": "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6", "bser@2.1.1": "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05", - "btoa-lite@^1.0.0": "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337", "buffer-from@^1.0.0": "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef", "builtins@^1.0.3": "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88", "byline@^5.0.0": "https://registry.yarnpkg.com/byline/-/byline-5.0.0.tgz#741c5216468eadc457b03410118ad77de8c1ddb1", @@ -301,7 +280,6 @@ "chalk@^2.0.0": "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424", "chalk@^2.0.1": "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424", "chalk@^2.3.2": "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424", - "chalk@^2.4.1": "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424", "chalk@^2.4.2": "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424", "chalk@^4.0.0": "https://registry.yarnpkg.com/chalk/-/chalk-4.1.0.tgz#4e14870a618d9e2edd97dd8345fd9d9dc315646a", "chownr@^1.1.1": "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b", @@ -320,6 +298,7 @@ "cli-table@^0.3.1": "https://registry.yarnpkg.com/cli-table/-/cli-table-0.3.1.tgz#f53b05266a8b1a0b934b3d0821e6e2dc5914ae23", "cliui@^3.2.0": "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d", "cliui@^5.0.0": "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5", + "cliui@^6.0.0": "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1", "clone@^1.0.2": "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e", "cmd-shim@^3.0.0": "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-3.0.3.tgz#2c35238d3df37d98ecdd7d5f6b8dc6b21cadc7cb", "cmd-shim@^3.0.3": "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-3.0.3.tgz#2c35238d3df37d98ecdd7d5f6b8dc6b21cadc7cb", @@ -347,14 +326,14 @@ "console-control-strings@~1.1.0": "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e", "contains-path@^0.1.0": "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a", "conventional-changelog-angular@^5.0.0": "https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-5.0.11.tgz#99a3ca16e4a5305e0c2c2fae3ef74fd7631fc3fb", - "conventional-changelog-conventionalcommits@4.4.0": "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.4.0.tgz#8d96687141c9bbd725a89b95c04966d364194cd4", + "conventional-changelog-conventionalcommits@4.5.0": "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.5.0.tgz#a02e0b06d11d342fdc0f00c91d78265ed0bc0a62", "conventional-changelog-writer@^4.0.0": "https://registry.yarnpkg.com/conventional-changelog-writer/-/conventional-changelog-writer-4.0.17.tgz#4753aaa138bf5aa59c0b274cb5937efcd2722e21", - "conventional-commit-types@^2.3.0": "https://registry.yarnpkg.com/conventional-commit-types/-/conventional-commit-types-2.3.0.tgz#bc3c8ebba0a9e4b3ecc548f1d0674e251ab8be22", + "conventional-commit-types@^3.0.0": "https://registry.yarnpkg.com/conventional-commit-types/-/conventional-commit-types-3.0.0.tgz#7c9214e58eae93e85dd66dbfbafe7e4fffa2365b", "conventional-commits-filter@^2.0.0": "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-2.0.6.tgz#0935e1240c5ca7698329affee1b6a46d33324c4c", "conventional-commits-filter@^2.0.6": "https://registry.yarnpkg.com/conventional-commits-filter/-/conventional-commits-filter-2.0.6.tgz#0935e1240c5ca7698329affee1b6a46d33324c4c", "conventional-commits-parser@^3.0.0": "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.1.0.tgz#10140673d5e7ef5572633791456c5d03b69e8be4", "conventional-commits-parser@^3.0.7": "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.1.0.tgz#10140673d5e7ef5572633791456c5d03b69e8be4", - "conventional-commits-parser@^3.1.0": "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.1.0.tgz#10140673d5e7ef5572633791456c5d03b69e8be4", + "conventional-commits-parser@^3.2.0": "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.2.0.tgz#9e261b139ca4b7b29bcebbc54460da36894004ca", "convert-source-map@^1.4.0": "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442", "convert-source-map@^1.7.0": "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442", "copy-concurrently@^1.0.0": "https://registry.yarnpkg.com/copy-concurrently/-/copy-concurrently-1.0.5.tgz#92297398cae34937fcafd6ec8139c18051f0b5e0", @@ -369,6 +348,7 @@ "cross-spawn@^7.0.0": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6", "cross-spawn@^7.0.2": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6", "crypto-random-string@^1.0.0": "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e", + "crypto-random-string@^2.0.0": "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5", "cssom@0.3.x": "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a", "cssom@>= 0.3.2 < 0.4.0": "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a", "cssstyle@^1.0.0": "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.4.0.tgz#9d31328229d3c565c61e586b02041a28fccdccf1", @@ -427,12 +407,13 @@ "ecc-jsbn@~0.1.1": "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9", "editor@~1.0.0": "https://registry.yarnpkg.com/editor/-/editor-1.0.0.tgz#60c7f87bd62bcc6a894fa8ccd6afb7823a24f742", "emoji-regex@^7.0.1": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156", + "emoji-regex@^8.0.0": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37", "emoji-regex@^9.0.0": "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.0.0.tgz#48a2309cc8a1d2e9d23bc6a67c39b63032e76ea4", "encoding@^0.1.11": "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9", "end-of-stream@^1.0.0": "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0", "end-of-stream@^1.1.0": "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0", "enquirer@^2.3.5": "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d", - "env-ci@^4.0.0": "https://registry.yarnpkg.com/env-ci/-/env-ci-4.5.2.tgz#40b08825dcf4ed5b2cddd3d638190571cf96347a", + "env-ci@^5.0.0": "https://registry.yarnpkg.com/env-ci/-/env-ci-5.0.2.tgz#48b6687f8af8cdf5e31b8fcf2987553d085249d9", "env-paths@^2.2.0": "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.0.tgz#cdca557dc009152917d6166e2febe1f039685e43", "err-code@^1.0.0": "https://registry.yarnpkg.com/err-code/-/err-code-1.1.2.tgz#06e0116d3028f6aef4806849eb0ea6a748ae6960", "errno@~0.1.7": "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618", @@ -484,7 +465,7 @@ "exec-sh@^0.3.2": "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.4.tgz#3a018ceb526cc6f6df2bb504b2bfe8e3a4934ec5", "execa@^0.7.0": "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777", "execa@^1.0.0": "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8", - "execa@^3.2.0": "https://registry.yarnpkg.com/execa/-/execa-3.4.0.tgz#c08ed4550ef65d858fac269ffc8572446f37eb89", + "execa@^4.0.0": "https://registry.yarnpkg.com/execa/-/execa-4.0.3.tgz#0a34dabbad6d66100bd6f2c576c8669403f317f2", "exit@^0.1.2": "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c", "expand-brackets@^2.1.4": "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622", "expect@^24.9.0": "https://registry.yarnpkg.com/expect/-/expect-24.9.0.tgz#b75165b4817074fa4a157794f46fe9f1ba15b6ca", @@ -497,7 +478,6 @@ "extsprintf@^1.2.0": "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f", "fast-deep-equal@^3.1.1": "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525", "fast-diff@^1.1.2": "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03", - "fast-glob@^3.0.3": "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.4.tgz#d20aefbf99579383e7f3cc66529158c9b98554d3", "fast-glob@^3.1.1": "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.4.tgz#d20aefbf99579383e7f3cc66529158c9b98554d3", "fast-json-stable-stringify@^2.0.0": "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633", "fast-levenshtein@^2.0.6": "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917", @@ -528,7 +508,6 @@ "from2@^1.3.0": "https://registry.yarnpkg.com/from2/-/from2-1.3.0.tgz#88413baaa5f9a597cfde9221d86986cd3c061dfd", "from2@^2.1.0": "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af", "from2@^2.3.0": "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af", - "fs-extra@^8.0.0": "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0", "fs-extra@^9.0.0": "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc", "fs-minipass@^1.2.5": "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7", "fs-vacuum@^1.2.10": "https://registry.yarnpkg.com/fs-vacuum/-/fs-vacuum-1.2.10.tgz#b7629bec07a4031a2548fdf99f5ecf1cc8b31e36", @@ -564,7 +543,6 @@ "global-dirs@^0.1.0": "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445", "globals@^11.1.0": "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e", "globals@^12.1.0": "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8", - "globby@^10.0.0": "https://registry.yarnpkg.com/globby/-/globby-10.0.2.tgz#277593e745acaa4646c3ab411289ec47a0392543", "globby@^11.0.0": "https://registry.yarnpkg.com/globby/-/globby-11.0.1.tgz#9a2bf107a068f3ffeabc49ad702c79ede8cfd357", "gonzales-pe@^4.0.3": "https://registry.yarnpkg.com/gonzales-pe/-/gonzales-pe-4.3.0.tgz#fe9dec5f3c557eead09ff868c65826be54d067b3", "got@^6.7.1": "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0", @@ -580,7 +558,6 @@ "har-schema@^2.0.0": "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92", "har-validator@~5.1.3": "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd", "hard-rejection@^2.1.0": "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883", - "has-flag@^2.0.0": "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51", "has-flag@^3.0.0": "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd", "has-flag@^4.0.0": "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b", "has-symbols@^1.0.0": "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8", @@ -597,15 +574,14 @@ "hosted-git-info@^2.7.1": "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488", "hosted-git-info@^2.8.8": "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488", "hosted-git-info@^3.0.0": "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-3.0.5.tgz#bea87905ef7317442e8df3087faa3c842397df03", + "hosted-git-info@^3.0.6": "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-3.0.7.tgz#a30727385ea85acfcee94e0aad9e368c792e036c", "html-encoding-sniffer@^1.0.2": "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8", "html-escaper@^2.0.0": "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453", "http-cache-semantics@^3.8.1": "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2", "http-proxy-agent@^2.1.0": "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz#e4821beef5b2142a2026bd73926fe537631c5405", - "http-proxy-agent@^3.0.0": "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-3.0.0.tgz#598f42dc815949a11e2c6dbfdf24cd8a4c165327", "http-proxy-agent@^4.0.0": "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a", "http-signature@~1.2.0": "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1", "https-proxy-agent@^2.2.3": "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b", - "https-proxy-agent@^4.0.0": "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz#702b71fb5520a132a66de1f67541d9e62154d82b", "https-proxy-agent@^5.0.0": "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2", "human-signals@^1.1.1": "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3", "humanize-ms@^1.2.1": "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed", @@ -615,7 +591,6 @@ "iferr@^1.0.2": "https://registry.yarnpkg.com/iferr/-/iferr-1.0.2.tgz#e9fde49a9da06dc4a4194c6c9ed6d08305037a6d", "ignore-walk@^3.0.1": "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.3.tgz#017e2447184bfeade7c238e4aefdd1e8f95b1e37", "ignore@^4.0.6": "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc", - "ignore@^5.1.1": "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57", "ignore@^5.1.4": "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57", "import-fresh@^3.0.0": "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66", "import-fresh@^3.1.0": "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66", @@ -667,6 +642,7 @@ "is-extglob@^2.1.1": "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2", "is-fullwidth-code-point@^1.0.0": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb", "is-fullwidth-code-point@^2.0.0": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f", + "is-fullwidth-code-point@^3.0.0": "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d", "is-generator-fn@^2.0.0": "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118", "is-glob@^4.0.0": "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc", "is-glob@^4.0.1": "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc", @@ -705,7 +681,6 @@ "isobject@^3.0.0": "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df", "isobject@^3.0.1": "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df", "isstream@~0.1.2": "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a", - "issue-parser@^5.0.0": "https://registry.yarnpkg.com/issue-parser/-/issue-parser-5.0.0.tgz#0e22a40bc275b6c7da6ddf4a9b979e8ca9faf0d4", "issue-parser@^6.0.0": "https://registry.yarnpkg.com/issue-parser/-/issue-parser-6.0.0.tgz#b1edd06315d4f2044a9755daf85fdafde9b4014a", "istanbul-lib-coverage@^2.0.2": "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz#675f0ab69503fad4b1d849f736baaca803344f49", "istanbul-lib-coverage@^2.0.5": "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz#675f0ab69503fad4b1d849f736baaca803344f49", @@ -761,7 +736,6 @@ "json-stringify-safe@~5.0.1": "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb", "json5@^1.0.1": "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe", "json5@^2.1.2": "https://registry.yarnpkg.com/json5/-/json5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43", - "jsonfile@^4.0.0": "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb", "jsonfile@^6.0.1": "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.0.1.tgz#98966cba214378c8c84b82e085907b40bf614179", "jsonparse@^1.2.0": "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280", "jsprim@^1.2.2": "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2", @@ -814,11 +788,9 @@ "lodash.ismatch@^4.4.0": "https://registry.yarnpkg.com/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz#756cb5150ca3ba6f11085a78849645f188f85f37", "lodash.isplainobject@^4.0.6": "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb", "lodash.isstring@^4.0.1": "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451", - "lodash.set@^4.3.2": "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23", "lodash.sortby@^4.7.0": "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438", "lodash.toarray@^4.4.0": "https://registry.yarnpkg.com/lodash.toarray/-/lodash.toarray-4.4.0.tgz#24c4bfcd6b2fba38bfd0594db1179d8e9b656561", "lodash.union@~4.6.0": "https://registry.yarnpkg.com/lodash.union/-/lodash.union-4.6.0.tgz#48bb5088409f16f1821666641c44dd1aaae3cd88", - "lodash.uniq@^4.5.0": "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773", "lodash.uniq@~4.5.0": "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773", "lodash.uniqby@^4.7.0": "https://registry.yarnpkg.com/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz#d99c07a669e9e6d24e1362dfe266c67616af1302", "lodash.without@~4.4.0": "https://registry.yarnpkg.com/lodash.without/-/lodash.without-4.4.0.tgz#3cd4574a00b67bae373a94b748772640507b7aac", @@ -843,13 +815,13 @@ "map-obj@^1.0.0": "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d", "map-obj@^4.0.0": "https://registry.yarnpkg.com/map-obj/-/map-obj-4.1.0.tgz#b91221b542734b9f14256c0132c897c5d7256fd5", "map-visit@^1.0.0": "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f", - "marked-terminal@^3.2.0": "https://registry.yarnpkg.com/marked-terminal/-/marked-terminal-3.3.0.tgz#25ce0c0299285998c7636beaefc87055341ba1bd", - "marked@^0.7.0": "https://registry.yarnpkg.com/marked/-/marked-0.7.0.tgz#b64201f051d271b1edc10a04d1ae9b74bb8e5c0e", - "meant@~1.0.1": "https://registry.yarnpkg.com/meant/-/meant-1.0.2.tgz#5d0c78310a3d8ae1408a16be0fe0bd42a969f560", + "marked-terminal@^4.0.0": "https://registry.yarnpkg.com/marked-terminal/-/marked-terminal-4.1.0.tgz#01087372d3636dc7cb286475a1d6147187f500e0", + "marked@^1.0.0": "https://registry.yarnpkg.com/marked/-/marked-1.1.1.tgz#e5d61b69842210d5df57b05856e0c91572703e6a", + "meant@^1.0.2": "https://registry.yarnpkg.com/meant/-/meant-1.0.2.tgz#5d0c78310a3d8ae1408a16be0fe0bd42a969f560", "mem@^1.1.0": "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76", "meow@^7.0.0": "https://registry.yarnpkg.com/meow/-/meow-7.1.0.tgz#50ecbcdafa16f8b58fb7eb9675b933f6473b3a59", + "meow@^8.0.0": "https://registry.yarnpkg.com/meow/-/meow-8.0.0.tgz#1aa10ee61046719e334ffdc038bb5069250ec99a", "merge-stream@^2.0.0": "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60", - "merge2@^1.2.3": "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae", "merge2@^1.3.0": "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae", "micromatch@^3.1.10": "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23", "micromatch@^3.1.4": "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23", @@ -892,9 +864,8 @@ "neo-async@^2.6.0": "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f", "nerf-dart@^1.0.0": "https://registry.yarnpkg.com/nerf-dart/-/nerf-dart-1.0.0.tgz#e6dab7febf5ad816ea81cf5c629c5a0ebde72c1a", "nice-try@^1.0.4": "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366", - "node-emoji@^1.4.1": "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.10.0.tgz#8886abd25d9c7bb61802a658523d1f8d2a89b2da", + "node-emoji@^1.10.0": "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.10.0.tgz#8886abd25d9c7bb61802a658523d1f8d2a89b2da", "node-fetch-npm@^2.0.2": "https://registry.yarnpkg.com/node-fetch-npm/-/node-fetch-npm-2.0.4.tgz#6507d0e17a9ec0be3bec516958a497cec54bf5a4", - "node-fetch@^2.3.0": "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd", "node-fetch@^2.6.1": "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052", "node-gyp@^5.0.2": "https://registry.yarnpkg.com/node-gyp/-/node-gyp-5.1.1.tgz#eb915f7b631c937d282e33aed44cb7a025f62a3e", "node-gyp@^5.1.0": "https://registry.yarnpkg.com/node-gyp/-/node-gyp-5.1.1.tgz#eb915f7b631c937d282e33aed44cb7a025f62a3e", @@ -907,8 +878,9 @@ "normalize-package-data@^2.3.2": "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8", "normalize-package-data@^2.4.0": "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8", "normalize-package-data@^2.5.0": "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8", + "normalize-package-data@^3.0.0": "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-3.0.0.tgz#1f8a7c423b3d2e85eb36985eaf81de381d01301a", "normalize-path@^2.1.1": "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9", - "normalize-url@^4.0.0": "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129", + "normalize-url@^5.0.0": "https://registry.yarnpkg.com/normalize-url/-/normalize-url-5.1.0.tgz#04b8f1b34ea49ff713fc20b2218eba41fb9974a3", "npm-audit-report@^1.3.3": "https://registry.yarnpkg.com/npm-audit-report/-/npm-audit-report-1.3.3.tgz#8226deeb253b55176ed147592a3995442f2179ed", "npm-bundled@^1.0.1": "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.1.tgz#1edd570865a94cdb1bc8220775e29466c9fb234b", "npm-cache-filename@~1.0.2": "https://registry.yarnpkg.com/npm-cache-filename/-/npm-cache-filename-1.0.2.tgz#ded306c5b0bfc870a9e9faf823bc5f283e05ae11", @@ -929,11 +901,11 @@ "npm-profile@^4.0.2": "https://registry.yarnpkg.com/npm-profile/-/npm-profile-4.0.4.tgz#28ee94390e936df6d084263ee2061336a6a1581b", "npm-profile@^4.0.4": "https://registry.yarnpkg.com/npm-profile/-/npm-profile-4.0.4.tgz#28ee94390e936df6d084263ee2061336a6a1581b", "npm-registry-fetch@^4.0.0": "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-4.0.5.tgz#cb87cf7f25bfb048d6c3ee19d115bebf93ea5bfa", - "npm-registry-fetch@^4.0.5": "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-4.0.5.tgz#cb87cf7f25bfb048d6c3ee19d115bebf93ea5bfa", + "npm-registry-fetch@^4.0.7": "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-4.0.7.tgz#57951bf6541e0246b34c9f9a38ab73607c9449d7", "npm-run-path@^2.0.0": "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f", "npm-run-path@^4.0.0": "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea", "npm-user-validate@~1.0.0": "https://registry.yarnpkg.com/npm-user-validate/-/npm-user-validate-1.0.0.tgz#8ceca0f5cea04d4e93519ef72d0557a75122e951", - "npm@^6.10.3": "https://registry.yarnpkg.com/npm/-/npm-6.14.7.tgz#011584b469467e5bc5acd5a0dbe58a3d46869582", + "npm@^6.13.0": "https://registry.yarnpkg.com/npm/-/npm-6.14.8.tgz#64ef754345639bc035982ec3f609353c8539033c", "npmlog@^4.1.2": "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b", "npmlog@~4.1.2": "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b", "number-is-nan@^1.0.0": "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d", @@ -955,7 +927,6 @@ "object.getownpropertydescriptors@^2.1.0": "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz#369bf1f9592d8ab89d712dced5cb81c7c5352649", "object.pick@^1.3.0": "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747", "object.values@^1.1.1": "https://registry.yarnpkg.com/object.values/-/object.values-1.1.1.tgz#68a99ecde356b7e9295a3c5e0ce31dc8c953de5e", - "octokit-pagination-methods@^1.1.0": "https://registry.yarnpkg.com/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz#cf472edc9d551055f9ef73f6e42b4dbb4c80bea4", "once@^1.3.0": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1", "once@^1.3.1": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1", "once@^1.4.0": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1", @@ -966,22 +937,20 @@ "optionator@^0.9.1": "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499", "os-homedir@^1.0.0": "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3", "os-locale@^2.0.0": "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2", - "os-name@^3.0.0": "https://registry.yarnpkg.com/os-name/-/os-name-3.1.0.tgz#dec19d966296e1cd62d701a5a66ee1ddeae70801", "os-name@^3.1.0": "https://registry.yarnpkg.com/os-name/-/os-name-3.1.0.tgz#dec19d966296e1cd62d701a5a66ee1ddeae70801", "os-tmpdir@^1.0.0": "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274", "osenv@^0.1.4": "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410", "osenv@^0.1.5": "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410", "p-each-series@^1.0.0": "https://registry.yarnpkg.com/p-each-series/-/p-each-series-1.0.0.tgz#930f3d12dd1f50e7434457a22cd6f04ac6ad7f71", + "p-each-series@^2.1.0": "https://registry.yarnpkg.com/p-each-series/-/p-each-series-2.1.0.tgz#961c8dd3f195ea96c747e636b262b800a6b1af48", "p-filter@^2.0.0": "https://registry.yarnpkg.com/p-filter/-/p-filter-2.1.0.tgz#1b1472562ae7a0f742f0f3d3d3718ea66ff9c09c", "p-finally@^1.0.0": "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae", - "p-finally@^2.0.0": "https://registry.yarnpkg.com/p-finally/-/p-finally-2.0.1.tgz#bd6fcaa9c559a096b680806f4d657b3f0f240561", "p-is-promise@^3.0.0": "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-3.0.0.tgz#58e78c7dfe2e163cf2a04ff869e7c1dba64a5971", "p-limit@^1.1.0": "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8", "p-limit@^2.0.0": "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1", "p-limit@^2.2.0": "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1", "p-locate@^2.0.0": "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43", "p-locate@^3.0.0": "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4", - "p-locate@^4.0.0": "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07", "p-locate@^4.1.0": "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07", "p-map@^2.0.0": "https://registry.yarnpkg.com/p-map/-/p-map-2.1.0.tgz#310928feef9c9ecc65b68b17693018a665cea175", "p-reduce@^1.0.0": "https://registry.yarnpkg.com/p-reduce/-/p-reduce-1.0.0.tgz#18c2b0dd936a4690a529f8231f58a0fdb6a47dfa", @@ -1083,6 +1052,7 @@ "read@~1.0.7": "https://registry.yarnpkg.com/read/-/read-1.0.7.tgz#b3da19bd052431a97671d44a42634adf710b40c4", "readable-stream@1 || 2": "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57", "readable-stream@2 || 3": "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198", + "readable-stream@3": "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198", "readable-stream@^2.0.0": "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57", "readable-stream@^2.0.2": "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57", "readable-stream@^2.0.6": "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57", @@ -1161,8 +1131,9 @@ "safer-buffer@~2.1.0": "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a", "sane@^4.0.3": "https://registry.yarnpkg.com/sane/-/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded", "sax@^1.2.4": "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9", - "semantic-release@15.13.30": "https://registry.yarnpkg.com/semantic-release/-/semantic-release-15.13.30.tgz#89a67d1c53fb1f3caee3ce9958a9017333747119", + "semantic-release@17.3.0": "https://registry.yarnpkg.com/semantic-release/-/semantic-release-17.3.0.tgz#121252b5bb6acc1048d7657111173b03d47502c5", "semver-diff@^2.0.0": "https://registry.yarnpkg.com/semver-diff/-/semver-diff-2.1.0.tgz#4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36", + "semver-diff@^3.1.1": "https://registry.yarnpkg.com/semver-diff/-/semver-diff-3.1.1.tgz#05f77ce59f325e00e2706afd67bb506ddb1ca32b", "semver-regex@^2.0.0": "https://registry.yarnpkg.com/semver-regex/-/semver-regex-2.0.0.tgz#a93c2c5844539a770233379107b38c7b4ac9d338", "semver@2 || 3 || 4 || 5": "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7", "semver@2.x || 3.x || 4 || 5": "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7", @@ -1176,6 +1147,8 @@ "semver@^5.7.1": "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7", "semver@^6.0.0": "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d", "semver@^6.2.0": "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d", + "semver@^6.3.0": "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d", + "semver@^7.1.2": "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938", "semver@^7.2.1": "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938", "semver@^7.3.2": "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938", "set-blocking@^2.0.0": "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7", @@ -1245,6 +1218,8 @@ "string-width@^2.1.1": "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e", "string-width@^3.0.0": "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961", "string-width@^3.1.0": "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961", + "string-width@^4.1.0": "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5", + "string-width@^4.2.0": "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5", "string.prototype.matchall@^4.0.2": "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.2.tgz#48bb510326fb9fdeb6a33ceaa81a6ea04ef7648e", "string.prototype.trimend@^1.0.1": "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz#85812a6b847ac002270f5808146064c995fb6913", "string.prototype.trimstart@^1.0.1": "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz#14af6d9f34b053f7cfc89b72f8f2ee14b9039a54", @@ -1267,18 +1242,18 @@ "strip-json-comments@^3.1.0": "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006", "strip-json-comments@^3.1.1": "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006", "strip-json-comments@~2.0.1": "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a", - "supports-color@^5.0.0": "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f", "supports-color@^5.3.0": "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f", "supports-color@^6.1.0": "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3", + "supports-color@^7.0.0": "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da", "supports-color@^7.1.0": "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da", - "supports-hyperlinks@^1.0.1": "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-1.0.1.tgz#71daedf36cc1060ac5100c351bb3da48c29c0ef7", + "supports-hyperlinks@^2.1.0": "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz#f663df252af5f37c5d49bbd7eeefa9e0b9e59e47", "symbol-tree@^3.2.2": "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2", "table@^5.2.3": "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e", "tar@^4.4.10": "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525", "tar@^4.4.12": "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525", "tar@^4.4.13": "https://registry.yarnpkg.com/tar/-/tar-4.4.13.tgz#43b364bc52888d555298637b10d60790254ab525", - "temp-dir@^1.0.0": "https://registry.yarnpkg.com/temp-dir/-/temp-dir-1.0.0.tgz#0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d", - "tempy@^0.3.0": "https://registry.yarnpkg.com/tempy/-/tempy-0.3.0.tgz#6f6c5b295695a16130996ad5ab01a8bd726e8bf8", + "temp-dir@^2.0.0": "https://registry.yarnpkg.com/temp-dir/-/temp-dir-2.0.0.tgz#bde92b05bdfeb1516e804c9c00ad45177f31321e", + "tempy@^0.5.0": "https://registry.yarnpkg.com/tempy/-/tempy-0.5.0.tgz#2785c89df39fcc4d1714fc554813225e1581d70b", "term-size@^1.2.0": "https://registry.yarnpkg.com/term-size/-/term-size-1.2.0.tgz#458b83887f288fc56d6fffbfad262e26638efa69", "test-exclude@^5.2.3": "https://registry.yarnpkg.com/test-exclude/-/test-exclude-5.2.3.tgz#c3d3e1e311eb7ee405e092dac10aefd09091eac0", "text-extensions@^1.0.0": "https://registry.yarnpkg.com/text-extensions/-/text-extensions-1.9.0.tgz#1853e45fee39c945ce6f6c36b2d659b5aabc2a26", @@ -1288,6 +1263,7 @@ "through2@^2.0.0": "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd", "through2@^2.0.2": "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd", "through2@^3.0.0": "https://registry.yarnpkg.com/through2/-/through2-3.0.2.tgz#99f88931cfc761ec7678b41d5d7336b5b6a07bf4", + "through2@^4.0.0": "https://registry.yarnpkg.com/through2/-/through2-4.0.2.tgz#a7ce3ac2a7a8b0b966c80e7c49f0484c3b239764", "through2@~2.0.0": "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd", "through@2": "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5", "through@>=2.2.7 <3": "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5", @@ -1311,13 +1287,16 @@ "tslib@^1.8.1": "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043", "tsutils@^3.17.1": "https://registry.yarnpkg.com/tsutils/-/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759", "tunnel-agent@^0.6.0": "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd", + "tunnel@0.0.6": "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c", "tweetnacl@^0.14.3": "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64", "tweetnacl@~0.14.0": "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64", "type-check@^0.4.0": "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1", "type-check@~0.3.2": "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72", "type-check@~0.4.0": "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1", + "type-fest@^0.11.0": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1", + "type-fest@^0.12.0": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.12.0.tgz#f57a27ab81c68d136a51fd71467eff94157fa1ee", "type-fest@^0.13.1": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.13.1.tgz#0172cb5bce80b0bd542ea348db50c7e21834d934", - "type-fest@^0.3.1": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.3.1.tgz#63d00d204e059474fe5e1b7c011112bbd1dc29e1", + "type-fest@^0.18.0": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f", "type-fest@^0.6.0": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b", "type-fest@^0.8.1": "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d", "typedarray@^0.0.6": "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777", @@ -1330,11 +1309,9 @@ "unique-filename@^1.1.1": "https://registry.yarnpkg.com/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230", "unique-slug@^2.0.0": "https://registry.yarnpkg.com/unique-slug/-/unique-slug-2.0.2.tgz#baabce91083fc64e945b0f3ad613e264f7cd4e6c", "unique-string@^1.0.0": "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a", - "universal-user-agent@^2.0.3": "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-2.1.0.tgz#5abfbcc036a1ba490cb941f8fd68c46d3669e8e4", - "universal-user-agent@^4.0.0": "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-4.0.1.tgz#fd8d6cb773a679a709e967ef8288a31fcc03e557", + "unique-string@^2.0.0": "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d", "universal-user-agent@^5.0.0": "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-5.0.0.tgz#a3182aa758069bf0e79952570ca757de3579c1d9", "universal-user-agent@^6.0.0": "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.0.tgz#3381f8503b251c0d9cd21bc1de939ec9df5480ee", - "universalify@^0.1.0": "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66", "universalify@^1.0.0": "https://registry.yarnpkg.com/universalify/-/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d", "unpipe@~1.0.0": "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec", "unset-value@^1.0.0": "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559", @@ -1386,6 +1363,7 @@ "worker-farm@^1.7.0": "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.7.0.tgz#26a94c5391bbca926152002f69b84a4bf772e5a8", "wrap-ansi@^2.0.0": "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85", "wrap-ansi@^5.1.0": "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09", + "wrap-ansi@^6.2.0": "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53", "wrappy@1": "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f", "write-file-atomic@2.4.1": "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.1.tgz#d0b05463c188ae804396fd5ab2a370062af87529", "write-file-atomic@^2.0.0": "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.3.tgz#1fd2e9ae1df3e75b8d8c367443c692d4ca81f481", @@ -1406,11 +1384,13 @@ "yaml@^1.7.2": "https://registry.yarnpkg.com/yaml/-/yaml-1.10.0.tgz#3b593add944876077d4d683fee01081bd9fff31e", "yargs-parser@^13.1.2": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38", "yargs-parser@^15.0.1": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-15.0.1.tgz#54786af40b820dcb2fb8025b11b4d659d76323b3", + "yargs-parser@^18.1.2": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0", "yargs-parser@^18.1.3": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0", + "yargs-parser@^20.2.3": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54", "yargs-parser@^7.0.0": "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9", "yargs@^13.3.0": "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd", - "yargs@^14.0.0": "https://registry.yarnpkg.com/yargs/-/yargs-14.2.3.tgz#1a1c3edced1afb2a2fea33604bc6d1d8d688a414", "yargs@^14.2.3": "https://registry.yarnpkg.com/yargs/-/yargs-14.2.3.tgz#1a1c3edced1afb2a2fea33604bc6d1d8d688a414", + "yargs@^15.0.1": "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8", "yargs@^8.0.2": "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" }, "files": [], diff --git a/node_modules/@actions/github/LICENSE.md b/node_modules/@actions/core/LICENSE.md similarity index 96% rename from node_modules/@actions/github/LICENSE.md rename to node_modules/@actions/core/LICENSE.md index e5a73f40e..dbae2edb2 100644 --- a/node_modules/@actions/github/LICENSE.md +++ b/node_modules/@actions/core/LICENSE.md @@ -1,3 +1,5 @@ +The MIT License (MIT) + Copyright 2019 GitHub Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/node_modules/@actions/core/README.md b/node_modules/@actions/core/README.md index 5ad27eede..95428cf33 100644 --- a/node_modules/@actions/core/README.md +++ b/node_modules/@actions/core/README.md @@ -89,6 +89,7 @@ try { } // Do stuff + core.info('Output to the actions build log') } catch (err) { core.error(`Error ${err}, action may still succeed though`); @@ -143,4 +144,4 @@ const core = require('@actions/core'); var pid = core.getState("pidToKill"); process.kill(pid); -``` \ No newline at end of file +``` diff --git a/node_modules/@actions/core/lib/command.d.ts b/node_modules/@actions/core/lib/command.d.ts index 94d5e449c..89eff6687 100644 --- a/node_modules/@actions/core/lib/command.d.ts +++ b/node_modules/@actions/core/lib/command.d.ts @@ -13,9 +13,4 @@ interface CommandProperties { */ export declare function issueCommand(command: string, properties: CommandProperties, message: any): void; export declare function issue(name: string, message?: string): void; -/** - * Sanitizes an input into a string so it can be passed into issueCommand safely - * @param input input to sanitize into a string - */ -export declare function toCommandValue(input: any): string; export {}; diff --git a/node_modules/@actions/core/lib/command.js b/node_modules/@actions/core/lib/command.js index af28d2b11..10bf3ebbb 100644 --- a/node_modules/@actions/core/lib/command.js +++ b/node_modules/@actions/core/lib/command.js @@ -8,6 +8,7 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); const os = __importStar(require("os")); +const utils_1 = require("./utils"); /** * Commands * @@ -61,28 +62,14 @@ class Command { return cmdStr; } } -/** - * Sanitizes an input into a string so it can be passed into issueCommand safely - * @param input input to sanitize into a string - */ -function toCommandValue(input) { - if (input === null || input === undefined) { - return ''; - } - else if (typeof input === 'string' || input instanceof String) { - return input; - } - return JSON.stringify(input); -} -exports.toCommandValue = toCommandValue; function escapeData(s) { - return toCommandValue(s) + return utils_1.toCommandValue(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A'); } function escapeProperty(s) { - return toCommandValue(s) + return utils_1.toCommandValue(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A') diff --git a/node_modules/@actions/core/lib/command.js.map b/node_modules/@actions/core/lib/command.js.map index ae755652c..a95b303bd 100644 --- a/node_modules/@actions/core/lib/command.js.map +++ b/node_modules/@actions/core/lib/command.js.map @@ -1 +1 @@ -{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAwB;AACxB,mCAAsC;AAWtC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAC1B,OAAe,EACf,UAA6B,EAC7B,OAAY;IAEZ,MAAM,GAAG,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;AAC/C,CAAC;AAPD,oCAOC;AAED,SAAgB,KAAK,CAAC,IAAY,EAAE,UAAkB,EAAE;IACtD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;AACjC,CAAC;AAFD,sBAEC;AAED,MAAM,UAAU,GAAG,IAAI,CAAA;AAEvB,MAAM,OAAO;IAKX,YAAY,OAAe,EAAE,UAA6B,EAAE,OAAe;QACzE,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,iBAAiB,CAAA;SAC5B;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,QAAQ;QACN,IAAI,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,OAAO,CAAA;QAEtC,IAAI,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YAC9D,MAAM,IAAI,GAAG,CAAA;YACb,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,UAAU,EAAE;gBACjC,IAAI,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;oBACvC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;oBAChC,IAAI,GAAG,EAAE;wBACP,IAAI,KAAK,EAAE;4BACT,KAAK,GAAG,KAAK,CAAA;yBACd;6BAAM;4BACL,MAAM,IAAI,GAAG,CAAA;yBACd;wBAED,MAAM,IAAI,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;qBAC1C;iBACF;aACF;SACF;QAED,MAAM,IAAI,GAAG,UAAU,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAA;QACpD,OAAO,MAAM,CAAA;IACf,CAAC;CACF;AAED,SAAS,UAAU,CAAC,CAAM;IACxB,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC;AAED,SAAS,cAAc,CAAC,CAAM;IAC5B,OAAO,sBAAc,CAAC,CAAC,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/core.js b/node_modules/@actions/core/lib/core.js index c838f4e20..8b3311081 100644 --- a/node_modules/@actions/core/lib/core.js +++ b/node_modules/@actions/core/lib/core.js @@ -17,6 +17,8 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); const command_1 = require("./command"); +const file_command_1 = require("./file-command"); +const utils_1 = require("./utils"); const os = __importStar(require("os")); const path = __importStar(require("path")); /** @@ -43,9 +45,17 @@ var ExitCode; */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function exportVariable(name, val) { - const convertedVal = command_1.toCommandValue(val); + const convertedVal = utils_1.toCommandValue(val); process.env[name] = convertedVal; - command_1.issueCommand('set-env', { name }, convertedVal); + const filePath = process.env['GITHUB_ENV'] || ''; + if (filePath) { + const delimiter = '_GitHubActionsFileCommandDelimeter_'; + const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`; + file_command_1.issueCommand('ENV', commandValue); + } + else { + command_1.issueCommand('set-env', { name }, convertedVal); + } } exports.exportVariable = exportVariable; /** @@ -61,7 +71,13 @@ exports.setSecret = setSecret; * @param inputPath */ function addPath(inputPath) { - command_1.issueCommand('add-path', {}, inputPath); + const filePath = process.env['GITHUB_PATH'] || ''; + if (filePath) { + file_command_1.issueCommand('PATH', inputPath); + } + else { + command_1.issueCommand('add-path', {}, inputPath); + } process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; } exports.addPath = addPath; diff --git a/node_modules/@actions/core/lib/core.js.map b/node_modules/@actions/core/lib/core.js.map index 68e9f313f..7e7cbcca2 100644 --- a/node_modules/@actions/core/lib/core.js.map +++ b/node_modules/@actions/core/lib/core.js.map @@ -1 +1 @@ -{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"core.js","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/file-command.d.ts b/node_modules/@actions/core/lib/file-command.d.ts new file mode 100644 index 000000000..ed408eb13 --- /dev/null +++ b/node_modules/@actions/core/lib/file-command.d.ts @@ -0,0 +1 @@ +export declare function issueCommand(command: string, message: any): void; diff --git a/node_modules/@actions/core/lib/file-command.js b/node_modules/@actions/core/lib/file-command.js new file mode 100644 index 000000000..10783c0c2 --- /dev/null +++ b/node_modules/@actions/core/lib/file-command.js @@ -0,0 +1,29 @@ +"use strict"; +// For internal use, subject to change. +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +const fs = __importStar(require("fs")); +const os = __importStar(require("os")); +const utils_1 = require("./utils"); +function issueCommand(command, message) { + const filePath = process.env[`GITHUB_${command}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command}`); + } + if (!fs.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { + encoding: 'utf8' + }); +} +exports.issueCommand = issueCommand; +//# sourceMappingURL=file-command.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/file-command.js.map b/node_modules/@actions/core/lib/file-command.js.map new file mode 100644 index 000000000..45fd8c4ba --- /dev/null +++ b/node_modules/@actions/core/lib/file-command.js.map @@ -0,0 +1 @@ +{"version":3,"file":"file-command.js","sourceRoot":"","sources":["../src/file-command.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;;;;;;;AAEvC,mCAAmC;AACnC,uDAAuD;AAEvD,uCAAwB;AACxB,uCAAwB;AACxB,mCAAsC;AAEtC,SAAgB,YAAY,CAAC,OAAe,EAAE,OAAY;IACxD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,OAAO,EAAE,CAAC,CAAA;IACjD,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CACb,wDAAwD,OAAO,EAAE,CAClE,CAAA;KACF;IACD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CAAC,yBAAyB,QAAQ,EAAE,CAAC,CAAA;KACrD;IAED,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,GAAG,sBAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACjE,QAAQ,EAAE,MAAM;KACjB,CAAC,CAAA;AACJ,CAAC;AAdD,oCAcC"} \ No newline at end of file diff --git a/node_modules/@actions/core/lib/utils.d.ts b/node_modules/@actions/core/lib/utils.d.ts new file mode 100644 index 000000000..b39c9be98 --- /dev/null +++ b/node_modules/@actions/core/lib/utils.d.ts @@ -0,0 +1,5 @@ +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +export declare function toCommandValue(input: any): string; diff --git a/node_modules/@actions/core/lib/utils.js b/node_modules/@actions/core/lib/utils.js new file mode 100644 index 000000000..97cea339f --- /dev/null +++ b/node_modules/@actions/core/lib/utils.js @@ -0,0 +1,19 @@ +"use strict"; +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +Object.defineProperty(exports, "__esModule", { value: true }); +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +function toCommandValue(input) { + if (input === null || input === undefined) { + return ''; + } + else if (typeof input === 'string' || input instanceof String) { + return input; + } + return JSON.stringify(input); +} +exports.toCommandValue = toCommandValue; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@actions/core/lib/utils.js.map b/node_modules/@actions/core/lib/utils.js.map new file mode 100644 index 000000000..ce43f037a --- /dev/null +++ b/node_modules/@actions/core/lib/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,mCAAmC;AACnC,uDAAuD;;AAEvD;;;GAGG;AACH,SAAgB,cAAc,CAAC,KAAU;IACvC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE;QACzC,OAAO,EAAE,CAAA;KACV;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,MAAM,EAAE;QAC/D,OAAO,KAAe,CAAA;KACvB;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;AAC9B,CAAC;AAPD,wCAOC"} \ No newline at end of file diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index 22f3a7ac3..ffcced43e 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -1,13 +1,13 @@ { "name": "@actions/core", - "version": "1.2.4", + "version": "1.2.6", "description": "Actions core lib", "keywords": [ "github", "actions", "core" ], - "homepage": "https://github.com/actions/toolkit/tree/master/packages/core", + "homepage": "https://github.com/actions/toolkit/tree/main/packages/core", "license": "MIT", "main": "lib/core.js", "types": "lib/core.d.ts", @@ -16,7 +16,8 @@ "test": "__tests__" }, "files": [ - "lib" + "lib", + "!.DS_Store" ], "publishConfig": { "access": "public" @@ -27,7 +28,7 @@ "directory": "packages/core" }, "scripts": { - "audit-moderate": "npm install && npm audit --audit-level=moderate", + "audit-moderate": "npm install && npm audit --json --audit-level=moderate > audit.json", "test": "echo \"Error: run tests from root\" && exit 1", "tsc": "tsc" }, diff --git a/node_modules/@actions/github/README.md b/node_modules/@actions/github/README.md index b4312568d..02e9be077 100644 --- a/node_modules/@actions/github/README.md +++ b/node_modules/@actions/github/README.md @@ -4,30 +4,38 @@ ## Usage -Returns an Octokit client. See https://octokit.github.io/rest.js for the API. +Returns an authenticated Octokit client that follows the machine [proxy settings](https://help.github.com/en/actions/hosting-your-own-runners/using-a-proxy-server-with-self-hosted-runners) and correctly sets GHES base urls. See https://octokit.github.io/rest.js for the API. ```js const github = require('@actions/github'); const core = require('@actions/core'); -// This should be a token with access to your repository scoped in as a secret. -const myToken = core.getInput('myToken'); +async function run() { + // This should be a token with access to your repository scoped in as a secret. + // The YML workflow will need to set myToken with the GitHub Secret Token + // myToken: ${{ secrets.GITHUB_TOKEN }} + // https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#about-the-github_token-secret + const myToken = core.getInput('myToken'); -const octokit = new github.GitHub(myToken); + const octokit = github.getOctokit(myToken) -const { data: pullRequest } = await octokit.pulls.get({ - owner: 'octokit', - repo: 'rest.js', - pull_number: 123, - mediaType: { - format: 'diff' - } -}); + // You can also pass in additional options as a second parameter to getOctokit + // const octokit = github.getOctokit(myToken, {userAgent: "MyActionVersion1"}); -console.log(pullRequest); -``` + const { data: pullRequest } = await octokit.pulls.get({ + owner: 'octokit', + repo: 'rest.js', + pull_number: 123, + mediaType: { + format: 'diff' + } + }); -You can pass client options (except `auth`, which is handled by the token argument), as specified by [Octokit](https://octokit.github.io/rest.js/), as a second argument to the `GitHub` constructor. + console.log(pullRequest); +} + +run(); +``` You can also make GraphQL requests. See https://github.com/octokit/graphql.js for the API. @@ -48,3 +56,42 @@ const newIssue = await octokit.issues.create({ body: 'Hello Universe!' }); ``` + +## Webhook payload typescript definitions + +The npm module `@octokit/webhooks` provides type definitions for the response payloads. You can cast the payload to these types for better type information. + +First, install the npm module `npm install @octokit/webhooks` + +Then, assert the type based on the eventName +```ts +import * as core from '@actions/core' +import * as github from '@actions/github' +import * as Webhooks from '@octokit/webhooks' +if (github.context.eventName === 'push') { + const pushPayload = github.context.payload as Webhooks.WebhookPayloadPush + core.info(`The head commit is: ${pushPayload.head}`) +} +``` + +## Extending the Octokit instance +`@octokit/core` now supports the [plugin architecture](https://github.com/octokit/core.js#plugins). You can extend the GitHub instance using plugins. + +For example, using the `@octokit/plugin-enterprise-server` you can now access enterprise admin apis on GHES instances. + +```ts +import { GitHub, getOctokitOptions } from '@actions/github/lib/utils' +import { enterpriseServer220Admin } from '@octokit/plugin-enterprise-server' + +const octokit = GitHub.plugin(enterpriseServer220Admin) +// or override some of the default values as well +// const octokit = GitHub.plugin(enterpriseServer220Admin).defaults({userAgent: "MyNewUserAgent"}) + +const myToken = core.getInput('myToken'); +const myOctokit = new octokit(getOctokitOptions(token)) +// Create a new user +myOctokit.enterpriseAdmin.createUser({ + login: "testuser", + email: "testuser@test.com", +}); +``` diff --git a/node_modules/@actions/github/lib/context.d.ts b/node_modules/@actions/github/lib/context.d.ts index 3ee758334..daab690c7 100644 --- a/node_modules/@actions/github/lib/context.d.ts +++ b/node_modules/@actions/github/lib/context.d.ts @@ -10,16 +10,19 @@ export declare class Context { workflow: string; action: string; actor: string; + job: string; + runNumber: number; + runId: number; /** * Hydrate the context from the environment */ constructor(); - readonly issue: { + get issue(): { owner: string; repo: string; number: number; }; - readonly repo: { + get repo(): { owner: string; repo: string; }; diff --git a/node_modules/@actions/github/lib/context.js b/node_modules/@actions/github/lib/context.js index 0df128f7a..dd4d10a06 100644 --- a/node_modules/@actions/github/lib/context.js +++ b/node_modules/@actions/github/lib/context.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.Context = void 0; const fs_1 = require("fs"); const os_1 = require("os"); class Context { @@ -13,7 +14,8 @@ class Context { this.payload = JSON.parse(fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { encoding: 'utf8' })); } else { - process.stdout.write(`GITHUB_EVENT_PATH ${process.env.GITHUB_EVENT_PATH} does not exist${os_1.EOL}`); + const path = process.env.GITHUB_EVENT_PATH; + process.stdout.write(`GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`); } } this.eventName = process.env.GITHUB_EVENT_NAME; @@ -22,10 +24,13 @@ class Context { this.workflow = process.env.GITHUB_WORKFLOW; this.action = process.env.GITHUB_ACTION; this.actor = process.env.GITHUB_ACTOR; + this.job = process.env.GITHUB_JOB; + this.runNumber = parseInt(process.env.GITHUB_RUN_NUMBER, 10); + this.runId = parseInt(process.env.GITHUB_RUN_ID, 10); } get issue() { const payload = this.payload; - return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pullRequest || payload).number }); + return Object.assign(Object.assign({}, this.repo), { number: (payload.issue || payload.pull_request || payload).number }); } get repo() { if (process.env.GITHUB_REPOSITORY) { diff --git a/node_modules/@actions/github/lib/context.js.map b/node_modules/@actions/github/lib/context.js.map index 24eabd873..9c4eafe1a 100644 --- a/node_modules/@actions/github/lib/context.js.map +++ b/node_modules/@actions/github/lib/context.js.map @@ -1 +1 @@ -{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":";;AAEA,2BAA2C;AAC3C,2BAAsB;AAEtB,MAAa,OAAO;IAalB;;OAEG;IACH;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACjB,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACjC,IAAI,eAAU,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE;gBAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CACvB,iBAAY,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAC,CAChE,CAAA;aACF;iBAAM;gBACL,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,qBACE,OAAO,CAAC,GAAG,CAAC,iBACd,kBAAkB,QAAG,EAAE,CACxB,CAAA;aACF;SACF;QACD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,iBAA2B,CAAA;QACxD,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,UAAoB,CAAA;QAC3C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,UAAoB,CAAA;QAC3C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAyB,CAAA;QACrD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,aAAuB,CAAA;QACjD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,YAAsB,CAAA;IACjD,CAAC;IAED,IAAI,KAAK;QACP,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAE5B,uCACK,IAAI,CAAC,IAAI,KACZ,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,CAAC,MAAM,IACjE;IACH,CAAC;IAED,IAAI,IAAI;QACN,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACjC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAC9D,OAAO,EAAC,KAAK,EAAE,IAAI,EAAC,CAAA;SACrB;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAC3B,OAAO;gBACL,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK;gBAC1C,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI;aACnC,CAAA;SACF;QAED,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAA;IACH,CAAC;CACF;AAjED,0BAiEC"} \ No newline at end of file +{"version":3,"file":"context.js","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":";;;AAEA,2BAA2C;AAC3C,2BAAsB;AAEtB,MAAa,OAAO;IAgBlB;;OAEG;IACH;QACE,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACjB,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACjC,IAAI,eAAU,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE;gBAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CACvB,iBAAY,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAC,CAAC,CAChE,CAAA;aACF;iBAAM;gBACL,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAA;gBAC1C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,qBAAqB,IAAI,kBAAkB,QAAG,EAAE,CAAC,CAAA;aACvE;SACF;QACD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,iBAA2B,CAAA;QACxD,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,UAAoB,CAAA;QAC3C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,UAAoB,CAAA;QAC3C,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAyB,CAAA;QACrD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,aAAuB,CAAA;QACjD,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,YAAsB,CAAA;QAC/C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,UAAoB,CAAA;QAC3C,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,iBAA2B,EAAE,EAAE,CAAC,CAAA;QACtE,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAuB,EAAE,EAAE,CAAC,CAAA;IAChE,CAAC;IAED,IAAI,KAAK;QACP,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;QAE5B,uCACK,IAAI,CAAC,IAAI,KACZ,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,YAAY,IAAI,OAAO,CAAC,CAAC,MAAM,IAClE;IACH,CAAC;IAED,IAAI,IAAI;QACN,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACjC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAC9D,OAAO,EAAC,KAAK,EAAE,IAAI,EAAC,CAAA;SACrB;QAED,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YAC3B,OAAO;gBACL,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK;gBAC1C,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI;aACnC,CAAA;SACF;QAED,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAA;IACH,CAAC;CACF;AApED,0BAoEC"} \ No newline at end of file diff --git a/node_modules/@actions/github/lib/github.d.ts b/node_modules/@actions/github/lib/github.d.ts index 7c5b9f2bc..90c3b985d 100644 --- a/node_modules/@actions/github/lib/github.d.ts +++ b/node_modules/@actions/github/lib/github.d.ts @@ -1,8 +1,11 @@ -import { GraphQlQueryResponse, Variables } from '@octokit/graphql'; -import Octokit from '@octokit/rest'; import * as Context from './context'; +import { GitHub } from './utils'; +import { OctokitOptions } from '@octokit/core/dist-types/types'; export declare const context: Context.Context; -export declare class GitHub extends Octokit { - graphql: (query: string, variables?: Variables) => Promise; - constructor(token: string, opts?: Omit); -} +/** + * Returns a hydrated octokit ready to use for GitHub Actions + * + * @param token the repo PAT or GITHUB_TOKEN + * @param options other options to set + */ +export declare function getOctokit(token: string, options?: OctokitOptions): InstanceType; diff --git a/node_modules/@actions/github/lib/github.js b/node_modules/@actions/github/lib/github.js index d5c782f6d..e30e81ec6 100644 --- a/node_modules/@actions/github/lib/github.js +++ b/node_modules/@actions/github/lib/github.js @@ -1,29 +1,36 @@ "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); -// Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts -const graphql_1 = require("@octokit/graphql"); -const rest_1 = __importDefault(require("@octokit/rest")); +exports.getOctokit = exports.context = void 0; const Context = __importStar(require("./context")); -// We need this in order to extend Octokit -rest_1.default.prototype = new rest_1.default(); +const utils_1 = require("./utils"); exports.context = new Context.Context(); -class GitHub extends rest_1.default { - constructor(token, opts = {}) { - super(Object.assign(Object.assign({}, opts), { auth: `token ${token}` })); - this.graphql = graphql_1.defaults({ - headers: { authorization: `token ${token}` } - }); - } +/** + * Returns a hydrated octokit ready to use for GitHub Actions + * + * @param token the repo PAT or GITHUB_TOKEN + * @param options other options to set + */ +function getOctokit(token, options) { + return new utils_1.GitHub(utils_1.getOctokitOptions(token, options)); } -exports.GitHub = GitHub; +exports.getOctokit = getOctokit; //# sourceMappingURL=github.js.map \ No newline at end of file diff --git a/node_modules/@actions/github/lib/github.js.map b/node_modules/@actions/github/lib/github.js.map index 0c268e8c4..717d03e85 100644 --- a/node_modules/@actions/github/lib/github.js.map +++ b/node_modules/@actions/github/lib/github.js.map @@ -1 +1 @@ -{"version":3,"file":"github.js","sourceRoot":"","sources":["../src/github.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gGAAgG;AAChG,8CAA0E;AAC1E,yDAAmC;AACnC,mDAAoC;AAEpC,0CAA0C;AAC1C,cAAO,CAAC,SAAS,GAAG,IAAI,cAAO,EAAE,CAAA;AAEpB,QAAA,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,CAAA;AAE5C,MAAa,MAAO,SAAQ,cAAO;IAMjC,YAAY,KAAa,EAAE,OAAsC,EAAE;QACjE,KAAK,iCAAK,IAAI,KAAE,IAAI,EAAE,SAAS,KAAK,EAAE,IAAE,CAAA;QACxC,IAAI,CAAC,OAAO,GAAG,kBAAQ,CAAC;YACtB,OAAO,EAAE,EAAC,aAAa,EAAE,SAAS,KAAK,EAAE,EAAC;SAC3C,CAAC,CAAA;IACJ,CAAC;CACF;AAZD,wBAYC"} \ No newline at end of file +{"version":3,"file":"github.js","sourceRoot":"","sources":["../src/github.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAoC;AACpC,mCAAiD;AAKpC,QAAA,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,CAAA;AAE5C;;;;;GAKG;AACH,SAAgB,UAAU,CACxB,KAAa,EACb,OAAwB;IAExB,OAAO,IAAI,cAAM,CAAC,yBAAiB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;AACtD,CAAC;AALD,gCAKC"} \ No newline at end of file diff --git a/node_modules/@actions/github/lib/interfaces.d.ts b/node_modules/@actions/github/lib/interfaces.d.ts index 23788cced..f81033325 100644 --- a/node_modules/@actions/github/lib/interfaces.d.ts +++ b/node_modules/@actions/github/lib/interfaces.d.ts @@ -33,4 +33,8 @@ export interface WebhookPayload { id: number; [key: string]: any; }; + comment?: { + id: number; + [key: string]: any; + }; } diff --git a/node_modules/@actions/github/lib/internal/utils.d.ts b/node_modules/@actions/github/lib/internal/utils.d.ts new file mode 100644 index 000000000..5790d91f0 --- /dev/null +++ b/node_modules/@actions/github/lib/internal/utils.d.ts @@ -0,0 +1,6 @@ +/// +import * as http from 'http'; +import { OctokitOptions } from '@octokit/core/dist-types/types'; +export declare function getAuthString(token: string, options: OctokitOptions): string | undefined; +export declare function getProxyAgent(destinationUrl: string): http.Agent; +export declare function getApiBaseUrl(): string; diff --git a/node_modules/@actions/github/lib/internal/utils.js b/node_modules/@actions/github/lib/internal/utils.js new file mode 100644 index 000000000..197a441e2 --- /dev/null +++ b/node_modules/@actions/github/lib/internal/utils.js @@ -0,0 +1,43 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getApiBaseUrl = exports.getProxyAgent = exports.getAuthString = void 0; +const httpClient = __importStar(require("@actions/http-client")); +function getAuthString(token, options) { + if (!token && !options.auth) { + throw new Error('Parameter token or opts.auth is required'); + } + else if (token && options.auth) { + throw new Error('Parameters token and opts.auth may not both be specified'); + } + return typeof options.auth === 'string' ? options.auth : `token ${token}`; +} +exports.getAuthString = getAuthString; +function getProxyAgent(destinationUrl) { + const hc = new httpClient.HttpClient(); + return hc.getAgent(destinationUrl); +} +exports.getProxyAgent = getProxyAgent; +function getApiBaseUrl() { + return process.env['GITHUB_API_URL'] || 'https://api.github.com'; +} +exports.getApiBaseUrl = getApiBaseUrl; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@actions/github/lib/internal/utils.js.map b/node_modules/@actions/github/lib/internal/utils.js.map new file mode 100644 index 000000000..f1f519d5f --- /dev/null +++ b/node_modules/@actions/github/lib/internal/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/internal/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,iEAAkD;AAGlD,SAAgB,aAAa,CAC3B,KAAa,EACb,OAAuB;IAEvB,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;QAC3B,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;KAC5D;SAAM,IAAI,KAAK,IAAI,OAAO,CAAC,IAAI,EAAE;QAChC,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAA;KAC5E;IAED,OAAO,OAAO,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,KAAK,EAAE,CAAA;AAC3E,CAAC;AAXD,sCAWC;AAED,SAAgB,aAAa,CAAC,cAAsB;IAClD,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,UAAU,EAAE,CAAA;IACtC,OAAO,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAA;AACpC,CAAC;AAHD,sCAGC;AAED,SAAgB,aAAa;IAC3B,OAAO,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,wBAAwB,CAAA;AAClE,CAAC;AAFD,sCAEC"} \ No newline at end of file diff --git a/node_modules/@actions/github/lib/utils.d.ts b/node_modules/@actions/github/lib/utils.d.ts new file mode 100644 index 000000000..0015a35fd --- /dev/null +++ b/node_modules/@actions/github/lib/utils.d.ts @@ -0,0 +1,21 @@ +import * as Context from './context'; +import { Octokit } from '@octokit/core'; +import { OctokitOptions } from '@octokit/core/dist-types/types'; +export declare const context: Context.Context; +export declare const GitHub: (new (...args: any[]) => { + [x: string]: any; +}) & { + new (...args: any[]): { + [x: string]: any; + }; + plugins: any[]; +} & typeof Octokit & import("@octokit/core/dist-types/types").Constructor; +/** + * Convience function to correctly format Octokit Options to pass into the constructor. + * + * @param token the repo PAT or GITHUB_TOKEN + * @param options other options to set + */ +export declare function getOctokitOptions(token: string, options?: OctokitOptions): OctokitOptions; diff --git a/node_modules/@actions/github/lib/utils.js b/node_modules/@actions/github/lib/utils.js new file mode 100644 index 000000000..b066c225c --- /dev/null +++ b/node_modules/@actions/github/lib/utils.js @@ -0,0 +1,54 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getOctokitOptions = exports.GitHub = exports.context = void 0; +const Context = __importStar(require("./context")); +const Utils = __importStar(require("./internal/utils")); +// octokit + plugins +const core_1 = require("@octokit/core"); +const plugin_rest_endpoint_methods_1 = require("@octokit/plugin-rest-endpoint-methods"); +const plugin_paginate_rest_1 = require("@octokit/plugin-paginate-rest"); +exports.context = new Context.Context(); +const baseUrl = Utils.getApiBaseUrl(); +const defaults = { + baseUrl, + request: { + agent: Utils.getProxyAgent(baseUrl) + } +}; +exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(defaults); +/** + * Convience function to correctly format Octokit Options to pass into the constructor. + * + * @param token the repo PAT or GITHUB_TOKEN + * @param options other options to set + */ +function getOctokitOptions(token, options) { + const opts = Object.assign({}, options || {}); // Shallow clone - don't mutate the object provided by the caller + // Auth + const auth = Utils.getAuthString(token, opts); + if (auth) { + opts.auth = auth; + } + return opts; +} +exports.getOctokitOptions = getOctokitOptions; +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@actions/github/lib/utils.js.map b/node_modules/@actions/github/lib/utils.js.map new file mode 100644 index 000000000..3a6f6b427 --- /dev/null +++ b/node_modules/@actions/github/lib/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAoC;AACpC,wDAAyC;AAEzC,oBAAoB;AACpB,wCAAqC;AAErC,wFAAyE;AACzE,wEAA0D;AAE7C,QAAA,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,CAAA;AAE5C,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,EAAE,CAAA;AACrC,MAAM,QAAQ,GAAG;IACf,OAAO;IACP,OAAO,EAAE;QACP,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC;KACpC;CACF,CAAA;AAEY,QAAA,MAAM,GAAG,cAAO,CAAC,MAAM,CAClC,kDAAmB,EACnB,mCAAY,CACb,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAEpB;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC/B,KAAa,EACb,OAAwB;IAExB,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,IAAI,EAAE,CAAC,CAAA,CAAC,iEAAiE;IAE/G,OAAO;IACP,MAAM,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IAC7C,IAAI,IAAI,EAAE;QACR,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;KACjB;IAED,OAAO,IAAI,CAAA;AACb,CAAC;AAbD,8CAaC"} \ No newline at end of file diff --git a/node_modules/@actions/github/package.json b/node_modules/@actions/github/package.json index 568bd0ef5..0288f178d 100644 --- a/node_modules/@actions/github/package.json +++ b/node_modules/@actions/github/package.json @@ -1,6 +1,6 @@ { "name": "@actions/github", - "version": "1.1.0", + "version": "4.0.0", "description": "Actions github lib", "keywords": [ "github", @@ -9,34 +9,42 @@ "homepage": "https://github.com/actions/toolkit/tree/master/packages/github", "license": "MIT", "main": "lib/github.js", + "types": "lib/github.d.ts", "directories": { "lib": "lib", "test": "__tests__" }, "files": [ - "lib" + "lib", + "!.DS_Store" ], "publishConfig": { "access": "public" }, "repository": { "type": "git", - "url": "git+https://github.com/actions/toolkit.git" + "url": "git+https://github.com/actions/toolkit.git", + "directory": "packages/github" }, "scripts": { + "audit-moderate": "npm install && npm audit --audit-level=moderate", "test": "jest", "build": "tsc", + "format": "prettier --write **/*.ts", + "format-check": "prettier --check **/*.ts", "tsc": "tsc" }, "bugs": { "url": "https://github.com/actions/toolkit/issues" }, "dependencies": { - "@octokit/graphql": "^2.0.1", - "@octokit/rest": "^16.15.0" + "@actions/http-client": "^1.0.8", + "@octokit/core": "^3.0.0", + "@octokit/plugin-paginate-rest": "^2.2.3", + "@octokit/plugin-rest-endpoint-methods": "^4.0.0" }, "devDependencies": { - "jest": "^24.7.1" - }, - "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52" + "jest": "^25.1.0", + "proxy": "^1.0.1" + } } diff --git a/node_modules/@actions/http-client/LICENSE b/node_modules/@actions/http-client/LICENSE new file mode 100644 index 000000000..5823a51c3 --- /dev/null +++ b/node_modules/@actions/http-client/LICENSE @@ -0,0 +1,21 @@ +Actions Http Client for Node.js + +Copyright (c) GitHub, Inc. + +All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@actions/http-client/README.md b/node_modules/@actions/http-client/README.md new file mode 100644 index 000000000..be61eb351 --- /dev/null +++ b/node_modules/@actions/http-client/README.md @@ -0,0 +1,79 @@ + +

+ +

+ +# Actions Http-Client + +[![Http Status](https://github.com/actions/http-client/workflows/http-tests/badge.svg)](https://github.com/actions/http-client/actions) + +A lightweight HTTP client optimized for use with actions, TypeScript with generics and async await. + +## Features + + - HTTP client with TypeScript generics and async/await/Promises + - Typings included so no need to acquire separately (great for intellisense and no versioning drift) + - [Proxy support](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-self-hosted-runners#using-a-proxy-server-with-self-hosted-runners) just works with actions and the runner + - Targets ES2019 (runner runs actions with node 12+). Only supported on node 12+. + - Basic, Bearer and PAT Support out of the box. Extensible handlers for others. + - Redirects supported + +Features and releases [here](./RELEASES.md) + +## Install + +``` +npm install @actions/http-client --save +``` + +## Samples + +See the [HTTP](./__tests__) tests for detailed examples. + +## Errors + +### HTTP + +The HTTP client does not throw unless truly exceptional. + +* A request that successfully executes resulting in a 404, 500 etc... will return a response object with a status code and a body. +* Redirects (3xx) will be followed by default. + +See [HTTP tests](./__tests__) for detailed examples. + +## Debugging + +To enable detailed console logging of all HTTP requests and responses, set the NODE_DEBUG environment varible: + +``` +export NODE_DEBUG=http +``` + +## Node support + +The http-client is built using the latest LTS version of Node 12. It may work on previous node LTS versions but it's tested and officially supported on Node12+. + +## Support and Versioning + +We follow semver and will hold compatibility between major versions and increment the minor version with new features and capabilities (while holding compat). + +## Contributing + +We welcome PRs. Please create an issue and if applicable, a design before proceeding with code. + +once: + +```bash +$ npm install +``` + +To build: + +```bash +$ npm run build +``` + +To run all tests: +```bash +$ npm test +``` diff --git a/node_modules/@actions/http-client/RELEASES.md b/node_modules/@actions/http-client/RELEASES.md new file mode 100644 index 000000000..245477d61 --- /dev/null +++ b/node_modules/@actions/http-client/RELEASES.md @@ -0,0 +1,22 @@ +## Releases + +## 1.0.9 +Throw HttpClientError instead of a generic Error from the \Json() helper methods when the server responds with a non-successful status code. + +## 1.0.8 +Fixed security issue where a redirect (e.g. 302) to another domain would pass headers. The fix was to strip the authorization header if the hostname was different. More [details in PR #27](https://github.com/actions/http-client/pull/27) + +## 1.0.7 +Update NPM dependencies and add 429 to the list of HttpCodes + +## 1.0.6 +Automatically sends Content-Type and Accept application/json headers for \Json() helper methods if not set in the client or parameters. + +## 1.0.5 +Adds \Json() helper methods for json over http scenarios. + +## 1.0.4 +Started to add \Json() helper methods. Do not use this release for that. Use >= 1.0.5 since there was an issue with types. + +## 1.0.1 to 1.0.3 +Adds proxy support. diff --git a/node_modules/@actions/http-client/actions.png b/node_modules/@actions/http-client/actions.png new file mode 100644 index 0000000000000000000000000000000000000000..1857ef375592b5bbce3f2b225865d32428c13acb GIT binary patch literal 33889 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 literal 0 HcmV?d00001 diff --git a/node_modules/@actions/http-client/auth.d.ts b/node_modules/@actions/http-client/auth.d.ts new file mode 100644 index 000000000..1094189cf --- /dev/null +++ b/node_modules/@actions/http-client/auth.d.ts @@ -0,0 +1,23 @@ +import ifm = require('./interfaces'); +export declare class BasicCredentialHandler implements ifm.IRequestHandler { + username: string; + password: string; + constructor(username: string, password: string); + prepareRequest(options: any): void; + canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; + handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; +} +export declare class BearerCredentialHandler implements ifm.IRequestHandler { + token: string; + constructor(token: string); + prepareRequest(options: any): void; + canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; + handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; +} +export declare class PersonalAccessTokenCredentialHandler implements ifm.IRequestHandler { + token: string; + constructor(token: string); + prepareRequest(options: any): void; + canHandleAuthentication(response: ifm.IHttpClientResponse): boolean; + handleAuthentication(httpClient: ifm.IHttpClient, requestInfo: ifm.IRequestInfo, objs: any): Promise; +} diff --git a/node_modules/@actions/http-client/auth.js b/node_modules/@actions/http-client/auth.js new file mode 100644 index 000000000..67a58aa78 --- /dev/null +++ b/node_modules/@actions/http-client/auth.js @@ -0,0 +1,58 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +class BasicCredentialHandler { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + options.headers['Authorization'] = + 'Basic ' + + Buffer.from(this.username + ':' + this.password).toString('base64'); + } + // This handler cannot handle 401 + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } +} +exports.BasicCredentialHandler = BasicCredentialHandler; +class BearerCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + options.headers['Authorization'] = 'Bearer ' + this.token; + } + // This handler cannot handle 401 + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } +} +exports.BearerCredentialHandler = BearerCredentialHandler; +class PersonalAccessTokenCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + options.headers['Authorization'] = + 'Basic ' + Buffer.from('PAT:' + this.token).toString('base64'); + } + // This handler cannot handle 401 + canHandleAuthentication(response) { + return false; + } + handleAuthentication(httpClient, requestInfo, objs) { + return null; + } +} +exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; diff --git a/node_modules/@actions/http-client/index.d.ts b/node_modules/@actions/http-client/index.d.ts new file mode 100644 index 000000000..9583dc72a --- /dev/null +++ b/node_modules/@actions/http-client/index.d.ts @@ -0,0 +1,124 @@ +/// +import http = require('http'); +import ifm = require('./interfaces'); +export declare enum HttpCodes { + OK = 200, + MultipleChoices = 300, + MovedPermanently = 301, + ResourceMoved = 302, + SeeOther = 303, + NotModified = 304, + UseProxy = 305, + SwitchProxy = 306, + TemporaryRedirect = 307, + PermanentRedirect = 308, + BadRequest = 400, + Unauthorized = 401, + PaymentRequired = 402, + Forbidden = 403, + NotFound = 404, + MethodNotAllowed = 405, + NotAcceptable = 406, + ProxyAuthenticationRequired = 407, + RequestTimeout = 408, + Conflict = 409, + Gone = 410, + TooManyRequests = 429, + InternalServerError = 500, + NotImplemented = 501, + BadGateway = 502, + ServiceUnavailable = 503, + GatewayTimeout = 504 +} +export declare enum Headers { + Accept = "accept", + ContentType = "content-type" +} +export declare enum MediaTypes { + ApplicationJson = "application/json" +} +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +export declare function getProxyUrl(serverUrl: string): string; +export declare class HttpClientError extends Error { + constructor(message: string, statusCode: number); + statusCode: number; + result?: any; +} +export declare class HttpClientResponse implements ifm.IHttpClientResponse { + constructor(message: http.IncomingMessage); + message: http.IncomingMessage; + readBody(): Promise; +} +export declare function isHttps(requestUrl: string): boolean; +export declare class HttpClient { + userAgent: string | undefined; + handlers: ifm.IRequestHandler[]; + requestOptions: ifm.IRequestOptions; + private _ignoreSslError; + private _socketTimeout; + private _allowRedirects; + private _allowRedirectDowngrade; + private _maxRedirects; + private _allowRetries; + private _maxRetries; + private _agent; + private _proxyAgent; + private _keepAlive; + private _disposed; + constructor(userAgent?: string, handlers?: ifm.IRequestHandler[], requestOptions?: ifm.IRequestOptions); + options(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise; + get(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise; + del(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise; + post(requestUrl: string, data: string, additionalHeaders?: ifm.IHeaders): Promise; + patch(requestUrl: string, data: string, additionalHeaders?: ifm.IHeaders): Promise; + put(requestUrl: string, data: string, additionalHeaders?: ifm.IHeaders): Promise; + head(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise; + sendStream(verb: string, requestUrl: string, stream: NodeJS.ReadableStream, additionalHeaders?: ifm.IHeaders): Promise; + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + getJson(requestUrl: string, additionalHeaders?: ifm.IHeaders): Promise>; + postJson(requestUrl: string, obj: any, additionalHeaders?: ifm.IHeaders): Promise>; + putJson(requestUrl: string, obj: any, additionalHeaders?: ifm.IHeaders): Promise>; + patchJson(requestUrl: string, obj: any, additionalHeaders?: ifm.IHeaders): Promise>; + /** + * Makes a raw http request. + * All other methods such as get, post, patch, and request ultimately call this. + * Prefer get, del, post and patch + */ + request(verb: string, requestUrl: string, data: string | NodeJS.ReadableStream, headers: ifm.IHeaders): Promise; + /** + * Needs to be called if keepAlive is set to true in request options. + */ + dispose(): void; + /** + * Raw request. + * @param info + * @param data + */ + requestRaw(info: ifm.IRequestInfo, data: string | NodeJS.ReadableStream): Promise; + /** + * Raw request with callback. + * @param info + * @param data + * @param onResult + */ + requestRawWithCallback(info: ifm.IRequestInfo, data: string | NodeJS.ReadableStream, onResult: (err: any, res: ifm.IHttpClientResponse) => void): void; + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl: string): http.Agent; + private _prepareRequest; + private _mergeHeaders; + private _getExistingOrDefaultHeader; + private _getAgent; + private _performExponentialBackoff; + private static dateTimeDeserializer; + private _processResponse; +} diff --git a/node_modules/@actions/http-client/index.js b/node_modules/@actions/http-client/index.js new file mode 100644 index 000000000..5c54cf84b --- /dev/null +++ b/node_modules/@actions/http-client/index.js @@ -0,0 +1,535 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const http = require("http"); +const https = require("https"); +const pm = require("./proxy"); +let tunnel; +var HttpCodes; +(function (HttpCodes) { + HttpCodes[HttpCodes["OK"] = 200] = "OK"; + HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; + HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; + HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; + HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; + HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; + HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; + HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; + HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; + HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; + HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; +})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers = exports.Headers || (exports.Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +function getProxyUrl(serverUrl) { + let proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ''; +} +exports.getProxyUrl = getProxyUrl; +const HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect +]; +const HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout +]; +const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; +const ExponentialBackoffCeiling = 10; +const ExponentialBackoffTimeSlice = 5; +class HttpClientError extends Error { + constructor(message, statusCode) { + super(message); + this.name = 'HttpClientError'; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } +} +exports.HttpClientError = HttpClientError; +class HttpClientResponse { + constructor(message) { + this.message = message; + } + readBody() { + return new Promise(async (resolve, reject) => { + let output = Buffer.alloc(0); + this.message.on('data', (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on('end', () => { + resolve(output.toString()); + }); + }); + } +} +exports.HttpClientResponse = HttpClientResponse; +function isHttps(requestUrl) { + let parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === 'https:'; +} +exports.isHttps = isHttps; +class HttpClient { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); + } + get(requestUrl, additionalHeaders) { + return this.request('GET', requestUrl, null, additionalHeaders || {}); + } + del(requestUrl, additionalHeaders) { + return this.request('DELETE', requestUrl, null, additionalHeaders || {}); + } + post(requestUrl, data, additionalHeaders) { + return this.request('POST', requestUrl, data, additionalHeaders || {}); + } + patch(requestUrl, data, additionalHeaders) { + return this.request('PATCH', requestUrl, data, additionalHeaders || {}); + } + put(requestUrl, data, additionalHeaders) { + return this.request('PUT', requestUrl, data, additionalHeaders || {}); + } + head(requestUrl, additionalHeaders) { + return this.request('HEAD', requestUrl, null, additionalHeaders || {}); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return this.request(verb, requestUrl, stream, additionalHeaders); + } + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + async getJson(requestUrl, additionalHeaders = {}) { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + let res = await this.get(requestUrl, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async postJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async putJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + async patchJson(requestUrl, obj, additionalHeaders = {}) { + let data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + let res = await this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + } + /** + * Makes a raw http request. + * All other methods such as get, post, patch, and request ultimately call this. + * Prefer get, del, post and patch + */ + async request(verb, requestUrl, data, headers) { + if (this._disposed) { + throw new Error('Client has already been disposed.'); + } + let parsedUrl = new URL(requestUrl); + let info = this._prepareRequest(verb, parsedUrl, headers); + // Only perform retries on reads since writes may not be idempotent. + let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1 + ? this._maxRetries + 1 + : 1; + let numTries = 0; + let response; + while (numTries < maxTries) { + response = await this.requestRaw(info, data); + // Check if it's an authentication challenge + if (response && + response.message && + response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (let i = 0; i < this.handlers.length; i++) { + if (this.handlers[i].canHandleAuthentication(response)) { + authenticationHandler = this.handlers[i]; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info, data); + } + else { + // We have received an unauthorized response but have no handlers to handle it. + // Let the response return to the caller. + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (HttpRedirectCodes.indexOf(response.message.statusCode) != -1 && + this._allowRedirects && + redirectsRemaining > 0) { + const redirectUrl = response.message.headers['location']; + if (!redirectUrl) { + // if there's no location to redirect to, we won't + break; + } + let parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol == 'https:' && + parsedUrl.protocol != parsedRedirectUrl.protocol && + !this._allowRedirectDowngrade) { + throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); + } + // we need to finish reading the response before reassigning response + // which will leak the open socket. + await response.readBody(); + // strip authorization header if redirected to a different hostname + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (let header in headers) { + // header names are case insensitive + if (header.toLowerCase() === 'authorization') { + delete headers[header]; + } + } + } + // let's make the request with the new redirectUrl + info = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = await this.requestRaw(info, data); + redirectsRemaining--; + } + if (HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1) { + // If not a retry code, return immediately instead of retrying + return response; + } + numTries += 1; + if (numTries < maxTries) { + await response.readBody(); + await this._performExponentialBackoff(numTries); + } + } + return response; + } + /** + * Needs to be called if keepAlive is set to true in request options. + */ + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + /** + * Raw request. + * @param info + * @param data + */ + requestRaw(info, data) { + return new Promise((resolve, reject) => { + let callbackForResult = function (err, res) { + if (err) { + reject(err); + } + resolve(res); + }; + this.requestRawWithCallback(info, data, callbackForResult); + }); + } + /** + * Raw request with callback. + * @param info + * @param data + * @param onResult + */ + requestRawWithCallback(info, data, onResult) { + let socket; + if (typeof data === 'string') { + info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); + } + let callbackCalled = false; + let handleResult = (err, res) => { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res); + } + }; + let req = info.httpModule.request(info.options, (msg) => { + let res = new HttpClientResponse(msg); + handleResult(null, res); + }); + req.on('socket', sock => { + socket = sock; + }); + // If we ever get disconnected, we want the socket to timeout eventually + req.setTimeout(this._socketTimeout || 3 * 60000, () => { + if (socket) { + socket.end(); + } + handleResult(new Error('Request timeout: ' + info.options.path), null); + }); + req.on('error', function (err) { + // err has statusCode property + // res should have headers + handleResult(err, null); + }); + if (data && typeof data === 'string') { + req.write(data, 'utf8'); + } + if (data && typeof data !== 'string') { + data.on('close', function () { + req.end(); + }); + data.pipe(req); + } + else { + req.end(); + } + } + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl) { + let parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info = {}; + info.parsedUrl = requestUrl; + const usingSsl = info.parsedUrl.protocol === 'https:'; + info.httpModule = usingSsl ? https : http; + const defaultPort = usingSsl ? 443 : 80; + info.options = {}; + info.options.host = info.parsedUrl.hostname; + info.options.port = info.parsedUrl.port + ? parseInt(info.parsedUrl.port) + : defaultPort; + info.options.path = + (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); + info.options.method = method; + info.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info.options.headers['user-agent'] = this.userAgent; + } + info.options.agent = this._getAgent(info.parsedUrl); + // gives handlers an opportunity to participate + if (this.handlers) { + this.handlers.forEach(handler => { + handler.prepareRequest(info.options); + }); + } + return info; + } + _mergeHeaders(headers) { + const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers)); + } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + const lowercaseKeys = obj => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + let proxyUrl = pm.getProxyUrl(parsedUrl); + let useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + // if agent is already assigned use that agent. + if (!!agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + let maxSockets = 100; + if (!!this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; + } + if (useProxy) { + // If using proxy, need tunnel + if (!tunnel) { + tunnel = require('tunnel'); + } + const agentOptions = { + maxSockets: maxSockets, + keepAlive: this._keepAlive, + proxy: { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}`, + host: proxyUrl.hostname, + port: proxyUrl.port + } + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } + else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + // if reusing agent across request and tunneling agent isn't assigned create a new agent + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets: maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http.Agent(options); + this._agent = agent; + } + // if not using private agent and tunnel agent isn't setup then use global agent + if (!agent) { + agent = usingSsl ? https.globalAgent : http.globalAgent; + } + if (usingSsl && this._ignoreSslError) { + // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process + // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options + // we have to cast it to any and change it directly + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise(resolve => setTimeout(() => resolve(), ms)); + } + static dateTimeDeserializer(key, value) { + if (typeof value === 'string') { + let a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; + } + } + return value; + } + async _processResponse(res, options) { + return new Promise(async (resolve, reject) => { + const statusCode = res.message.statusCode; + const response = { + statusCode: statusCode, + result: null, + headers: {} + }; + // not found leads to null obj returned + if (statusCode == HttpCodes.NotFound) { + resolve(response); + } + let obj; + let contents; + // get the result from the body + try { + contents = await res.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, HttpClient.dateTimeDeserializer); + } + else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res.message.headers; + } + catch (err) { + // Invalid resource (contents not json); leaving result obj null + } + // note that 3xx redirects are handled by the http layer. + if (statusCode > 299) { + let msg; + // if exception/error in body, attempt to get better error + if (obj && obj.message) { + msg = obj.message; + } + else if (contents && contents.length > 0) { + // it may be the case that the exception is in the body message as string + msg = contents; + } + else { + msg = 'Failed request: (' + statusCode + ')'; + } + let err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } + else { + resolve(response); + } + }); + } +} +exports.HttpClient = HttpClient; diff --git a/node_modules/@actions/http-client/interfaces.d.ts b/node_modules/@actions/http-client/interfaces.d.ts new file mode 100644 index 000000000..78bd85b34 --- /dev/null +++ b/node_modules/@actions/http-client/interfaces.d.ts @@ -0,0 +1,49 @@ +/// +import http = require('http'); +export interface IHeaders { + [key: string]: any; +} +export interface IHttpClient { + options(requestUrl: string, additionalHeaders?: IHeaders): Promise; + get(requestUrl: string, additionalHeaders?: IHeaders): Promise; + del(requestUrl: string, additionalHeaders?: IHeaders): Promise; + post(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise; + patch(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise; + put(requestUrl: string, data: string, additionalHeaders?: IHeaders): Promise; + sendStream(verb: string, requestUrl: string, stream: NodeJS.ReadableStream, additionalHeaders?: IHeaders): Promise; + request(verb: string, requestUrl: string, data: string | NodeJS.ReadableStream, headers: IHeaders): Promise; + requestRaw(info: IRequestInfo, data: string | NodeJS.ReadableStream): Promise; + requestRawWithCallback(info: IRequestInfo, data: string | NodeJS.ReadableStream, onResult: (err: any, res: IHttpClientResponse) => void): void; +} +export interface IRequestHandler { + prepareRequest(options: http.RequestOptions): void; + canHandleAuthentication(response: IHttpClientResponse): boolean; + handleAuthentication(httpClient: IHttpClient, requestInfo: IRequestInfo, objs: any): Promise; +} +export interface IHttpClientResponse { + message: http.IncomingMessage; + readBody(): Promise; +} +export interface IRequestInfo { + options: http.RequestOptions; + parsedUrl: URL; + httpModule: any; +} +export interface IRequestOptions { + headers?: IHeaders; + socketTimeout?: number; + ignoreSslError?: boolean; + allowRedirects?: boolean; + allowRedirectDowngrade?: boolean; + maxRedirects?: number; + maxSockets?: number; + keepAlive?: boolean; + deserializeDates?: boolean; + allowRetries?: boolean; + maxRetries?: number; +} +export interface ITypedResponse { + statusCode: number; + result: T | null; + headers: Object; +} diff --git a/node_modules/@actions/http-client/interfaces.js b/node_modules/@actions/http-client/interfaces.js new file mode 100644 index 000000000..c8ad2e549 --- /dev/null +++ b/node_modules/@actions/http-client/interfaces.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@actions/http-client/package.json b/node_modules/@actions/http-client/package.json new file mode 100644 index 000000000..82e5a956d --- /dev/null +++ b/node_modules/@actions/http-client/package.json @@ -0,0 +1,39 @@ +{ + "name": "@actions/http-client", + "version": "1.0.9", + "description": "Actions Http Client", + "main": "index.js", + "scripts": { + "build": "rm -Rf ./_out && tsc && cp package*.json ./_out && cp *.md ./_out && cp LICENSE ./_out && cp actions.png ./_out", + "test": "jest", + "format": "prettier --write *.ts && prettier --write **/*.ts", + "format-check": "prettier --check *.ts && prettier --check **/*.ts", + "audit-check": "npm audit --audit-level=moderate" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/actions/http-client.git" + }, + "keywords": [ + "Actions", + "Http" + ], + "author": "GitHub, Inc.", + "license": "MIT", + "bugs": { + "url": "https://github.com/actions/http-client/issues" + }, + "homepage": "https://github.com/actions/http-client#readme", + "devDependencies": { + "@types/jest": "^25.1.4", + "@types/node": "^12.12.31", + "jest": "^25.1.0", + "prettier": "^2.0.4", + "proxy": "^1.0.1", + "ts-jest": "^25.2.1", + "typescript": "^3.8.3" + }, + "dependencies": { + "tunnel": "0.0.6" + } +} diff --git a/node_modules/@actions/http-client/proxy.d.ts b/node_modules/@actions/http-client/proxy.d.ts new file mode 100644 index 000000000..459986540 --- /dev/null +++ b/node_modules/@actions/http-client/proxy.d.ts @@ -0,0 +1,2 @@ +export declare function getProxyUrl(reqUrl: URL): URL | undefined; +export declare function checkBypass(reqUrl: URL): boolean; diff --git a/node_modules/@actions/http-client/proxy.js b/node_modules/@actions/http-client/proxy.js new file mode 100644 index 000000000..88f00ecd1 --- /dev/null +++ b/node_modules/@actions/http-client/proxy.js @@ -0,0 +1,57 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +function getProxyUrl(reqUrl) { + let usingSsl = reqUrl.protocol === 'https:'; + let proxyUrl; + if (checkBypass(reqUrl)) { + return proxyUrl; + } + let proxyVar; + if (usingSsl) { + proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY']; + } + else { + proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY']; + } + if (proxyVar) { + proxyUrl = new URL(proxyVar); + } + return proxyUrl; +} +exports.getProxyUrl = getProxyUrl; +function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; + if (!noProxy) { + return false; + } + // Determine the request port + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } + else if (reqUrl.protocol === 'http:') { + reqPort = 80; + } + else if (reqUrl.protocol === 'https:') { + reqPort = 443; + } + // Format the request hostname and hostname with port + let upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === 'number') { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + // Compare request host against noproxy + for (let upperNoProxyItem of noProxy + .split(',') + .map(x => x.trim().toUpperCase()) + .filter(x => x)) { + if (upperReqHosts.some(x => x === upperNoProxyItem)) { + return true; + } + } + return false; +} +exports.checkBypass = checkBypass; diff --git a/node_modules/@jest/core/node_modules/p-each-series/index.js b/node_modules/@jest/core/node_modules/p-each-series/index.js new file mode 100644 index 000000000..704edc70e --- /dev/null +++ b/node_modules/@jest/core/node_modules/p-each-series/index.js @@ -0,0 +1,4 @@ +'use strict'; +const pReduce = require('p-reduce'); + +module.exports = (iterable, iterator) => pReduce(iterable, (a, b, i) => iterator(b, i)).then(() => iterable); diff --git a/node_modules/p-each-series/node_modules/p-reduce/license b/node_modules/@jest/core/node_modules/p-each-series/license similarity index 100% rename from node_modules/p-each-series/node_modules/p-reduce/license rename to node_modules/@jest/core/node_modules/p-each-series/license diff --git a/node_modules/@jest/core/node_modules/p-each-series/package.json b/node_modules/@jest/core/node_modules/p-each-series/package.json new file mode 100644 index 000000000..7c8770e70 --- /dev/null +++ b/node_modules/@jest/core/node_modules/p-each-series/package.json @@ -0,0 +1,51 @@ +{ + "name": "p-each-series", + "version": "1.0.0", + "description": "Iterate over promises serially", + "license": "MIT", + "repository": "sindresorhus/p-each-series", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "promise", + "foreach", + "for-each", + "for", + "each", + "collection", + "iterable", + "iterator", + "fulfilled", + "async", + "await", + "promises", + "serial", + "serially", + "series", + "bluebird" + ], + "dependencies": { + "p-reduce": "^1.0.0" + }, + "devDependencies": { + "ava": "*", + "delay": "^1.3.1", + "time-span": "^1.0.0", + "xo": "*" + }, + "xo": { + "esnext": true + } +} diff --git a/node_modules/@jest/core/node_modules/p-each-series/readme.md b/node_modules/@jest/core/node_modules/p-each-series/readme.md new file mode 100644 index 000000000..ee823c522 --- /dev/null +++ b/node_modules/@jest/core/node_modules/p-each-series/readme.md @@ -0,0 +1,65 @@ +# p-each-series [![Build Status](https://travis-ci.org/sindresorhus/p-each-series.svg?branch=master)](https://travis-ci.org/sindresorhus/p-each-series) + +> Iterate over promises serially + +Useful as a side-effect iterator. Prefer [`p-map`](https://github.com/sindresorhus/p-map) if you don't need side-effects, as it's concurrent. + + +## Install + +``` +$ npm install --save p-each-series +``` + + +## Usage + +```js +const pEachSeries = require('p-each-series'); + +const keywords = [ + getTopKeyword() //=> Promise + 'rainbow', + 'pony' +]; + +const iterator = el => saveToDiskPromise(el); //=> Promise + +pEachSeries(keywords, iterator).then(result => { + console.log(result); + //=> ['unicorn', 'rainbow', 'pony'] +}); +``` + + +## API + +### pEachSeries(input, iterator) + +Returns a `Promise` that is fulfilled when all promises in `input` and ones returned from `iterator` are fulfilled, or rejects if any of the promises reject. The fulfillment value is the original `input`. + +#### input + +Type: `Iterable` + +Iterated over serially in the `iterator` function. + +#### iterator(element, index) + +Type: `Function` + +Return value is ignored unless it's `Promise`, then it's awaited before continuing with the next iteration. + + +## Related + +- [p-map-series](https://github.com/sindresorhus/p-map-series) - Map over promises serially +- [p-pipe](https://github.com/sindresorhus/p-pipe) - Compose promise-returning & async functions into a reusable pipeline +- [p-reduce](https://github.com/sindresorhus/p-reduce) - Reduce a list of values using promises into a promise for a value +- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently +- [More…](https://github.com/sindresorhus/promise-fun) + + +## License + +MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/node_modules/p-each-series/node_modules/p-reduce/index.js b/node_modules/@jest/core/node_modules/p-reduce/index.js similarity index 100% rename from node_modules/p-each-series/node_modules/p-reduce/index.js rename to node_modules/@jest/core/node_modules/p-reduce/index.js diff --git a/node_modules/@jest/core/node_modules/p-reduce/license b/node_modules/@jest/core/node_modules/p-reduce/license new file mode 100644 index 000000000..654d0bfe9 --- /dev/null +++ b/node_modules/@jest/core/node_modules/p-reduce/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/p-each-series/node_modules/p-reduce/package.json b/node_modules/@jest/core/node_modules/p-reduce/package.json similarity index 100% rename from node_modules/p-each-series/node_modules/p-reduce/package.json rename to node_modules/@jest/core/node_modules/p-reduce/package.json diff --git a/node_modules/p-each-series/node_modules/p-reduce/readme.md b/node_modules/@jest/core/node_modules/p-reduce/readme.md similarity index 100% rename from node_modules/p-each-series/node_modules/p-reduce/readme.md rename to node_modules/@jest/core/node_modules/p-reduce/readme.md diff --git a/node_modules/@octokit/auth-token/README.md b/node_modules/@octokit/auth-token/README.md index 8ea6a03bc..4afeb9599 100644 --- a/node_modules/@octokit/auth-token/README.md +++ b/node_modules/@octokit/auth-token/README.md @@ -33,11 +33,11 @@ It is useful if you want to support multiple authentication strategies, as it’ Browsers -Load `@octokit/auth-token` directly from [cdn.pika.dev](https://cdn.pika.dev) +Load `@octokit/auth-token` directly from [cdn.skypack.dev](https://cdn.skypack.dev) ```html ``` @@ -64,6 +64,7 @@ const authentication = await auth(); // type: 'token', // token: '1234567890abcdef1234567890abcdef12345678', // tokenType: 'oauth' +// } ``` ## `createTokenAuth(token) options` diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/LICENSE b/node_modules/@octokit/auth-token/node_modules/@octokit/types/LICENSE similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/LICENSE rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/LICENSE diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/README.md b/node_modules/@octokit/auth-token/node_modules/@octokit/types/README.md similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/README.md rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/README.md diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-node/index.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-node/index.js similarity index 84% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-node/index.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-node/index.js index 4c5b65fec..b888f5732 100644 --- a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-node/index.js +++ b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-node/index.js @@ -2,7 +2,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); -const VERSION = "2.16.2"; +const VERSION = "6.0.3"; exports.VERSION = VERSION; //# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-node/index.js.map b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-node/index.js.map similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-node/index.js.map rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-node/index.js.map diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/AuthInterface.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/AuthInterface.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/AuthInterface.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/AuthInterface.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/EndpointDefaults.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/EndpointDefaults.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointInterface.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/EndpointInterface.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointInterface.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/EndpointInterface.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointOptions.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/EndpointOptions.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointOptions.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/EndpointOptions.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Fetch.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/Fetch.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Fetch.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/Fetch.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/OctokitResponse.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/OctokitResponse.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/OctokitResponse.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/OctokitResponse.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestError.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestError.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestError.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestError.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestHeaders.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestHeaders.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestHeaders.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestHeaders.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestInterface.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestInterface.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestInterface.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestInterface.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestMethod.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestMethod.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestMethod.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestMethod.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestOptions.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestOptions.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestOptions.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestOptions.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestParameters.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestParameters.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestParameters.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestParameters.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestRequestOptions.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/RequestRequestOptions.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/ResponseHeaders.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/ResponseHeaders.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Route.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/Route.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Route.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/Route.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Signal.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/Signal.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Signal.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/Signal.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/StrategyInterface.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/StrategyInterface.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/StrategyInterface.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/StrategyInterface.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Url.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/Url.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Url.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/Url.js diff --git a/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/VERSION.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/VERSION.js new file mode 100644 index 000000000..38cea4357 --- /dev/null +++ b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/VERSION.js @@ -0,0 +1 @@ +export const VERSION = "6.0.3"; diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/generated/Endpoints.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/generated/Endpoints.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/index.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/index.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/index.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-src/index.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/AuthInterface.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/AuthInterface.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/AuthInterface.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/AuthInterface.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/Fetch.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Fetch.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/Fetch.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Fetch.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts diff --git a/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts new file mode 100644 index 000000000..19ffff822 --- /dev/null +++ b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts @@ -0,0 +1,17 @@ +import { ResponseHeaders } from "./ResponseHeaders"; +import { Url } from "./Url"; +export declare type OctokitResponse = { + headers: ResponseHeaders; + /** + * http response code + */ + status: S; + /** + * URL of response after all redirects + */ + url: Url; + /** + * This is the data you would see in https://developer.Octokit.com/v3/ + */ + data: T; +}; diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestError.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestError.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestError.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestError.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestInterface.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestInterface.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestInterface.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestInterface.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestMethod.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestMethod.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestMethod.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestMethod.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestOptions.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestOptions.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestOptions.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestOptions.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestParameters.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestParameters.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestParameters.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestParameters.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/Route.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Route.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/Route.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Route.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/Signal.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Signal.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/Signal.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Signal.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/Url.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Url.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/Url.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/Url.d.ts diff --git a/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/VERSION.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/VERSION.d.ts new file mode 100644 index 000000000..af986fe4f --- /dev/null +++ b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/VERSION.d.ts @@ -0,0 +1 @@ +export declare const VERSION = "6.0.3"; diff --git a/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts new file mode 100644 index 000000000..399f673bf --- /dev/null +++ b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts @@ -0,0 +1,2972 @@ +import { paths } from "@octokit/openapi-types"; +import { OctokitResponse } from "../OctokitResponse"; +import { RequestHeaders } from "../RequestHeaders"; +import { RequestRequestOptions } from "../RequestRequestOptions"; +declare type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; +declare type ExtractParameters = "parameters" extends keyof T ? UnionToIntersection<{ + [K in keyof T["parameters"]]: T["parameters"][K]; +}[keyof T["parameters"]]> : {}; +declare type ExtractRequestBody = "requestBody" extends keyof T ? "application/json" extends keyof T["requestBody"] ? T["requestBody"]["application/json"] : { + data: { + [K in keyof T["requestBody"]]: T["requestBody"][K]; + }[keyof T["requestBody"]]; +} : {}; +declare type ToOctokitParameters = ExtractParameters & ExtractRequestBody; +declare type RequiredPreview = T extends string ? { + mediaType: { + previews: [T, ...string[]]; + }; +} : {}; +declare type Operation = { + parameters: ToOctokitParameters & RequiredPreview; + request: { + method: Method extends keyof MethodsMap ? MethodsMap[Method] : never; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; + }; + response: Url extends keyof EndpointsWithMissingRequiredResponseDataSchema ? Method extends EndpointsWithMissingRequiredResponseDataSchema[Url] ? DeepRequired> : ExtractFirstSuccessResponse : ExtractFirstSuccessResponse; +}; +declare type MethodsMap = { + delete: "DELETE"; + get: "GET"; + patch: "PATCH"; + post: "POST"; + put: "PUT"; +}; +declare type SuccessStatusesMap = { + "200": 200; + "201": 201; + "204": 204; +}; +declare type RedirectStatusesMap = { + "301": 301; + "302": 302; +}; +declare type DataType = "application/json" extends keyof T ? T["application/json"] : "application/scim+json" extends keyof T ? T["application/scim+json"] : unknown; +declare type ExtractFirstSuccessResponse = "responses" extends keyof R ? FirstSuccessResponse : unknown; +declare type FirstSuccessResponse = S extends keyof SuccessStatusesMap ? R[S] extends never ? Omit, "data"> : OctokitResponse, SuccessStatusesMap[S]> : S extends keyof RedirectStatusesMap ? OctokitResponse : never; +declare type EndpointsWithMissingRequiredResponseDataSchema = { + "/app/hook/config": "get" | "patch"; + "/app/installations/{installation_id}/access_tokens": "post"; + "/emojis": "get"; + "/enterprises/{enterprise}/actions/permissions": "get"; + "/enterprises/{enterprise}/actions/permissions/organizations": "get"; + "/enterprises/{enterprise}/actions/permissions/selected-actions": "get"; + "/enterprises/{enterprise}/actions/runner-groups": "get" | "post"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": "get" | "patch"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": "get"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": "get"; + "/enterprises/{enterprise}/actions/runners": "get"; + "/enterprises/{enterprise}/actions/runners/downloads": "get"; + "/enterprises/{enterprise}/settings/billing/actions": "get"; + "/enterprises/{enterprise}/settings/billing/packages": "get"; + "/enterprises/{enterprise}/settings/billing/shared-storage": "get"; + "/installation/repositories": "get"; + "/notifications": "get"; + "/notifications/threads/{thread_id}": "get"; + "/orgs/{org}/actions/permissions": "get"; + "/orgs/{org}/actions/permissions/repositories": "get"; + "/orgs/{org}/actions/permissions/selected-actions": "get"; + "/orgs/{org}/actions/runner-groups": "get" | "post"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}": "get" | "patch"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": "get"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners": "get"; + "/orgs/{org}/actions/runners": "get"; + "/orgs/{org}/actions/runners/downloads": "get"; + "/orgs/{org}/actions/secrets": "get"; + "/orgs/{org}/actions/secrets/{secret_name}/repositories": "get"; + "/orgs/{org}/hooks/{hook_id}/config": "get" | "patch"; + "/orgs/{org}/installations": "get"; + "/orgs/{org}/invitations": "get" | "post"; + "/orgs/{org}/settings/billing/actions": "get"; + "/orgs/{org}/settings/billing/packages": "get"; + "/orgs/{org}/settings/billing/shared-storage": "get"; + "/orgs/{org}/team-sync/groups": "get"; + "/orgs/{org}/teams/{team_slug}/invitations": "get"; + "/orgs/{org}/teams/{team_slug}/projects": "get"; + "/orgs/{org}/teams/{team_slug}/projects/{project_id}": "get"; + "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings": "get" | "patch"; + "/projects/columns/cards/{card_id}/moves": "post"; + "/projects/columns/{column_id}/moves": "post"; + "/repos/{owner}/{repo}/actions/artifacts": "get"; + "/repos/{owner}/{repo}/actions/permissions": "get"; + "/repos/{owner}/{repo}/actions/permissions/selected-actions": "get"; + "/repos/{owner}/{repo}/actions/runners": "get"; + "/repos/{owner}/{repo}/actions/runners/downloads": "get"; + "/repos/{owner}/{repo}/actions/runs": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/jobs": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/timing": "get"; + "/repos/{owner}/{repo}/actions/secrets": "get"; + "/repos/{owner}/{repo}/actions/workflows": "get"; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": "get"; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": "get"; + "/repos/{owner}/{repo}/check-suites/preferences": "patch"; + "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": "get"; + "/repos/{owner}/{repo}/code-scanning/alerts": "get"; + "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": "get" | "patch"; + "/repos/{owner}/{repo}/code-scanning/analyses": "get"; + "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": "get"; + "/repos/{owner}/{repo}/commits/{ref}/check-runs": "get"; + "/repos/{owner}/{repo}/commits/{ref}/check-suites": "get"; + "/repos/{owner}/{repo}/commits/{ref}/statuses": "get"; + "/repos/{owner}/{repo}/contents/{path}": "put" | "delete"; + "/repos/{owner}/{repo}/git/blobs": "post"; + "/repos/{owner}/{repo}/git/commits": "post"; + "/repos/{owner}/{repo}/git/commits/{commit_sha}": "get"; + "/repos/{owner}/{repo}/git/matching-refs/{ref}": "get"; + "/repos/{owner}/{repo}/git/ref/{ref}": "get"; + "/repos/{owner}/{repo}/git/refs": "post"; + "/repos/{owner}/{repo}/git/refs/{ref}": "patch"; + "/repos/{owner}/{repo}/hooks/{hook_id}/config": "get" | "patch"; + "/repos/{owner}/{repo}/issues/{issue_number}/events": "get"; + "/repos/{owner}/{repo}/issues/{issue_number}/timeline": "get"; + "/repos/{owner}/{repo}/keys": "get" | "post"; + "/repos/{owner}/{repo}/keys/{key_id}": "get"; + "/repos/{owner}/{repo}/languages": "get"; + "/repos/{owner}/{repo}/notifications": "get"; + "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": "get"; + "/repos/{owner}/{repo}/stats/participation": "get"; + "/repos/{owner}/{repo}/statuses/{sha}": "post"; + "/repos/{owner}/{repo}/topics": "get" | "put"; + "/scim/v2/enterprises/{enterprise}/Groups": "get" | "post"; + "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": "get" | "put" | "patch"; + "/scim/v2/enterprises/{enterprise}/Users": "get" | "post"; + "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": "get" | "put" | "patch"; + "/search/code": "get"; + "/search/commits": "get"; + "/search/issues": "get"; + "/search/labels": "get"; + "/search/repositories": "get"; + "/search/topics": "get"; + "/search/users": "get"; + "/teams/{team_id}/invitations": "get"; + "/teams/{team_id}/projects": "get"; + "/teams/{team_id}/projects/{project_id}": "get"; + "/teams/{team_id}/team-sync/group-mappings": "get" | "patch"; + "/user/installations": "get"; + "/user/installations/{installation_id}/repositories": "get"; + "/user/keys": "get" | "post"; + "/user/keys/{key_id}": "get"; + "/users/{username}/settings/billing/actions": "get"; + "/users/{username}/settings/billing/packages": "get"; + "/users/{username}/settings/billing/shared-storage": "get"; +}; +declare type NotNill = T extends null | undefined ? never : T; +declare type Primitive = undefined | null | boolean | string | number | Function; +declare type DeepRequired = T extends Primitive ? NotNill : { + [P in keyof T]-?: T[P] extends Array ? Array> : T[P] extends ReadonlyArray ? DeepRequired : DeepRequired; +}; +export interface Endpoints { + /** + * @see https://docs.github.com/v3/apps/#delete-an-installation-for-the-authenticated-app + */ + "DELETE /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "delete">; + /** + * @see https://docs.github.com/v3/apps/#unsuspend-an-app-installation + */ + "DELETE /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "delete">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-a-grant + */ + "DELETE /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#delete-an-app-authorization + */ + "DELETE /applications/{client_id}/grant": Operation<"/applications/{client_id}/grant", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#revoke-a-grant-for-an-application + */ + "DELETE /applications/{client_id}/grants/{access_token}": Operation<"/applications/{client_id}/grants/{access_token}", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#delete-an-app-token + */ + "DELETE /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#revoke-an-authorization-for-an-application + */ + "DELETE /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "delete">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-an-authorization + */ + "DELETE /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#disable-a-selected-organization-for-github-actions-in-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-self-hosted-runner-group-from-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#remove-a-self-hosted-runner-from-a-group-for-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-self-hosted-runner-from-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/v3/gists/#delete-a-gist + */ + "DELETE /gists/{gist_id}": Operation<"/gists/{gist_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/gists#delete-a-gist-comment + */ + "DELETE /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/gists/#unstar-a-gist + */ + "DELETE /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#revoke-an-installation-access-token + */ + "DELETE /installation/token": Operation<"/installation/token", "delete">; + /** + * @see https://docs.github.com/rest/reference/activity#delete-a-thread-subscription + */ + "DELETE /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#disable-a-selected-repository-for-github-actions-in-an-organization + */ + "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-organization + */ + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-organization + */ + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-an-organization + */ + "DELETE /orgs/{org}/actions/runners/{runner_id}": Operation<"/orgs/{org}/actions/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-an-organization-secret + */ + "DELETE /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret + */ + "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#unblock-a-user-from-an-organization + */ + "DELETE /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "delete">; + /** + * @see https://docs.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization + */ + "DELETE /orgs/{org}/credential-authorizations/{credential_id}": Operation<"/orgs/{org}/credential-authorizations/{credential_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#delete-an-organization-webhook + */ + "DELETE /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-an-organization + */ + "DELETE /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-an-organization-member + */ + "DELETE /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-organization-membership-for-a-user + */ + "DELETE /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/migrations#delete-an-organization-migration-archive + */ + "DELETE /orgs/{org}/migrations/{migration_id}/archive": Operation<"/orgs/{org}/migrations/{migration_id}/archive", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#unlock-an-organization-repository + */ + "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock": Operation<"/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-outside-collaborator-from-an-organization + */ + "DELETE /orgs/{org}/outside_collaborators/{username}": Operation<"/orgs/{org}/outside_collaborators/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-public-organization-membership-for-the-authenticated-user + */ + "DELETE /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#delete-a-team + */ + "DELETE /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-comment + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-team-discussion-comment-reaction + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#delete-team-discussion-reaction + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user + */ + "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-project-from-a-team + */ + "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-repository-from-a-team + */ + "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "delete">; + /** + * @see https://docs.github.com/rest/reference/projects#delete-a-project-card + */ + "DELETE /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "delete", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#delete-a-project-column + */ + "DELETE /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "delete", "inertia">; + /** + * @see https://docs.github.com/v3/projects/#delete-a-project + */ + "DELETE /projects/{project_id}": Operation<"/projects/{project_id}", "delete", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#remove-project-collaborator + */ + "DELETE /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "delete", "inertia">; + /** + * @see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy + */ + "DELETE /reactions/{reaction_id}": Operation<"/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/repos/#delete-a-repository + */ + "DELETE /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-an-artifact + */ + "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-a-repository + */ + "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}": Operation<"/repos/{owner}/{repo}/actions/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-workflow-run + */ + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-workflow-run-logs + */ + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/logs", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-repository-secret + */ + "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "delete">; + /** + * @see https://docs.github.com/v3/repos/#disable-automated-security-fixes + */ + "DELETE /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "delete", "london">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-branch-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-admin-branch-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-pull-request-review-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-commit-signature-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "delete", "zzzax">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-status-check-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-status-check-contexts + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-app-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-team-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-user-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-a-repository-collaborator + */ + "DELETE /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-commit-comment + */ + "DELETE /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-a-commit-comment-reaction + */ + "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-file + */ + "DELETE /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-deployment + */ + "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/git#delete-a-reference + */ + "DELETE /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-repository-webhook + */ + "DELETE /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/migrations#cancel-an-import + */ + "DELETE /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "delete">; + /** + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-a-repository + */ + "DELETE /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-repository-invitation + */ + "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#delete-an-issue-comment + */ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-an-issue-comment-reaction + */ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#remove-all-labels-from-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#remove-a-label-from-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}", "delete">; + /** + * @see https://docs.github.com/v3/issues/#unlock-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/lock", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-an-issue-reaction + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-deploy-key + */ + "DELETE /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#delete-a-label + */ + "DELETE /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#delete-a-milestone + */ + "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-github-pages-site + */ + "DELETE /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "delete", "switcheroo">; + /** + * @see https://docs.github.com/rest/reference/pulls#delete-a-review-comment-for-a-pull-request + */ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-a-pull-request-comment-reaction + */ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/pulls#remove-requested-reviewers-from-a-pull-request + */ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "delete">; + /** + * @see https://docs.github.com/rest/reference/pulls#delete-a-pending-review-for-a-pull-request + */ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-release-asset + */ + "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-release + */ + "DELETE /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/activity#delete-a-repository-subscription + */ + "DELETE /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "delete">; + /** + * @see https://docs.github.com/v3/repos/#disable-vulnerability-alerts + */ + "DELETE /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "delete", "dorian">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-group-from-an-enterprise + */ + "DELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-user-from-an-enterprise + */ + "DELETE /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "delete">; + /** + * @see https://docs.github.com/v3/scim/#delete-a-scim-user-from-an-organization + */ + "DELETE /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#delete-a-team-legacy + */ + "DELETE /teams/{team_id}": Operation<"/teams/{team_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-legacy + */ + "DELETE /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-comment-legacy + */ + "DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#remove-team-member-legacy + */ + "DELETE /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user-legacy + */ + "DELETE /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-project-from-a-team-legacy + */ + "DELETE /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-repository-from-a-team-legacy + */ + "DELETE /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#unblock-a-user + */ + "DELETE /user/blocks/{username}": Operation<"/user/blocks/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#delete-an-email-address-for-the-authenticated-user + */ + "DELETE /user/emails": Operation<"/user/emails", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#unfollow-a-user + */ + "DELETE /user/following/{username}": Operation<"/user/following/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user + */ + "DELETE /user/gpg_keys/{gpg_key_id}": Operation<"/user/gpg_keys/{gpg_key_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#remove-a-repository-from-an-app-installation + */ + "DELETE /user/installations/{installation_id}/repositories/{repository_id}": Operation<"/user/installations/{installation_id}/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-from-your-public-repositories + */ + "DELETE /user/interaction-limits": Operation<"/user/interaction-limits", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user + */ + "DELETE /user/keys/{key_id}": Operation<"/user/keys/{key_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/migrations#delete-a-user-migration-archive + */ + "DELETE /user/migrations/{migration_id}/archive": Operation<"/user/migrations/{migration_id}/archive", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#unlock-a-user-repository + */ + "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock": Operation<"/user/migrations/{migration_id}/repos/{repo_name}/lock", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/repos#decline-a-repository-invitation + */ + "DELETE /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/activity#unstar-a-repository-for-the-authenticated-user + */ + "DELETE /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "delete">; + /** + * @see + */ + "GET /": Operation<"/", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-the-authenticated-app + */ + "GET /app": Operation<"/app", "get">; + /** + * @see https://docs.github.com/v3/apps#get-a-webhook-configuration-for-an-app + */ + "GET /app/hook/config": Operation<"/app/hook/config", "get">; + /** + * @see https://docs.github.com/v3/apps/#list-installations-for-the-authenticated-app + */ + "GET /app/installations": Operation<"/app/installations", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-an-installation-for-the-authenticated-app + */ + "GET /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-grants + */ + "GET /applications/grants": Operation<"/applications/grants", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-grant + */ + "GET /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#check-an-authorization + */ + "GET /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-an-app + */ + "GET /apps/{app_slug}": Operation<"/apps/{app_slug}", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-authorizations + */ + "GET /authorizations": Operation<"/authorizations", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-authorization + */ + "GET /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "get">; + /** + * @see https://docs.github.com/v3/codes_of_conduct/#get-all-codes-of-conduct + */ + "GET /codes_of_conduct": Operation<"/codes_of_conduct", "get", "scarlet-witch">; + /** + * @see https://docs.github.com/v3/codes_of_conduct/#get-a-code-of-conduct + */ + "GET /codes_of_conduct/{key}": Operation<"/codes_of_conduct/{key}", "get", "scarlet-witch">; + /** + * @see https://docs.github.com/v3/emojis/#get-emojis + */ + "GET /emojis": Operation<"/emojis", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-github-actions-permissions-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-selected-organizations-enabled-for-github-actions-in-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-allowed-actions-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runner-groups-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-group-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-in-a-group-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners": Operation<"/enterprises/{enterprise}/actions/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-runner-applications-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners/downloads": Operation<"/enterprises/{enterprise}/actions/runners/downloads", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-enterprise + */ + "GET /enterprises/{enterprise}/settings/billing/actions": Operation<"/enterprises/{enterprise}/settings/billing/actions", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-enterprise + */ + "GET /enterprises/{enterprise}/settings/billing/packages": Operation<"/enterprises/{enterprise}/settings/billing/packages", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-enterprise + */ + "GET /enterprises/{enterprise}/settings/billing/shared-storage": Operation<"/enterprises/{enterprise}/settings/billing/shared-storage", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events + */ + "GET /events": Operation<"/events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-feeds + */ + "GET /feeds": Operation<"/feeds", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gists-for-the-authenticated-user + */ + "GET /gists": Operation<"/gists", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-public-gists + */ + "GET /gists/public": Operation<"/gists/public", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-starred-gists + */ + "GET /gists/starred": Operation<"/gists/starred", "get">; + /** + * @see https://docs.github.com/v3/gists/#get-a-gist + */ + "GET /gists/{gist_id}": Operation<"/gists/{gist_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/gists#list-gist-comments + */ + "GET /gists/{gist_id}/comments": Operation<"/gists/{gist_id}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/gists#get-a-gist-comment + */ + "GET /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gist-commits + */ + "GET /gists/{gist_id}/commits": Operation<"/gists/{gist_id}/commits", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gist-forks + */ + "GET /gists/{gist_id}/forks": Operation<"/gists/{gist_id}/forks", "get">; + /** + * @see https://docs.github.com/v3/gists/#check-if-a-gist-is-starred + */ + "GET /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "get">; + /** + * @see https://docs.github.com/v3/gists/#get-a-gist-revision + */ + "GET /gists/{gist_id}/{sha}": Operation<"/gists/{gist_id}/{sha}", "get">; + /** + * @see https://docs.github.com/v3/gitignore/#get-all-gitignore-templates + */ + "GET /gitignore/templates": Operation<"/gitignore/templates", "get">; + /** + * @see https://docs.github.com/v3/gitignore/#get-a-gitignore-template + */ + "GET /gitignore/templates/{name}": Operation<"/gitignore/templates/{name}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-app-installation + */ + "GET /installation/repositories": Operation<"/installation/repositories", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user + */ + "GET /issues": Operation<"/issues", "get">; + /** + * @see https://docs.github.com/v3/licenses/#get-all-commonly-used-licenses + */ + "GET /licenses": Operation<"/licenses", "get">; + /** + * @see https://docs.github.com/v3/licenses/#get-a-license + */ + "GET /licenses/{license}": Operation<"/licenses/{license}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account + */ + "GET /marketplace_listing/accounts/{account_id}": Operation<"/marketplace_listing/accounts/{account_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-plans + */ + "GET /marketplace_listing/plans": Operation<"/marketplace_listing/plans", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan + */ + "GET /marketplace_listing/plans/{plan_id}/accounts": Operation<"/marketplace_listing/plans/{plan_id}/accounts", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account-stubbed + */ + "GET /marketplace_listing/stubbed/accounts/{account_id}": Operation<"/marketplace_listing/stubbed/accounts/{account_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-plans-stubbed + */ + "GET /marketplace_listing/stubbed/plans": Operation<"/marketplace_listing/stubbed/plans", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan-stubbed + */ + "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts": Operation<"/marketplace_listing/stubbed/plans/{plan_id}/accounts", "get">; + /** + * @see https://docs.github.com/v3/meta/#get-github-meta-information + */ + "GET /meta": Operation<"/meta", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-network-of-repositories + */ + "GET /networks/{owner}/{repo}/events": Operation<"/networks/{owner}/{repo}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user + */ + "GET /notifications": Operation<"/notifications", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-a-thread + */ + "GET /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-a-thread-subscription-for-the-authenticated-user + */ + "GET /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "get">; + /** + * @see + */ + "GET /octocat": Operation<"/octocat", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations + */ + "GET /organizations": Operation<"/organizations", "get">; + /** + * @see https://docs.github.com/v3/orgs/#get-an-organization + */ + "GET /orgs/{org}": Operation<"/orgs/{org}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-an-organization + */ + "GET /orgs/{org}/actions/permissions": Operation<"/orgs/{org}/actions/permissions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization + */ + "GET /orgs/{org}/actions/permissions/repositories": Operation<"/orgs/{org}/actions/permissions/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-an-organization + */ + "GET /orgs/{org}/actions/permissions/selected-actions": Operation<"/orgs/{org}/actions/permissions/selected-actions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups": Operation<"/orgs/{org}/actions/runner-groups", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-group-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-organization + */ + "GET /orgs/{org}/actions/runners": Operation<"/orgs/{org}/actions/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-organization + */ + "GET /orgs/{org}/actions/runners/downloads": Operation<"/orgs/{org}/actions/runners/downloads", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-an-organization + */ + "GET /orgs/{org}/actions/runners/{runner_id}": Operation<"/orgs/{org}/actions/runners/{runner_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-organization-secrets + */ + "GET /orgs/{org}/actions/secrets": Operation<"/orgs/{org}/actions/secrets", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-an-organization-public-key + */ + "GET /orgs/{org}/actions/secrets/public-key": Operation<"/orgs/{org}/actions/secrets/public-key", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-an-organization-secret + */ + "GET /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret + */ + "GET /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-users-blocked-by-an-organization + */ + "GET /orgs/{org}/blocks": Operation<"/orgs/{org}/blocks", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#check-if-a-user-is-blocked-by-an-organization + */ + "GET /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization + */ + "GET /orgs/{org}/credential-authorizations": Operation<"/orgs/{org}/credential-authorizations", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-organization-events + */ + "GET /orgs/{org}/events": Operation<"/orgs/{org}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-webhooks + */ + "GET /orgs/{org}/hooks": Operation<"/orgs/{org}/hooks", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#get-an-organization-webhook + */ + "GET /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "get">; + /** + * @see https://docs.github.com/v3/orgs#get-a-webhook-configuration-for-an-organization + */ + "GET /orgs/{org}/hooks/{hook_id}/config": Operation<"/orgs/{org}/hooks/{hook_id}/config", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-an-organization-installation-for-the-authenticated-app + */ + "GET /orgs/{org}/installation": Operation<"/orgs/{org}/installation", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-app-installations-for-an-organization + */ + "GET /orgs/{org}/installations": Operation<"/orgs/{org}/installations", "get">; + /** + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-an-organization + */ + "GET /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-pending-organization-invitations + */ + "GET /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-invitation-teams + */ + "GET /orgs/{org}/invitations/{invitation_id}/teams": Operation<"/orgs/{org}/invitations/{invitation_id}/teams", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user + */ + "GET /orgs/{org}/issues": Operation<"/orgs/{org}/issues", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-members + */ + "GET /orgs/{org}/members": Operation<"/orgs/{org}/members", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#check-organization-membership-for-a-user + */ + "GET /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#get-organization-membership-for-a-user + */ + "GET /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-organization-migrations + */ + "GET /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-an-organization-migration-status + */ + "GET /orgs/{org}/migrations/{migration_id}": Operation<"/orgs/{org}/migrations/{migration_id}", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#download-an-organization-migration-archive + */ + "GET /orgs/{org}/migrations/{migration_id}/archive": Operation<"/orgs/{org}/migrations/{migration_id}/archive", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-repositories-in-an-organization-migration + */ + "GET /orgs/{org}/migrations/{migration_id}/repositories": Operation<"/orgs/{org}/migrations/{migration_id}/repositories", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-outside-collaborators-for-an-organization + */ + "GET /orgs/{org}/outside_collaborators": Operation<"/orgs/{org}/outside_collaborators", "get">; + /** + * @see https://docs.github.com/v3/projects/#list-organization-projects + */ + "GET /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-public-organization-members + */ + "GET /orgs/{org}/public_members": Operation<"/orgs/{org}/public_members", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#check-public-organization-membership-for-a-user + */ + "GET /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-organization-repositories + */ + "GET /orgs/{org}/repos": Operation<"/orgs/{org}/repos", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-organization + */ + "GET /orgs/{org}/settings/billing/actions": Operation<"/orgs/{org}/settings/billing/actions", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-organization + */ + "GET /orgs/{org}/settings/billing/packages": Operation<"/orgs/{org}/settings/billing/packages", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-organization + */ + "GET /orgs/{org}/settings/billing/shared-storage": Operation<"/orgs/{org}/settings/billing/shared-storage", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-an-organization + */ + "GET /orgs/{org}/team-sync/groups": Operation<"/orgs/{org}/team-sync/groups", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-teams + */ + "GET /orgs/{org}/teams": Operation<"/orgs/{org}/teams", "get">; + /** + * @see https://docs.github.com/v3/teams/#get-a-team-by-name + */ + "GET /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussions + */ + "GET /orgs/{org}/teams/{team_slug}/discussions": Operation<"/orgs/{org}/teams/{team_slug}/discussions", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-comment + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations + */ + "GET /orgs/{org}/teams/{team_slug}/invitations": Operation<"/orgs/{org}/teams/{team_slug}/invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-team-members + */ + "GET /orgs/{org}/teams/{team_slug}/members": Operation<"/orgs/{org}/teams/{team_slug}/members", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user + */ + "GET /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-team-projects + */ + "GET /orgs/{org}/teams/{team_slug}/projects": Operation<"/orgs/{org}/teams/{team_slug}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-project + */ + "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#list-team-repositories + */ + "GET /orgs/{org}/teams/{team_slug}/repos": Operation<"/orgs/{org}/teams/{team_slug}/repos", "get">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository + */ + "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team + */ + "GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": Operation<"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-child-teams + */ + "GET /orgs/{org}/teams/{team_slug}/teams": Operation<"/orgs/{org}/teams/{team_slug}/teams", "get">; + /** + * @see https://docs.github.com/rest/reference/projects#get-a-project-card + */ + "GET /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#get-a-project-column + */ + "GET /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-cards + */ + "GET /projects/columns/{column_id}/cards": Operation<"/projects/columns/{column_id}/cards", "get", "inertia">; + /** + * @see https://docs.github.com/v3/projects/#get-a-project + */ + "GET /projects/{project_id}": Operation<"/projects/{project_id}", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-collaborators + */ + "GET /projects/{project_id}/collaborators": Operation<"/projects/{project_id}/collaborators", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#get-project-permission-for-a-user + */ + "GET /projects/{project_id}/collaborators/{username}/permission": Operation<"/projects/{project_id}/collaborators/{username}/permission", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-columns + */ + "GET /projects/{project_id}/columns": Operation<"/projects/{project_id}/columns", "get", "inertia">; + /** + * @see https://docs.github.com/v3/rate_limit/#get-rate-limit-status-for-the-authenticated-user + */ + "GET /rate_limit": Operation<"/rate_limit", "get">; + /** + * @see https://docs.github.com/v3/repos/#get-a-repository + */ + "GET /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-artifacts-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/artifacts": Operation<"/repos/{owner}/{repo}/actions/artifacts", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-an-artifact + */ + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#download-an-artifact + */ + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-job-for-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#download-job-logs-for-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}/logs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/permissions": Operation<"/repos/{owner}/{repo}/actions/permissions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/permissions/selected-actions": Operation<"/repos/{owner}/{repo}/actions/permissions/selected-actions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners": Operation<"/repos/{owner}/{repo}/actions/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners/downloads": Operation<"/repos/{owner}/{repo}/actions/runners/downloads", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners/{runner_id}": Operation<"/repos/{owner}/{repo}/actions/runners/{runner_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runs": Operation<"/repos/{owner}/{repo}/actions/runs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-run-artifacts + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-jobs-for-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/jobs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#download-workflow-run-logs + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/logs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-workflow-run-usage + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/timing", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-secrets + */ + "GET /repos/{owner}/{repo}/actions/secrets": Operation<"/repos/{owner}/{repo}/actions/secrets", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-repository-public-key + */ + "GET /repos/{owner}/{repo}/actions/secrets/public-key": Operation<"/repos/{owner}/{repo}/actions/secrets/public-key", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-repository-secret + */ + "GET /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-workflows + */ + "GET /repos/{owner}/{repo}/actions/workflows": Operation<"/repos/{owner}/{repo}/actions/workflows", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-workflow + */ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs + */ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-workflow-usage + */ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-assignees + */ + "GET /repos/{owner}/{repo}/assignees": Operation<"/repos/{owner}/{repo}/assignees", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#check-if-a-user-can-be-assigned + */ + "GET /repos/{owner}/{repo}/assignees/{assignee}": Operation<"/repos/{owner}/{repo}/assignees/{assignee}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-branches + */ + "GET /repos/{owner}/{repo}/branches": Operation<"/repos/{owner}/{repo}/branches", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}": Operation<"/repos/{owner}/{repo}/branches/{branch}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-branch-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-admin-branch-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-pull-request-review-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-commit-signature-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "get", "zzzax">; + /** + * @see https://docs.github.com/rest/reference/repos#get-status-checks-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-all-status-check-contexts + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-access-restrictions + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-apps-with-access-to-the-protected-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-teams-with-access-to-the-protected-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-users-with-access-to-the-protected-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#get-a-check-run + */ + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-run-annotations + */ + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#get-a-check-suite + */ + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite + */ + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository + */ + "GET /repos/{owner}/{repo}/code-scanning/alerts": Operation<"/repos/{owner}/{repo}/code-scanning/alerts", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert + * @deprecated "alert_id" is now "alert_number" + */ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_id}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert + */ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#list-recent-analyses + */ + "GET /repos/{owner}/{repo}/code-scanning/analyses": Operation<"/repos/{owner}/{repo}/code-scanning/analyses", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-collaborators + */ + "GET /repos/{owner}/{repo}/collaborators": Operation<"/repos/{owner}/{repo}/collaborators", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#check-if-a-user-is-a-repository-collaborator + */ + "GET /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-repository-permissions-for-a-user + */ + "GET /repos/{owner}/{repo}/collaborators/{username}/permission": Operation<"/repos/{owner}/{repo}/collaborators/{username}/permission", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-comments-for-a-repository + */ + "GET /repos/{owner}/{repo}/comments": Operation<"/repos/{owner}/{repo}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-commit-comment + */ + "GET /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-commit-comment + */ + "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commits + */ + "GET /repos/{owner}/{repo}/commits": Operation<"/repos/{owner}/{repo}/commits", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-branches-for-head-commit + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", "get", "groot">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-comments + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-pull-requests-associated-with-a-commit + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/pulls", "get", "groot">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-commit + */ + "GET /repos/{owner}/{repo}/commits/{ref}": Operation<"/repos/{owner}/{repo}/commits/{ref}", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-runs-for-a-git-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/check-runs": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-runs", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/check-suites": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-suites", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-combined-status-for-a-specific-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/status": Operation<"/repos/{owner}/{repo}/commits/{ref}/status", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-statuses-for-a-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/statuses": Operation<"/repos/{owner}/{repo}/commits/{ref}/statuses", "get">; + /** + * @see https://docs.github.com/v3/codes_of_conduct/#get-the-code-of-conduct-for-a-repository + */ + "GET /repos/{owner}/{repo}/community/code_of_conduct": Operation<"/repos/{owner}/{repo}/community/code_of_conduct", "get", "scarlet-witch">; + /** + * @see https://docs.github.com/rest/reference/repos#get-community-profile-metrics + */ + "GET /repos/{owner}/{repo}/community/profile": Operation<"/repos/{owner}/{repo}/community/profile", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#compare-two-commits + */ + "GET /repos/{owner}/{repo}/compare/{base}...{head}": Operation<"/repos/{owner}/{repo}/compare/{base}...{head}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-repository-content + */ + "GET /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-contributors + */ + "GET /repos/{owner}/{repo}/contributors": Operation<"/repos/{owner}/{repo}/contributors", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-deployments + */ + "GET /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-deployment + */ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-deployment-statuses + */ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-deployment-status + */ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repository-events + */ + "GET /repos/{owner}/{repo}/events": Operation<"/repos/{owner}/{repo}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-forks + */ + "GET /repos/{owner}/{repo}/forks": Operation<"/repos/{owner}/{repo}/forks", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-blob + */ + "GET /repos/{owner}/{repo}/git/blobs/{file_sha}": Operation<"/repos/{owner}/{repo}/git/blobs/{file_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-commit + */ + "GET /repos/{owner}/{repo}/git/commits/{commit_sha}": Operation<"/repos/{owner}/{repo}/git/commits/{commit_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#list-matching-references + */ + "GET /repos/{owner}/{repo}/git/matching-refs/{ref}": Operation<"/repos/{owner}/{repo}/git/matching-refs/{ref}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-reference + */ + "GET /repos/{owner}/{repo}/git/ref/{ref}": Operation<"/repos/{owner}/{repo}/git/ref/{ref}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-tag + */ + "GET /repos/{owner}/{repo}/git/tags/{tag_sha}": Operation<"/repos/{owner}/{repo}/git/tags/{tag_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-tree + */ + "GET /repos/{owner}/{repo}/git/trees/{tree_sha}": Operation<"/repos/{owner}/{repo}/git/trees/{tree_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-webhooks + */ + "GET /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-repository-webhook + */ + "GET /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "get">; + /** + * @see https://docs.github.com/v3/repos#get-a-webhook-configuration-for-a-repository + */ + "GET /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-an-import-status + */ + "GET /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-commit-authors + */ + "GET /repos/{owner}/{repo}/import/authors": Operation<"/repos/{owner}/{repo}/import/authors", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-large-files + */ + "GET /repos/{owner}/{repo}/import/large_files": Operation<"/repos/{owner}/{repo}/import/large_files", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-a-repository-installation-for-the-authenticated-app + */ + "GET /repos/{owner}/{repo}/installation": Operation<"/repos/{owner}/{repo}/installation", "get">; + /** + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-a-repository + */ + "GET /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations + */ + "GET /repos/{owner}/{repo}/invitations": Operation<"/repos/{owner}/{repo}/invitations", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-repository-issues + */ + "GET /repos/{owner}/{repo}/issues": Operation<"/repos/{owner}/{repo}/issues", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-comments-for-a-repository + */ + "GET /repos/{owner}/{repo}/issues/comments": Operation<"/repos/{owner}/{repo}/issues/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-an-issue-comment + */ + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue-comment + */ + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-events-for-a-repository + */ + "GET /repos/{owner}/{repo}/issues/events": Operation<"/repos/{owner}/{repo}/issues/events", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-an-issue-event + */ + "GET /repos/{owner}/{repo}/issues/events/{event_id}": Operation<"/repos/{owner}/{repo}/issues/events/{event_id}", "get">; + /** + * @see https://docs.github.com/v3/issues/#get-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-comments + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/comments": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-events + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/events": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#list-timeline-events-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/timeline", "get", "mockingbird">; + /** + * @see https://docs.github.com/rest/reference/repos#list-deploy-keys + */ + "GET /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-deploy-key + */ + "GET /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-a-repository + */ + "GET /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-a-label + */ + "GET /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-languages + */ + "GET /repos/{owner}/{repo}/languages": Operation<"/repos/{owner}/{repo}/languages", "get">; + /** + * @see https://docs.github.com/v3/licenses/#get-the-license-for-a-repository + */ + "GET /repos/{owner}/{repo}/license": Operation<"/repos/{owner}/{repo}/license", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-milestones + */ + "GET /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-a-milestone + */ + "GET /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-issues-in-a-milestone + */ + "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}/labels", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user + */ + "GET /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-github-pages-site + */ + "GET /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-github-pages-builds + */ + "GET /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-latest-pages-build + */ + "GET /repos/{owner}/{repo}/pages/builds/latest": Operation<"/repos/{owner}/{repo}/pages/builds/latest", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-github-pages-build + */ + "GET /repos/{owner}/{repo}/pages/builds/{build_id}": Operation<"/repos/{owner}/{repo}/pages/builds/{build_id}", "get">; + /** + * @see https://docs.github.com/v3/projects/#list-repository-projects + */ + "GET /repos/{owner}/{repo}/projects": Operation<"/repos/{owner}/{repo}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/v3/pulls/#list-pull-requests + */ + "GET /repos/{owner}/{repo}/pulls": Operation<"/repos/{owner}/{repo}/pulls", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-in-a-repository + */ + "GET /repos/{owner}/{repo}/pulls/comments": Operation<"/repos/{owner}/{repo}/pulls/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#get-a-review-comment-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment + */ + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/pulls/#get-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-on-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments", "get">; + /** + * @see https://docs.github.com/v3/pulls/#list-commits-on-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/commits", "get">; + /** + * @see https://docs.github.com/v3/pulls/#list-pull-requests-files + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/files": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/files", "get">; + /** + * @see https://docs.github.com/v3/pulls/#check-if-a-pull-request-has-been-merged + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-requested-reviewers-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-reviews-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#get-a-review-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-comments-for-a-pull-request-review + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-repository-readme + */ + "GET /repos/{owner}/{repo}/readme": Operation<"/repos/{owner}/{repo}/readme", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-releases + */ + "GET /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-release-asset + */ + "GET /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-latest-release + */ + "GET /repos/{owner}/{repo}/releases/latest": Operation<"/repos/{owner}/{repo}/releases/latest", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name + */ + "GET /repos/{owner}/{repo}/releases/tags/{tag}": Operation<"/repos/{owner}/{repo}/releases/tags/{tag}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-release + */ + "GET /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-release-assets + */ + "GET /repos/{owner}/{repo}/releases/{release_id}/assets": Operation<"/repos/{owner}/{repo}/releases/{release_id}/assets", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-stargazers + */ + "GET /repos/{owner}/{repo}/stargazers": Operation<"/repos/{owner}/{repo}/stargazers", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-activity + */ + "GET /repos/{owner}/{repo}/stats/code_frequency": Operation<"/repos/{owner}/{repo}/stats/code_frequency", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-last-year-of-commit-activity + */ + "GET /repos/{owner}/{repo}/stats/commit_activity": Operation<"/repos/{owner}/{repo}/stats/commit_activity", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-all-contributor-commit-activity + */ + "GET /repos/{owner}/{repo}/stats/contributors": Operation<"/repos/{owner}/{repo}/stats/contributors", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-count + */ + "GET /repos/{owner}/{repo}/stats/participation": Operation<"/repos/{owner}/{repo}/stats/participation", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-hourly-commit-count-for-each-day + */ + "GET /repos/{owner}/{repo}/stats/punch_card": Operation<"/repos/{owner}/{repo}/stats/punch_card", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-watchers + */ + "GET /repos/{owner}/{repo}/subscribers": Operation<"/repos/{owner}/{repo}/subscribers", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-a-repository-subscription + */ + "GET /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-tags + */ + "GET /repos/{owner}/{repo}/tags": Operation<"/repos/{owner}/{repo}/tags", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#download-a-repository-archive + */ + "GET /repos/{owner}/{repo}/tarball/{ref}": Operation<"/repos/{owner}/{repo}/tarball/{ref}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-teams + */ + "GET /repos/{owner}/{repo}/teams": Operation<"/repos/{owner}/{repo}/teams", "get">; + /** + * @see https://docs.github.com/v3/repos/#get-all-repository-topics + */ + "GET /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "get", "mercy">; + /** + * @see https://docs.github.com/rest/reference/repos#get-repository-clones + */ + "GET /repos/{owner}/{repo}/traffic/clones": Operation<"/repos/{owner}/{repo}/traffic/clones", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-top-referral-paths + */ + "GET /repos/{owner}/{repo}/traffic/popular/paths": Operation<"/repos/{owner}/{repo}/traffic/popular/paths", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-top-referral-sources + */ + "GET /repos/{owner}/{repo}/traffic/popular/referrers": Operation<"/repos/{owner}/{repo}/traffic/popular/referrers", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-page-views + */ + "GET /repos/{owner}/{repo}/traffic/views": Operation<"/repos/{owner}/{repo}/traffic/views", "get">; + /** + * @see https://docs.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository + */ + "GET /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "get", "dorian">; + /** + * @see https://docs.github.com/rest/reference/repos#download-a-repository-archive + */ + "GET /repos/{owner}/{repo}/zipball/{ref}": Operation<"/repos/{owner}/{repo}/zipball/{ref}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-public-repositories + */ + "GET /repositories": Operation<"/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-provisioned-scim groups-for-an-enterprise + */ + "GET /scim/v2/enterprises/{enterprise}/Groups": Operation<"/scim/v2/enterprises/{enterprise}/Groups", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise group + */ + "GET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-scim-provisioned-identities-for-an-enterprise + */ + "GET /scim/v2/enterprises/{enterprise}/Users": Operation<"/scim/v2/enterprises/{enterprise}/Users", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise-user + */ + "GET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "get">; + /** + * @see https://docs.github.com/v3/scim/#list-scim-provisioned-identities + */ + "GET /scim/v2/organizations/{org}/Users": Operation<"/scim/v2/organizations/{org}/Users", "get">; + /** + * @see https://docs.github.com/v3/scim/#get-scim-provisioning-information-for-a-user + */ + "GET /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "get">; + /** + * @see https://docs.github.com/v3/search/#search-code + */ + "GET /search/code": Operation<"/search/code", "get">; + /** + * @see https://docs.github.com/v3/search/#search-commits + */ + "GET /search/commits": Operation<"/search/commits", "get", "cloak">; + /** + * @see https://docs.github.com/v3/search/#search-issues-and-pull-requests + */ + "GET /search/issues": Operation<"/search/issues", "get">; + /** + * @see https://docs.github.com/v3/search/#search-labels + */ + "GET /search/labels": Operation<"/search/labels", "get">; + /** + * @see https://docs.github.com/v3/search/#search-repositories + */ + "GET /search/repositories": Operation<"/search/repositories", "get">; + /** + * @see https://docs.github.com/v3/search/#search-topics + */ + "GET /search/topics": Operation<"/search/topics", "get", "mercy">; + /** + * @see https://docs.github.com/v3/search/#search-users + */ + "GET /search/users": Operation<"/search/users", "get">; + /** + * @see https://docs.github.com/v3/teams/#get-a-team-legacy + */ + "GET /teams/{team_id}": Operation<"/teams/{team_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussions-legacy + */ + "GET /teams/{team_id}/discussions": Operation<"/teams/{team_id}/discussions", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-comment-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations-legacy + */ + "GET /teams/{team_id}/invitations": Operation<"/teams/{team_id}/invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-team-members-legacy + */ + "GET /teams/{team_id}/members": Operation<"/teams/{team_id}/members", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-team-member-legacy + */ + "GET /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user-legacy + */ + "GET /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-team-projects-legacy + */ + "GET /teams/{team_id}/projects": Operation<"/teams/{team_id}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-project-legacy + */ + "GET /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#list-team-repositories-legacy + */ + "GET /teams/{team_id}/repos": Operation<"/teams/{team_id}/repos", "get">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy + */ + "GET /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team-legacy + */ + "GET /teams/{team_id}/team-sync/group-mappings": Operation<"/teams/{team_id}/team-sync/group-mappings", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-child-teams-legacy + */ + "GET /teams/{team_id}/teams": Operation<"/teams/{team_id}/teams", "get">; + /** + * @see https://docs.github.com/v3/users/#get-the-authenticated-user + */ + "GET /user": Operation<"/user", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user + */ + "GET /user/blocks": Operation<"/user/blocks", "get">; + /** + * @see https://docs.github.com/rest/reference/users#check-if-a-user-is-blocked-by-the-authenticated-user + */ + "GET /user/blocks/{username}": Operation<"/user/blocks/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-email-addresses-for-the-authenticated-user + */ + "GET /user/emails": Operation<"/user/emails", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-followers-of-the-authenticated-user + */ + "GET /user/followers": Operation<"/user/followers", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-the-people-the-authenticated-user-follows + */ + "GET /user/following": Operation<"/user/following", "get">; + /** + * @see https://docs.github.com/rest/reference/users#check-if-a-person-is-followed-by-the-authenticated-user + */ + "GET /user/following/{username}": Operation<"/user/following/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-the-authenticated-user + */ + "GET /user/gpg_keys": Operation<"/user/gpg_keys", "get">; + /** + * @see https://docs.github.com/rest/reference/users#get-a-gpg-key-for-the-authenticated-user + */ + "GET /user/gpg_keys/{gpg_key_id}": Operation<"/user/gpg_keys/{gpg_key_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-app-installations-accessible-to-the-user-access-token + */ + "GET /user/installations": Operation<"/user/installations", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-user-access-token + */ + "GET /user/installations/{installation_id}/repositories": Operation<"/user/installations/{installation_id}/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-your-public-repositories + */ + "GET /user/interaction-limits": Operation<"/user/interaction-limits", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user + */ + "GET /user/issues": Operation<"/user/issues", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user + */ + "GET /user/keys": Operation<"/user/keys", "get">; + /** + * @see https://docs.github.com/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user + */ + "GET /user/keys/{key_id}": Operation<"/user/keys/{key_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user + */ + "GET /user/marketplace_purchases": Operation<"/user/marketplace_purchases", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user-stubbed + */ + "GET /user/marketplace_purchases/stubbed": Operation<"/user/marketplace_purchases/stubbed", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-memberships-for-the-authenticated-user + */ + "GET /user/memberships/orgs": Operation<"/user/memberships/orgs", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#get-an-organization-membership-for-the-authenticated-user + */ + "GET /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-user-migrations + */ + "GET /user/migrations": Operation<"/user/migrations", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-a-user-migration-status + */ + "GET /user/migrations/{migration_id}": Operation<"/user/migrations/{migration_id}", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive + */ + "GET /user/migrations/{migration_id}/archive": Operation<"/user/migrations/{migration_id}/archive", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-repositories-for-a-user-migration + */ + "GET /user/migrations/{migration_id}/repositories": Operation<"/user/migrations/{migration_id}/repositories", "get", "wyandotte">; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations-for-the-authenticated-user + */ + "GET /user/orgs": Operation<"/user/orgs", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-public-email-addresses-for-the-authenticated-user + */ + "GET /user/public_emails": Operation<"/user/public_emails", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repositories-for-the-authenticated-user + */ + "GET /user/repos": Operation<"/user/repos", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations-for-the-authenticated-user + */ + "GET /user/repository_invitations": Operation<"/user/repository_invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-the-authenticated-user + */ + "GET /user/starred": Operation<"/user/starred", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#check-if-a-repository-is-starred-by-the-authenticated-user + */ + "GET /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-the-authenticated-user + */ + "GET /user/subscriptions": Operation<"/user/subscriptions", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-teams-for-the-authenticated-user + */ + "GET /user/teams": Operation<"/user/teams", "get">; + /** + * @see https://docs.github.com/v3/users/#list-users + */ + "GET /users": Operation<"/users", "get">; + /** + * @see https://docs.github.com/v3/users/#get-a-user + */ + "GET /users/{username}": Operation<"/users/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-events-for-the-authenticated-user + */ + "GET /users/{username}/events": Operation<"/users/{username}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-organization-events-for-the-authenticated-user + */ + "GET /users/{username}/events/orgs/{org}": Operation<"/users/{username}/events/orgs/{org}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-user + */ + "GET /users/{username}/events/public": Operation<"/users/{username}/events/public", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-followers-of-a-user + */ + "GET /users/{username}/followers": Operation<"/users/{username}/followers", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-the-people-a-user-follows + */ + "GET /users/{username}/following": Operation<"/users/{username}/following", "get">; + /** + * @see https://docs.github.com/rest/reference/users#check-if-a-user-follows-another-user + */ + "GET /users/{username}/following/{target_user}": Operation<"/users/{username}/following/{target_user}", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gists-for-a-user + */ + "GET /users/{username}/gists": Operation<"/users/{username}/gists", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-a-user + */ + "GET /users/{username}/gpg_keys": Operation<"/users/{username}/gpg_keys", "get">; + /** + * @see https://docs.github.com/v3/users/#get-contextual-information-for-a-user + */ + "GET /users/{username}/hovercard": Operation<"/users/{username}/hovercard", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-a-user-installation-for-the-authenticated-app + */ + "GET /users/{username}/installation": Operation<"/users/{username}/installation", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-public-keys-for-a-user + */ + "GET /users/{username}/keys": Operation<"/users/{username}/keys", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations-for-a-user + */ + "GET /users/{username}/orgs": Operation<"/users/{username}/orgs", "get">; + /** + * @see https://docs.github.com/v3/projects/#list-user-projects + */ + "GET /users/{username}/projects": Operation<"/users/{username}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/activity#list-events-received-by-the-authenticated-user + */ + "GET /users/{username}/received_events": Operation<"/users/{username}/received_events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-received-by-a-user + */ + "GET /users/{username}/received_events/public": Operation<"/users/{username}/received_events/public", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repositories-for-a-user + */ + "GET /users/{username}/repos": Operation<"/users/{username}/repos", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-a-user + */ + "GET /users/{username}/settings/billing/actions": Operation<"/users/{username}/settings/billing/actions", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-a-user + */ + "GET /users/{username}/settings/billing/packages": Operation<"/users/{username}/settings/billing/packages", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-a-user + */ + "GET /users/{username}/settings/billing/shared-storage": Operation<"/users/{username}/settings/billing/shared-storage", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-a-user + */ + "GET /users/{username}/starred": Operation<"/users/{username}/starred", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-a-user + */ + "GET /users/{username}/subscriptions": Operation<"/users/{username}/subscriptions", "get">; + /** + * @see + */ + "GET /zen": Operation<"/zen", "get">; + /** + * @see https://docs.github.com/v3/apps#update-a-webhook-configuration-for-an-app + */ + "PATCH /app/hook/config": Operation<"/app/hook/config", "patch">; + /** + * @see https://docs.github.com/rest/reference/apps#reset-a-token + */ + "PATCH /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "patch">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#update-an-existing-authorization + */ + "PATCH /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#update-a-self-hosted-runner-group-for-an-enterprise + */ + "PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "patch">; + /** + * @see https://docs.github.com/v3/gists/#update-a-gist + */ + "PATCH /gists/{gist_id}": Operation<"/gists/{gist_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/gists#update-a-gist-comment + */ + "PATCH /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/activity#mark-a-thread-as-read + */ + "PATCH /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "patch">; + /** + * @see https://docs.github.com/v3/orgs/#update-an-organization + */ + "PATCH /orgs/{org}": Operation<"/orgs/{org}", "patch">; + /** + * @see https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-organization + */ + "PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/orgs#update-an-organization-webhook + */ + "PATCH /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "patch">; + /** + * @see https://docs.github.com/v3/orgs#update-a-webhook-configuration-for-an-organization + */ + "PATCH /orgs/{org}/hooks/{hook_id}/config": Operation<"/orgs/{org}/hooks/{hook_id}/config", "patch">; + /** + * @see https://docs.github.com/v3/teams/#update-a-team + */ + "PATCH /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion + */ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-comment + */ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections + */ + "PATCH /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": Operation<"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", "patch">; + /** + * @see https://docs.github.com/rest/reference/projects#update-a-project-card + */ + "PATCH /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "patch", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#update-a-project-column + */ + "PATCH /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "patch", "inertia">; + /** + * @see https://docs.github.com/v3/projects/#update-a-project + */ + "PATCH /projects/{project_id}": Operation<"/projects/{project_id}", "patch", "inertia">; + /** + * @see https://docs.github.com/v3/repos/#update-a-repository + */ + "PATCH /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-pull-request-review-protection + */ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-status-check-potection + */ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "patch">; + /** + * @see https://docs.github.com/rest/reference/checks#update-a-check-run + */ + "PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/checks#update-repository-preferences-for-check-suites + */ + "PATCH /repos/{owner}/{repo}/check-suites/preferences": Operation<"/repos/{owner}/{repo}/check-suites/preferences", "patch">; + /** + * @see https://docs.github.com/v3/code-scanning/#upload-a-code-scanning-alert + */ + "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-commit-comment + */ + "PATCH /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/git#update-a-reference + */ + "PATCH /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-repository-webhook + */ + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "patch">; + /** + * @see https://docs.github.com/v3/repos#update-a-webhook-configuration-for-a-repository + */ + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "patch">; + /** + * @see https://docs.github.com/rest/reference/migrations#update-an-import + */ + "PATCH /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "patch">; + /** + * @see https://docs.github.com/rest/reference/migrations#map-a-commit-author + */ + "PATCH /repos/{owner}/{repo}/import/authors/{author_id}": Operation<"/repos/{owner}/{repo}/import/authors/{author_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/migrations#update-git-lfs-preference + */ + "PATCH /repos/{owner}/{repo}/import/lfs": Operation<"/repos/{owner}/{repo}/import/lfs", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-repository-invitation + */ + "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/issues#update-an-issue-comment + */ + "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/v3/issues/#update-an-issue + */ + "PATCH /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/issues#update-a-label + */ + "PATCH /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "patch">; + /** + * @see https://docs.github.com/rest/reference/issues#update-a-milestone + */ + "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/pulls#update-a-review-comment-for-a-pull-request + */ + "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/v3/pulls/#update-a-pull-request + */ + "PATCH /repos/{owner}/{repo}/pulls/{pull_number}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-release-asset + */ + "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-release + */ + "PATCH /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-group + */ + "PATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-user + */ + "PATCH /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "patch">; + /** + * @see https://docs.github.com/v3/scim/#update-an-attribute-for-a-scim-user + */ + "PATCH /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "patch">; + /** + * @see https://docs.github.com/v3/teams/#update-a-team-legacy + */ + "PATCH /teams/{team_id}": Operation<"/teams/{team_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-legacy + */ + "PATCH /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-comment-legacy + */ + "PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections-legacy + */ + "PATCH /teams/{team_id}/team-sync/group-mappings": Operation<"/teams/{team_id}/team-sync/group-mappings", "patch">; + /** + * @see https://docs.github.com/v3/users/#update-the-authenticated-user + */ + "PATCH /user": Operation<"/user", "patch">; + /** + * @see https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user + */ + "PATCH /user/email/visibility": Operation<"/user/email/visibility", "patch">; + /** + * @see https://docs.github.com/rest/reference/orgs#update-an-organization-membership-for-the-authenticated-user + */ + "PATCH /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#accept-a-repository-invitation + */ + "PATCH /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "patch">; + /** + * @see https://docs.github.com/v3/apps/#create-a-github-app-from-a-manifest + */ + "POST /app-manifests/{code}/conversions": Operation<"/app-manifests/{code}/conversions", "post">; + /** + * @see https://docs.github.com/v3/apps/#create-an-installation-access-token-for-an-app + */ + "POST /app/installations/{installation_id}/access_tokens": Operation<"/app/installations/{installation_id}/access_tokens", "post">; + /** + * @see https://docs.github.com/rest/reference/apps#check-a-token + */ + "POST /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "post">; + /** + * @see https://docs.github.com/rest/reference/apps#reset-an-authorization + */ + "POST /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "post">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization + */ + "POST /authorizations": Operation<"/authorizations", "post">; + /** + * @see https://docs.github.com/rest/reference/apps#create-a-content-attachment + */ + "POST /content_references/{content_reference_id}/attachments": Operation<"/content_references/{content_reference_id}/attachments", "post", "corsair">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#create-self-hosted-runner-group-for-an-enterprise + */ + "POST /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "post">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#create-a-registration-token-for-an-enterprise + */ + "POST /enterprises/{enterprise}/actions/runners/registration-token": Operation<"/enterprises/{enterprise}/actions/runners/registration-token", "post">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#create-a-remove-token-for-an-enterprise + */ + "POST /enterprises/{enterprise}/actions/runners/remove-token": Operation<"/enterprises/{enterprise}/actions/runners/remove-token", "post">; + /** + * @see https://docs.github.com/v3/gists/#create-a-gist + */ + "POST /gists": Operation<"/gists", "post">; + /** + * @see https://docs.github.com/rest/reference/gists#create-a-gist-comment + */ + "POST /gists/{gist_id}/comments": Operation<"/gists/{gist_id}/comments", "post">; + /** + * @see https://docs.github.com/v3/gists/#fork-a-gist + */ + "POST /gists/{gist_id}/forks": Operation<"/gists/{gist_id}/forks", "post">; + /** + * @see https://docs.github.com/v3/markdown/#render-a-markdown-document + */ + "POST /markdown": Operation<"/markdown", "post">; + /** + * @see https://docs.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode + */ + "POST /markdown/raw": Operation<"/markdown/raw", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-self-hosted-runner-group-for-an-organization + */ + "POST /orgs/{org}/actions/runner-groups": Operation<"/orgs/{org}/actions/runner-groups", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-organization + */ + "POST /orgs/{org}/actions/runners/registration-token": Operation<"/orgs/{org}/actions/runners/registration-token", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-an-organization + */ + "POST /orgs/{org}/actions/runners/remove-token": Operation<"/orgs/{org}/actions/runners/remove-token", "post">; + /** + * @see https://docs.github.com/rest/reference/orgs#create-an-organization-webhook + */ + "POST /orgs/{org}/hooks": Operation<"/orgs/{org}/hooks", "post">; + /** + * @see https://docs.github.com/rest/reference/orgs#ping-an-organization-webhook + */ + "POST /orgs/{org}/hooks/{hook_id}/pings": Operation<"/orgs/{org}/hooks/{hook_id}/pings", "post">; + /** + * @see https://docs.github.com/rest/reference/orgs#create-an-organization-invitation + */ + "POST /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "post">; + /** + * @see https://docs.github.com/rest/reference/migrations#start-an-organization-migration + */ + "POST /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "post">; + /** + * @see https://docs.github.com/v3/projects/#create-an-organization-project + */ + "POST /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "post", "inertia">; + /** + * @see https://docs.github.com/v3/repos/#create-an-organization-repository + */ + "POST /orgs/{org}/repos": Operation<"/orgs/{org}/repos", "post">; + /** + * @see https://docs.github.com/v3/teams/#create-a-team + */ + "POST /orgs/{org}/teams": Operation<"/orgs/{org}/teams", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion + */ + "POST /orgs/{org}/teams/{team_slug}/discussions": Operation<"/orgs/{org}/teams/{team_slug}/discussions", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-comment + */ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment + */ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion + */ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/projects#move-a-project-card + */ + "POST /projects/columns/cards/{card_id}/moves": Operation<"/projects/columns/cards/{card_id}/moves", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#create-a-project-card + */ + "POST /projects/columns/{column_id}/cards": Operation<"/projects/columns/{column_id}/cards", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#move-a-project-column + */ + "POST /projects/columns/{column_id}/moves": Operation<"/projects/columns/{column_id}/moves", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#create-a-project-column + */ + "POST /projects/{project_id}/columns": Operation<"/projects/{project_id}/columns", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-a-repository + */ + "POST /repos/{owner}/{repo}/actions/runners/registration-token": Operation<"/repos/{owner}/{repo}/actions/runners/registration-token", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-a-repository + */ + "POST /repos/{owner}/{repo}/actions/runners/remove-token": Operation<"/repos/{owner}/{repo}/actions/runners/remove-token", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#cancel-a-workflow-run + */ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/cancel", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#re-run-a-workflow + */ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event + */ + "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#set-admin-branch-protection + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-commit-signature-protection + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "post", "zzzax">; + /** + * @see https://docs.github.com/rest/reference/repos#add-status-check-contexts + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#add-app-access-restrictions + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#add-team-access-restrictions + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#add-user-access-restrictions + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "post">; + /** + * @see https://docs.github.com/rest/reference/checks#create-a-check-run + */ + "POST /repos/{owner}/{repo}/check-runs": Operation<"/repos/{owner}/{repo}/check-runs", "post">; + /** + * @see https://docs.github.com/rest/reference/checks#create-a-check-suite + */ + "POST /repos/{owner}/{repo}/check-suites": Operation<"/repos/{owner}/{repo}/check-suites", "post">; + /** + * @see https://docs.github.com/rest/reference/checks#rerequest-a-check-suite + */ + "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest", "post">; + /** + * @see https://docs.github.com/v3/code-scanning/#upload-a-sarif-analysis + */ + "POST /repos/{owner}/{repo}/code-scanning/sarifs": Operation<"/repos/{owner}/{repo}/code-scanning/sarifs", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-commit-comment + */ + "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-commit-comment + */ + "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-deployment + */ + "POST /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-deployment-status + */ + "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "post">; + /** + * @see https://docs.github.com/v3/repos/#create-a-repository-dispatch-event + */ + "POST /repos/{owner}/{repo}/dispatches": Operation<"/repos/{owner}/{repo}/dispatches", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-fork + */ + "POST /repos/{owner}/{repo}/forks": Operation<"/repos/{owner}/{repo}/forks", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-blob + */ + "POST /repos/{owner}/{repo}/git/blobs": Operation<"/repos/{owner}/{repo}/git/blobs", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-commit + */ + "POST /repos/{owner}/{repo}/git/commits": Operation<"/repos/{owner}/{repo}/git/commits", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-reference + */ + "POST /repos/{owner}/{repo}/git/refs": Operation<"/repos/{owner}/{repo}/git/refs", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-tag-object + */ + "POST /repos/{owner}/{repo}/git/tags": Operation<"/repos/{owner}/{repo}/git/tags", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-tree + */ + "POST /repos/{owner}/{repo}/git/trees": Operation<"/repos/{owner}/{repo}/git/trees", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-repository-webhook + */ + "POST /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#ping-a-repository-webhook + */ + "POST /repos/{owner}/{repo}/hooks/{hook_id}/pings": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/pings", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#test-the-push-repository-webhook + */ + "POST /repos/{owner}/{repo}/hooks/{hook_id}/tests": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/tests", "post">; + /** + * @see https://docs.github.com/v3/issues/#create-an-issue + */ + "POST /repos/{owner}/{repo}/issues": Operation<"/repos/{owner}/{repo}/issues", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-an-issue-comment + */ + "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#add-assignees-to-an-issue + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#create-an-issue-comment + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/comments": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/comments", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#add-labels-to-an-issue + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-an-issue + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-deploy-key + */ + "POST /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#create-a-label + */ + "POST /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#merge-a-branch + */ + "POST /repos/{owner}/{repo}/merges": Operation<"/repos/{owner}/{repo}/merges", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#create-a-milestone + */ + "POST /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-github-pages-site + */ + "POST /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "post", "switcheroo">; + /** + * @see https://docs.github.com/rest/reference/repos#request-a-github-pages-build + */ + "POST /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "post">; + /** + * @see https://docs.github.com/v3/projects/#create-a-repository-project + */ + "POST /repos/{owner}/{repo}/projects": Operation<"/repos/{owner}/{repo}/projects", "post", "inertia">; + /** + * @see https://docs.github.com/v3/pulls/#create-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls": Operation<"/repos/{owner}/{repo}/pulls", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment + */ + "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/pulls#create-a-review-comment-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#create-a-reply-for-a-review-comment + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#create-a-review-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#submit-a-review-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-release + */ + "POST /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-commit-status + */ + "POST /repos/{owner}/{repo}/statuses/{sha}": Operation<"/repos/{owner}/{repo}/statuses/{sha}", "post">; + /** + * @see https://docs.github.com/v3/repos/#transfer-a-repository + */ + "POST /repos/{owner}/{repo}/transfer": Operation<"/repos/{owner}/{repo}/transfer", "post">; + /** + * @see https://docs.github.com/v3/repos/#create-a-repository-using-a-template + */ + "POST /repos/{template_owner}/{template_repo}/generate": Operation<"/repos/{template_owner}/{template_repo}/generate", "post", "baptiste">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#provision-a-scim-enterprise-group-and-invite-users + */ + "POST /scim/v2/enterprises/{enterprise}/Groups": Operation<"/scim/v2/enterprises/{enterprise}/Groups", "post">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#provision-and-invite-a-scim-enterprise-user + */ + "POST /scim/v2/enterprises/{enterprise}/Users": Operation<"/scim/v2/enterprises/{enterprise}/Users", "post">; + /** + * @see https://docs.github.com/v3/scim/#provision-and-invite-a-scim-user + */ + "POST /scim/v2/organizations/{org}/Users": Operation<"/scim/v2/organizations/{org}/Users", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-legacy + */ + "POST /teams/{team_id}/discussions": Operation<"/teams/{team_id}/discussions", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-comment-legacy + */ + "POST /teams/{team_id}/discussions/{discussion_number}/comments": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy + */ + "POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy + */ + "POST /teams/{team_id}/discussions/{discussion_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/users#add-an-email-address-for-the-authenticated-user + */ + "POST /user/emails": Operation<"/user/emails", "post">; + /** + * @see https://docs.github.com/rest/reference/users#create-a-gpg-key-for-the-authenticated-user + */ + "POST /user/gpg_keys": Operation<"/user/gpg_keys", "post">; + /** + * @see https://docs.github.com/rest/reference/users#create-a-public-ssh-key-for-the-authenticated-user + */ + "POST /user/keys": Operation<"/user/keys", "post">; + /** + * @see https://docs.github.com/rest/reference/migrations#start-a-user-migration + */ + "POST /user/migrations": Operation<"/user/migrations", "post">; + /** + * @see https://docs.github.com/v3/projects/#create-a-user-project + */ + "POST /user/projects": Operation<"/user/projects", "post", "inertia">; + /** + * @see https://docs.github.com/v3/repos/#create-a-repository-for-the-authenticated-user + */ + "POST /user/repos": Operation<"/user/repos", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#upload-a-release-asset + */ + "POST {origin}/repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}": Operation<"/repos/{owner}/{repo}/releases/{release_id}/assets", "post">; + /** + * @see https://docs.github.com/v3/apps/#suspend-an-app-installation + */ + "PUT /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "put">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app + */ + "PUT /authorizations/clients/{client_id}": Operation<"/authorizations/clients/{client_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app-and-fingerprint + */ + "PUT /authorizations/clients/{client_id}/{fingerprint}": Operation<"/authorizations/clients/{client_id}/{fingerprint}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-github-actions-permissions-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-selected-organizations-enabled-for-github-actions-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#enable-a-selected-organization-for-github-actions-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-allowed-actions-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-self-hosted-runners-in-a-group-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#add-a-self-hosted-runner-to-a-group-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">; + /** + * @see https://docs.github.com/v3/gists/#star-a-gist + */ + "PUT /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#mark-notifications-as-read + */ + "PUT /notifications": Operation<"/notifications", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#set-a-thread-subscription + */ + "PUT /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-organization + */ + "PUT /orgs/{org}/actions/permissions": Operation<"/orgs/{org}/actions/permissions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-enabled-for-github-actions-in-an-organization + */ + "PUT /orgs/{org}/actions/permissions/repositories": Operation<"/orgs/{org}/actions/permissions/repositories", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#enable-a-selected-repository-for-github-actions-in-an-organization + */ + "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-an-organization + */ + "PUT /orgs/{org}/actions/permissions/selected-actions": Operation<"/orgs/{org}/actions/permissions/selected-actions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#add-repository-acess-to-a-self-hosted-runner-group-in-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret + */ + "PUT /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret + */ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#add-selected-repository-to-an-organization-secret + */ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#block-a-user-from-an-organization + */ + "PUT /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-an-organization + */ + "PUT /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#set-organization-membership-for-a-user + */ + "PUT /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#convert-an-organization-member-to-outside-collaborator + */ + "PUT /orgs/{org}/outside_collaborators/{username}": Operation<"/orgs/{org}/outside_collaborators/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#set-public-organization-membership-for-the-authenticated-user + */ + "PUT /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user + */ + "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "put">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-project-permissions + */ + "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "put", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions + */ + "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "put">; + /** + * @see https://docs.github.com/rest/reference/projects#add-project-collaborator + */ + "PUT /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "put", "inertia">; + /** + * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-a-repository + */ + "PUT /repos/{owner}/{repo}/actions/permissions": Operation<"/repos/{owner}/{repo}/actions/permissions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-a-repository + */ + "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions": Operation<"/repos/{owner}/{repo}/actions/permissions/selected-actions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#create-or-update-a-repository-secret + */ + "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#disable-a-workflow + */ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#enable-a-workflow + */ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable", "put">; + /** + * @see https://docs.github.com/v3/repos/#enable-automated-security-fixes + */ + "PUT /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "put", "london">; + /** + * @see https://docs.github.com/rest/reference/repos#update-branch-protection + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-status-check-contexts + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-app-access-restrictions + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-team-access-restrictions + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-user-access-restrictions + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#add-a-repository-collaborator + */ + "PUT /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#create-or-update-file-contents + */ + "PUT /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "put">; + /** + * @see https://docs.github.com/rest/reference/migrations#start-an-import + */ + "PUT /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "put">; + /** + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-a-repository + */ + "PUT /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "put">; + /** + * @see https://docs.github.com/rest/reference/issues#set-labels-for-an-issue + */ + "PUT /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "put">; + /** + * @see https://docs.github.com/v3/issues/#lock-an-issue + */ + "PUT /repos/{owner}/{repo}/issues/{issue_number}/lock": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/lock", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#mark-repository-notifications-as-read + */ + "PUT /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#update-information-about-a-github-pages-site + */ + "PUT /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "put">; + /** + * @see https://docs.github.com/v3/pulls/#merge-a-pull-request + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "put">; + /** + * @see https://docs.github.com/rest/reference/pulls#update-a-review-for-a-pull-request + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/pulls#dismiss-a-review-for-a-pull-request + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals", "put">; + /** + * @see https://docs.github.com/v3/pulls/#update-a-pull-request-branch + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/update-branch", "put", "lydian">; + /** + * @see https://docs.github.com/rest/reference/activity#set-a-repository-subscription + */ + "PUT /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "put">; + /** + * @see https://docs.github.com/v3/repos/#replace-all-repository-topics + */ + "PUT /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "put", "mercy">; + /** + * @see https://docs.github.com/v3/repos/#enable-vulnerability-alerts + */ + "PUT /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "put", "dorian">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-group + */ + "PUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-user + */ + "PUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "put">; + /** + * @see https://docs.github.com/v3/scim/#set-scim-information-for-a-provisioned-user + */ + "PUT /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/teams#add-team-member-legacy + */ + "PUT /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user-legacy + */ + "PUT /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "put">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-project-permissions-legacy + */ + "PUT /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "put", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy + */ + "PUT /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "put">; + /** + * @see https://docs.github.com/rest/reference/users#block-a-user + */ + "PUT /user/blocks/{username}": Operation<"/user/blocks/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/users#follow-a-user + */ + "PUT /user/following/{username}": Operation<"/user/following/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/apps#add-a-repository-to-an-app-installation + */ + "PUT /user/installations/{installation_id}/repositories/{repository_id}": Operation<"/user/installations/{installation_id}/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-your-public-repositories + */ + "PUT /user/interaction-limits": Operation<"/user/interaction-limits", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#star-a-repository-for-the-authenticated-user + */ + "PUT /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "put">; +} +export {}; diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/index.d.ts b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/index.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/index.d.ts rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-types/index.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-web/index.js b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-web/index.js similarity index 67% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-web/index.js rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-web/index.js index 3c0cafc19..ce27278ed 100644 --- a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-web/index.js +++ b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-web/index.js @@ -1,4 +1,4 @@ -const VERSION = "2.16.2"; +const VERSION = "6.0.3"; export { VERSION }; //# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-web/index.js.map b/node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-web/index.js.map similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-web/index.js.map rename to node_modules/@octokit/auth-token/node_modules/@octokit/types/dist-web/index.js.map diff --git a/node_modules/@octokit/auth-token/node_modules/@octokit/types/package.json b/node_modules/@octokit/auth-token/node_modules/@octokit/types/package.json new file mode 100644 index 000000000..1176062e4 --- /dev/null +++ b/node_modules/@octokit/auth-token/node_modules/@octokit/types/package.json @@ -0,0 +1,51 @@ +{ + "name": "@octokit/types", + "description": "Shared TypeScript definitions for Octokit projects", + "version": "6.0.3", + "license": "MIT", + "files": [ + "dist-*/", + "bin/" + ], + "pika": true, + "sideEffects": false, + "keywords": [ + "github", + "api", + "sdk", + "toolkit", + "typescript" + ], + "repository": "https://github.com/octokit/types.ts", + "dependencies": { + "@octokit/openapi-types": "^1.2.0", + "@types/node": ">= 8" + }, + "devDependencies": { + "@octokit/graphql": "^4.2.2", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.9.0", + "@pika/plugin-build-web": "^0.9.0", + "@pika/plugin-ts-standard-pkg": "^0.9.0", + "handlebars": "^4.7.6", + "json-schema-to-typescript": "^10.0.0", + "lodash.set": "^4.3.2", + "npm-run-all": "^4.1.5", + "openapi-typescript": "^2.3.1", + "pascal-case": "^3.1.1", + "prettier": "^2.0.0", + "semantic-release": "^17.0.0", + "semantic-release-plugin-update-version-in-files": "^1.0.0", + "sort-keys": "^4.0.0", + "string-to-jsdoc-comment": "^1.0.0", + "typedoc": "^0.19.0", + "typescript": "^4.0.2" + }, + "publishConfig": { + "access": "public" + }, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "main": "dist-node/index.js", + "module": "dist-web/index.js" +} diff --git a/node_modules/@octokit/auth-token/package.json b/node_modules/@octokit/auth-token/package.json index c0bb27f26..9a11df7dd 100644 --- a/node_modules/@octokit/auth-token/package.json +++ b/node_modules/@octokit/auth-token/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/auth-token", "description": "GitHub API token authentication for browsers and Node.js", - "version": "2.4.2", + "version": "2.4.4", "license": "MIT", "files": [ "dist-*/", @@ -21,10 +21,10 @@ }, "repository": "https://github.com/octokit/auth-token.js", "dependencies": { - "@octokit/types": "^5.0.0" + "@octokit/types": "^6.0.0" }, "devDependencies": { - "@octokit/core": "^2.2.0", + "@octokit/core": "^3.0.0", "@octokit/request": "^5.3.0", "@pika/pack": "^0.5.0", "@pika/plugin-build-node": "^0.9.0", diff --git a/node_modules/@octokit/core/README.md b/node_modules/@octokit/core/README.md index 8eb966c57..79639cb89 100644 --- a/node_modules/@octokit/core/README.md +++ b/node_modules/@octokit/core/README.md @@ -3,7 +3,7 @@ > Extendable client for GitHub's REST & GraphQL APIs [![@latest](https://img.shields.io/npm/v/@octokit/core.svg)](https://www.npmjs.com/package/@octokit/core) -[![Build Status](https://github.com/octokit/core.js/workflows/Test/badge.svg)](https://github.com/octokit/core.js/actions?query=workflow%3ATest) +[![Build Status](https://github.com/octokit/core.js/workflows/Test/badge.svg)](https://github.com/octokit/core.js/actions?query=workflow%3ATest+branch%3Amaster) @@ -21,7 +21,7 @@ -If you need a minimalistic library to utilize GitHub's [REST API](https://developer.github.com/v3/) and [GraphQL API](https://developer.github.com/v4/) which you can extend with plugins as needed, than `@octokit/core` is a great starting point. +If you need a minimalistic library to utilize GitHub's [REST API](https://developer.github.com/v3/) and [GraphQL API](https://developer.github.com/v4/) which you can extend with plugins as needed, then `@octokit/core` is a great starting point. If you don't need the Plugin API then using [`@octokit/request`](https://github.com/octokit/request.js/) or [`@octokit/graphql`](https://github.com/octokit/graphql.js/) directly is a good alternative. @@ -32,11 +32,11 @@ If you don't need the Plugin API then using [`@octokit/request`](https://github. Browsers -Load @octokit/core directly from cdn.pika.dev +Load @octokit/core directly from cdn.skypack.dev ```html ``` @@ -114,7 +114,7 @@ See [`@octokit/graphql`](https://github.com/octokit/graphql.js) for full documen Function - Defaults to @octokit/auth-token. See Authentication below for examples. + Defaults to @octokit/auth-token. See Authentication below for examples. @@ -125,7 +125,7 @@ See [`@octokit/graphql`](https://github.com/octokit/graphql.js) for full documen String or Object - See Authentication below for examples. + See Authentication below for examples. @@ -250,6 +250,38 @@ const octokit1 = new MyOctokit(); const octokit2 = new MyOctokit(); ``` +If you pass additional options to your new constructor, the options will be merged shallowly. + +```js +const MyOctokit = Octokit.defaults({ + foo: { + opt1: 1, + }, +}); +const octokit = new MyOctokit({ + foo: { + opt2: 1, + }, +}); +// options will be { foo: { opt2: 1 }} +``` + +If you need a deep or conditional merge, you can pass a function instead. + +```js +const MyOctokit = Octokit.defaults((options) => { + return { + foo: Object.assign({}, options.foo, { opt2: 1 }), + }; +}); +const octokit = new MyOctokit({ + foo: { opt2: 1 }, +}); +// options will be { foo: { opt1: 1, opt2: 1 }} +``` + +Be careful about mutating the `options` object in the `Octokit.defaults` callback, as it can have unforeseen consequences. + ## Authentication Authentication is optional for some REST API endpoints accessing public data, but is required for GraphQL queries. Using authentication also increases your [API rate limit](https://developer.github.com/v3/#rate-limiting). @@ -275,7 +307,7 @@ import { createAppAuth } from "@octokit/auth-app"; const appOctokit = new Octokit({ authStrategy: createAppAuth, auth: { - id: 123, + appId: 123, privateKey: process.env.PRIVATE_KEY, }, }); @@ -389,8 +421,8 @@ You can build your own Octokit class with preset default options and plugins. In ```js const { Octokit } = require("@octokit/core"); const MyActionOctokit = Octokit.plugin( - require("@octokit/plugin-paginate"), - require("@octokit/plugin-throttle"), + require("@octokit/plugin-paginate-rest"), + require("@octokit/plugin-throttling"), require("@octokit/plugin-retry") ).defaults({ authStrategy: require("@octokit/auth-action"), diff --git a/node_modules/@octokit/core/dist-node/index.js b/node_modules/@octokit/core/dist-node/index.js index 5b3bb74e3..6b3b4010b 100644 --- a/node_modules/@octokit/core/dist-node/index.js +++ b/node_modules/@octokit/core/dist-node/index.js @@ -8,56 +8,43 @@ var request = require('@octokit/request'); var graphql = require('@octokit/graphql'); var authToken = require('@octokit/auth-token'); -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; } - return obj; + return target; } -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } + var target = _objectWithoutPropertiesLoose(source, excluded); - return keys; -} + var key, i; -function _objectSpread2(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - if (i % 2) { - ownKeys(Object(source), true).forEach(function (key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; } } return target; } -const VERSION = "2.5.4"; +const VERSION = "3.2.3"; class Octokit { constructor(options = {}) { @@ -89,9 +76,7 @@ class Octokit { } this.request = request.request.defaults(requestDefaults); - this.graphql = graphql.withCustomRequest(this.request).defaults(_objectSpread2(_objectSpread2({}, requestDefaults), {}, { - baseUrl: requestDefaults.baseUrl.replace(/\/api\/v3$/, "/api") - })); + this.graphql = graphql.withCustomRequest(this.request).defaults(requestDefaults); this.log = Object.assign({ debug: () => {}, info: () => {}, @@ -99,7 +84,7 @@ class Octokit { error: console.error.bind(console) }, options.log); this.hook = hook; // (1) If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance - // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registred. + // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registered. // (2) If only `options.auth` is set, use the default token authentication strategy. // (3) If `options.authStrategy` is set then use it and pass in `options.auth`. Always pass own request as many strategies accept a custom request instance. // TODO: type `options.auth` based on `options.authStrategy`. @@ -118,8 +103,21 @@ class Octokit { this.auth = auth; } } else { - const auth = options.authStrategy(Object.assign({ - request: this.request + const { + authStrategy + } = options, + otherOptions = _objectWithoutProperties(options, ["authStrategy"]); + + const auth = authStrategy(Object.assign({ + request: this.request, + log: this.log, + // we pass the current octokit instance as well as its constructor options + // to allow for authentication strategies that return a new octokit instance + // that shares the same internal state as the current one. The original + // requirement for this was the "event-octokit" authentication strategy + // of https://github.com/probot/octokit-auth-probot. + octokit: this, + octokitOptions: otherOptions }, options.auth)); // @ts-ignore ¯\_(ツ)_/¯ hook.wrap("request", auth.hook); @@ -138,6 +136,12 @@ class Octokit { const OctokitWithDefaults = class extends this { constructor(...args) { const options = args[0] || {}; + + if (typeof defaults === "function") { + super(defaults(options)); + return; + } + super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent ? { userAgent: `${options.userAgent} ${defaults.userAgent}` } : null)); @@ -154,15 +158,10 @@ class Octokit { */ - static plugin(p1, ...p2) { + static plugin(...newPlugins) { var _a; - if (p1 instanceof Array) { - console.warn(["Passing an array of plugins to Octokit.plugin() has been deprecated.", "Instead of:", " Octokit.plugin([plugin1, plugin2, ...])", "Use:", " Octokit.plugin(plugin1, plugin2, ...)"].join("\n")); - } - const currentPlugins = this.plugins; - let newPlugins = [...(p1 instanceof Array ? p1 : [p1]), ...p2]; const NewOctokit = (_a = class extends this {}, _a.plugins = currentPlugins.concat(newPlugins.filter(plugin => !currentPlugins.includes(plugin))), _a); return NewOctokit; } diff --git a/node_modules/@octokit/core/dist-node/index.js.map b/node_modules/@octokit/core/dist-node/index.js.map index b7000caed..76d656cc7 100644 --- a/node_modules/@octokit/core/dist-node/index.js.map +++ b/node_modules/@octokit/core/dist-node/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"2.5.4\";\n","import { getUserAgent } from \"universal-user-agent\";\nimport { Collection } from \"before-after-hook\";\nimport { request } from \"@octokit/request\";\nimport { withCustomRequest } from \"@octokit/graphql\";\nimport { createTokenAuth } from \"@octokit/auth-token\";\nimport { VERSION } from \"./version\";\nexport class Octokit {\n constructor(options = {}) {\n const hook = new Collection();\n const requestDefaults = {\n baseUrl: request.endpoint.DEFAULTS.baseUrl,\n headers: {},\n request: Object.assign({}, options.request, {\n hook: hook.bind(null, \"request\"),\n }),\n mediaType: {\n previews: [],\n format: \"\",\n },\n };\n // prepend default user agent with `options.userAgent` if set\n requestDefaults.headers[\"user-agent\"] = [\n options.userAgent,\n `octokit-core.js/${VERSION} ${getUserAgent()}`,\n ]\n .filter(Boolean)\n .join(\" \");\n if (options.baseUrl) {\n requestDefaults.baseUrl = options.baseUrl;\n }\n if (options.previews) {\n requestDefaults.mediaType.previews = options.previews;\n }\n if (options.timeZone) {\n requestDefaults.headers[\"time-zone\"] = options.timeZone;\n }\n this.request = request.defaults(requestDefaults);\n this.graphql = withCustomRequest(this.request).defaults({\n ...requestDefaults,\n baseUrl: requestDefaults.baseUrl.replace(/\\/api\\/v3$/, \"/api\"),\n });\n this.log = Object.assign({\n debug: () => { },\n info: () => { },\n warn: console.warn.bind(console),\n error: console.error.bind(console),\n }, options.log);\n this.hook = hook;\n // (1) If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance\n // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registred.\n // (2) If only `options.auth` is set, use the default token authentication strategy.\n // (3) If `options.authStrategy` is set then use it and pass in `options.auth`. Always pass own request as many strategies accept a custom request instance.\n // TODO: type `options.auth` based on `options.authStrategy`.\n if (!options.authStrategy) {\n if (!options.auth) {\n // (1)\n this.auth = async () => ({\n type: \"unauthenticated\",\n });\n }\n else {\n // (2)\n const auth = createTokenAuth(options.auth);\n // @ts-ignore ¯\\_(ツ)_/¯\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n }\n else {\n const auth = options.authStrategy(Object.assign({\n request: this.request,\n }, options.auth));\n // @ts-ignore ¯\\_(ツ)_/¯\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n // apply plugins\n // https://stackoverflow.com/a/16345172\n const classConstructor = this.constructor;\n classConstructor.plugins.forEach((plugin) => {\n Object.assign(this, plugin(this, options));\n });\n }\n static defaults(defaults) {\n const OctokitWithDefaults = class extends this {\n constructor(...args) {\n const options = args[0] || {};\n super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent\n ? {\n userAgent: `${options.userAgent} ${defaults.userAgent}`,\n }\n : null));\n }\n };\n return OctokitWithDefaults;\n }\n /**\n * Attach a plugin (or many) to your Octokit instance.\n *\n * @example\n * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)\n */\n static plugin(p1, ...p2) {\n var _a;\n if (p1 instanceof Array) {\n console.warn([\n \"Passing an array of plugins to Octokit.plugin() has been deprecated.\",\n \"Instead of:\",\n \" Octokit.plugin([plugin1, plugin2, ...])\",\n \"Use:\",\n \" Octokit.plugin(plugin1, plugin2, ...)\",\n ].join(\"\\n\"));\n }\n const currentPlugins = this.plugins;\n let newPlugins = [\n ...(p1 instanceof Array\n ? p1\n : [p1]),\n ...p2,\n ];\n const NewOctokit = (_a = class extends this {\n },\n _a.plugins = currentPlugins.concat(newPlugins.filter((plugin) => !currentPlugins.includes(plugin))),\n _a);\n return NewOctokit;\n }\n}\nOctokit.VERSION = VERSION;\nOctokit.plugins = [];\n"],"names":["VERSION","Octokit","constructor","options","hook","Collection","requestDefaults","baseUrl","request","endpoint","DEFAULTS","headers","Object","assign","bind","mediaType","previews","format","userAgent","getUserAgent","filter","Boolean","join","timeZone","defaults","graphql","withCustomRequest","replace","log","debug","info","warn","console","error","authStrategy","auth","type","createTokenAuth","wrap","classConstructor","plugins","forEach","plugin","OctokitWithDefaults","args","p1","p2","_a","Array","currentPlugins","newPlugins","NewOctokit","concat","includes"],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"3.2.3\";\n","import { getUserAgent } from \"universal-user-agent\";\nimport { Collection } from \"before-after-hook\";\nimport { request } from \"@octokit/request\";\nimport { withCustomRequest } from \"@octokit/graphql\";\nimport { createTokenAuth } from \"@octokit/auth-token\";\nimport { VERSION } from \"./version\";\nexport class Octokit {\n constructor(options = {}) {\n const hook = new Collection();\n const requestDefaults = {\n baseUrl: request.endpoint.DEFAULTS.baseUrl,\n headers: {},\n request: Object.assign({}, options.request, {\n hook: hook.bind(null, \"request\"),\n }),\n mediaType: {\n previews: [],\n format: \"\",\n },\n };\n // prepend default user agent with `options.userAgent` if set\n requestDefaults.headers[\"user-agent\"] = [\n options.userAgent,\n `octokit-core.js/${VERSION} ${getUserAgent()}`,\n ]\n .filter(Boolean)\n .join(\" \");\n if (options.baseUrl) {\n requestDefaults.baseUrl = options.baseUrl;\n }\n if (options.previews) {\n requestDefaults.mediaType.previews = options.previews;\n }\n if (options.timeZone) {\n requestDefaults.headers[\"time-zone\"] = options.timeZone;\n }\n this.request = request.defaults(requestDefaults);\n this.graphql = withCustomRequest(this.request).defaults(requestDefaults);\n this.log = Object.assign({\n debug: () => { },\n info: () => { },\n warn: console.warn.bind(console),\n error: console.error.bind(console),\n }, options.log);\n this.hook = hook;\n // (1) If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance\n // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registered.\n // (2) If only `options.auth` is set, use the default token authentication strategy.\n // (3) If `options.authStrategy` is set then use it and pass in `options.auth`. Always pass own request as many strategies accept a custom request instance.\n // TODO: type `options.auth` based on `options.authStrategy`.\n if (!options.authStrategy) {\n if (!options.auth) {\n // (1)\n this.auth = async () => ({\n type: \"unauthenticated\",\n });\n }\n else {\n // (2)\n const auth = createTokenAuth(options.auth);\n // @ts-ignore ¯\\_(ツ)_/¯\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n }\n else {\n const { authStrategy, ...otherOptions } = options;\n const auth = authStrategy(Object.assign({\n request: this.request,\n log: this.log,\n // we pass the current octokit instance as well as its constructor options\n // to allow for authentication strategies that return a new octokit instance\n // that shares the same internal state as the current one. The original\n // requirement for this was the \"event-octokit\" authentication strategy\n // of https://github.com/probot/octokit-auth-probot.\n octokit: this,\n octokitOptions: otherOptions,\n }, options.auth));\n // @ts-ignore ¯\\_(ツ)_/¯\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n // apply plugins\n // https://stackoverflow.com/a/16345172\n const classConstructor = this.constructor;\n classConstructor.plugins.forEach((plugin) => {\n Object.assign(this, plugin(this, options));\n });\n }\n static defaults(defaults) {\n const OctokitWithDefaults = class extends this {\n constructor(...args) {\n const options = args[0] || {};\n if (typeof defaults === \"function\") {\n super(defaults(options));\n return;\n }\n super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent\n ? {\n userAgent: `${options.userAgent} ${defaults.userAgent}`,\n }\n : null));\n }\n };\n return OctokitWithDefaults;\n }\n /**\n * Attach a plugin (or many) to your Octokit instance.\n *\n * @example\n * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)\n */\n static plugin(...newPlugins) {\n var _a;\n const currentPlugins = this.plugins;\n const NewOctokit = (_a = class extends this {\n },\n _a.plugins = currentPlugins.concat(newPlugins.filter((plugin) => !currentPlugins.includes(plugin))),\n _a);\n return NewOctokit;\n }\n}\nOctokit.VERSION = VERSION;\nOctokit.plugins = [];\n"],"names":["VERSION","Octokit","constructor","options","hook","Collection","requestDefaults","baseUrl","request","endpoint","DEFAULTS","headers","Object","assign","bind","mediaType","previews","format","userAgent","getUserAgent","filter","Boolean","join","timeZone","defaults","graphql","withCustomRequest","log","debug","info","warn","console","error","authStrategy","auth","type","createTokenAuth","wrap","otherOptions","octokit","octokitOptions","classConstructor","plugins","forEach","plugin","OctokitWithDefaults","args","newPlugins","_a","currentPlugins","NewOctokit","concat","includes"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/core/dist-src/index.js b/node_modules/@octokit/core/dist-src/index.js index 6294e9671..75fd2ff54 100644 --- a/node_modules/@octokit/core/dist-src/index.js +++ b/node_modules/@octokit/core/dist-src/index.js @@ -35,10 +35,7 @@ export class Octokit { requestDefaults.headers["time-zone"] = options.timeZone; } this.request = request.defaults(requestDefaults); - this.graphql = withCustomRequest(this.request).defaults({ - ...requestDefaults, - baseUrl: requestDefaults.baseUrl.replace(/\/api\/v3$/, "/api"), - }); + this.graphql = withCustomRequest(this.request).defaults(requestDefaults); this.log = Object.assign({ debug: () => { }, info: () => { }, @@ -47,7 +44,7 @@ export class Octokit { }, options.log); this.hook = hook; // (1) If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance - // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registred. + // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registered. // (2) If only `options.auth` is set, use the default token authentication strategy. // (3) If `options.authStrategy` is set then use it and pass in `options.auth`. Always pass own request as many strategies accept a custom request instance. // TODO: type `options.auth` based on `options.authStrategy`. @@ -67,8 +64,17 @@ export class Octokit { } } else { - const auth = options.authStrategy(Object.assign({ + const { authStrategy, ...otherOptions } = options; + const auth = authStrategy(Object.assign({ request: this.request, + log: this.log, + // we pass the current octokit instance as well as its constructor options + // to allow for authentication strategies that return a new octokit instance + // that shares the same internal state as the current one. The original + // requirement for this was the "event-octokit" authentication strategy + // of https://github.com/probot/octokit-auth-probot. + octokit: this, + octokitOptions: otherOptions, }, options.auth)); // @ts-ignore ¯\_(ツ)_/¯ hook.wrap("request", auth.hook); @@ -85,6 +91,10 @@ export class Octokit { const OctokitWithDefaults = class extends this { constructor(...args) { const options = args[0] || {}; + if (typeof defaults === "function") { + super(defaults(options)); + return; + } super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent ? { userAgent: `${options.userAgent} ${defaults.userAgent}`, @@ -100,24 +110,9 @@ export class Octokit { * @example * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...) */ - static plugin(p1, ...p2) { + static plugin(...newPlugins) { var _a; - if (p1 instanceof Array) { - console.warn([ - "Passing an array of plugins to Octokit.plugin() has been deprecated.", - "Instead of:", - " Octokit.plugin([plugin1, plugin2, ...])", - "Use:", - " Octokit.plugin(plugin1, plugin2, ...)", - ].join("\n")); - } const currentPlugins = this.plugins; - let newPlugins = [ - ...(p1 instanceof Array - ? p1 - : [p1]), - ...p2, - ]; const NewOctokit = (_a = class extends this { }, _a.plugins = currentPlugins.concat(newPlugins.filter((plugin) => !currentPlugins.includes(plugin))), diff --git a/node_modules/@octokit/core/dist-src/types.js b/node_modules/@octokit/core/dist-src/types.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/core/dist-src/types.js +++ b/node_modules/@octokit/core/dist-src/types.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/dist-src/version.js b/node_modules/@octokit/core/dist-src/version.js index 84ad33c4e..a7dd62d85 100644 --- a/node_modules/@octokit/core/dist-src/version.js +++ b/node_modules/@octokit/core/dist-src/version.js @@ -1 +1 @@ -export const VERSION = "2.5.4"; +export const VERSION = "3.2.3"; diff --git a/node_modules/@octokit/core/dist-types/index.d.ts b/node_modules/@octokit/core/dist-types/index.d.ts index 9bfa79ef5..103362276 100644 --- a/node_modules/@octokit/core/dist-types/index.d.ts +++ b/node_modules/@octokit/core/dist-types/index.d.ts @@ -4,7 +4,7 @@ import { graphql } from "@octokit/graphql"; import { Constructor, OctokitOptions, OctokitPlugin, ReturnTypeOf, UnionToIntersection } from "./types"; export declare class Octokit { static VERSION: string; - static defaults>(this: S, defaults: OctokitOptions): { + static defaults>(this: S, defaults: OctokitOptions | Function): { new (...args: any[]): { [x: string]: any; }; @@ -18,12 +18,12 @@ export declare class Octokit { */ static plugin & { plugins: any[]; - }, T1 extends OctokitPlugin | OctokitPlugin[], T2 extends OctokitPlugin[]>(this: S, p1: T1, ...p2: T2): { + }, T extends OctokitPlugin[]>(this: S, ...newPlugins: T): { new (...args: any[]): { [x: string]: any; }; plugins: any[]; - } & S & Constructor & ReturnTypeOf>>; + } & S & Constructor>>; constructor(options?: OctokitOptions); request: typeof request; graphql: typeof graphql; diff --git a/node_modules/@octokit/core/dist-types/types.d.ts b/node_modules/@octokit/core/dist-types/types.d.ts index 447d8c60d..59b284eef 100644 --- a/node_modules/@octokit/core/dist-types/types.d.ts +++ b/node_modules/@octokit/core/dist-types/types.d.ts @@ -4,6 +4,15 @@ export declare type RequestParameters = OctokitTypes.RequestParameters; export declare type OctokitOptions = { authStrategy?: any; auth?: any; + userAgent?: string; + previews?: string[]; + baseUrl?: string; + log?: { + debug: (message: string) => unknown; + info: (message: string) => unknown; + warn: (message: string) => unknown; + error: (message: string) => unknown; + }; request?: OctokitTypes.RequestRequestOptions; timeZone?: string; [option: string]: any; diff --git a/node_modules/@octokit/core/dist-types/version.d.ts b/node_modules/@octokit/core/dist-types/version.d.ts index 829817ca9..9c2371848 100644 --- a/node_modules/@octokit/core/dist-types/version.d.ts +++ b/node_modules/@octokit/core/dist-types/version.d.ts @@ -1 +1 @@ -export declare const VERSION = "2.5.4"; +export declare const VERSION = "3.2.3"; diff --git a/node_modules/@octokit/core/dist-web/index.js b/node_modules/@octokit/core/dist-web/index.js index 76e2e628e..e6c9e2e06 100644 --- a/node_modules/@octokit/core/dist-web/index.js +++ b/node_modules/@octokit/core/dist-web/index.js @@ -4,7 +4,7 @@ import { request } from '@octokit/request'; import { withCustomRequest } from '@octokit/graphql'; import { createTokenAuth } from '@octokit/auth-token'; -const VERSION = "2.5.4"; +const VERSION = "3.2.3"; class Octokit { constructor(options = {}) { @@ -37,10 +37,7 @@ class Octokit { requestDefaults.headers["time-zone"] = options.timeZone; } this.request = request.defaults(requestDefaults); - this.graphql = withCustomRequest(this.request).defaults({ - ...requestDefaults, - baseUrl: requestDefaults.baseUrl.replace(/\/api\/v3$/, "/api"), - }); + this.graphql = withCustomRequest(this.request).defaults(requestDefaults); this.log = Object.assign({ debug: () => { }, info: () => { }, @@ -49,7 +46,7 @@ class Octokit { }, options.log); this.hook = hook; // (1) If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance - // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registred. + // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registered. // (2) If only `options.auth` is set, use the default token authentication strategy. // (3) If `options.authStrategy` is set then use it and pass in `options.auth`. Always pass own request as many strategies accept a custom request instance. // TODO: type `options.auth` based on `options.authStrategy`. @@ -69,8 +66,17 @@ class Octokit { } } else { - const auth = options.authStrategy(Object.assign({ + const { authStrategy, ...otherOptions } = options; + const auth = authStrategy(Object.assign({ request: this.request, + log: this.log, + // we pass the current octokit instance as well as its constructor options + // to allow for authentication strategies that return a new octokit instance + // that shares the same internal state as the current one. The original + // requirement for this was the "event-octokit" authentication strategy + // of https://github.com/probot/octokit-auth-probot. + octokit: this, + octokitOptions: otherOptions, }, options.auth)); // @ts-ignore ¯\_(ツ)_/¯ hook.wrap("request", auth.hook); @@ -87,6 +93,10 @@ class Octokit { const OctokitWithDefaults = class extends this { constructor(...args) { const options = args[0] || {}; + if (typeof defaults === "function") { + super(defaults(options)); + return; + } super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent ? { userAgent: `${options.userAgent} ${defaults.userAgent}`, @@ -102,24 +112,9 @@ class Octokit { * @example * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...) */ - static plugin(p1, ...p2) { + static plugin(...newPlugins) { var _a; - if (p1 instanceof Array) { - console.warn([ - "Passing an array of plugins to Octokit.plugin() has been deprecated.", - "Instead of:", - " Octokit.plugin([plugin1, plugin2, ...])", - "Use:", - " Octokit.plugin(plugin1, plugin2, ...)", - ].join("\n")); - } const currentPlugins = this.plugins; - let newPlugins = [ - ...(p1 instanceof Array - ? p1 - : [p1]), - ...p2, - ]; const NewOctokit = (_a = class extends this { }, _a.plugins = currentPlugins.concat(newPlugins.filter((plugin) => !currentPlugins.includes(plugin))), diff --git a/node_modules/@octokit/core/dist-web/index.js.map b/node_modules/@octokit/core/dist-web/index.js.map index 54ea63986..b2c8ff558 100644 --- a/node_modules/@octokit/core/dist-web/index.js.map +++ b/node_modules/@octokit/core/dist-web/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"2.5.4\";\n","import { getUserAgent } from \"universal-user-agent\";\nimport { Collection } from \"before-after-hook\";\nimport { request } from \"@octokit/request\";\nimport { withCustomRequest } from \"@octokit/graphql\";\nimport { createTokenAuth } from \"@octokit/auth-token\";\nimport { VERSION } from \"./version\";\nexport class Octokit {\n constructor(options = {}) {\n const hook = new Collection();\n const requestDefaults = {\n baseUrl: request.endpoint.DEFAULTS.baseUrl,\n headers: {},\n request: Object.assign({}, options.request, {\n hook: hook.bind(null, \"request\"),\n }),\n mediaType: {\n previews: [],\n format: \"\",\n },\n };\n // prepend default user agent with `options.userAgent` if set\n requestDefaults.headers[\"user-agent\"] = [\n options.userAgent,\n `octokit-core.js/${VERSION} ${getUserAgent()}`,\n ]\n .filter(Boolean)\n .join(\" \");\n if (options.baseUrl) {\n requestDefaults.baseUrl = options.baseUrl;\n }\n if (options.previews) {\n requestDefaults.mediaType.previews = options.previews;\n }\n if (options.timeZone) {\n requestDefaults.headers[\"time-zone\"] = options.timeZone;\n }\n this.request = request.defaults(requestDefaults);\n this.graphql = withCustomRequest(this.request).defaults({\n ...requestDefaults,\n baseUrl: requestDefaults.baseUrl.replace(/\\/api\\/v3$/, \"/api\"),\n });\n this.log = Object.assign({\n debug: () => { },\n info: () => { },\n warn: console.warn.bind(console),\n error: console.error.bind(console),\n }, options.log);\n this.hook = hook;\n // (1) If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance\n // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registred.\n // (2) If only `options.auth` is set, use the default token authentication strategy.\n // (3) If `options.authStrategy` is set then use it and pass in `options.auth`. Always pass own request as many strategies accept a custom request instance.\n // TODO: type `options.auth` based on `options.authStrategy`.\n if (!options.authStrategy) {\n if (!options.auth) {\n // (1)\n this.auth = async () => ({\n type: \"unauthenticated\",\n });\n }\n else {\n // (2)\n const auth = createTokenAuth(options.auth);\n // @ts-ignore ¯\\_(ツ)_/¯\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n }\n else {\n const auth = options.authStrategy(Object.assign({\n request: this.request,\n }, options.auth));\n // @ts-ignore ¯\\_(ツ)_/¯\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n // apply plugins\n // https://stackoverflow.com/a/16345172\n const classConstructor = this.constructor;\n classConstructor.plugins.forEach((plugin) => {\n Object.assign(this, plugin(this, options));\n });\n }\n static defaults(defaults) {\n const OctokitWithDefaults = class extends this {\n constructor(...args) {\n const options = args[0] || {};\n super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent\n ? {\n userAgent: `${options.userAgent} ${defaults.userAgent}`,\n }\n : null));\n }\n };\n return OctokitWithDefaults;\n }\n /**\n * Attach a plugin (or many) to your Octokit instance.\n *\n * @example\n * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)\n */\n static plugin(p1, ...p2) {\n var _a;\n if (p1 instanceof Array) {\n console.warn([\n \"Passing an array of plugins to Octokit.plugin() has been deprecated.\",\n \"Instead of:\",\n \" Octokit.plugin([plugin1, plugin2, ...])\",\n \"Use:\",\n \" Octokit.plugin(plugin1, plugin2, ...)\",\n ].join(\"\\n\"));\n }\n const currentPlugins = this.plugins;\n let newPlugins = [\n ...(p1 instanceof Array\n ? p1\n : [p1]),\n ...p2,\n ];\n const NewOctokit = (_a = class extends this {\n },\n _a.plugins = currentPlugins.concat(newPlugins.filter((plugin) => !currentPlugins.includes(plugin))),\n _a);\n return NewOctokit;\n }\n}\nOctokit.VERSION = VERSION;\nOctokit.plugins = [];\n"],"names":[],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"3.2.3\";\n","import { getUserAgent } from \"universal-user-agent\";\nimport { Collection } from \"before-after-hook\";\nimport { request } from \"@octokit/request\";\nimport { withCustomRequest } from \"@octokit/graphql\";\nimport { createTokenAuth } from \"@octokit/auth-token\";\nimport { VERSION } from \"./version\";\nexport class Octokit {\n constructor(options = {}) {\n const hook = new Collection();\n const requestDefaults = {\n baseUrl: request.endpoint.DEFAULTS.baseUrl,\n headers: {},\n request: Object.assign({}, options.request, {\n hook: hook.bind(null, \"request\"),\n }),\n mediaType: {\n previews: [],\n format: \"\",\n },\n };\n // prepend default user agent with `options.userAgent` if set\n requestDefaults.headers[\"user-agent\"] = [\n options.userAgent,\n `octokit-core.js/${VERSION} ${getUserAgent()}`,\n ]\n .filter(Boolean)\n .join(\" \");\n if (options.baseUrl) {\n requestDefaults.baseUrl = options.baseUrl;\n }\n if (options.previews) {\n requestDefaults.mediaType.previews = options.previews;\n }\n if (options.timeZone) {\n requestDefaults.headers[\"time-zone\"] = options.timeZone;\n }\n this.request = request.defaults(requestDefaults);\n this.graphql = withCustomRequest(this.request).defaults(requestDefaults);\n this.log = Object.assign({\n debug: () => { },\n info: () => { },\n warn: console.warn.bind(console),\n error: console.error.bind(console),\n }, options.log);\n this.hook = hook;\n // (1) If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance\n // is unauthenticated. The `this.auth()` method is a no-op and no request hook is registered.\n // (2) If only `options.auth` is set, use the default token authentication strategy.\n // (3) If `options.authStrategy` is set then use it and pass in `options.auth`. Always pass own request as many strategies accept a custom request instance.\n // TODO: type `options.auth` based on `options.authStrategy`.\n if (!options.authStrategy) {\n if (!options.auth) {\n // (1)\n this.auth = async () => ({\n type: \"unauthenticated\",\n });\n }\n else {\n // (2)\n const auth = createTokenAuth(options.auth);\n // @ts-ignore ¯\\_(ツ)_/¯\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n }\n else {\n const { authStrategy, ...otherOptions } = options;\n const auth = authStrategy(Object.assign({\n request: this.request,\n log: this.log,\n // we pass the current octokit instance as well as its constructor options\n // to allow for authentication strategies that return a new octokit instance\n // that shares the same internal state as the current one. The original\n // requirement for this was the \"event-octokit\" authentication strategy\n // of https://github.com/probot/octokit-auth-probot.\n octokit: this,\n octokitOptions: otherOptions,\n }, options.auth));\n // @ts-ignore ¯\\_(ツ)_/¯\n hook.wrap(\"request\", auth.hook);\n this.auth = auth;\n }\n // apply plugins\n // https://stackoverflow.com/a/16345172\n const classConstructor = this.constructor;\n classConstructor.plugins.forEach((plugin) => {\n Object.assign(this, plugin(this, options));\n });\n }\n static defaults(defaults) {\n const OctokitWithDefaults = class extends this {\n constructor(...args) {\n const options = args[0] || {};\n if (typeof defaults === \"function\") {\n super(defaults(options));\n return;\n }\n super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent\n ? {\n userAgent: `${options.userAgent} ${defaults.userAgent}`,\n }\n : null));\n }\n };\n return OctokitWithDefaults;\n }\n /**\n * Attach a plugin (or many) to your Octokit instance.\n *\n * @example\n * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)\n */\n static plugin(...newPlugins) {\n var _a;\n const currentPlugins = this.plugins;\n const NewOctokit = (_a = class extends this {\n },\n _a.plugins = currentPlugins.concat(newPlugins.filter((plugin) => !currentPlugins.includes(plugin))),\n _a);\n return NewOctokit;\n }\n}\nOctokit.VERSION = VERSION;\nOctokit.plugins = [];\n"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/LICENSE b/node_modules/@octokit/core/node_modules/@octokit/auth-token/LICENSE similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/request-error/LICENSE rename to node_modules/@octokit/core/node_modules/@octokit/auth-token/LICENSE diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/README.md b/node_modules/@octokit/core/node_modules/@octokit/auth-token/README.md new file mode 100644 index 000000000..4afeb9599 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/README.md @@ -0,0 +1,271 @@ +# auth-token.js + +> GitHub API token authentication for browsers and Node.js + +[![@latest](https://img.shields.io/npm/v/@octokit/auth-token.svg)](https://www.npmjs.com/package/@octokit/auth-token) +[![Build Status](https://github.com/octokit/auth-token.js/workflows/Test/badge.svg)](https://github.com/octokit/auth-token.js/actions?query=workflow%3ATest) + +`@octokit/auth-token` is the simplest of [GitHub’s authentication strategies](https://github.com/octokit/auth.js). + +It is useful if you want to support multiple authentication strategies, as it’s API is compatible with its sibling packages for [basic](https://github.com/octokit/auth-basic.js), [GitHub App](https://github.com/octokit/auth-app.js) and [OAuth app](https://github.com/octokit/auth.js) authentication. + + + +- [Usage](#usage) +- [`createTokenAuth(token) options`](#createtokenauthtoken-options) +- [`auth()`](#auth) +- [Authentication object](#authentication-object) +- [`auth.hook(request, route, options)` or `auth.hook(request, options)`](#authhookrequest-route-options-or-authhookrequest-options) +- [Find more information](#find-more-information) + - [Find out what scopes are enabled for oauth tokens](#find-out-what-scopes-are-enabled-for-oauth-tokens) + - [Find out if token is a personal access token or if it belongs to an OAuth app](#find-out-if-token-is-a-personal-access-token-or-if-it-belongs-to-an-oauth-app) + - [Find out what permissions are enabled for a repository](#find-out-what-permissions-are-enabled-for-a-repository) + - [Use token for git operations](#use-token-for-git-operations) +- [License](#license) + + + +## Usage + + + + + + +
+Browsers + + +Load `@octokit/auth-token` directly from [cdn.skypack.dev](https://cdn.skypack.dev) + +```html + +``` + +
+Node + + +Install with npm install @octokit/auth-token + +```js +const { createTokenAuth } = require("@octokit/auth-token"); +// or: import { createTokenAuth } from "@octokit/auth-token"; +``` + +
+ +```js +const auth = createTokenAuth("1234567890abcdef1234567890abcdef12345678"); +const authentication = await auth(); +// { +// type: 'token', +// token: '1234567890abcdef1234567890abcdef12345678', +// tokenType: 'oauth' +// } +``` + +## `createTokenAuth(token) options` + +The `createTokenAuth` method accepts a single argument of type string, which is the token. The passed token can be one of the following: + +- [Personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line) +- [OAuth access token](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/) +- Installation access token ([GitHub App Installation](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation)) +- [GITHUB_TOKEN provided to GitHub Actions](https://developer.github.com/actions/creating-github-actions/accessing-the-runtime-environment/#environment-variables) + +Examples + +```js +// Personal access token or OAuth access token +createTokenAuth("1234567890abcdef1234567890abcdef12345678"); + +// Installation access token or GitHub Action token +createTokenAuth("v1.d3d433526f780fbcc3129004e2731b3904ad0b86"); +``` + +## `auth()` + +The `auth()` method has no options. It returns a promise which resolves with the the authentication object. + +## Authentication object + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ name + + type + + description +
+ type + + string + + "token" +
+ token + + string + + The provided token. +
+ tokenType + + string + + Can be either "oauth" for personal access tokens and OAuth tokens, or "installation" for installation access tokens (includes GITHUB_TOKEN provided to GitHub Actions) +
+ +## `auth.hook(request, route, options)` or `auth.hook(request, options)` + +`auth.hook()` hooks directly into the request life cycle. It authenticates the request using the provided token. + +The `request` option is an instance of [`@octokit/request`](https://github.com/octokit/request.js#readme). The `route`/`options` parameters are the same as for the [`request()` method](https://github.com/octokit/request.js#request). + +`auth.hook()` can be called directly to send an authenticated request + +```js +const { data: authorizations } = await auth.hook( + request, + "GET /authorizations" +); +``` + +Or it can be passed as option to [`request()`](https://github.com/octokit/request.js#request). + +```js +const requestWithAuth = request.defaults({ + request: { + hook: auth.hook, + }, +}); + +const { data: authorizations } = await requestWithAuth("GET /authorizations"); +``` + +## Find more information + +`auth()` does not send any requests, it only transforms the provided token string into an authentication object. + +Here is a list of things you can do to retrieve further information + +### Find out what scopes are enabled for oauth tokens + +Note that this does not work for installations. There is no way to retrieve permissions based on an installation access tokens. + +```js +const TOKEN = "1234567890abcdef1234567890abcdef12345678"; + +const auth = createTokenAuth(TOKEN); +const authentication = await auth(); + +const response = await request("HEAD /", { + headers: authentication.headers, +}); +const scopes = response.headers["x-oauth-scopes"].split(/,\s+/); + +if (scopes.length) { + console.log( + `"${TOKEN}" has ${scopes.length} scopes enabled: ${scopes.join(", ")}` + ); +} else { + console.log(`"${TOKEN}" has no scopes enabled`); +} +``` + +### Find out if token is a personal access token or if it belongs to an OAuth app + +```js +const TOKEN = "1234567890abcdef1234567890abcdef12345678"; + +const auth = createTokenAuth(TOKEN); +const authentication = await auth(); + +const response = await request("HEAD /", { + headers: authentication.headers, +}); +const clientId = response.headers["x-oauth-client-id"]; + +if (clientId) { + console.log( + `"${token}" is an OAuth token, its app’s client_id is ${clientId}.` + ); +} else { + console.log(`"${token}" is a personal access token`); +} +``` + +### Find out what permissions are enabled for a repository + +Note that the `permissions` key is not set when authenticated using an installation access token. + +```js +const TOKEN = "1234567890abcdef1234567890abcdef12345678"; + +const auth = createTokenAuth(TOKEN); +const authentication = await auth(); + +const response = await request("GET /repos/:owner/:repo", { + owner: 'octocat', + repo: 'hello-world' + headers: authentication.headers +}); + +console.log(response.data.permissions) +// { +// admin: true, +// push: true, +// pull: true +// } +``` + +### Use token for git operations + +Both OAuth and installation access tokens can be used for git operations. However, when using with an installation, [the token must be prefixed with `x-access-token`](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#http-based-git-access-by-an-installation). + +This example is using the [`execa`](https://github.com/sindresorhus/execa) package to run a `git push` command. + +```js +const TOKEN = "1234567890abcdef1234567890abcdef12345678"; + +const auth = createTokenAuth(TOKEN); +const { token, tokenType } = await auth(); +const tokenWithPrefix = + tokenType === "installation" ? `x-access-token:${token}` : token; + +const repositoryUrl = `https://${tokenWithPrefix}@github.com/octocat/hello-world.git`; + +const { stdout } = await execa("git", ["push", repositoryUrl]); +console.log(stdout); +``` + +## License + +[MIT](LICENSE) diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-node/index.js b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-node/index.js new file mode 100644 index 000000000..1394a5da2 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-node/index.js @@ -0,0 +1,49 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +async function auth(token) { + const tokenType = token.split(/\./).length === 3 ? "app" : /^v\d+\./.test(token) ? "installation" : "oauth"; + return { + type: "token", + token: token, + tokenType + }; +} + +/** + * Prefix token for usage in the Authorization header + * + * @param token OAuth token or JSON Web Token + */ +function withAuthorizationPrefix(token) { + if (token.split(/\./).length === 3) { + return `bearer ${token}`; + } + + return `token ${token}`; +} + +async function hook(token, request, route, parameters) { + const endpoint = request.endpoint.merge(route, parameters); + endpoint.headers.authorization = withAuthorizationPrefix(token); + return request(endpoint); +} + +const createTokenAuth = function createTokenAuth(token) { + if (!token) { + throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); + } + + if (typeof token !== "string") { + throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); + } + + token = token.replace(/^(token|bearer) +/i, ""); + return Object.assign(auth.bind(null, token), { + hook: hook.bind(null, token) + }); +}; + +exports.createTokenAuth = createTokenAuth; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-node/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-node/index.js.map new file mode 100644 index 000000000..8a92b69bb --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/auth.js","../dist-src/with-authorization-prefix.js","../dist-src/hook.js","../dist-src/index.js"],"sourcesContent":["export async function auth(token) {\n const tokenType = token.split(/\\./).length === 3\n ? \"app\"\n : /^v\\d+\\./.test(token)\n ? \"installation\"\n : \"oauth\";\n return {\n type: \"token\",\n token: token,\n tokenType\n };\n}\n","/**\n * Prefix token for usage in the Authorization header\n *\n * @param token OAuth token or JSON Web Token\n */\nexport function withAuthorizationPrefix(token) {\n if (token.split(/\\./).length === 3) {\n return `bearer ${token}`;\n }\n return `token ${token}`;\n}\n","import { withAuthorizationPrefix } from \"./with-authorization-prefix\";\nexport async function hook(token, request, route, parameters) {\n const endpoint = request.endpoint.merge(route, parameters);\n endpoint.headers.authorization = withAuthorizationPrefix(token);\n return request(endpoint);\n}\n","import { auth } from \"./auth\";\nimport { hook } from \"./hook\";\nexport const createTokenAuth = function createTokenAuth(token) {\n if (!token) {\n throw new Error(\"[@octokit/auth-token] No token passed to createTokenAuth\");\n }\n if (typeof token !== \"string\") {\n throw new Error(\"[@octokit/auth-token] Token passed to createTokenAuth is not a string\");\n }\n token = token.replace(/^(token|bearer) +/i, \"\");\n return Object.assign(auth.bind(null, token), {\n hook: hook.bind(null, token)\n });\n};\n"],"names":["auth","token","tokenType","split","length","test","type","withAuthorizationPrefix","hook","request","route","parameters","endpoint","merge","headers","authorization","createTokenAuth","Error","replace","Object","assign","bind"],"mappings":";;;;AAAO,eAAeA,IAAf,CAAoBC,KAApB,EAA2B;AAC9B,QAAMC,SAAS,GAAGD,KAAK,CAACE,KAAN,CAAY,IAAZ,EAAkBC,MAAlB,KAA6B,CAA7B,GACZ,KADY,GAEZ,UAAUC,IAAV,CAAeJ,KAAf,IACI,cADJ,GAEI,OAJV;AAKA,SAAO;AACHK,IAAAA,IAAI,EAAE,OADH;AAEHL,IAAAA,KAAK,EAAEA,KAFJ;AAGHC,IAAAA;AAHG,GAAP;AAKH;;ACXD;;;;;AAKA,AAAO,SAASK,uBAAT,CAAiCN,KAAjC,EAAwC;AAC3C,MAAIA,KAAK,CAACE,KAAN,CAAY,IAAZ,EAAkBC,MAAlB,KAA6B,CAAjC,EAAoC;AAChC,WAAQ,UAASH,KAAM,EAAvB;AACH;;AACD,SAAQ,SAAQA,KAAM,EAAtB;AACH;;ACTM,eAAeO,IAAf,CAAoBP,KAApB,EAA2BQ,OAA3B,EAAoCC,KAApC,EAA2CC,UAA3C,EAAuD;AAC1D,QAAMC,QAAQ,GAAGH,OAAO,CAACG,QAAR,CAAiBC,KAAjB,CAAuBH,KAAvB,EAA8BC,UAA9B,CAAjB;AACAC,EAAAA,QAAQ,CAACE,OAAT,CAAiBC,aAAjB,GAAiCR,uBAAuB,CAACN,KAAD,CAAxD;AACA,SAAOQ,OAAO,CAACG,QAAD,CAAd;AACH;;MCHYI,eAAe,GAAG,SAASA,eAAT,CAAyBf,KAAzB,EAAgC;AAC3D,MAAI,CAACA,KAAL,EAAY;AACR,UAAM,IAAIgB,KAAJ,CAAU,0DAAV,CAAN;AACH;;AACD,MAAI,OAAOhB,KAAP,KAAiB,QAArB,EAA+B;AAC3B,UAAM,IAAIgB,KAAJ,CAAU,uEAAV,CAAN;AACH;;AACDhB,EAAAA,KAAK,GAAGA,KAAK,CAACiB,OAAN,CAAc,oBAAd,EAAoC,EAApC,CAAR;AACA,SAAOC,MAAM,CAACC,MAAP,CAAcpB,IAAI,CAACqB,IAAL,CAAU,IAAV,EAAgBpB,KAAhB,CAAd,EAAsC;AACzCO,IAAAA,IAAI,EAAEA,IAAI,CAACa,IAAL,CAAU,IAAV,EAAgBpB,KAAhB;AADmC,GAAtC,CAAP;AAGH,CAXM;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/auth.js b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/auth.js new file mode 100644 index 000000000..2d5005c22 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/auth.js @@ -0,0 +1,12 @@ +export async function auth(token) { + const tokenType = token.split(/\./).length === 3 + ? "app" + : /^v\d+\./.test(token) + ? "installation" + : "oauth"; + return { + type: "token", + token: token, + tokenType + }; +} diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/hook.js b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/hook.js new file mode 100644 index 000000000..f8e47f0c2 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/hook.js @@ -0,0 +1,6 @@ +import { withAuthorizationPrefix } from "./with-authorization-prefix"; +export async function hook(token, request, route, parameters) { + const endpoint = request.endpoint.merge(route, parameters); + endpoint.headers.authorization = withAuthorizationPrefix(token); + return request(endpoint); +} diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/index.js b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/index.js new file mode 100644 index 000000000..114fd4554 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/index.js @@ -0,0 +1,14 @@ +import { auth } from "./auth"; +import { hook } from "./hook"; +export const createTokenAuth = function createTokenAuth(token) { + if (!token) { + throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); + } + if (typeof token !== "string") { + throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); + } + token = token.replace(/^(token|bearer) +/i, ""); + return Object.assign(auth.bind(null, token), { + hook: hook.bind(null, token) + }); +}; diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-src/types.js b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/types.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-src/types.js rename to node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/types.js diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js new file mode 100644 index 000000000..90358136e --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-src/with-authorization-prefix.js @@ -0,0 +1,11 @@ +/** + * Prefix token for usage in the Authorization header + * + * @param token OAuth token or JSON Web Token + */ +export function withAuthorizationPrefix(token) { + if (token.split(/\./).length === 3) { + return `bearer ${token}`; + } + return `token ${token}`; +} diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/auth.d.ts b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/auth.d.ts new file mode 100644 index 000000000..dc4183585 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/auth.d.ts @@ -0,0 +1,2 @@ +import { Token, Authentication } from "./types"; +export declare function auth(token: Token): Promise; diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/hook.d.ts b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/hook.d.ts new file mode 100644 index 000000000..21e4b6fcd --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/hook.d.ts @@ -0,0 +1,2 @@ +import { AnyResponse, EndpointOptions, RequestInterface, RequestParameters, Route, Token } from "./types"; +export declare function hook(token: Token, request: RequestInterface, route: Route | EndpointOptions, parameters?: RequestParameters): Promise; diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/index.d.ts b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/index.d.ts new file mode 100644 index 000000000..599942937 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/index.d.ts @@ -0,0 +1,7 @@ +import { StrategyInterface, Token, Authentication } from "./types"; +export declare type Types = { + StrategyOptions: Token; + AuthOptions: never; + Authentication: Authentication; +}; +export declare const createTokenAuth: StrategyInterface; diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/types.d.ts b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/types.d.ts new file mode 100644 index 000000000..53a4ab112 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/types.d.ts @@ -0,0 +1,25 @@ +import * as OctokitTypes from "@octokit/types"; +export declare type AnyResponse = OctokitTypes.OctokitResponse; +export declare type StrategyInterface = OctokitTypes.StrategyInterface<[Token], [], Authentication>; +export declare type EndpointDefaults = OctokitTypes.EndpointDefaults; +export declare type EndpointOptions = OctokitTypes.EndpointOptions; +export declare type RequestParameters = OctokitTypes.RequestParameters; +export declare type RequestInterface = OctokitTypes.RequestInterface; +export declare type Route = OctokitTypes.Route; +export declare type Token = string; +export declare type OAuthTokenAuthentication = { + type: "token"; + tokenType: "oauth"; + token: Token; +}; +export declare type InstallationTokenAuthentication = { + type: "token"; + tokenType: "installation"; + token: Token; +}; +export declare type AppAuthentication = { + type: "token"; + tokenType: "app"; + token: Token; +}; +export declare type Authentication = OAuthTokenAuthentication | InstallationTokenAuthentication | AppAuthentication; diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/with-authorization-prefix.d.ts b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/with-authorization-prefix.d.ts new file mode 100644 index 000000000..2e52c31db --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-types/with-authorization-prefix.d.ts @@ -0,0 +1,6 @@ +/** + * Prefix token for usage in the Authorization header + * + * @param token OAuth token or JSON Web Token + */ +export declare function withAuthorizationPrefix(token: string): string; diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-web/index.js b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-web/index.js new file mode 100644 index 000000000..c15ca1222 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-web/index.js @@ -0,0 +1,46 @@ +async function auth(token) { + const tokenType = token.split(/\./).length === 3 + ? "app" + : /^v\d+\./.test(token) + ? "installation" + : "oauth"; + return { + type: "token", + token: token, + tokenType + }; +} + +/** + * Prefix token for usage in the Authorization header + * + * @param token OAuth token or JSON Web Token + */ +function withAuthorizationPrefix(token) { + if (token.split(/\./).length === 3) { + return `bearer ${token}`; + } + return `token ${token}`; +} + +async function hook(token, request, route, parameters) { + const endpoint = request.endpoint.merge(route, parameters); + endpoint.headers.authorization = withAuthorizationPrefix(token); + return request(endpoint); +} + +const createTokenAuth = function createTokenAuth(token) { + if (!token) { + throw new Error("[@octokit/auth-token] No token passed to createTokenAuth"); + } + if (typeof token !== "string") { + throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string"); + } + token = token.replace(/^(token|bearer) +/i, ""); + return Object.assign(auth.bind(null, token), { + hook: hook.bind(null, token) + }); +}; + +export { createTokenAuth }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-web/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-web/index.js.map new file mode 100644 index 000000000..60de4a6be --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/auth.js","../dist-src/with-authorization-prefix.js","../dist-src/hook.js","../dist-src/index.js"],"sourcesContent":["export async function auth(token) {\n const tokenType = token.split(/\\./).length === 3\n ? \"app\"\n : /^v\\d+\\./.test(token)\n ? \"installation\"\n : \"oauth\";\n return {\n type: \"token\",\n token: token,\n tokenType\n };\n}\n","/**\n * Prefix token for usage in the Authorization header\n *\n * @param token OAuth token or JSON Web Token\n */\nexport function withAuthorizationPrefix(token) {\n if (token.split(/\\./).length === 3) {\n return `bearer ${token}`;\n }\n return `token ${token}`;\n}\n","import { withAuthorizationPrefix } from \"./with-authorization-prefix\";\nexport async function hook(token, request, route, parameters) {\n const endpoint = request.endpoint.merge(route, parameters);\n endpoint.headers.authorization = withAuthorizationPrefix(token);\n return request(endpoint);\n}\n","import { auth } from \"./auth\";\nimport { hook } from \"./hook\";\nexport const createTokenAuth = function createTokenAuth(token) {\n if (!token) {\n throw new Error(\"[@octokit/auth-token] No token passed to createTokenAuth\");\n }\n if (typeof token !== \"string\") {\n throw new Error(\"[@octokit/auth-token] Token passed to createTokenAuth is not a string\");\n }\n token = token.replace(/^(token|bearer) +/i, \"\");\n return Object.assign(auth.bind(null, token), {\n hook: hook.bind(null, token)\n });\n};\n"],"names":[],"mappings":"AAAO,eAAe,IAAI,CAAC,KAAK,EAAE;AAClC,IAAI,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC;AACpD,UAAU,KAAK;AACf,UAAU,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC;AAC/B,cAAc,cAAc;AAC5B,cAAc,OAAO,CAAC;AACtB,IAAI,OAAO;AACX,QAAQ,IAAI,EAAE,OAAO;AACrB,QAAQ,KAAK,EAAE,KAAK;AACpB,QAAQ,SAAS;AACjB,KAAK,CAAC;AACN;;ACXA;AACA;AACA;AACA;AACA;AACA,AAAO,SAAS,uBAAuB,CAAC,KAAK,EAAE;AAC/C,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;AACxC,QAAQ,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;AACjC,KAAK;AACL,IAAI,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;AAC5B,CAAC;;ACTM,eAAe,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE;AAC9D,IAAI,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAC/D,IAAI,QAAQ,CAAC,OAAO,CAAC,aAAa,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAC;AACpE,IAAI,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC;;ACHW,MAAC,eAAe,GAAG,SAAS,eAAe,CAAC,KAAK,EAAE;AAC/D,IAAI,IAAI,CAAC,KAAK,EAAE;AAChB,QAAQ,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;AACpF,KAAK;AACL,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AACnC,QAAQ,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;AACjG,KAAK;AACL,IAAI,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;AACpD,IAAI,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE;AACjD,QAAQ,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC;AACpC,KAAK,CAAC,CAAC;AACP,CAAC;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/core/node_modules/@octokit/auth-token/package.json b/node_modules/@octokit/core/node_modules/@octokit/auth-token/package.json new file mode 100644 index 000000000..9a11df7dd --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/auth-token/package.json @@ -0,0 +1,48 @@ +{ + "name": "@octokit/auth-token", + "description": "GitHub API token authentication for browsers and Node.js", + "version": "2.4.4", + "license": "MIT", + "files": [ + "dist-*/", + "bin/" + ], + "pika": true, + "sideEffects": false, + "keywords": [ + "github", + "octokit", + "authentication", + "api" + ], + "homepage": "https://github.com/octokit/auth-token.js#readme", + "bugs": { + "url": "https://github.com/octokit/auth-token.js/issues" + }, + "repository": "https://github.com/octokit/auth-token.js", + "dependencies": { + "@octokit/types": "^6.0.0" + }, + "devDependencies": { + "@octokit/core": "^3.0.0", + "@octokit/request": "^5.3.0", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.9.0", + "@pika/plugin-build-web": "^0.9.0", + "@pika/plugin-ts-standard-pkg": "^0.9.0", + "@types/fetch-mock": "^7.3.1", + "@types/jest": "^26.0.0", + "fetch-mock": "^9.0.0", + "jest": "^25.1.0", + "semantic-release": "^17.0.0", + "ts-jest": "^25.1.0", + "typescript": "^3.7.2" + }, + "publishConfig": { + "access": "public" + }, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "main": "dist-node/index.js", + "module": "dist-web/index.js" +} diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/README.md b/node_modules/@octokit/core/node_modules/@octokit/graphql/README.md index 0a227ee35..8e6332a46 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/graphql/README.md +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/README.md @@ -29,11 +29,11 @@ Browsers -Load `@octokit/graphql` directly from [cdn.pika.dev](https://cdn.pika.dev) +Load `@octokit/graphql` directly from [cdn.skypack.dev](https://cdn.skypack.dev) ```html ``` diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-node/index.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-node/index.js index 13f47f984..5c26e9f7b 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-node/index.js +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-node/index.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); var request = require('@octokit/request'); var universalUserAgent = require('universal-user-agent'); -const VERSION = "4.5.6"; +const VERSION = "4.5.8"; class GraphqlError extends Error { constructor(request, response) { diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-node/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-node/index.js.map index 833b8d375..3598288ef 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-node/index.js.map +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-node/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/error.js","../dist-src/graphql.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"4.5.6\";\n","export class GraphqlError extends Error {\n constructor(request, response) {\n const message = response.data.errors[0].message;\n super(message);\n Object.assign(this, response.data);\n Object.assign(this, { headers: response.headers });\n this.name = \"GraphqlError\";\n this.request = request;\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n","import { GraphqlError } from \"./error\";\nconst NON_VARIABLE_OPTIONS = [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"query\",\n \"mediaType\",\n];\nconst GHES_V3_SUFFIX_REGEX = /\\/api\\/v3\\/?$/;\nexport function graphql(request, query, options) {\n if (typeof query === \"string\" && options && \"query\" in options) {\n return Promise.reject(new Error(`[@octokit/graphql] \"query\" cannot be used as variable name`));\n }\n const parsedOptions = typeof query === \"string\" ? Object.assign({ query }, options) : query;\n const requestOptions = Object.keys(parsedOptions).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = parsedOptions[key];\n return result;\n }\n if (!result.variables) {\n result.variables = {};\n }\n result.variables[key] = parsedOptions[key];\n return result;\n }, {});\n // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix\n // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451\n const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl;\n if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {\n requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, \"/api/graphql\");\n }\n return request(requestOptions).then((response) => {\n if (response.data.errors) {\n const headers = {};\n for (const key of Object.keys(response.headers)) {\n headers[key] = response.headers[key];\n }\n throw new GraphqlError(requestOptions, {\n headers,\n data: response.data,\n });\n }\n return response.data.data;\n });\n}\n","import { request as Request } from \"@octokit/request\";\nimport { graphql } from \"./graphql\";\nexport function withDefaults(request, newDefaults) {\n const newRequest = request.defaults(newDefaults);\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: Request.endpoint,\n });\n}\n","import { request } from \"@octokit/request\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport { withDefaults } from \"./with-defaults\";\nexport const graphql = withDefaults(request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${getUserAgent()}`,\n },\n method: \"POST\",\n url: \"/graphql\",\n});\nexport function withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\",\n });\n}\n"],"names":["VERSION","GraphqlError","Error","constructor","request","response","message","data","errors","Object","assign","headers","name","captureStackTrace","NON_VARIABLE_OPTIONS","GHES_V3_SUFFIX_REGEX","graphql","query","options","Promise","reject","parsedOptions","requestOptions","keys","reduce","result","key","includes","variables","baseUrl","endpoint","DEFAULTS","test","url","replace","then","withDefaults","newDefaults","newRequest","defaults","newApi","bind","Request","getUserAgent","method","withCustomRequest","customRequest"],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/error.js","../dist-src/graphql.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"4.5.8\";\n","export class GraphqlError extends Error {\n constructor(request, response) {\n const message = response.data.errors[0].message;\n super(message);\n Object.assign(this, response.data);\n Object.assign(this, { headers: response.headers });\n this.name = \"GraphqlError\";\n this.request = request;\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n","import { GraphqlError } from \"./error\";\nconst NON_VARIABLE_OPTIONS = [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"query\",\n \"mediaType\",\n];\nconst GHES_V3_SUFFIX_REGEX = /\\/api\\/v3\\/?$/;\nexport function graphql(request, query, options) {\n if (typeof query === \"string\" && options && \"query\" in options) {\n return Promise.reject(new Error(`[@octokit/graphql] \"query\" cannot be used as variable name`));\n }\n const parsedOptions = typeof query === \"string\" ? Object.assign({ query }, options) : query;\n const requestOptions = Object.keys(parsedOptions).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = parsedOptions[key];\n return result;\n }\n if (!result.variables) {\n result.variables = {};\n }\n result.variables[key] = parsedOptions[key];\n return result;\n }, {});\n // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix\n // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451\n const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl;\n if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {\n requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, \"/api/graphql\");\n }\n return request(requestOptions).then((response) => {\n if (response.data.errors) {\n const headers = {};\n for (const key of Object.keys(response.headers)) {\n headers[key] = response.headers[key];\n }\n throw new GraphqlError(requestOptions, {\n headers,\n data: response.data,\n });\n }\n return response.data.data;\n });\n}\n","import { request as Request } from \"@octokit/request\";\nimport { graphql } from \"./graphql\";\nexport function withDefaults(request, newDefaults) {\n const newRequest = request.defaults(newDefaults);\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: Request.endpoint,\n });\n}\n","import { request } from \"@octokit/request\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport { withDefaults } from \"./with-defaults\";\nexport const graphql = withDefaults(request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${getUserAgent()}`,\n },\n method: \"POST\",\n url: \"/graphql\",\n});\nexport function withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\",\n });\n}\n"],"names":["VERSION","GraphqlError","Error","constructor","request","response","message","data","errors","Object","assign","headers","name","captureStackTrace","NON_VARIABLE_OPTIONS","GHES_V3_SUFFIX_REGEX","graphql","query","options","Promise","reject","parsedOptions","requestOptions","keys","reduce","result","key","includes","variables","baseUrl","endpoint","DEFAULTS","test","url","replace","then","withDefaults","newDefaults","newRequest","defaults","newApi","bind","Request","getUserAgent","method","withCustomRequest","customRequest"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-src/version.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-src/version.js index db3f1782d..cdefae231 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-src/version.js +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-src/version.js @@ -1 +1 @@ -export const VERSION = "4.5.6"; +export const VERSION = "4.5.8"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-types/version.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-types/version.d.ts index 71cccb7fa..1b94bb92d 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-types/version.d.ts +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-types/version.d.ts @@ -1 +1 @@ -export declare const VERSION = "4.5.6"; +export declare const VERSION = "4.5.8"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-web/index.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-web/index.js index 0d9041971..9cb20bc71 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-web/index.js +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-web/index.js @@ -1,7 +1,7 @@ import { request } from '@octokit/request'; import { getUserAgent } from 'universal-user-agent'; -const VERSION = "4.5.6"; +const VERSION = "4.5.8"; class GraphqlError extends Error { constructor(request, response) { diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-web/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-web/index.js.map index 8c5d19901..aebdc5e00 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-web/index.js.map +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/dist-web/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/error.js","../dist-src/graphql.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"4.5.6\";\n","export class GraphqlError extends Error {\n constructor(request, response) {\n const message = response.data.errors[0].message;\n super(message);\n Object.assign(this, response.data);\n Object.assign(this, { headers: response.headers });\n this.name = \"GraphqlError\";\n this.request = request;\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n","import { GraphqlError } from \"./error\";\nconst NON_VARIABLE_OPTIONS = [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"query\",\n \"mediaType\",\n];\nconst GHES_V3_SUFFIX_REGEX = /\\/api\\/v3\\/?$/;\nexport function graphql(request, query, options) {\n if (typeof query === \"string\" && options && \"query\" in options) {\n return Promise.reject(new Error(`[@octokit/graphql] \"query\" cannot be used as variable name`));\n }\n const parsedOptions = typeof query === \"string\" ? Object.assign({ query }, options) : query;\n const requestOptions = Object.keys(parsedOptions).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = parsedOptions[key];\n return result;\n }\n if (!result.variables) {\n result.variables = {};\n }\n result.variables[key] = parsedOptions[key];\n return result;\n }, {});\n // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix\n // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451\n const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl;\n if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {\n requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, \"/api/graphql\");\n }\n return request(requestOptions).then((response) => {\n if (response.data.errors) {\n const headers = {};\n for (const key of Object.keys(response.headers)) {\n headers[key] = response.headers[key];\n }\n throw new GraphqlError(requestOptions, {\n headers,\n data: response.data,\n });\n }\n return response.data.data;\n });\n}\n","import { request as Request } from \"@octokit/request\";\nimport { graphql } from \"./graphql\";\nexport function withDefaults(request, newDefaults) {\n const newRequest = request.defaults(newDefaults);\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: Request.endpoint,\n });\n}\n","import { request } from \"@octokit/request\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport { withDefaults } from \"./with-defaults\";\nexport const graphql = withDefaults(request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${getUserAgent()}`,\n },\n method: \"POST\",\n url: \"/graphql\",\n});\nexport function withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\",\n });\n}\n"],"names":["request","Request","graphql"],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/error.js","../dist-src/graphql.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"4.5.8\";\n","export class GraphqlError extends Error {\n constructor(request, response) {\n const message = response.data.errors[0].message;\n super(message);\n Object.assign(this, response.data);\n Object.assign(this, { headers: response.headers });\n this.name = \"GraphqlError\";\n this.request = request;\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n","import { GraphqlError } from \"./error\";\nconst NON_VARIABLE_OPTIONS = [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"query\",\n \"mediaType\",\n];\nconst GHES_V3_SUFFIX_REGEX = /\\/api\\/v3\\/?$/;\nexport function graphql(request, query, options) {\n if (typeof query === \"string\" && options && \"query\" in options) {\n return Promise.reject(new Error(`[@octokit/graphql] \"query\" cannot be used as variable name`));\n }\n const parsedOptions = typeof query === \"string\" ? Object.assign({ query }, options) : query;\n const requestOptions = Object.keys(parsedOptions).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = parsedOptions[key];\n return result;\n }\n if (!result.variables) {\n result.variables = {};\n }\n result.variables[key] = parsedOptions[key];\n return result;\n }, {});\n // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix\n // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451\n const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl;\n if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {\n requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, \"/api/graphql\");\n }\n return request(requestOptions).then((response) => {\n if (response.data.errors) {\n const headers = {};\n for (const key of Object.keys(response.headers)) {\n headers[key] = response.headers[key];\n }\n throw new GraphqlError(requestOptions, {\n headers,\n data: response.data,\n });\n }\n return response.data.data;\n });\n}\n","import { request as Request } from \"@octokit/request\";\nimport { graphql } from \"./graphql\";\nexport function withDefaults(request, newDefaults) {\n const newRequest = request.defaults(newDefaults);\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: Request.endpoint,\n });\n}\n","import { request } from \"@octokit/request\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport { withDefaults } from \"./with-defaults\";\nexport const graphql = withDefaults(request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${getUserAgent()}`,\n },\n method: \"POST\",\n url: \"/graphql\",\n});\nexport function withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\",\n });\n}\n"],"names":["request","Request","graphql"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/octokit-pagination-methods/LICENSE b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/LICENSE similarity index 91% rename from node_modules/octokit-pagination-methods/LICENSE rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/LICENSE index 4c0d268a2..af5366d0d 100644 --- a/node_modules/octokit-pagination-methods/LICENSE +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/LICENSE @@ -1,7 +1,6 @@ The MIT License -Copyright (c) 2012 Cloud9 IDE, Inc. (Mike de Boer) -Copyright (c) 2017-2018 Octokit contributors +Copyright (c) 2018 Octokit contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/README.md b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/README.md new file mode 100644 index 000000000..ef04ae892 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/README.md @@ -0,0 +1,538 @@ +# request.js + +> Send parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node + +[![@latest](https://img.shields.io/npm/v/@octokit/request.svg)](https://www.npmjs.com/package/@octokit/request) +[![Build Status](https://github.com/octokit/request.js/workflows/Test/badge.svg)](https://github.com/octokit/request.js/actions?query=workflow%3ATest+branch%3Amaster) + +`@octokit/request` is a request library for browsers & node that makes it easier +to interact with [GitHub’s REST API](https://developer.github.com/v3/) and +[GitHub’s GraphQL API](https://developer.github.com/v4/guides/forming-calls/#the-graphql-endpoint). + +It uses [`@octokit/endpoint`](https://github.com/octokit/endpoint.js) to parse +the passed options and sends the request using [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) +([node-fetch](https://github.com/bitinn/node-fetch) in Node). + + + + + +- [Features](#features) +- [Usage](#usage) + - [REST API example](#rest-api-example) + - [GraphQL example](#graphql-example) + - [Alternative: pass `method` & `url` as part of options](#alternative-pass-method--url-as-part-of-options) +- [Authentication](#authentication) +- [request()](#request) +- [`request.defaults()`](#requestdefaults) +- [`request.endpoint`](#requestendpoint) +- [Special cases](#special-cases) + - [The `data` parameter – set request body directly](#the-data-parameter-%E2%80%93-set-request-body-directly) + - [Set parameters for both the URL/query and the request body](#set-parameters-for-both-the-urlquery-and-the-request-body) +- [LICENSE](#license) + + + +## Features + +🤩 1:1 mapping of REST API endpoint documentation, e.g. [Add labels to an issue](https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue) becomes + +```js +request("POST /repos/:owner/:repo/issues/:number/labels", { + mediaType: { + previews: ["symmetra"], + }, + owner: "octokit", + repo: "request.js", + number: 1, + labels: ["🐛 bug"], +}); +``` + +👶 [Small bundle size](https://bundlephobia.com/result?p=@octokit/request@5.0.3) (\<4kb minified + gzipped) + +😎 [Authenticate](#authentication) with any of [GitHubs Authentication Strategies](https://github.com/octokit/auth.js). + +👍 Sensible defaults + +- `baseUrl`: `https://api.github.com` +- `headers.accept`: `application/vnd.github.v3+json` +- `headers.agent`: `octokit-request.js/ `, e.g. `octokit-request.js/1.2.3 Node.js/10.15.0 (macOS Mojave; x64)` + +👌 Simple to test: mock requests by passing a custom fetch method. + +🧐 Simple to debug: Sets `error.request` to request options causing the error (with redacted credentials). + +## Usage + + + + + + +
+Browsers + +Load @octokit/request directly from cdn.pika.dev + +```html + +``` + +
+Node + + +Install with npm install @octokit/request + +```js +const { request } = require("@octokit/request"); +// or: import { request } from "@octokit/request"; +``` + +
+ +### REST API example + +```js +// Following GitHub docs formatting: +// https://developer.github.com/v3/repos/#list-organization-repositories +const result = await request("GET /orgs/:org/repos", { + headers: { + authorization: "token 0000000000000000000000000000000000000001", + }, + org: "octokit", + type: "private", +}); + +console.log(`${result.data.length} repos found.`); +``` + +### GraphQL example + +For GraphQL request we recommend using [`@octokit/graphql`](https://github.com/octokit/graphql.js#readme) + +```js +const result = await request("POST /graphql", { + headers: { + authorization: "token 0000000000000000000000000000000000000001", + }, + query: `query ($login: String!) { + organization(login: $login) { + repositories(privacy: PRIVATE) { + totalCount + } + } + }`, + variables: { + login: "octokit", + }, +}); +``` + +### Alternative: pass `method` & `url` as part of options + +Alternatively, pass in a method and a url + +```js +const result = await request({ + method: "GET", + url: "/orgs/:org/repos", + headers: { + authorization: "token 0000000000000000000000000000000000000001", + }, + org: "octokit", + type: "private", +}); +``` + +## Authentication + +The simplest way to authenticate a request is to set the `Authorization` header directly, e.g. to a [personal access token](https://github.com/settings/tokens/). + +```js +const requestWithAuth = request.defaults({ + headers: { + authorization: "token 0000000000000000000000000000000000000001", + }, +}); +const result = await requestWithAuth("GET /user"); +``` + +For more complex authentication strategies such as GitHub Apps or Basic, we recommend the according authentication library exported by [`@octokit/auth`](https://github.com/octokit/auth.js). + +```js +const { createAppAuth } = require("@octokit/auth-app"); +const auth = createAppAuth({ + id: process.env.APP_ID, + privateKey: process.env.PRIVATE_KEY, + installationId: 123, +}); +const requestWithAuth = request.defaults({ + request: { + hook: auth.hook, + }, + mediaType: { + previews: ["machine-man"], + }, +}); + +const { data: app } = await requestWithAuth("GET /app"); +const { data: app } = await requestWithAuth("POST /repos/:owner/:repo/issues", { + owner: "octocat", + repo: "hello-world", + title: "Hello from the engine room", +}); +``` + +## request() + +`request(route, options)` or `request(options)`. + +**Options** + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ name + + type + + description +
+ route + + String + + If route is set it has to be a string consisting of the request method and URL, e.g. GET /orgs/:org +
+ options.baseUrl + + String + + Required. Any supported http verb, case insensitive. Defaults to https://api.github.com. +
+ options.headers + + Object + + Custom headers. Passed headers are merged with defaults:
+ headers['user-agent'] defaults to octokit-rest.js/1.2.3 (where 1.2.3 is the released version).
+ headers['accept'] defaults to application/vnd.github.v3+json.
Use options.mediaType.{format,previews} to request API previews and custom media types. +
+ options.mediaType.format + + String + + Media type param, such as `raw`, `html`, or `full`. See Media Types. +
+ options.mediaType.previews + + Array of strings + + Name of previews, such as `mercy`, `symmetra`, or `scarlet-witch`. See API Previews. +
+ options.method + + String + + Required. Any supported http verb, case insensitive. Defaults to Get. +
+ options.url + + String + + Required. A path or full URL which may contain :variable or {variable} placeholders, + e.g. /orgs/:org/repos. The url is parsed using url-template. +
+ options.data + + Any + + Set request body directly instead of setting it to JSON based on additional parameters. See "The `data` parameter" below. +
+ options.request.agent + + http(s).Agent instance + + Node only. Useful for custom proxy, certificate, or dns lookup. +
+ options.request.fetch + + Function + + Custom replacement for built-in fetch method. Useful for testing or request hooks. +
+ options.request.hook + + Function + + Function with the signature hook(request, endpointOptions), where endpointOptions are the parsed options as returned by endpoint.merge(), and request is request(). This option works great in conjuction with before-after-hook. +
+ options.request.signal + + new AbortController().signal + + Use an AbortController instance to cancel a request. In node you can only cancel streamed requests. +
+ options.request.timeout + + Number + + Node only. Request/response timeout in ms, it resets on redirect. 0 to disable (OS limit applies). options.request.signal is recommended instead. +
+ +All other options except `options.request.*` will be passed depending on the `method` and `url` options. + +1. If the option key is a placeholder in the `url`, it will be used as replacement. For example, if the passed options are `{url: '/orgs/:org/repos', org: 'foo'}` the returned `options.url` is `https://api.github.com/orgs/foo/repos` +2. If the `method` is `GET` or `HEAD`, the option is passed as query parameter +3. Otherwise the parameter is passed in the request body as JSON key. + +**Result** + +`request` returns a promise and resolves with 4 keys + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ key + + type + + description +
statusIntegerResponse status status
urlStringURL of response. If a request results in redirects, this is the final URL. You can send a HEAD request to retrieve it without loading the full response body.
headersObjectAll response headers
dataAnyThe response body as returned from server. If the response is JSON then it will be parsed into an object
+ +If an error occurs, the `error` instance has additional properties to help with debugging + +- `error.status` The http response status code +- `error.headers` The http response headers as an object +- `error.request` The request options such as `method`, `url` and `data` + +## `request.defaults()` + +Override or set default options. Example: + +```js +const myrequest = require("@octokit/request").defaults({ + baseUrl: "https://github-enterprise.acme-inc.com/api/v3", + headers: { + "user-agent": "myApp/1.2.3", + authorization: `token 0000000000000000000000000000000000000001`, + }, + org: "my-project", + per_page: 100, +}); + +myrequest(`GET /orgs/:org/repos`); +``` + +You can call `.defaults()` again on the returned method, the defaults will cascade. + +```js +const myProjectRequest = request.defaults({ + baseUrl: "https://github-enterprise.acme-inc.com/api/v3", + headers: { + "user-agent": "myApp/1.2.3", + }, + org: "my-project", +}); +const myProjectRequestWithAuth = myProjectRequest.defaults({ + headers: { + authorization: `token 0000000000000000000000000000000000000001`, + }, +}); +``` + +`myProjectRequest` now defaults the `baseUrl`, `headers['user-agent']`, +`org` and `headers['authorization']` on top of `headers['accept']` that is set +by the global default. + +## `request.endpoint` + +See https://github.com/octokit/endpoint.js. Example + +```js +const options = request.endpoint("GET /orgs/:org/repos", { + org: "my-project", + type: "private", +}); + +// { +// method: 'GET', +// url: 'https://api.github.com/orgs/my-project/repos?type=private', +// headers: { +// accept: 'application/vnd.github.v3+json', +// authorization: 'token 0000000000000000000000000000000000000001', +// 'user-agent': 'octokit/endpoint.js v1.2.3' +// } +// } +``` + +All of the [`@octokit/endpoint`](https://github.com/octokit/endpoint.js) API can be used: + +- [`octokitRequest.endpoint()`](#endpoint) +- [`octokitRequest.endpoint.defaults()`](#endpointdefaults) +- [`octokitRequest.endpoint.merge()`](#endpointdefaults) +- [`octokitRequest.endpoint.parse()`](#endpointmerge) + +## Special cases + + + +### The `data` parameter – set request body directly + +Some endpoints such as [Render a Markdown document in raw mode](https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode) don’t have parameters that are sent as request body keys, instead the request body needs to be set directly. In these cases, set the `data` parameter. + +```js +const response = await request("POST /markdown/raw", { + data: "Hello world github/linguist#1 **cool**, and #1!", + headers: { + accept: "text/html;charset=utf-8", + "content-type": "text/plain", + }, +}); + +// Request is sent as +// +// { +// method: 'post', +// url: 'https://api.github.com/markdown/raw', +// headers: { +// accept: 'text/html;charset=utf-8', +// 'content-type': 'text/plain', +// 'user-agent': userAgent +// }, +// body: 'Hello world github/linguist#1 **cool**, and #1!' +// } +// +// not as +// +// { +// ... +// body: '{"data": "Hello world github/linguist#1 **cool**, and #1!"}' +// } +``` + +### Set parameters for both the URL/query and the request body + +There are API endpoints that accept both query parameters as well as a body. In that case you need to add the query parameters as templates to `options.url`, as defined in the [RFC 6570 URI Template specification](https://tools.ietf.org/html/rfc6570). + +Example + +```js +request( + "POST https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}", + { + name: "example.zip", + label: "short description", + headers: { + "content-type": "text/plain", + "content-length": 14, + authorization: `token 0000000000000000000000000000000000000001`, + }, + data: "Hello, world!", + } +); +``` + +## LICENSE + +[MIT](LICENSE) diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js new file mode 100644 index 000000000..8518d8043 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js @@ -0,0 +1,148 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var endpoint = require('@octokit/endpoint'); +var universalUserAgent = require('universal-user-agent'); +var isPlainObject = require('is-plain-object'); +var nodeFetch = _interopDefault(require('node-fetch')); +var requestError = require('@octokit/request-error'); + +const VERSION = "5.4.9"; + +function getBufferResponse(response) { + return response.arrayBuffer(); +} + +function fetchWrapper(requestOptions) { + if (isPlainObject.isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) { + requestOptions.body = JSON.stringify(requestOptions.body); + } + + let headers = {}; + let status; + let url; + const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch; + return fetch(requestOptions.url, Object.assign({ + method: requestOptions.method, + body: requestOptions.body, + headers: requestOptions.headers, + redirect: requestOptions.redirect + }, requestOptions.request)).then(response => { + url = response.url; + status = response.status; + + for (const keyAndValue of response.headers) { + headers[keyAndValue[0]] = keyAndValue[1]; + } + + if (status === 204 || status === 205) { + return; + } // GitHub API returns 200 for HEAD requests + + + if (requestOptions.method === "HEAD") { + if (status < 400) { + return; + } + + throw new requestError.RequestError(response.statusText, status, { + headers, + request: requestOptions + }); + } + + if (status === 304) { + throw new requestError.RequestError("Not modified", status, { + headers, + request: requestOptions + }); + } + + if (status >= 400) { + return response.text().then(message => { + const error = new requestError.RequestError(message, status, { + headers, + request: requestOptions + }); + + try { + let responseBody = JSON.parse(error.message); + Object.assign(error, responseBody); + let errors = responseBody.errors; // Assumption `errors` would always be in Array format + + error.message = error.message + ": " + errors.map(JSON.stringify).join(", "); + } catch (e) {// ignore, see octokit/rest.js#684 + } + + throw error; + }); + } + + const contentType = response.headers.get("content-type"); + + if (/application\/json/.test(contentType)) { + return response.json(); + } + + if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { + return response.text(); + } + + return getBufferResponse(response); + }).then(data => { + return { + status, + url, + headers, + data + }; + }).catch(error => { + if (error instanceof requestError.RequestError) { + throw error; + } + + throw new requestError.RequestError(error.message, 500, { + headers, + request: requestOptions + }); + }); +} + +function withDefaults(oldEndpoint, newDefaults) { + const endpoint = oldEndpoint.defaults(newDefaults); + + const newApi = function (route, parameters) { + const endpointOptions = endpoint.merge(route, parameters); + + if (!endpointOptions.request || !endpointOptions.request.hook) { + return fetchWrapper(endpoint.parse(endpointOptions)); + } + + const request = (route, parameters) => { + return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters))); + }; + + Object.assign(request, { + endpoint, + defaults: withDefaults.bind(null, endpoint) + }); + return endpointOptions.request.hook(request, endpointOptions); + }; + + return Object.assign(newApi, { + endpoint, + defaults: withDefaults.bind(null, endpoint) + }); +} + +const request = withDefaults(endpoint.endpoint, { + headers: { + "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}` + } +}); + +exports.request = request; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js.map new file mode 100644 index 000000000..11d9ddcb3 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.9\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import { isPlainObject } from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["VERSION","getBufferResponse","response","arrayBuffer","fetchWrapper","requestOptions","isPlainObject","body","Array","isArray","JSON","stringify","headers","status","url","fetch","request","nodeFetch","Object","assign","method","redirect","then","keyAndValue","RequestError","statusText","text","message","error","responseBody","parse","errors","map","join","e","contentType","get","test","json","getBuffer","data","catch","withDefaults","oldEndpoint","newDefaults","endpoint","defaults","newApi","route","parameters","endpointOptions","merge","hook","bind","getUserAgent"],"mappings":";;;;;;;;;;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;ACAQ,SAASC,iBAAT,CAA2BC,QAA3B,EAAqC;AAChD,SAAOA,QAAQ,CAACC,WAAT,EAAP;AACH;;ACEc,SAASC,YAAT,CAAsBC,cAAtB,EAAsC;AACjD,MAAIC,2BAAa,CAACD,cAAc,CAACE,IAAhB,CAAb,IACAC,KAAK,CAACC,OAAN,CAAcJ,cAAc,CAACE,IAA7B,CADJ,EACwC;AACpCF,IAAAA,cAAc,CAACE,IAAf,GAAsBG,IAAI,CAACC,SAAL,CAAeN,cAAc,CAACE,IAA9B,CAAtB;AACH;;AACD,MAAIK,OAAO,GAAG,EAAd;AACA,MAAIC,MAAJ;AACA,MAAIC,GAAJ;AACA,QAAMC,KAAK,GAAIV,cAAc,CAACW,OAAf,IAA0BX,cAAc,CAACW,OAAf,CAAuBD,KAAlD,IAA4DE,SAA1E;AACA,SAAOF,KAAK,CAACV,cAAc,CAACS,GAAhB,EAAqBI,MAAM,CAACC,MAAP,CAAc;AAC3CC,IAAAA,MAAM,EAAEf,cAAc,CAACe,MADoB;AAE3Cb,IAAAA,IAAI,EAAEF,cAAc,CAACE,IAFsB;AAG3CK,IAAAA,OAAO,EAAEP,cAAc,CAACO,OAHmB;AAI3CS,IAAAA,QAAQ,EAAEhB,cAAc,CAACgB;AAJkB,GAAd,EAK9BhB,cAAc,CAACW,OALe,CAArB,CAAL,CAMFM,IANE,CAMIpB,QAAD,IAAc;AACpBY,IAAAA,GAAG,GAAGZ,QAAQ,CAACY,GAAf;AACAD,IAAAA,MAAM,GAAGX,QAAQ,CAACW,MAAlB;;AACA,SAAK,MAAMU,WAAX,IAA0BrB,QAAQ,CAACU,OAAnC,EAA4C;AACxCA,MAAAA,OAAO,CAACW,WAAW,CAAC,CAAD,CAAZ,CAAP,GAA0BA,WAAW,CAAC,CAAD,CAArC;AACH;;AACD,QAAIV,MAAM,KAAK,GAAX,IAAkBA,MAAM,KAAK,GAAjC,EAAsC;AAClC;AACH,KARmB;;;AAUpB,QAAIR,cAAc,CAACe,MAAf,KAA0B,MAA9B,EAAsC;AAClC,UAAIP,MAAM,GAAG,GAAb,EAAkB;AACd;AACH;;AACD,YAAM,IAAIW,yBAAJ,CAAiBtB,QAAQ,CAACuB,UAA1B,EAAsCZ,MAAtC,EAA8C;AAChDD,QAAAA,OADgD;AAEhDI,QAAAA,OAAO,EAAEX;AAFuC,OAA9C,CAAN;AAIH;;AACD,QAAIQ,MAAM,KAAK,GAAf,EAAoB;AAChB,YAAM,IAAIW,yBAAJ,CAAiB,cAAjB,EAAiCX,MAAjC,EAAyC;AAC3CD,QAAAA,OAD2C;AAE3CI,QAAAA,OAAO,EAAEX;AAFkC,OAAzC,CAAN;AAIH;;AACD,QAAIQ,MAAM,IAAI,GAAd,EAAmB;AACf,aAAOX,QAAQ,CACVwB,IADE,GAEFJ,IAFE,CAEIK,OAAD,IAAa;AACnB,cAAMC,KAAK,GAAG,IAAIJ,yBAAJ,CAAiBG,OAAjB,EAA0Bd,MAA1B,EAAkC;AAC5CD,UAAAA,OAD4C;AAE5CI,UAAAA,OAAO,EAAEX;AAFmC,SAAlC,CAAd;;AAIA,YAAI;AACA,cAAIwB,YAAY,GAAGnB,IAAI,CAACoB,KAAL,CAAWF,KAAK,CAACD,OAAjB,CAAnB;AACAT,UAAAA,MAAM,CAACC,MAAP,CAAcS,KAAd,EAAqBC,YAArB;AACA,cAAIE,MAAM,GAAGF,YAAY,CAACE,MAA1B,CAHA;;AAKAH,UAAAA,KAAK,CAACD,OAAN,GACIC,KAAK,CAACD,OAAN,GAAgB,IAAhB,GAAuBI,MAAM,CAACC,GAAP,CAAWtB,IAAI,CAACC,SAAhB,EAA2BsB,IAA3B,CAAgC,IAAhC,CAD3B;AAEH,SAPD,CAQA,OAAOC,CAAP,EAAU;AAET;;AACD,cAAMN,KAAN;AACH,OAnBM,CAAP;AAoBH;;AACD,UAAMO,WAAW,GAAGjC,QAAQ,CAACU,OAAT,CAAiBwB,GAAjB,CAAqB,cAArB,CAApB;;AACA,QAAI,oBAAoBC,IAApB,CAAyBF,WAAzB,CAAJ,EAA2C;AACvC,aAAOjC,QAAQ,CAACoC,IAAT,EAAP;AACH;;AACD,QAAI,CAACH,WAAD,IAAgB,yBAAyBE,IAAzB,CAA8BF,WAA9B,CAApB,EAAgE;AAC5D,aAAOjC,QAAQ,CAACwB,IAAT,EAAP;AACH;;AACD,WAAOa,iBAAS,CAACrC,QAAD,CAAhB;AACH,GA7DM,EA8DFoB,IA9DE,CA8DIkB,IAAD,IAAU;AAChB,WAAO;AACH3B,MAAAA,MADG;AAEHC,MAAAA,GAFG;AAGHF,MAAAA,OAHG;AAIH4B,MAAAA;AAJG,KAAP;AAMH,GArEM,EAsEFC,KAtEE,CAsEKb,KAAD,IAAW;AAClB,QAAIA,KAAK,YAAYJ,yBAArB,EAAmC;AAC/B,YAAMI,KAAN;AACH;;AACD,UAAM,IAAIJ,yBAAJ,CAAiBI,KAAK,CAACD,OAAvB,EAAgC,GAAhC,EAAqC;AACvCf,MAAAA,OADuC;AAEvCI,MAAAA,OAAO,EAAEX;AAF8B,KAArC,CAAN;AAIH,GA9EM,CAAP;AA+EH;;AC3Fc,SAASqC,YAAT,CAAsBC,WAAtB,EAAmCC,WAAnC,EAAgD;AAC3D,QAAMC,QAAQ,GAAGF,WAAW,CAACG,QAAZ,CAAqBF,WAArB,CAAjB;;AACA,QAAMG,MAAM,GAAG,UAAUC,KAAV,EAAiBC,UAAjB,EAA6B;AACxC,UAAMC,eAAe,GAAGL,QAAQ,CAACM,KAAT,CAAeH,KAAf,EAAsBC,UAAtB,CAAxB;;AACA,QAAI,CAACC,eAAe,CAAClC,OAAjB,IAA4B,CAACkC,eAAe,CAAClC,OAAhB,CAAwBoC,IAAzD,EAA+D;AAC3D,aAAOhD,YAAY,CAACyC,QAAQ,CAACf,KAAT,CAAeoB,eAAf,CAAD,CAAnB;AACH;;AACD,UAAMlC,OAAO,GAAG,CAACgC,KAAD,EAAQC,UAAR,KAAuB;AACnC,aAAO7C,YAAY,CAACyC,QAAQ,CAACf,KAAT,CAAee,QAAQ,CAACM,KAAT,CAAeH,KAAf,EAAsBC,UAAtB,CAAf,CAAD,CAAnB;AACH,KAFD;;AAGA/B,IAAAA,MAAM,CAACC,MAAP,CAAcH,OAAd,EAAuB;AACnB6B,MAAAA,QADmB;AAEnBC,MAAAA,QAAQ,EAAEJ,YAAY,CAACW,IAAb,CAAkB,IAAlB,EAAwBR,QAAxB;AAFS,KAAvB;AAIA,WAAOK,eAAe,CAAClC,OAAhB,CAAwBoC,IAAxB,CAA6BpC,OAA7B,EAAsCkC,eAAtC,CAAP;AACH,GAbD;;AAcA,SAAOhC,MAAM,CAACC,MAAP,CAAc4B,MAAd,EAAsB;AACzBF,IAAAA,QADyB;AAEzBC,IAAAA,QAAQ,EAAEJ,YAAY,CAACW,IAAb,CAAkB,IAAlB,EAAwBR,QAAxB;AAFe,GAAtB,CAAP;AAIH;;MCjBY7B,OAAO,GAAG0B,YAAY,CAACG,iBAAD,EAAW;AAC1CjC,EAAAA,OAAO,EAAE;AACL,kBAAe,sBAAqBZ,OAAQ,IAAGsD,+BAAY,EAAG;AADzD;AADiC,CAAX,CAA5B;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/fetch-wrapper.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/fetch-wrapper.js new file mode 100644 index 000000000..e4ae1b0b4 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/fetch-wrapper.js @@ -0,0 +1,93 @@ +import { isPlainObject } from "is-plain-object"; +import nodeFetch from "node-fetch"; +import { RequestError } from "@octokit/request-error"; +import getBuffer from "./get-buffer-response"; +export default function fetchWrapper(requestOptions) { + if (isPlainObject(requestOptions.body) || + Array.isArray(requestOptions.body)) { + requestOptions.body = JSON.stringify(requestOptions.body); + } + let headers = {}; + let status; + let url; + const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch; + return fetch(requestOptions.url, Object.assign({ + method: requestOptions.method, + body: requestOptions.body, + headers: requestOptions.headers, + redirect: requestOptions.redirect, + }, requestOptions.request)) + .then((response) => { + url = response.url; + status = response.status; + for (const keyAndValue of response.headers) { + headers[keyAndValue[0]] = keyAndValue[1]; + } + if (status === 204 || status === 205) { + return; + } + // GitHub API returns 200 for HEAD requests + if (requestOptions.method === "HEAD") { + if (status < 400) { + return; + } + throw new RequestError(response.statusText, status, { + headers, + request: requestOptions, + }); + } + if (status === 304) { + throw new RequestError("Not modified", status, { + headers, + request: requestOptions, + }); + } + if (status >= 400) { + return response + .text() + .then((message) => { + const error = new RequestError(message, status, { + headers, + request: requestOptions, + }); + try { + let responseBody = JSON.parse(error.message); + Object.assign(error, responseBody); + let errors = responseBody.errors; + // Assumption `errors` would always be in Array format + error.message = + error.message + ": " + errors.map(JSON.stringify).join(", "); + } + catch (e) { + // ignore, see octokit/rest.js#684 + } + throw error; + }); + } + const contentType = response.headers.get("content-type"); + if (/application\/json/.test(contentType)) { + return response.json(); + } + if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { + return response.text(); + } + return getBuffer(response); + }) + .then((data) => { + return { + status, + url, + headers, + data, + }; + }) + .catch((error) => { + if (error instanceof RequestError) { + throw error; + } + throw new RequestError(error.message, 500, { + headers, + request: requestOptions, + }); + }); +} diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/get-buffer-response.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/get-buffer-response.js new file mode 100644 index 000000000..845a3947b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/get-buffer-response.js @@ -0,0 +1,3 @@ +export default function getBufferResponse(response) { + return response.arrayBuffer(); +} diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/index.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/index.js new file mode 100644 index 000000000..2460e992c --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/index.js @@ -0,0 +1,9 @@ +import { endpoint } from "@octokit/endpoint"; +import { getUserAgent } from "universal-user-agent"; +import { VERSION } from "./version"; +import withDefaults from "./with-defaults"; +export const request = withDefaults(endpoint, { + headers: { + "user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`, + }, +}); diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/version.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/version.js new file mode 100644 index 000000000..856641b39 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/version.js @@ -0,0 +1 @@ +export const VERSION = "5.4.9"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/with-defaults.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/with-defaults.js new file mode 100644 index 000000000..e20642945 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/with-defaults.js @@ -0,0 +1,22 @@ +import fetchWrapper from "./fetch-wrapper"; +export default function withDefaults(oldEndpoint, newDefaults) { + const endpoint = oldEndpoint.defaults(newDefaults); + const newApi = function (route, parameters) { + const endpointOptions = endpoint.merge(route, parameters); + if (!endpointOptions.request || !endpointOptions.request.hook) { + return fetchWrapper(endpoint.parse(endpointOptions)); + } + const request = (route, parameters) => { + return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters))); + }; + Object.assign(request, { + endpoint, + defaults: withDefaults.bind(null, endpoint), + }); + return endpointOptions.request.hook(request, endpointOptions); + }; + return Object.assign(newApi, { + endpoint, + defaults: withDefaults.bind(null, endpoint), + }); +} diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts new file mode 100644 index 000000000..4901c79e7 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts @@ -0,0 +1,11 @@ +import { EndpointInterface } from "@octokit/types"; +export default function fetchWrapper(requestOptions: ReturnType & { + redirect?: "error" | "follow" | "manual"; +}): Promise<{ + status: number; + url: string; + headers: { + [header: string]: string; + }; + data: any; +}>; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/get-buffer-response.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/get-buffer-response.d.ts new file mode 100644 index 000000000..915b70577 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/get-buffer-response.d.ts @@ -0,0 +1,2 @@ +import { Response } from "node-fetch"; +export default function getBufferResponse(response: Response): Promise; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/index.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/index.d.ts new file mode 100644 index 000000000..1030809f9 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/index.d.ts @@ -0,0 +1 @@ +export declare const request: import("@octokit/types").RequestInterface; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/version.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/version.d.ts new file mode 100644 index 000000000..cfc9b7aff --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/version.d.ts @@ -0,0 +1 @@ +export declare const VERSION = "5.4.9"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/with-defaults.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/with-defaults.d.ts new file mode 100644 index 000000000..00804693a --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/with-defaults.d.ts @@ -0,0 +1,2 @@ +import { EndpointInterface, RequestInterface, RequestParameters } from "@octokit/types"; +export default function withDefaults(oldEndpoint: EndpointInterface, newDefaults: RequestParameters): RequestInterface; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js new file mode 100644 index 000000000..37fefe452 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js @@ -0,0 +1,132 @@ +import { endpoint } from '@octokit/endpoint'; +import { getUserAgent } from 'universal-user-agent'; +import { isPlainObject } from 'is-plain-object'; +import nodeFetch from 'node-fetch'; +import { RequestError } from '@octokit/request-error'; + +const VERSION = "5.4.9"; + +function getBufferResponse(response) { + return response.arrayBuffer(); +} + +function fetchWrapper(requestOptions) { + if (isPlainObject(requestOptions.body) || + Array.isArray(requestOptions.body)) { + requestOptions.body = JSON.stringify(requestOptions.body); + } + let headers = {}; + let status; + let url; + const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch; + return fetch(requestOptions.url, Object.assign({ + method: requestOptions.method, + body: requestOptions.body, + headers: requestOptions.headers, + redirect: requestOptions.redirect, + }, requestOptions.request)) + .then((response) => { + url = response.url; + status = response.status; + for (const keyAndValue of response.headers) { + headers[keyAndValue[0]] = keyAndValue[1]; + } + if (status === 204 || status === 205) { + return; + } + // GitHub API returns 200 for HEAD requests + if (requestOptions.method === "HEAD") { + if (status < 400) { + return; + } + throw new RequestError(response.statusText, status, { + headers, + request: requestOptions, + }); + } + if (status === 304) { + throw new RequestError("Not modified", status, { + headers, + request: requestOptions, + }); + } + if (status >= 400) { + return response + .text() + .then((message) => { + const error = new RequestError(message, status, { + headers, + request: requestOptions, + }); + try { + let responseBody = JSON.parse(error.message); + Object.assign(error, responseBody); + let errors = responseBody.errors; + // Assumption `errors` would always be in Array format + error.message = + error.message + ": " + errors.map(JSON.stringify).join(", "); + } + catch (e) { + // ignore, see octokit/rest.js#684 + } + throw error; + }); + } + const contentType = response.headers.get("content-type"); + if (/application\/json/.test(contentType)) { + return response.json(); + } + if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { + return response.text(); + } + return getBufferResponse(response); + }) + .then((data) => { + return { + status, + url, + headers, + data, + }; + }) + .catch((error) => { + if (error instanceof RequestError) { + throw error; + } + throw new RequestError(error.message, 500, { + headers, + request: requestOptions, + }); + }); +} + +function withDefaults(oldEndpoint, newDefaults) { + const endpoint = oldEndpoint.defaults(newDefaults); + const newApi = function (route, parameters) { + const endpointOptions = endpoint.merge(route, parameters); + if (!endpointOptions.request || !endpointOptions.request.hook) { + return fetchWrapper(endpoint.parse(endpointOptions)); + } + const request = (route, parameters) => { + return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters))); + }; + Object.assign(request, { + endpoint, + defaults: withDefaults.bind(null, endpoint), + }); + return endpointOptions.request.hook(request, endpointOptions); + }; + return Object.assign(newApi, { + endpoint, + defaults: withDefaults.bind(null, endpoint), + }); +} + +const request = withDefaults(endpoint, { + headers: { + "user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`, + }, +}); + +export { request }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js.map new file mode 100644 index 000000000..a0f0426b0 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.9\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import { isPlainObject } from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["getBuffer"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/LICENSE b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/LICENSE similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/LICENSE rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/LICENSE diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/README.md b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/README.md similarity index 92% rename from node_modules/@octokit/rest/node_modules/@octokit/types/README.md rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/README.md index 25b8f03bf..707894566 100644 --- a/node_modules/@octokit/rest/node_modules/@octokit/types/README.md +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/README.md @@ -4,7 +4,6 @@ [![@latest](https://img.shields.io/npm/v/@octokit/types.svg)](https://www.npmjs.com/package/@octokit/types) [![Build Status](https://github.com/octokit/types.ts/workflows/Test/badge.svg)](https://github.com/octokit/types.ts/actions?workflow=Test) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/types.ts.svg)](https://greenkeeper.io/) @@ -26,7 +25,7 @@ See all exported types at https://octokit.github.io/types.ts ### Get parameter and response data types for a REST API endpoint ```ts -import { Endpoints } from "./src"; +import { Endpoints } from "@octokit/types"; type listUserReposParameters = Endpoints["GET /repos/:owner/:repo"]["parameters"]; type listUserReposResponse = Endpoints["GET /repos/:owner/:repo"]["response"]; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-node/index.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-node/index.js new file mode 100644 index 000000000..988ad8210 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-node/index.js @@ -0,0 +1,8 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +const VERSION = "5.4.0"; + +exports.VERSION = VERSION; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-node/index.js.map similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js.map rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-node/index.js.map diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/AuthInterface.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/AuthInterface.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/AuthInterface.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/AuthInterface.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/EndpointDefaults.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/EndpointDefaults.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/EndpointInterface.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/EndpointInterface.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/EndpointInterface.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/EndpointInterface.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/EndpointOptions.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/EndpointOptions.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/EndpointOptions.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/EndpointOptions.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/Fetch.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/Fetch.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/Fetch.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/Fetch.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/OctokitResponse.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/OctokitResponse.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/OctokitResponse.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/OctokitResponse.js diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/rest-endpoint-methods-types.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestError.js similarity index 100% rename from node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/rest-endpoint-methods-types.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestError.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestHeaders.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestHeaders.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestHeaders.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestHeaders.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestInterface.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestInterface.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestInterface.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestInterface.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestMethod.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestMethod.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestMethod.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestMethod.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestOptions.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestOptions.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestOptions.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestOptions.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestParameters.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestParameters.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestParameters.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestParameters.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestRequestOptions.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/RequestRequestOptions.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/ResponseHeaders.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/ResponseHeaders.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/Route.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/Route.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/Route.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/Route.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/Signal.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/Signal.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/Signal.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/Signal.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/StrategyInterface.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/StrategyInterface.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/StrategyInterface.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/StrategyInterface.js diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/Url.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/Url.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/Url.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/Url.js diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/VERSION.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/VERSION.js new file mode 100644 index 000000000..6e4fb42e9 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/VERSION.js @@ -0,0 +1 @@ +export const VERSION = "5.4.0"; diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/generated/Endpoints.js similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/generated/Endpoints.js diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/index.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/index.js new file mode 100644 index 000000000..004ae9b22 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-src/index.js @@ -0,0 +1,21 @@ +export * from "./AuthInterface"; +export * from "./EndpointDefaults"; +export * from "./EndpointInterface"; +export * from "./EndpointOptions"; +export * from "./Fetch"; +export * from "./OctokitResponse"; +export * from "./RequestError"; +export * from "./RequestHeaders"; +export * from "./RequestInterface"; +export * from "./RequestMethod"; +export * from "./RequestOptions"; +export * from "./RequestParameters"; +export * from "./RequestRequestOptions"; +export * from "./ResponseHeaders"; +export * from "./Route"; +export * from "./Signal"; +export * from "./StrategyInterface"; +export * from "./Url"; +export * from "./VERSION"; +export * from "./GetResponseTypeFromEndpointMethod"; +export * from "./generated/Endpoints"; diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/AuthInterface.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/AuthInterface.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/AuthInterface.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/AuthInterface.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Fetch.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/Fetch.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Fetch.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/Fetch.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts similarity index 100% rename from node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestError.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestError.d.ts new file mode 100644 index 000000000..89174e6ee --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestError.d.ts @@ -0,0 +1,11 @@ +export declare type RequestError = { + name: string; + status: number; + documentation_url: string; + errors?: Array<{ + resource: string; + code: string; + field: string; + message?: string; + }>; +}; diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestInterface.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestInterface.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestInterface.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestInterface.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestMethod.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestMethod.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestMethod.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestMethod.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestOptions.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestOptions.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestOptions.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestOptions.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestParameters.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestParameters.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestParameters.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestParameters.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Route.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/Route.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Route.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/Route.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Signal.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/Signal.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Signal.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/Signal.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Url.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/Url.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Url.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/Url.d.ts diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/VERSION.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/VERSION.d.ts new file mode 100644 index 000000000..a81bf96f7 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/VERSION.d.ts @@ -0,0 +1 @@ +export declare const VERSION = "5.4.0"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts new file mode 100644 index 000000000..85eb7fba7 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts @@ -0,0 +1,39437 @@ +/// +import { OctokitResponse } from "../OctokitResponse"; +import { RequestHeaders } from "../RequestHeaders"; +import { RequestRequestOptions } from "../RequestRequestOptions"; +declare type RequiredPreview = { + mediaType: { + previews: [T, ...string[]]; + }; +}; +export interface Endpoints { + /** + * @see https://developer.github.com/v3/apps/#delete-an-installation-for-the-authenticated-app + */ + "DELETE /app/installations/:installation_id": { + parameters: AppsDeleteInstallationEndpoint; + request: AppsDeleteInstallationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#unsuspend-an-app-installation + */ + "DELETE /app/installations/:installation_id/suspended": { + parameters: AppsUnsuspendInstallationEndpoint; + request: AppsUnsuspendInstallationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-authorization + */ + "DELETE /applications/:client_id/grant": { + parameters: AppsDeleteAuthorizationEndpoint; + request: AppsDeleteAuthorizationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application + */ + "DELETE /applications/:client_id/grants/:access_token": { + parameters: AppsRevokeGrantForApplicationEndpoint; + request: AppsRevokeGrantForApplicationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-token + */ + "DELETE /applications/:client_id/token": { + parameters: AppsDeleteTokenEndpoint; + request: AppsDeleteTokenRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application + */ + "DELETE /applications/:client_id/tokens/:access_token": { + parameters: AppsRevokeAuthorizationForApplicationEndpoint; + request: AppsRevokeAuthorizationForApplicationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant + */ + "DELETE /applications/grants/:grant_id": { + parameters: OauthAuthorizationsDeleteGrantEndpoint; + request: OauthAuthorizationsDeleteGrantRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization + */ + "DELETE /authorizations/:authorization_id": { + parameters: OauthAuthorizationsDeleteAuthorizationEndpoint; + request: OauthAuthorizationsDeleteAuthorizationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#delete-a-self-hosted-runner-group-from-an-enterprise + */ + "DELETE /enterprises/:enterprise/actions/runner-groups/:runner_group_id": { + parameters: EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseEndpoint; + request: EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "DELETE /enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations/:org_id": { + parameters: EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseEndpoint; + request: EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#remove-a-self-hosted-runner-from-a-group-for-an-enterprise + */ + "DELETE /enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners/:runner_id": { + parameters: EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseEndpoint; + request: EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#delete-self-hosted-runner-from-an-enterprise + */ + "DELETE /enterprises/:enterprise/actions/runners/:runner_id": { + parameters: EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseEndpoint; + request: EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#delete-a-gist + */ + "DELETE /gists/:gist_id": { + parameters: GistsDeleteEndpoint; + request: GistsDeleteRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/comments/#delete-a-gist-comment + */ + "DELETE /gists/:gist_id/comments/:comment_id": { + parameters: GistsDeleteCommentEndpoint; + request: GistsDeleteCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#unstar-a-gist + */ + "DELETE /gists/:gist_id/star": { + parameters: GistsUnstarEndpoint; + request: GistsUnstarRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/installations/#revoke-an-installation-access-token + */ + "DELETE /installation/token": { + parameters: AppsRevokeInstallationAccessTokenEndpoint; + request: AppsRevokeInstallationAccessTokenRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription + */ + "DELETE /notifications/threads/:thread_id/subscription": { + parameters: ActivityDeleteThreadSubscriptionEndpoint; + request: ActivityDeleteThreadSubscriptionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#delete-a-self-hosted-runner-group-from-an-organization + */ + "DELETE /orgs/:org/actions/runner-groups/:runner_group_id": { + parameters: ActionsDeleteSelfHostedRunnerGroupFromOrgEndpoint; + request: ActionsDeleteSelfHostedRunnerGroupFromOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "DELETE /orgs/:org/actions/runner-groups/:runner_group_id/repositories/:repository_id": { + parameters: ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgEndpoint; + request: ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#remove-a-self-hosted-runner-from-a-group-for-an-organization + */ + "DELETE /orgs/:org/actions/runner-groups/:runner_group_id/runners/:runner_id": { + parameters: ActionsRemoveSelfHostedRunnerFromGroupForOrgEndpoint; + request: ActionsRemoveSelfHostedRunnerFromGroupForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-an-organization + */ + "DELETE /orgs/:org/actions/runners/:runner_id": { + parameters: ActionsDeleteSelfHostedRunnerFromOrgEndpoint; + request: ActionsDeleteSelfHostedRunnerFromOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#delete-an-organization-secret + */ + "DELETE /orgs/:org/actions/secrets/:secret_name": { + parameters: ActionsDeleteOrgSecretEndpoint; + request: ActionsDeleteOrgSecretRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#remove-selected-repository-from-an-organization-secret + */ + "DELETE /orgs/:org/actions/secrets/:secret_name/repositories/:repository_id": { + parameters: ActionsRemoveSelectedRepoFromOrgSecretEndpoint; + request: ActionsRemoveSelectedRepoFromOrgSecretRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/blocking/#unblock-a-user-from-an-organization + */ + "DELETE /orgs/:org/blocks/:username": { + parameters: OrgsUnblockUserEndpoint; + request: OrgsUnblockUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization + */ + "DELETE /orgs/:org/credential-authorizations/:credential_id": { + parameters: OrgsRemoveSamlSsoAuthorizationEndpoint; + request: OrgsRemoveSamlSsoAuthorizationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/hooks/#delete-an-organization-webhook + */ + "DELETE /orgs/:org/hooks/:hook_id": { + parameters: OrgsDeleteWebhookEndpoint; + request: OrgsDeleteWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/interactions/orgs/#remove-interaction-restrictions-for-an-organization + */ + "DELETE /orgs/:org/interaction-limits": { + parameters: InteractionsRemoveRestrictionsForOrgEndpoint; + request: InteractionsRemoveRestrictionsForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#remove-an-organization-member + */ + "DELETE /orgs/:org/members/:username": { + parameters: OrgsRemoveMemberEndpoint; + request: OrgsRemoveMemberRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#remove-organization-membership-for-a-user + */ + "DELETE /orgs/:org/memberships/:username": { + parameters: OrgsRemoveMembershipForUserEndpoint; + request: OrgsRemoveMembershipForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/orgs/#delete-an-organization-migration-archive + */ + "DELETE /orgs/:org/migrations/:migration_id/archive": { + parameters: MigrationsDeleteArchiveForOrgEndpoint; + request: MigrationsDeleteArchiveForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/orgs/#unlock-an-organization-repository + */ + "DELETE /orgs/:org/migrations/:migration_id/repos/:repo_name/lock": { + parameters: MigrationsUnlockRepoForOrgEndpoint; + request: MigrationsUnlockRepoForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator-from-an-organization + */ + "DELETE /orgs/:org/outside_collaborators/:username": { + parameters: OrgsRemoveOutsideCollaboratorEndpoint; + request: OrgsRemoveOutsideCollaboratorRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#remove-public-organization-membership-for-the-authenticated-user + */ + "DELETE /orgs/:org/public_members/:username": { + parameters: OrgsRemovePublicMembershipForAuthenticatedUserEndpoint; + request: OrgsRemovePublicMembershipForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#delete-a-team + */ + "DELETE /orgs/:org/teams/:team_slug": { + parameters: TeamsDeleteInOrgEndpoint; + request: TeamsDeleteInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussions/#delete-a-discussion + */ + "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number": { + parameters: TeamsDeleteDiscussionInOrgEndpoint; + request: TeamsDeleteDiscussionInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment + */ + "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { + parameters: TeamsDeleteDiscussionCommentInOrgEndpoint; + request: TeamsDeleteDiscussionCommentInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#delete-team-discussion-comment-reaction + */ + "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id": { + parameters: ReactionsDeleteForTeamDiscussionCommentEndpoint; + request: ReactionsDeleteForTeamDiscussionCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#delete-team-discussion-reaction + */ + "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id": { + parameters: ReactionsDeleteForTeamDiscussionEndpoint; + request: ReactionsDeleteForTeamDiscussionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user + */ + "DELETE /orgs/:org/teams/:team_slug/memberships/:username": { + parameters: TeamsRemoveMembershipForUserInOrgEndpoint; + request: TeamsRemoveMembershipForUserInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#remove-a-project-from-a-team + */ + "DELETE /orgs/:org/teams/:team_slug/projects/:project_id": { + parameters: TeamsRemoveProjectInOrgEndpoint; + request: TeamsRemoveProjectInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#remove-a-repository-from-a-team + */ + "DELETE /orgs/:org/teams/:team_slug/repos/:owner/:repo": { + parameters: TeamsRemoveRepoInOrgEndpoint; + request: TeamsRemoveRepoInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/#delete-a-project + */ + "DELETE /projects/:project_id": { + parameters: ProjectsDeleteEndpoint; + request: ProjectsDeleteRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/collaborators/#remove-project-collaborator + */ + "DELETE /projects/:project_id/collaborators/:username": { + parameters: ProjectsRemoveCollaboratorEndpoint; + request: ProjectsRemoveCollaboratorRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/columns/#delete-a-project-column + */ + "DELETE /projects/columns/:column_id": { + parameters: ProjectsDeleteColumnEndpoint; + request: ProjectsDeleteColumnRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/cards/#delete-a-project-card + */ + "DELETE /projects/columns/cards/:card_id": { + parameters: ProjectsDeleteCardEndpoint; + request: ProjectsDeleteCardRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy + */ + "DELETE /reactions/:reaction_id": { + parameters: ReactionsDeleteLegacyEndpoint; + request: ReactionsDeleteLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#delete-a-repository + */ + "DELETE /repos/:owner/:repo": { + parameters: ReposDeleteEndpoint; + request: ReposDeleteRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/artifacts/#delete-an-artifact + */ + "DELETE /repos/:owner/:repo/actions/artifacts/:artifact_id": { + parameters: ActionsDeleteArtifactEndpoint; + request: ActionsDeleteArtifactRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-a-repository + */ + "DELETE /repos/:owner/:repo/actions/runners/:runner_id": { + parameters: ActionsDeleteSelfHostedRunnerFromRepoEndpoint; + request: ActionsDeleteSelfHostedRunnerFromRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-runs/#delete-a-workflow-run + */ + "DELETE /repos/:owner/:repo/actions/runs/:run_id": { + parameters: ActionsDeleteWorkflowRunEndpoint; + request: ActionsDeleteWorkflowRunRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-runs/#delete-workflow-run-logs + */ + "DELETE /repos/:owner/:repo/actions/runs/:run_id/logs": { + parameters: ActionsDeleteWorkflowRunLogsEndpoint; + request: ActionsDeleteWorkflowRunLogsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#delete-a-repository-secret + */ + "DELETE /repos/:owner/:repo/actions/secrets/:secret_name": { + parameters: ActionsDeleteRepoSecretEndpoint; + request: ActionsDeleteRepoSecretRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#disable-automated-security-fixes + */ + "DELETE /repos/:owner/:repo/automated-security-fixes": { + parameters: ReposDisableAutomatedSecurityFixesEndpoint; + request: ReposDisableAutomatedSecurityFixesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#delete-branch-protection + */ + "DELETE /repos/:owner/:repo/branches/:branch/protection": { + parameters: ReposDeleteBranchProtectionEndpoint; + request: ReposDeleteBranchProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#delete-admin-branch-protection + */ + "DELETE /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { + parameters: ReposDeleteAdminBranchProtectionEndpoint; + request: ReposDeleteAdminBranchProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#delete-pull-request-review-protection + */ + "DELETE /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { + parameters: ReposDeletePullRequestReviewProtectionEndpoint; + request: ReposDeletePullRequestReviewProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#delete-commit-signature-protection + */ + "DELETE /repos/:owner/:repo/branches/:branch/protection/required_signatures": { + parameters: ReposDeleteCommitSignatureProtectionEndpoint; + request: ReposDeleteCommitSignatureProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#remove-status-check-protection + */ + "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { + parameters: ReposRemoveStatusCheckProtectionEndpoint; + request: ReposRemoveStatusCheckProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#remove-status-check-contexts + */ + "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { + parameters: ReposRemoveStatusCheckContextsEndpoint; + request: ReposRemoveStatusCheckContextsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#delete-access-restrictions + */ + "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions": { + parameters: ReposDeleteAccessRestrictionsEndpoint; + request: ReposDeleteAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#remove-app-access-restrictions + */ + "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { + parameters: ReposRemoveAppAccessRestrictionsEndpoint; + request: ReposRemoveAppAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#remove-team-access-restrictions + */ + "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { + parameters: ReposRemoveTeamAccessRestrictionsEndpoint; + request: ReposRemoveTeamAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#remove-user-access-restrictions + */ + "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { + parameters: ReposRemoveUserAccessRestrictionsEndpoint; + request: ReposRemoveUserAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/collaborators/#remove-a-repository-collaborator + */ + "DELETE /repos/:owner/:repo/collaborators/:username": { + parameters: ReposRemoveCollaboratorEndpoint; + request: ReposRemoveCollaboratorRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/comments/#delete-a-commit-comment + */ + "DELETE /repos/:owner/:repo/comments/:comment_id": { + parameters: ReposDeleteCommitCommentEndpoint; + request: ReposDeleteCommitCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#delete-a-commit-comment-reaction + */ + "DELETE /repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id": { + parameters: ReactionsDeleteForCommitCommentEndpoint; + request: ReactionsDeleteForCommitCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/contents/#delete-a-file + */ + "DELETE /repos/:owner/:repo/contents/:path": { + parameters: ReposDeleteFileEndpoint; + request: ReposDeleteFileRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/deployments/#delete-a-deployment + */ + "DELETE /repos/:owner/:repo/deployments/:deployment_id": { + parameters: ReposDeleteDeploymentEndpoint; + request: ReposDeleteDeploymentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/refs/#delete-a-reference + */ + "DELETE /repos/:owner/:repo/git/refs/:ref": { + parameters: GitDeleteRefEndpoint; + request: GitDeleteRefRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/hooks/#delete-a-repository-webhook + */ + "DELETE /repos/:owner/:repo/hooks/:hook_id": { + parameters: ReposDeleteWebhookEndpoint; + request: ReposDeleteWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/source_imports/#cancel-an-import + */ + "DELETE /repos/:owner/:repo/import": { + parameters: MigrationsCancelImportEndpoint; + request: MigrationsCancelImportRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/interactions/repos/#remove-interaction-restrictions-for-a-repository + */ + "DELETE /repos/:owner/:repo/interaction-limits": { + parameters: InteractionsRemoveRestrictionsForRepoEndpoint; + request: InteractionsRemoveRestrictionsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation + */ + "DELETE /repos/:owner/:repo/invitations/:invitation_id": { + parameters: ReposDeleteInvitationEndpoint; + request: ReposDeleteInvitationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue + */ + "DELETE /repos/:owner/:repo/issues/:issue_number/assignees": { + parameters: IssuesRemoveAssigneesEndpoint; + request: IssuesRemoveAssigneesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue + */ + "DELETE /repos/:owner/:repo/issues/:issue_number/labels": { + parameters: IssuesRemoveAllLabelsEndpoint; + request: IssuesRemoveAllLabelsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue + */ + "DELETE /repos/:owner/:repo/issues/:issue_number/labels/:name": { + parameters: IssuesRemoveLabelEndpoint; + request: IssuesRemoveLabelRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/#unlock-an-issue + */ + "DELETE /repos/:owner/:repo/issues/:issue_number/lock": { + parameters: IssuesUnlockEndpoint; + request: IssuesUnlockRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#delete-an-issue-reaction + */ + "DELETE /repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id": { + parameters: ReactionsDeleteForIssueEndpoint; + request: ReactionsDeleteForIssueRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/comments/#delete-an-issue-comment + */ + "DELETE /repos/:owner/:repo/issues/comments/:comment_id": { + parameters: IssuesDeleteCommentEndpoint; + request: IssuesDeleteCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#delete-an-issue-comment-reaction + */ + "DELETE /repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id": { + parameters: ReactionsDeleteForIssueCommentEndpoint; + request: ReactionsDeleteForIssueCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/keys/#delete-a-deploy-key + */ + "DELETE /repos/:owner/:repo/keys/:key_id": { + parameters: ReposDeleteDeployKeyEndpoint; + request: ReposDeleteDeployKeyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#delete-a-label + */ + "DELETE /repos/:owner/:repo/labels/:name": { + parameters: IssuesDeleteLabelEndpoint; + request: IssuesDeleteLabelRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/milestones/#delete-a-milestone + */ + "DELETE /repos/:owner/:repo/milestones/:milestone_number": { + parameters: IssuesDeleteMilestoneEndpoint; + request: IssuesDeleteMilestoneRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/pages/#delete-a-github-pages-site + */ + "DELETE /repos/:owner/:repo/pages": { + parameters: ReposDeletePagesSiteEndpoint; + request: ReposDeletePagesSiteRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/review_requests/#remove-requested-reviewers-from-a-pull-request + */ + "DELETE /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { + parameters: PullsRemoveRequestedReviewersEndpoint; + request: PullsRemoveRequestedReviewersRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review-for-a-pull-request + */ + "DELETE /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { + parameters: PullsDeletePendingReviewEndpoint; + request: PullsDeletePendingReviewRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/comments/#delete-a-review-comment-for-a-pull-request + */ + "DELETE /repos/:owner/:repo/pulls/comments/:comment_id": { + parameters: PullsDeleteReviewCommentEndpoint; + request: PullsDeleteReviewCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#delete-a-pull-request-comment-reaction + */ + "DELETE /repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id": { + parameters: ReactionsDeleteForPullRequestCommentEndpoint; + request: ReactionsDeleteForPullRequestCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#delete-a-release + */ + "DELETE /repos/:owner/:repo/releases/:release_id": { + parameters: ReposDeleteReleaseEndpoint; + request: ReposDeleteReleaseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#delete-a-release-asset + */ + "DELETE /repos/:owner/:repo/releases/assets/:asset_id": { + parameters: ReposDeleteReleaseAssetEndpoint; + request: ReposDeleteReleaseAssetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription + */ + "DELETE /repos/:owner/:repo/subscription": { + parameters: ActivityDeleteRepoSubscriptionEndpoint; + request: ActivityDeleteRepoSubscriptionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#disable-vulnerability-alerts + */ + "DELETE /repos/:owner/:repo/vulnerability-alerts": { + parameters: ReposDisableVulnerabilityAlertsEndpoint; + request: ReposDisableVulnerabilityAlertsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#delete-a-scim-group-from-an-enterprise + */ + "DELETE /scim/v2/enterprises/:enterprise/Groups/:scim_group_id": { + parameters: EnterpriseAdminDeleteScimGroupFromEnterpriseEndpoint; + request: EnterpriseAdminDeleteScimGroupFromEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#delete-a-scim-user-from-an-enterprise + */ + "DELETE /scim/v2/enterprises/:enterprise/Users/:scim_user_id": { + parameters: EnterpriseAdminDeleteUserFromEnterpriseEndpoint; + request: EnterpriseAdminDeleteUserFromEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/scim/#delete-a-scim-user-from-an-organization + */ + "DELETE /scim/v2/organizations/:org/Users/:scim_user_id": { + parameters: ScimDeleteUserFromOrgEndpoint; + request: ScimDeleteUserFromOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#delete-a-team-legacy + */ + "DELETE /teams/:team_id": { + parameters: TeamsDeleteLegacyEndpoint; + request: TeamsDeleteLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy + */ + "DELETE /teams/:team_id/discussions/:discussion_number": { + parameters: TeamsDeleteDiscussionLegacyEndpoint; + request: TeamsDeleteDiscussionLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-discussion-comment-legacy + */ + "DELETE /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { + parameters: TeamsDeleteDiscussionCommentLegacyEndpoint; + request: TeamsDeleteDiscussionCommentLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#remove-team-member-legacy + */ + "DELETE /teams/:team_id/members/:username": { + parameters: TeamsRemoveMemberLegacyEndpoint; + request: TeamsRemoveMemberLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#remove-team-membership-for-a-user-legacy + */ + "DELETE /teams/:team_id/memberships/:username": { + parameters: TeamsRemoveMembershipForUserLegacyEndpoint; + request: TeamsRemoveMembershipForUserLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#remove-a-project-from-a-team-legacy + */ + "DELETE /teams/:team_id/projects/:project_id": { + parameters: TeamsRemoveProjectLegacyEndpoint; + request: TeamsRemoveProjectLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#remove-a-repository-from-a-team-legacy + */ + "DELETE /teams/:team_id/repos/:owner/:repo": { + parameters: TeamsRemoveRepoLegacyEndpoint; + request: TeamsRemoveRepoLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/blocking/#unblock-a-user + */ + "DELETE /user/blocks/:username": { + parameters: UsersUnblockEndpoint; + request: UsersUnblockRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/emails/#delete-an-email-address-for-the-authenticated-user + */ + "DELETE /user/emails": { + parameters: UsersDeleteEmailForAuthenticatedEndpoint; + request: UsersDeleteEmailForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/followers/#unfollow-a-user + */ + "DELETE /user/following/:username": { + parameters: UsersUnfollowEndpoint; + request: UsersUnfollowRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key-for-the-authenticated-user + */ + "DELETE /user/gpg_keys/:gpg_key_id": { + parameters: UsersDeleteGpgKeyForAuthenticatedEndpoint; + request: UsersDeleteGpgKeyForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/installations/#remove-a-repository-from-an-app-installation + */ + "DELETE /user/installations/:installation_id/repositories/:repository_id": { + parameters: AppsRemoveRepoFromInstallationEndpoint; + request: AppsRemoveRepoFromInstallationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/keys/#delete-a-public-ssh-key-for-the-authenticated-user + */ + "DELETE /user/keys/:key_id": { + parameters: UsersDeletePublicSshKeyForAuthenticatedEndpoint; + request: UsersDeletePublicSshKeyForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/users/#delete-a-user-migration-archive + */ + "DELETE /user/migrations/:migration_id/archive": { + parameters: MigrationsDeleteArchiveForAuthenticatedUserEndpoint; + request: MigrationsDeleteArchiveForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/users/#unlock-a-user-repository + */ + "DELETE /user/migrations/:migration_id/repos/:repo_name/lock": { + parameters: MigrationsUnlockRepoForAuthenticatedUserEndpoint; + request: MigrationsUnlockRepoForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation + */ + "DELETE /user/repository_invitations/:invitation_id": { + parameters: ReposDeclineInvitationEndpoint; + request: ReposDeclineInvitationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user + */ + "DELETE /user/starred/:owner/:repo": { + parameters: ActivityUnstarRepoForAuthenticatedUserEndpoint; + request: ActivityUnstarRepoForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#get-the-authenticated-app + */ + "GET /app": { + parameters: AppsGetAuthenticatedEndpoint; + request: AppsGetAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#list-installations-for-the-authenticated-app + */ + "GET /app/installations": { + parameters: AppsListInstallationsEndpoint; + request: AppsListInstallationsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#get-an-installation-for-the-authenticated-app + */ + "GET /app/installations/:installation_id": { + parameters: AppsGetInstallationEndpoint; + request: AppsGetInstallationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization + */ + "GET /applications/:client_id/tokens/:access_token": { + parameters: AppsCheckAuthorizationEndpoint; + request: AppsCheckAuthorizationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/oauth_authorizations/#list-your-grants + */ + "GET /applications/grants": { + parameters: OauthAuthorizationsListGrantsEndpoint; + request: OauthAuthorizationsListGrantsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant + */ + "GET /applications/grants/:grant_id": { + parameters: OauthAuthorizationsGetGrantEndpoint; + request: OauthAuthorizationsGetGrantRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#get-an-app + */ + "GET /apps/:app_slug": { + parameters: AppsGetBySlugEndpoint; + request: AppsGetBySlugRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations + */ + "GET /authorizations": { + parameters: OauthAuthorizationsListAuthorizationsEndpoint; + request: OauthAuthorizationsListAuthorizationsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization + */ + "GET /authorizations/:authorization_id": { + parameters: OauthAuthorizationsGetAuthorizationEndpoint; + request: OauthAuthorizationsGetAuthorizationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/codes_of_conduct/#get-all-codes-of-conduct + */ + "GET /codes_of_conduct": { + parameters: CodesOfConductGetAllCodesOfConductEndpoint; + request: CodesOfConductGetAllCodesOfConductRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/codes_of_conduct/#get-a-code-of-conduct + */ + "GET /codes_of_conduct/:key": { + parameters: CodesOfConductGetConductCodeEndpoint; + request: CodesOfConductGetConductCodeRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/emojis/#get-emojis + */ + "GET /emojis": { + parameters: EmojisGetEndpoint; + request: EmojisGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#list-self-hosted-runner-groups-for-an-enterprise + */ + "GET /enterprises/:enterprise/actions/runner-groups": { + parameters: EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseEndpoint; + request: EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#get-a-self-hosted-runner-group-for-an-enterprise + */ + "GET /enterprises/:enterprise/actions/runner-groups/:runner_group_id": { + parameters: EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseEndpoint; + request: EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise + */ + "GET /enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations": { + parameters: EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseEndpoint; + request: EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#list-self-hosted-runners-in-a-group-for-an-enterprise + */ + "GET /enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners": { + parameters: EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseEndpoint; + request: EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#list-self-hosted-runners-for-an-enterprise + */ + "GET /enterprises/:enterprise/actions/runners": { + parameters: EnterpriseAdminListSelfHostedRunnersForEnterpriseEndpoint; + request: EnterpriseAdminListSelfHostedRunnersForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#get-a-self-hosted-runner-for-an-enterprise + */ + "GET /enterprises/:enterprise/actions/runners/:runner_id": { + parameters: EnterpriseAdminGetSelfHostedRunnerForEnterpriseEndpoint; + request: EnterpriseAdminGetSelfHostedRunnerForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#list-runner-applications-for-an-enterprise + */ + "GET /enterprises/:enterprise/actions/runners/downloads": { + parameters: EnterpriseAdminListRunnerApplicationsForEnterpriseEndpoint; + request: EnterpriseAdminListRunnerApplicationsForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/billing/#get-github-actions-billing-for-an-enterprise + */ + "GET /enterprises/:enterprise/settings/billing/actions": { + parameters: EnterpriseAdminGetGithubActionsBillingGheEndpoint; + request: EnterpriseAdminGetGithubActionsBillingGheRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/billing/#get-github-packages-billing-for-an-enterprise + */ + "GET /enterprises/:enterprise/settings/billing/packages": { + parameters: EnterpriseAdminGetGithubPackagesBillingGheEndpoint; + request: EnterpriseAdminGetGithubPackagesBillingGheRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/billing/#get-shared-storage-billing-for-an-enterprise + */ + "GET /enterprises/:enterprise/settings/billing/shared-storage": { + parameters: EnterpriseAdminGetSharedStorageBillingGheEndpoint; + request: EnterpriseAdminGetSharedStorageBillingGheRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/events/#list-public-events + */ + "GET /events": { + parameters: ActivityListPublicEventsEndpoint; + request: ActivityListPublicEventsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/feeds/#get-feeds + */ + "GET /feeds": { + parameters: ActivityGetFeedsEndpoint; + request: ActivityGetFeedsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#list-gists-for-the-authenticated-user + */ + "GET /gists": { + parameters: GistsListEndpoint; + request: GistsListRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#get-a-gist + */ + "GET /gists/:gist_id": { + parameters: GistsGetEndpoint; + request: GistsGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#get-a-gist-revision + */ + "GET /gists/:gist_id/:sha": { + parameters: GistsGetRevisionEndpoint; + request: GistsGetRevisionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/comments/#list-gist-comments + */ + "GET /gists/:gist_id/comments": { + parameters: GistsListCommentsEndpoint; + request: GistsListCommentsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/comments/#get-a-gist-comment + */ + "GET /gists/:gist_id/comments/:comment_id": { + parameters: GistsGetCommentEndpoint; + request: GistsGetCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#list-gist-commits + */ + "GET /gists/:gist_id/commits": { + parameters: GistsListCommitsEndpoint; + request: GistsListCommitsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#list-gist-forks + */ + "GET /gists/:gist_id/forks": { + parameters: GistsListForksEndpoint; + request: GistsListForksRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#check-if-a-gist-is-starred + */ + "GET /gists/:gist_id/star": { + parameters: GistsCheckIsStarredEndpoint; + request: GistsCheckIsStarredRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#list-public-gists + */ + "GET /gists/public": { + parameters: GistsListPublicEndpoint; + request: GistsListPublicRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#list-starred-gists + */ + "GET /gists/starred": { + parameters: GistsListStarredEndpoint; + request: GistsListStarredRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gitignore/#get-all-gitignore-templates + */ + "GET /gitignore/templates": { + parameters: GitignoreGetAllTemplatesEndpoint; + request: GitignoreGetAllTemplatesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gitignore/#get-a-gitignore-template + */ + "GET /gitignore/templates/:name": { + parameters: GitignoreGetTemplateEndpoint; + request: GitignoreGetTemplateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-app-installation + */ + "GET /installation/repositories": { + parameters: AppsListReposAccessibleToInstallationEndpoint; + request: AppsListReposAccessibleToInstallationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user + */ + "GET /issues": { + parameters: IssuesListEndpoint; + request: IssuesListRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/licenses/#get-all-commonly-used-licenses + */ + "GET /licenses": { + parameters: LicensesGetAllCommonlyUsedEndpoint; + request: LicensesGetAllCommonlyUsedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/licenses/#get-a-license + */ + "GET /licenses/:license": { + parameters: LicensesGetEndpoint; + request: LicensesGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/marketplace/#get-a-subscription-plan-for-an-account + */ + "GET /marketplace_listing/accounts/:account_id": { + parameters: AppsGetSubscriptionPlanForAccountEndpoint; + request: AppsGetSubscriptionPlanForAccountRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/marketplace/#list-plans + */ + "GET /marketplace_listing/plans": { + parameters: AppsListPlansEndpoint; + request: AppsListPlansRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/marketplace/#list-accounts-for-a-plan + */ + "GET /marketplace_listing/plans/:plan_id/accounts": { + parameters: AppsListAccountsForPlanEndpoint; + request: AppsListAccountsForPlanRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/marketplace/#get-a-subscription-plan-for-an-account-stubbed + */ + "GET /marketplace_listing/stubbed/accounts/:account_id": { + parameters: AppsGetSubscriptionPlanForAccountStubbedEndpoint; + request: AppsGetSubscriptionPlanForAccountStubbedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/marketplace/#list-plans-stubbed + */ + "GET /marketplace_listing/stubbed/plans": { + parameters: AppsListPlansStubbedEndpoint; + request: AppsListPlansStubbedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/marketplace/#list-accounts-for-a-plan-stubbed + */ + "GET /marketplace_listing/stubbed/plans/:plan_id/accounts": { + parameters: AppsListAccountsForPlanStubbedEndpoint; + request: AppsListAccountsForPlanStubbedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/meta/#get-github-meta-information + */ + "GET /meta": { + parameters: MetaGetEndpoint; + request: MetaGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories + */ + "GET /networks/:owner/:repo/events": { + parameters: ActivityListPublicEventsForRepoNetworkEndpoint; + request: ActivityListPublicEventsForRepoNetworkRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/notifications/#list-notifications-for-the-authenticated-user + */ + "GET /notifications": { + parameters: ActivityListNotificationsForAuthenticatedUserEndpoint; + request: ActivityListNotificationsForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/notifications/#get-a-thread + */ + "GET /notifications/threads/:thread_id": { + parameters: ActivityGetThreadEndpoint; + request: ActivityGetThreadRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription-for-the-authenticated-user + */ + "GET /notifications/threads/:thread_id/subscription": { + parameters: ActivityGetThreadSubscriptionForAuthenticatedUserEndpoint; + request: ActivityGetThreadSubscriptionForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/#list-organizations + */ + "GET /organizations": { + parameters: OrgsListEndpoint; + request: OrgsListRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/#get-an-organization + */ + "GET /orgs/:org": { + parameters: OrgsGetEndpoint; + request: OrgsGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#list-self-hosted-runner-groups-for-an-organization + */ + "GET /orgs/:org/actions/runner-groups": { + parameters: ActionsListSelfHostedRunnerGroupsForOrgEndpoint; + request: ActionsListSelfHostedRunnerGroupsForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#get-a-self-hosted-runner-group-for-an-organization + */ + "GET /orgs/:org/actions/runner-groups/:runner_group_id": { + parameters: ActionsGetSelfHostedRunnerGroupForOrgEndpoint; + request: ActionsGetSelfHostedRunnerGroupForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#list-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "GET /orgs/:org/actions/runner-groups/:runner_group_id/repositories": { + parameters: ActionsListRepoAccessToSelfHostedRunnerGroupInOrgEndpoint; + request: ActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#list-self-hosted-runners-in-a-group-for-an-organization + */ + "GET /orgs/:org/actions/runner-groups/:runner_group_id/runners": { + parameters: ActionsListSelfHostedRunnersInGroupForOrgEndpoint; + request: ActionsListSelfHostedRunnersInGroupForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization + */ + "GET /orgs/:org/actions/runners": { + parameters: ActionsListSelfHostedRunnersForOrgEndpoint; + request: ActionsListSelfHostedRunnersForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-an-organization + */ + "GET /orgs/:org/actions/runners/:runner_id": { + parameters: ActionsGetSelfHostedRunnerForOrgEndpoint; + request: ActionsGetSelfHostedRunnerForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-an-organization + */ + "GET /orgs/:org/actions/runners/downloads": { + parameters: ActionsListRunnerApplicationsForOrgEndpoint; + request: ActionsListRunnerApplicationsForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#list-organization-secrets + */ + "GET /orgs/:org/actions/secrets": { + parameters: ActionsListOrgSecretsEndpoint; + request: ActionsListOrgSecretsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#get-an-organization-secret + */ + "GET /orgs/:org/actions/secrets/:secret_name": { + parameters: ActionsGetOrgSecretEndpoint; + request: ActionsGetOrgSecretRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#list-selected-repositories-for-an-organization-secret + */ + "GET /orgs/:org/actions/secrets/:secret_name/repositories": { + parameters: ActionsListSelectedReposForOrgSecretEndpoint; + request: ActionsListSelectedReposForOrgSecretRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#get-an-organization-public-key + */ + "GET /orgs/:org/actions/secrets/public-key": { + parameters: ActionsGetOrgPublicKeyEndpoint; + request: ActionsGetOrgPublicKeyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/blocking/#list-users-blocked-by-an-organization + */ + "GET /orgs/:org/blocks": { + parameters: OrgsListBlockedUsersEndpoint; + request: OrgsListBlockedUsersRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/blocking/#check-if-a-user-is-blocked-by-an-organization + */ + "GET /orgs/:org/blocks/:username": { + parameters: OrgsCheckBlockedUserEndpoint; + request: OrgsCheckBlockedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization + */ + "GET /orgs/:org/credential-authorizations": { + parameters: OrgsListSamlSsoAuthorizationsEndpoint; + request: OrgsListSamlSsoAuthorizationsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/events/#list-public-organization-events + */ + "GET /orgs/:org/events": { + parameters: ActivityListPublicOrgEventsEndpoint; + request: ActivityListPublicOrgEventsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/hooks/#list-organization-webhooks + */ + "GET /orgs/:org/hooks": { + parameters: OrgsListWebhooksEndpoint; + request: OrgsListWebhooksRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/hooks/#get-an-organization-webhook + */ + "GET /orgs/:org/hooks/:hook_id": { + parameters: OrgsGetWebhookEndpoint; + request: OrgsGetWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#get-an-organization-installation-for-the-authenticated-app + */ + "GET /orgs/:org/installation": { + parameters: AppsGetOrgInstallationEndpoint; + request: AppsGetOrgInstallationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/#list-app-installations-for-an-organization + */ + "GET /orgs/:org/installations": { + parameters: OrgsListAppInstallationsEndpoint; + request: OrgsListAppInstallationsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/interactions/orgs/#get-interaction-restrictions-for-an-organization + */ + "GET /orgs/:org/interaction-limits": { + parameters: InteractionsGetRestrictionsForOrgEndpoint; + request: InteractionsGetRestrictionsForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations + */ + "GET /orgs/:org/invitations": { + parameters: OrgsListPendingInvitationsEndpoint; + request: OrgsListPendingInvitationsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#list-organization-invitation-teams + */ + "GET /orgs/:org/invitations/:invitation_id/teams": { + parameters: OrgsListInvitationTeamsEndpoint; + request: OrgsListInvitationTeamsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user + */ + "GET /orgs/:org/issues": { + parameters: IssuesListForOrgEndpoint; + request: IssuesListForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#list-organization-members + */ + "GET /orgs/:org/members": { + parameters: OrgsListMembersEndpoint; + request: OrgsListMembersRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#check-organization-membership-for-a-user + */ + "GET /orgs/:org/members/:username": { + parameters: OrgsCheckMembershipForUserEndpoint; + request: OrgsCheckMembershipForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#get-organization-membership-for-a-user + */ + "GET /orgs/:org/memberships/:username": { + parameters: OrgsGetMembershipForUserEndpoint; + request: OrgsGetMembershipForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/orgs/#list-organization-migrations + */ + "GET /orgs/:org/migrations": { + parameters: MigrationsListForOrgEndpoint; + request: MigrationsListForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/orgs/#get-an-organization-migration-status + */ + "GET /orgs/:org/migrations/:migration_id": { + parameters: MigrationsGetStatusForOrgEndpoint; + request: MigrationsGetStatusForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/orgs/#download-an-organization-migration-archive + */ + "GET /orgs/:org/migrations/:migration_id/archive": { + parameters: MigrationsDownloadArchiveForOrgEndpoint; + request: MigrationsDownloadArchiveForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/orgs/#list-repositories-in-an-organization-migration + */ + "GET /orgs/:org/migrations/:migration_id/repositories": { + parameters: MigrationsListReposForOrgEndpoint; + request: MigrationsListReposForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators-for-an-organization + */ + "GET /orgs/:org/outside_collaborators": { + parameters: OrgsListOutsideCollaboratorsEndpoint; + request: OrgsListOutsideCollaboratorsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/#list-organization-projects + */ + "GET /orgs/:org/projects": { + parameters: ProjectsListForOrgEndpoint; + request: ProjectsListForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#list-public-organization-members + */ + "GET /orgs/:org/public_members": { + parameters: OrgsListPublicMembersEndpoint; + request: OrgsListPublicMembersRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#check-public-organization-membership-for-a-user + */ + "GET /orgs/:org/public_members/:username": { + parameters: OrgsCheckPublicMembershipForUserEndpoint; + request: OrgsCheckPublicMembershipForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#list-organization-repositories + */ + "GET /orgs/:org/repos": { + parameters: ReposListForOrgEndpoint; + request: ReposListForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/billing/#get-github-actions-billing-for-an-organization + */ + "GET /orgs/:org/settings/billing/actions": { + parameters: BillingGetGithubActionsBillingOrgEndpoint; + request: BillingGetGithubActionsBillingOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/billing/#get-github-packages-billing-for-an-organization + */ + "GET /orgs/:org/settings/billing/packages": { + parameters: BillingGetGithubPackagesBillingOrgEndpoint; + request: BillingGetGithubPackagesBillingOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/billing/#get-shared-storage-billing-for-an-organization + */ + "GET /orgs/:org/settings/billing/shared-storage": { + parameters: BillingGetSharedStorageBillingOrgEndpoint; + request: BillingGetSharedStorageBillingOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-an-organization + */ + "GET /orgs/:org/team-sync/groups": { + parameters: TeamsListIdPGroupsForOrgEndpoint; + request: TeamsListIdPGroupsForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#list-teams + */ + "GET /orgs/:org/teams": { + parameters: TeamsListEndpoint; + request: TeamsListRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#get-a-team-by-name + */ + "GET /orgs/:org/teams/:team_slug": { + parameters: TeamsGetByNameEndpoint; + request: TeamsGetByNameRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussions/#list-discussions + */ + "GET /orgs/:org/teams/:team_slug/discussions": { + parameters: TeamsListDiscussionsInOrgEndpoint; + request: TeamsListDiscussionsInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussions/#get-a-discussion + */ + "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number": { + parameters: TeamsGetDiscussionInOrgEndpoint; + request: TeamsGetDiscussionInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments + */ + "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": { + parameters: TeamsListDiscussionCommentsInOrgEndpoint; + request: TeamsListDiscussionCommentsInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment + */ + "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { + parameters: TeamsGetDiscussionCommentInOrgEndpoint; + request: TeamsGetDiscussionCommentInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment + */ + "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions": { + parameters: ReactionsListForTeamDiscussionCommentInOrgEndpoint; + request: ReactionsListForTeamDiscussionCommentInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion + */ + "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions": { + parameters: ReactionsListForTeamDiscussionInOrgEndpoint; + request: ReactionsListForTeamDiscussionInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#list-pending-team-invitations + */ + "GET /orgs/:org/teams/:team_slug/invitations": { + parameters: TeamsListPendingInvitationsInOrgEndpoint; + request: TeamsListPendingInvitationsInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#list-team-members + */ + "GET /orgs/:org/teams/:team_slug/members": { + parameters: TeamsListMembersInOrgEndpoint; + request: TeamsListMembersInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user + */ + "GET /orgs/:org/teams/:team_slug/memberships/:username": { + parameters: TeamsGetMembershipForUserInOrgEndpoint; + request: TeamsGetMembershipForUserInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#list-team-projects + */ + "GET /orgs/:org/teams/:team_slug/projects": { + parameters: TeamsListProjectsInOrgEndpoint; + request: TeamsListProjectsInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#check-team-permissions-for-a-project + */ + "GET /orgs/:org/teams/:team_slug/projects/:project_id": { + parameters: TeamsCheckPermissionsForProjectInOrgEndpoint; + request: TeamsCheckPermissionsForProjectInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#list-team-repositories + */ + "GET /orgs/:org/teams/:team_slug/repos": { + parameters: TeamsListReposInOrgEndpoint; + request: TeamsListReposInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository + */ + "GET /orgs/:org/teams/:team_slug/repos/:owner/:repo": { + parameters: TeamsCheckPermissionsForRepoInOrgEndpoint; + request: TeamsCheckPermissionsForRepoInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team + */ + "GET /orgs/:org/teams/:team_slug/team-sync/group-mappings": { + parameters: TeamsListIdPGroupsInOrgEndpoint; + request: TeamsListIdPGroupsInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#list-child-teams + */ + "GET /orgs/:org/teams/:team_slug/teams": { + parameters: TeamsListChildInOrgEndpoint; + request: TeamsListChildInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/#get-a-project + */ + "GET /projects/:project_id": { + parameters: ProjectsGetEndpoint; + request: ProjectsGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/collaborators/#list-project-collaborators + */ + "GET /projects/:project_id/collaborators": { + parameters: ProjectsListCollaboratorsEndpoint; + request: ProjectsListCollaboratorsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/collaborators/#get-project-permission-for-a-user + */ + "GET /projects/:project_id/collaborators/:username/permission": { + parameters: ProjectsGetPermissionForUserEndpoint; + request: ProjectsGetPermissionForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/columns/#list-project-columns + */ + "GET /projects/:project_id/columns": { + parameters: ProjectsListColumnsEndpoint; + request: ProjectsListColumnsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/columns/#get-a-project-column + */ + "GET /projects/columns/:column_id": { + parameters: ProjectsGetColumnEndpoint; + request: ProjectsGetColumnRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/cards/#list-project-cards + */ + "GET /projects/columns/:column_id/cards": { + parameters: ProjectsListCardsEndpoint; + request: ProjectsListCardsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/cards/#get-a-project-card + */ + "GET /projects/columns/cards/:card_id": { + parameters: ProjectsGetCardEndpoint; + request: ProjectsGetCardRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/rate_limit/#get-rate-limit-status-for-the-authenticated-user + */ + "GET /rate_limit": { + parameters: RateLimitGetEndpoint; + request: RateLimitGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#get-a-repository + */ + "GET /repos/:owner/:repo": { + parameters: ReposGetEndpoint; + request: ReposGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/contents/#download-a-repository-archive + */ + "GET /repos/:owner/:repo/:archive_format/:ref": { + parameters: ReposDownloadArchiveEndpoint; + request: ReposDownloadArchiveRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/artifacts/#list-artifacts-for-a-repository + */ + "GET /repos/:owner/:repo/actions/artifacts": { + parameters: ActionsListArtifactsForRepoEndpoint; + request: ActionsListArtifactsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/artifacts/#get-an-artifact + */ + "GET /repos/:owner/:repo/actions/artifacts/:artifact_id": { + parameters: ActionsGetArtifactEndpoint; + request: ActionsGetArtifactRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/artifacts/#download-an-artifact + */ + "GET /repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format": { + parameters: ActionsDownloadArtifactEndpoint; + request: ActionsDownloadArtifactRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-jobs/#get-a-job-for-a-workflow-run + */ + "GET /repos/:owner/:repo/actions/jobs/:job_id": { + parameters: ActionsGetJobForWorkflowRunEndpoint; + request: ActionsGetJobForWorkflowRunRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-jobs/#download-job-logs-for-a-workflow-run + */ + "GET /repos/:owner/:repo/actions/jobs/:job_id/logs": { + parameters: ActionsDownloadJobLogsForWorkflowRunEndpoint; + request: ActionsDownloadJobLogsForWorkflowRunRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository + */ + "GET /repos/:owner/:repo/actions/runners": { + parameters: ActionsListSelfHostedRunnersForRepoEndpoint; + request: ActionsListSelfHostedRunnersForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-a-repository + */ + "GET /repos/:owner/:repo/actions/runners/:runner_id": { + parameters: ActionsGetSelfHostedRunnerForRepoEndpoint; + request: ActionsGetSelfHostedRunnerForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-a-repository + */ + "GET /repos/:owner/:repo/actions/runners/downloads": { + parameters: ActionsListRunnerApplicationsForRepoEndpoint; + request: ActionsListRunnerApplicationsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs-for-a-repository + */ + "GET /repos/:owner/:repo/actions/runs": { + parameters: ActionsListWorkflowRunsForRepoEndpoint; + request: ActionsListWorkflowRunsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-runs/#get-a-workflow-run + */ + "GET /repos/:owner/:repo/actions/runs/:run_id": { + parameters: ActionsGetWorkflowRunEndpoint; + request: ActionsGetWorkflowRunRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts + */ + "GET /repos/:owner/:repo/actions/runs/:run_id/artifacts": { + parameters: ActionsListWorkflowRunArtifactsEndpoint; + request: ActionsListWorkflowRunArtifactsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-jobs/#list-jobs-for-a-workflow-run + */ + "GET /repos/:owner/:repo/actions/runs/:run_id/jobs": { + parameters: ActionsListJobsForWorkflowRunEndpoint; + request: ActionsListJobsForWorkflowRunRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-runs/#download-workflow-run-logs + */ + "GET /repos/:owner/:repo/actions/runs/:run_id/logs": { + parameters: ActionsDownloadWorkflowRunLogsEndpoint; + request: ActionsDownloadWorkflowRunLogsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-runs/#get-workflow-run-usage + */ + "GET /repos/:owner/:repo/actions/runs/:run_id/timing": { + parameters: ActionsGetWorkflowRunUsageEndpoint; + request: ActionsGetWorkflowRunUsageRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#list-repository-secrets + */ + "GET /repos/:owner/:repo/actions/secrets": { + parameters: ActionsListRepoSecretsEndpoint; + request: ActionsListRepoSecretsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#get-a-repository-secret + */ + "GET /repos/:owner/:repo/actions/secrets/:secret_name": { + parameters: ActionsGetRepoSecretEndpoint; + request: ActionsGetRepoSecretRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#get-a-repository-public-key + */ + "GET /repos/:owner/:repo/actions/secrets/public-key": { + parameters: ActionsGetRepoPublicKeyEndpoint; + request: ActionsGetRepoPublicKeyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflows/#list-repository-workflows + */ + "GET /repos/:owner/:repo/actions/workflows": { + parameters: ActionsListRepoWorkflowsEndpoint; + request: ActionsListRepoWorkflowsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflows/#get-a-workflow + */ + "GET /repos/:owner/:repo/actions/workflows/:workflow_id": { + parameters: ActionsGetWorkflowEndpoint; + request: ActionsGetWorkflowRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs + */ + "GET /repos/:owner/:repo/actions/workflows/:workflow_id/runs": { + parameters: ActionsListWorkflowRunsEndpoint; + request: ActionsListWorkflowRunsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflows/#get-workflow-usage + */ + "GET /repos/:owner/:repo/actions/workflows/:workflow_id/timing": { + parameters: ActionsGetWorkflowUsageEndpoint; + request: ActionsGetWorkflowUsageRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/assignees/#list-assignees + */ + "GET /repos/:owner/:repo/assignees": { + parameters: IssuesListAssigneesEndpoint; + request: IssuesListAssigneesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/assignees/#check-if-a-user-can-be-assigned + */ + "GET /repos/:owner/:repo/assignees/:assignee": { + parameters: IssuesCheckUserCanBeAssignedEndpoint; + request: IssuesCheckUserCanBeAssignedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#list-branches + */ + "GET /repos/:owner/:repo/branches": { + parameters: ReposListBranchesEndpoint; + request: ReposListBranchesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#get-a-branch + */ + "GET /repos/:owner/:repo/branches/:branch": { + parameters: ReposGetBranchEndpoint; + request: ReposGetBranchRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#get-branch-protection + */ + "GET /repos/:owner/:repo/branches/:branch/protection": { + parameters: ReposGetBranchProtectionEndpoint; + request: ReposGetBranchProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#get-admin-branch-protection + */ + "GET /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { + parameters: ReposGetAdminBranchProtectionEndpoint; + request: ReposGetAdminBranchProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#get-pull-request-review-protection + */ + "GET /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { + parameters: ReposGetPullRequestReviewProtectionEndpoint; + request: ReposGetPullRequestReviewProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#get-commit-signature-protection + */ + "GET /repos/:owner/:repo/branches/:branch/protection/required_signatures": { + parameters: ReposGetCommitSignatureProtectionEndpoint; + request: ReposGetCommitSignatureProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#get-status-checks-protection + */ + "GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { + parameters: ReposGetStatusChecksProtectionEndpoint; + request: ReposGetStatusChecksProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#get-all-status-check-contexts + */ + "GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { + parameters: ReposGetAllStatusCheckContextsEndpoint; + request: ReposGetAllStatusCheckContextsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#get-access-restrictions + */ + "GET /repos/:owner/:repo/branches/:branch/protection/restrictions": { + parameters: ReposGetAccessRestrictionsEndpoint; + request: ReposGetAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#list-apps-with-access-to-the-protected-branch + */ + "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { + parameters: ReposGetAppsWithAccessToProtectedBranchEndpoint; + request: ReposGetAppsWithAccessToProtectedBranchRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#list-teams-with-access-to-the-protected-branch + */ + "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { + parameters: ReposGetTeamsWithAccessToProtectedBranchEndpoint; + request: ReposGetTeamsWithAccessToProtectedBranchRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#list-users-with-access-to-the-protected-branch + */ + "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { + parameters: ReposGetUsersWithAccessToProtectedBranchEndpoint; + request: ReposGetUsersWithAccessToProtectedBranchRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/runs/#get-a-check-run + */ + "GET /repos/:owner/:repo/check-runs/:check_run_id": { + parameters: ChecksGetEndpoint; + request: ChecksGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/runs/#list-check-run-annotations + */ + "GET /repos/:owner/:repo/check-runs/:check_run_id/annotations": { + parameters: ChecksListAnnotationsEndpoint; + request: ChecksListAnnotationsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/suites/#get-a-check-suite + */ + "GET /repos/:owner/:repo/check-suites/:check_suite_id": { + parameters: ChecksGetSuiteEndpoint; + request: ChecksGetSuiteRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/runs/#list-check-runs-in-a-check-suite + */ + "GET /repos/:owner/:repo/check-suites/:check_suite_id/check-runs": { + parameters: ChecksListForSuiteEndpoint; + request: ChecksListForSuiteRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository + */ + "GET /repos/:owner/:repo/code-scanning/alerts": { + parameters: CodeScanningListAlertsForRepoEndpoint; + request: CodeScanningListAlertsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/code-scanning/#get-a-code-scanning-alert + */ + "GET /repos/:owner/:repo/code-scanning/alerts/:alert_id": { + parameters: CodeScanningGetAlertEndpoint; + request: CodeScanningGetAlertRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/collaborators/#list-repository-collaborators + */ + "GET /repos/:owner/:repo/collaborators": { + parameters: ReposListCollaboratorsEndpoint; + request: ReposListCollaboratorsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-repository-collaborator + */ + "GET /repos/:owner/:repo/collaborators/:username": { + parameters: ReposCheckCollaboratorEndpoint; + request: ReposCheckCollaboratorRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/collaborators/#get-repository-permissions-for-a-user + */ + "GET /repos/:owner/:repo/collaborators/:username/permission": { + parameters: ReposGetCollaboratorPermissionLevelEndpoint; + request: ReposGetCollaboratorPermissionLevelRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository + */ + "GET /repos/:owner/:repo/comments": { + parameters: ReposListCommitCommentsForRepoEndpoint; + request: ReposListCommitCommentsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/comments/#get-a-commit-comment + */ + "GET /repos/:owner/:repo/comments/:comment_id": { + parameters: ReposGetCommitCommentEndpoint; + request: ReposGetCommitCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment + */ + "GET /repos/:owner/:repo/comments/:comment_id/reactions": { + parameters: ReactionsListForCommitCommentEndpoint; + request: ReactionsListForCommitCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/commits/#list-commits + */ + "GET /repos/:owner/:repo/commits": { + parameters: ReposListCommitsEndpoint; + request: ReposListCommitsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/commits/#list-branches-for-head-commit + */ + "GET /repos/:owner/:repo/commits/:commit_sha/branches-where-head": { + parameters: ReposListBranchesForHeadCommitEndpoint; + request: ReposListBranchesForHeadCommitRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/comments/#list-commit-comments + */ + "GET /repos/:owner/:repo/commits/:commit_sha/comments": { + parameters: ReposListCommentsForCommitEndpoint; + request: ReposListCommentsForCommitRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/commits/#list-pull-requests-associated-with-a-commit + */ + "GET /repos/:owner/:repo/commits/:commit_sha/pulls": { + parameters: ReposListPullRequestsAssociatedWithCommitEndpoint; + request: ReposListPullRequestsAssociatedWithCommitRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/commits/#get-a-commit + */ + "GET /repos/:owner/:repo/commits/:ref": { + parameters: ReposGetCommitEndpoint; + request: ReposGetCommitRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/runs/#list-check-runs-for-a-git-reference + */ + "GET /repos/:owner/:repo/commits/:ref/check-runs": { + parameters: ChecksListForRefEndpoint; + request: ChecksListForRefRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/suites/#list-check-suites-for-a-git-reference + */ + "GET /repos/:owner/:repo/commits/:ref/check-suites": { + parameters: ChecksListSuitesForRefEndpoint; + request: ChecksListSuitesForRefRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-reference + */ + "GET /repos/:owner/:repo/commits/:ref/status": { + parameters: ReposGetCombinedStatusForRefEndpoint; + request: ReposGetCombinedStatusForRefRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/statuses/#list-commit-statuses-for-a-reference + */ + "GET /repos/:owner/:repo/commits/:ref/statuses": { + parameters: ReposListCommitStatusesForRefEndpoint; + request: ReposListCommitStatusesForRefRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/codes_of_conduct/#get-the-code-of-conduct-for-a-repository + */ + "GET /repos/:owner/:repo/community/code_of_conduct": { + parameters: CodesOfConductGetForRepoEndpoint; + request: CodesOfConductGetForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/community/#get-community-profile-metrics + */ + "GET /repos/:owner/:repo/community/profile": { + parameters: ReposGetCommunityProfileMetricsEndpoint; + request: ReposGetCommunityProfileMetricsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/commits/#compare-two-commits + */ + "GET /repos/:owner/:repo/compare/:base...:head": { + parameters: ReposCompareCommitsEndpoint; + request: ReposCompareCommitsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/contents/#get-repository-content + */ + "GET /repos/:owner/:repo/contents/:path": { + parameters: ReposGetContentEndpoint; + request: ReposGetContentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#list-repository-contributors + */ + "GET /repos/:owner/:repo/contributors": { + parameters: ReposListContributorsEndpoint; + request: ReposListContributorsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/deployments/#list-deployments + */ + "GET /repos/:owner/:repo/deployments": { + parameters: ReposListDeploymentsEndpoint; + request: ReposListDeploymentsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/deployments/#get-a-deployment + */ + "GET /repos/:owner/:repo/deployments/:deployment_id": { + parameters: ReposGetDeploymentEndpoint; + request: ReposGetDeploymentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/deployments/#list-deployment-statuses + */ + "GET /repos/:owner/:repo/deployments/:deployment_id/statuses": { + parameters: ReposListDeploymentStatusesEndpoint; + request: ReposListDeploymentStatusesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/deployments/#get-a-deployment-status + */ + "GET /repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id": { + parameters: ReposGetDeploymentStatusEndpoint; + request: ReposGetDeploymentStatusRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/events/#list-repository-events + */ + "GET /repos/:owner/:repo/events": { + parameters: ActivityListRepoEventsEndpoint; + request: ActivityListRepoEventsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/forks/#list-forks + */ + "GET /repos/:owner/:repo/forks": { + parameters: ReposListForksEndpoint; + request: ReposListForksRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/blobs/#get-a-blob + */ + "GET /repos/:owner/:repo/git/blobs/:file_sha": { + parameters: GitGetBlobEndpoint; + request: GitGetBlobRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/commits/#get-a-commit + */ + "GET /repos/:owner/:repo/git/commits/:commit_sha": { + parameters: GitGetCommitEndpoint; + request: GitGetCommitRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/refs/#list-matching-references + */ + "GET /repos/:owner/:repo/git/matching-refs/:ref": { + parameters: GitListMatchingRefsEndpoint; + request: GitListMatchingRefsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/refs/#get-a-reference + */ + "GET /repos/:owner/:repo/git/ref/:ref": { + parameters: GitGetRefEndpoint; + request: GitGetRefRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/tags/#get-a-tag + */ + "GET /repos/:owner/:repo/git/tags/:tag_sha": { + parameters: GitGetTagEndpoint; + request: GitGetTagRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/trees/#get-a-tree + */ + "GET /repos/:owner/:repo/git/trees/:tree_sha": { + parameters: GitGetTreeEndpoint; + request: GitGetTreeRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/hooks/#list-repository-webhooks + */ + "GET /repos/:owner/:repo/hooks": { + parameters: ReposListWebhooksEndpoint; + request: ReposListWebhooksRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/hooks/#get-a-repository-webhook + */ + "GET /repos/:owner/:repo/hooks/:hook_id": { + parameters: ReposGetWebhookEndpoint; + request: ReposGetWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/source_imports/#get-an-import-status + */ + "GET /repos/:owner/:repo/import": { + parameters: MigrationsGetImportStatusEndpoint; + request: MigrationsGetImportStatusRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/source_imports/#get-commit-authors + */ + "GET /repos/:owner/:repo/import/authors": { + parameters: MigrationsGetCommitAuthorsEndpoint; + request: MigrationsGetCommitAuthorsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/source_imports/#get-large-files + */ + "GET /repos/:owner/:repo/import/large_files": { + parameters: MigrationsGetLargeFilesEndpoint; + request: MigrationsGetLargeFilesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#get-a-repository-installation-for-the-authenticated-app + */ + "GET /repos/:owner/:repo/installation": { + parameters: AppsGetRepoInstallationEndpoint; + request: AppsGetRepoInstallationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/interactions/repos/#get-interaction-restrictions-for-a-repository + */ + "GET /repos/:owner/:repo/interaction-limits": { + parameters: InteractionsGetRestrictionsForRepoEndpoint; + request: InteractionsGetRestrictionsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/invitations/#list-repository-invitations + */ + "GET /repos/:owner/:repo/invitations": { + parameters: ReposListInvitationsEndpoint; + request: ReposListInvitationsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/#list-repository-issues + */ + "GET /repos/:owner/:repo/issues": { + parameters: IssuesListForRepoEndpoint; + request: IssuesListForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/#get-an-issue + */ + "GET /repos/:owner/:repo/issues/:issue_number": { + parameters: IssuesGetEndpoint; + request: IssuesGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/comments/#list-issue-comments + */ + "GET /repos/:owner/:repo/issues/:issue_number/comments": { + parameters: IssuesListCommentsEndpoint; + request: IssuesListCommentsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/events/#list-issue-events + */ + "GET /repos/:owner/:repo/issues/:issue_number/events": { + parameters: IssuesListEventsEndpoint; + request: IssuesListEventsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#list-labels-for-an-issue + */ + "GET /repos/:owner/:repo/issues/:issue_number/labels": { + parameters: IssuesListLabelsOnIssueEndpoint; + request: IssuesListLabelsOnIssueRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#list-reactions-for-an-issue + */ + "GET /repos/:owner/:repo/issues/:issue_number/reactions": { + parameters: ReactionsListForIssueEndpoint; + request: ReactionsListForIssueRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/timeline/#list-timeline-events-for-an-issue + */ + "GET /repos/:owner/:repo/issues/:issue_number/timeline": { + parameters: IssuesListEventsForTimelineEndpoint; + request: IssuesListEventsForTimelineRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/comments/#list-issue-comments-for-a-repository + */ + "GET /repos/:owner/:repo/issues/comments": { + parameters: IssuesListCommentsForRepoEndpoint; + request: IssuesListCommentsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/comments/#get-an-issue-comment + */ + "GET /repos/:owner/:repo/issues/comments/:comment_id": { + parameters: IssuesGetCommentEndpoint; + request: IssuesGetCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment + */ + "GET /repos/:owner/:repo/issues/comments/:comment_id/reactions": { + parameters: ReactionsListForIssueCommentEndpoint; + request: ReactionsListForIssueCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/events/#list-issue-events-for-a-repository + */ + "GET /repos/:owner/:repo/issues/events": { + parameters: IssuesListEventsForRepoEndpoint; + request: IssuesListEventsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/events/#get-an-issue-event + */ + "GET /repos/:owner/:repo/issues/events/:event_id": { + parameters: IssuesGetEventEndpoint; + request: IssuesGetEventRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/keys/#list-deploy-keys + */ + "GET /repos/:owner/:repo/keys": { + parameters: ReposListDeployKeysEndpoint; + request: ReposListDeployKeysRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/keys/#get-a-deploy-key + */ + "GET /repos/:owner/:repo/keys/:key_id": { + parameters: ReposGetDeployKeyEndpoint; + request: ReposGetDeployKeyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#list-labels-for-a-repository + */ + "GET /repos/:owner/:repo/labels": { + parameters: IssuesListLabelsForRepoEndpoint; + request: IssuesListLabelsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#get-a-label + */ + "GET /repos/:owner/:repo/labels/:name": { + parameters: IssuesGetLabelEndpoint; + request: IssuesGetLabelRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#list-repository-languages + */ + "GET /repos/:owner/:repo/languages": { + parameters: ReposListLanguagesEndpoint; + request: ReposListLanguagesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/licenses/#get-the-license-for-a-repository + */ + "GET /repos/:owner/:repo/license": { + parameters: LicensesGetForRepoEndpoint; + request: LicensesGetForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/milestones/#list-milestones + */ + "GET /repos/:owner/:repo/milestones": { + parameters: IssuesListMilestonesEndpoint; + request: IssuesListMilestonesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/milestones/#get-a-milestone + */ + "GET /repos/:owner/:repo/milestones/:milestone_number": { + parameters: IssuesGetMilestoneEndpoint; + request: IssuesGetMilestoneRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#list-labels-for-issues-in-a-milestone + */ + "GET /repos/:owner/:repo/milestones/:milestone_number/labels": { + parameters: IssuesListLabelsForMilestoneEndpoint; + request: IssuesListLabelsForMilestoneRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/notifications/#list-repository-notifications-for-the-authenticated-user + */ + "GET /repos/:owner/:repo/notifications": { + parameters: ActivityListRepoNotificationsForAuthenticatedUserEndpoint; + request: ActivityListRepoNotificationsForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/pages/#get-a-github-pages-site + */ + "GET /repos/:owner/:repo/pages": { + parameters: ReposGetPagesEndpoint; + request: ReposGetPagesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/pages/#list-github-pages-builds + */ + "GET /repos/:owner/:repo/pages/builds": { + parameters: ReposListPagesBuildsEndpoint; + request: ReposListPagesBuildsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/pages/#get-github-pages-build + */ + "GET /repos/:owner/:repo/pages/builds/:build_id": { + parameters: ReposGetPagesBuildEndpoint; + request: ReposGetPagesBuildRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/pages/#get-latest-pages-build + */ + "GET /repos/:owner/:repo/pages/builds/latest": { + parameters: ReposGetLatestPagesBuildEndpoint; + request: ReposGetLatestPagesBuildRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/#list-repository-projects + */ + "GET /repos/:owner/:repo/projects": { + parameters: ProjectsListForRepoEndpoint; + request: ProjectsListForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/#list-pull-requests + */ + "GET /repos/:owner/:repo/pulls": { + parameters: PullsListEndpoint; + request: PullsListRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/#get-a-pull-request + */ + "GET /repos/:owner/:repo/pulls/:pull_number": { + parameters: PullsGetEndpoint; + request: PullsGetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/comments/#list-review-comments-on-a-pull-request + */ + "GET /repos/:owner/:repo/pulls/:pull_number/comments": { + parameters: PullsListReviewCommentsEndpoint; + request: PullsListReviewCommentsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request + */ + "GET /repos/:owner/:repo/pulls/:pull_number/commits": { + parameters: PullsListCommitsEndpoint; + request: PullsListCommitsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/#list-pull-requests-files + */ + "GET /repos/:owner/:repo/pulls/:pull_number/files": { + parameters: PullsListFilesEndpoint; + request: PullsListFilesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/#check-if-a-pull-request-has-been-merged + */ + "GET /repos/:owner/:repo/pulls/:pull_number/merge": { + parameters: PullsCheckIfMergedEndpoint; + request: PullsCheckIfMergedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/review_requests/#list-requested-reviewers-for-a-pull-request + */ + "GET /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { + parameters: PullsListRequestedReviewersEndpoint; + request: PullsListRequestedReviewersRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/reviews/#list-reviews-for-a-pull-request + */ + "GET /repos/:owner/:repo/pulls/:pull_number/reviews": { + parameters: PullsListReviewsEndpoint; + request: PullsListReviewsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/reviews/#get-a-review-for-a-pull-request + */ + "GET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { + parameters: PullsGetReviewEndpoint; + request: PullsGetReviewRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/reviews/#list-comments-for-a-pull-request-review + */ + "GET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments": { + parameters: PullsListCommentsForReviewEndpoint; + request: PullsListCommentsForReviewRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/comments/#list-review-comments-in-a-repository + */ + "GET /repos/:owner/:repo/pulls/comments": { + parameters: PullsListReviewCommentsForRepoEndpoint; + request: PullsListReviewCommentsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/comments/#get-a-review-comment-for-a-pull-request + */ + "GET /repos/:owner/:repo/pulls/comments/:comment_id": { + parameters: PullsGetReviewCommentEndpoint; + request: PullsGetReviewCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment + */ + "GET /repos/:owner/:repo/pulls/comments/:comment_id/reactions": { + parameters: ReactionsListForPullRequestReviewCommentEndpoint; + request: ReactionsListForPullRequestReviewCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/contents/#get-a-repository-readme + */ + "GET /repos/:owner/:repo/readme": { + parameters: ReposGetReadmeEndpoint; + request: ReposGetReadmeRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#list-releases + */ + "GET /repos/:owner/:repo/releases": { + parameters: ReposListReleasesEndpoint; + request: ReposListReleasesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#get-a-release + */ + "GET /repos/:owner/:repo/releases/:release_id": { + parameters: ReposGetReleaseEndpoint; + request: ReposGetReleaseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#list-release-assets + */ + "GET /repos/:owner/:repo/releases/:release_id/assets": { + parameters: ReposListReleaseAssetsEndpoint; + request: ReposListReleaseAssetsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#get-a-release-asset + */ + "GET /repos/:owner/:repo/releases/assets/:asset_id": { + parameters: ReposGetReleaseAssetEndpoint; + request: ReposGetReleaseAssetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#get-the-latest-release + */ + "GET /repos/:owner/:repo/releases/latest": { + parameters: ReposGetLatestReleaseEndpoint; + request: ReposGetLatestReleaseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name + */ + "GET /repos/:owner/:repo/releases/tags/:tag": { + parameters: ReposGetReleaseByTagEndpoint; + request: ReposGetReleaseByTagRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/starring/#list-stargazers + */ + "GET /repos/:owner/:repo/stargazers": { + parameters: ActivityListStargazersForRepoEndpoint; + request: ActivityListStargazersForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-activity + */ + "GET /repos/:owner/:repo/stats/code_frequency": { + parameters: ReposGetCodeFrequencyStatsEndpoint; + request: ReposGetCodeFrequencyStatsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity + */ + "GET /repos/:owner/:repo/stats/commit_activity": { + parameters: ReposGetCommitActivityStatsEndpoint; + request: ReposGetCommitActivityStatsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/statistics/#get-all-contributor-commit-activity + */ + "GET /repos/:owner/:repo/stats/contributors": { + parameters: ReposGetContributorsStatsEndpoint; + request: ReposGetContributorsStatsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-count + */ + "GET /repos/:owner/:repo/stats/participation": { + parameters: ReposGetParticipationStatsEndpoint; + request: ReposGetParticipationStatsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/statistics/#get-the-hourly-commit-count-for-each-day + */ + "GET /repos/:owner/:repo/stats/punch_card": { + parameters: ReposGetPunchCardStatsEndpoint; + request: ReposGetPunchCardStatsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/watching/#list-watchers + */ + "GET /repos/:owner/:repo/subscribers": { + parameters: ActivityListWatchersForRepoEndpoint; + request: ActivityListWatchersForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/watching/#get-a-repository-subscription + */ + "GET /repos/:owner/:repo/subscription": { + parameters: ActivityGetRepoSubscriptionEndpoint; + request: ActivityGetRepoSubscriptionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#list-repository-tags + */ + "GET /repos/:owner/:repo/tags": { + parameters: ReposListTagsEndpoint; + request: ReposListTagsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#list-repository-teams + */ + "GET /repos/:owner/:repo/teams": { + parameters: ReposListTeamsEndpoint; + request: ReposListTeamsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#get-all-repository-topics + */ + "GET /repos/:owner/:repo/topics": { + parameters: ReposGetAllTopicsEndpoint; + request: ReposGetAllTopicsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/traffic/#get-repository-clones + */ + "GET /repos/:owner/:repo/traffic/clones": { + parameters: ReposGetClonesEndpoint; + request: ReposGetClonesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/traffic/#get-top-referral-paths + */ + "GET /repos/:owner/:repo/traffic/popular/paths": { + parameters: ReposGetTopPathsEndpoint; + request: ReposGetTopPathsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/traffic/#get-top-referral-sources + */ + "GET /repos/:owner/:repo/traffic/popular/referrers": { + parameters: ReposGetTopReferrersEndpoint; + request: ReposGetTopReferrersRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/traffic/#get-page-views + */ + "GET /repos/:owner/:repo/traffic/views": { + parameters: ReposGetViewsEndpoint; + request: ReposGetViewsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository + */ + "GET /repos/:owner/:repo/vulnerability-alerts": { + parameters: ReposCheckVulnerabilityAlertsEndpoint; + request: ReposCheckVulnerabilityAlertsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#list-public-repositories + */ + "GET /repositories": { + parameters: ReposListPublicEndpoint; + request: ReposListPublicRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#list-provisioned-scim groups-for-an-enterprise + */ + "GET /scim/v2/enterprises/:enterprise/Groups": { + parameters: EnterpriseAdminListProvisionedGroupsEnterpriseEndpoint; + request: EnterpriseAdminListProvisionedGroupsEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#get-scim-provisioning-information-for-an-enterprise group + */ + "GET /scim/v2/enterprises/:enterprise/Groups/:scim_group_id": { + parameters: EnterpriseAdminGetProvisioningInformationForEnterpriseGroupEndpoint; + request: EnterpriseAdminGetProvisioningInformationForEnterpriseGroupRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#list-scim-provisioned-identities-for-an-enterprise + */ + "GET /scim/v2/enterprises/:enterprise/Users": { + parameters: EnterpriseAdminListProvisionedIdentitiesEnterpriseEndpoint; + request: EnterpriseAdminListProvisionedIdentitiesEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#get-scim-provisioning-information-for-an-enterprise-user + */ + "GET /scim/v2/enterprises/:enterprise/Users/:scim_user_id": { + parameters: EnterpriseAdminGetProvisioningInformationForEnterpriseUserEndpoint; + request: EnterpriseAdminGetProvisioningInformationForEnterpriseUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/scim/#list-scim-provisioned-identities + */ + "GET /scim/v2/organizations/:org/Users": { + parameters: ScimListProvisionedIdentitiesEndpoint; + request: ScimListProvisionedIdentitiesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/scim/#get-scim-provisioning-information-for-a-user + */ + "GET /scim/v2/organizations/:org/Users/:scim_user_id": { + parameters: ScimGetProvisioningInformationForUserEndpoint; + request: ScimGetProvisioningInformationForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/search/#search-code + */ + "GET /search/code": { + parameters: SearchCodeEndpoint; + request: SearchCodeRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/search/#search-commits + */ + "GET /search/commits": { + parameters: SearchCommitsEndpoint; + request: SearchCommitsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/search/#search-issues-and-pull-requests + */ + "GET /search/issues": { + parameters: SearchIssuesAndPullRequestsEndpoint; + request: SearchIssuesAndPullRequestsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/search/#search-labels + */ + "GET /search/labels": { + parameters: SearchLabelsEndpoint; + request: SearchLabelsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/search/#search-repositories + */ + "GET /search/repositories": { + parameters: SearchReposEndpoint; + request: SearchReposRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/search/#search-topics + */ + "GET /search/topics": { + parameters: SearchTopicsEndpoint; + request: SearchTopicsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/search/#search-users + */ + "GET /search/users": { + parameters: SearchUsersEndpoint; + request: SearchUsersRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#get-a-team-legacy + */ + "GET /teams/:team_id": { + parameters: TeamsGetLegacyEndpoint; + request: TeamsGetLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy + */ + "GET /teams/:team_id/discussions": { + parameters: TeamsListDiscussionsLegacyEndpoint; + request: TeamsListDiscussionsLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussions/#get-a-discussion-legacy + */ + "GET /teams/:team_id/discussions/:discussion_number": { + parameters: TeamsGetDiscussionLegacyEndpoint; + request: TeamsGetDiscussionLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussion_comments/#list-discussion-comments-legacy + */ + "GET /teams/:team_id/discussions/:discussion_number/comments": { + parameters: TeamsListDiscussionCommentsLegacyEndpoint; + request: TeamsListDiscussionCommentsLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussion_comments/#get-a-discussion-comment-legacy + */ + "GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { + parameters: TeamsGetDiscussionCommentLegacyEndpoint; + request: TeamsGetDiscussionCommentLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy + */ + "GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions": { + parameters: ReactionsListForTeamDiscussionCommentLegacyEndpoint; + request: ReactionsListForTeamDiscussionCommentLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy + */ + "GET /teams/:team_id/discussions/:discussion_number/reactions": { + parameters: ReactionsListForTeamDiscussionLegacyEndpoint; + request: ReactionsListForTeamDiscussionLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy + */ + "GET /teams/:team_id/invitations": { + parameters: TeamsListPendingInvitationsLegacyEndpoint; + request: TeamsListPendingInvitationsLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#list-team-members-legacy + */ + "GET /teams/:team_id/members": { + parameters: TeamsListMembersLegacyEndpoint; + request: TeamsListMembersLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#get-team-member-legacy + */ + "GET /teams/:team_id/members/:username": { + parameters: TeamsGetMemberLegacyEndpoint; + request: TeamsGetMemberLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#get-team-membership-for-a-user-legacy + */ + "GET /teams/:team_id/memberships/:username": { + parameters: TeamsGetMembershipForUserLegacyEndpoint; + request: TeamsGetMembershipForUserLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#list-team-projects-legacy + */ + "GET /teams/:team_id/projects": { + parameters: TeamsListProjectsLegacyEndpoint; + request: TeamsListProjectsLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#check-team-permissions-for-a-project-legacy + */ + "GET /teams/:team_id/projects/:project_id": { + parameters: TeamsCheckPermissionsForProjectLegacyEndpoint; + request: TeamsCheckPermissionsForProjectLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#list-team-repositories-legacy + */ + "GET /teams/:team_id/repos": { + parameters: TeamsListReposLegacyEndpoint; + request: TeamsListReposLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy + */ + "GET /teams/:team_id/repos/:owner/:repo": { + parameters: TeamsCheckPermissionsForRepoLegacyEndpoint; + request: TeamsCheckPermissionsForRepoLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team-legacy + */ + "GET /teams/:team_id/team-sync/group-mappings": { + parameters: TeamsListIdPGroupsForLegacyEndpoint; + request: TeamsListIdPGroupsForLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#list-child-teams-legacy + */ + "GET /teams/:team_id/teams": { + parameters: TeamsListChildLegacyEndpoint; + request: TeamsListChildLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/#get-the-authenticated-user + */ + "GET /user": { + parameters: UsersGetAuthenticatedEndpoint; + request: UsersGetAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/blocking/#list-users-blocked-by-the-authenticated-user + */ + "GET /user/blocks": { + parameters: UsersListBlockedByAuthenticatedEndpoint; + request: UsersListBlockedByAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/blocking/#check-if-a-user-is-blocked-by-the-authenticated-user + */ + "GET /user/blocks/:username": { + parameters: UsersCheckBlockedEndpoint; + request: UsersCheckBlockedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/emails/#list-email-addresses-for-the-authenticated-user + */ + "GET /user/emails": { + parameters: UsersListEmailsForAuthenticatedEndpoint; + request: UsersListEmailsForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/followers/#list-followers-of-the-authenticated-user + */ + "GET /user/followers": { + parameters: UsersListFollowersForAuthenticatedUserEndpoint; + request: UsersListFollowersForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/followers/#list-the-people-the-authenticated-user-follows + */ + "GET /user/following": { + parameters: UsersListFollowedByAuthenticatedEndpoint; + request: UsersListFollowedByAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/followers/#check-if-a-person-is-followed-by-the-authenticated-user + */ + "GET /user/following/:username": { + parameters: UsersCheckPersonIsFollowedByAuthenticatedEndpoint; + request: UsersCheckPersonIsFollowedByAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/gpg_keys/#list-gpg-keys-for-the-authenticated-user + */ + "GET /user/gpg_keys": { + parameters: UsersListGpgKeysForAuthenticatedEndpoint; + request: UsersListGpgKeysForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/gpg_keys/#get-a-gpg-key-for-the-authenticated-user + */ + "GET /user/gpg_keys/:gpg_key_id": { + parameters: UsersGetGpgKeyForAuthenticatedEndpoint; + request: UsersGetGpgKeyForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/installations/#list-app-installations-accessible-to-the-user-access-token + */ + "GET /user/installations": { + parameters: AppsListInstallationsForAuthenticatedUserEndpoint; + request: AppsListInstallationsForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-access-token + */ + "GET /user/installations/:installation_id/repositories": { + parameters: AppsListInstallationReposForAuthenticatedUserEndpoint; + request: AppsListInstallationReposForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user + */ + "GET /user/issues": { + parameters: IssuesListForAuthenticatedUserEndpoint; + request: IssuesListForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/keys/#list-public-ssh-keys-for-the-authenticated-user + */ + "GET /user/keys": { + parameters: UsersListPublicSshKeysForAuthenticatedEndpoint; + request: UsersListPublicSshKeysForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/keys/#get-a-public-ssh-key-for-the-authenticated-user + */ + "GET /user/keys/:key_id": { + parameters: UsersGetPublicSshKeyForAuthenticatedEndpoint; + request: UsersGetPublicSshKeyForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/marketplace/#list-subscriptions-for-the-authenticated-user + */ + "GET /user/marketplace_purchases": { + parameters: AppsListSubscriptionsForAuthenticatedUserEndpoint; + request: AppsListSubscriptionsForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/marketplace/#list-subscriptions-for-the-authenticated-user-stubbed + */ + "GET /user/marketplace_purchases/stubbed": { + parameters: AppsListSubscriptionsForAuthenticatedUserStubbedEndpoint; + request: AppsListSubscriptionsForAuthenticatedUserStubbedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#list-organization-memberships-for-the-authenticated-user + */ + "GET /user/memberships/orgs": { + parameters: OrgsListMembershipsForAuthenticatedUserEndpoint; + request: OrgsListMembershipsForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#get-an-organization-membership-for-the-authenticated-user + */ + "GET /user/memberships/orgs/:org": { + parameters: OrgsGetMembershipForAuthenticatedUserEndpoint; + request: OrgsGetMembershipForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/users/#list-user-migrations + */ + "GET /user/migrations": { + parameters: MigrationsListForAuthenticatedUserEndpoint; + request: MigrationsListForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/users/#get-a-user-migration-status + */ + "GET /user/migrations/:migration_id": { + parameters: MigrationsGetStatusForAuthenticatedUserEndpoint; + request: MigrationsGetStatusForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive + */ + "GET /user/migrations/:migration_id/archive": { + parameters: MigrationsGetArchiveForAuthenticatedUserEndpoint; + request: MigrationsGetArchiveForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration + */ + "GET /user/migrations/:migration_id/repositories": { + parameters: MigrationsListReposForUserEndpoint; + request: MigrationsListReposForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/#list-organizations-for-the-authenticated-user + */ + "GET /user/orgs": { + parameters: OrgsListForAuthenticatedUserEndpoint; + request: OrgsListForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-the-authenticated-user + */ + "GET /user/public_emails": { + parameters: UsersListPublicEmailsForAuthenticatedEndpoint; + request: UsersListPublicEmailsForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#list-repositories-for-the-authenticated-user + */ + "GET /user/repos": { + parameters: ReposListForAuthenticatedUserEndpoint; + request: ReposListForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/invitations/#list-repository-invitations-for-the-authenticated-user + */ + "GET /user/repository_invitations": { + parameters: ReposListInvitationsForAuthenticatedUserEndpoint; + request: ReposListInvitationsForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-the-authenticated-user + */ + "GET /user/starred": { + parameters: ActivityListReposStarredByAuthenticatedUserEndpoint; + request: ActivityListReposStarredByAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/starring/#check-if-a-repository-is-starred-by-the-authenticated-user + */ + "GET /user/starred/:owner/:repo": { + parameters: ActivityCheckRepoIsStarredByAuthenticatedUserEndpoint; + request: ActivityCheckRepoIsStarredByAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-the-authenticated-user + */ + "GET /user/subscriptions": { + parameters: ActivityListWatchedReposForAuthenticatedUserEndpoint; + request: ActivityListWatchedReposForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#list-teams-for-the-authenticated-user + */ + "GET /user/teams": { + parameters: TeamsListForAuthenticatedUserEndpoint; + request: TeamsListForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/#list-users + */ + "GET /users": { + parameters: UsersListEndpoint; + request: UsersListRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/#get-a-user + */ + "GET /users/:username": { + parameters: UsersGetByUsernameEndpoint; + request: UsersGetByUsernameRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user + */ + "GET /users/:username/events": { + parameters: ActivityListEventsForAuthenticatedUserEndpoint; + request: ActivityListEventsForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user + */ + "GET /users/:username/events/orgs/:org": { + parameters: ActivityListOrgEventsForAuthenticatedUserEndpoint; + request: ActivityListOrgEventsForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/events/#list-public-events-for-a-user + */ + "GET /users/:username/events/public": { + parameters: ActivityListPublicEventsForUserEndpoint; + request: ActivityListPublicEventsForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/followers/#list-followers-of-a-user + */ + "GET /users/:username/followers": { + parameters: UsersListFollowersForUserEndpoint; + request: UsersListFollowersForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/followers/#list-the-people-a-user-follows + */ + "GET /users/:username/following": { + parameters: UsersListFollowingForUserEndpoint; + request: UsersListFollowingForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/followers/#check-if-a-user-follows-another-user + */ + "GET /users/:username/following/:target_user": { + parameters: UsersCheckFollowingForUserEndpoint; + request: UsersCheckFollowingForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#list-gists-for-a-user + */ + "GET /users/:username/gists": { + parameters: GistsListForUserEndpoint; + request: GistsListForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/gpg_keys/#list-gpg-keys-for-a-user + */ + "GET /users/:username/gpg_keys": { + parameters: UsersListGpgKeysForUserEndpoint; + request: UsersListGpgKeysForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/#get-contextual-information-for-a-user + */ + "GET /users/:username/hovercard": { + parameters: UsersGetContextForUserEndpoint; + request: UsersGetContextForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#get-a-user-installation-for-the-authenticated-app + */ + "GET /users/:username/installation": { + parameters: AppsGetUserInstallationEndpoint; + request: AppsGetUserInstallationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/keys/#list-public-keys-for-a-user + */ + "GET /users/:username/keys": { + parameters: UsersListPublicKeysForUserEndpoint; + request: UsersListPublicKeysForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/#list-organizations-for-a-user + */ + "GET /users/:username/orgs": { + parameters: OrgsListForUserEndpoint; + request: OrgsListForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/#list-user-projects + */ + "GET /users/:username/projects": { + parameters: ProjectsListForUserEndpoint; + request: ProjectsListForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user + */ + "GET /users/:username/received_events": { + parameters: ActivityListReceivedEventsForUserEndpoint; + request: ActivityListReceivedEventsForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user + */ + "GET /users/:username/received_events/public": { + parameters: ActivityListReceivedPublicEventsForUserEndpoint; + request: ActivityListReceivedPublicEventsForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#list-repositories-for-a-user + */ + "GET /users/:username/repos": { + parameters: ReposListForUserEndpoint; + request: ReposListForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/billing/#get-github-actions-billing-for-a-user + */ + "GET /users/:username/settings/billing/actions": { + parameters: BillingGetGithubActionsBillingUserEndpoint; + request: BillingGetGithubActionsBillingUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/billing/#get-github-packages-billing-for-a-user + */ + "GET /users/:username/settings/billing/packages": { + parameters: BillingGetGithubPackagesBillingUserEndpoint; + request: BillingGetGithubPackagesBillingUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/billing/#get-shared-storage-billing-for-a-user + */ + "GET /users/:username/settings/billing/shared-storage": { + parameters: BillingGetSharedStorageBillingUserEndpoint; + request: BillingGetSharedStorageBillingUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user + */ + "GET /users/:username/starred": { + parameters: ActivityListReposStarredByUserEndpoint; + request: ActivityListReposStarredByUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user + */ + "GET /users/:username/subscriptions": { + parameters: ActivityListReposWatchedByUserEndpoint; + request: ActivityListReposWatchedByUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/oauth_applications/#reset-a-token + */ + "PATCH /applications/:client_id/token": { + parameters: AppsResetTokenEndpoint; + request: AppsResetTokenRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization + */ + "PATCH /authorizations/:authorization_id": { + parameters: OauthAuthorizationsUpdateAuthorizationEndpoint; + request: OauthAuthorizationsUpdateAuthorizationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#update-a-self-hosted-runner-group-for-an-enterprise + */ + "PATCH /enterprises/:enterprise/actions/runner-groups/:runner_group_id": { + parameters: EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseEndpoint; + request: EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#update-a-gist + */ + "PATCH /gists/:gist_id": { + parameters: GistsUpdateEndpoint; + request: GistsUpdateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/comments/#update-a-gist-comment + */ + "PATCH /gists/:gist_id/comments/:comment_id": { + parameters: GistsUpdateCommentEndpoint; + request: GistsUpdateCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read + */ + "PATCH /notifications/threads/:thread_id": { + parameters: ActivityMarkThreadAsReadEndpoint; + request: ActivityMarkThreadAsReadRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/#update-an-organization + */ + "PATCH /orgs/:org": { + parameters: OrgsUpdateEndpoint; + request: OrgsUpdateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#update-a-self-hosted-runner-group-for-an-organization + */ + "PATCH /orgs/:org/actions/runner-groups/:runner_group_id": { + parameters: ActionsUpdateSelfHostedRunnerGroupForOrgEndpoint; + request: ActionsUpdateSelfHostedRunnerGroupForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/hooks/#update-an-organization-webhook + */ + "PATCH /orgs/:org/hooks/:hook_id": { + parameters: OrgsUpdateWebhookEndpoint; + request: OrgsUpdateWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#update-a-team + */ + "PATCH /orgs/:org/teams/:team_slug": { + parameters: TeamsUpdateInOrgEndpoint; + request: TeamsUpdateInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussions/#update-a-discussion + */ + "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number": { + parameters: TeamsUpdateDiscussionInOrgEndpoint; + request: TeamsUpdateDiscussionInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment + */ + "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { + parameters: TeamsUpdateDiscussionCommentInOrgEndpoint; + request: TeamsUpdateDiscussionCommentInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections + */ + "PATCH /orgs/:org/teams/:team_slug/team-sync/group-mappings": { + parameters: TeamsCreateOrUpdateIdPGroupConnectionsInOrgEndpoint; + request: TeamsCreateOrUpdateIdPGroupConnectionsInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/#update-a-project + */ + "PATCH /projects/:project_id": { + parameters: ProjectsUpdateEndpoint; + request: ProjectsUpdateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/columns/#update-a-project-column + */ + "PATCH /projects/columns/:column_id": { + parameters: ProjectsUpdateColumnEndpoint; + request: ProjectsUpdateColumnRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/cards/#update-a-project-card + */ + "PATCH /projects/columns/cards/:card_id": { + parameters: ProjectsUpdateCardEndpoint; + request: ProjectsUpdateCardRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#update-a-repository + */ + "PATCH /repos/:owner/:repo": { + parameters: ReposUpdateEndpoint; + request: ReposUpdateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#update-pull-request-review-protection + */ + "PATCH /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { + parameters: ReposUpdatePullRequestReviewProtectionEndpoint; + request: ReposUpdatePullRequestReviewProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#update-status-check-potection + */ + "PATCH /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { + parameters: ReposUpdateStatusCheckPotectionEndpoint; + request: ReposUpdateStatusCheckPotectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/runs/#update-a-check-run + */ + "PATCH /repos/:owner/:repo/check-runs/:check_run_id": { + parameters: ChecksUpdateEndpoint; + request: ChecksUpdateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/suites/#update-repository-preferences-for-check-suites + */ + "PATCH /repos/:owner/:repo/check-suites/preferences": { + parameters: ChecksSetSuitesPreferencesEndpoint; + request: ChecksSetSuitesPreferencesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/comments/#update-a-commit-comment + */ + "PATCH /repos/:owner/:repo/comments/:comment_id": { + parameters: ReposUpdateCommitCommentEndpoint; + request: ReposUpdateCommitCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/refs/#update-a-reference + */ + "PATCH /repos/:owner/:repo/git/refs/:ref": { + parameters: GitUpdateRefEndpoint; + request: GitUpdateRefRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/hooks/#update-a-repository-webhook + */ + "PATCH /repos/:owner/:repo/hooks/:hook_id": { + parameters: ReposUpdateWebhookEndpoint; + request: ReposUpdateWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/source_imports/#update-an-import + */ + "PATCH /repos/:owner/:repo/import": { + parameters: MigrationsUpdateImportEndpoint; + request: MigrationsUpdateImportRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author + */ + "PATCH /repos/:owner/:repo/import/authors/:author_id": { + parameters: MigrationsMapCommitAuthorEndpoint; + request: MigrationsMapCommitAuthorRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/source_imports/#update-git-lfs-preference + */ + "PATCH /repos/:owner/:repo/import/lfs": { + parameters: MigrationsSetLfsPreferenceEndpoint; + request: MigrationsSetLfsPreferenceRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation + */ + "PATCH /repos/:owner/:repo/invitations/:invitation_id": { + parameters: ReposUpdateInvitationEndpoint; + request: ReposUpdateInvitationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/#update-an-issue + */ + "PATCH /repos/:owner/:repo/issues/:issue_number": { + parameters: IssuesUpdateEndpoint; + request: IssuesUpdateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/comments/#update-an-issue-comment + */ + "PATCH /repos/:owner/:repo/issues/comments/:comment_id": { + parameters: IssuesUpdateCommentEndpoint; + request: IssuesUpdateCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#update-a-label + */ + "PATCH /repos/:owner/:repo/labels/:name": { + parameters: IssuesUpdateLabelEndpoint; + request: IssuesUpdateLabelRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/milestones/#update-a-milestone + */ + "PATCH /repos/:owner/:repo/milestones/:milestone_number": { + parameters: IssuesUpdateMilestoneEndpoint; + request: IssuesUpdateMilestoneRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/#update-a-pull-request + */ + "PATCH /repos/:owner/:repo/pulls/:pull_number": { + parameters: PullsUpdateEndpoint; + request: PullsUpdateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/comments/#update-a-review-comment-for-a-pull-request + */ + "PATCH /repos/:owner/:repo/pulls/comments/:comment_id": { + parameters: PullsUpdateReviewCommentEndpoint; + request: PullsUpdateReviewCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#update-a-release + */ + "PATCH /repos/:owner/:repo/releases/:release_id": { + parameters: ReposUpdateReleaseEndpoint; + request: ReposUpdateReleaseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#update-a-release-asset + */ + "PATCH /repos/:owner/:repo/releases/assets/:asset_id": { + parameters: ReposUpdateReleaseAssetEndpoint; + request: ReposUpdateReleaseAssetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#update-an-attribute-for-a-scim-enterprise-group + */ + "PATCH /scim/v2/enterprises/:enterprise/Groups/:scim_group_id": { + parameters: EnterpriseAdminUpdateAttributeForEnterpriseGroupEndpoint; + request: EnterpriseAdminUpdateAttributeForEnterpriseGroupRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#update-an-attribute-for-a-scim-enterprise-user + */ + "PATCH /scim/v2/enterprises/:enterprise/Users/:scim_user_id": { + parameters: EnterpriseAdminUpdateAttributeForEnterpriseUserEndpoint; + request: EnterpriseAdminUpdateAttributeForEnterpriseUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/scim/#update-an-attribute-for-a-scim-user + */ + "PATCH /scim/v2/organizations/:org/Users/:scim_user_id": { + parameters: ScimUpdateAttributeForUserEndpoint; + request: ScimUpdateAttributeForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#update-a-team-legacy + */ + "PATCH /teams/:team_id": { + parameters: TeamsUpdateLegacyEndpoint; + request: TeamsUpdateLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussions/#update-a-discussion-legacy + */ + "PATCH /teams/:team_id/discussions/:discussion_number": { + parameters: TeamsUpdateDiscussionLegacyEndpoint; + request: TeamsUpdateDiscussionLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussion_comments/#update-a-discussion-comment-legacy + */ + "PATCH /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { + parameters: TeamsUpdateDiscussionCommentLegacyEndpoint; + request: TeamsUpdateDiscussionCommentLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections-legacy + */ + "PATCH /teams/:team_id/team-sync/group-mappings": { + parameters: TeamsCreateOrUpdateIdPGroupConnectionsLegacyEndpoint; + request: TeamsCreateOrUpdateIdPGroupConnectionsLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/#update-the-authenticated-user + */ + "PATCH /user": { + parameters: UsersUpdateAuthenticatedEndpoint; + request: UsersUpdateAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/emails/#set-primary-email-visibility-for-the-authenticated-user + */ + "PATCH /user/email/visibility": { + parameters: UsersSetPrimaryEmailVisibilityForAuthenticatedEndpoint; + request: UsersSetPrimaryEmailVisibilityForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#update-an-organization-membership-for-the-authenticated-user + */ + "PATCH /user/memberships/orgs/:org": { + parameters: OrgsUpdateMembershipForAuthenticatedUserEndpoint; + request: OrgsUpdateMembershipForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation + */ + "PATCH /user/repository_invitations/:invitation_id": { + parameters: ReposAcceptInvitationEndpoint; + request: ReposAcceptInvitationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#create-a-github-app-from-a-manifest + */ + "POST /app-manifests/:code/conversions": { + parameters: AppsCreateFromManifestEndpoint; + request: AppsCreateFromManifestRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#create-an-installation-access-token-for-an-app + */ + "POST /app/installations/:installation_id/access_tokens": { + parameters: AppsCreateInstallationAccessTokenEndpoint; + request: AppsCreateInstallationAccessTokenRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/oauth_applications/#check-a-token + */ + "POST /applications/:client_id/token": { + parameters: AppsCheckTokenEndpoint; + request: AppsCheckTokenRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization + */ + "POST /applications/:client_id/tokens/:access_token": { + parameters: AppsResetAuthorizationEndpoint; + request: AppsResetAuthorizationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization + */ + "POST /authorizations": { + parameters: OauthAuthorizationsCreateAuthorizationEndpoint; + request: OauthAuthorizationsCreateAuthorizationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/installations/#create-a-content-attachment + */ + "POST /content_references/:content_reference_id/attachments": { + parameters: AppsCreateContentAttachmentEndpoint; + request: AppsCreateContentAttachmentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#create-self-hosted-runner-group-for-an-enterprise + */ + "POST /enterprises/:enterprise/actions/runner-groups": { + parameters: EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseEndpoint; + request: EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#create-a-registration-token-for-an-enterprise + */ + "POST /enterprises/:enterprise/actions/runners/registration-token": { + parameters: EnterpriseAdminCreateRegistrationTokenForEnterpriseEndpoint; + request: EnterpriseAdminCreateRegistrationTokenForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#create-a-remove-token-for-an-enterprise + */ + "POST /enterprises/:enterprise/actions/runners/remove-token": { + parameters: EnterpriseAdminCreateRemoveTokenForEnterpriseEndpoint; + request: EnterpriseAdminCreateRemoveTokenForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#create-a-gist + */ + "POST /gists": { + parameters: GistsCreateEndpoint; + request: GistsCreateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/comments/#create-a-gist-comment + */ + "POST /gists/:gist_id/comments": { + parameters: GistsCreateCommentEndpoint; + request: GistsCreateCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#fork-a-gist + */ + "POST /gists/:gist_id/forks": { + parameters: GistsForkEndpoint; + request: GistsForkRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/markdown/#render-a-markdown-document + */ + "POST /markdown": { + parameters: MarkdownRenderEndpoint; + request: MarkdownRenderRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode + */ + "POST /markdown/raw": { + parameters: MarkdownRenderRawEndpoint; + request: MarkdownRenderRawRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#create-a-self-hosted-runner-group-for-an-organization + */ + "POST /orgs/:org/actions/runner-groups": { + parameters: ActionsCreateSelfHostedRunnerGroupForOrgEndpoint; + request: ActionsCreateSelfHostedRunnerGroupForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-an-organization + */ + "POST /orgs/:org/actions/runners/registration-token": { + parameters: ActionsCreateRegistrationTokenForOrgEndpoint; + request: ActionsCreateRegistrationTokenForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-an-organization + */ + "POST /orgs/:org/actions/runners/remove-token": { + parameters: ActionsCreateRemoveTokenForOrgEndpoint; + request: ActionsCreateRemoveTokenForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/hooks/#create-an-organization-webhook + */ + "POST /orgs/:org/hooks": { + parameters: OrgsCreateWebhookEndpoint; + request: OrgsCreateWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/hooks/#ping-an-organization-webhook + */ + "POST /orgs/:org/hooks/:hook_id/pings": { + parameters: OrgsPingWebhookEndpoint; + request: OrgsPingWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#create-an-organization-invitation + */ + "POST /orgs/:org/invitations": { + parameters: OrgsCreateInvitationEndpoint; + request: OrgsCreateInvitationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/orgs/#start-an-organization-migration + */ + "POST /orgs/:org/migrations": { + parameters: MigrationsStartForOrgEndpoint; + request: MigrationsStartForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/#create-an-organization-project + */ + "POST /orgs/:org/projects": { + parameters: ProjectsCreateForOrgEndpoint; + request: ProjectsCreateForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#create-an-organization-repository + */ + "POST /orgs/:org/repos": { + parameters: ReposCreateInOrgEndpoint; + request: ReposCreateInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#create-a-team + */ + "POST /orgs/:org/teams": { + parameters: TeamsCreateEndpoint; + request: TeamsCreateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussions/#create-a-discussion + */ + "POST /orgs/:org/teams/:team_slug/discussions": { + parameters: TeamsCreateDiscussionInOrgEndpoint; + request: TeamsCreateDiscussionInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment + */ + "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": { + parameters: TeamsCreateDiscussionCommentInOrgEndpoint; + request: TeamsCreateDiscussionCommentInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment + */ + "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions": { + parameters: ReactionsCreateForTeamDiscussionCommentInOrgEndpoint; + request: ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion + */ + "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions": { + parameters: ReactionsCreateForTeamDiscussionInOrgEndpoint; + request: ReactionsCreateForTeamDiscussionInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/columns/#create-a-project-column + */ + "POST /projects/:project_id/columns": { + parameters: ProjectsCreateColumnEndpoint; + request: ProjectsCreateColumnRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/cards/#create-a-project-card + */ + "POST /projects/columns/:column_id/cards": { + parameters: ProjectsCreateCardEndpoint; + request: ProjectsCreateCardRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/columns/#move-a-project-column + */ + "POST /projects/columns/:column_id/moves": { + parameters: ProjectsMoveColumnEndpoint; + request: ProjectsMoveColumnRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/cards/#move-a-project-card + */ + "POST /projects/columns/cards/:card_id/moves": { + parameters: ProjectsMoveCardEndpoint; + request: ProjectsMoveCardRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-a-repository + */ + "POST /repos/:owner/:repo/actions/runners/registration-token": { + parameters: ActionsCreateRegistrationTokenForRepoEndpoint; + request: ActionsCreateRegistrationTokenForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-a-repository + */ + "POST /repos/:owner/:repo/actions/runners/remove-token": { + parameters: ActionsCreateRemoveTokenForRepoEndpoint; + request: ActionsCreateRemoveTokenForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-runs/#cancel-a-workflow-run + */ + "POST /repos/:owner/:repo/actions/runs/:run_id/cancel": { + parameters: ActionsCancelWorkflowRunEndpoint; + request: ActionsCancelWorkflowRunRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflow-runs/#re-run-a-workflow + */ + "POST /repos/:owner/:repo/actions/runs/:run_id/rerun": { + parameters: ActionsReRunWorkflowEndpoint; + request: ActionsReRunWorkflowRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/workflows/#create-a-workflow-dispatch-event + */ + "POST /repos/:owner/:repo/actions/workflows/:workflow_id/dispatches": { + parameters: ActionsCreateWorkflowDispatchEndpoint; + request: ActionsCreateWorkflowDispatchRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#set-admin-branch-protection + */ + "POST /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { + parameters: ReposSetAdminBranchProtectionEndpoint; + request: ReposSetAdminBranchProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#create-commit-signature-protection + */ + "POST /repos/:owner/:repo/branches/:branch/protection/required_signatures": { + parameters: ReposCreateCommitSignatureProtectionEndpoint; + request: ReposCreateCommitSignatureProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#add-status-check-contexts + */ + "POST /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { + parameters: ReposAddStatusCheckContextsEndpoint; + request: ReposAddStatusCheckContextsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#add-app-access-restrictions + */ + "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { + parameters: ReposAddAppAccessRestrictionsEndpoint; + request: ReposAddAppAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#add-team-access-restrictions + */ + "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { + parameters: ReposAddTeamAccessRestrictionsEndpoint; + request: ReposAddTeamAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#add-user-access-restrictions + */ + "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { + parameters: ReposAddUserAccessRestrictionsEndpoint; + request: ReposAddUserAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/runs/#create-a-check-run + */ + "POST /repos/:owner/:repo/check-runs": { + parameters: ChecksCreateEndpoint; + request: ChecksCreateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/suites/#create-a-check-suite + */ + "POST /repos/:owner/:repo/check-suites": { + parameters: ChecksCreateSuiteEndpoint; + request: ChecksCreateSuiteRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/checks/suites/#rerequest-a-check-suite + */ + "POST /repos/:owner/:repo/check-suites/:check_suite_id/rerequest": { + parameters: ChecksRerequestSuiteEndpoint; + request: ChecksRerequestSuiteRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment + */ + "POST /repos/:owner/:repo/comments/:comment_id/reactions": { + parameters: ReactionsCreateForCommitCommentEndpoint; + request: ReactionsCreateForCommitCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/comments/#create-a-commit-comment + */ + "POST /repos/:owner/:repo/commits/:commit_sha/comments": { + parameters: ReposCreateCommitCommentEndpoint; + request: ReposCreateCommitCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/deployments/#create-a-deployment + */ + "POST /repos/:owner/:repo/deployments": { + parameters: ReposCreateDeploymentEndpoint; + request: ReposCreateDeploymentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status + */ + "POST /repos/:owner/:repo/deployments/:deployment_id/statuses": { + parameters: ReposCreateDeploymentStatusEndpoint; + request: ReposCreateDeploymentStatusRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#create-a-repository-dispatch-event + */ + "POST /repos/:owner/:repo/dispatches": { + parameters: ReposCreateDispatchEventEndpoint; + request: ReposCreateDispatchEventRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/forks/#create-a-fork + */ + "POST /repos/:owner/:repo/forks": { + parameters: ReposCreateForkEndpoint; + request: ReposCreateForkRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/blobs/#create-a-blob + */ + "POST /repos/:owner/:repo/git/blobs": { + parameters: GitCreateBlobEndpoint; + request: GitCreateBlobRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/commits/#create-a-commit + */ + "POST /repos/:owner/:repo/git/commits": { + parameters: GitCreateCommitEndpoint; + request: GitCreateCommitRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/refs/#create-a-reference + */ + "POST /repos/:owner/:repo/git/refs": { + parameters: GitCreateRefEndpoint; + request: GitCreateRefRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/tags/#create-a-tag-object + */ + "POST /repos/:owner/:repo/git/tags": { + parameters: GitCreateTagEndpoint; + request: GitCreateTagRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/git/trees/#create-a-tree + */ + "POST /repos/:owner/:repo/git/trees": { + parameters: GitCreateTreeEndpoint; + request: GitCreateTreeRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/hooks/#create-a-repository-webhook + */ + "POST /repos/:owner/:repo/hooks": { + parameters: ReposCreateWebhookEndpoint; + request: ReposCreateWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/hooks/#ping-a-repository-webhook + */ + "POST /repos/:owner/:repo/hooks/:hook_id/pings": { + parameters: ReposPingWebhookEndpoint; + request: ReposPingWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/hooks/#test-the-push-repository-webhook + */ + "POST /repos/:owner/:repo/hooks/:hook_id/tests": { + parameters: ReposTestPushWebhookEndpoint; + request: ReposTestPushWebhookRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/#create-an-issue + */ + "POST /repos/:owner/:repo/issues": { + parameters: IssuesCreateEndpoint; + request: IssuesCreateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue + */ + "POST /repos/:owner/:repo/issues/:issue_number/assignees": { + parameters: IssuesAddAssigneesEndpoint; + request: IssuesAddAssigneesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/comments/#create-an-issue-comment + */ + "POST /repos/:owner/:repo/issues/:issue_number/comments": { + parameters: IssuesCreateCommentEndpoint; + request: IssuesCreateCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue + */ + "POST /repos/:owner/:repo/issues/:issue_number/labels": { + parameters: IssuesAddLabelsEndpoint; + request: IssuesAddLabelsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#create-reaction-for-an-issue + */ + "POST /repos/:owner/:repo/issues/:issue_number/reactions": { + parameters: ReactionsCreateForIssueEndpoint; + request: ReactionsCreateForIssueRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment + */ + "POST /repos/:owner/:repo/issues/comments/:comment_id/reactions": { + parameters: ReactionsCreateForIssueCommentEndpoint; + request: ReactionsCreateForIssueCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/keys/#create-a-deploy-key + */ + "POST /repos/:owner/:repo/keys": { + parameters: ReposCreateDeployKeyEndpoint; + request: ReposCreateDeployKeyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#create-a-label + */ + "POST /repos/:owner/:repo/labels": { + parameters: IssuesCreateLabelEndpoint; + request: IssuesCreateLabelRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/merging/#merge-a-branch + */ + "POST /repos/:owner/:repo/merges": { + parameters: ReposMergeEndpoint; + request: ReposMergeRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/milestones/#create-a-milestone + */ + "POST /repos/:owner/:repo/milestones": { + parameters: IssuesCreateMilestoneEndpoint; + request: IssuesCreateMilestoneRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/pages/#create-a-github-pages-site + */ + "POST /repos/:owner/:repo/pages": { + parameters: ReposCreatePagesSiteEndpoint; + request: ReposCreatePagesSiteRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/pages/#request-a-github-pages-build + */ + "POST /repos/:owner/:repo/pages/builds": { + parameters: ReposRequestPagesBuildEndpoint; + request: ReposRequestPagesBuildRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/#create-a-repository-project + */ + "POST /repos/:owner/:repo/projects": { + parameters: ProjectsCreateForRepoEndpoint; + request: ProjectsCreateForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/#create-a-pull-request + */ + "POST /repos/:owner/:repo/pulls": { + parameters: PullsCreateEndpoint; + request: PullsCreateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/comments/#create-a-review-comment-for-a-pull-request + */ + "POST /repos/:owner/:repo/pulls/:pull_number/comments": { + parameters: PullsCreateReviewCommentEndpoint; + request: PullsCreateReviewCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/comments/#create-a-reply-for-a-review-comment + */ + "POST /repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies": { + parameters: PullsCreateReplyForReviewCommentEndpoint; + request: PullsCreateReplyForReviewCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/review_requests/#request-reviewers-for-a-pull-request + */ + "POST /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { + parameters: PullsRequestReviewersEndpoint; + request: PullsRequestReviewersRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/reviews/#create-a-review-for-a-pull-request + */ + "POST /repos/:owner/:repo/pulls/:pull_number/reviews": { + parameters: PullsCreateReviewEndpoint; + request: PullsCreateReviewRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/reviews/#submit-a-review-for-a-pull-request + */ + "POST /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events": { + parameters: PullsSubmitReviewEndpoint; + request: PullsSubmitReviewRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment + */ + "POST /repos/:owner/:repo/pulls/comments/:comment_id/reactions": { + parameters: ReactionsCreateForPullRequestReviewCommentEndpoint; + request: ReactionsCreateForPullRequestReviewCommentRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#create-a-release + */ + "POST /repos/:owner/:repo/releases": { + parameters: ReposCreateReleaseEndpoint; + request: ReposCreateReleaseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/releases/#upload-a-release-asset + */ + "POST /repos/:owner/:repo/releases/:release_id/assets{?name,label}": { + parameters: ReposUploadReleaseAssetEndpoint; + request: ReposUploadReleaseAssetRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/statuses/#create-a-commit-status + */ + "POST /repos/:owner/:repo/statuses/:sha": { + parameters: ReposCreateCommitStatusEndpoint; + request: ReposCreateCommitStatusRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#transfer-a-repository + */ + "POST /repos/:owner/:repo/transfer": { + parameters: ReposTransferEndpoint; + request: ReposTransferRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#create-a-repository-using-a-template + */ + "POST /repos/:template_owner/:template_repo/generate": { + parameters: ReposCreateUsingTemplateEndpoint; + request: ReposCreateUsingTemplateRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#provision-a-scim-enterprise-group-and-invite-users + */ + "POST /scim/v2/enterprises/:enterprise/Groups": { + parameters: EnterpriseAdminProvisionAndInviteEnterpriseGroupEndpoint; + request: EnterpriseAdminProvisionAndInviteEnterpriseGroupRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#provision-and-invite-a-scim-enterprise-user + */ + "POST /scim/v2/enterprises/:enterprise/Users": { + parameters: EnterpriseAdminProvisionAndInviteEnterpriseUserEndpoint; + request: EnterpriseAdminProvisionAndInviteEnterpriseUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/scim/#provision-and-invite-a-scim-user + */ + "POST /scim/v2/organizations/:org/Users": { + parameters: ScimProvisionAndInviteUserEndpoint; + request: ScimProvisionAndInviteUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy + */ + "POST /teams/:team_id/discussions": { + parameters: TeamsCreateDiscussionLegacyEndpoint; + request: TeamsCreateDiscussionLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/discussion_comments/#create-a-discussion-comment-legacy + */ + "POST /teams/:team_id/discussions/:discussion_number/comments": { + parameters: TeamsCreateDiscussionCommentLegacyEndpoint; + request: TeamsCreateDiscussionCommentLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy + */ + "POST /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions": { + parameters: ReactionsCreateForTeamDiscussionCommentLegacyEndpoint; + request: ReactionsCreateForTeamDiscussionCommentLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy + */ + "POST /teams/:team_id/discussions/:discussion_number/reactions": { + parameters: ReactionsCreateForTeamDiscussionLegacyEndpoint; + request: ReactionsCreateForTeamDiscussionLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/emails/#add-an-email-address-for-the-authenticated-user + */ + "POST /user/emails": { + parameters: UsersAddEmailForAuthenticatedEndpoint; + request: UsersAddEmailForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key-for-the-authenticated-user + */ + "POST /user/gpg_keys": { + parameters: UsersCreateGpgKeyForAuthenticatedEndpoint; + request: UsersCreateGpgKeyForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/keys/#create-a-public-ssh-key-for-the-authenticated-user + */ + "POST /user/keys": { + parameters: UsersCreatePublicSshKeyForAuthenticatedEndpoint; + request: UsersCreatePublicSshKeyForAuthenticatedRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/users/#start-a-user-migration + */ + "POST /user/migrations": { + parameters: MigrationsStartForAuthenticatedUserEndpoint; + request: MigrationsStartForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/#create-a-user-project + */ + "POST /user/projects": { + parameters: ProjectsCreateForAuthenticatedUserEndpoint; + request: ProjectsCreateForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#create-a-repository-for-the-authenticated-user + */ + "POST /user/repos": { + parameters: ReposCreateForAuthenticatedUserEndpoint; + request: ReposCreateForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/#suspend-an-app-installation + */ + "PUT /app/installations/:installation_id/suspended": { + parameters: AppsSuspendInstallationEndpoint; + request: AppsSuspendInstallationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app + */ + "PUT /authorizations/clients/:client_id": { + parameters: OauthAuthorizationsGetOrCreateAuthorizationForAppEndpoint; + request: OauthAuthorizationsGetOrCreateAuthorizationForAppRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint + */ + "PUT /authorizations/clients/:client_id/:fingerprint": { + parameters: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintEndpoint; + request: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "PUT /enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations": { + parameters: EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseEndpoint; + request: EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "PUT /enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations/:org_id": { + parameters: EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseEndpoint; + request: EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#set-self-hosted-runners-in-a-group-for-an-enterprise + */ + "PUT /enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners": { + parameters: EnterpriseAdminSetSelfHostedInGroupForEnterpriseEndpoint; + request: EnterpriseAdminSetSelfHostedInGroupForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/actions/#add-a-self-hosted-runner-to-a-group-for-an-enterprise + */ + "PUT /enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners/:runner_id": { + parameters: EnterpriseAdminAddSelfHostedRunnerToRunnerGroupForEnterpriseEndpoint; + request: EnterpriseAdminAddSelfHostedRunnerToRunnerGroupForEnterpriseRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/gists/#star-a-gist + */ + "PUT /gists/:gist_id/star": { + parameters: GistsStarEndpoint; + request: GistsStarRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read + */ + "PUT /notifications": { + parameters: ActivityMarkNotificationsAsReadEndpoint; + request: ActivityMarkNotificationsAsReadRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription + */ + "PUT /notifications/threads/:thread_id/subscription": { + parameters: ActivitySetThreadSubscriptionEndpoint; + request: ActivitySetThreadSubscriptionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#set-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "PUT /orgs/:org/actions/runner-groups/:runner_group_id/repositories": { + parameters: ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgEndpoint; + request: ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#add-repository-acess-to-a-self-hosted-runner-group-in-an-organization + */ + "PUT /orgs/:org/actions/runner-groups/:runner_group_id/repositories/:repository_id": { + parameters: ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgEndpoint; + request: ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/sef-hosted-runner-groups/#set-self-hosted-runners-in-a-group-for-an-organization + */ + "PUT /orgs/:org/actions/runner-groups/:runner_group_id/runners": { + parameters: ActionsSetSelfHostedRunnersInGroupForOrgEndpoint; + request: ActionsSetSelfHostedRunnersInGroupForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/self-hosted-runner-groups/#add-a-self-hosted-runner-to-a-group-for-an-organization + */ + "PUT /orgs/:org/actions/runner-groups/:runner_group_id/runners/:runner_id": { + parameters: ActionsAddSelfHostedRunnerToGroupForOrgEndpoint; + request: ActionsAddSelfHostedRunnerToGroupForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#create-or-update-an-organization-secret + */ + "PUT /orgs/:org/actions/secrets/:secret_name": { + parameters: ActionsCreateOrUpdateOrgSecretEndpoint; + request: ActionsCreateOrUpdateOrgSecretRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#set-selected-repositories-for-an-organization-secret + */ + "PUT /orgs/:org/actions/secrets/:secret_name/repositories": { + parameters: ActionsSetSelectedReposForOrgSecretEndpoint; + request: ActionsSetSelectedReposForOrgSecretRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#add-selected-repository-to-an-organization-secret + */ + "PUT /orgs/:org/actions/secrets/:secret_name/repositories/:repository_id": { + parameters: ActionsAddSelectedRepoToOrgSecretEndpoint; + request: ActionsAddSelectedRepoToOrgSecretRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/blocking/#block-a-user-from-an-organization + */ + "PUT /orgs/:org/blocks/:username": { + parameters: OrgsBlockUserEndpoint; + request: OrgsBlockUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/interactions/orgs/#set-interaction-restrictions-for-an-organization + */ + "PUT /orgs/:org/interaction-limits": { + parameters: InteractionsSetRestrictionsForOrgEndpoint; + request: InteractionsSetRestrictionsForOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#set-organization-membership-for-a-user + */ + "PUT /orgs/:org/memberships/:username": { + parameters: OrgsSetMembershipForUserEndpoint; + request: OrgsSetMembershipForUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/outside_collaborators/#convert-an-organization-member-to-outside-collaborator + */ + "PUT /orgs/:org/outside_collaborators/:username": { + parameters: OrgsConvertMemberToOutsideCollaboratorEndpoint; + request: OrgsConvertMemberToOutsideCollaboratorRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/orgs/members/#set-public-organization-membership-for-the-authenticated-user + */ + "PUT /orgs/:org/public_members/:username": { + parameters: OrgsSetPublicMembershipForAuthenticatedUserEndpoint; + request: OrgsSetPublicMembershipForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user + */ + "PUT /orgs/:org/teams/:team_slug/memberships/:username": { + parameters: TeamsAddOrUpdateMembershipForUserInOrgEndpoint; + request: TeamsAddOrUpdateMembershipForUserInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#add-or-update-team-project-permissions + */ + "PUT /orgs/:org/teams/:team_slug/projects/:project_id": { + parameters: TeamsAddOrUpdateProjectPermissionsInOrgEndpoint; + request: TeamsAddOrUpdateProjectPermissionsInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions + */ + "PUT /orgs/:org/teams/:team_slug/repos/:owner/:repo": { + parameters: TeamsAddOrUpdateRepoPermissionsInOrgEndpoint; + request: TeamsAddOrUpdateRepoPermissionsInOrgRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/projects/collaborators/#add-project-collaborator + */ + "PUT /projects/:project_id/collaborators/:username": { + parameters: ProjectsAddCollaboratorEndpoint; + request: ProjectsAddCollaboratorRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/actions/secrets/#create-or-update-a-repository-secret + */ + "PUT /repos/:owner/:repo/actions/secrets/:secret_name": { + parameters: ActionsCreateOrUpdateRepoSecretEndpoint; + request: ActionsCreateOrUpdateRepoSecretRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#enable-automated-security-fixes + */ + "PUT /repos/:owner/:repo/automated-security-fixes": { + parameters: ReposEnableAutomatedSecurityFixesEndpoint; + request: ReposEnableAutomatedSecurityFixesRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#update-branch-protection + */ + "PUT /repos/:owner/:repo/branches/:branch/protection": { + parameters: ReposUpdateBranchProtectionEndpoint; + request: ReposUpdateBranchProtectionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#set-status-check-contexts + */ + "PUT /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { + parameters: ReposSetStatusCheckContextsEndpoint; + request: ReposSetStatusCheckContextsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#set-app-access-restrictions + */ + "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { + parameters: ReposSetAppAccessRestrictionsEndpoint; + request: ReposSetAppAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#set-team-access-restrictions + */ + "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { + parameters: ReposSetTeamAccessRestrictionsEndpoint; + request: ReposSetTeamAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/branches/#set-user-access-restrictions + */ + "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { + parameters: ReposSetUserAccessRestrictionsEndpoint; + request: ReposSetUserAccessRestrictionsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/collaborators/#add-a-repository-collaborator + */ + "PUT /repos/:owner/:repo/collaborators/:username": { + parameters: ReposAddCollaboratorEndpoint; + request: ReposAddCollaboratorRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/contents/#create-or-update-file-contents + */ + "PUT /repos/:owner/:repo/contents/:path": { + parameters: ReposCreateOrUpdateFileContentsEndpoint; + request: ReposCreateOrUpdateFileContentsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/migrations/source_imports/#start-an-import + */ + "PUT /repos/:owner/:repo/import": { + parameters: MigrationsStartImportEndpoint; + request: MigrationsStartImportRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/interactions/repos/#set-interaction-restrictions-for-a-repository + */ + "PUT /repos/:owner/:repo/interaction-limits": { + parameters: InteractionsSetRestrictionsForRepoEndpoint; + request: InteractionsSetRestrictionsForRepoRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/labels/#set-labels-for-an-issue + */ + "PUT /repos/:owner/:repo/issues/:issue_number/labels": { + parameters: IssuesSetLabelsEndpoint; + request: IssuesSetLabelsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/issues/#lock-an-issue + */ + "PUT /repos/:owner/:repo/issues/:issue_number/lock": { + parameters: IssuesLockEndpoint; + request: IssuesLockRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read + */ + "PUT /repos/:owner/:repo/notifications": { + parameters: ActivityMarkRepoNotificationsAsReadEndpoint; + request: ActivityMarkRepoNotificationsAsReadRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/pages/#update-information-about-a-github-pages-site + */ + "PUT /repos/:owner/:repo/pages": { + parameters: ReposUpdateInformationAboutPagesSiteEndpoint; + request: ReposUpdateInformationAboutPagesSiteRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/#merge-a-pull-request + */ + "PUT /repos/:owner/:repo/pulls/:pull_number/merge": { + parameters: PullsMergeEndpoint; + request: PullsMergeRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/reviews/#update-a-review-for-a-pull-request + */ + "PUT /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { + parameters: PullsUpdateReviewEndpoint; + request: PullsUpdateReviewRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/reviews/#dismiss-a-review-for-a-pull-request + */ + "PUT /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals": { + parameters: PullsDismissReviewEndpoint; + request: PullsDismissReviewRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/pulls/#update-a-pull-request-branch + */ + "PUT /repos/:owner/:repo/pulls/:pull_number/update-branch": { + parameters: PullsUpdateBranchEndpoint; + request: PullsUpdateBranchRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/watching/#set-a-repository-subscription + */ + "PUT /repos/:owner/:repo/subscription": { + parameters: ActivitySetRepoSubscriptionEndpoint; + request: ActivitySetRepoSubscriptionRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#replace-all-repository-topics + */ + "PUT /repos/:owner/:repo/topics": { + parameters: ReposReplaceAllTopicsEndpoint; + request: ReposReplaceAllTopicsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/repos/#enable-vulnerability-alerts + */ + "PUT /repos/:owner/:repo/vulnerability-alerts": { + parameters: ReposEnableVulnerabilityAlertsEndpoint; + request: ReposEnableVulnerabilityAlertsRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#set-scim-information-for-a-provisioned-enterprise-group + */ + "PUT /scim/v2/enterprises/:enterprise/Groups/:scim_group_id": { + parameters: EnterpriseAdminSetInformationForProvisionedEnterpriseGroupEndpoint; + request: EnterpriseAdminSetInformationForProvisionedEnterpriseGroupRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/enterprise-admin/scim/#set-scim-information-for-a-provisioned-enterprise-user + */ + "PUT /scim/v2/enterprises/:enterprise/Users/:scim_user_id": { + parameters: EnterpriseAdminSetInformationForProvisionedEnterpriseUserEndpoint; + request: EnterpriseAdminSetInformationForProvisionedEnterpriseUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/scim/#set-scim-information-for-a-provisioned-user + */ + "PUT /scim/v2/organizations/:org/Users/:scim_user_id": { + parameters: ScimSetInformationForProvisionedUserEndpoint; + request: ScimSetInformationForProvisionedUserRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#add-team-member-legacy + */ + "PUT /teams/:team_id/members/:username": { + parameters: TeamsAddMemberLegacyEndpoint; + request: TeamsAddMemberLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-for-a-user-legacy + */ + "PUT /teams/:team_id/memberships/:username": { + parameters: TeamsAddOrUpdateMembershipForUserLegacyEndpoint; + request: TeamsAddOrUpdateMembershipForUserLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#add-or-update-team-project-permissions-legacy + */ + "PUT /teams/:team_id/projects/:project_id": { + parameters: TeamsAddOrUpdateProjectPermissionsLegacyEndpoint; + request: TeamsAddOrUpdateProjectPermissionsLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy + */ + "PUT /teams/:team_id/repos/:owner/:repo": { + parameters: TeamsAddOrUpdateRepoPermissionsLegacyEndpoint; + request: TeamsAddOrUpdateRepoPermissionsLegacyRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/blocking/#block-a-user + */ + "PUT /user/blocks/:username": { + parameters: UsersBlockEndpoint; + request: UsersBlockRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/users/followers/#follow-a-user + */ + "PUT /user/following/:username": { + parameters: UsersFollowEndpoint; + request: UsersFollowRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/apps/installations/#add-a-repository-to-an-app-installation + */ + "PUT /user/installations/:installation_id/repositories/:repository_id": { + parameters: AppsAddRepoToInstallationEndpoint; + request: AppsAddRepoToInstallationRequestOptions; + response: OctokitResponse; + }; + /** + * @see https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user + */ + "PUT /user/starred/:owner/:repo": { + parameters: ActivityStarRepoForAuthenticatedUserEndpoint; + request: ActivityStarRepoForAuthenticatedUserRequestOptions; + response: OctokitResponse; + }; +} +declare type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + repository_id: number; +}; +declare type ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgRequestOptions = { + method: "PUT"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id/repositories/:repository_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsAddSelectedRepoToOrgSecretEndpoint = { + org: string; + secret_name: string; + repository_id: number; +}; +declare type ActionsAddSelectedRepoToOrgSecretRequestOptions = { + method: "PUT"; + url: "/orgs/:org/actions/secrets/:secret_name/repositories/:repository_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsAddSelfHostedRunnerToGroupForOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; +}; +declare type ActionsAddSelfHostedRunnerToGroupForOrgRequestOptions = { + method: "PUT"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id/runners/:runner_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsCancelWorkflowRunEndpoint = { + owner: string; + repo: string; + run_id: number; +}; +declare type ActionsCancelWorkflowRunRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsCreateOrUpdateOrgSecretEndpoint = { + org: string; + secret_name: string; + /** + * Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://developer.github.com/v3/actions/secrets/#get-an-organization-public-key) endpoint. + */ + encrypted_value?: string; + /** + * ID of the key you used to encrypt the secret. + */ + key_id?: string; + /** + * Configures the access that repositories have to the organization secret. Can be one of: + * \- `all` - All repositories in an organization can access the secret. + * \- `private` - Private repositories in an organization can access the secret. + * \- `selected` - Only specific repositories can access the secret. + */ + visibility?: "all" | "private" | "selected"; + /** + * An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://developer.github.com/v3/actions/secrets/#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://developer.github.com/v3/actions/secrets/#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://developer.github.com/v3/actions/secrets/#remove-selected-repository-from-an-organization-secret) endpoints. + */ + selected_repository_ids?: number[]; +}; +declare type ActionsCreateOrUpdateOrgSecretRequestOptions = { + method: "PUT"; + url: "/orgs/:org/actions/secrets/:secret_name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsCreateOrUpdateRepoSecretEndpoint = { + owner: string; + repo: string; + secret_name: string; + /** + * Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://developer.github.com/v3/actions/secrets/#get-a-repository-public-key) endpoint. + */ + encrypted_value?: string; + /** + * ID of the key you used to encrypt the secret. + */ + key_id?: string; +}; +declare type ActionsCreateOrUpdateRepoSecretRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/actions/secrets/:secret_name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsCreateRegistrationTokenForOrgEndpoint = { + org: string; +}; +declare type ActionsCreateRegistrationTokenForOrgRequestOptions = { + method: "POST"; + url: "/orgs/:org/actions/runners/registration-token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsCreateRegistrationTokenForOrgResponseData { + token: string; + expires_at: string; +} +declare type ActionsCreateRegistrationTokenForRepoEndpoint = { + owner: string; + repo: string; +}; +declare type ActionsCreateRegistrationTokenForRepoRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/actions/runners/registration-token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsCreateRegistrationTokenForRepoResponseData { + token: string; + expires_at: string; +} +declare type ActionsCreateRemoveTokenForOrgEndpoint = { + org: string; +}; +declare type ActionsCreateRemoveTokenForOrgRequestOptions = { + method: "POST"; + url: "/orgs/:org/actions/runners/remove-token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsCreateRemoveTokenForOrgResponseData { + token: string; + expires_at: string; +} +declare type ActionsCreateRemoveTokenForRepoEndpoint = { + owner: string; + repo: string; +}; +declare type ActionsCreateRemoveTokenForRepoRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/actions/runners/remove-token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsCreateRemoveTokenForRepoResponseData { + token: string; + expires_at: string; +} +declare type ActionsCreateSelfHostedRunnerGroupForOrgEndpoint = { + org: string; + /** + * Name of the runner group. + */ + name: string; + /** + * Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. Can be one of: `all`, `selected`, or `private`. + */ + visibility?: "selected" | "all" | "private"; + /** + * List of repository IDs that can access the runner group. + */ + selected_repository_ids?: number[]; + /** + * List of runner IDs to add to the runner group. + */ + runners?: number[]; +}; +declare type ActionsCreateSelfHostedRunnerGroupForOrgRequestOptions = { + method: "POST"; + url: "/orgs/:org/actions/runner-groups"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsCreateSelfHostedRunnerGroupForOrgResponseData { + id: number; + name: string; + visibility: string; + default: boolean; + selected_repositories_url: string; + runners_url: string; + inherited: boolean; +} +declare type ActionsCreateWorkflowDispatchEndpoint = { + owner: string; + repo: string; + workflow_id: number; + /** + * The reference of the workflow run. The reference can be a branch, tag, or a commit SHA. + */ + ref: string; + /** + * Input keys and values configured in the workflow file. The maximum number of properties is 10. + */ + inputs?: ActionsCreateWorkflowDispatchParamsInputs; +}; +declare type ActionsCreateWorkflowDispatchRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/actions/workflows/:workflow_id/dispatches"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDeleteArtifactEndpoint = { + owner: string; + repo: string; + artifact_id: number; +}; +declare type ActionsDeleteArtifactRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDeleteOrgSecretEndpoint = { + org: string; + secret_name: string; +}; +declare type ActionsDeleteOrgSecretRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/actions/secrets/:secret_name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDeleteRepoSecretEndpoint = { + owner: string; + repo: string; + secret_name: string; +}; +declare type ActionsDeleteRepoSecretRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/actions/secrets/:secret_name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDeleteSelfHostedRunnerFromOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; +}; +declare type ActionsDeleteSelfHostedRunnerFromOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/actions/runners/:runner_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDeleteSelfHostedRunnerFromRepoEndpoint = { + owner: string; + repo: string; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; +}; +declare type ActionsDeleteSelfHostedRunnerFromRepoRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/actions/runners/:runner_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDeleteSelfHostedRunnerGroupFromOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; +}; +declare type ActionsDeleteSelfHostedRunnerGroupFromOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDeleteWorkflowRunEndpoint = { + owner: string; + repo: string; + run_id: number; +}; +declare type ActionsDeleteWorkflowRunRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/actions/runs/:run_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDeleteWorkflowRunLogsEndpoint = { + owner: string; + repo: string; + run_id: number; +}; +declare type ActionsDeleteWorkflowRunLogsRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/actions/runs/:run_id/logs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDownloadArtifactEndpoint = { + owner: string; + repo: string; + artifact_id: number; + archive_format: string; +}; +declare type ActionsDownloadArtifactRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDownloadJobLogsForWorkflowRunEndpoint = { + owner: string; + repo: string; + job_id: number; +}; +declare type ActionsDownloadJobLogsForWorkflowRunRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsDownloadWorkflowRunLogsEndpoint = { + owner: string; + repo: string; + run_id: number; +}; +declare type ActionsDownloadWorkflowRunLogsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/runs/:run_id/logs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsGetArtifactEndpoint = { + owner: string; + repo: string; + artifact_id: number; +}; +declare type ActionsGetArtifactRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetArtifactResponseData { + id: number; + node_id: string; + name: string; + size_in_bytes: number; + url: string; + archive_download_url: string; + expired: boolean; + created_at: string; + expires_at: string; +} +declare type ActionsGetJobForWorkflowRunEndpoint = { + owner: string; + repo: string; + job_id: number; +}; +declare type ActionsGetJobForWorkflowRunRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/jobs/:job_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetJobForWorkflowRunResponseData { + id: number; + run_id: number; + run_url: string; + node_id: string; + head_sha: string; + url: string; + html_url: string; + status: string; + conclusion: string; + started_at: string; + completed_at: string; + name: string; + steps: { + name: string; + status: string; + conclusion: string; + number: number; + started_at: string; + completed_at: string; + }[]; + check_run_url: string; +} +declare type ActionsGetOrgPublicKeyEndpoint = { + org: string; +}; +declare type ActionsGetOrgPublicKeyRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/secrets/public-key"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetOrgPublicKeyResponseData { + key_id: string; + key: string; +} +declare type ActionsGetOrgSecretEndpoint = { + org: string; + secret_name: string; +}; +declare type ActionsGetOrgSecretRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/secrets/:secret_name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetOrgSecretResponseData { + name: string; + created_at: string; + updated_at: string; + visibility: string; + selected_repositories_url: string; +} +declare type ActionsGetRepoPublicKeyEndpoint = { + owner: string; + repo: string; +}; +declare type ActionsGetRepoPublicKeyRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/secrets/public-key"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetRepoPublicKeyResponseData { + key_id: string; + key: string; +} +declare type ActionsGetRepoSecretEndpoint = { + owner: string; + repo: string; + secret_name: string; +}; +declare type ActionsGetRepoSecretRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/secrets/:secret_name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetRepoSecretResponseData { + name: string; + created_at: string; + updated_at: string; +} +declare type ActionsGetSelfHostedRunnerForOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; +}; +declare type ActionsGetSelfHostedRunnerForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/runners/:runner_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetSelfHostedRunnerForOrgResponseData { + id: number; + name: string; + os: string; + status: string; + busy: boolean; + labels: { + /** + * Unique identifier of the label. + */ + id: number; + /** + * Name of the label. + */ + name: string; + /** + * The type of label. Read-only labels are applied automatically when the runner is configured. + */ + type: "read-only" | "custom"; + }[]; +} +declare type ActionsGetSelfHostedRunnerForRepoEndpoint = { + owner: string; + repo: string; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; +}; +declare type ActionsGetSelfHostedRunnerForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/runners/:runner_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetSelfHostedRunnerForRepoResponseData { + id: number; + name: string; + os: string; + status: string; + busy: boolean; + labels: { + /** + * Unique identifier of the label. + */ + id: number; + /** + * Name of the label. + */ + name: string; + /** + * The type of label. Read-only labels are applied automatically when the runner is configured. + */ + type: "read-only" | "custom"; + }[]; +} +declare type ActionsGetSelfHostedRunnerGroupForOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; +}; +declare type ActionsGetSelfHostedRunnerGroupForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetSelfHostedRunnerGroupForOrgResponseData { + id: number; + name: string; + visibility: string; + default: boolean; + selected_repositories_url: string; + runners_url: string; + inherited: boolean; +} +declare type ActionsGetWorkflowEndpoint = { + owner: string; + repo: string; + workflow_id: number; +}; +declare type ActionsGetWorkflowRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/workflows/:workflow_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetWorkflowResponseData { + id: number; + node_id: string; + name: string; + path: string; + state: string; + created_at: string; + updated_at: string; + url: string; + html_url: string; + badge_url: string; +} +declare type ActionsGetWorkflowRunEndpoint = { + owner: string; + repo: string; + run_id: number; +}; +declare type ActionsGetWorkflowRunRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/runs/:run_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetWorkflowRunResponseData { + id: number; + node_id: string; + head_branch: string; + head_sha: string; + run_number: number; + event: string; + status: string; + conclusion: string; + workflow_id: number; + url: string; + html_url: string; + pull_requests: unknown[]; + created_at: string; + updated_at: string; + jobs_url: string; + logs_url: string; + check_suite_url: string; + artifacts_url: string; + cancel_url: string; + rerun_url: string; + workflow_url: string; + head_commit: { + id: string; + tree_id: string; + message: string; + timestamp: string; + author: { + name: string; + email: string; + }; + committer: { + name: string; + email: string; + }; + }; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + head_repository: { + id: number; + node_id: string; + name: string; + full_name: string; + private: boolean; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + html_url: string; + description: string; + fork: boolean; + url: string; + forks_url: string; + keys_url: string; + collaborators_url: string; + teams_url: string; + hooks_url: string; + issue_events_url: string; + events_url: string; + assignees_url: string; + branches_url: string; + tags_url: string; + blobs_url: string; + git_tags_url: string; + git_refs_url: string; + trees_url: string; + statuses_url: string; + languages_url: string; + stargazers_url: string; + contributors_url: string; + subscribers_url: string; + subscription_url: string; + commits_url: string; + git_commits_url: string; + comments_url: string; + issue_comment_url: string; + contents_url: string; + compare_url: string; + merges_url: string; + archive_url: string; + downloads_url: string; + issues_url: string; + pulls_url: string; + milestones_url: string; + notifications_url: string; + labels_url: string; + releases_url: string; + deployments_url: string; + }; +} +declare type ActionsGetWorkflowRunUsageEndpoint = { + owner: string; + repo: string; + run_id: number; +}; +declare type ActionsGetWorkflowRunUsageRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/runs/:run_id/timing"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetWorkflowRunUsageResponseData { + billable: { + UBUNTU: { + total_ms: number; + jobs: number; + }; + MACOS: { + total_ms: number; + jobs: number; + }; + WINDOWS: { + total_ms: number; + jobs: number; + }; + }; + run_duration_ms: number; +} +declare type ActionsGetWorkflowUsageEndpoint = { + owner: string; + repo: string; + workflow_id: number; +}; +declare type ActionsGetWorkflowUsageRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/workflows/:workflow_id/timing"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsGetWorkflowUsageResponseData { + billable: { + UBUNTU: { + total_ms: number; + }; + MACOS: { + total_ms: number; + }; + WINDOWS: { + total_ms: number; + }; + }; +} +declare type ActionsListArtifactsForRepoEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListArtifactsForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/artifacts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListArtifactsForRepoResponseData { + total_count: number; + artifacts: { + id: number; + node_id: string; + name: string; + size_in_bytes: number; + url: string; + archive_download_url: string; + expired: boolean; + created_at: string; + expires_at: string; + }[]; +} +declare type ActionsListJobsForWorkflowRunEndpoint = { + owner: string; + repo: string; + run_id: number; + /** + * Filters jobs by their `completed_at` timestamp. Can be one of: + * \* `latest`: Returns jobs from the most recent execution of the workflow run. + * \* `all`: Returns all jobs for a workflow run, including from old executions of the workflow run. + */ + filter?: "latest" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListJobsForWorkflowRunRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListJobsForWorkflowRunResponseData { + total_count: number; + jobs: { + id: number; + run_id: number; + run_url: string; + node_id: string; + head_sha: string; + url: string; + html_url: string; + status: string; + conclusion: string; + started_at: string; + completed_at: string; + name: string; + steps: { + name: string; + status: string; + conclusion: string; + number: number; + started_at: string; + completed_at: string; + }[]; + check_run_url: string; + }[]; +} +declare type ActionsListOrgSecretsEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListOrgSecretsRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/secrets"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListOrgSecretsResponseData { + total_count: number; + secrets: { + name: string; + created_at: string; + updated_at: string; + visibility: string; + selected_repositories_url: string; + }[]; +} +declare type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; +}; +declare type ActionsListRepoAccessToSelfHostedRunnerGroupInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id/repositories"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListRepoAccessToSelfHostedRunnerGroupInOrgResponseData { + total_count: number; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }[]; +} +declare type ActionsListRepoSecretsEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListRepoSecretsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/secrets"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListRepoSecretsResponseData { + total_count: number; + secrets: { + name: string; + created_at: string; + updated_at: string; + }[]; +} +declare type ActionsListRepoWorkflowsEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListRepoWorkflowsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/workflows"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListRepoWorkflowsResponseData { + total_count: number; + workflows: { + id: number; + node_id: string; + name: string; + path: string; + state: string; + created_at: string; + updated_at: string; + url: string; + html_url: string; + badge_url: string; + }[]; +} +declare type ActionsListRunnerApplicationsForOrgEndpoint = { + org: string; +}; +declare type ActionsListRunnerApplicationsForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/runners/downloads"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ActionsListRunnerApplicationsForOrgResponseData = { + os: string; + architecture: string; + download_url: string; + filename: string; +}[]; +declare type ActionsListRunnerApplicationsForRepoEndpoint = { + owner: string; + repo: string; +}; +declare type ActionsListRunnerApplicationsForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/runners/downloads"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ActionsListRunnerApplicationsForRepoResponseData = { + os: string; + architecture: string; + download_url: string; + filename: string; +}[]; +declare type ActionsListSelectedReposForOrgSecretEndpoint = { + org: string; + secret_name: string; +}; +declare type ActionsListSelectedReposForOrgSecretRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/secrets/:secret_name/repositories"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListSelectedReposForOrgSecretResponseData { + total_count: number; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }[]; +} +declare type ActionsListSelfHostedRunnerGroupsForOrgEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListSelfHostedRunnerGroupsForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/runner-groups"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListSelfHostedRunnerGroupsForOrgResponseData { + total_count: number; + runner_groups: { + id: number; + name: string; + visibility: string; + default: boolean; + selected_repositories_url: string; + runners_url: string; + inherited: boolean; + }[]; +} +declare type ActionsListSelfHostedRunnersForOrgEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListSelfHostedRunnersForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/runners"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListSelfHostedRunnersForOrgResponseData { + total_count: number; + runners: { + id: number; + name: string; + os: string; + status: string; + busy: boolean; + labels: { + /** + * Unique identifier of the label. + */ + id: number; + /** + * Name of the label. + */ + name: string; + /** + * The type of label. Read-only labels are applied automatically when the runner is configured. + */ + type: "read-only" | "custom"; + }[]; + }[]; +} +declare type ActionsListSelfHostedRunnersForRepoEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListSelfHostedRunnersForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/runners"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListSelfHostedRunnersForRepoResponseData { + total_count: number; + runners: { + id: number; + name: string; + os: string; + status: string; + busy: boolean; + labels: { + /** + * Unique identifier of the label. + */ + id: number; + /** + * Name of the label. + */ + name: string; + /** + * The type of label. Read-only labels are applied automatically when the runner is configured. + */ + type: "read-only" | "custom"; + }[]; + }[]; +} +declare type ActionsListSelfHostedRunnersInGroupForOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListSelfHostedRunnersInGroupForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id/runners"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListSelfHostedRunnersInGroupForOrgResponseData { + total_count: number; + runners: { + id: number; + name: string; + os: string; + status: string; + busy: boolean; + labels: { + /** + * Unique identifier of the label. + */ + id: number; + /** + * Name of the label. + */ + name: string; + /** + * The type of label. Read-only labels are applied automatically when the runner is configured. + */ + type: "read-only" | "custom"; + }[]; + }[]; +} +declare type ActionsListWorkflowRunArtifactsEndpoint = { + owner: string; + repo: string; + run_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListWorkflowRunArtifactsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListWorkflowRunArtifactsResponseData { + total_count: number; + artifacts: { + id: number; + node_id: string; + name: string; + size_in_bytes: number; + url: string; + archive_download_url: string; + expired: boolean; + created_at: string; + expires_at: string; + }[]; +} +declare type ActionsListWorkflowRunsEndpoint = { + owner: string; + repo: string; + workflow_id: number; + /** + * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. + */ + actor?: string; + /** + * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. + */ + branch?: string; + /** + * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://docs.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)." + */ + event?: string; + /** + * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." + */ + status?: "completed" | "status" | "conclusion"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListWorkflowRunsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListWorkflowRunsResponseData { + total_count: number; + workflow_runs: { + id: number; + node_id: string; + head_branch: string; + head_sha: string; + run_number: number; + event: string; + status: string; + conclusion: string; + workflow_id: number; + url: string; + html_url: string; + pull_requests: unknown[]; + created_at: string; + updated_at: string; + jobs_url: string; + logs_url: string; + check_suite_url: string; + artifacts_url: string; + cancel_url: string; + rerun_url: string; + workflow_url: string; + head_commit: { + id: string; + tree_id: string; + message: string; + timestamp: string; + author: { + name: string; + email: string; + }; + committer: { + name: string; + email: string; + }; + }; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + head_repository: { + id: number; + node_id: string; + name: string; + full_name: string; + private: boolean; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + html_url: string; + description: string; + fork: boolean; + url: string; + forks_url: string; + keys_url: string; + collaborators_url: string; + teams_url: string; + hooks_url: string; + issue_events_url: string; + events_url: string; + assignees_url: string; + branches_url: string; + tags_url: string; + blobs_url: string; + git_tags_url: string; + git_refs_url: string; + trees_url: string; + statuses_url: string; + languages_url: string; + stargazers_url: string; + contributors_url: string; + subscribers_url: string; + subscription_url: string; + commits_url: string; + git_commits_url: string; + comments_url: string; + issue_comment_url: string; + contents_url: string; + compare_url: string; + merges_url: string; + archive_url: string; + downloads_url: string; + issues_url: string; + pulls_url: string; + milestones_url: string; + notifications_url: string; + labels_url: string; + releases_url: string; + deployments_url: string; + }; + }[]; +} +declare type ActionsListWorkflowRunsForRepoEndpoint = { + owner: string; + repo: string; + /** + * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. + */ + actor?: string; + /** + * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. + */ + branch?: string; + /** + * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://docs.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)." + */ + event?: string; + /** + * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." + */ + status?: "completed" | "status" | "conclusion"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActionsListWorkflowRunsForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/actions/runs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsListWorkflowRunsForRepoResponseData { + total_count: number; + workflow_runs: { + id: number; + node_id: string; + head_branch: string; + head_sha: string; + run_number: number; + event: string; + status: string; + conclusion: string; + workflow_id: number; + url: string; + html_url: string; + pull_requests: unknown[]; + created_at: string; + updated_at: string; + jobs_url: string; + logs_url: string; + check_suite_url: string; + artifacts_url: string; + cancel_url: string; + rerun_url: string; + workflow_url: string; + head_commit: { + id: string; + tree_id: string; + message: string; + timestamp: string; + author: { + name: string; + email: string; + }; + committer: { + name: string; + email: string; + }; + }; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + head_repository: { + id: number; + node_id: string; + name: string; + full_name: string; + private: boolean; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + html_url: string; + description: string; + fork: boolean; + url: string; + forks_url: string; + keys_url: string; + collaborators_url: string; + teams_url: string; + hooks_url: string; + issue_events_url: string; + events_url: string; + assignees_url: string; + branches_url: string; + tags_url: string; + blobs_url: string; + git_tags_url: string; + git_refs_url: string; + trees_url: string; + statuses_url: string; + languages_url: string; + stargazers_url: string; + contributors_url: string; + subscribers_url: string; + subscription_url: string; + commits_url: string; + git_commits_url: string; + comments_url: string; + issue_comment_url: string; + contents_url: string; + compare_url: string; + merges_url: string; + archive_url: string; + downloads_url: string; + issues_url: string; + pulls_url: string; + milestones_url: string; + notifications_url: string; + labels_url: string; + releases_url: string; + deployments_url: string; + }; + }[]; +} +declare type ActionsReRunWorkflowEndpoint = { + owner: string; + repo: string; + run_id: number; +}; +declare type ActionsReRunWorkflowRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + repository_id: number; +}; +declare type ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id/repositories/:repository_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsRemoveSelectedRepoFromOrgSecretEndpoint = { + org: string; + secret_name: string; + repository_id: number; +}; +declare type ActionsRemoveSelectedRepoFromOrgSecretRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/actions/secrets/:secret_name/repositories/:repository_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsRemoveSelfHostedRunnerFromGroupForOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; +}; +declare type ActionsRemoveSelfHostedRunnerFromGroupForOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id/runners/:runner_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * List of repository IDs that can access the runner group. + */ + selected_repository_ids: number[]; +}; +declare type ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgRequestOptions = { + method: "PUT"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id/repositories"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsSetSelectedReposForOrgSecretEndpoint = { + org: string; + secret_name: string; + /** + * An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://developer.github.com/v3/actions/secrets/#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://developer.github.com/v3/actions/secrets/#remove-selected-repository-from-an-organization-secret) endpoints. + */ + selected_repository_ids?: number[]; +}; +declare type ActionsSetSelectedReposForOrgSecretRequestOptions = { + method: "PUT"; + url: "/orgs/:org/actions/secrets/:secret_name/repositories"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsSetSelfHostedRunnersInGroupForOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * List of runner IDs to add to the runner group. + */ + runners: number[]; +}; +declare type ActionsSetSelfHostedRunnersInGroupForOrgRequestOptions = { + method: "PUT"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id/runners"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActionsUpdateSelfHostedRunnerGroupForOrgEndpoint = { + org: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Name of the runner group. + */ + name?: string; + /** + * Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. Can be one of: `all`, `selected`, or `private`. + */ + visibility?: "selected" | "all" | "private"; +}; +declare type ActionsUpdateSelfHostedRunnerGroupForOrgRequestOptions = { + method: "PATCH"; + url: "/orgs/:org/actions/runner-groups/:runner_group_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActionsUpdateSelfHostedRunnerGroupForOrgResponseData { + id: number; + name: string; + visibility: string; + default: boolean; + selected_repositories_url: string; + runners_url: string; + inherited: boolean; +} +declare type ActivityCheckRepoIsStarredByAuthenticatedUserEndpoint = { + owner: string; + repo: string; +}; +declare type ActivityCheckRepoIsStarredByAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/starred/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityDeleteRepoSubscriptionEndpoint = { + owner: string; + repo: string; +}; +declare type ActivityDeleteRepoSubscriptionRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/subscription"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityDeleteThreadSubscriptionEndpoint = { + thread_id: number; +}; +declare type ActivityDeleteThreadSubscriptionRequestOptions = { + method: "DELETE"; + url: "/notifications/threads/:thread_id/subscription"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityGetFeedsEndpoint = {}; +declare type ActivityGetFeedsRequestOptions = { + method: "GET"; + url: "/feeds"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActivityGetFeedsResponseData { + timeline_url: string; + user_url: string; + current_user_public_url: string; + current_user_url: string; + current_user_actor_url: string; + current_user_organization_url: string; + current_user_organization_urls: string[]; + security_advisories_url: string; + _links: { + timeline: { + href: string; + type: string; + }; + user: { + href: string; + type: string; + }; + current_user_public: { + href: string; + type: string; + }; + current_user: { + href: string; + type: string; + }; + current_user_actor: { + href: string; + type: string; + }; + current_user_organization: { + href: string; + type: string; + }; + current_user_organizations: { + href: string; + type: string; + }[]; + security_advisories: { + href: string; + type: string; + }; + }; +} +declare type ActivityGetRepoSubscriptionEndpoint = { + owner: string; + repo: string; +}; +declare type ActivityGetRepoSubscriptionRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/subscription"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActivityGetRepoSubscriptionResponseData { + subscribed: boolean; + ignored: boolean; + reason: string; + created_at: string; + url: string; + repository_url: string; +} +declare type ActivityGetThreadEndpoint = { + thread_id: number; +}; +declare type ActivityGetThreadRequestOptions = { + method: "GET"; + url: "/notifications/threads/:thread_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActivityGetThreadResponseData { + id: string; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + subject: { + title: string; + url: string; + latest_comment_url: string; + type: string; + }; + reason: string; + unread: boolean; + updated_at: string; + last_read_at: string; + url: string; +} +declare type ActivityGetThreadSubscriptionForAuthenticatedUserEndpoint = { + thread_id: number; +}; +declare type ActivityGetThreadSubscriptionForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/notifications/threads/:thread_id/subscription"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActivityGetThreadSubscriptionForAuthenticatedUserResponseData { + subscribed: boolean; + ignored: boolean; + reason: string; + created_at: string; + url: string; + thread_url: string; +} +declare type ActivityListEventsForAuthenticatedUserEndpoint = { + username: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListEventsForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/users/:username/events"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityListNotificationsForAuthenticatedUserEndpoint = { + /** + * If `true`, show notifications marked as read. + */ + all?: boolean; + /** + * If `true`, only shows notifications in which the user is directly participating or mentioned. + */ + participating?: boolean; + /** + * 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`. + */ + since?: string; + /** + * 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`. + */ + before?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListNotificationsForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/notifications"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ActivityListNotificationsForAuthenticatedUserResponseData = { + id: string; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + subject: { + title: string; + url: string; + latest_comment_url: string; + type: string; + }; + reason: string; + unread: boolean; + updated_at: string; + last_read_at: string; + url: string; +}[]; +declare type ActivityListOrgEventsForAuthenticatedUserEndpoint = { + username: string; + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListOrgEventsForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/users/:username/events/orgs/:org"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityListPublicEventsEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListPublicEventsRequestOptions = { + method: "GET"; + url: "/events"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityListPublicEventsForRepoNetworkEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListPublicEventsForRepoNetworkRequestOptions = { + method: "GET"; + url: "/networks/:owner/:repo/events"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityListPublicEventsForUserEndpoint = { + username: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListPublicEventsForUserRequestOptions = { + method: "GET"; + url: "/users/:username/events/public"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityListPublicOrgEventsEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListPublicOrgEventsRequestOptions = { + method: "GET"; + url: "/orgs/:org/events"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityListReceivedEventsForUserEndpoint = { + username: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListReceivedEventsForUserRequestOptions = { + method: "GET"; + url: "/users/:username/received_events"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityListReceivedPublicEventsForUserEndpoint = { + username: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListReceivedPublicEventsForUserRequestOptions = { + method: "GET"; + url: "/users/:username/received_events/public"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityListRepoEventsEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListRepoEventsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/events"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityListRepoNotificationsForAuthenticatedUserEndpoint = { + owner: string; + repo: string; + /** + * If `true`, show notifications marked as read. + */ + all?: boolean; + /** + * If `true`, only shows notifications in which the user is directly participating or mentioned. + */ + participating?: boolean; + /** + * 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`. + */ + since?: string; + /** + * 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`. + */ + before?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListRepoNotificationsForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/notifications"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ActivityListRepoNotificationsForAuthenticatedUserResponseData = { + id: string; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + subject: { + title: string; + url: string; + latest_comment_url: string; + type: string; + }; + reason: string; + unread: boolean; + updated_at: string; + last_read_at: string; + url: string; +}[]; +declare type ActivityListReposStarredByAuthenticatedUserEndpoint = { + /** + * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). + */ + sort?: "created" | "updated"; + /** + * One of `asc` (ascending) or `desc` (descending). + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListReposStarredByAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/starred"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ActivityListReposStarredByAuthenticatedUserResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; +}[]; +export declare type ActivityListReposStarredByAuthenticatedUserResponse200Data = { + starred_at: string; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; +}[]; +declare type ActivityListReposStarredByUserEndpoint = { + username: string; + /** + * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). + */ + sort?: "created" | "updated"; + /** + * One of `asc` (ascending) or `desc` (descending). + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListReposStarredByUserRequestOptions = { + method: "GET"; + url: "/users/:username/starred"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ActivityListReposStarredByUserResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; +}[]; +export declare type ActivityListReposStarredByUserResponse200Data = { + starred_at: string; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; +}[]; +declare type ActivityListReposWatchedByUserEndpoint = { + username: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListReposWatchedByUserRequestOptions = { + method: "GET"; + url: "/users/:username/subscriptions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ActivityListReposWatchedByUserResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + delete_branch_on_merge: boolean; + subscribers_count: number; + network_count: number; + license: { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + }; +}[]; +declare type ActivityListStargazersForRepoEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListStargazersForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/stargazers"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ActivityListStargazersForRepoResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +export declare type ActivityListStargazersForRepoResponse200Data = { + starred_at: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +}[]; +declare type ActivityListWatchedReposForAuthenticatedUserEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListWatchedReposForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/subscriptions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ActivityListWatchedReposForAuthenticatedUserResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + delete_branch_on_merge: boolean; + subscribers_count: number; + network_count: number; + license: { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + }; +}[]; +declare type ActivityListWatchersForRepoEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ActivityListWatchersForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/subscribers"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ActivityListWatchersForRepoResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type ActivityMarkNotificationsAsReadEndpoint = { + /** + * 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. + */ + last_read_at?: string; +}; +declare type ActivityMarkNotificationsAsReadRequestOptions = { + method: "PUT"; + url: "/notifications"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityMarkRepoNotificationsAsReadEndpoint = { + owner: string; + repo: string; + /** + * 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. + */ + last_read_at?: string; +}; +declare type ActivityMarkRepoNotificationsAsReadRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/notifications"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityMarkThreadAsReadEndpoint = { + thread_id: number; +}; +declare type ActivityMarkThreadAsReadRequestOptions = { + method: "PATCH"; + url: "/notifications/threads/:thread_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivitySetRepoSubscriptionEndpoint = { + owner: string; + repo: string; + /** + * Determines if notifications should be received from this repository. + */ + subscribed?: boolean; + /** + * Determines if all notifications should be blocked from this repository. + */ + ignored?: boolean; +}; +declare type ActivitySetRepoSubscriptionRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/subscription"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActivitySetRepoSubscriptionResponseData { + subscribed: boolean; + ignored: boolean; + reason: string; + created_at: string; + url: string; + repository_url: string; +} +declare type ActivitySetThreadSubscriptionEndpoint = { + thread_id: number; + /** + * Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread. + */ + ignored?: boolean; +}; +declare type ActivitySetThreadSubscriptionRequestOptions = { + method: "PUT"; + url: "/notifications/threads/:thread_id/subscription"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ActivitySetThreadSubscriptionResponseData { + subscribed: boolean; + ignored: boolean; + reason: string; + created_at: string; + url: string; + thread_url: string; +} +declare type ActivityStarRepoForAuthenticatedUserEndpoint = { + owner: string; + repo: string; +}; +declare type ActivityStarRepoForAuthenticatedUserRequestOptions = { + method: "PUT"; + url: "/user/starred/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ActivityUnstarRepoForAuthenticatedUserEndpoint = { + owner: string; + repo: string; +}; +declare type ActivityUnstarRepoForAuthenticatedUserRequestOptions = { + method: "DELETE"; + url: "/user/starred/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type AppsAddRepoToInstallationEndpoint = { + installation_id: number; + repository_id: number; +} & RequiredPreview<"machine-man">; +declare type AppsAddRepoToInstallationRequestOptions = { + method: "PUT"; + url: "/user/installations/:installation_id/repositories/:repository_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type AppsCheckAuthorizationEndpoint = { + client_id: string; + access_token: string; +}; +declare type AppsCheckAuthorizationRequestOptions = { + method: "GET"; + url: "/applications/:client_id/tokens/:access_token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsCheckAuthorizationResponseData { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type AppsCheckTokenEndpoint = { + client_id: string; + /** + * The OAuth access token used to authenticate to the GitHub API. + */ + access_token?: string; +}; +declare type AppsCheckTokenRequestOptions = { + method: "POST"; + url: "/applications/:client_id/token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsCheckTokenResponseData { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type AppsCreateContentAttachmentEndpoint = { + content_reference_id: number; + /** + * The title of the content attachment displayed in the body or comment of an issue or pull request. + */ + title: string; + /** + * The body text of the content attachment displayed in the body or comment of an issue or pull request. This parameter supports markdown. + */ + body: string; +} & RequiredPreview<"corsair">; +declare type AppsCreateContentAttachmentRequestOptions = { + method: "POST"; + url: "/content_references/:content_reference_id/attachments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsCreateContentAttachmentResponseData { + id: number; + title: string; + body: string; +} +declare type AppsCreateFromManifestEndpoint = { + code: string; +}; +declare type AppsCreateFromManifestRequestOptions = { + method: "POST"; + url: "/app-manifests/:code/conversions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsCreateFromManifestResponseData { + id: number; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + client_id: string; + client_secret: string; + webhook_secret: string; + pem: string; +} +declare type AppsCreateInstallationAccessTokenEndpoint = { + installation_id: number; + /** + * The `id`s of the repositories that the installation token can access. Providing repository `id`s restricts the access of an installation token to specific repositories. You can use the "[List repositories accessible to the app installation](https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-app-installation)" endpoint to get the `id` of all repositories that an installation can access. For example, you can select specific repositories when creating an installation token to restrict the number of repositories that can be cloned using the token. + */ + repository_ids?: number[]; + /** + * The permissions granted to the access token. The permissions object includes the permission names and their access type. For a complete list of permissions and allowable values, see "[GitHub App permissions](https://developer.github.com/apps/building-github-apps/creating-github-apps-using-url-parameters/#github-app-permissions)." + */ + permissions?: AppsCreateInstallationAccessTokenParamsPermissions; +} & RequiredPreview<"machine-man">; +declare type AppsCreateInstallationAccessTokenRequestOptions = { + method: "POST"; + url: "/app/installations/:installation_id/access_tokens"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsCreateInstallationAccessTokenResponseData { + token: string; + expires_at: string; + permissions: { + issues: string; + contents: string; + }; + repository_selection: "all" | "selected"; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }[]; +} +declare type AppsDeleteAuthorizationEndpoint = { + client_id: string; + /** + * The OAuth access token used to authenticate to the GitHub API. + */ + access_token?: string; +}; +declare type AppsDeleteAuthorizationRequestOptions = { + method: "DELETE"; + url: "/applications/:client_id/grant"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type AppsDeleteInstallationEndpoint = { + installation_id: number; +} & RequiredPreview<"machine-man">; +declare type AppsDeleteInstallationRequestOptions = { + method: "DELETE"; + url: "/app/installations/:installation_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type AppsDeleteTokenEndpoint = { + client_id: string; + /** + * The OAuth access token used to authenticate to the GitHub API. + */ + access_token?: string; +}; +declare type AppsDeleteTokenRequestOptions = { + method: "DELETE"; + url: "/applications/:client_id/token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type AppsGetAuthenticatedEndpoint = {} & RequiredPreview<"machine-man">; +declare type AppsGetAuthenticatedRequestOptions = { + method: "GET"; + url: "/app"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsGetAuthenticatedResponseData { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + installations_count: number; +} +declare type AppsGetBySlugEndpoint = { + app_slug: string; +} & RequiredPreview<"machine-man">; +declare type AppsGetBySlugRequestOptions = { + method: "GET"; + url: "/apps/:app_slug"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsGetBySlugResponseData { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; +} +declare type AppsGetInstallationEndpoint = { + installation_id: number; +} & RequiredPreview<"machine-man">; +declare type AppsGetInstallationRequestOptions = { + method: "GET"; + url: "/app/installations/:installation_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsGetInstallationResponseData { + id: number; + account: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + access_tokens_url: string; + repositories_url: string; + html_url: string; + app_id: number; + target_id: number; + target_type: string; + permissions: { + checks: string; + metadata: string; + contents: string; + }; + events: string[]; + single_file_name: string; + repository_selection: "all" | "selected"; +} +declare type AppsGetOrgInstallationEndpoint = { + org: string; +} & RequiredPreview<"machine-man">; +declare type AppsGetOrgInstallationRequestOptions = { + method: "GET"; + url: "/orgs/:org/installation"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsGetOrgInstallationResponseData { + id: number; + account: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repository_selection: "all" | "selected"; + access_tokens_url: string; + repositories_url: string; + html_url: string; + app_id: number; + target_id: number; + target_type: string; + permissions: { + checks: string; + metadata: string; + contents: string; + }; + events: string[]; + created_at: string; + updated_at: string; + single_file_name: string; +} +declare type AppsGetRepoInstallationEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"machine-man">; +declare type AppsGetRepoInstallationRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/installation"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsGetRepoInstallationResponseData { + id: number; + account: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repository_selection: "all" | "selected"; + access_tokens_url: string; + repositories_url: string; + html_url: string; + app_id: number; + target_id: number; + target_type: string; + permissions: { + checks: string; + metadata: string; + contents: string; + }; + events: string[]; + created_at: string; + updated_at: string; + single_file_name: string; +} +declare type AppsGetSubscriptionPlanForAccountEndpoint = { + account_id: number; +}; +declare type AppsGetSubscriptionPlanForAccountRequestOptions = { + method: "GET"; + url: "/marketplace_listing/accounts/:account_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsGetSubscriptionPlanForAccountResponseData { + url: string; + type: string; + id: number; + login: string; + email: string; + organization_billing_email: string; + marketplace_pending_change: { + effective_date: string; + unit_count: number; + id: number; + plan: { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + state: string; + unit_name: string; + bullets: string[]; + }; + }; + marketplace_purchase: { + billing_cycle: string; + next_billing_date: string; + unit_count: number; + on_free_trial: boolean; + free_trial_ends_on: string; + updated_at: string; + plan: { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + unit_name: string; + state: string; + bullets: string[]; + }; + }; +} +declare type AppsGetSubscriptionPlanForAccountStubbedEndpoint = { + account_id: number; +}; +declare type AppsGetSubscriptionPlanForAccountStubbedRequestOptions = { + method: "GET"; + url: "/marketplace_listing/stubbed/accounts/:account_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsGetSubscriptionPlanForAccountStubbedResponseData { + url: string; + type: string; + id: number; + login: string; + email: string; + organization_billing_email: string; + marketplace_pending_change: { + effective_date: string; + unit_count: number; + id: number; + plan: { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + state: string; + unit_name: string; + bullets: string[]; + }; + }; + marketplace_purchase: { + billing_cycle: string; + next_billing_date: string; + unit_count: number; + on_free_trial: boolean; + free_trial_ends_on: string; + updated_at: string; + plan: { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + unit_name: string; + state: string; + bullets: string[]; + }; + }; +} +declare type AppsGetUserInstallationEndpoint = { + username: string; +} & RequiredPreview<"machine-man">; +declare type AppsGetUserInstallationRequestOptions = { + method: "GET"; + url: "/users/:username/installation"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsGetUserInstallationResponseData { + id: number; + account: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repository_selection: "all" | "selected"; + access_tokens_url: string; + repositories_url: string; + html_url: string; + app_id: number; + target_id: number; + target_type: string; + permissions: { + checks: string; + metadata: string; + contents: string; + }; + events: string[]; + created_at: string; + updated_at: string; + single_file_name: string; +} +declare type AppsListAccountsForPlanEndpoint = { + plan_id: number; + /** + * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. + */ + sort?: "created" | "updated"; + /** + * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type AppsListAccountsForPlanRequestOptions = { + method: "GET"; + url: "/marketplace_listing/plans/:plan_id/accounts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type AppsListAccountsForPlanResponseData = { + url: string; + type: string; + id: number; + login: string; + email: string; + organization_billing_email: string; + marketplace_pending_change: { + effective_date: string; + unit_count: number; + id: number; + plan: { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + state: string; + unit_name: string; + bullets: string[]; + }; + }; + marketplace_purchase: { + billing_cycle: string; + next_billing_date: string; + unit_count: number; + on_free_trial: boolean; + free_trial_ends_on: string; + updated_at: string; + plan: { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + unit_name: string; + state: string; + bullets: string[]; + }; + }; +}[]; +declare type AppsListAccountsForPlanStubbedEndpoint = { + plan_id: number; + /** + * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. + */ + sort?: "created" | "updated"; + /** + * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type AppsListAccountsForPlanStubbedRequestOptions = { + method: "GET"; + url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type AppsListAccountsForPlanStubbedResponseData = { + url: string; + type: string; + id: number; + login: string; + email: string; + organization_billing_email: string; + marketplace_pending_change: { + effective_date: string; + unit_count: number; + id: number; + plan: { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + state: string; + unit_name: string; + bullets: string[]; + }; + }; + marketplace_purchase: { + billing_cycle: string; + next_billing_date: string; + unit_count: number; + on_free_trial: boolean; + free_trial_ends_on: string; + updated_at: string; + plan: { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + unit_name: string; + state: string; + bullets: string[]; + }; + }; +}[]; +declare type AppsListInstallationReposForAuthenticatedUserEndpoint = { + installation_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"machine-man">; +declare type AppsListInstallationReposForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/installations/:installation_id/repositories"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsListInstallationReposForAuthenticatedUserResponseData { + total_count: number; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }[]; +} +declare type AppsListInstallationsEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"machine-man">; +declare type AppsListInstallationsRequestOptions = { + method: "GET"; + url: "/app/installations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type AppsListInstallationsResponseData = { + id: number; + account: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + access_tokens_url: string; + repositories_url: string; + html_url: string; + app_id: number; + target_id: number; + target_type: string; + permissions: { + checks: string; + metadata: string; + contents: string; + }; + events: string[]; + single_file_name: string; + repository_selection: "all" | "selected"; +}[]; +declare type AppsListInstallationsForAuthenticatedUserEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"machine-man">; +declare type AppsListInstallationsForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/installations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsListInstallationsForAuthenticatedUserResponseData { + total_count: number; + installations: { + id: number; + account: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + gravatar_id: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + access_tokens_url: string; + repositories_url: string; + html_url: string; + app_id: number; + target_id: number; + target_type: string; + permissions: { + checks: string; + metadata: string; + contents: string; + }; + events: string[]; + single_file_name: string; + }[]; +} +declare type AppsListPlansEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type AppsListPlansRequestOptions = { + method: "GET"; + url: "/marketplace_listing/plans"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type AppsListPlansResponseData = { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + unit_name: string; + state: string; + bullets: string[]; +}[]; +declare type AppsListPlansStubbedEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type AppsListPlansStubbedRequestOptions = { + method: "GET"; + url: "/marketplace_listing/stubbed/plans"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type AppsListPlansStubbedResponseData = { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + unit_name: string; + state: string; + bullets: string[]; +}[]; +declare type AppsListReposAccessibleToInstallationEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"machine-man">; +declare type AppsListReposAccessibleToInstallationRequestOptions = { + method: "GET"; + url: "/installation/repositories"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsListReposAccessibleToInstallationResponseData { + total_count: number; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }[]; +} +declare type AppsListSubscriptionsForAuthenticatedUserEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type AppsListSubscriptionsForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/marketplace_purchases"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type AppsListSubscriptionsForAuthenticatedUserResponseData = { + billing_cycle: string; + next_billing_date: string; + unit_count: number; + on_free_trial: boolean; + free_trial_ends_on: string; + updated_at: string; + account: { + login: string; + id: number; + url: string; + email: string; + organization_billing_email: string; + type: string; + }; + plan: { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + unit_name: string; + state: string; + bullets: string[]; + }; +}[]; +declare type AppsListSubscriptionsForAuthenticatedUserStubbedEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type AppsListSubscriptionsForAuthenticatedUserStubbedRequestOptions = { + method: "GET"; + url: "/user/marketplace_purchases/stubbed"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseData = { + billing_cycle: string; + next_billing_date: string; + unit_count: number; + on_free_trial: boolean; + free_trial_ends_on: string; + updated_at: string; + account: { + login: string; + id: number; + url: string; + email: string; + organization_billing_email: string; + type: string; + }; + plan: { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + unit_name: string; + state: string; + bullets: string[]; + }; +}[]; +declare type AppsRemoveRepoFromInstallationEndpoint = { + installation_id: number; + repository_id: number; +} & RequiredPreview<"machine-man">; +declare type AppsRemoveRepoFromInstallationRequestOptions = { + method: "DELETE"; + url: "/user/installations/:installation_id/repositories/:repository_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type AppsResetAuthorizationEndpoint = { + client_id: string; + access_token: string; +}; +declare type AppsResetAuthorizationRequestOptions = { + method: "POST"; + url: "/applications/:client_id/tokens/:access_token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsResetAuthorizationResponseData { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type AppsResetTokenEndpoint = { + client_id: string; + /** + * The OAuth access token used to authenticate to the GitHub API. + */ + access_token?: string; +}; +declare type AppsResetTokenRequestOptions = { + method: "PATCH"; + url: "/applications/:client_id/token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface AppsResetTokenResponseData { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type AppsRevokeAuthorizationForApplicationEndpoint = { + client_id: string; + access_token: string; +}; +declare type AppsRevokeAuthorizationForApplicationRequestOptions = { + method: "DELETE"; + url: "/applications/:client_id/tokens/:access_token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type AppsRevokeGrantForApplicationEndpoint = { + client_id: string; + access_token: string; +}; +declare type AppsRevokeGrantForApplicationRequestOptions = { + method: "DELETE"; + url: "/applications/:client_id/grants/:access_token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type AppsRevokeInstallationAccessTokenEndpoint = {}; +declare type AppsRevokeInstallationAccessTokenRequestOptions = { + method: "DELETE"; + url: "/installation/token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type AppsSuspendInstallationEndpoint = { + installation_id: number; +}; +declare type AppsSuspendInstallationRequestOptions = { + method: "PUT"; + url: "/app/installations/:installation_id/suspended"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type AppsUnsuspendInstallationEndpoint = { + installation_id: number; +}; +declare type AppsUnsuspendInstallationRequestOptions = { + method: "DELETE"; + url: "/app/installations/:installation_id/suspended"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type BillingGetGithubActionsBillingOrgEndpoint = { + org: string; +}; +declare type BillingGetGithubActionsBillingOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/settings/billing/actions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface BillingGetGithubActionsBillingOrgResponseData { + /** + * The sum of the free and paid GitHub Actions minutes used. + */ + total_minutes_used: number; + /** + * The total paid GitHub Actions minutes used. + */ + total_paid_minutes_used: number; + /** + * The amount of free GitHub Actions minutes available. + */ + included_minutes: number; + minutes_used_breakdown: { + /** + * Total minutes used on Ubuntu runner machines. + */ + UBUNTU: number; + /** + * Total minutes used on macOS runner machines. + */ + MACOS: number; + /** + * Total minutes used on Windows runner machines. + */ + WINDOWS: number; + }; +} +declare type BillingGetGithubActionsBillingUserEndpoint = { + username: string; +}; +declare type BillingGetGithubActionsBillingUserRequestOptions = { + method: "GET"; + url: "/users/:username/settings/billing/actions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface BillingGetGithubActionsBillingUserResponseData { + /** + * The sum of the free and paid GitHub Actions minutes used. + */ + total_minutes_used: number; + /** + * The total paid GitHub Actions minutes used. + */ + total_paid_minutes_used: number; + /** + * The amount of free GitHub Actions minutes available. + */ + included_minutes: number; + minutes_used_breakdown: { + /** + * Total minutes used on Ubuntu runner machines. + */ + UBUNTU: number; + /** + * Total minutes used on macOS runner machines. + */ + MACOS: number; + /** + * Total minutes used on Windows runner machines. + */ + WINDOWS: number; + }; +} +declare type BillingGetGithubPackagesBillingOrgEndpoint = { + org: string; +}; +declare type BillingGetGithubPackagesBillingOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/settings/billing/packages"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface BillingGetGithubPackagesBillingOrgResponseData { + /** + * Sum of the free and paid storage space (GB) for GitHuub Packages. + */ + total_gigabytes_bandwidth_used: number; + /** + * Total paid storage space (GB) for GitHuub Packages. + */ + total_paid_gigabytes_bandwidth_used: number; + /** + * Free storage space (GB) for GitHub Packages. + */ + included_gigabytes_bandwidth: number; +} +declare type BillingGetGithubPackagesBillingUserEndpoint = { + username: string; +}; +declare type BillingGetGithubPackagesBillingUserRequestOptions = { + method: "GET"; + url: "/users/:username/settings/billing/packages"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface BillingGetGithubPackagesBillingUserResponseData { + /** + * Sum of the free and paid storage space (GB) for GitHuub Packages. + */ + total_gigabytes_bandwidth_used: number; + /** + * Total paid storage space (GB) for GitHuub Packages. + */ + total_paid_gigabytes_bandwidth_used: number; + /** + * Free storage space (GB) for GitHub Packages. + */ + included_gigabytes_bandwidth: number; +} +declare type BillingGetSharedStorageBillingOrgEndpoint = { + org: string; +}; +declare type BillingGetSharedStorageBillingOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/settings/billing/shared-storage"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface BillingGetSharedStorageBillingOrgResponseData { + /** + * Numbers of days left in billing cycle. + */ + days_left_in_billing_cycle: number; + /** + * Estimated storage space (GB) used in billing cycle. + */ + estimated_paid_storage_for_month: number; + /** + * Estimated sum of free and paid storage space (GB) used in billing cycle. + */ + estimated_storage_for_month: number; +} +declare type BillingGetSharedStorageBillingUserEndpoint = { + username: string; +}; +declare type BillingGetSharedStorageBillingUserRequestOptions = { + method: "GET"; + url: "/users/:username/settings/billing/shared-storage"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface BillingGetSharedStorageBillingUserResponseData { + /** + * Numbers of days left in billing cycle. + */ + days_left_in_billing_cycle: number; + /** + * Estimated storage space (GB) used in billing cycle. + */ + estimated_paid_storage_for_month: number; + /** + * Estimated sum of free and paid storage space (GB) used in billing cycle. + */ + estimated_storage_for_month: number; +} +declare type ChecksCreateEndpoint = { + owner: string; + repo: string; + /** + * The name of the check. For example, "code-coverage". + */ + name: string; + /** + * The SHA of the commit. + */ + head_sha: string; + /** + * 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. + */ + details_url?: string; + /** + * A reference for the run on the integrator's system. + */ + external_id?: string; + /** + * The current status. Can be one of `queued`, `in_progress`, or `completed`. + */ + status?: "queued" | "in_progress" | "completed"; + /** + * 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`. + */ + started_at?: string; + /** + * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. 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`. Only GitHub can change a check run conclusion to `stale`. + */ + conclusion?: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required"; + /** + * 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`. + */ + completed_at?: string; + /** + * 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://developer.github.com/v3/checks/runs/#output-object) description. + */ + output?: ChecksCreateParamsOutput; + /** + * 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://developer.github.com/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://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." + */ + actions?: ChecksCreateParamsActions[]; +} & RequiredPreview<"antiope">; +declare type ChecksCreateRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/check-runs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ChecksCreateResponseData { + id: number; + head_sha: string; + node_id: string; + external_id: string; + url: string; + html_url: string; + details_url: string; + status: string; + conclusion: string; + started_at: string; + completed_at: string; + output: { + title: string; + summary: string; + annotations_url: string; + annotations_count: number; + text: string; + }; + name: string; + check_suite: { + id: number; + }; + app: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }; + pull_requests: { + url: string; + id: number; + number: number; + head: { + ref: string; + sha: string; + repo: { + id: number; + url: string; + name: string; + }; + }; + base: { + ref: string; + sha: string; + repo: { + id: number; + url: string; + name: string; + }; + }; + }[]; +} +declare type ChecksCreateSuiteEndpoint = { + owner: string; + repo: string; + /** + * The sha of the head commit. + */ + head_sha: string; +} & RequiredPreview<"antiope">; +declare type ChecksCreateSuiteRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/check-suites"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ChecksCreateSuiteResponseData { + id: number; + node_id: string; + head_branch: string; + head_sha: string; + status: string; + conclusion: string; + url: string; + before: string; + after: string; + pull_requests: unknown[]; + app: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; +} +declare type ChecksGetEndpoint = { + owner: string; + repo: string; + check_run_id: number; +} & RequiredPreview<"antiope">; +declare type ChecksGetRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/check-runs/:check_run_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ChecksGetResponseData { + id: number; + head_sha: string; + node_id: string; + external_id: string; + url: string; + html_url: string; + details_url: string; + status: string; + conclusion: string; + started_at: string; + completed_at: string; + output: { + title: string; + summary: string; + text: string; + annotations_count: number; + annotations_url: string; + }; + name: string; + check_suite: { + id: number; + }; + app: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }; + pull_requests: { + url: string; + id: number; + number: number; + head: { + ref: string; + sha: string; + repo: { + id: number; + url: string; + name: string; + }; + }; + base: { + ref: string; + sha: string; + repo: { + id: number; + url: string; + name: string; + }; + }; + }[]; +} +declare type ChecksGetSuiteEndpoint = { + owner: string; + repo: string; + check_suite_id: number; +} & RequiredPreview<"antiope">; +declare type ChecksGetSuiteRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/check-suites/:check_suite_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ChecksGetSuiteResponseData { + id: number; + node_id: string; + head_branch: string; + head_sha: string; + status: string; + conclusion: string; + url: string; + before: string; + after: string; + pull_requests: unknown[]; + app: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; +} +declare type ChecksListAnnotationsEndpoint = { + owner: string; + repo: string; + check_run_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"antiope">; +declare type ChecksListAnnotationsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ChecksListAnnotationsResponseData = { + path: string; + start_line: number; + end_line: number; + start_column: number; + end_column: number; + annotation_level: string; + title: string; + message: string; + raw_details: string; +}[]; +declare type ChecksListForRefEndpoint = { + owner: string; + repo: string; + ref: string; + /** + * Returns check runs with the specified `name`. + */ + check_name?: string; + /** + * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. + */ + status?: "queued" | "in_progress" | "completed"; + /** + * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. + */ + filter?: "latest" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"antiope">; +declare type ChecksListForRefRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/commits/:ref/check-runs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ChecksListForRefResponseData { + total_count: number; + check_runs: { + id: number; + head_sha: string; + node_id: string; + external_id: string; + url: string; + html_url: string; + details_url: string; + status: string; + conclusion: string; + started_at: string; + completed_at: string; + output: { + title: string; + summary: string; + text: string; + annotations_count: number; + annotations_url: string; + }; + name: string; + check_suite: { + id: number; + }; + app: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }; + pull_requests: { + url: string; + id: number; + number: number; + head: { + ref: string; + sha: string; + repo: { + id: number; + url: string; + name: string; + }; + }; + base: { + ref: string; + sha: string; + repo: { + id: number; + url: string; + name: string; + }; + }; + }[]; + }[]; +} +declare type ChecksListForSuiteEndpoint = { + owner: string; + repo: string; + check_suite_id: number; + /** + * Returns check runs with the specified `name`. + */ + check_name?: string; + /** + * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. + */ + status?: "queued" | "in_progress" | "completed"; + /** + * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. + */ + filter?: "latest" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"antiope">; +declare type ChecksListForSuiteRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ChecksListForSuiteResponseData { + total_count: number; + check_runs: { + id: number; + head_sha: string; + node_id: string; + external_id: string; + url: string; + html_url: string; + details_url: string; + status: string; + conclusion: string; + started_at: string; + completed_at: string; + output: { + title: string; + summary: string; + text: string; + annotations_count: number; + annotations_url: string; + }; + name: string; + check_suite: { + id: number; + }; + app: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }; + pull_requests: { + url: string; + id: number; + number: number; + head: { + ref: string; + sha: string; + repo: { + id: number; + url: string; + name: string; + }; + }; + base: { + ref: string; + sha: string; + repo: { + id: number; + url: string; + name: string; + }; + }; + }[]; + }[]; +} +declare type ChecksListSuitesForRefEndpoint = { + owner: string; + repo: string; + ref: string; + /** + * Filters check suites by GitHub App `id`. + */ + app_id?: number; + /** + * Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/). + */ + check_name?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"antiope">; +declare type ChecksListSuitesForRefRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/commits/:ref/check-suites"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ChecksListSuitesForRefResponseData { + total_count: number; + check_suites: { + id: number; + node_id: string; + head_branch: string; + head_sha: string; + status: string; + conclusion: string; + url: string; + before: string; + after: string; + pull_requests: unknown[]; + app: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }[]; +} +declare type ChecksRerequestSuiteEndpoint = { + owner: string; + repo: string; + check_suite_id: number; +} & RequiredPreview<"antiope">; +declare type ChecksRerequestSuiteRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ChecksSetSuitesPreferencesEndpoint = { + owner: string; + repo: string; + /** + * Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/v3/checks/suites/#auto_trigger_checks-object) description for details. + */ + auto_trigger_checks?: ChecksSetSuitesPreferencesParamsAutoTriggerChecks[]; +} & RequiredPreview<"antiope">; +declare type ChecksSetSuitesPreferencesRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/check-suites/preferences"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ChecksSetSuitesPreferencesResponseData { + preferences: { + auto_trigger_checks: { + app_id: number; + setting: boolean; + }[]; + }; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; +} +declare type ChecksUpdateEndpoint = { + owner: string; + repo: string; + check_run_id: number; + /** + * The name of the check. For example, "code-coverage". + */ + name?: string; + /** + * The URL of the integrator's site that has the full details of the check. + */ + details_url?: string; + /** + * A reference for the run on the integrator's system. + */ + external_id?: string; + /** + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + started_at?: string; + /** + * The current status. Can be one of `queued`, `in_progress`, or `completed`. + */ + status?: "queued" | "in_progress" | "completed"; + /** + * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. + * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. Only GitHub can change a check run conclusion to `stale`. + */ + conclusion?: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required"; + /** + * 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`. + */ + completed_at?: string; + /** + * 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://developer.github.com/v3/checks/runs/#output-object-1) description. + */ + output?: ChecksUpdateParamsOutput; + /** + * 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://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." + */ + actions?: ChecksUpdateParamsActions[]; +} & RequiredPreview<"antiope">; +declare type ChecksUpdateRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/check-runs/:check_run_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ChecksUpdateResponseData { + id: number; + head_sha: string; + node_id: string; + external_id: string; + url: string; + html_url: string; + details_url: string; + status: string; + conclusion: string; + started_at: string; + completed_at: string; + output: { + title: string; + summary: string; + text: string; + annotations_count: number; + annotations_url: string; + }; + name: string; + check_suite: { + id: number; + }; + app: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }; + pull_requests: { + url: string; + id: number; + number: number; + head: { + ref: string; + sha: string; + repo: { + id: number; + url: string; + name: string; + }; + }; + base: { + ref: string; + sha: string; + repo: { + id: number; + url: string; + name: string; + }; + }; + }[]; +} +declare type CodeScanningGetAlertEndpoint = { + owner: string; + repo: string; + alert_id: number; +}; +declare type CodeScanningGetAlertRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/code-scanning/alerts/:alert_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface CodeScanningGetAlertResponseData { + rule_id: string; + rule_severity: string; + rule_description: string; + tool: string; + created_at: string; + open: boolean; + closed_by: string; + closed_at: string; + url: string; + html_url: string; +} +declare type CodeScanningListAlertsForRepoEndpoint = { + owner: string; + repo: string; + /** + * Set to `closed` to list only closed code scanning alerts. + */ + state?: string; + /** + * Returns a list of code scanning alerts for a specific brach reference. The `ref` must be formatted as `heads/`. + */ + ref?: string; +}; +declare type CodeScanningListAlertsForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/code-scanning/alerts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type CodeScanningListAlertsForRepoResponseData = { + rule_id: string; + rule_severity: string; + rule_description: string; + tool: string; + created_at: string; + open: boolean; + closed_by: string; + closed_at: string; + url: string; + html_url: string; +}[]; +declare type CodesOfConductGetAllCodesOfConductEndpoint = {} & RequiredPreview<"scarlet-witch">; +declare type CodesOfConductGetAllCodesOfConductRequestOptions = { + method: "GET"; + url: "/codes_of_conduct"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type CodesOfConductGetAllCodesOfConductResponseData = { + key: string; + name: string; + url: string; +}[]; +declare type CodesOfConductGetConductCodeEndpoint = { + key: string; +} & RequiredPreview<"scarlet-witch">; +declare type CodesOfConductGetConductCodeRequestOptions = { + method: "GET"; + url: "/codes_of_conduct/:key"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface CodesOfConductGetConductCodeResponseData { + key: string; + name: string; + url: string; + body: string; +} +declare type CodesOfConductGetForRepoEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"scarlet-witch">; +declare type CodesOfConductGetForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/community/code_of_conduct"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface CodesOfConductGetForRepoResponseData { + key: string; + name: string; + url: string; + body: string; +} +declare type EmojisGetEndpoint = {}; +declare type EmojisGetRequestOptions = { + method: "GET"; + url: "/emojis"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Unique identifier of an organization. + */ + org_id: number; +}; +declare type EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestOptions = { + method: "PUT"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations/:org_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminAddSelfHostedRunnerToRunnerGroupForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; +}; +declare type EnterpriseAdminAddSelfHostedRunnerToRunnerGroupForEnterpriseRequestOptions = { + method: "PUT"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners/:runner_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminCreateRegistrationTokenForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; +}; +declare type EnterpriseAdminCreateRegistrationTokenForEnterpriseRequestOptions = { + method: "POST"; + url: "/enterprises/:enterprise/actions/runners/registration-token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminCreateRegistrationTokenForEnterpriseResponseData { + token: string; + expires_at: string; +} +declare type EnterpriseAdminCreateRemoveTokenForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; +}; +declare type EnterpriseAdminCreateRemoveTokenForEnterpriseRequestOptions = { + method: "POST"; + url: "/enterprises/:enterprise/actions/runners/remove-token"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminCreateRemoveTokenForEnterpriseResponseData { + token: string; + expires_at: string; +} +declare type EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Name of the runner group. + */ + name: string; + /** + * Visibility of a runner group. You can select all organizations or select individual organization. Can be one of: `all` or `selected` + */ + visibility?: "selected" | "all"; + /** + * List of organization IDs that can access the runner group. + */ + selected_organization_ids?: number[]; + /** + * List of runner IDs to add to the runner group. + */ + runners?: number[]; +}; +declare type EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseRequestOptions = { + method: "POST"; + url: "/enterprises/:enterprise/actions/runner-groups"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseResponseData { + id: number; + name: string; + visibility: string; + default: boolean; + selected_organizations_url: string; + runners_url: string; +} +declare type EnterpriseAdminDeleteScimGroupFromEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_group_id: string; +}; +declare type EnterpriseAdminDeleteScimGroupFromEnterpriseRequestOptions = { + method: "DELETE"; + url: "/scim/v2/enterprises/:enterprise/Groups/:scim_group_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; +}; +declare type EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseRequestOptions = { + method: "DELETE"; + url: "/enterprises/:enterprise/actions/runners/:runner_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; +}; +declare type EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseRequestOptions = { + method: "DELETE"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminDeleteUserFromEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_user_id: string; +}; +declare type EnterpriseAdminDeleteUserFromEnterpriseRequestOptions = { + method: "DELETE"; + url: "/scim/v2/enterprises/:enterprise/Users/:scim_user_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminGetGithubActionsBillingGheEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; +}; +declare type EnterpriseAdminGetGithubActionsBillingGheRequestOptions = { + method: "GET"; + url: "/enterprises/:enterprise/settings/billing/actions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminGetGithubActionsBillingGheResponseData { + /** + * The sum of the free and paid GitHub Actions minutes used. + */ + total_minutes_used: number; + /** + * The total paid GitHub Actions minutes used. + */ + total_paid_minutes_used: number; + /** + * The amount of free GitHub Actions minutes available. + */ + included_minutes: number; + minutes_used_breakdown: { + /** + * Total minutes used on Ubuntu runner machines. + */ + UBUNTU: number; + /** + * Total minutes used on macOS runner machines. + */ + MACOS: number; + /** + * Total minutes used on Windows runner machines. + */ + WINDOWS: number; + }; +} +declare type EnterpriseAdminGetGithubPackagesBillingGheEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; +}; +declare type EnterpriseAdminGetGithubPackagesBillingGheRequestOptions = { + method: "GET"; + url: "/enterprises/:enterprise/settings/billing/packages"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminGetGithubPackagesBillingGheResponseData { + /** + * Sum of the free and paid storage space (GB) for GitHuub Packages. + */ + total_gigabytes_bandwidth_used: number; + /** + * Total paid storage space (GB) for GitHuub Packages. + */ + total_paid_gigabytes_bandwidth_used: number; + /** + * Free storage space (GB) for GitHub Packages. + */ + included_gigabytes_bandwidth: number; +} +declare type EnterpriseAdminGetProvisioningInformationForEnterpriseGroupEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_group_id: string; +}; +declare type EnterpriseAdminGetProvisioningInformationForEnterpriseGroupRequestOptions = { + method: "GET"; + url: "/scim/v2/enterprises/:enterprise/Groups/:scim_group_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminGetProvisioningInformationForEnterpriseGroupResponseData { + schemas: string[]; + id: string; + externalId: string; + displayName: string; + members: { + value: string; + $ref: string; + display: string; + }[]; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type EnterpriseAdminGetProvisioningInformationForEnterpriseUserEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_user_id: string; +}; +declare type EnterpriseAdminGetProvisioningInformationForEnterpriseUserRequestOptions = { + method: "GET"; + url: "/scim/v2/enterprises/:enterprise/Users/:scim_user_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminGetProvisioningInformationForEnterpriseUserResponseData { + schemas: string[]; + id: string; + externalId: string; + userName: string; + name: { + givenName: string; + familyName: string; + }; + emails: { + value: string; + type: string; + primary: boolean; + }[]; + groups: { + value: string; + }[]; + active: boolean; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type EnterpriseAdminGetSelfHostedRunnerForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; +}; +declare type EnterpriseAdminGetSelfHostedRunnerForEnterpriseRequestOptions = { + method: "GET"; + url: "/enterprises/:enterprise/actions/runners/:runner_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminGetSelfHostedRunnerForEnterpriseResponseData { + id: number; + name: string; + os: string; + status: string; + busy: boolean; + labels: { + /** + * Unique identifier of the label. + */ + id: number; + /** + * Name of the label. + */ + name: string; + /** + * The type of label. Read-only labels are applied automatically when the runner is configured. + */ + type: "read-only" | "custom"; + }[]; +} +declare type EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; +}; +declare type EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseRequestOptions = { + method: "GET"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseResponseData { + id: number; + name: string; + visibility: string; + default: boolean; + selected_organizations_url: string; + runners_url: string; +} +declare type EnterpriseAdminGetSharedStorageBillingGheEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; +}; +declare type EnterpriseAdminGetSharedStorageBillingGheRequestOptions = { + method: "GET"; + url: "/enterprises/:enterprise/settings/billing/shared-storage"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminGetSharedStorageBillingGheResponseData { + /** + * Numbers of days left in billing cycle. + */ + days_left_in_billing_cycle: number; + /** + * Estimated storage space (GB) used in billing cycle. + */ + estimated_paid_storage_for_month: number; + /** + * Estimated sum of free and paid storage space (GB) used in billing cycle. + */ + estimated_storage_for_month: number; +} +declare type EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestOptions = { + method: "GET"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseResponseData { + total_count: number; + organizations: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }[]; +} +declare type EnterpriseAdminListProvisionedGroupsEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Used for pagination: the index of the first result to return. + */ + startIndex?: number; + /** + * Used for pagination: the number of results to return. + */ + count?: number; +}; +declare type EnterpriseAdminListProvisionedGroupsEnterpriseRequestOptions = { + method: "GET"; + url: "/scim/v2/enterprises/:enterprise/Groups"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminListProvisionedGroupsEnterpriseResponseData { + schemas: string[]; + totalResults: number; + itemsPerPage: number; + startIndex: number; + Resources: { + schemas: string[]; + id: string; + externalId: string; + displayName: string; + members: { + value: string; + $ref: string; + display: string; + }[]; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; + }[]; +} +declare type EnterpriseAdminListProvisionedIdentitiesEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Used for pagination: the index of the first result to return. + */ + startIndex?: number; + /** + * Used for pagination: the number of results to return. + */ + count?: number; +}; +declare type EnterpriseAdminListProvisionedIdentitiesEnterpriseRequestOptions = { + method: "GET"; + url: "/scim/v2/enterprises/:enterprise/Users"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminListProvisionedIdentitiesEnterpriseResponseData { + schemas: string[]; + totalResults: number; + itemsPerPage: number; + startIndex: number; + Resources: { + schemas: string[]; + id: string; + externalId: string; + userName: string; + name: { + givenName: string; + familyName: string; + }; + emails: { + value: string; + primary: boolean; + type: string; + }[]; + groups: { + value: string; + }[]; + active: boolean; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; + }[]; +} +declare type EnterpriseAdminListRunnerApplicationsForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; +}; +declare type EnterpriseAdminListRunnerApplicationsForEnterpriseRequestOptions = { + method: "GET"; + url: "/enterprises/:enterprise/actions/runners/downloads"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type EnterpriseAdminListRunnerApplicationsForEnterpriseResponseData = { + os: string; + architecture: string; + download_url: string; + filename: string; +}[]; +declare type EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseRequestOptions = { + method: "GET"; + url: "/enterprises/:enterprise/actions/runner-groups"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseResponseData { + total_count: number; + runner_groups: { + id: number; + name: string; + visibility: string; + default: boolean; + selected_organizations_url: string; + runners_url: string; + }[]; +} +declare type EnterpriseAdminListSelfHostedRunnersForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type EnterpriseAdminListSelfHostedRunnersForEnterpriseRequestOptions = { + method: "GET"; + url: "/enterprises/:enterprise/actions/runners"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminListSelfHostedRunnersForEnterpriseResponseData { + total_count: number; + runners: { + id: number; + name: string; + os: string; + status: string; + busy: boolean; + labels: { + /** + * Unique identifier of the label. + */ + id: number; + /** + * Name of the label. + */ + name: string; + /** + * The type of label. Read-only labels are applied automatically when the runner is configured. + */ + type: "read-only" | "custom"; + }[]; + }[]; +} +declare type EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseRequestOptions = { + method: "GET"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseResponseData { + total_count: number; + runners: { + id: number; + name: string; + os: string; + status: string; + busy: boolean; + labels: { + /** + * Unique identifier of the label. + */ + id: number; + /** + * Name of the label. + */ + name: string; + /** + * The type of label. Read-only labels are applied automatically when the runner is configured. + */ + type: "read-only" | "custom"; + }[]; + }[]; +} +declare type EnterpriseAdminProvisionAndInviteEnterpriseGroupEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * The name of the SCIM group. This must match the GitHub organization that the group maps to. + */ + displayName: string; + members?: EnterpriseAdminProvisionAndInviteEnterpriseGroupParamsMembers[]; +}; +declare type EnterpriseAdminProvisionAndInviteEnterpriseGroupRequestOptions = { + method: "POST"; + url: "/scim/v2/enterprises/:enterprise/Groups"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminProvisionAndInviteEnterpriseGroupResponseData { + schemas: string[]; + id: string; + externalId: string; + displayName: string; + members: { + value: string; + $ref: string; + display: string; + }[]; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type EnterpriseAdminProvisionAndInviteEnterpriseUserEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * The username for the user. + */ + userName: string; + name: EnterpriseAdminProvisionAndInviteEnterpriseUserParamsName; + /** + * List of user emails. + */ + emails: EnterpriseAdminProvisionAndInviteEnterpriseUserParamsEmails[]; + /** + * List of SCIM group IDs the user is a member of. + */ + groups?: EnterpriseAdminProvisionAndInviteEnterpriseUserParamsGroups[]; +}; +declare type EnterpriseAdminProvisionAndInviteEnterpriseUserRequestOptions = { + method: "POST"; + url: "/scim/v2/enterprises/:enterprise/Users"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminProvisionAndInviteEnterpriseUserResponseData { + schemas: string[]; + id: string; + externalId: string; + userName: string; + name: { + givenName: string; + familyName: string; + }; + emails: { + value: string; + type: string; + primary: boolean; + }[]; + groups: { + value: string; + }[]; + active: boolean; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Unique identifier of an organization. + */ + org_id: number; +}; +declare type EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestOptions = { + method: "DELETE"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations/:org_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; +}; +declare type EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseRequestOptions = { + method: "DELETE"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners/:runner_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminSetInformationForProvisionedEnterpriseGroupEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_group_id: string; + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * The name of the SCIM group. This must match the GitHub organization that the group maps to. + */ + displayName: string; + members?: EnterpriseAdminSetInformationForProvisionedEnterpriseGroupParamsMembers[]; +}; +declare type EnterpriseAdminSetInformationForProvisionedEnterpriseGroupRequestOptions = { + method: "PUT"; + url: "/scim/v2/enterprises/:enterprise/Groups/:scim_group_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminSetInformationForProvisionedEnterpriseGroupResponseData { + schemas: string[]; + id: string; + externalId: string; + displayName: string; + members: { + value: string; + $ref: string; + display: string; + }[]; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type EnterpriseAdminSetInformationForProvisionedEnterpriseUserEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_user_id: string; + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * The username for the user. + */ + userName: string; + name: EnterpriseAdminSetInformationForProvisionedEnterpriseUserParamsName; + /** + * List of user emails. + */ + emails: EnterpriseAdminSetInformationForProvisionedEnterpriseUserParamsEmails[]; + /** + * List of SCIM group IDs the user is a member of. + */ + groups?: EnterpriseAdminSetInformationForProvisionedEnterpriseUserParamsGroups[]; +}; +declare type EnterpriseAdminSetInformationForProvisionedEnterpriseUserRequestOptions = { + method: "PUT"; + url: "/scim/v2/enterprises/:enterprise/Users/:scim_user_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminSetInformationForProvisionedEnterpriseUserResponseData { + schemas: string[]; + id: string; + externalId: string; + userName: string; + name: { + givenName: string; + familyName: string; + }; + emails: { + value: string; + type: string; + primary: boolean; + }[]; + groups: { + value: string; + }[]; + active: boolean; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * List of organization IDs that can access the runner group. + */ + selected_organization_ids: number[]; +}; +declare type EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseRequestOptions = { + method: "PUT"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id/organizations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminSetSelfHostedInGroupForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * List of runner IDs to add to the runner group. + */ + runners: number[]; +}; +declare type EnterpriseAdminSetSelfHostedInGroupForEnterpriseRequestOptions = { + method: "PUT"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id/runners"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type EnterpriseAdminUpdateAttributeForEnterpriseGroupEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_group_id: string; + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * Array of [SCIM operations](https://tools.ietf.org/html/rfc7644#section-3.5.2). + */ + Operations: EnterpriseAdminUpdateAttributeForEnterpriseGroupParamsOperations[]; +}; +declare type EnterpriseAdminUpdateAttributeForEnterpriseGroupRequestOptions = { + method: "PATCH"; + url: "/scim/v2/enterprises/:enterprise/Groups/:scim_group_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminUpdateAttributeForEnterpriseGroupResponseData { + schemas: string[]; + id: string; + externalId: string; + displayName: string; + members: { + value: string; + $ref: string; + display: string; + }[]; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type EnterpriseAdminUpdateAttributeForEnterpriseUserEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_user_id: string; + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * Array of [SCIM operations](https://tools.ietf.org/html/rfc7644#section-3.5.2). + */ + Operations: EnterpriseAdminUpdateAttributeForEnterpriseUserParamsOperations[]; +}; +declare type EnterpriseAdminUpdateAttributeForEnterpriseUserRequestOptions = { + method: "PATCH"; + url: "/scim/v2/enterprises/:enterprise/Users/:scim_user_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminUpdateAttributeForEnterpriseUserResponseData { + schemas: string[]; + id: string; + externalId: string; + userName: string; + name: { + givenName: string; + familyName: string; + }; + emails: { + value: string; + type: string; + primary: boolean; + }[]; + groups: { + value: string; + }[]; + active: boolean; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseEndpoint = { + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Name of the runner group. + */ + name?: string; + /** + * Visibility of a runner group. You can select all organizations or select individual organizations. Can be one of: `all` or `selected` + */ + visibility?: "selected" | "all"; +}; +declare type EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseRequestOptions = { + method: "PATCH"; + url: "/enterprises/:enterprise/actions/runner-groups/:runner_group_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseResponseData { + id: number; + name: string; + visibility: string; + default: boolean; + selected_organizations_url: string; + runners_url: string; +} +declare type GistsCheckIsStarredEndpoint = { + gist_id: string; +}; +declare type GistsCheckIsStarredRequestOptions = { + method: "GET"; + url: "/gists/:gist_id/star"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type GistsCreateEndpoint = { + /** + * The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`. + */ + files: GistsCreateParamsFiles; + /** + * A descriptive name for this gist. + */ + description?: string; + /** + * When `true`, the gist will be public and available for anyone to see. + */ + public?: boolean; +}; +declare type GistsCreateRequestOptions = { + method: "POST"; + url: "/gists"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GistsCreateResponseData { + url: string; + forks_url: string; + commits_url: string; + id: string; + node_id: string; + git_pull_url: string; + git_push_url: string; + html_url: string; + files: { + [k: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + truncated?: boolean; + content?: string; + [k: string]: unknown; + }; + }; + public: boolean; + created_at: string; + updated_at: string; + description: string; + comments: number; + user: string; + comments_url: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + truncated: boolean; + forks: { + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + url: string; + id: string; + created_at: string; + updated_at: string; + }[]; + history: { + url: string; + version: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + change_status: { + deletions: number; + additions: number; + total: number; + }; + committed_at: string; + }[]; +} +declare type GistsCreateCommentEndpoint = { + gist_id: string; + /** + * The comment text. + */ + body: string; +}; +declare type GistsCreateCommentRequestOptions = { + method: "POST"; + url: "/gists/:gist_id/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GistsCreateCommentResponseData { + id: number; + node_id: string; + url: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type GistsDeleteEndpoint = { + gist_id: string; +}; +declare type GistsDeleteRequestOptions = { + method: "DELETE"; + url: "/gists/:gist_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type GistsDeleteCommentEndpoint = { + gist_id: string; + comment_id: number; +}; +declare type GistsDeleteCommentRequestOptions = { + method: "DELETE"; + url: "/gists/:gist_id/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type GistsForkEndpoint = { + gist_id: string; +}; +declare type GistsForkRequestOptions = { + method: "POST"; + url: "/gists/:gist_id/forks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GistsForkResponseData { + url: string; + forks_url: string; + commits_url: string; + id: string; + node_id: string; + git_pull_url: string; + git_push_url: string; + html_url: string; + files: { + [k: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + [k: string]: unknown; + }; + }; + public: boolean; + created_at: string; + updated_at: string; + description: string; + comments: number; + user: string; + comments_url: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + truncated: boolean; +} +declare type GistsGetEndpoint = { + gist_id: string; +}; +declare type GistsGetRequestOptions = { + method: "GET"; + url: "/gists/:gist_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GistsGetResponseData { + url: string; + forks_url: string; + commits_url: string; + id: string; + node_id: string; + git_pull_url: string; + git_push_url: string; + html_url: string; + files: { + [k: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + truncated?: boolean; + content?: string; + [k: string]: unknown; + }; + }; + public: boolean; + created_at: string; + updated_at: string; + description: string; + comments: number; + user: string; + comments_url: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + truncated: boolean; + forks: { + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + url: string; + id: string; + created_at: string; + updated_at: string; + }[]; + history: { + url: string; + version: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + change_status: { + deletions: number; + additions: number; + total: number; + }; + committed_at: string; + }[]; +} +declare type GistsGetCommentEndpoint = { + gist_id: string; + comment_id: number; +}; +declare type GistsGetCommentRequestOptions = { + method: "GET"; + url: "/gists/:gist_id/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GistsGetCommentResponseData { + id: number; + node_id: string; + url: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type GistsGetRevisionEndpoint = { + gist_id: string; + sha: string; +}; +declare type GistsGetRevisionRequestOptions = { + method: "GET"; + url: "/gists/:gist_id/:sha"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GistsGetRevisionResponseData { + url: string; + forks_url: string; + commits_url: string; + id: string; + node_id: string; + git_pull_url: string; + git_push_url: string; + html_url: string; + files: { + [k: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + truncated?: boolean; + content?: string; + [k: string]: unknown; + }; + }; + public: boolean; + created_at: string; + updated_at: string; + description: string; + comments: number; + user: string; + comments_url: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + truncated: boolean; + forks: { + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + url: string; + id: string; + created_at: string; + updated_at: string; + }[]; + history: { + url: string; + version: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + change_status: { + deletions: number; + additions: number; + total: number; + }; + committed_at: string; + }[]; +} +declare type GistsListEndpoint = { + /** + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type GistsListRequestOptions = { + method: "GET"; + url: "/gists"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type GistsListResponseData = { + url: string; + forks_url: string; + commits_url: string; + id: string; + node_id: string; + git_pull_url: string; + git_push_url: string; + html_url: string; + files: { + [k: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + [k: string]: unknown; + }; + }; + public: boolean; + created_at: string; + updated_at: string; + description: string; + comments: number; + user: string; + comments_url: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + truncated: boolean; +}[]; +declare type GistsListCommentsEndpoint = { + gist_id: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type GistsListCommentsRequestOptions = { + method: "GET"; + url: "/gists/:gist_id/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type GistsListCommentsResponseData = { + id: number; + node_id: string; + url: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +}[]; +declare type GistsListCommitsEndpoint = { + gist_id: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type GistsListCommitsRequestOptions = { + method: "GET"; + url: "/gists/:gist_id/commits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type GistsListCommitsResponseData = { + url: string; + version: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + change_status: { + deletions: number; + additions: number; + total: number; + }; + committed_at: string; +}[]; +declare type GistsListForUserEndpoint = { + username: string; + /** + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type GistsListForUserRequestOptions = { + method: "GET"; + url: "/users/:username/gists"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type GistsListForUserResponseData = { + url: string; + forks_url: string; + commits_url: string; + id: string; + node_id: string; + git_pull_url: string; + git_push_url: string; + html_url: string; + files: { + [k: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + [k: string]: unknown; + }; + }; + public: boolean; + created_at: string; + updated_at: string; + description: string; + comments: number; + user: string; + comments_url: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + truncated: boolean; +}[]; +declare type GistsListForksEndpoint = { + gist_id: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type GistsListForksRequestOptions = { + method: "GET"; + url: "/gists/:gist_id/forks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type GistsListForksResponseData = { + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + url: string; + id: string; + created_at: string; + updated_at: string; +}[]; +declare type GistsListPublicEndpoint = { + /** + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type GistsListPublicRequestOptions = { + method: "GET"; + url: "/gists/public"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type GistsListPublicResponseData = { + url: string; + forks_url: string; + commits_url: string; + id: string; + node_id: string; + git_pull_url: string; + git_push_url: string; + html_url: string; + files: { + [k: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + [k: string]: unknown; + }; + }; + public: boolean; + created_at: string; + updated_at: string; + description: string; + comments: number; + user: string; + comments_url: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + truncated: boolean; +}[]; +declare type GistsListStarredEndpoint = { + /** + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type GistsListStarredRequestOptions = { + method: "GET"; + url: "/gists/starred"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type GistsListStarredResponseData = { + url: string; + forks_url: string; + commits_url: string; + id: string; + node_id: string; + git_pull_url: string; + git_push_url: string; + html_url: string; + files: { + [k: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + [k: string]: unknown; + }; + }; + public: boolean; + created_at: string; + updated_at: string; + description: string; + comments: number; + user: string; + comments_url: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + truncated: boolean; +}[]; +declare type GistsStarEndpoint = { + gist_id: string; +}; +declare type GistsStarRequestOptions = { + method: "PUT"; + url: "/gists/:gist_id/star"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type GistsUnstarEndpoint = { + gist_id: string; +}; +declare type GistsUnstarRequestOptions = { + method: "DELETE"; + url: "/gists/:gist_id/star"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type GistsUpdateEndpoint = { + gist_id: string; + /** + * A descriptive name for this gist. + */ + description?: string; + /** + * The filenames and content that make up this gist. + */ + files?: GistsUpdateParamsFiles; +}; +declare type GistsUpdateRequestOptions = { + method: "PATCH"; + url: "/gists/:gist_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GistsUpdateResponseData { + url: string; + forks_url: string; + commits_url: string; + id: string; + node_id: string; + git_pull_url: string; + git_push_url: string; + html_url: string; + files: { + [k: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + truncated?: boolean; + content?: string; + [k: string]: unknown; + }; + }; + public: boolean; + created_at: string; + updated_at: string; + description: string; + comments: number; + user: string; + comments_url: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + truncated: boolean; + forks: { + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + url: string; + id: string; + created_at: string; + updated_at: string; + }[]; + history: { + url: string; + version: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + change_status: { + deletions: number; + additions: number; + total: number; + }; + committed_at: string; + }[]; +} +declare type GistsUpdateCommentEndpoint = { + gist_id: string; + comment_id: number; + /** + * The comment text. + */ + body: string; +}; +declare type GistsUpdateCommentRequestOptions = { + method: "PATCH"; + url: "/gists/:gist_id/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GistsUpdateCommentResponseData { + id: number; + node_id: string; + url: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type GitCreateBlobEndpoint = { + owner: string; + repo: string; + /** + * The new blob's content. + */ + content: string; + /** + * The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. + */ + encoding?: string; +}; +declare type GitCreateBlobRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/git/blobs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitCreateBlobResponseData { + url: string; + sha: string; +} +declare type GitCreateCommitEndpoint = { + owner: string; + repo: string; + /** + * The commit message + */ + message: string; + /** + * The SHA of the tree object this commit points to + */ + tree: string; + /** + * 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. + */ + parents: string[]; + /** + * 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. + */ + author?: GitCreateCommitParamsAuthor; + /** + * 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. + */ + committer?: GitCreateCommitParamsCommitter; + /** + * 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. + */ + signature?: string; +}; +declare type GitCreateCommitRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/git/commits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitCreateCommitResponseData { + sha: string; + node_id: string; + url: string; + author: { + date: string; + name: string; + email: string; + }; + committer: { + date: string; + name: string; + email: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + parents: { + url: string; + sha: string; + }[]; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; +} +declare type GitCreateRefEndpoint = { + owner: string; + repo: string; + /** + * 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. + */ + ref: string; + /** + * The SHA1 value for this reference. + */ + sha: string; +}; +declare type GitCreateRefRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/git/refs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitCreateRefResponseData { + ref: string; + node_id: string; + url: string; + object: { + type: string; + sha: string; + url: string; + }; +} +declare type GitCreateTagEndpoint = { + owner: string; + repo: string; + /** + * The tag's name. This is typically a version (e.g., "v0.0.1"). + */ + tag: string; + /** + * The tag message. + */ + message: string; + /** + * The SHA of the git object this is tagging. + */ + object: string; + /** + * The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. + */ + type: "commit" | "tree" | "blob"; + /** + * An object with information about the individual creating the tag. + */ + tagger?: GitCreateTagParamsTagger; +}; +declare type GitCreateTagRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/git/tags"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitCreateTagResponseData { + node_id: string; + tag: string; + sha: string; + url: string; + message: string; + tagger: { + name: string; + email: string; + date: string; + }; + object: { + type: string; + sha: string; + url: string; + }; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; +} +declare type GitCreateTreeEndpoint = { + owner: string; + repo: string; + /** + * Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. + */ + tree: GitCreateTreeParamsTree[]; + /** + * The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted. + */ + base_tree?: string; +}; +declare type GitCreateTreeRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/git/trees"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitCreateTreeResponseData { + sha: string; + url: string; + tree: { + path: string; + mode: string; + type: string; + size: number; + sha: string; + url: string; + }[]; +} +declare type GitDeleteRefEndpoint = { + owner: string; + repo: string; + ref: string; +}; +declare type GitDeleteRefRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/git/refs/:ref"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type GitGetBlobEndpoint = { + owner: string; + repo: string; + file_sha: string; +}; +declare type GitGetBlobRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/git/blobs/:file_sha"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitGetBlobResponseData { + content: string; + encoding: string; + url: string; + sha: string; + size: number; +} +declare type GitGetCommitEndpoint = { + owner: string; + repo: string; + commit_sha: string; +}; +declare type GitGetCommitRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/git/commits/:commit_sha"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitGetCommitResponseData { + sha: string; + node_id: string; + url: string; + author: { + date: string; + name: string; + email: string; + }; + committer: { + date: string; + name: string; + email: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + parents: { + url: string; + sha: string; + }[]; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; +} +declare type GitGetRefEndpoint = { + owner: string; + repo: string; + ref: string; +}; +declare type GitGetRefRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/git/ref/:ref"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitGetRefResponseData { + ref: string; + node_id: string; + url: string; + object: { + type: string; + sha: string; + url: string; + }; +} +declare type GitGetTagEndpoint = { + owner: string; + repo: string; + tag_sha: string; +}; +declare type GitGetTagRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/git/tags/:tag_sha"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitGetTagResponseData { + node_id: string; + tag: string; + sha: string; + url: string; + message: string; + tagger: { + name: string; + email: string; + date: string; + }; + object: { + type: string; + sha: string; + url: string; + }; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; +} +declare type GitGetTreeEndpoint = { + owner: string; + repo: string; + tree_sha: string; + /** + * 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. + */ + recursive?: string; +}; +declare type GitGetTreeRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/git/trees/:tree_sha"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitGetTreeResponseData { + sha: string; + url: string; + tree: { + path: string; + mode: string; + type: string; + size: number; + sha: string; + url: string; + }[]; + truncated: boolean; +} +declare type GitListMatchingRefsEndpoint = { + owner: string; + repo: string; + ref: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type GitListMatchingRefsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/git/matching-refs/:ref"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type GitListMatchingRefsResponseData = { + ref: string; + node_id: string; + url: string; + object: { + type: string; + sha: string; + url: string; + }; +}[]; +declare type GitUpdateRefEndpoint = { + owner: string; + repo: string; + ref: string; + /** + * The SHA1 value to set this reference to + */ + sha: string; + /** + * 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. + */ + force?: boolean; +}; +declare type GitUpdateRefRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/git/refs/:ref"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitUpdateRefResponseData { + ref: string; + node_id: string; + url: string; + object: { + type: string; + sha: string; + url: string; + }; +} +declare type GitignoreGetAllTemplatesEndpoint = {}; +declare type GitignoreGetAllTemplatesRequestOptions = { + method: "GET"; + url: "/gitignore/templates"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type GitignoreGetAllTemplatesResponseData = string[]; +declare type GitignoreGetTemplateEndpoint = { + name: string; +}; +declare type GitignoreGetTemplateRequestOptions = { + method: "GET"; + url: "/gitignore/templates/:name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface GitignoreGetTemplateResponseData { + name: string; + source: string; +} +declare type InteractionsGetRestrictionsForOrgEndpoint = { + org: string; +} & RequiredPreview<"sombra">; +declare type InteractionsGetRestrictionsForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/interaction-limits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface InteractionsGetRestrictionsForOrgResponseData { + limit: string; + origin: string; + expires_at: string; +} +declare type InteractionsGetRestrictionsForRepoEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"sombra">; +declare type InteractionsGetRestrictionsForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/interaction-limits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface InteractionsGetRestrictionsForRepoResponseData { + limit: string; + origin: string; + expires_at: string; +} +declare type InteractionsRemoveRestrictionsForOrgEndpoint = { + org: string; +} & RequiredPreview<"sombra">; +declare type InteractionsRemoveRestrictionsForOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/interaction-limits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type InteractionsRemoveRestrictionsForRepoEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"sombra">; +declare type InteractionsRemoveRestrictionsForRepoRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/interaction-limits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type InteractionsSetRestrictionsForOrgEndpoint = { + org: string; + /** + * Specifies the group of GitHub users who can comment, open issues, or create pull requests in public repositories for the given organization. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. + */ + limit: "existing_users" | "contributors_only" | "collaborators_only"; +} & RequiredPreview<"sombra">; +declare type InteractionsSetRestrictionsForOrgRequestOptions = { + method: "PUT"; + url: "/orgs/:org/interaction-limits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface InteractionsSetRestrictionsForOrgResponseData { + limit: string; + origin: string; + expires_at: string; +} +declare type InteractionsSetRestrictionsForRepoEndpoint = { + owner: string; + repo: string; + /** + * Specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. + */ + limit: "existing_users" | "contributors_only" | "collaborators_only"; +} & RequiredPreview<"sombra">; +declare type InteractionsSetRestrictionsForRepoRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/interaction-limits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface InteractionsSetRestrictionsForRepoResponseData { + limit: string; + origin: string; + expires_at: string; +} +declare type IssuesAddAssigneesEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * 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._ + */ + assignees?: string[]; +}; +declare type IssuesAddAssigneesRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/issues/:issue_number/assignees"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesAddAssigneesResponseData { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; +} +declare type IssuesAddLabelsEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. + */ + labels: string[]; +}; +declare type IssuesAddLabelsRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/issues/:issue_number/labels"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesAddLabelsResponseData = { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; +}[]; +declare type IssuesCheckUserCanBeAssignedEndpoint = { + owner: string; + repo: string; + assignee: string; +}; +declare type IssuesCheckUserCanBeAssignedRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/assignees/:assignee"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type IssuesCreateEndpoint = { + owner: string; + repo: string; + /** + * The title of the issue. + */ + title: string; + /** + * The contents of the issue. + */ + body?: string; + /** + * 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.**_ + */ + assignee?: string; + /** + * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ + */ + milestone?: number; + /** + * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ + */ + labels?: string[]; + /** + * 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._ + */ + assignees?: string[]; +}; +declare type IssuesCreateRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/issues"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesCreateResponseData { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; + closed_by: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type IssuesCreateCommentEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * The contents of the comment. + */ + body: string; +}; +declare type IssuesCreateCommentRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/issues/:issue_number/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesCreateCommentResponseData { + id: number; + node_id: string; + url: string; + html_url: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type IssuesCreateLabelEndpoint = { + owner: string; + repo: string; + /** + * 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.com](http://emoji-cheat-sheet.com/). + */ + name: string; + /** + * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. + */ + color: string; + /** + * A short description of the label. + */ + description?: string; +}; +declare type IssuesCreateLabelRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/labels"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesCreateLabelResponseData { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; +} +declare type IssuesCreateMilestoneEndpoint = { + owner: string; + repo: string; + /** + * The title of the milestone. + */ + title: string; + /** + * The state of the milestone. Either `open` or `closed`. + */ + state?: "open" | "closed"; + /** + * A description of the milestone. + */ + description?: string; + /** + * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + due_on?: string; +}; +declare type IssuesCreateMilestoneRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/milestones"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesCreateMilestoneResponseData { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; +} +declare type IssuesDeleteCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; +}; +declare type IssuesDeleteCommentRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/issues/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type IssuesDeleteLabelEndpoint = { + owner: string; + repo: string; + name: string; +}; +declare type IssuesDeleteLabelRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/labels/:name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type IssuesDeleteMilestoneEndpoint = { + owner: string; + repo: string; + milestone_number: number; +}; +declare type IssuesDeleteMilestoneRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/milestones/:milestone_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type IssuesGetEndpoint = { + owner: string; + repo: string; + issue_number: number; +}; +declare type IssuesGetRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/:issue_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesGetResponseData { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; + closed_by: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type IssuesGetCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; +}; +declare type IssuesGetCommentRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesGetCommentResponseData { + id: number; + node_id: string; + url: string; + html_url: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type IssuesGetEventEndpoint = { + owner: string; + repo: string; + event_id: number; +}; +declare type IssuesGetEventRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/events/:event_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesGetEventResponseData { + id: number; + node_id: string; + url: string; + actor: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + event: string; + commit_id: string; + commit_url: string; + created_at: string; + issue: { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; + }; +} +declare type IssuesGetLabelEndpoint = { + owner: string; + repo: string; + name: string; +}; +declare type IssuesGetLabelRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/labels/:name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesGetLabelResponseData { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; +} +declare type IssuesGetMilestoneEndpoint = { + owner: string; + repo: string; + milestone_number: number; +}; +declare type IssuesGetMilestoneRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/milestones/:milestone_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesGetMilestoneResponseData { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; +} +declare type IssuesListEndpoint = { + /** + * 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`: All issues the authenticated user can see, regardless of participation or creation + */ + filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + /** + * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + /** + * A list of comma separated label names. Example: `bug,ui,@high` + */ + labels?: string; + /** + * What to sort results by. Can be either `created`, `updated`, `comments`. + */ + sort?: "created" | "updated" | "comments"; + /** + * The direction of the sort. Can be either `asc` or `desc`. + */ + direction?: "asc" | "desc"; + /** + * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListRequestOptions = { + method: "GET"; + url: "/issues"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListResponseData = { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; +}[]; +declare type IssuesListAssigneesEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListAssigneesRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/assignees"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListAssigneesResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type IssuesListCommentsEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListCommentsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/:issue_number/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListCommentsResponseData = { + id: number; + node_id: string; + url: string; + html_url: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +}[]; +declare type IssuesListCommentsForRepoEndpoint = { + owner: string; + repo: string; + /** + * Either `created` or `updated`. + */ + sort?: "created" | "updated"; + /** + * Either `asc` or `desc`. Ignored without the `sort` parameter. + */ + direction?: "asc" | "desc"; + /** + * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListCommentsForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListCommentsForRepoResponseData = { + id: number; + node_id: string; + url: string; + html_url: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +}[]; +declare type IssuesListEventsEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListEventsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/:issue_number/events"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListEventsResponseData = { + id: number; + node_id: string; + url: string; + actor: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + event: string; + commit_id: string; + commit_url: string; + created_at: string; +}[]; +declare type IssuesListEventsForRepoEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListEventsForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/events"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListEventsForRepoResponseData = { + id: number; + node_id: string; + url: string; + actor: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + event: string; + commit_id: string; + commit_url: string; + created_at: string; + issue: { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; + }; +}[]; +declare type IssuesListEventsForTimelineEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"mockingbird">; +declare type IssuesListEventsForTimelineRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/:issue_number/timeline"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListEventsForTimelineResponseData = { + id: number; + node_id: string; + url: string; + actor: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + event: string; + commit_id: string; + commit_url: string; + created_at: string; +}[]; +declare type IssuesListForAuthenticatedUserEndpoint = { + /** + * 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`: All issues the authenticated user can see, regardless of participation or creation + */ + filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + /** + * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + /** + * A list of comma separated label names. Example: `bug,ui,@high` + */ + labels?: string; + /** + * What to sort results by. Can be either `created`, `updated`, `comments`. + */ + sort?: "created" | "updated" | "comments"; + /** + * The direction of the sort. Can be either `asc` or `desc`. + */ + direction?: "asc" | "desc"; + /** + * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/issues"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListForAuthenticatedUserResponseData = { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; +}[]; +declare type IssuesListForOrgEndpoint = { + org: string; + /** + * 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`: All issues the authenticated user can see, regardless of participation or creation + */ + filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + /** + * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + /** + * A list of comma separated label names. Example: `bug,ui,@high` + */ + labels?: string; + /** + * What to sort results by. Can be either `created`, `updated`, `comments`. + */ + sort?: "created" | "updated" | "comments"; + /** + * The direction of the sort. Can be either `asc` or `desc`. + */ + direction?: "asc" | "desc"; + /** + * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/issues"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListForOrgResponseData = { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; +}[]; +declare type IssuesListForRepoEndpoint = { + owner: string; + repo: string; + /** + * 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. + */ + milestone?: string; + /** + * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + /** + * Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. + */ + assignee?: string; + /** + * The user that created the issue. + */ + creator?: string; + /** + * A user that's mentioned in the issue. + */ + mentioned?: string; + /** + * A list of comma separated label names. Example: `bug,ui,@high` + */ + labels?: string; + /** + * What to sort results by. Can be either `created`, `updated`, `comments`. + */ + sort?: "created" | "updated" | "comments"; + /** + * The direction of the sort. Can be either `asc` or `desc`. + */ + direction?: "asc" | "desc"; + /** + * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListForRepoResponseData = { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; +}[]; +declare type IssuesListLabelsForMilestoneEndpoint = { + owner: string; + repo: string; + milestone_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListLabelsForMilestoneRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/milestones/:milestone_number/labels"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListLabelsForMilestoneResponseData = { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; +}[]; +declare type IssuesListLabelsForRepoEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListLabelsForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/labels"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListLabelsForRepoResponseData = { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; +}[]; +declare type IssuesListLabelsOnIssueEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListLabelsOnIssueRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/:issue_number/labels"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListLabelsOnIssueResponseData = { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; +}[]; +declare type IssuesListMilestonesEndpoint = { + owner: string; + repo: string; + /** + * The state of the milestone. Either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + /** + * What to sort results by. Either `due_on` or `completeness`. + */ + sort?: "due_on" | "completeness"; + /** + * The direction of the sort. Either `asc` or `desc`. + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type IssuesListMilestonesRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/milestones"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesListMilestonesResponseData = { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; +}[]; +declare type IssuesLockEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * 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` + */ + lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; +}; +declare type IssuesLockRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/issues/:issue_number/lock"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type IssuesRemoveAllLabelsEndpoint = { + owner: string; + repo: string; + issue_number: number; +}; +declare type IssuesRemoveAllLabelsRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/issues/:issue_number/labels"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type IssuesRemoveAssigneesEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * 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._ + */ + assignees?: string[]; +}; +declare type IssuesRemoveAssigneesRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/issues/:issue_number/assignees"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesRemoveAssigneesResponseData { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; +} +declare type IssuesRemoveLabelEndpoint = { + owner: string; + repo: string; + issue_number: number; + name: string; +}; +declare type IssuesRemoveLabelRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesRemoveLabelResponseData = { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; +}[]; +declare type IssuesSetLabelsEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. + */ + labels?: string[]; +}; +declare type IssuesSetLabelsRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/issues/:issue_number/labels"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type IssuesSetLabelsResponseData = { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; +}[]; +declare type IssuesUnlockEndpoint = { + owner: string; + repo: string; + issue_number: number; +}; +declare type IssuesUnlockRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/issues/:issue_number/lock"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type IssuesUpdateEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * The title of the issue. + */ + title?: string; + /** + * The contents of the issue. + */ + body?: string; + /** + * Login for the user that this issue should be assigned to. **This field is deprecated.** + */ + assignee?: string; + /** + * State of the issue. Either `open` or `closed`. + */ + state?: "open" | "closed"; + /** + * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ + */ + milestone?: number | null; + /** + * 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._ + */ + labels?: string[]; + /** + * 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._ + */ + assignees?: string[]; +}; +declare type IssuesUpdateRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/issues/:issue_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesUpdateResponseData { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + locked: boolean; + active_lock_reason: string; + comments: number; + pull_request: { + url: string; + html_url: string; + diff_url: string; + patch_url: string; + }; + closed_at: string; + created_at: string; + updated_at: string; + closed_by: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type IssuesUpdateCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + /** + * The contents of the comment. + */ + body: string; +}; +declare type IssuesUpdateCommentRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/issues/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesUpdateCommentResponseData { + id: number; + node_id: string; + url: string; + html_url: string; + body: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type IssuesUpdateLabelEndpoint = { + owner: string; + repo: string; + name: string; + /** + * 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.com](http://emoji-cheat-sheet.com/). + */ + new_name?: string; + /** + * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. + */ + color?: string; + /** + * A short description of the label. + */ + description?: string; +}; +declare type IssuesUpdateLabelRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/labels/:name"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesUpdateLabelResponseData { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; +} +declare type IssuesUpdateMilestoneEndpoint = { + owner: string; + repo: string; + milestone_number: number; + /** + * The title of the milestone. + */ + title?: string; + /** + * The state of the milestone. Either `open` or `closed`. + */ + state?: "open" | "closed"; + /** + * A description of the milestone. + */ + description?: string; + /** + * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + due_on?: string; +}; +declare type IssuesUpdateMilestoneRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/milestones/:milestone_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface IssuesUpdateMilestoneResponseData { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; +} +declare type LicensesGetEndpoint = { + license: string; +}; +declare type LicensesGetRequestOptions = { + method: "GET"; + url: "/licenses/:license"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface LicensesGetResponseData { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + html_url: string; + description: string; + implementation: string; + permissions: string[]; + conditions: string[]; + limitations: string[]; + body: string; + featured: boolean; +} +declare type LicensesGetAllCommonlyUsedEndpoint = {}; +declare type LicensesGetAllCommonlyUsedRequestOptions = { + method: "GET"; + url: "/licenses"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type LicensesGetAllCommonlyUsedResponseData = { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; +}[]; +declare type LicensesGetForRepoEndpoint = { + owner: string; + repo: string; +}; +declare type LicensesGetForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/license"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface LicensesGetForRepoResponseData { + name: string; + path: string; + sha: string; + size: number; + url: string; + html_url: string; + git_url: string; + download_url: string; + type: string; + content: string; + encoding: string; + _links: { + self: string; + git: string; + html: string; + }; + license: { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + }; +} +declare type MarkdownRenderEndpoint = { + /** + * The Markdown text to render in HTML. Markdown content must be 400 KB or less. + */ + text: string; + /** + * The rendering mode. Can be either: + * \* `markdown` to render a document in plain Markdown, just like README.md files are rendered. + * \* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests. + */ + mode?: "markdown" | "gfm"; + /** + * The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode. + */ + context?: string; +}; +declare type MarkdownRenderRequestOptions = { + method: "POST"; + url: "/markdown"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type MarkdownRenderRawEndpoint = { + /** + * data parameter + */ + data: string; +} & { + headers: { + "content-type": "text/plain; charset=utf-8"; + }; +}; +declare type MarkdownRenderRawRequestOptions = { + method: "POST"; + url: "/markdown/raw"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type MetaGetEndpoint = {}; +declare type MetaGetRequestOptions = { + method: "GET"; + url: "/meta"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface MetaGetResponseData { + verifiable_password_authentication: boolean; + ssh_key_fingerprints: { + MD5_RSA: string; + MD5_DSA: string; + SHA256_RSA: string; + SHA256_DSA: string; + }; + hooks: string[]; + web: string[]; + api: string[]; + git: string[]; + pages: string[]; + importer: string[]; +} +declare type MigrationsCancelImportEndpoint = { + owner: string; + repo: string; +}; +declare type MigrationsCancelImportRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/import"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type MigrationsDeleteArchiveForAuthenticatedUserEndpoint = { + migration_id: number; +} & RequiredPreview<"wyandotte">; +declare type MigrationsDeleteArchiveForAuthenticatedUserRequestOptions = { + method: "DELETE"; + url: "/user/migrations/:migration_id/archive"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type MigrationsDeleteArchiveForOrgEndpoint = { + org: string; + migration_id: number; +} & RequiredPreview<"wyandotte">; +declare type MigrationsDeleteArchiveForOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/migrations/:migration_id/archive"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type MigrationsDownloadArchiveForOrgEndpoint = { + org: string; + migration_id: number; +} & RequiredPreview<"wyandotte">; +declare type MigrationsDownloadArchiveForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/migrations/:migration_id/archive"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type MigrationsGetArchiveForAuthenticatedUserEndpoint = { + migration_id: number; +} & RequiredPreview<"wyandotte">; +declare type MigrationsGetArchiveForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/migrations/:migration_id/archive"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type MigrationsGetCommitAuthorsEndpoint = { + owner: string; + repo: string; + /** + * Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step. + */ + since?: string; +}; +declare type MigrationsGetCommitAuthorsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/import/authors"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type MigrationsGetCommitAuthorsResponseData = { + id: number; + remote_id: string; + remote_name: string; + email: string; + name: string; + url: string; + import_url: string; +}[]; +declare type MigrationsGetImportStatusEndpoint = { + owner: string; + repo: string; +}; +declare type MigrationsGetImportStatusRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/import"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface MigrationsGetImportStatusResponseData { + vcs: string; + use_lfs: string; + vcs_url: string; + status: string; + status_text: string; + has_large_files: boolean; + large_files_size: number; + large_files_count: number; + authors_count: number; + url: string; + html_url: string; + authors_url: string; + repository_url: string; +} +declare type MigrationsGetLargeFilesEndpoint = { + owner: string; + repo: string; +}; +declare type MigrationsGetLargeFilesRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/import/large_files"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type MigrationsGetLargeFilesResponseData = { + ref_name: string; + path: string; + oid: string; + size: number; +}[]; +declare type MigrationsGetStatusForAuthenticatedUserEndpoint = { + migration_id: number; +} & RequiredPreview<"wyandotte">; +declare type MigrationsGetStatusForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/migrations/:migration_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface MigrationsGetStatusForAuthenticatedUserResponseData { + id: number; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + guid: string; + state: string; + lock_repositories: boolean; + exclude_attachments: boolean; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }[]; + url: string; + created_at: string; + updated_at: string; +} +declare type MigrationsGetStatusForOrgEndpoint = { + org: string; + migration_id: number; +} & RequiredPreview<"wyandotte">; +declare type MigrationsGetStatusForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/migrations/:migration_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface MigrationsGetStatusForOrgResponseData { + id: number; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + guid: string; + state: string; + lock_repositories: boolean; + exclude_attachments: boolean; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }[]; + url: string; + created_at: string; + updated_at: string; +} +declare type MigrationsListForAuthenticatedUserEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"wyandotte">; +declare type MigrationsListForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/migrations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type MigrationsListForAuthenticatedUserResponseData = { + id: number; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + guid: string; + state: string; + lock_repositories: boolean; + exclude_attachments: boolean; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }[]; + url: string; + created_at: string; + updated_at: string; +}[]; +declare type MigrationsListForOrgEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"wyandotte">; +declare type MigrationsListForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/migrations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type MigrationsListForOrgResponseData = { + id: number; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + guid: string; + state: string; + lock_repositories: boolean; + exclude_attachments: boolean; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }[]; + url: string; + created_at: string; + updated_at: string; +}[]; +declare type MigrationsListReposForOrgEndpoint = { + org: string; + migration_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"wyandotte">; +declare type MigrationsListReposForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/migrations/:migration_id/repositories"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type MigrationsListReposForOrgResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + delete_branch_on_merge: boolean; + subscribers_count: number; + network_count: number; + license: { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + }; +}[]; +declare type MigrationsListReposForUserEndpoint = { + migration_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"wyandotte">; +declare type MigrationsListReposForUserRequestOptions = { + method: "GET"; + url: "/user/migrations/:migration_id/repositories"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type MigrationsListReposForUserResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + delete_branch_on_merge: boolean; + subscribers_count: number; + network_count: number; + license: { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + }; +}[]; +declare type MigrationsMapCommitAuthorEndpoint = { + owner: string; + repo: string; + author_id: number; + /** + * The new Git author email. + */ + email?: string; + /** + * The new Git author name. + */ + name?: string; +}; +declare type MigrationsMapCommitAuthorRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/import/authors/:author_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface MigrationsMapCommitAuthorResponseData { + id: number; + remote_id: string; + remote_name: string; + email: string; + name: string; + url: string; + import_url: string; +} +declare type MigrationsSetLfsPreferenceEndpoint = { + owner: string; + repo: string; + /** + * Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). + */ + use_lfs: "opt_in" | "opt_out"; +}; +declare type MigrationsSetLfsPreferenceRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/import/lfs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface MigrationsSetLfsPreferenceResponseData { + vcs: string; + use_lfs: string; + vcs_url: string; + status: string; + status_text: string; + has_large_files: boolean; + large_files_size: number; + large_files_count: number; + authors_count: number; + url: string; + html_url: string; + authors_url: string; + repository_url: string; +} +declare type MigrationsStartForAuthenticatedUserEndpoint = { + /** + * An array of repositories to include in the migration. + */ + repositories: string[]; + /** + * Locks the `repositories` to prevent changes during the migration when set to `true`. + */ + lock_repositories?: boolean; + /** + * Does not include attachments uploaded to GitHub.com in the migration data when set to `true`. Excluding attachments will reduce the migration archive file size. + */ + exclude_attachments?: boolean; +}; +declare type MigrationsStartForAuthenticatedUserRequestOptions = { + method: "POST"; + url: "/user/migrations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface MigrationsStartForAuthenticatedUserResponseData { + id: number; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + guid: string; + state: string; + lock_repositories: boolean; + exclude_attachments: boolean; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }[]; + url: string; + created_at: string; + updated_at: string; +} +declare type MigrationsStartForOrgEndpoint = { + org: string; + /** + * A list of arrays indicating which repositories should be migrated. + */ + repositories: string[]; + /** + * Indicates whether repositories should be locked (to prevent manipulation) while migrating data. + */ + lock_repositories?: boolean; + /** + * Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). + */ + exclude_attachments?: boolean; +}; +declare type MigrationsStartForOrgRequestOptions = { + method: "POST"; + url: "/orgs/:org/migrations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface MigrationsStartForOrgResponseData { + id: number; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + guid: string; + state: string; + lock_repositories: boolean; + exclude_attachments: boolean; + repositories: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }[]; + url: string; + created_at: string; + updated_at: string; +} +declare type MigrationsStartImportEndpoint = { + owner: string; + repo: string; + /** + * The URL of the originating repository. + */ + vcs_url: string; + /** + * The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. + */ + vcs?: "subversion" | "git" | "mercurial" | "tfvc"; + /** + * If authentication is required, the username to provide to `vcs_url`. + */ + vcs_username?: string; + /** + * If authentication is required, the password to provide to `vcs_url`. + */ + vcs_password?: string; + /** + * For a tfvc import, the name of the project that is being imported. + */ + tfvc_project?: string; +}; +declare type MigrationsStartImportRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/import"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface MigrationsStartImportResponseData { + vcs: string; + use_lfs: string; + vcs_url: string; + status: string; + status_text: string; + has_large_files: boolean; + large_files_size: number; + large_files_count: number; + authors_count: number; + percent: number; + commit_count: number; + url: string; + html_url: string; + authors_url: string; + repository_url: string; + tfvc_project: string; +} +declare type MigrationsUnlockRepoForAuthenticatedUserEndpoint = { + migration_id: number; + repo_name: string; +} & RequiredPreview<"wyandotte">; +declare type MigrationsUnlockRepoForAuthenticatedUserRequestOptions = { + method: "DELETE"; + url: "/user/migrations/:migration_id/repos/:repo_name/lock"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type MigrationsUnlockRepoForOrgEndpoint = { + org: string; + migration_id: number; + repo_name: string; +} & RequiredPreview<"wyandotte">; +declare type MigrationsUnlockRepoForOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type MigrationsUpdateImportEndpoint = { + owner: string; + repo: string; + /** + * The username to provide to the originating repository. + */ + vcs_username?: string; + /** + * The password to provide to the originating repository. + */ + vcs_password?: string; +}; +declare type MigrationsUpdateImportRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/import"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface MigrationsUpdateImportResponseData { + vcs: string; + use_lfs: string; + vcs_url: string; + status: string; + status_text: string; + has_large_files: boolean; + large_files_size: number; + large_files_count: number; + authors_count: number; + percent: number; + commit_count: number; + url: string; + html_url: string; + authors_url: string; + repository_url: string; + tfvc_project: string; +} +declare type OauthAuthorizationsCreateAuthorizationEndpoint = { + /** + * A list of scopes that this authorization is in. + */ + scopes?: string[]; + /** + * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. + */ + note: string; + /** + * A URL to remind you what app the OAuth token is for. + */ + note_url?: string; + /** + * The 20 character OAuth app client key for which to create the token. + */ + client_id?: string; + /** + * The 40 character OAuth app client secret for which to create the token. + */ + client_secret?: string; + /** + * A unique string to distinguish an authorization from others created for the same client ID and user. + */ + fingerprint?: string; +}; +declare type OauthAuthorizationsCreateAuthorizationRequestOptions = { + method: "POST"; + url: "/authorizations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OauthAuthorizationsCreateAuthorizationResponseData { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; +} +declare type OauthAuthorizationsDeleteAuthorizationEndpoint = { + authorization_id: number; +}; +declare type OauthAuthorizationsDeleteAuthorizationRequestOptions = { + method: "DELETE"; + url: "/authorizations/:authorization_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OauthAuthorizationsDeleteGrantEndpoint = { + grant_id: number; +}; +declare type OauthAuthorizationsDeleteGrantRequestOptions = { + method: "DELETE"; + url: "/applications/grants/:grant_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OauthAuthorizationsGetAuthorizationEndpoint = { + authorization_id: number; +}; +declare type OauthAuthorizationsGetAuthorizationRequestOptions = { + method: "GET"; + url: "/authorizations/:authorization_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OauthAuthorizationsGetAuthorizationResponseData { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; +} +declare type OauthAuthorizationsGetGrantEndpoint = { + grant_id: number; +}; +declare type OauthAuthorizationsGetGrantRequestOptions = { + method: "GET"; + url: "/applications/grants/:grant_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OauthAuthorizationsGetGrantResponseData { + id: number; + url: string; + app: { + url: string; + name: string; + client_id: string; + }; + created_at: string; + updated_at: string; + scopes: string[]; +} +declare type OauthAuthorizationsGetOrCreateAuthorizationForAppEndpoint = { + client_id: string; + /** + * The 40 character OAuth app client secret associated with the client ID specified in the URL. + */ + client_secret: string; + /** + * A list of scopes that this authorization is in. + */ + scopes?: string[]; + /** + * A note to remind you what the OAuth token is for. + */ + note?: string; + /** + * A URL to remind you what app the OAuth token is for. + */ + note_url?: string; + /** + * A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint). + */ + fingerprint?: string; +}; +declare type OauthAuthorizationsGetOrCreateAuthorizationForAppRequestOptions = { + method: "PUT"; + url: "/authorizations/clients/:client_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OauthAuthorizationsGetOrCreateAuthorizationForAppResponseData { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; +} +export interface OauthAuthorizationsGetOrCreateAuthorizationForAppResponse201Data { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; +} +declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintEndpoint = { + client_id: string; + fingerprint: string; + /** + * The 40 character OAuth app client secret associated with the client ID specified in the URL. + */ + client_secret: string; + /** + * A list of scopes that this authorization is in. + */ + scopes?: string[]; + /** + * A note to remind you what the OAuth token is for. + */ + note?: string; + /** + * A URL to remind you what app the OAuth token is for. + */ + note_url?: string; +}; +declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequestOptions = { + method: "PUT"; + url: "/authorizations/clients/:client_id/:fingerprint"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseData { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; +} +export interface OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponse201Data { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; +} +declare type OauthAuthorizationsListAuthorizationsEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OauthAuthorizationsListAuthorizationsRequestOptions = { + method: "GET"; + url: "/authorizations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OauthAuthorizationsListAuthorizationsResponseData = { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; +}[]; +declare type OauthAuthorizationsListGrantsEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OauthAuthorizationsListGrantsRequestOptions = { + method: "GET"; + url: "/applications/grants"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OauthAuthorizationsListGrantsResponseData = { + id: number; + url: string; + app: { + url: string; + name: string; + client_id: string; + }; + created_at: string; + updated_at: string; + scopes: string[]; +}[]; +declare type OauthAuthorizationsUpdateAuthorizationEndpoint = { + authorization_id: number; + /** + * Replaces the authorization scopes with these. + */ + scopes?: string[]; + /** + * A list of scopes to add to this authorization. + */ + add_scopes?: string[]; + /** + * A list of scopes to remove from this authorization. + */ + remove_scopes?: string[]; + /** + * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. + */ + note?: string; + /** + * A URL to remind you what app the OAuth token is for. + */ + note_url?: string; + /** + * A unique string to distinguish an authorization from others created for the same client ID and user. + */ + fingerprint?: string; +}; +declare type OauthAuthorizationsUpdateAuthorizationRequestOptions = { + method: "PATCH"; + url: "/authorizations/:authorization_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OauthAuthorizationsUpdateAuthorizationResponseData { + id: number; + url: string; + scopes: string[]; + token: string; + token_last_eight: string; + hashed_token: string; + app: { + url: string; + name: string; + client_id: string; + }; + note: string; + note_url: string; + updated_at: string; + created_at: string; + fingerprint: string; +} +declare type OrgsBlockUserEndpoint = { + org: string; + username: string; +}; +declare type OrgsBlockUserRequestOptions = { + method: "PUT"; + url: "/orgs/:org/blocks/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsCheckBlockedUserEndpoint = { + org: string; + username: string; +}; +declare type OrgsCheckBlockedUserRequestOptions = { + method: "GET"; + url: "/orgs/:org/blocks/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsCheckMembershipForUserEndpoint = { + org: string; + username: string; +}; +declare type OrgsCheckMembershipForUserRequestOptions = { + method: "GET"; + url: "/orgs/:org/members/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsCheckPublicMembershipForUserEndpoint = { + org: string; + username: string; +}; +declare type OrgsCheckPublicMembershipForUserRequestOptions = { + method: "GET"; + url: "/orgs/:org/public_members/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsConvertMemberToOutsideCollaboratorEndpoint = { + org: string; + username: string; +}; +declare type OrgsConvertMemberToOutsideCollaboratorRequestOptions = { + method: "PUT"; + url: "/orgs/:org/outside_collaborators/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsConvertMemberToOutsideCollaboratorResponseData { + message: string; + documentation_url: string; +} +declare type OrgsCreateInvitationEndpoint = { + org: string; + /** + * **Required unless you provide `email`**. GitHub user ID for the person you are inviting. + */ + invitee_id?: number; + /** + * **Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user. + */ + email?: string; + /** + * Specify role for new member. Can be one of: + * \* `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. + * \* `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. + * \* `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. + */ + role?: "admin" | "direct_member" | "billing_manager"; + /** + * Specify IDs for the teams you want to invite new members to. + */ + team_ids?: number[]; +}; +declare type OrgsCreateInvitationRequestOptions = { + method: "POST"; + url: "/orgs/:org/invitations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsCreateInvitationResponseData { + id: number; + login: string; + email: string; + role: string; + created_at: string; + inviter: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + team_count: number; + invitation_team_url: string; +} +declare type OrgsCreateWebhookEndpoint = { + org: string; + /** + * Must be passed as "web". + */ + name: string; + /** + * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#create-hook-config-params). + */ + config: OrgsCreateWebhookParamsConfig; + /** + * Determines what [events](https://developer.github.com/webhooks/event-payloads) the hook is triggered for. + */ + events?: string[]; + /** + * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + */ + active?: boolean; +}; +declare type OrgsCreateWebhookRequestOptions = { + method: "POST"; + url: "/orgs/:org/hooks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsCreateWebhookResponseData { + id: number; + url: string; + ping_url: string; + name: string; + events: string[]; + active: boolean; + config: { + url: string; + content_type: string; + }; + updated_at: string; + created_at: string; +} +declare type OrgsDeleteWebhookEndpoint = { + org: string; + hook_id: number; +}; +declare type OrgsDeleteWebhookRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/hooks/:hook_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsGetEndpoint = { + org: string; +}; +declare type OrgsGetRequestOptions = { + method: "GET"; + url: "/orgs/:org"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsGetResponseData { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + name: string; + company: string; + blog: string; + location: string; + email: string; + twitter_username: string; + is_verified: boolean; + has_organization_projects: boolean; + has_repository_projects: boolean; + public_repos: number; + public_gists: number; + followers: number; + following: number; + html_url: string; + created_at: string; + type: string; + total_private_repos: number; + owned_private_repos: number; + private_gists: number; + disk_usage: number; + collaborators: number; + billing_email: string; + plan: { + name: string; + space: number; + private_repos: number; + seats: number; + filled_seats: number; + }; + default_repository_permission: string; + members_can_create_repositories: boolean; + two_factor_requirement_enabled: boolean; + members_allowed_repository_creation_type: string; + members_can_create_public_repositories: boolean; + members_can_create_private_repositories: boolean; + members_can_create_internal_repositories: boolean; +} +declare type OrgsGetMembershipForAuthenticatedUserEndpoint = { + org: string; +}; +declare type OrgsGetMembershipForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/memberships/orgs/:org"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsGetMembershipForAuthenticatedUserResponseData { + url: string; + state: string; + role: string; + organization_url: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type OrgsGetMembershipForUserEndpoint = { + org: string; + username: string; +}; +declare type OrgsGetMembershipForUserRequestOptions = { + method: "GET"; + url: "/orgs/:org/memberships/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsGetMembershipForUserResponseData { + url: string; + state: string; + role: string; + organization_url: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type OrgsGetWebhookEndpoint = { + org: string; + hook_id: number; +}; +declare type OrgsGetWebhookRequestOptions = { + method: "GET"; + url: "/orgs/:org/hooks/:hook_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsGetWebhookResponseData { + id: number; + url: string; + ping_url: string; + name: string; + events: string[]; + active: boolean; + config: { + url: string; + content_type: string; + }; + updated_at: string; + created_at: string; +} +declare type OrgsListEndpoint = { + /** + * The integer ID of the last organization that you've seen. + */ + since?: number; +}; +declare type OrgsListRequestOptions = { + method: "GET"; + url: "/organizations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListResponseData = { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; +}[]; +declare type OrgsListAppInstallationsEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"machine-man">; +declare type OrgsListAppInstallationsRequestOptions = { + method: "GET"; + url: "/orgs/:org/installations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsListAppInstallationsResponseData { + total_count: number; + installations: { + id: number; + account: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repository_selection: "all" | "selected"; + access_tokens_url: string; + repositories_url: string; + html_url: string; + app_id: number; + target_id: number; + target_type: string; + permissions: { + deployments: string; + metadata: string; + pull_requests: string; + statuses: string; + }; + events: string[]; + created_at: string; + updated_at: string; + single_file_name: string; + }[]; +} +declare type OrgsListBlockedUsersEndpoint = { + org: string; +}; +declare type OrgsListBlockedUsersRequestOptions = { + method: "GET"; + url: "/orgs/:org/blocks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListBlockedUsersResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type OrgsListForAuthenticatedUserEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OrgsListForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/orgs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListForAuthenticatedUserResponseData = { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; +}[]; +declare type OrgsListForUserEndpoint = { + username: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OrgsListForUserRequestOptions = { + method: "GET"; + url: "/users/:username/orgs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListForUserResponseData = { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; +}[]; +declare type OrgsListInvitationTeamsEndpoint = { + org: string; + invitation_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OrgsListInvitationTeamsRequestOptions = { + method: "GET"; + url: "/orgs/:org/invitations/:invitation_id/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListInvitationTeamsResponseData = { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; +}[]; +declare type OrgsListMembersEndpoint = { + org: string; + /** + * 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. + */ + filter?: "2fa_disabled" | "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. + */ + role?: "all" | "admin" | "member"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OrgsListMembersRequestOptions = { + method: "GET"; + url: "/orgs/:org/members"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListMembersResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type OrgsListMembershipsForAuthenticatedUserEndpoint = { + /** + * 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. + */ + state?: "active" | "pending"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OrgsListMembershipsForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/memberships/orgs"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListMembershipsForAuthenticatedUserResponseData = { + url: string; + state: string; + role: string; + organization_url: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +}[]; +declare type OrgsListOutsideCollaboratorsEndpoint = { + org: string; + /** + * 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. + */ + filter?: "2fa_disabled" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OrgsListOutsideCollaboratorsRequestOptions = { + method: "GET"; + url: "/orgs/:org/outside_collaborators"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListOutsideCollaboratorsResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type OrgsListPendingInvitationsEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OrgsListPendingInvitationsRequestOptions = { + method: "GET"; + url: "/orgs/:org/invitations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListPendingInvitationsResponseData = { + id: number; + login: string; + email: string; + role: string; + created_at: string; + inviter: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + team_count: number; + invitation_team_url: string; +}[]; +declare type OrgsListPublicMembersEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OrgsListPublicMembersRequestOptions = { + method: "GET"; + url: "/orgs/:org/public_members"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListPublicMembersResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type OrgsListSamlSsoAuthorizationsEndpoint = { + org: string; +}; +declare type OrgsListSamlSsoAuthorizationsRequestOptions = { + method: "GET"; + url: "/orgs/:org/credential-authorizations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListSamlSsoAuthorizationsResponseData = { + login: string; + credential_id: string; + credential_type: string; + token_last_eight: string; + credential_authorized_at: string; + scopes: string[]; +}[]; +declare type OrgsListWebhooksEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type OrgsListWebhooksRequestOptions = { + method: "GET"; + url: "/orgs/:org/hooks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type OrgsListWebhooksResponseData = { + id: number; + url: string; + ping_url: string; + name: string; + events: string[]; + active: boolean; + config: { + url: string; + content_type: string; + }; + updated_at: string; + created_at: string; +}[]; +declare type OrgsPingWebhookEndpoint = { + org: string; + hook_id: number; +}; +declare type OrgsPingWebhookRequestOptions = { + method: "POST"; + url: "/orgs/:org/hooks/:hook_id/pings"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsRemoveMemberEndpoint = { + org: string; + username: string; +}; +declare type OrgsRemoveMemberRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/members/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsRemoveMembershipForUserEndpoint = { + org: string; + username: string; +}; +declare type OrgsRemoveMembershipForUserRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/memberships/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsRemoveOutsideCollaboratorEndpoint = { + org: string; + username: string; +}; +declare type OrgsRemoveOutsideCollaboratorRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/outside_collaborators/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsRemoveOutsideCollaboratorResponseData { + message: string; + documentation_url: string; +} +declare type OrgsRemovePublicMembershipForAuthenticatedUserEndpoint = { + org: string; + username: string; +}; +declare type OrgsRemovePublicMembershipForAuthenticatedUserRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/public_members/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsRemoveSamlSsoAuthorizationEndpoint = { + org: string; + credential_id: number; +}; +declare type OrgsRemoveSamlSsoAuthorizationRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/credential-authorizations/:credential_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsSetMembershipForUserEndpoint = { + org: string; + username: string; + /** + * 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. + */ + role?: "admin" | "member"; +}; +declare type OrgsSetMembershipForUserRequestOptions = { + method: "PUT"; + url: "/orgs/:org/memberships/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsSetMembershipForUserResponseData { + url: string; + state: string; + role: string; + organization_url: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type OrgsSetPublicMembershipForAuthenticatedUserEndpoint = { + org: string; + username: string; +}; +declare type OrgsSetPublicMembershipForAuthenticatedUserRequestOptions = { + method: "PUT"; + url: "/orgs/:org/public_members/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsUnblockUserEndpoint = { + org: string; + username: string; +}; +declare type OrgsUnblockUserRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/blocks/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type OrgsUpdateEndpoint = { + org: string; + /** + * Billing email address. This address is not publicized. + */ + billing_email?: string; + /** + * The company name. + */ + company?: string; + /** + * The publicly visible email address. + */ + email?: string; + /** + * The Twitter username of the company. + */ + twitter_username?: string; + /** + * The location. + */ + location?: string; + /** + * The shorthand name of the company. + */ + name?: string; + /** + * The description of the company. + */ + description?: string; + /** + * Toggles whether an organization can use organization projects. + */ + has_organization_projects?: boolean; + /** + * Toggles whether repositories that belong to the organization can use repository projects. + */ + has_repository_projects?: boolean; + /** + * 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. + */ + default_repository_permission?: "read" | "write" | "admin" | "none"; + /** + * 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_repositories?: boolean; + /** + * 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://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)". + */ + members_can_create_internal_repositories?: boolean; + /** + * 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://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)". + */ + members_can_create_private_repositories?: boolean; + /** + * 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://docs.github.com/github/setting-up-and-managing-organizations-and-teams/restricting-repository-creation-in-your-organization)". + */ + members_can_create_public_repositories?: boolean; + /** + * 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 [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. + */ + members_allowed_repository_creation_type?: "all" | "private" | "none"; +}; +declare type OrgsUpdateRequestOptions = { + method: "PATCH"; + url: "/orgs/:org"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsUpdateResponseData { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + name: string; + company: string; + blog: string; + location: string; + email: string; + twitter_username: string; + is_verified: boolean; + has_organization_projects: boolean; + has_repository_projects: boolean; + public_repos: number; + public_gists: number; + followers: number; + following: number; + html_url: string; + created_at: string; + type: string; + total_private_repos: number; + owned_private_repos: number; + private_gists: number; + disk_usage: number; + collaborators: number; + billing_email: string; + plan: { + name: string; + space: number; + private_repos: number; + seats: number; + filled_seats: number; + }; + default_repository_permission: string; + members_can_create_repositories: boolean; + two_factor_requirement_enabled: boolean; + members_allowed_repository_creation_type: string; + members_can_create_public_repositories: boolean; + members_can_create_private_repositories: boolean; + members_can_create_internal_repositories: boolean; +} +declare type OrgsUpdateMembershipForAuthenticatedUserEndpoint = { + org: string; + /** + * The state that the membership should be in. Only `"active"` will be accepted. + */ + state: "active"; +}; +declare type OrgsUpdateMembershipForAuthenticatedUserRequestOptions = { + method: "PATCH"; + url: "/user/memberships/orgs/:org"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsUpdateMembershipForAuthenticatedUserResponseData { + url: string; + state: string; + role: string; + organization_url: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type OrgsUpdateWebhookEndpoint = { + org: string; + hook_id: number; + /** + * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#update-hook-config-params). + */ + config?: OrgsUpdateWebhookParamsConfig; + /** + * Determines what [events](https://developer.github.com/webhooks/event-payloads) the hook is triggered for. + */ + events?: string[]; + /** + * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + */ + active?: boolean; +}; +declare type OrgsUpdateWebhookRequestOptions = { + method: "PATCH"; + url: "/orgs/:org/hooks/:hook_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface OrgsUpdateWebhookResponseData { + id: number; + url: string; + ping_url: string; + name: string; + events: string[]; + active: boolean; + config: { + url: string; + content_type: string; + }; + updated_at: string; + created_at: string; +} +declare type ProjectsAddCollaboratorEndpoint = { + project_id: number; + username: string; + /** + * The permission to grant the collaborator. 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://developer.github.com/v3/#http-verbs)." Can be one of: + * \* `read` - can read, but not write to or administer this project. + * \* `write` - can read and write, but not administer this project. + * \* `admin` - can read, write and administer this project. + */ + permission?: "read" | "write" | "admin"; +} & RequiredPreview<"inertia">; +declare type ProjectsAddCollaboratorRequestOptions = { + method: "PUT"; + url: "/projects/:project_id/collaborators/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ProjectsCreateCardEndpoint = { + column_id: number; + /** + * The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`. + */ + note?: string; + /** + * The issue or pull request id you want to associate with this card. You can use the [List repository issues](https://developer.github.com/v3/issues/#list-repository-issues) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. + * **Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`. + */ + content_id?: number; + /** + * **Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id. + */ + content_type?: string; +} & RequiredPreview<"inertia">; +declare type ProjectsCreateCardRequestOptions = { + method: "POST"; + url: "/projects/columns/:column_id/cards"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsCreateCardResponseData { + url: string; + id: number; + node_id: string; + note: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + archived: boolean; + column_url: string; + content_url: string; + project_url: string; +} +declare type ProjectsCreateColumnEndpoint = { + project_id: number; + /** + * The name of the column. + */ + name: string; +} & RequiredPreview<"inertia">; +declare type ProjectsCreateColumnRequestOptions = { + method: "POST"; + url: "/projects/:project_id/columns"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsCreateColumnResponseData { + url: string; + project_url: string; + cards_url: string; + id: number; + node_id: string; + name: string; + created_at: string; + updated_at: string; +} +declare type ProjectsCreateForAuthenticatedUserEndpoint = { + /** + * The name of the project. + */ + name: string; + /** + * The description of the project. + */ + body?: string; +} & RequiredPreview<"inertia">; +declare type ProjectsCreateForAuthenticatedUserRequestOptions = { + method: "POST"; + url: "/user/projects"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsCreateForAuthenticatedUserResponseData { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type ProjectsCreateForOrgEndpoint = { + org: string; + /** + * The name of the project. + */ + name: string; + /** + * The description of the project. + */ + body?: string; +} & RequiredPreview<"inertia">; +declare type ProjectsCreateForOrgRequestOptions = { + method: "POST"; + url: "/orgs/:org/projects"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsCreateForOrgResponseData { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type ProjectsCreateForRepoEndpoint = { + owner: string; + repo: string; + /** + * The name of the project. + */ + name: string; + /** + * The description of the project. + */ + body?: string; +} & RequiredPreview<"inertia">; +declare type ProjectsCreateForRepoRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/projects"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsCreateForRepoResponseData { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type ProjectsDeleteEndpoint = { + project_id: number; +} & RequiredPreview<"inertia">; +declare type ProjectsDeleteRequestOptions = { + method: "DELETE"; + url: "/projects/:project_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ProjectsDeleteCardEndpoint = { + card_id: number; +} & RequiredPreview<"inertia">; +declare type ProjectsDeleteCardRequestOptions = { + method: "DELETE"; + url: "/projects/columns/cards/:card_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ProjectsDeleteColumnEndpoint = { + column_id: number; +} & RequiredPreview<"inertia">; +declare type ProjectsDeleteColumnRequestOptions = { + method: "DELETE"; + url: "/projects/columns/:column_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ProjectsGetEndpoint = { + project_id: number; +} & RequiredPreview<"inertia">; +declare type ProjectsGetRequestOptions = { + method: "GET"; + url: "/projects/:project_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsGetResponseData { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type ProjectsGetCardEndpoint = { + card_id: number; +} & RequiredPreview<"inertia">; +declare type ProjectsGetCardRequestOptions = { + method: "GET"; + url: "/projects/columns/cards/:card_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsGetCardResponseData { + url: string; + id: number; + node_id: string; + note: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + archived: boolean; + column_url: string; + content_url: string; + project_url: string; +} +declare type ProjectsGetColumnEndpoint = { + column_id: number; +} & RequiredPreview<"inertia">; +declare type ProjectsGetColumnRequestOptions = { + method: "GET"; + url: "/projects/columns/:column_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsGetColumnResponseData { + url: string; + project_url: string; + cards_url: string; + id: number; + node_id: string; + name: string; + created_at: string; + updated_at: string; +} +declare type ProjectsGetPermissionForUserEndpoint = { + project_id: number; + username: string; +} & RequiredPreview<"inertia">; +declare type ProjectsGetPermissionForUserRequestOptions = { + method: "GET"; + url: "/projects/:project_id/collaborators/:username/permission"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsGetPermissionForUserResponseData { + permission: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type ProjectsListCardsEndpoint = { + column_id: number; + /** + * Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`. + */ + archived_state?: "all" | "archived" | "not_archived"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"inertia">; +declare type ProjectsListCardsRequestOptions = { + method: "GET"; + url: "/projects/columns/:column_id/cards"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ProjectsListCardsResponseData = { + url: string; + id: number; + node_id: string; + note: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + archived: boolean; + column_url: string; + content_url: string; + project_url: string; +}[]; +declare type ProjectsListCollaboratorsEndpoint = { + project_id: number; + /** + * 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. + */ + affiliation?: "outside" | "direct" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"inertia">; +declare type ProjectsListCollaboratorsRequestOptions = { + method: "GET"; + url: "/projects/:project_id/collaborators"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ProjectsListCollaboratorsResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type ProjectsListColumnsEndpoint = { + project_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"inertia">; +declare type ProjectsListColumnsRequestOptions = { + method: "GET"; + url: "/projects/:project_id/columns"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ProjectsListColumnsResponseData = { + url: string; + project_url: string; + cards_url: string; + id: number; + node_id: string; + name: string; + created_at: string; + updated_at: string; +}[]; +declare type ProjectsListForOrgEndpoint = { + org: string; + /** + * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"inertia">; +declare type ProjectsListForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/projects"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ProjectsListForOrgResponseData = { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +}[]; +declare type ProjectsListForRepoEndpoint = { + owner: string; + repo: string; + /** + * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"inertia">; +declare type ProjectsListForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/projects"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ProjectsListForRepoResponseData = { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +}[]; +declare type ProjectsListForUserEndpoint = { + username: string; + /** + * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"inertia">; +declare type ProjectsListForUserRequestOptions = { + method: "GET"; + url: "/users/:username/projects"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ProjectsListForUserResponseData = { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +}[]; +declare type ProjectsMoveCardEndpoint = { + card_id: number; + /** + * Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`. + */ + position: string; + /** + * The `id` value of a column in the same project. + */ + column_id?: number; +} & RequiredPreview<"inertia">; +declare type ProjectsMoveCardRequestOptions = { + method: "POST"; + url: "/projects/columns/cards/:card_id/moves"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ProjectsMoveColumnEndpoint = { + column_id: number; + /** + * Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project. + */ + position: string; +} & RequiredPreview<"inertia">; +declare type ProjectsMoveColumnRequestOptions = { + method: "POST"; + url: "/projects/columns/:column_id/moves"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ProjectsRemoveCollaboratorEndpoint = { + project_id: number; + username: string; +} & RequiredPreview<"inertia">; +declare type ProjectsRemoveCollaboratorRequestOptions = { + method: "DELETE"; + url: "/projects/:project_id/collaborators/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ProjectsUpdateEndpoint = { + project_id: number; + /** + * The name of the project. + */ + name?: string; + /** + * The description of the project. + */ + body?: string; + /** + * State of the project. Either `open` or `closed`. + */ + state?: "open" | "closed"; + /** + * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project permissions](https://developer.github.com/v3/teams/#add-or-update-team-project-permissions) or [Add project collaborator](https://developer.github.com/v3/projects/collaborators/#add-project-collaborator). + * + * **Note:** Updating a project's `organization_permission` requires `admin` access to the project. + * + * Can be one of: + * \* `read` - Organization members can read, but not write to or administer this project. + * \* `write` - Organization members can read and write, but not administer this project. + * \* `admin` - Organization members can read, write and administer this project. + * \* `none` - Organization members can only see this project if it is public. + */ + organization_permission?: string; + /** + * Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. + * + * Can be one of: + * \* `false` - Anyone can see the project. + * \* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account. + */ + private?: boolean; +} & RequiredPreview<"inertia">; +declare type ProjectsUpdateRequestOptions = { + method: "PATCH"; + url: "/projects/:project_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsUpdateResponseData { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type ProjectsUpdateCardEndpoint = { + card_id: number; + /** + * The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`. + */ + note?: string; + /** + * Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card. + */ + archived?: boolean; +} & RequiredPreview<"inertia">; +declare type ProjectsUpdateCardRequestOptions = { + method: "PATCH"; + url: "/projects/columns/cards/:card_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsUpdateCardResponseData { + url: string; + id: number; + node_id: string; + note: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + archived: boolean; + column_url: string; + content_url: string; + project_url: string; +} +declare type ProjectsUpdateColumnEndpoint = { + column_id: number; + /** + * The new name of the column. + */ + name: string; +} & RequiredPreview<"inertia">; +declare type ProjectsUpdateColumnRequestOptions = { + method: "PATCH"; + url: "/projects/columns/:column_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ProjectsUpdateColumnResponseData { + url: string; + project_url: string; + cards_url: string; + id: number; + node_id: string; + name: string; + created_at: string; + updated_at: string; +} +declare type PullsCheckIfMergedEndpoint = { + owner: string; + repo: string; + pull_number: number; +}; +declare type PullsCheckIfMergedRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/:pull_number/merge"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type PullsCreateEndpoint = { + owner: string; + repo: string; + /** + * The title of the new pull request. + */ + title: string; + /** + * 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`. + */ + head: string; + /** + * 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. + */ + base: string; + /** + * The contents of the pull request. + */ + body?: string; + /** + * Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. + */ + maintainer_can_modify?: boolean; + /** + * Indicates whether the pull request is a draft. See "[Draft Pull Requests](https://docs.github.com/en/articles/about-pull-requests#draft-pull-requests)" in the GitHub Help documentation to learn more. + */ + draft?: boolean; +}; +declare type PullsCreateRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/pulls"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsCreateResponseData { + url: string; + id: number; + node_id: string; + html_url: string; + diff_url: string; + patch_url: string; + issue_url: string; + commits_url: string; + review_comments_url: string; + review_comment_url: string; + comments_url: string; + statuses_url: string; + number: number; + state: string; + locked: boolean; + title: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + active_lock_reason: string; + created_at: string; + updated_at: string; + closed_at: string; + merged_at: string; + merge_commit_sha: string; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_reviewers: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + head: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + base: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + issue: { + href: string; + }; + comments: { + href: string; + }; + review_comments: { + href: string; + }; + review_comment: { + href: string; + }; + commits: { + href: string; + }; + statuses: { + href: string; + }; + }; + author_association: string; + draft: boolean; + merged: boolean; + mergeable: boolean; + rebaseable: boolean; + mergeable_state: string; + merged_by: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + comments: number; + review_comments: number; + maintainer_can_modify: boolean; + commits: number; + additions: number; + deletions: number; + changed_files: number; +} +declare type PullsCreateReplyForReviewCommentEndpoint = { + owner: string; + repo: string; + pull_number: number; + comment_id: number; + /** + * The text of the review comment. + */ + body: string; +}; +declare type PullsCreateReplyForReviewCommentRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsCreateReplyForReviewCommentResponseData { + url: string; + pull_request_review_id: number; + id: number; + node_id: string; + diff_hunk: string; + path: string; + position: number; + original_position: number; + commit_id: string; + original_commit_id: string; + in_reply_to_id: number; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + created_at: string; + updated_at: string; + html_url: string; + pull_request_url: string; + author_association: string; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + start_line: number; + original_start_line: number; + start_side: string; + line: number; + original_line: number; + side: string; +} +declare type PullsCreateReviewEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * 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. + */ + commit_id?: string; + /** + * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. + */ + body?: string; + /** + * 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://developer.github.com/v3/pulls/reviews/#submit-a-review-for-a-pull-request) when you are ready. + */ + event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; + /** + * Use the following table to specify the location, destination, and contents of the draft review comment. + */ + comments?: PullsCreateReviewParamsComments[]; +}; +declare type PullsCreateReviewRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/pulls/:pull_number/reviews"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsCreateReviewResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + state: string; + html_url: string; + pull_request_url: string; + _links: { + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + submitted_at: string; + commit_id: string; +} +declare type PullsCreateReviewCommentEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * The text of the review comment. + */ + body: string; + /** + * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. + */ + commit_id: string; + /** + * The relative path to the file that necessitates a comment. + */ + path: string; + /** + * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. + */ + position?: number; + /** + * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)". + */ + side?: "LEFT" | "RIGHT"; + /** + * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. + */ + line?: number; + /** + * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)". + */ + start_line?: number; + /** + * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)". See `side` in this table for additional context. + */ + start_side?: "LEFT" | "RIGHT" | "side"; +}; +declare type PullsCreateReviewCommentRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/pulls/:pull_number/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsCreateReviewCommentResponseData { + url: string; + pull_request_review_id: number; + id: number; + node_id: string; + diff_hunk: string; + path: string; + position: number; + original_position: number; + commit_id: string; + original_commit_id: string; + in_reply_to_id: number; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + created_at: string; + updated_at: string; + html_url: string; + pull_request_url: string; + author_association: string; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + start_line: number; + original_start_line: number; + start_side: string; + line: number; + original_line: number; + side: string; +} +declare type PullsDeletePendingReviewEndpoint = { + owner: string; + repo: string; + pull_number: number; + review_id: number; +}; +declare type PullsDeletePendingReviewRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsDeletePendingReviewResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + state: string; + html_url: string; + pull_request_url: string; + _links: { + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + commit_id: string; +} +declare type PullsDeleteReviewCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; +}; +declare type PullsDeleteReviewCommentRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/pulls/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type PullsDismissReviewEndpoint = { + owner: string; + repo: string; + pull_number: number; + review_id: number; + /** + * The message for the pull request review dismissal + */ + message: string; +}; +declare type PullsDismissReviewRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsDismissReviewResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + state: string; + html_url: string; + pull_request_url: string; + _links: { + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + submitted_at: string; + commit_id: string; +} +declare type PullsGetEndpoint = { + owner: string; + repo: string; + pull_number: number; +}; +declare type PullsGetRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/:pull_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsGetResponseData { + url: string; + id: number; + node_id: string; + html_url: string; + diff_url: string; + patch_url: string; + issue_url: string; + commits_url: string; + review_comments_url: string; + review_comment_url: string; + comments_url: string; + statuses_url: string; + number: number; + state: string; + locked: boolean; + title: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + active_lock_reason: string; + created_at: string; + updated_at: string; + closed_at: string; + merged_at: string; + merge_commit_sha: string; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_reviewers: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + head: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + base: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + issue: { + href: string; + }; + comments: { + href: string; + }; + review_comments: { + href: string; + }; + review_comment: { + href: string; + }; + commits: { + href: string; + }; + statuses: { + href: string; + }; + }; + author_association: string; + draft: boolean; + merged: boolean; + mergeable: boolean; + rebaseable: boolean; + mergeable_state: string; + merged_by: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + comments: number; + review_comments: number; + maintainer_can_modify: boolean; + commits: number; + additions: number; + deletions: number; + changed_files: number; +} +declare type PullsGetReviewEndpoint = { + owner: string; + repo: string; + pull_number: number; + review_id: number; +}; +declare type PullsGetReviewRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsGetReviewResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + state: string; + html_url: string; + pull_request_url: string; + _links: { + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + submitted_at: string; + commit_id: string; +} +declare type PullsGetReviewCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; +}; +declare type PullsGetReviewCommentRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsGetReviewCommentResponseData { + url: string; + pull_request_review_id: number; + id: number; + node_id: string; + diff_hunk: string; + path: string; + position: number; + original_position: number; + commit_id: string; + original_commit_id: string; + in_reply_to_id: number; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + created_at: string; + updated_at: string; + html_url: string; + pull_request_url: string; + author_association: string; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + start_line: number; + original_start_line: number; + start_side: string; + line: number; + original_line: number; + side: string; +} +declare type PullsListEndpoint = { + owner: string; + repo: string; + /** + * Either `open`, `closed`, or `all` to filter by state. + */ + state?: "open" | "closed" | "all"; + /** + * 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`. + */ + head?: string; + /** + * Filter pulls by base branch name. Example: `gh-pages`. + */ + base?: string; + /** + * 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). + */ + sort?: "created" | "updated" | "popularity" | "long-running"; + /** + * The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type PullsListRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type PullsListResponseData = { + url: string; + id: number; + node_id: string; + html_url: string; + diff_url: string; + patch_url: string; + issue_url: string; + commits_url: string; + review_comments_url: string; + review_comment_url: string; + comments_url: string; + statuses_url: string; + number: number; + state: string; + locked: boolean; + title: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + active_lock_reason: string; + created_at: string; + updated_at: string; + closed_at: string; + merged_at: string; + merge_commit_sha: string; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_reviewers: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + head: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + base: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + issue: { + href: string; + }; + comments: { + href: string; + }; + review_comments: { + href: string; + }; + review_comment: { + href: string; + }; + commits: { + href: string; + }; + statuses: { + href: string; + }; + }; + author_association: string; + draft: boolean; +}[]; +declare type PullsListCommentsForReviewEndpoint = { + owner: string; + repo: string; + pull_number: number; + review_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type PullsListCommentsForReviewRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type PullsListCommentsForReviewResponseData = { + url: string; + pull_request_review_id: number; + id: number; + node_id: string; + diff_hunk: string; + path: string; + position: number; + original_position: number; + commit_id: string; + original_commit_id: string; + in_reply_to_id: number; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + created_at: string; + updated_at: string; + html_url: string; + pull_request_url: string; + author_association: string; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; +}[]; +declare type PullsListCommitsEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type PullsListCommitsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/:pull_number/commits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type PullsListCommitsResponseData = { + url: string; + sha: string; + node_id: string; + html_url: string; + comments_url: string; + commit: { + url: string; + author: { + name: string; + email: string; + date: string; + }; + committer: { + name: string; + email: string; + date: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + comment_count: number; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + committer: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parents: { + url: string; + sha: string; + }[]; +}[]; +declare type PullsListFilesEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type PullsListFilesRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/:pull_number/files"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type PullsListFilesResponseData = { + sha: string; + filename: string; + status: string; + additions: number; + deletions: number; + changes: number; + blob_url: string; + raw_url: string; + contents_url: string; + patch: string; +}[]; +declare type PullsListRequestedReviewersEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type PullsListRequestedReviewersRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsListRequestedReviewersResponseData { + users: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; +} +declare type PullsListReviewCommentsEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * Can be either `created` or `updated` comments. + */ + sort?: "created" | "updated"; + /** + * Can be either `asc` or `desc`. Ignored without `sort` parameter. + */ + direction?: "asc" | "desc"; + /** + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type PullsListReviewCommentsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/:pull_number/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type PullsListReviewCommentsResponseData = { + url: string; + pull_request_review_id: number; + id: number; + node_id: string; + diff_hunk: string; + path: string; + position: number; + original_position: number; + commit_id: string; + original_commit_id: string; + in_reply_to_id: number; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + created_at: string; + updated_at: string; + html_url: string; + pull_request_url: string; + author_association: string; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + start_line: number; + original_start_line: number; + start_side: string; + line: number; + original_line: number; + side: string; +}[]; +declare type PullsListReviewCommentsForRepoEndpoint = { + owner: string; + repo: string; + /** + * Can be either `created` or `updated` comments. + */ + sort?: "created" | "updated"; + /** + * Can be either `asc` or `desc`. Ignored without `sort` parameter. + */ + direction?: "asc" | "desc"; + /** + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. + */ + since?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type PullsListReviewCommentsForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type PullsListReviewCommentsForRepoResponseData = { + url: string; + pull_request_review_id: number; + id: number; + node_id: string; + diff_hunk: string; + path: string; + position: number; + original_position: number; + commit_id: string; + original_commit_id: string; + in_reply_to_id: number; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + created_at: string; + updated_at: string; + html_url: string; + pull_request_url: string; + author_association: string; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + start_line: number; + original_start_line: number; + start_side: string; + line: number; + original_line: number; + side: string; +}[]; +declare type PullsListReviewsEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type PullsListReviewsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/:pull_number/reviews"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type PullsListReviewsResponseData = { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + state: string; + html_url: string; + pull_request_url: string; + _links: { + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + submitted_at: string; + commit_id: string; +}[]; +declare type PullsMergeEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * Title for the automatic commit message. + */ + commit_title?: string; + /** + * Extra detail to append to automatic commit message. + */ + commit_message?: string; + /** + * SHA that pull request head must match to allow merge. + */ + sha?: string; + /** + * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. + */ + merge_method?: "merge" | "squash" | "rebase"; +}; +declare type PullsMergeRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/pulls/:pull_number/merge"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsMergeResponseData { + sha: string; + merged: boolean; + message: string; +} +export interface PullsMergeResponse405Data { + message: string; + documentation_url: string; +} +export interface PullsMergeResponse409Data { + message: string; + documentation_url: string; +} +declare type PullsRemoveRequestedReviewersEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * An array of user `login`s that will be removed. + */ + reviewers?: string[]; + /** + * An array of team `slug`s that will be removed. + */ + team_reviewers?: string[]; +}; +declare type PullsRemoveRequestedReviewersRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type PullsRequestReviewersEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * An array of user `login`s that will be requested. + */ + reviewers?: string[]; + /** + * An array of team `slug`s that will be requested. + */ + team_reviewers?: string[]; +}; +declare type PullsRequestReviewersRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsRequestReviewersResponseData { + url: string; + id: number; + node_id: string; + html_url: string; + diff_url: string; + patch_url: string; + issue_url: string; + commits_url: string; + review_comments_url: string; + review_comment_url: string; + comments_url: string; + statuses_url: string; + number: number; + state: string; + locked: boolean; + title: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + active_lock_reason: string; + created_at: string; + updated_at: string; + closed_at: string; + merged_at: string; + merge_commit_sha: string; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_reviewers: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + head: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + base: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + issue: { + href: string; + }; + comments: { + href: string; + }; + review_comments: { + href: string; + }; + review_comment: { + href: string; + }; + commits: { + href: string; + }; + statuses: { + href: string; + }; + }; + author_association: string; + draft: boolean; +} +declare type PullsSubmitReviewEndpoint = { + owner: string; + repo: string; + pull_number: number; + review_id: number; + /** + * The body text of the pull request review + */ + body?: string; + /** + * 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. + */ + event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; +}; +declare type PullsSubmitReviewRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsSubmitReviewResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + state: string; + html_url: string; + pull_request_url: string; + _links: { + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + submitted_at: string; + commit_id: string; +} +declare type PullsUpdateEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * The title of the pull request. + */ + title?: string; + /** + * The contents of the pull request. + */ + body?: string; + /** + * State of this Pull Request. Either `open` or `closed`. + */ + state?: "open" | "closed"; + /** + * 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. + */ + base?: string; + /** + * Indicates whether [maintainers can modify](https://docs.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. + */ + maintainer_can_modify?: boolean; +}; +declare type PullsUpdateRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/pulls/:pull_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsUpdateResponseData { + url: string; + id: number; + node_id: string; + html_url: string; + diff_url: string; + patch_url: string; + issue_url: string; + commits_url: string; + review_comments_url: string; + review_comment_url: string; + comments_url: string; + statuses_url: string; + number: number; + state: string; + locked: boolean; + title: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + active_lock_reason: string; + created_at: string; + updated_at: string; + closed_at: string; + merged_at: string; + merge_commit_sha: string; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_reviewers: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + head: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + base: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + issue: { + href: string; + }; + comments: { + href: string; + }; + review_comments: { + href: string; + }; + review_comment: { + href: string; + }; + commits: { + href: string; + }; + statuses: { + href: string; + }; + }; + author_association: string; + draft: boolean; + merged: boolean; + mergeable: boolean; + rebaseable: boolean; + mergeable_state: string; + merged_by: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + comments: number; + review_comments: number; + maintainer_can_modify: boolean; + commits: number; + additions: number; + deletions: number; + changed_files: number; +} +declare type PullsUpdateBranchEndpoint = { + owner: string; + repo: string; + pull_number: number; + /** + * 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://developer.github.com/v3/repos/commits/#list-commits)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. + */ + expected_head_sha?: string; +} & RequiredPreview<"lydian">; +declare type PullsUpdateBranchRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsUpdateBranchResponseData { + message: string; + url: string; +} +declare type PullsUpdateReviewEndpoint = { + owner: string; + repo: string; + pull_number: number; + review_id: number; + /** + * The body text of the pull request review. + */ + body: string; +}; +declare type PullsUpdateReviewRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsUpdateReviewResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + state: string; + html_url: string; + pull_request_url: string; + _links: { + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + submitted_at: string; + commit_id: string; +} +declare type PullsUpdateReviewCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + /** + * The text of the reply to the review comment. + */ + body: string; +}; +declare type PullsUpdateReviewCommentRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/pulls/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface PullsUpdateReviewCommentResponseData { + url: string; + pull_request_review_id: number; + id: number; + node_id: string; + diff_hunk: string; + path: string; + position: number; + original_position: number; + commit_id: string; + original_commit_id: string; + in_reply_to_id: number; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + created_at: string; + updated_at: string; + html_url: string; + pull_request_url: string; + author_association: string; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + pull_request: { + href: string; + }; + }; + start_line: number; + original_start_line: number; + start_side: string; + line: number; + original_line: number; + side: string; +} +declare type RateLimitGetEndpoint = {}; +declare type RateLimitGetRequestOptions = { + method: "GET"; + url: "/rate_limit"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface RateLimitGetResponseData { + resources: { + core: { + limit: number; + remaining: number; + reset: number; + }; + search: { + limit: number; + remaining: number; + reset: number; + }; + graphql: { + limit: number; + remaining: number; + reset: number; + }; + integration_manifest: { + limit: number; + remaining: number; + reset: number; + }; + }; + rate: { + limit: number; + remaining: number; + reset: number; + }; +} +declare type ReactionsCreateForCommitCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment. + */ + content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsCreateForCommitCommentRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/comments/:comment_id/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReactionsCreateForCommitCommentResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +} +declare type ReactionsCreateForIssueEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. + */ + content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsCreateForIssueRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/issues/:issue_number/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReactionsCreateForIssueResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +} +declare type ReactionsCreateForIssueCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment. + */ + content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsCreateForIssueCommentRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReactionsCreateForIssueCommentResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +} +declare type ReactionsCreateForPullRequestReviewCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment. + */ + content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsCreateForPullRequestReviewCommentRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReactionsCreateForPullRequestReviewCommentResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +} +declare type ReactionsCreateForTeamDiscussionCommentInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + comment_number: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. + */ + content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions = { + method: "POST"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReactionsCreateForTeamDiscussionCommentInOrgResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +} +declare type ReactionsCreateForTeamDiscussionCommentLegacyEndpoint = { + team_id: number; + discussion_number: number; + comment_number: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. + */ + content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsCreateForTeamDiscussionCommentLegacyRequestOptions = { + method: "POST"; + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReactionsCreateForTeamDiscussionCommentLegacyResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +} +declare type ReactionsCreateForTeamDiscussionInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. + */ + content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsCreateForTeamDiscussionInOrgRequestOptions = { + method: "POST"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReactionsCreateForTeamDiscussionInOrgResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +} +declare type ReactionsCreateForTeamDiscussionLegacyEndpoint = { + team_id: number; + discussion_number: number; + /** + * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. + */ + content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsCreateForTeamDiscussionLegacyRequestOptions = { + method: "POST"; + url: "/teams/:team_id/discussions/:discussion_number/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReactionsCreateForTeamDiscussionLegacyResponseData { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +} +declare type ReactionsDeleteForCommitCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + reaction_id: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsDeleteForCommitCommentRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReactionsDeleteForIssueEndpoint = { + owner: string; + repo: string; + issue_number: number; + reaction_id: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsDeleteForIssueRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReactionsDeleteForIssueCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + reaction_id: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsDeleteForIssueCommentRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReactionsDeleteForPullRequestCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + reaction_id: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsDeleteForPullRequestCommentRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReactionsDeleteForTeamDiscussionEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + reaction_id: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsDeleteForTeamDiscussionRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReactionsDeleteForTeamDiscussionCommentEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + comment_number: number; + reaction_id: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsDeleteForTeamDiscussionCommentRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReactionsDeleteLegacyEndpoint = { + reaction_id: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsDeleteLegacyRequestOptions = { + method: "DELETE"; + url: "/reactions/:reaction_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReactionsListForCommitCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment. + */ + content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsListForCommitCommentRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/comments/:comment_id/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReactionsListForCommitCommentResponseData = { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +}[]; +declare type ReactionsListForIssueEndpoint = { + owner: string; + repo: string; + issue_number: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. + */ + content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsListForIssueRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/:issue_number/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReactionsListForIssueResponseData = { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +}[]; +declare type ReactionsListForIssueCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment. + */ + content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsListForIssueCommentRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReactionsListForIssueCommentResponseData = { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +}[]; +declare type ReactionsListForPullRequestReviewCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment. + */ + content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsListForPullRequestReviewCommentRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReactionsListForPullRequestReviewCommentResponseData = { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +}[]; +declare type ReactionsListForTeamDiscussionCommentInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + comment_number: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. + */ + content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsListForTeamDiscussionCommentInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReactionsListForTeamDiscussionCommentInOrgResponseData = { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +}[]; +declare type ReactionsListForTeamDiscussionCommentLegacyEndpoint = { + team_id: number; + discussion_number: number; + comment_number: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. + */ + content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsListForTeamDiscussionCommentLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReactionsListForTeamDiscussionCommentLegacyResponseData = { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +}[]; +declare type ReactionsListForTeamDiscussionInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. + */ + content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsListForTeamDiscussionInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReactionsListForTeamDiscussionInOrgResponseData = { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +}[]; +declare type ReactionsListForTeamDiscussionLegacyEndpoint = { + team_id: number; + discussion_number: number; + /** + * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. + */ + content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"squirrel-girl">; +declare type ReactionsListForTeamDiscussionLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/discussions/:discussion_number/reactions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReactionsListForTeamDiscussionLegacyResponseData = { + id: number; + node_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + content: string; + created_at: string; +}[]; +declare type ReposAcceptInvitationEndpoint = { + invitation_id: number; +}; +declare type ReposAcceptInvitationRequestOptions = { + method: "PATCH"; + url: "/user/repository_invitations/:invitation_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposAddAppAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * apps parameter + */ + apps: string[]; +}; +declare type ReposAddAppAccessRestrictionsRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposAddAppAccessRestrictionsResponseData = { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; +}[]; +declare type ReposAddCollaboratorEndpoint = { + owner: string; + repo: string; + username: string; + /** + * 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. + */ + permission?: "pull" | "push" | "admin" | "maintain" | "triage"; +}; +declare type ReposAddCollaboratorRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/collaborators/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposAddCollaboratorResponseData { + id: number; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + invitee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + inviter: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + permissions: string; + created_at: string; + url: string; + html_url: string; +} +declare type ReposAddStatusCheckContextsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * contexts parameter + */ + contexts: string[]; +}; +declare type ReposAddStatusCheckContextsRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposAddStatusCheckContextsResponseData = string[]; +declare type ReposAddTeamAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * teams parameter + */ + teams: string[]; +}; +declare type ReposAddTeamAccessRestrictionsRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposAddTeamAccessRestrictionsResponseData = { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; +}[]; +declare type ReposAddUserAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * users parameter + */ + users: string[]; +}; +declare type ReposAddUserAccessRestrictionsRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposAddUserAccessRestrictionsResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type ReposCheckCollaboratorEndpoint = { + owner: string; + repo: string; + username: string; +}; +declare type ReposCheckCollaboratorRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/collaborators/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposCheckVulnerabilityAlertsEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"dorian">; +declare type ReposCheckVulnerabilityAlertsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/vulnerability-alerts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposCompareCommitsEndpoint = { + owner: string; + repo: string; + base: string; + head: string; +}; +declare type ReposCompareCommitsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/compare/:base...:head"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCompareCommitsResponseData { + url: string; + html_url: string; + permalink_url: string; + diff_url: string; + patch_url: string; + base_commit: { + url: string; + sha: string; + node_id: string; + html_url: string; + comments_url: string; + commit: { + url: string; + author: { + name: string; + email: string; + date: string; + }; + committer: { + name: string; + email: string; + date: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + comment_count: number; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + committer: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parents: { + url: string; + sha: string; + }[]; + }; + merge_base_commit: { + url: string; + sha: string; + node_id: string; + html_url: string; + comments_url: string; + commit: { + url: string; + author: { + name: string; + email: string; + date: string; + }; + committer: { + name: string; + email: string; + date: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + comment_count: number; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + committer: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parents: { + url: string; + sha: string; + }[]; + }; + status: string; + ahead_by: number; + behind_by: number; + total_commits: number; + commits: { + url: string; + sha: string; + node_id: string; + html_url: string; + comments_url: string; + commit: { + url: string; + author: { + name: string; + email: string; + date: string; + }; + committer: { + name: string; + email: string; + date: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + comment_count: number; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + committer: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parents: { + url: string; + sha: string; + }[]; + }[]; + files: { + sha: string; + filename: string; + status: string; + additions: number; + deletions: number; + changes: number; + blob_url: string; + raw_url: string; + contents_url: string; + patch: string; + }[]; +} +declare type ReposCreateCommitCommentEndpoint = { + owner: string; + repo: string; + commit_sha: string; + /** + * The contents of the comment. + */ + body: string; + /** + * Relative path of the file to comment on. + */ + path?: string; + /** + * Line index in the diff to comment on. + */ + position?: number; + /** + * **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. + */ + line?: number | null; +}; +declare type ReposCreateCommitCommentRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/commits/:commit_sha/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateCommitCommentResponseData { + html_url: string; + url: string; + id: number; + node_id: string; + body: string; + path: string; + position: number; + line: number; + commit_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type ReposCreateCommitSignatureProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +} & RequiredPreview<"zzzax">; +declare type ReposCreateCommitSignatureProtectionRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateCommitSignatureProtectionResponseData { + url: string; + enabled: boolean; +} +declare type ReposCreateCommitStatusEndpoint = { + owner: string; + repo: string; + sha: string; + /** + * The state of the status. Can be one of `error`, `failure`, `pending`, or `success`. + */ + state: "error" | "failure" | "pending" | "success"; + /** + * 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` + */ + target_url?: string; + /** + * A short description of the status. + */ + description?: string; + /** + * A string label to differentiate this status from the status of other systems. + */ + context?: string; +}; +declare type ReposCreateCommitStatusRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/statuses/:sha"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateCommitStatusResponseData { + url: string; + avatar_url: string; + id: number; + node_id: string; + state: string; + description: string; + target_url: string; + context: string; + created_at: string; + updated_at: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type ReposCreateDeployKeyEndpoint = { + owner: string; + repo: string; + /** + * A name for the key. + */ + title?: string; + /** + * The contents of the key. + */ + key: string; + /** + * 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://docs.github.com/articles/repository-permission-levels-for-an-organization/)" and "[Permission levels for a user account repository](https://docs.github.com/articles/permission-levels-for-a-user-account-repository/)." + */ + read_only?: boolean; +}; +declare type ReposCreateDeployKeyRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/keys"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateDeployKeyResponseData { + id: number; + key: string; + url: string; + title: string; + verified: boolean; + created_at: string; + read_only: boolean; +} +declare type ReposCreateDeploymentEndpoint = { + owner: string; + repo: string; + /** + * The ref to deploy. This can be a branch, tag, or SHA. + */ + ref: string; + /** + * Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). + */ + task?: string; + /** + * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. + */ + auto_merge?: boolean; + /** + * The [status](https://developer.github.com/v3/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. + */ + required_contexts?: string[]; + /** + * JSON payload with extra information about the deployment. + */ + payload?: any; + /** + * Name for the target deployment environment (e.g., `production`, `staging`, `qa`). + */ + environment?: string; + /** + * Short description of the deployment. + */ + description?: string; + /** + * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + */ + transient_environment?: boolean; + /** + * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + */ + production_environment?: boolean; +}; +declare type ReposCreateDeploymentRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/deployments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateDeploymentResponseData { + url: string; + id: number; + node_id: string; + sha: string; + ref: string; + task: string; + payload: { + deploy: string; + }; + original_environment: string; + environment: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + statuses_url: string; + repository_url: string; + transient_environment: boolean; + production_environment: boolean; +} +export interface ReposCreateDeploymentResponse202Data { + message: string; +} +export interface ReposCreateDeploymentResponse409Data { + message: string; +} +declare type ReposCreateDeploymentStatusEndpoint = { + owner: string; + repo: string; + deployment_id: number; + /** + * 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://developer.github.com/v3/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://developer.github.com/v3/previews/#deployment-statuses) custom media type. When you set a transient deployment to `inactive`, the deployment will be shown as `destroyed` in GitHub. + */ + state: "error" | "failure" | "inactive" | "in_progress" | "queued" | "pending" | "success"; + /** + * 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`. + */ + target_url?: string; + /** + * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + */ + log_url?: string; + /** + * A short description of the status. The maximum description length is 140 characters. + */ + description?: string; + /** + * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. + */ + environment?: "production" | "staging" | "qa"; + /** + * Sets the URL for accessing your environment. Default: `""` + * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + */ + environment_url?: string; + /** + * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. + * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. + */ + auto_inactive?: boolean; +}; +declare type ReposCreateDeploymentStatusRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateDeploymentStatusResponseData { + url: string; + id: number; + node_id: string; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + description: string; + environment: string; + target_url: string; + created_at: string; + updated_at: string; + deployment_url: string; + repository_url: string; + environment_url: string; + log_url: string; +} +declare type ReposCreateDispatchEventEndpoint = { + owner: string; + repo: string; + /** + * **Required:** A custom webhook event name. + */ + event_type: string; + /** + * JSON payload with extra information about the webhook event that your action or worklow may use. + */ + client_payload?: ReposCreateDispatchEventParamsClientPayload; +}; +declare type ReposCreateDispatchEventRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/dispatches"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposCreateForAuthenticatedUserEndpoint = { + /** + * The name of the repository. + */ + name: string; + /** + * A short description of the repository. + */ + description?: string; + /** + * A URL with more information about the repository. + */ + homepage?: string; + /** + * Either `true` to create a private repository or `false` to create a public one. + */ + private?: boolean; + /** + * 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`. For more information, see "[Creating an internal repository](https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)". + * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. + */ + visibility?: "public" | "private" | "visibility" | "internal"; + /** + * Either `true` to enable issues for this repository or `false` to disable them. + */ + has_issues?: boolean; + /** + * 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_projects?: boolean; + /** + * Either `true` to enable the wiki for this repository or `false` to disable it. + */ + has_wiki?: boolean; + /** + * Either `true` to make this repo available as a template repository or `false` to prevent it. + */ + is_template?: boolean; + /** + * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. + */ + team_id?: number; + /** + * Pass `true` to create an initial commit with empty README. + */ + auto_init?: boolean; + /** + * 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". + */ + gitignore_template?: string; + /** + * Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0". + */ + license_template?: string; + /** + * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. + */ + allow_squash_merge?: boolean; + /** + * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. + */ + allow_merge_commit?: boolean; + /** + * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. + */ + allow_rebase_merge?: boolean; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; +}; +declare type ReposCreateForAuthenticatedUserRequestOptions = { + method: "POST"; + url: "/user/repos"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateForAuthenticatedUserResponseData { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; +} +declare type ReposCreateForkEndpoint = { + owner: string; + repo: string; + /** + * Optional parameter to specify the organization name if forking into an organization. + */ + organization?: string; +}; +declare type ReposCreateForkRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/forks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateForkResponseData { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; +} +declare type ReposCreateInOrgEndpoint = { + org: string; + /** + * The name of the repository. + */ + name: string; + /** + * A short description of the repository. + */ + description?: string; + /** + * A URL with more information about the repository. + */ + homepage?: string; + /** + * Either `true` to create a private repository or `false` to create a public one. + */ + private?: boolean; + /** + * 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`. For more information, see "[Creating an internal repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/about-repository-visibility#about-internal-repositories)". + * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. + */ + visibility?: "public" | "private" | "visibility" | "internal"; + /** + * Either `true` to enable issues for this repository or `false` to disable them. + */ + has_issues?: boolean; + /** + * 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_projects?: boolean; + /** + * Either `true` to enable the wiki for this repository or `false` to disable it. + */ + has_wiki?: boolean; + /** + * Either `true` to make this repo available as a template repository or `false` to prevent it. + */ + is_template?: boolean; + /** + * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. + */ + team_id?: number; + /** + * Pass `true` to create an initial commit with empty README. + */ + auto_init?: boolean; + /** + * 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". + */ + gitignore_template?: string; + /** + * Choose an [open source license template](https://choosealicense.com/) that best suits your needs, and then use the [license keyword](https://docs.github.com/articles/licensing-a-repository/#searching-github-by-license-type) as the `license_template` string. For example, "mit" or "mpl-2.0". + */ + license_template?: string; + /** + * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. + */ + allow_squash_merge?: boolean; + /** + * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. + */ + allow_merge_commit?: boolean; + /** + * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. + */ + allow_rebase_merge?: boolean; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; +}; +declare type ReposCreateInOrgRequestOptions = { + method: "POST"; + url: "/orgs/:org/repos"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateInOrgResponseData { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; +} +declare type ReposCreateOrUpdateFileContentsEndpoint = { + owner: string; + repo: string; + path: string; + /** + * The commit message. + */ + message: string; + /** + * The new file content, using Base64 encoding. + */ + content: string; + /** + * **Required if you are updating a file**. The blob SHA of the file being replaced. + */ + sha?: string; + /** + * The branch name. Default: the repository’s default branch (usually `master`) + */ + branch?: string; + /** + * The person that committed the file. Default: the authenticated user. + */ + committer?: ReposCreateOrUpdateFileContentsParamsCommitter; + /** + * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. + */ + author?: ReposCreateOrUpdateFileContentsParamsAuthor; +}; +declare type ReposCreateOrUpdateFileContentsRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/contents/:path"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateOrUpdateFileContentsResponseData { + content: { + name: string; + path: string; + sha: string; + size: number; + url: string; + html_url: string; + git_url: string; + download_url: string; + type: string; + _links: { + self: string; + git: string; + html: string; + }; + }; + commit: { + sha: string; + node_id: string; + url: string; + html_url: string; + author: { + date: string; + name: string; + email: string; + }; + committer: { + date: string; + name: string; + email: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + parents: { + url: string; + html_url: string; + sha: string; + }[]; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; +} +export interface ReposCreateOrUpdateFileContentsResponse201Data { + content: { + name: string; + path: string; + sha: string; + size: number; + url: string; + html_url: string; + git_url: string; + download_url: string; + type: string; + _links: { + self: string; + git: string; + html: string; + }; + }; + commit: { + sha: string; + node_id: string; + url: string; + html_url: string; + author: { + date: string; + name: string; + email: string; + }; + committer: { + date: string; + name: string; + email: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + parents: { + url: string; + html_url: string; + sha: string; + }[]; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; +} +declare type ReposCreatePagesSiteEndpoint = { + owner: string; + repo: string; + /** + * The source branch and directory used to publish your Pages site. + */ + source: ReposCreatePagesSiteParamsSource; +} & RequiredPreview<"switcheroo">; +declare type ReposCreatePagesSiteRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/pages"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreatePagesSiteResponseData { + url: string; + status: string; + cname: string; + custom_404: boolean; + html_url: string; + source: { + branch: string; + directory: string; + }; +} +declare type ReposCreateReleaseEndpoint = { + owner: string; + repo: string; + /** + * The name of the tag. + */ + tag_name: string; + /** + * 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`). + */ + target_commitish?: string; + /** + * The name of the release. + */ + name?: string; + /** + * Text describing the contents of the tag. + */ + body?: string; + /** + * `true` to create a draft (unpublished) release, `false` to create a published one. + */ + draft?: boolean; + /** + * `true` to identify the release as a prerelease. `false` to identify the release as a full release. + */ + prerelease?: boolean; +}; +declare type ReposCreateReleaseRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/releases"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateReleaseResponseData { + url: string; + html_url: string; + assets_url: string; + upload_url: string; + tarball_url: string; + zipball_url: string; + id: number; + node_id: string; + tag_name: string; + target_commitish: string; + name: string; + body: string; + draft: boolean; + prerelease: boolean; + created_at: string; + published_at: string; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assets: unknown[]; +} +declare type ReposCreateUsingTemplateEndpoint = { + template_owner: string; + template_repo: string; + /** + * 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. + */ + owner?: string; + /** + * The name of the new repository. + */ + name: string; + /** + * A short description of the new repository. + */ + description?: string; + /** + * Either `true` to create a new private repository or `false` to create a new public one. + */ + private?: boolean; +} & RequiredPreview<"baptiste">; +declare type ReposCreateUsingTemplateRequestOptions = { + method: "POST"; + url: "/repos/:template_owner/:template_repo/generate"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateUsingTemplateResponseData { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; +} +declare type ReposCreateWebhookEndpoint = { + owner: string; + repo: string; + /** + * Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. + */ + name?: string; + /** + * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). + */ + config: ReposCreateWebhookParamsConfig; + /** + * Determines what [events](https://developer.github.com/webhooks/event-payloads) the hook is triggered for. + */ + events?: string[]; + /** + * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + */ + active?: boolean; +}; +declare type ReposCreateWebhookRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/hooks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposCreateWebhookResponseData { + type: string; + id: number; + name: string; + active: boolean; + events: string[]; + config: { + content_type: string; + insecure_ssl: string; + url: string; + }; + updated_at: string; + created_at: string; + url: string; + test_url: string; + ping_url: string; + last_response: { + code: string; + status: string; + message: string; + }; +} +declare type ReposDeclineInvitationEndpoint = { + invitation_id: number; +}; +declare type ReposDeclineInvitationRequestOptions = { + method: "DELETE"; + url: "/user/repository_invitations/:invitation_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteEndpoint = { + owner: string; + repo: string; +}; +declare type ReposDeleteRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposDeleteResponseData { + message: string; + documentation_url: string; +} +declare type ReposDeleteAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposDeleteAccessRestrictionsRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteAdminBranchProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposDeleteAdminBranchProtectionRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteBranchProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposDeleteBranchProtectionRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/branches/:branch/protection"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteCommitCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; +}; +declare type ReposDeleteCommitCommentRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteCommitSignatureProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +} & RequiredPreview<"zzzax">; +declare type ReposDeleteCommitSignatureProtectionRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteDeployKeyEndpoint = { + owner: string; + repo: string; + key_id: number; +}; +declare type ReposDeleteDeployKeyRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/keys/:key_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteDeploymentEndpoint = { + owner: string; + repo: string; + deployment_id: number; +}; +declare type ReposDeleteDeploymentRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/deployments/:deployment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteFileEndpoint = { + owner: string; + repo: string; + path: string; + /** + * The commit message. + */ + message: string; + /** + * The blob SHA of the file being replaced. + */ + sha: string; + /** + * The branch name. Default: the repository’s default branch (usually `master`) + */ + branch?: string; + /** + * object containing information about the committer. + */ + committer?: ReposDeleteFileParamsCommitter; + /** + * object containing information about the author. + */ + author?: ReposDeleteFileParamsAuthor; +}; +declare type ReposDeleteFileRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/contents/:path"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposDeleteFileResponseData { + content: { + [k: string]: unknown; + }; + commit: { + sha: string; + node_id: string; + url: string; + html_url: string; + author: { + date: string; + name: string; + email: string; + }; + committer: { + date: string; + name: string; + email: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + parents: { + url: string; + html_url: string; + sha: string; + }[]; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; +} +declare type ReposDeleteInvitationEndpoint = { + owner: string; + repo: string; + invitation_id: number; +}; +declare type ReposDeleteInvitationRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/invitations/:invitation_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeletePagesSiteEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"switcheroo">; +declare type ReposDeletePagesSiteRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/pages"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeletePullRequestReviewProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposDeletePullRequestReviewProtectionRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteReleaseEndpoint = { + owner: string; + repo: string; + release_id: number; +}; +declare type ReposDeleteReleaseRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/releases/:release_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteReleaseAssetEndpoint = { + owner: string; + repo: string; + asset_id: number; +}; +declare type ReposDeleteReleaseAssetRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/releases/assets/:asset_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDeleteWebhookEndpoint = { + owner: string; + repo: string; + hook_id: number; +}; +declare type ReposDeleteWebhookRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/hooks/:hook_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDisableAutomatedSecurityFixesEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"london">; +declare type ReposDisableAutomatedSecurityFixesRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/automated-security-fixes"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDisableVulnerabilityAlertsEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"dorian">; +declare type ReposDisableVulnerabilityAlertsRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/vulnerability-alerts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposDownloadArchiveEndpoint = { + owner: string; + repo: string; + archive_format: string; + ref: string; +}; +declare type ReposDownloadArchiveRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/:archive_format/:ref"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposEnableAutomatedSecurityFixesEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"london">; +declare type ReposEnableAutomatedSecurityFixesRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/automated-security-fixes"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposEnableVulnerabilityAlertsEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"dorian">; +declare type ReposEnableVulnerabilityAlertsRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/vulnerability-alerts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposGetEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetResponseData { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + pull: boolean; + triage: boolean; + push: boolean; + maintain: boolean; + admin: boolean; + }; + allow_rebase_merge: boolean; + template_repository: string; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + license: { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + }; + organization: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parent: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + source: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + code_of_conduct: { + name: string; + key: string; + url: string; + html_url: string; + }; +} +declare type ReposGetAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposGetAccessRestrictionsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetAccessRestrictionsResponseData { + url: string; + users_url: string; + teams_url: string; + apps_url: string; + users: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + apps: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }[]; +} +declare type ReposGetAdminBranchProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposGetAdminBranchProtectionRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetAdminBranchProtectionResponseData { + url: string; + enabled: boolean; +} +declare type ReposGetAllStatusCheckContextsEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposGetAllStatusCheckContextsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposGetAllStatusCheckContextsResponseData = string[]; +declare type ReposGetAllTopicsEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"mercy">; +declare type ReposGetAllTopicsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/topics"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetAllTopicsResponseData { + names: string[]; +} +declare type ReposGetAppsWithAccessToProtectedBranchEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposGetAppsWithAccessToProtectedBranchRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposGetAppsWithAccessToProtectedBranchResponseData = { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; +}[]; +declare type ReposGetBranchEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposGetBranchRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetBranchResponseData { + name: string; + commit: { + sha: string; + node_id: string; + commit: { + author: { + name: string; + date: string; + email: string; + }; + url: string; + message: string; + tree: { + sha: string; + url: string; + }; + committer: { + name: string; + date: string; + email: string; + }; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; + author: { + gravatar_id: string; + avatar_url: string; + url: string; + id: number; + login: string; + }; + parents: { + sha: string; + url: string; + }[]; + url: string; + committer: { + gravatar_id: string; + avatar_url: string; + url: string; + id: number; + login: string; + }; + }; + _links: { + html: string; + self: string; + }; + protected: boolean; + protection: { + enabled: boolean; + required_status_checks: { + enforcement_level: string; + contexts: string[]; + }; + }; + protection_url: string; +} +declare type ReposGetBranchProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposGetBranchProtectionRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch/protection"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetBranchProtectionResponseData { + url: string; + required_status_checks: { + url: string; + strict: boolean; + contexts: string[]; + contexts_url: string; + }; + enforce_admins: { + url: string; + enabled: boolean; + }; + required_pull_request_reviews: { + url: string; + dismissal_restrictions: { + url: string; + users_url: string; + teams_url: string; + users: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + }; + dismiss_stale_reviews: boolean; + require_code_owner_reviews: boolean; + required_approving_review_count: number; + }; + restrictions: { + url: string; + users_url: string; + teams_url: string; + apps_url: string; + users: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + apps: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }[]; + }; + required_linear_history: { + enabled: boolean; + }; + allow_force_pushes: { + enabled: boolean; + }; + allow_deletions: { + enabled: boolean; + }; +} +declare type ReposGetClonesEndpoint = { + owner: string; + repo: string; + /** + * Must be one of: `day`, `week`. + */ + per?: "day" | "week"; +}; +declare type ReposGetClonesRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/traffic/clones"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetClonesResponseData { + count: number; + uniques: number; + clones: { + timestamp: string; + count: number; + uniques: number; + }[]; +} +declare type ReposGetCodeFrequencyStatsEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetCodeFrequencyStatsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/stats/code_frequency"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposGetCodeFrequencyStatsResponseData = number[][]; +declare type ReposGetCollaboratorPermissionLevelEndpoint = { + owner: string; + repo: string; + username: string; +}; +declare type ReposGetCollaboratorPermissionLevelRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/collaborators/:username/permission"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetCollaboratorPermissionLevelResponseData { + permission: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type ReposGetCombinedStatusForRefEndpoint = { + owner: string; + repo: string; + ref: string; +}; +declare type ReposGetCombinedStatusForRefRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/commits/:ref/status"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetCombinedStatusForRefResponseData { + state: string; + statuses: { + url: string; + avatar_url: string; + id: number; + node_id: string; + state: string; + description: string; + target_url: string; + context: string; + created_at: string; + updated_at: string; + }[]; + sha: string; + total_count: number; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + commit_url: string; + url: string; +} +declare type ReposGetCommitEndpoint = { + owner: string; + repo: string; + ref: string; +}; +declare type ReposGetCommitRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/commits/:ref"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetCommitResponseData { + url: string; + sha: string; + node_id: string; + html_url: string; + comments_url: string; + commit: { + url: string; + author: { + name: string; + email: string; + date: string; + }; + committer: { + name: string; + email: string; + date: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + comment_count: number; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + committer: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parents: { + url: string; + sha: string; + }[]; + stats: { + additions: number; + deletions: number; + total: number; + }; + files: { + filename: string; + additions: number; + deletions: number; + changes: number; + status: string; + raw_url: string; + blob_url: string; + patch: string; + }[]; +} +declare type ReposGetCommitActivityStatsEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetCommitActivityStatsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/stats/commit_activity"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposGetCommitActivityStatsResponseData = { + days: number[]; + total: number; + week: number; +}[]; +declare type ReposGetCommitCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; +}; +declare type ReposGetCommitCommentRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetCommitCommentResponseData { + html_url: string; + url: string; + id: number; + node_id: string; + body: string; + path: string; + position: number; + line: number; + commit_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type ReposGetCommitSignatureProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +} & RequiredPreview<"zzzax">; +declare type ReposGetCommitSignatureProtectionRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetCommitSignatureProtectionResponseData { + url: string; + enabled: boolean; +} +declare type ReposGetCommunityProfileMetricsEndpoint = { + owner: string; + repo: string; +} & RequiredPreview<"black-panther">; +declare type ReposGetCommunityProfileMetricsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/community/profile"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetCommunityProfileMetricsResponseData { + health_percentage: number; + description: string; + documentation: boolean; + files: { + code_of_conduct: { + name: string; + key: string; + url: string; + html_url: string; + }; + contributing: { + url: string; + html_url: string; + }; + issue_template: { + url: string; + html_url: string; + }; + pull_request_template: { + url: string; + html_url: string; + }; + license: { + name: string; + key: string; + spdx_id: string; + url: string; + html_url: string; + }; + readme: { + url: string; + html_url: string; + }; + }; + updated_at: string; +} +declare type ReposGetContentEndpoint = { + owner: string; + repo: string; + path: string; + /** + * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) + */ + ref?: string; +}; +declare type ReposGetContentRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/contents/:path"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetContentResponseData { + type: string; + encoding: string; + size: number; + name: string; + path: string; + content: string; + sha: string; + url: string; + git_url: string; + html_url: string; + download_url: string; + target: string; + submodule_git_url: string; + _links: { + git: string; + self: string; + html: string; + }; +} +declare type ReposGetContributorsStatsEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetContributorsStatsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/stats/contributors"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposGetContributorsStatsResponseData = { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + total: number; + weeks: { + w: string; + a: number; + d: number; + c: number; + }[]; +}[]; +declare type ReposGetDeployKeyEndpoint = { + owner: string; + repo: string; + key_id: number; +}; +declare type ReposGetDeployKeyRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/keys/:key_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetDeployKeyResponseData { + id: number; + key: string; + url: string; + title: string; + verified: boolean; + created_at: string; + read_only: boolean; +} +declare type ReposGetDeploymentEndpoint = { + owner: string; + repo: string; + deployment_id: number; +}; +declare type ReposGetDeploymentRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/deployments/:deployment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetDeploymentResponseData { + url: string; + id: number; + node_id: string; + sha: string; + ref: string; + task: string; + payload: { + deploy: string; + }; + original_environment: string; + environment: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + statuses_url: string; + repository_url: string; + transient_environment: boolean; + production_environment: boolean; +} +declare type ReposGetDeploymentStatusEndpoint = { + owner: string; + repo: string; + deployment_id: number; + status_id: number; +}; +declare type ReposGetDeploymentStatusRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetDeploymentStatusResponseData { + url: string; + id: number; + node_id: string; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + description: string; + environment: string; + target_url: string; + created_at: string; + updated_at: string; + deployment_url: string; + repository_url: string; + environment_url: string; + log_url: string; +} +declare type ReposGetLatestPagesBuildEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetLatestPagesBuildRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pages/builds/latest"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetLatestPagesBuildResponseData { + url: string; + status: string; + error: { + message: string; + }; + pusher: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + commit: string; + duration: number; + created_at: string; + updated_at: string; +} +declare type ReposGetLatestReleaseEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetLatestReleaseRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/releases/latest"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetLatestReleaseResponseData { + url: string; + html_url: string; + assets_url: string; + upload_url: string; + tarball_url: string; + zipball_url: string; + id: number; + node_id: string; + tag_name: string; + target_commitish: string; + name: string; + body: string; + draft: boolean; + prerelease: boolean; + created_at: string; + published_at: string; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assets: { + url: string; + browser_download_url: string; + id: number; + node_id: string; + name: string; + label: string; + state: string; + content_type: string; + size: number; + download_count: number; + created_at: string; + updated_at: string; + uploader: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + }[]; +} +declare type ReposGetPagesEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetPagesRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pages"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetPagesResponseData { + url: string; + status: string; + cname: string; + custom_404: boolean; + html_url: string; + source: { + branch: string; + directory: string; + }; +} +declare type ReposGetPagesBuildEndpoint = { + owner: string; + repo: string; + build_id: number; +}; +declare type ReposGetPagesBuildRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pages/builds/:build_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetPagesBuildResponseData { + url: string; + status: string; + error: { + message: string; + }; + pusher: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + commit: string; + duration: number; + created_at: string; + updated_at: string; +} +declare type ReposGetParticipationStatsEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetParticipationStatsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/stats/participation"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetParticipationStatsResponseData { + all: number[]; + owner: number[]; +} +declare type ReposGetPullRequestReviewProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposGetPullRequestReviewProtectionRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetPullRequestReviewProtectionResponseData { + url: string; + dismissal_restrictions: { + url: string; + users_url: string; + teams_url: string; + users: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + }; + dismiss_stale_reviews: boolean; + require_code_owner_reviews: boolean; + required_approving_review_count: number; +} +declare type ReposGetPunchCardStatsEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetPunchCardStatsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/stats/punch_card"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposGetPunchCardStatsResponseData = number[][]; +declare type ReposGetReadmeEndpoint = { + owner: string; + repo: string; + /** + * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) + */ + ref?: string; +}; +declare type ReposGetReadmeRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/readme"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetReadmeResponseData { + type: string; + encoding: string; + size: number; + name: string; + path: string; + content: string; + sha: string; + url: string; + git_url: string; + html_url: string; + download_url: string; + target: string; + submodule_git_url: string; + _links: { + git: string; + self: string; + html: string; + }; +} +declare type ReposGetReleaseEndpoint = { + owner: string; + repo: string; + release_id: number; +}; +declare type ReposGetReleaseRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/releases/:release_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetReleaseResponseData { + url: string; + html_url: string; + assets_url: string; + upload_url: string; + tarball_url: string; + zipball_url: string; + id: number; + node_id: string; + tag_name: string; + target_commitish: string; + name: string; + body: string; + draft: boolean; + prerelease: boolean; + created_at: string; + published_at: string; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assets: { + url: string; + browser_download_url: string; + id: number; + node_id: string; + name: string; + label: string; + state: string; + content_type: string; + size: number; + download_count: number; + created_at: string; + updated_at: string; + uploader: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + }[]; +} +declare type ReposGetReleaseAssetEndpoint = { + owner: string; + repo: string; + asset_id: number; +}; +declare type ReposGetReleaseAssetRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/releases/assets/:asset_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetReleaseAssetResponseData { + url: string; + browser_download_url: string; + id: number; + node_id: string; + name: string; + label: string; + state: string; + content_type: string; + size: number; + download_count: number; + created_at: string; + updated_at: string; + uploader: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type ReposGetReleaseByTagEndpoint = { + owner: string; + repo: string; + tag: string; +}; +declare type ReposGetReleaseByTagRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/releases/tags/:tag"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetReleaseByTagResponseData { + url: string; + html_url: string; + assets_url: string; + upload_url: string; + tarball_url: string; + zipball_url: string; + id: number; + node_id: string; + tag_name: string; + target_commitish: string; + name: string; + body: string; + draft: boolean; + prerelease: boolean; + created_at: string; + published_at: string; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assets: { + url: string; + browser_download_url: string; + id: number; + node_id: string; + name: string; + label: string; + state: string; + content_type: string; + size: number; + download_count: number; + created_at: string; + updated_at: string; + uploader: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + }[]; +} +declare type ReposGetStatusChecksProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposGetStatusChecksProtectionRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetStatusChecksProtectionResponseData { + url: string; + strict: boolean; + contexts: string[]; + contexts_url: string; +} +declare type ReposGetTeamsWithAccessToProtectedBranchEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposGetTeamsWithAccessToProtectedBranchRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposGetTeamsWithAccessToProtectedBranchResponseData = { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; +}[]; +declare type ReposGetTopPathsEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetTopPathsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/traffic/popular/paths"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposGetTopPathsResponseData = { + path: string; + title: string; + count: number; + uniques: number; +}[]; +declare type ReposGetTopReferrersEndpoint = { + owner: string; + repo: string; +}; +declare type ReposGetTopReferrersRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/traffic/popular/referrers"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposGetTopReferrersResponseData = { + referrer: string; + count: number; + uniques: number; +}[]; +declare type ReposGetUsersWithAccessToProtectedBranchEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposGetUsersWithAccessToProtectedBranchRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposGetUsersWithAccessToProtectedBranchResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type ReposGetViewsEndpoint = { + owner: string; + repo: string; + /** + * Must be one of: `day`, `week`. + */ + per?: "day" | "week"; +}; +declare type ReposGetViewsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/traffic/views"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetViewsResponseData { + count: number; + uniques: number; + views: { + timestamp: string; + count: number; + uniques: number; + }[]; +} +declare type ReposGetWebhookEndpoint = { + owner: string; + repo: string; + hook_id: number; +}; +declare type ReposGetWebhookRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/hooks/:hook_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposGetWebhookResponseData { + type: string; + id: number; + name: string; + active: boolean; + events: string[]; + config: { + content_type: string; + insecure_ssl: string; + url: string; + }; + updated_at: string; + created_at: string; + url: string; + test_url: string; + ping_url: string; + last_response: { + code: string; + status: string; + message: string; + }; +} +declare type ReposListBranchesEndpoint = { + owner: string; + repo: string; + /** + * Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. + */ + protected?: boolean; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListBranchesRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/branches"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListBranchesResponseData = { + name: string; + commit: { + sha: string; + url: string; + }; + protected: boolean; + protection: { + enabled: boolean; + required_status_checks: { + enforcement_level: string; + contexts: string[]; + }; + }; + protection_url: string; +}[]; +declare type ReposListBranchesForHeadCommitEndpoint = { + owner: string; + repo: string; + commit_sha: string; +} & RequiredPreview<"groot">; +declare type ReposListBranchesForHeadCommitRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListBranchesForHeadCommitResponseData = { + name: string; + commit: { + sha: string; + url: string; + }; + protected: boolean; +}[]; +declare type ReposListCollaboratorsEndpoint = { + owner: string; + repo: string; + /** + * 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. + */ + affiliation?: "outside" | "direct" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListCollaboratorsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/collaborators"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListCollaboratorsResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + permissions: { + pull: boolean; + push: boolean; + admin: boolean; + }; +}[]; +declare type ReposListCommentsForCommitEndpoint = { + owner: string; + repo: string; + commit_sha: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListCommentsForCommitRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/commits/:commit_sha/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListCommentsForCommitResponseData = { + html_url: string; + url: string; + id: number; + node_id: string; + body: string; + path: string; + position: number; + line: number; + commit_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +}[]; +declare type ReposListCommitCommentsForRepoEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListCommitCommentsForRepoRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListCommitCommentsForRepoResponseData = { + html_url: string; + url: string; + id: number; + node_id: string; + body: string; + path: string; + position: number; + line: number; + commit_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +}[]; +declare type ReposListCommitStatusesForRefEndpoint = { + owner: string; + repo: string; + ref: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListCommitStatusesForRefRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/commits/:ref/statuses"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListCommitStatusesForRefResponseData = { + url: string; + avatar_url: string; + id: number; + node_id: string; + state: string; + description: string; + target_url: string; + context: string; + created_at: string; + updated_at: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +}[]; +declare type ReposListCommitsEndpoint = { + owner: string; + repo: string; + /** + * SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`). + */ + sha?: string; + /** + * Only commits containing this file path will be returned. + */ + path?: string; + /** + * GitHub login or email address by which to filter by commit author. + */ + author?: string; + /** + * Only commits after 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`. + */ + since?: string; + /** + * 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`. + */ + until?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListCommitsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/commits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListCommitsResponseData = { + url: string; + sha: string; + node_id: string; + html_url: string; + comments_url: string; + commit: { + url: string; + author: { + name: string; + email: string; + date: string; + }; + committer: { + name: string; + email: string; + date: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + comment_count: number; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + committer: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parents: { + url: string; + sha: string; + }[]; +}[]; +declare type ReposListContributorsEndpoint = { + owner: string; + repo: string; + /** + * Set to `1` or `true` to include anonymous contributors in results. + */ + anon?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListContributorsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/contributors"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListContributorsResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + contributions: number; +}[]; +declare type ReposListDeployKeysEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListDeployKeysRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/keys"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListDeployKeysResponseData = { + id: number; + key: string; + url: string; + title: string; + verified: boolean; + created_at: string; + read_only: boolean; +}[]; +declare type ReposListDeploymentStatusesEndpoint = { + owner: string; + repo: string; + deployment_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListDeploymentStatusesRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListDeploymentStatusesResponseData = { + url: string; + id: number; + node_id: string; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + description: string; + environment: string; + target_url: string; + created_at: string; + updated_at: string; + deployment_url: string; + repository_url: string; + environment_url: string; + log_url: string; +}[]; +declare type ReposListDeploymentsEndpoint = { + owner: string; + repo: string; + /** + * The SHA recorded at creation time. + */ + sha?: string; + /** + * The name of the ref. This can be a branch, tag, or SHA. + */ + ref?: string; + /** + * The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). + */ + task?: string; + /** + * The name of the environment that was deployed to (e.g., `staging` or `production`). + */ + environment?: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListDeploymentsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/deployments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListDeploymentsResponseData = { + url: string; + id: number; + node_id: string; + sha: string; + ref: string; + task: string; + payload: { + deploy: string; + }; + original_environment: string; + environment: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + statuses_url: string; + repository_url: string; + transient_environment: boolean; + production_environment: boolean; +}[]; +declare type ReposListForAuthenticatedUserEndpoint = { + /** + * Can be one of `all`, `public`, or `private`. + */ + visibility?: "all" | "public" | "private"; + /** + * 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. + */ + affiliation?: string; + /** + * Can be one of `all`, `owner`, `public`, `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**. + */ + type?: "all" | "owner" | "public" | "private" | "member"; + /** + * Can be one of `created`, `updated`, `pushed`, `full_name`. + */ + sort?: "created" | "updated" | "pushed" | "full_name"; + /** + * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/repos"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposListForOrgEndpoint = { + org: string; + /** + * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `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`. + */ + type?: "all" | "public" | "private" | "forks" | "sources" | "member" | "internal"; + /** + * Can be one of `created`, `updated`, `pushed`, `full_name`. + */ + sort?: "created" | "updated" | "pushed" | "full_name"; + /** + * Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc` + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/repos"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListForOrgResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + delete_branch_on_merge: boolean; + subscribers_count: number; + network_count: number; + license: { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + }; +}[]; +declare type ReposListForUserEndpoint = { + username: string; + /** + * Can be one of `all`, `owner`, `member`. + */ + type?: "all" | "owner" | "member"; + /** + * Can be one of `created`, `updated`, `pushed`, `full_name`. + */ + sort?: "created" | "updated" | "pushed" | "full_name"; + /** + * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListForUserRequestOptions = { + method: "GET"; + url: "/users/:username/repos"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposListForksEndpoint = { + owner: string; + repo: string; + /** + * The sort order. Can be either `newest`, `oldest`, or `stargazers`. + */ + sort?: "newest" | "oldest" | "stargazers"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListForksRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/forks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListForksResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + delete_branch_on_merge: boolean; + subscribers_count: number; + network_count: number; + license: { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + }; +}[]; +declare type ReposListInvitationsEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListInvitationsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/invitations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListInvitationsResponseData = { + id: number; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + invitee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + inviter: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + permissions: string; + created_at: string; + url: string; + html_url: string; +}[]; +declare type ReposListInvitationsForAuthenticatedUserEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListInvitationsForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/repository_invitations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListInvitationsForAuthenticatedUserResponseData = { + id: number; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + invitee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + inviter: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + permissions: string; + created_at: string; + url: string; + html_url: string; +}[]; +declare type ReposListLanguagesEndpoint = { + owner: string; + repo: string; +}; +declare type ReposListLanguagesRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/languages"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposListLanguagesResponseData { + C: number; + Python: number; +} +declare type ReposListPagesBuildsEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListPagesBuildsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/pages/builds"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListPagesBuildsResponseData = { + url: string; + status: string; + error: { + message: string; + }; + pusher: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + commit: string; + duration: number; + created_at: string; + updated_at: string; +}[]; +declare type ReposListPublicEndpoint = { + /** + * The integer ID of the last repository that you've seen. + */ + since?: number; +}; +declare type ReposListPublicRequestOptions = { + method: "GET"; + url: "/repositories"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListPublicResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; +}[]; +declare type ReposListPullRequestsAssociatedWithCommitEndpoint = { + owner: string; + repo: string; + commit_sha: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"groot">; +declare type ReposListPullRequestsAssociatedWithCommitRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/commits/:commit_sha/pulls"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListPullRequestsAssociatedWithCommitResponseData = { + url: string; + id: number; + node_id: string; + html_url: string; + diff_url: string; + patch_url: string; + issue_url: string; + commits_url: string; + review_comments_url: string; + review_comment_url: string; + comments_url: string; + statuses_url: string; + number: number; + state: string; + locked: boolean; + title: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + labels: { + id: number; + node_id: string; + url: string; + name: string; + description: string; + color: string; + default: boolean; + }[]; + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + number: number; + state: string; + title: string; + description: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string; + due_on: string; + }; + active_lock_reason: string; + created_at: string; + updated_at: string; + closed_at: string; + merged_at: string; + merge_commit_sha: string; + assignee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assignees: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_reviewers: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + requested_teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + head: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + base: { + label: string; + ref: string; + sha: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + repo: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + }; + _links: { + self: { + href: string; + }; + html: { + href: string; + }; + issue: { + href: string; + }; + comments: { + href: string; + }; + review_comments: { + href: string; + }; + review_comment: { + href: string; + }; + commits: { + href: string; + }; + statuses: { + href: string; + }; + }; + author_association: string; + draft: boolean; +}[]; +declare type ReposListReleaseAssetsEndpoint = { + owner: string; + repo: string; + release_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListReleaseAssetsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/releases/:release_id/assets"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListReleaseAssetsResponseData = { + url: string; + browser_download_url: string; + id: number; + node_id: string; + name: string; + label: string; + state: string; + content_type: string; + size: number; + download_count: number; + created_at: string; + updated_at: string; + uploader: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +}[]; +declare type ReposListReleasesEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListReleasesRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/releases"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListReleasesResponseData = { + url: string; + html_url: string; + assets_url: string; + upload_url: string; + tarball_url: string; + zipball_url: string; + id: number; + node_id: string; + tag_name: string; + target_commitish: string; + name: string; + body: string; + draft: boolean; + prerelease: boolean; + created_at: string; + published_at: string; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assets: { + url: string; + browser_download_url: string; + id: number; + node_id: string; + name: string; + label: string; + state: string; + content_type: string; + size: number; + download_count: number; + created_at: string; + updated_at: string; + uploader: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + }[]; +}[]; +declare type ReposListTagsEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListTagsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/tags"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListTagsResponseData = { + name: string; + commit: { + sha: string; + url: string; + }; + zipball_url: string; + tarball_url: string; +}[]; +declare type ReposListTeamsEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListTeamsRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListTeamsResponseData = { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; +}[]; +declare type ReposListWebhooksEndpoint = { + owner: string; + repo: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type ReposListWebhooksRequestOptions = { + method: "GET"; + url: "/repos/:owner/:repo/hooks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposListWebhooksResponseData = { + type: string; + id: number; + name: string; + active: boolean; + events: string[]; + config: { + content_type: string; + insecure_ssl: string; + url: string; + }; + updated_at: string; + created_at: string; + url: string; + test_url: string; + ping_url: string; + last_response: { + code: string; + status: string; + message: string; + }; +}[]; +declare type ReposMergeEndpoint = { + owner: string; + repo: string; + /** + * The name of the base branch that the head will be merged into. + */ + base: string; + /** + * The head to merge. This can be a branch name or a commit SHA1. + */ + head: string; + /** + * Commit message to use for the merge commit. If omitted, a default message will be used. + */ + commit_message?: string; +}; +declare type ReposMergeRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/merges"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposMergeResponseData { + sha: string; + node_id: string; + commit: { + author: { + name: string; + date: string; + email: string; + }; + committer: { + name: string; + date: string; + email: string; + }; + message: string; + tree: { + sha: string; + url: string; + }; + url: string; + comment_count: number; + verification: { + verified: boolean; + reason: string; + signature: string; + payload: string; + }; + }; + url: string; + html_url: string; + comments_url: string; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + committer: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parents: { + sha: string; + url: string; + }[]; +} +export interface ReposMergeResponse404Data { + message: string; +} +export interface ReposMergeResponse409Data { + message: string; +} +declare type ReposPingWebhookEndpoint = { + owner: string; + repo: string; + hook_id: number; +}; +declare type ReposPingWebhookRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/hooks/:hook_id/pings"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposRemoveAppAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * apps parameter + */ + apps: string[]; +}; +declare type ReposRemoveAppAccessRestrictionsRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposRemoveAppAccessRestrictionsResponseData = { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; +}[]; +declare type ReposRemoveCollaboratorEndpoint = { + owner: string; + repo: string; + username: string; +}; +declare type ReposRemoveCollaboratorRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/collaborators/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposRemoveStatusCheckContextsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * contexts parameter + */ + contexts: string[]; +}; +declare type ReposRemoveStatusCheckContextsRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposRemoveStatusCheckContextsResponseData = string[]; +declare type ReposRemoveStatusCheckProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposRemoveStatusCheckProtectionRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposRemoveTeamAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * teams parameter + */ + teams: string[]; +}; +declare type ReposRemoveTeamAccessRestrictionsRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposRemoveTeamAccessRestrictionsResponseData = { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; +}[]; +declare type ReposRemoveUserAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * users parameter + */ + users: string[]; +}; +declare type ReposRemoveUserAccessRestrictionsRequestOptions = { + method: "DELETE"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposRemoveUserAccessRestrictionsResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type ReposReplaceAllTopicsEndpoint = { + owner: string; + repo: string; + /** + * 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. + */ + names: string[]; +} & RequiredPreview<"mercy">; +declare type ReposReplaceAllTopicsRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/topics"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposReplaceAllTopicsResponseData { + names: string[]; +} +declare type ReposRequestPagesBuildEndpoint = { + owner: string; + repo: string; +}; +declare type ReposRequestPagesBuildRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/pages/builds"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposRequestPagesBuildResponseData { + url: string; + status: string; +} +declare type ReposSetAdminBranchProtectionEndpoint = { + owner: string; + repo: string; + branch: string; +}; +declare type ReposSetAdminBranchProtectionRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposSetAdminBranchProtectionResponseData { + url: string; + enabled: boolean; +} +declare type ReposSetAppAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * apps parameter + */ + apps: string[]; +}; +declare type ReposSetAppAccessRestrictionsRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposSetAppAccessRestrictionsResponseData = { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; +}[]; +declare type ReposSetStatusCheckContextsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * contexts parameter + */ + contexts: string[]; +}; +declare type ReposSetStatusCheckContextsRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposSetStatusCheckContextsResponseData = string[]; +declare type ReposSetTeamAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * teams parameter + */ + teams: string[]; +}; +declare type ReposSetTeamAccessRestrictionsRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposSetTeamAccessRestrictionsResponseData = { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; +}[]; +declare type ReposSetUserAccessRestrictionsEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * users parameter + */ + users: string[]; +}; +declare type ReposSetUserAccessRestrictionsRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type ReposSetUserAccessRestrictionsResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type ReposTestPushWebhookEndpoint = { + owner: string; + repo: string; + hook_id: number; +}; +declare type ReposTestPushWebhookRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/hooks/:hook_id/tests"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposTransferEndpoint = { + owner: string; + repo: string; + /** + * **Required:** The username or organization name the repository will be transferred to. + */ + new_owner?: string; + /** + * ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. + */ + team_ids?: number[]; +}; +declare type ReposTransferRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/transfer"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposTransferResponseData { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; +} +declare type ReposUpdateEndpoint = { + owner: string; + repo: string; + /** + * The name of the repository. + */ + name?: string; + /** + * A short description of the repository. + */ + description?: string; + /** + * A URL with more information about the repository. + */ + homepage?: string; + /** + * 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://docs.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://docs.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. + */ + private?: boolean; + /** + * 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. + */ + visibility?: "public" | "private" | "visibility" | "internal"; + /** + * Either `true` to enable issues for this repository or `false` to disable them. + */ + has_issues?: boolean; + /** + * 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_projects?: boolean; + /** + * Either `true` to enable the wiki for this repository or `false` to disable it. + */ + has_wiki?: boolean; + /** + * Either `true` to make this repo available as a template repository or `false` to prevent it. + */ + is_template?: boolean; + /** + * Updates the default branch for this repository. + */ + default_branch?: string; + /** + * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. + */ + allow_squash_merge?: boolean; + /** + * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. + */ + allow_merge_commit?: boolean; + /** + * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. + */ + allow_rebase_merge?: boolean; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; + /** + * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API. + */ + archived?: boolean; +}; +declare type ReposUpdateRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposUpdateResponseData { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + pull: boolean; + triage: boolean; + push: boolean; + maintain: boolean; + admin: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + organization: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parent: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + source: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; +} +declare type ReposUpdateBranchProtectionEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * Require status checks to pass before merging. Set to `null` to disable. + */ + required_status_checks: ReposUpdateBranchProtectionParamsRequiredStatusChecks | null; + /** + * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. + */ + enforce_admins: boolean | null; + /** + * Require at least one approving review on a pull request, before merging. Set to `null` to disable. + */ + required_pull_request_reviews: ReposUpdateBranchProtectionParamsRequiredPullRequestReviews | null; + /** + * 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. + */ + restrictions: ReposUpdateBranchProtectionParamsRestrictions | null; + /** + * 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://docs.github.com/github/administering-a-repository/requiring-a-linear-commit-history)". + */ + required_linear_history?: boolean; + /** + * 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://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)". + */ + allow_force_pushes?: boolean | null; + /** + * 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://docs.github.com/en/github/administering-a-repository/enabling-force-pushes-to-a-protected-branch)". + */ + allow_deletions?: boolean; +}; +declare type ReposUpdateBranchProtectionRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/branches/:branch/protection"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposUpdateBranchProtectionResponseData { + url: string; + required_status_checks: { + url: string; + strict: boolean; + contexts: string[]; + contexts_url: string; + }; + enforce_admins: { + url: string; + enabled: boolean; + }; + required_pull_request_reviews: { + url: string; + dismissal_restrictions: { + url: string; + users_url: string; + teams_url: string; + users: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + }; + dismiss_stale_reviews: boolean; + require_code_owner_reviews: boolean; + required_approving_review_count: number; + }; + restrictions: { + url: string; + users_url: string; + teams_url: string; + apps_url: string; + users: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + apps: { + id: number; + slug: string; + node_id: string; + owner: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + }; + name: string; + description: string; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + permissions: { + metadata: string; + contents: string; + issues: string; + single_file: string; + }; + events: string[]; + }[]; + }; + required_linear_history: { + enabled: boolean; + }; + allow_force_pushes: { + enabled: boolean; + }; + allow_deletions: { + enabled: boolean; + }; +} +declare type ReposUpdateCommitCommentEndpoint = { + owner: string; + repo: string; + comment_id: number; + /** + * The contents of the comment + */ + body: string; +}; +declare type ReposUpdateCommitCommentRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/comments/:comment_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposUpdateCommitCommentResponseData { + html_url: string; + url: string; + id: number; + node_id: string; + body: string; + path: string; + position: number; + line: number; + commit_id: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; +} +declare type ReposUpdateInformationAboutPagesSiteEndpoint = { + owner: string; + repo: string; + /** + * Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://docs.github.com/articles/using-a-custom-domain-with-github-pages/)." + */ + cname?: string; + /** + * Update the source for the repository. Must include the branch name and path. + */ + source: ReposUpdateInformationAboutPagesSiteParamsSource; +}; +declare type ReposUpdateInformationAboutPagesSiteRequestOptions = { + method: "PUT"; + url: "/repos/:owner/:repo/pages"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ReposUpdateInvitationEndpoint = { + owner: string; + repo: string; + invitation_id: number; + /** + * The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`. + */ + permissions?: "read" | "write" | "maintain" | "triage" | "admin"; +}; +declare type ReposUpdateInvitationRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/invitations/:invitation_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposUpdateInvitationResponseData { + id: number; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + }; + invitee: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + inviter: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + permissions: string; + created_at: string; + url: string; + html_url: string; +} +declare type ReposUpdatePullRequestReviewProtectionEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * 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. + */ + dismissal_restrictions?: ReposUpdatePullRequestReviewProtectionParamsDismissalRestrictions; + /** + * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. + */ + dismiss_stale_reviews?: boolean; + /** + * Blocks merging pull requests until [code owners](https://docs.github.com/articles/about-code-owners/) have reviewed. + */ + require_code_owner_reviews?: boolean; + /** + * Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6. + */ + required_approving_review_count?: number; +}; +declare type ReposUpdatePullRequestReviewProtectionRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposUpdatePullRequestReviewProtectionResponseData { + url: string; + dismissal_restrictions: { + url: string; + users_url: string; + teams_url: string; + users: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }[]; + teams: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + }[]; + }; + dismiss_stale_reviews: boolean; + require_code_owner_reviews: boolean; + required_approving_review_count: number; +} +declare type ReposUpdateReleaseEndpoint = { + owner: string; + repo: string; + release_id: number; + /** + * The name of the tag. + */ + tag_name?: string; + /** + * 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`). + */ + target_commitish?: string; + /** + * The name of the release. + */ + name?: string; + /** + * Text describing the contents of the tag. + */ + body?: string; + /** + * `true` makes the release a draft, and `false` publishes the release. + */ + draft?: boolean; + /** + * `true` to identify the release as a prerelease, `false` to identify the release as a full release. + */ + prerelease?: boolean; +}; +declare type ReposUpdateReleaseRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/releases/:release_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposUpdateReleaseResponseData { + url: string; + html_url: string; + assets_url: string; + upload_url: string; + tarball_url: string; + zipball_url: string; + id: number; + node_id: string; + tag_name: string; + target_commitish: string; + name: string; + body: string; + draft: boolean; + prerelease: boolean; + created_at: string; + published_at: string; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + assets: { + url: string; + browser_download_url: string; + id: number; + node_id: string; + name: string; + label: string; + state: string; + content_type: string; + size: number; + download_count: number; + created_at: string; + updated_at: string; + uploader: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + }[]; +} +declare type ReposUpdateReleaseAssetEndpoint = { + owner: string; + repo: string; + asset_id: number; + /** + * The file name of the asset. + */ + name?: string; + /** + * An alternate short description of the asset. Used in place of the filename. + */ + label?: string; +}; +declare type ReposUpdateReleaseAssetRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/releases/assets/:asset_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposUpdateReleaseAssetResponseData { + url: string; + browser_download_url: string; + id: number; + node_id: string; + name: string; + label: string; + state: string; + content_type: string; + size: number; + download_count: number; + created_at: string; + updated_at: string; + uploader: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type ReposUpdateStatusCheckPotectionEndpoint = { + owner: string; + repo: string; + branch: string; + /** + * Require branches to be up to date before merging. + */ + strict?: boolean; + /** + * The list of status checks to require in order to merge into this branch + */ + contexts?: string[]; +}; +declare type ReposUpdateStatusCheckPotectionRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposUpdateStatusCheckPotectionResponseData { + url: string; + strict: boolean; + contexts: string[]; + contexts_url: string; +} +declare type ReposUpdateWebhookEndpoint = { + owner: string; + repo: string; + hook_id: number; + /** + * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). + */ + config?: ReposUpdateWebhookParamsConfig; + /** + * Determines what [events](https://developer.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events. + */ + events?: string[]; + /** + * Determines a list of events to be added to the list of events that the Hook triggers for. + */ + add_events?: string[]; + /** + * Determines a list of events to be removed from the list of events that the Hook triggers for. + */ + remove_events?: string[]; + /** + * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + */ + active?: boolean; +}; +declare type ReposUpdateWebhookRequestOptions = { + method: "PATCH"; + url: "/repos/:owner/:repo/hooks/:hook_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposUpdateWebhookResponseData { + type: string; + id: number; + name: string; + active: boolean; + events: string[]; + config: { + content_type: string; + insecure_ssl: string; + url: string; + }; + updated_at: string; + created_at: string; + url: string; + test_url: string; + ping_url: string; + last_response: { + code: string; + status: string; + message: string; + }; +} +declare type ReposUploadReleaseAssetEndpoint = { + /** + * owner parameter + */ + owner: string; + /** + * repo parameter + */ + repo: string; + /** + * release_id parameter + */ + release_id: number; + /** + * name parameter + */ + name?: string; + /** + * label parameter + */ + label?: string; + /** + * The raw file data + */ + data: string | Buffer; + /** + * The URL origin (protocol + host name + port) is included in `upload_url` returned in the response of the "Create a release" endpoint + */ + origin?: string; + /** + * For https://api.github.com, set `baseUrl` to `https://uploads.github.com`. For GitHub Enterprise Server, set it to `/api/uploads` + */ + baseUrl: string; +} & { + headers: { + "content-type": string; + }; +}; +declare type ReposUploadReleaseAssetRequestOptions = { + method: "POST"; + url: "/repos/:owner/:repo/releases/:release_id/assets{?name,label}"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ReposUploadReleaseAssetResponseData { + url: string; + browser_download_url: string; + id: number; + node_id: string; + name: string; + label: string; + state: string; + content_type: string; + size: number; + download_count: number; + created_at: string; + updated_at: string; + uploader: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; +} +declare type ScimDeleteUserFromOrgEndpoint = { + org: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_user_id: string; +}; +declare type ScimDeleteUserFromOrgRequestOptions = { + method: "DELETE"; + url: "/scim/v2/organizations/:org/Users/:scim_user_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type ScimGetProvisioningInformationForUserEndpoint = { + org: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_user_id: string; +}; +declare type ScimGetProvisioningInformationForUserRequestOptions = { + method: "GET"; + url: "/scim/v2/organizations/:org/Users/:scim_user_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ScimGetProvisioningInformationForUserResponseData { + schemas: string[]; + id: string; + externalId: string; + userName: string; + name: { + givenName: string; + familyName: string; + }; + emails: { + value: string; + type: string; + primary: boolean; + }[]; + active: boolean; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type ScimListProvisionedIdentitiesEndpoint = { + org: string; + /** + * Used for pagination: the index of the first result to return. + */ + startIndex?: number; + /** + * Used for pagination: the number of results to return. + */ + count?: number; + /** + * Filters results using the equals query parameter operator (`eq`). You can filter results that are equal to `id`, `userName`, `emails`, and `external_id`. For example, to search for an identity with the `userName` Octocat, you would use this query: + * + * `?filter=userName%20eq%20\"Octocat\"`. + * + * To filter results for for the identity with the email `octocat@github.com`, you would use this query: + * + * `?filter=emails%20eq%20\"octocat@github.com\"`. + */ + filter?: string; +}; +declare type ScimListProvisionedIdentitiesRequestOptions = { + method: "GET"; + url: "/scim/v2/organizations/:org/Users"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ScimListProvisionedIdentitiesResponseData { + schemas: string[]; + totalResults: number; + itemsPerPage: number; + startIndex: number; + Resources: { + schemas: string[]; + id: string; + externalId: string; + userName: string; + name: { + givenName: string; + familyName: string; + }; + emails: { + value: string; + primary: boolean; + type: string; + }[]; + active: boolean; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; + }[]; +} +declare type ScimProvisionAndInviteUserEndpoint = { + org: string; + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * The username for the user. + */ + userName: string; + name: ScimProvisionAndInviteUserParamsName; + /** + * List of user emails. + */ + emails: ScimProvisionAndInviteUserParamsEmails[]; +}; +declare type ScimProvisionAndInviteUserRequestOptions = { + method: "POST"; + url: "/scim/v2/organizations/:org/Users"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ScimProvisionAndInviteUserResponseData { + schemas: string[]; + id: string; + externalId: string; + userName: string; + name: { + givenName: string; + familyName: string; + }; + emails: { + value: string; + type: string; + primary: boolean; + }[]; + active: boolean; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type ScimSetInformationForProvisionedUserEndpoint = { + org: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_user_id: string; + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * The username for the user. + */ + userName: string; + name: ScimSetInformationForProvisionedUserParamsName; + /** + * List of user emails. + */ + emails: ScimSetInformationForProvisionedUserParamsEmails[]; +}; +declare type ScimSetInformationForProvisionedUserRequestOptions = { + method: "PUT"; + url: "/scim/v2/organizations/:org/Users/:scim_user_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ScimSetInformationForProvisionedUserResponseData { + schemas: string[]; + id: string; + externalId: string; + userName: string; + name: { + givenName: string; + familyName: string; + }; + emails: { + value: string; + type: string; + primary: boolean; + }[]; + active: boolean; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type ScimUpdateAttributeForUserEndpoint = { + org: string; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_user_id: string; + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * Array of [SCIM operations](https://tools.ietf.org/html/rfc7644#section-3.5.2). + */ + Operations: ScimUpdateAttributeForUserParamsOperations[]; +}; +declare type ScimUpdateAttributeForUserRequestOptions = { + method: "PATCH"; + url: "/scim/v2/organizations/:org/Users/:scim_user_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface ScimUpdateAttributeForUserResponseData { + schemas: string[]; + id: string; + externalId: string; + userName: string; + name: { + givenName: string; + familyName: string; + }; + emails: { + value: string; + type: string; + primary: boolean; + }[]; + active: boolean; + meta: { + resourceType: string; + created: string; + lastModified: string; + location: string; + }; +} +declare type SearchCodeEndpoint = { + /** + * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching code](https://docs.github.com/articles/searching-code/)" for a detailed list of qualifiers. + */ + q: string; + /** + * Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + */ + sort?: "indexed"; + /** + * 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`. + */ + order?: "desc" | "asc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type SearchCodeRequestOptions = { + method: "GET"; + url: "/search/code"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface SearchCodeResponseData { + total_count: number; + incomplete_results: boolean; + items: { + name: string; + path: string; + sha: string; + url: string; + git_url: string; + html_url: string; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + forks_url: string; + keys_url: string; + collaborators_url: string; + teams_url: string; + hooks_url: string; + issue_events_url: string; + events_url: string; + assignees_url: string; + branches_url: string; + tags_url: string; + blobs_url: string; + git_tags_url: string; + git_refs_url: string; + trees_url: string; + statuses_url: string; + languages_url: string; + stargazers_url: string; + contributors_url: string; + subscribers_url: string; + subscription_url: string; + commits_url: string; + git_commits_url: string; + comments_url: string; + issue_comment_url: string; + contents_url: string; + compare_url: string; + merges_url: string; + archive_url: string; + downloads_url: string; + issues_url: string; + pulls_url: string; + milestones_url: string; + notifications_url: string; + labels_url: string; + }; + score: number; + }[]; +} +declare type SearchCommitsEndpoint = { + /** + * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching commits](https://docs.github.com/articles/searching-commits/)" for a detailed list of qualifiers. + */ + q: string; + /** + * Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + */ + sort?: "author-date" | "committer-date"; + /** + * 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`. + */ + order?: "desc" | "asc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"cloak">; +declare type SearchCommitsRequestOptions = { + method: "GET"; + url: "/search/commits"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface SearchCommitsResponseData { + total_count: number; + incomplete_results: boolean; + items: { + url: string; + sha: string; + html_url: string; + comments_url: string; + commit: { + url: string; + author: { + date: string; + name: string; + email: string; + }; + committer: { + date: string; + name: string; + email: string; + }; + message: string; + tree: { + url: string; + sha: string; + }; + comment_count: number; + }; + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + committer: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parents: { + url: string; + html_url: string; + sha: string; + }[]; + repository: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + forks_url: string; + keys_url: string; + collaborators_url: string; + teams_url: string; + hooks_url: string; + issue_events_url: string; + events_url: string; + assignees_url: string; + branches_url: string; + tags_url: string; + blobs_url: string; + git_tags_url: string; + git_refs_url: string; + trees_url: string; + statuses_url: string; + languages_url: string; + stargazers_url: string; + contributors_url: string; + subscribers_url: string; + subscription_url: string; + commits_url: string; + git_commits_url: string; + comments_url: string; + issue_comment_url: string; + contents_url: string; + compare_url: string; + merges_url: string; + archive_url: string; + downloads_url: string; + issues_url: string; + pulls_url: string; + milestones_url: string; + notifications_url: string; + labels_url: string; + releases_url: string; + deployments_url: string; + }; + score: number; + }[]; +} +declare type SearchIssuesAndPullRequestsEndpoint = { + /** + * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching issues and pull requests](https://docs.github.com/articles/searching-issues-and-pull-requests/)" for a detailed list of qualifiers. + */ + q: string; + /** + * 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://developer.github.com/v3/search/#ranking-search-results) + */ + sort?: "comments" | "reactions" | "reactions-+1" | "reactions--1" | "reactions-smile" | "reactions-thinking_face" | "reactions-heart" | "reactions-tada" | "interactions" | "created" | "updated"; + /** + * 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`. + */ + order?: "desc" | "asc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type SearchIssuesAndPullRequestsRequestOptions = { + method: "GET"; + url: "/search/issues"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface SearchIssuesAndPullRequestsResponseData { + total_count: number; + incomplete_results: boolean; + items: { + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + id: number; + node_id: string; + number: number; + title: string; + user: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + }; + labels: { + id: number; + node_id: string; + url: string; + name: string; + color: string; + }[]; + state: string; + assignee: string; + milestone: string; + comments: number; + created_at: string; + updated_at: string; + closed_at: string; + pull_request: { + html_url: string; + diff_url: string; + patch_url: string; + }; + body: string; + score: number; + }[]; +} +declare type SearchLabelsEndpoint = { + /** + * The id of the repository. + */ + repository_id: number; + /** + * 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://developer.github.com/v3/search/#constructing-a-search-query). + */ + q: string; + /** + * Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + */ + sort?: "created" | "updated"; + /** + * 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`. + */ + order?: "desc" | "asc"; +}; +declare type SearchLabelsRequestOptions = { + method: "GET"; + url: "/search/labels"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface SearchLabelsResponseData { + total_count: number; + incomplete_results: boolean; + items: { + id: number; + node_id: string; + url: string; + name: string; + color: string; + default: boolean; + description: string; + score: number; + }[]; +} +declare type SearchReposEndpoint = { + /** + * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching for repositories](https://docs.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. + */ + q: string; + /** + * 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://developer.github.com/v3/search/#ranking-search-results) + */ + sort?: "stars" | "forks" | "help-wanted-issues" | "updated"; + /** + * 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`. + */ + order?: "desc" | "asc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type SearchReposRequestOptions = { + method: "GET"; + url: "/search/repositories"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface SearchReposResponseData { + total_count: number; + incomplete_results: boolean; + items: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + received_events_url: string; + type: string; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + created_at: string; + updated_at: string; + pushed_at: string; + homepage: string; + size: number; + stargazers_count: number; + watchers_count: number; + language: string; + forks_count: number; + open_issues_count: number; + master_branch: string; + default_branch: string; + score: number; + }[]; +} +declare type SearchTopicsEndpoint = { + /** + * 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://developer.github.com/v3/search/#constructing-a-search-query). + */ + q: string; +} & RequiredPreview<"mercy">; +declare type SearchTopicsRequestOptions = { + method: "GET"; + url: "/search/topics"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface SearchTopicsResponseData { + total_count: number; + incomplete_results: boolean; + items: { + name: string; + display_name: string; + short_description: string; + description: string; + created_by: string; + released: string; + created_at: string; + updated_at: string; + featured: boolean; + curated: boolean; + score: number; + }[]; +} +declare type SearchUsersEndpoint = { + /** + * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching users](https://docs.github.com/articles/searching-users/)" for a detailed list of qualifiers. + */ + q: string; + /** + * Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) + */ + sort?: "followers" | "repositories" | "joined"; + /** + * 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`. + */ + order?: "desc" | "asc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type SearchUsersRequestOptions = { + method: "GET"; + url: "/search/users"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface SearchUsersResponseData { + total_count: number; + incomplete_results: boolean; + items: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + received_events_url: string; + type: string; + score: number; + }[]; +} +declare type TeamsAddMemberLegacyEndpoint = { + team_id: number; + username: string; +}; +declare type TeamsAddMemberLegacyRequestOptions = { + method: "PUT"; + url: "/teams/:team_id/members/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsAddMemberLegacyResponseData { + message: string; + errors: { + code: string; + field: string; + resource: string; + }[]; +} +declare type TeamsAddOrUpdateMembershipForUserInOrgEndpoint = { + org: string; + team_slug: string; + username: string; + /** + * 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. + */ + role?: "member" | "maintainer"; +}; +declare type TeamsAddOrUpdateMembershipForUserInOrgRequestOptions = { + method: "PUT"; + url: "/orgs/:org/teams/:team_slug/memberships/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsAddOrUpdateMembershipForUserInOrgResponseData { + url: string; + role: string; + state: string; +} +export interface TeamsAddOrUpdateMembershipForUserInOrgResponse422Data { + message: string; + errors: { + code: string; + field: string; + resource: string; + }[]; +} +declare type TeamsAddOrUpdateMembershipForUserLegacyEndpoint = { + team_id: number; + username: string; + /** + * 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. + */ + role?: "member" | "maintainer"; +}; +declare type TeamsAddOrUpdateMembershipForUserLegacyRequestOptions = { + method: "PUT"; + url: "/teams/:team_id/memberships/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsAddOrUpdateMembershipForUserLegacyResponseData { + url: string; + role: string; + state: string; +} +export interface TeamsAddOrUpdateMembershipForUserLegacyResponse422Data { + message: string; + errors: { + code: string; + field: string; + resource: string; + }[]; +} +declare type TeamsAddOrUpdateProjectPermissionsInOrgEndpoint = { + org: string; + team_slug: string; + project_id: number; + /** + * 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://developer.github.com/v3/#http-verbs)." + */ + permission?: "read" | "write" | "admin"; +} & RequiredPreview<"inertia">; +declare type TeamsAddOrUpdateProjectPermissionsInOrgRequestOptions = { + method: "PUT"; + url: "/orgs/:org/teams/:team_slug/projects/:project_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsAddOrUpdateProjectPermissionsInOrgResponseData { + message: string; + documentation_url: string; +} +declare type TeamsAddOrUpdateProjectPermissionsLegacyEndpoint = { + team_id: number; + project_id: number; + /** + * 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://developer.github.com/v3/#http-verbs)." + */ + permission?: "read" | "write" | "admin"; +} & RequiredPreview<"inertia">; +declare type TeamsAddOrUpdateProjectPermissionsLegacyRequestOptions = { + method: "PUT"; + url: "/teams/:team_id/projects/:project_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsAddOrUpdateProjectPermissionsLegacyResponseData { + message: string; + documentation_url: string; +} +declare type TeamsAddOrUpdateRepoPermissionsInOrgEndpoint = { + org: string; + team_slug: string; + owner: string; + repo: string; + /** + * 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. + * \* `maintain` - team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations. + * \* `triage` - team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations. + * + * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. + */ + permission?: "pull" | "push" | "admin" | "maintain" | "triage"; +}; +declare type TeamsAddOrUpdateRepoPermissionsInOrgRequestOptions = { + method: "PUT"; + url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsAddOrUpdateRepoPermissionsLegacyEndpoint = { + team_id: number; + owner: string; + repo: string; + /** + * 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. + */ + permission?: "pull" | "push" | "admin"; +}; +declare type TeamsAddOrUpdateRepoPermissionsLegacyRequestOptions = { + method: "PUT"; + url: "/teams/:team_id/repos/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsCheckPermissionsForProjectInOrgEndpoint = { + org: string; + team_slug: string; + project_id: number; +} & RequiredPreview<"inertia">; +declare type TeamsCheckPermissionsForProjectInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/projects/:project_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCheckPermissionsForProjectInOrgResponseData { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + organization_permission: string; + private: boolean; + permissions: { + read: boolean; + write: boolean; + admin: boolean; + }; +} +declare type TeamsCheckPermissionsForProjectLegacyEndpoint = { + team_id: number; + project_id: number; +} & RequiredPreview<"inertia">; +declare type TeamsCheckPermissionsForProjectLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/projects/:project_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCheckPermissionsForProjectLegacyResponseData { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + organization_permission: string; + private: boolean; + permissions: { + read: boolean; + write: boolean; + admin: boolean; + }; +} +declare type TeamsCheckPermissionsForRepoInOrgEndpoint = { + org: string; + team_slug: string; + owner: string; + repo: string; +}; +declare type TeamsCheckPermissionsForRepoInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCheckPermissionsForRepoInOrgResponseData { + organization: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parent: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + source: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + permissions: { + pull: boolean; + triage: boolean; + push: boolean; + maintain: boolean; + admin: boolean; + }; +} +declare type TeamsCheckPermissionsForRepoLegacyEndpoint = { + team_id: number; + owner: string; + repo: string; +}; +declare type TeamsCheckPermissionsForRepoLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/repos/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCheckPermissionsForRepoLegacyResponseData { + organization: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + parent: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + source: { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + allow_rebase_merge: boolean; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + allow_squash_merge: boolean; + delete_branch_on_merge: boolean; + allow_merge_commit: boolean; + subscribers_count: number; + network_count: number; + }; + permissions: { + pull: boolean; + triage: boolean; + push: boolean; + maintain: boolean; + admin: boolean; + }; +} +declare type TeamsCreateEndpoint = { + org: string; + /** + * The name of the team. + */ + name: string; + /** + * The description of the team. + */ + description?: string; + /** + * List GitHub IDs for organization members who will become team maintainers. + */ + maintainers?: string[]; + /** + * The full name (e.g., "organization-name/repository-name") of repositories to add the team to. + */ + repo_names?: string[]; + /** + * 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` + */ + privacy?: "secret" | "closed"; + /** + * **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. + */ + permission?: "pull" | "push" | "admin"; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; +}; +declare type TeamsCreateRequestOptions = { + method: "POST"; + url: "/orgs/:org/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCreateResponseData { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + members_count: number; + repos_count: number; + created_at: string; + updated_at: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + name: string; + company: string; + blog: string; + location: string; + email: string; + twitter_username: string; + is_verified: boolean; + has_organization_projects: boolean; + has_repository_projects: boolean; + public_repos: number; + public_gists: number; + followers: number; + following: number; + html_url: string; + created_at: string; + type: string; + }; +} +declare type TeamsCreateDiscussionCommentInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + /** + * The discussion comment's body text. + */ + body: string; +}; +declare type TeamsCreateDiscussionCommentInOrgRequestOptions = { + method: "POST"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCreateDiscussionCommentInOrgResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + created_at: string; + last_edited_at: string; + discussion_url: string; + html_url: string; + node_id: string; + number: number; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsCreateDiscussionCommentLegacyEndpoint = { + team_id: number; + discussion_number: number; + /** + * The discussion comment's body text. + */ + body: string; +}; +declare type TeamsCreateDiscussionCommentLegacyRequestOptions = { + method: "POST"; + url: "/teams/:team_id/discussions/:discussion_number/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCreateDiscussionCommentLegacyResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + created_at: string; + last_edited_at: string; + discussion_url: string; + html_url: string; + node_id: string; + number: number; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsCreateDiscussionInOrgEndpoint = { + org: string; + team_slug: string; + /** + * The discussion post's title. + */ + title: string; + /** + * The discussion post's body text. + */ + body: string; + /** + * 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. + */ + private?: boolean; +}; +declare type TeamsCreateDiscussionInOrgRequestOptions = { + method: "POST"; + url: "/orgs/:org/teams/:team_slug/discussions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCreateDiscussionInOrgResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + last_edited_at: string; + html_url: string; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + team_url: string; + title: string; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsCreateDiscussionLegacyEndpoint = { + team_id: number; + /** + * The discussion post's title. + */ + title: string; + /** + * The discussion post's body text. + */ + body: string; + /** + * 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. + */ + private?: boolean; +}; +declare type TeamsCreateDiscussionLegacyRequestOptions = { + method: "POST"; + url: "/teams/:team_id/discussions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCreateDiscussionLegacyResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + last_edited_at: string; + html_url: string; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + team_url: string; + title: string; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgEndpoint = { + org: string; + team_slug: string; + /** + * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. + */ + groups: TeamsCreateOrUpdateIdPGroupConnectionsInOrgParamsGroups[]; +}; +declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgRequestOptions = { + method: "PATCH"; + url: "/orgs/:org/teams/:team_slug/team-sync/group-mappings"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCreateOrUpdateIdPGroupConnectionsInOrgResponseData { + groups: { + group_id: string; + group_name: string; + group_description: string; + }; +} +declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyEndpoint = { + team_id: number; + /** + * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. + */ + groups: TeamsCreateOrUpdateIdPGroupConnectionsLegacyParamsGroups[]; +}; +declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyRequestOptions = { + method: "PATCH"; + url: "/teams/:team_id/team-sync/group-mappings"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsCreateOrUpdateIdPGroupConnectionsLegacyResponseData { + groups: { + group_id: string; + group_name: string; + group_description: string; + }[]; +} +declare type TeamsDeleteDiscussionCommentInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + comment_number: number; +}; +declare type TeamsDeleteDiscussionCommentInOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsDeleteDiscussionCommentLegacyEndpoint = { + team_id: number; + discussion_number: number; + comment_number: number; +}; +declare type TeamsDeleteDiscussionCommentLegacyRequestOptions = { + method: "DELETE"; + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsDeleteDiscussionInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; +}; +declare type TeamsDeleteDiscussionInOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsDeleteDiscussionLegacyEndpoint = { + team_id: number; + discussion_number: number; +}; +declare type TeamsDeleteDiscussionLegacyRequestOptions = { + method: "DELETE"; + url: "/teams/:team_id/discussions/:discussion_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsDeleteInOrgEndpoint = { + org: string; + team_slug: string; +}; +declare type TeamsDeleteInOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/teams/:team_slug"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsDeleteLegacyEndpoint = { + team_id: number; +}; +declare type TeamsDeleteLegacyRequestOptions = { + method: "DELETE"; + url: "/teams/:team_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsGetByNameEndpoint = { + org: string; + team_slug: string; +}; +declare type TeamsGetByNameRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsGetByNameResponseData { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + members_count: number; + repos_count: number; + created_at: string; + updated_at: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + name: string; + company: string; + blog: string; + location: string; + email: string; + twitter_username: string; + is_verified: boolean; + has_organization_projects: boolean; + has_repository_projects: boolean; + public_repos: number; + public_gists: number; + followers: number; + following: number; + html_url: string; + created_at: string; + type: string; + }; +} +declare type TeamsGetDiscussionCommentInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + comment_number: number; +}; +declare type TeamsGetDiscussionCommentInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsGetDiscussionCommentInOrgResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + created_at: string; + last_edited_at: string; + discussion_url: string; + html_url: string; + node_id: string; + number: number; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsGetDiscussionCommentLegacyEndpoint = { + team_id: number; + discussion_number: number; + comment_number: number; +}; +declare type TeamsGetDiscussionCommentLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsGetDiscussionCommentLegacyResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + created_at: string; + last_edited_at: string; + discussion_url: string; + html_url: string; + node_id: string; + number: number; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsGetDiscussionInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; +}; +declare type TeamsGetDiscussionInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsGetDiscussionInOrgResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + last_edited_at: string; + html_url: string; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + team_url: string; + title: string; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsGetDiscussionLegacyEndpoint = { + team_id: number; + discussion_number: number; +}; +declare type TeamsGetDiscussionLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/discussions/:discussion_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsGetDiscussionLegacyResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + last_edited_at: string; + html_url: string; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + team_url: string; + title: string; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsGetLegacyEndpoint = { + team_id: number; +}; +declare type TeamsGetLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsGetLegacyResponseData { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + members_count: number; + repos_count: number; + created_at: string; + updated_at: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + name: string; + company: string; + blog: string; + location: string; + email: string; + twitter_username: string; + is_verified: boolean; + has_organization_projects: boolean; + has_repository_projects: boolean; + public_repos: number; + public_gists: number; + followers: number; + following: number; + html_url: string; + created_at: string; + type: string; + }; +} +declare type TeamsGetMemberLegacyEndpoint = { + team_id: number; + username: string; +}; +declare type TeamsGetMemberLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/members/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsGetMembershipForUserInOrgEndpoint = { + org: string; + team_slug: string; + username: string; +}; +declare type TeamsGetMembershipForUserInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/memberships/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsGetMembershipForUserInOrgResponseData { + url: string; + role: string; + state: string; +} +declare type TeamsGetMembershipForUserLegacyEndpoint = { + team_id: number; + username: string; +}; +declare type TeamsGetMembershipForUserLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/memberships/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsGetMembershipForUserLegacyResponseData { + url: string; + role: string; + state: string; +} +declare type TeamsListEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListResponseData = { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; +}[]; +declare type TeamsListChildInOrgEndpoint = { + org: string; + team_slug: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListChildInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListChildInOrgResponseData = { + id: number; + node_id: string; + url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + }; +}[]; +declare type TeamsListChildLegacyEndpoint = { + team_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListChildLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListChildLegacyResponseData = { + id: number; + node_id: string; + url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + }; +}[]; +declare type TeamsListDiscussionCommentsInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + /** + * 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`. + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListDiscussionCommentsInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListDiscussionCommentsInOrgResponseData = { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + created_at: string; + last_edited_at: string; + discussion_url: string; + html_url: string; + node_id: string; + number: number; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +}[]; +declare type TeamsListDiscussionCommentsLegacyEndpoint = { + team_id: number; + discussion_number: number; + /** + * 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`. + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListDiscussionCommentsLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/discussions/:discussion_number/comments"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListDiscussionCommentsLegacyResponseData = { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + created_at: string; + last_edited_at: string; + discussion_url: string; + html_url: string; + node_id: string; + number: number; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +}[]; +declare type TeamsListDiscussionsInOrgEndpoint = { + org: string; + team_slug: string; + /** + * 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`. + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListDiscussionsInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/discussions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListDiscussionsInOrgResponseData = { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + last_edited_at: string; + html_url: string; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + team_url: string; + title: string; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +}[]; +declare type TeamsListDiscussionsLegacyEndpoint = { + team_id: number; + /** + * 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`. + */ + direction?: "asc" | "desc"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListDiscussionsLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/discussions"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListDiscussionsLegacyResponseData = { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + last_edited_at: string; + html_url: string; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + team_url: string; + title: string; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +}[]; +declare type TeamsListForAuthenticatedUserEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/teams"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListForAuthenticatedUserResponseData = { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + members_count: number; + repos_count: number; + created_at: string; + updated_at: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + name: string; + company: string; + blog: string; + location: string; + email: string; + twitter_username: string; + is_verified: boolean; + has_organization_projects: boolean; + has_repository_projects: boolean; + public_repos: number; + public_gists: number; + followers: number; + following: number; + html_url: string; + created_at: string; + type: string; + }; +}[]; +declare type TeamsListIdPGroupsForLegacyEndpoint = { + team_id: number; +}; +declare type TeamsListIdPGroupsForLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/team-sync/group-mappings"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsListIdPGroupsForLegacyResponseData { + groups: { + group_id: string; + group_name: string; + group_description: string; + }[]; +} +declare type TeamsListIdPGroupsForOrgEndpoint = { + org: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListIdPGroupsForOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/team-sync/groups"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsListIdPGroupsForOrgResponseData { + groups: { + group_id: string; + group_name: string; + group_description: string; + }[]; +} +declare type TeamsListIdPGroupsInOrgEndpoint = { + org: string; + team_slug: string; +}; +declare type TeamsListIdPGroupsInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/team-sync/group-mappings"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsListIdPGroupsInOrgResponseData { + groups: { + group_id: string; + group_name: string; + group_description: string; + }[]; +} +declare type TeamsListMembersInOrgEndpoint = { + org: string; + team_slug: string; + /** + * 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. + */ + role?: "member" | "maintainer" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListMembersInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/members"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListMembersInOrgResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type TeamsListMembersLegacyEndpoint = { + team_id: number; + /** + * 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. + */ + role?: "member" | "maintainer" | "all"; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListMembersLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/members"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListMembersLegacyResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type TeamsListPendingInvitationsInOrgEndpoint = { + org: string; + team_slug: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListPendingInvitationsInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/invitations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListPendingInvitationsInOrgResponseData = { + id: number; + login: string; + email: string; + role: string; + created_at: string; + inviter: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + team_count: number; + invitation_team_url: string; +}[]; +declare type TeamsListPendingInvitationsLegacyEndpoint = { + team_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListPendingInvitationsLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/invitations"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListPendingInvitationsLegacyResponseData = { + id: number; + login: string; + email: string; + role: string; + created_at: string; + inviter: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + team_count: number; + invitation_team_url: string; +}[]; +declare type TeamsListProjectsInOrgEndpoint = { + org: string; + team_slug: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"inertia">; +declare type TeamsListProjectsInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/projects"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListProjectsInOrgResponseData = { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + organization_permission: string; + private: boolean; + permissions: { + read: boolean; + write: boolean; + admin: boolean; + }; +}[]; +declare type TeamsListProjectsLegacyEndpoint = { + team_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +} & RequiredPreview<"inertia">; +declare type TeamsListProjectsLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/projects"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListProjectsLegacyResponseData = { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + name: string; + body: string; + number: number; + state: string; + creator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + created_at: string; + updated_at: string; + organization_permission: string; + private: boolean; + permissions: { + read: boolean; + write: boolean; + admin: boolean; + }; +}[]; +declare type TeamsListReposInOrgEndpoint = { + org: string; + team_slug: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListReposInOrgRequestOptions = { + method: "GET"; + url: "/orgs/:org/teams/:team_slug/repos"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListReposInOrgResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + delete_branch_on_merge: boolean; + subscribers_count: number; + network_count: number; + license: { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + }; +}[]; +declare type TeamsListReposLegacyEndpoint = { + team_id: number; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type TeamsListReposLegacyRequestOptions = { + method: "GET"; + url: "/teams/:team_id/repos"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type TeamsListReposLegacyResponseData = { + id: number; + node_id: string; + name: string; + full_name: string; + owner: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + private: boolean; + html_url: string; + description: string; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string; + hooks_url: string; + svn_url: string; + homepage: string; + language: string; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template: boolean; + topics: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + disabled: boolean; + visibility: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions: { + admin: boolean; + push: boolean; + pull: boolean; + }; + template_repository: { + [k: string]: unknown; + }; + temp_clone_token: string; + delete_branch_on_merge: boolean; + subscribers_count: number; + network_count: number; + license: { + key: string; + name: string; + spdx_id: string; + url: string; + node_id: string; + }; +}[]; +declare type TeamsRemoveMemberLegacyEndpoint = { + team_id: number; + username: string; +}; +declare type TeamsRemoveMemberLegacyRequestOptions = { + method: "DELETE"; + url: "/teams/:team_id/members/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsRemoveMembershipForUserInOrgEndpoint = { + org: string; + team_slug: string; + username: string; +}; +declare type TeamsRemoveMembershipForUserInOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/teams/:team_slug/memberships/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsRemoveMembershipForUserLegacyEndpoint = { + team_id: number; + username: string; +}; +declare type TeamsRemoveMembershipForUserLegacyRequestOptions = { + method: "DELETE"; + url: "/teams/:team_id/memberships/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsRemoveProjectInOrgEndpoint = { + org: string; + team_slug: string; + project_id: number; +}; +declare type TeamsRemoveProjectInOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/teams/:team_slug/projects/:project_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsRemoveProjectLegacyEndpoint = { + team_id: number; + project_id: number; +}; +declare type TeamsRemoveProjectLegacyRequestOptions = { + method: "DELETE"; + url: "/teams/:team_id/projects/:project_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsRemoveRepoInOrgEndpoint = { + org: string; + team_slug: string; + owner: string; + repo: string; +}; +declare type TeamsRemoveRepoInOrgRequestOptions = { + method: "DELETE"; + url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsRemoveRepoLegacyEndpoint = { + team_id: number; + owner: string; + repo: string; +}; +declare type TeamsRemoveRepoLegacyRequestOptions = { + method: "DELETE"; + url: "/teams/:team_id/repos/:owner/:repo"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type TeamsUpdateDiscussionCommentInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + comment_number: number; + /** + * The discussion comment's body text. + */ + body: string; +}; +declare type TeamsUpdateDiscussionCommentInOrgRequestOptions = { + method: "PATCH"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsUpdateDiscussionCommentInOrgResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + created_at: string; + last_edited_at: string; + discussion_url: string; + html_url: string; + node_id: string; + number: number; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsUpdateDiscussionCommentLegacyEndpoint = { + team_id: number; + discussion_number: number; + comment_number: number; + /** + * The discussion comment's body text. + */ + body: string; +}; +declare type TeamsUpdateDiscussionCommentLegacyRequestOptions = { + method: "PATCH"; + url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsUpdateDiscussionCommentLegacyResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + created_at: string; + last_edited_at: string; + discussion_url: string; + html_url: string; + node_id: string; + number: number; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsUpdateDiscussionInOrgEndpoint = { + org: string; + team_slug: string; + discussion_number: number; + /** + * The discussion post's title. + */ + title?: string; + /** + * The discussion post's body text. + */ + body?: string; +}; +declare type TeamsUpdateDiscussionInOrgRequestOptions = { + method: "PATCH"; + url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsUpdateDiscussionInOrgResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + last_edited_at: string; + html_url: string; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + team_url: string; + title: string; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsUpdateDiscussionLegacyEndpoint = { + team_id: number; + discussion_number: number; + /** + * The discussion post's title. + */ + title?: string; + /** + * The discussion post's body text. + */ + body?: string; +}; +declare type TeamsUpdateDiscussionLegacyRequestOptions = { + method: "PATCH"; + url: "/teams/:team_id/discussions/:discussion_number"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsUpdateDiscussionLegacyResponseData { + author: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + }; + body: string; + body_html: string; + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + last_edited_at: string; + html_url: string; + node_id: string; + number: number; + pinned: boolean; + private: boolean; + team_url: string; + title: string; + updated_at: string; + url: string; + reactions: { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + }; +} +declare type TeamsUpdateInOrgEndpoint = { + org: string; + team_slug: string; + /** + * The name of the team. + */ + name: string; + /** + * The description of the team. + */ + description?: string; + /** + * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. 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. + */ + privacy?: "secret" | "closed"; + /** + * **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. + */ + permission?: "pull" | "push" | "admin"; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; +}; +declare type TeamsUpdateInOrgRequestOptions = { + method: "PATCH"; + url: "/orgs/:org/teams/:team_slug"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsUpdateInOrgResponseData { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + members_count: number; + repos_count: number; + created_at: string; + updated_at: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + name: string; + company: string; + blog: string; + location: string; + email: string; + twitter_username: string; + is_verified: boolean; + has_organization_projects: boolean; + has_repository_projects: boolean; + public_repos: number; + public_gists: number; + followers: number; + following: number; + html_url: string; + created_at: string; + type: string; + }; +} +declare type TeamsUpdateLegacyEndpoint = { + team_id: number; + /** + * The name of the team. + */ + name: string; + /** + * The description of the team. + */ + description?: string; + /** + * 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. + */ + privacy?: "secret" | "closed"; + /** + * **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. + */ + permission?: "pull" | "push" | "admin"; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; +}; +declare type TeamsUpdateLegacyRequestOptions = { + method: "PATCH"; + url: "/teams/:team_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface TeamsUpdateLegacyResponseData { + id: number; + node_id: string; + url: string; + html_url: string; + name: string; + slug: string; + description: string; + privacy: string; + permission: string; + members_url: string; + repositories_url: string; + parent: { + [k: string]: unknown; + }; + members_count: number; + repos_count: number; + created_at: string; + updated_at: string; + organization: { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string; + name: string; + company: string; + blog: string; + location: string; + email: string; + twitter_username: string; + is_verified: boolean; + has_organization_projects: boolean; + has_repository_projects: boolean; + public_repos: number; + public_gists: number; + followers: number; + following: number; + html_url: string; + created_at: string; + type: string; + }; +} +declare type UsersAddEmailForAuthenticatedEndpoint = { + /** + * Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. + */ + emails: string[]; +}; +declare type UsersAddEmailForAuthenticatedRequestOptions = { + method: "POST"; + url: "/user/emails"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersAddEmailForAuthenticatedResponseData = { + email: string; + primary: boolean; + verified: boolean; + visibility: string; +}[]; +declare type UsersBlockEndpoint = { + username: string; +}; +declare type UsersBlockRequestOptions = { + method: "PUT"; + url: "/user/blocks/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type UsersCheckBlockedEndpoint = { + username: string; +}; +declare type UsersCheckBlockedRequestOptions = { + method: "GET"; + url: "/user/blocks/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type UsersCheckFollowingForUserEndpoint = { + username: string; + target_user: string; +}; +declare type UsersCheckFollowingForUserRequestOptions = { + method: "GET"; + url: "/users/:username/following/:target_user"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type UsersCheckPersonIsFollowedByAuthenticatedEndpoint = { + username: string; +}; +declare type UsersCheckPersonIsFollowedByAuthenticatedRequestOptions = { + method: "GET"; + url: "/user/following/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type UsersCreateGpgKeyForAuthenticatedEndpoint = { + /** + * Your GPG key, generated in ASCII-armored format. See "[Generating a new GPG key](https://docs.github.com/articles/generating-a-new-gpg-key/)" for help creating a GPG key. + */ + armored_public_key?: string; +}; +declare type UsersCreateGpgKeyForAuthenticatedRequestOptions = { + method: "POST"; + url: "/user/gpg_keys"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface UsersCreateGpgKeyForAuthenticatedResponseData { + id: number; + primary_key_id: string; + key_id: string; + public_key: string; + emails: { + email: string; + verified: boolean; + }[]; + subkeys: { + id: number; + primary_key_id: number; + key_id: string; + public_key: string; + emails: unknown[]; + subkeys: unknown[]; + can_sign: boolean; + can_encrypt_comms: boolean; + can_encrypt_storage: boolean; + can_certify: boolean; + created_at: string; + expires_at: string; + }[]; + can_sign: boolean; + can_encrypt_comms: boolean; + can_encrypt_storage: boolean; + can_certify: boolean; + created_at: string; + expires_at: string; +} +declare type UsersCreatePublicSshKeyForAuthenticatedEndpoint = { + /** + * A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air". + */ + title?: string; + /** + * The public SSH key to add to your GitHub account. See "[Generating a new SSH key](https://docs.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)" for guidance on how to create a public SSH key. + */ + key?: string; +}; +declare type UsersCreatePublicSshKeyForAuthenticatedRequestOptions = { + method: "POST"; + url: "/user/keys"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface UsersCreatePublicSshKeyForAuthenticatedResponseData { + key_id: string; + key: string; +} +declare type UsersDeleteEmailForAuthenticatedEndpoint = { + /** + * Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. + */ + emails: string[]; +}; +declare type UsersDeleteEmailForAuthenticatedRequestOptions = { + method: "DELETE"; + url: "/user/emails"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type UsersDeleteGpgKeyForAuthenticatedEndpoint = { + gpg_key_id: number; +}; +declare type UsersDeleteGpgKeyForAuthenticatedRequestOptions = { + method: "DELETE"; + url: "/user/gpg_keys/:gpg_key_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type UsersDeletePublicSshKeyForAuthenticatedEndpoint = { + key_id: number; +}; +declare type UsersDeletePublicSshKeyForAuthenticatedRequestOptions = { + method: "DELETE"; + url: "/user/keys/:key_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type UsersFollowEndpoint = { + username: string; +}; +declare type UsersFollowRequestOptions = { + method: "PUT"; + url: "/user/following/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type UsersGetAuthenticatedEndpoint = {}; +declare type UsersGetAuthenticatedRequestOptions = { + method: "GET"; + url: "/user"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface UsersGetAuthenticatedResponseData { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + name: string; + company: string; + blog: string; + location: string; + email: string; + hireable: boolean; + bio: string; + twitter_username: string; + public_repos: number; + public_gists: number; + followers: number; + following: number; + created_at: string; + updated_at: string; + private_gists: number; + total_private_repos: number; + owned_private_repos: number; + disk_usage: number; + collaborators: number; + two_factor_authentication: boolean; + plan: { + name: string; + space: number; + private_repos: number; + collaborators: number; + }; +} +declare type UsersGetByUsernameEndpoint = { + username: string; +}; +declare type UsersGetByUsernameRequestOptions = { + method: "GET"; + url: "/users/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface UsersGetByUsernameResponseData { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + name: string; + company: string; + blog: string; + location: string; + email: string; + hireable: boolean; + bio: string; + twitter_username: string; + public_repos: number; + public_gists: number; + followers: number; + following: number; + created_at: string; + updated_at: string; + plan: { + name: string; + space: number; + private_repos: number; + collaborators: number; + }; +} +declare type UsersGetContextForUserEndpoint = { + username: string; + /** + * 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_type?: "organization" | "repository" | "issue" | "pull_request"; + /** + * Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. + */ + subject_id?: string; +}; +declare type UsersGetContextForUserRequestOptions = { + method: "GET"; + url: "/users/:username/hovercard"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface UsersGetContextForUserResponseData { + contexts: { + message: string; + octicon: string; + }[]; +} +declare type UsersGetGpgKeyForAuthenticatedEndpoint = { + gpg_key_id: number; +}; +declare type UsersGetGpgKeyForAuthenticatedRequestOptions = { + method: "GET"; + url: "/user/gpg_keys/:gpg_key_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface UsersGetGpgKeyForAuthenticatedResponseData { + id: number; + primary_key_id: string; + key_id: string; + public_key: string; + emails: { + email: string; + verified: boolean; + }[]; + subkeys: { + id: number; + primary_key_id: number; + key_id: string; + public_key: string; + emails: unknown[]; + subkeys: unknown[]; + can_sign: boolean; + can_encrypt_comms: boolean; + can_encrypt_storage: boolean; + can_certify: boolean; + created_at: string; + expires_at: string; + }[]; + can_sign: boolean; + can_encrypt_comms: boolean; + can_encrypt_storage: boolean; + can_certify: boolean; + created_at: string; + expires_at: string; +} +declare type UsersGetPublicSshKeyForAuthenticatedEndpoint = { + key_id: number; +}; +declare type UsersGetPublicSshKeyForAuthenticatedRequestOptions = { + method: "GET"; + url: "/user/keys/:key_id"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface UsersGetPublicSshKeyForAuthenticatedResponseData { + key_id: string; + key: string; +} +declare type UsersListEndpoint = { + /** + * The integer ID of the last User that you've seen. + */ + since?: string; +}; +declare type UsersListRequestOptions = { + method: "GET"; + url: "/users"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type UsersListBlockedByAuthenticatedEndpoint = {}; +declare type UsersListBlockedByAuthenticatedRequestOptions = { + method: "GET"; + url: "/user/blocks"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListBlockedByAuthenticatedResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type UsersListEmailsForAuthenticatedEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type UsersListEmailsForAuthenticatedRequestOptions = { + method: "GET"; + url: "/user/emails"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListEmailsForAuthenticatedResponseData = { + email: string; + primary: boolean; + verified: boolean; + visibility: string; +}[]; +declare type UsersListFollowedByAuthenticatedEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type UsersListFollowedByAuthenticatedRequestOptions = { + method: "GET"; + url: "/user/following"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListFollowedByAuthenticatedResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type UsersListFollowersForAuthenticatedUserEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type UsersListFollowersForAuthenticatedUserRequestOptions = { + method: "GET"; + url: "/user/followers"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListFollowersForAuthenticatedUserResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type UsersListFollowersForUserEndpoint = { + username: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type UsersListFollowersForUserRequestOptions = { + method: "GET"; + url: "/users/:username/followers"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListFollowersForUserResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type UsersListFollowingForUserEndpoint = { + username: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type UsersListFollowingForUserRequestOptions = { + method: "GET"; + url: "/users/:username/following"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListFollowingForUserResponseData = { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; +}[]; +declare type UsersListGpgKeysForAuthenticatedEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type UsersListGpgKeysForAuthenticatedRequestOptions = { + method: "GET"; + url: "/user/gpg_keys"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListGpgKeysForAuthenticatedResponseData = { + id: number; + primary_key_id: string; + key_id: string; + public_key: string; + emails: { + email: string; + verified: boolean; + }[]; + subkeys: { + id: number; + primary_key_id: number; + key_id: string; + public_key: string; + emails: unknown[]; + subkeys: unknown[]; + can_sign: boolean; + can_encrypt_comms: boolean; + can_encrypt_storage: boolean; + can_certify: boolean; + created_at: string; + expires_at: string; + }[]; + can_sign: boolean; + can_encrypt_comms: boolean; + can_encrypt_storage: boolean; + can_certify: boolean; + created_at: string; + expires_at: string; +}[]; +declare type UsersListGpgKeysForUserEndpoint = { + username: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type UsersListGpgKeysForUserRequestOptions = { + method: "GET"; + url: "/users/:username/gpg_keys"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListGpgKeysForUserResponseData = { + id: number; + primary_key_id: string; + key_id: string; + public_key: string; + emails: { + email: string; + verified: boolean; + }[]; + subkeys: { + id: number; + primary_key_id: number; + key_id: string; + public_key: string; + emails: unknown[]; + subkeys: unknown[]; + can_sign: boolean; + can_encrypt_comms: boolean; + can_encrypt_storage: boolean; + can_certify: boolean; + created_at: string; + expires_at: string; + }[]; + can_sign: boolean; + can_encrypt_comms: boolean; + can_encrypt_storage: boolean; + can_certify: boolean; + created_at: string; + expires_at: string; +}[]; +declare type UsersListPublicEmailsForAuthenticatedEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type UsersListPublicEmailsForAuthenticatedRequestOptions = { + method: "GET"; + url: "/user/public_emails"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListPublicEmailsForAuthenticatedResponseData = { + email: string; + primary: boolean; + verified: boolean; + visibility: string; +}[]; +declare type UsersListPublicKeysForUserEndpoint = { + username: string; + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type UsersListPublicKeysForUserRequestOptions = { + method: "GET"; + url: "/users/:username/keys"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListPublicKeysForUserResponseData = { + id: number; + key: string; +}[]; +declare type UsersListPublicSshKeysForAuthenticatedEndpoint = { + /** + * Results per page (max 100) + */ + per_page?: number; + /** + * Page number of the results to fetch. + */ + page?: number; +}; +declare type UsersListPublicSshKeysForAuthenticatedRequestOptions = { + method: "GET"; + url: "/user/keys"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersListPublicSshKeysForAuthenticatedResponseData = { + key_id: string; + key: string; +}[]; +declare type UsersSetPrimaryEmailVisibilityForAuthenticatedEndpoint = { + /** + * Specify the _primary_ email address that needs a visibility change. + */ + email: string; + /** + * Use `public` to enable an authenticated user to view the specified email address, or use `private` so this primary email address cannot be seen publicly. + */ + visibility: string; +}; +declare type UsersSetPrimaryEmailVisibilityForAuthenticatedRequestOptions = { + method: "PATCH"; + url: "/user/email/visibility"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export declare type UsersSetPrimaryEmailVisibilityForAuthenticatedResponseData = { + email: string; + primary: boolean; + verified: boolean; + visibility: string; +}[]; +declare type UsersUnblockEndpoint = { + username: string; +}; +declare type UsersUnblockRequestOptions = { + method: "DELETE"; + url: "/user/blocks/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type UsersUnfollowEndpoint = { + username: string; +}; +declare type UsersUnfollowRequestOptions = { + method: "DELETE"; + url: "/user/following/:username"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +declare type UsersUpdateAuthenticatedEndpoint = { + /** + * The new name of the user. + */ + name?: string; + /** + * The publicly visible email address of the user. + */ + email?: string; + /** + * The new blog URL of the user. + */ + blog?: string; + /** + * The new company of the user. + */ + company?: string; + /** + * The new location of the user. + */ + location?: string; + /** + * The new hiring availability of the user. + */ + hireable?: boolean; + /** + * The new short biography of the user. + */ + bio?: string; + /** + * The new Twitter username of the user. + */ + twitter_username?: string; +}; +declare type UsersUpdateAuthenticatedRequestOptions = { + method: "PATCH"; + url: "/user"; + headers: RequestHeaders; + request: RequestRequestOptions; +}; +export interface UsersUpdateAuthenticatedResponseData { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + name: string; + company: string; + blog: string; + location: string; + email: string; + hireable: boolean; + bio: string; + twitter_username: string; + public_repos: number; + public_gists: number; + followers: number; + following: number; + created_at: string; + updated_at: string; + private_gists: number; + total_private_repos: number; + owned_private_repos: number; + disk_usage: number; + collaborators: number; + two_factor_authentication: boolean; + plan: { + name: string; + space: number; + private_repos: number; + collaborators: number; + }; +} +declare type ActionsCreateWorkflowDispatchParamsInputs = { + [key: string]: ActionsCreateWorkflowDispatchParamsInputsKeyString; +}; +declare type ActionsCreateWorkflowDispatchParamsInputsKeyString = {}; +declare type AppsCreateInstallationAccessTokenParamsPermissions = { + [key: string]: AppsCreateInstallationAccessTokenParamsPermissionsKeyString; +}; +declare type AppsCreateInstallationAccessTokenParamsPermissionsKeyString = {}; +declare type ChecksCreateParamsOutput = { + title: string; + summary: string; + text?: string; + annotations?: ChecksCreateParamsOutputAnnotations[]; + images?: ChecksCreateParamsOutputImages[]; +}; +declare type ChecksCreateParamsOutputAnnotations = { + path: string; + start_line: number; + end_line: number; + start_column?: number; + end_column?: number; + annotation_level: "notice" | "warning" | "failure"; + message: string; + title?: string; + raw_details?: string; +}; +declare type ChecksCreateParamsOutputImages = { + alt: string; + image_url: string; + caption?: string; +}; +declare type ChecksCreateParamsActions = { + label: string; + description: string; + identifier: string; +}; +declare type ChecksSetSuitesPreferencesParamsAutoTriggerChecks = { + app_id: number; + setting: boolean; +}; +declare type ChecksUpdateParamsOutput = { + title?: string; + summary: string; + text?: string; + annotations?: ChecksUpdateParamsOutputAnnotations[]; + images?: ChecksUpdateParamsOutputImages[]; +}; +declare type ChecksUpdateParamsOutputAnnotations = { + path: string; + start_line: number; + end_line: number; + start_column?: number; + end_column?: number; + annotation_level: "notice" | "warning" | "failure"; + message: string; + title?: string; + raw_details?: string; +}; +declare type ChecksUpdateParamsOutputImages = { + alt: string; + image_url: string; + caption?: string; +}; +declare type ChecksUpdateParamsActions = { + label: string; + description: string; + identifier: string; +}; +declare type EnterpriseAdminProvisionAndInviteEnterpriseGroupParamsMembers = { + value: string; +}; +declare type EnterpriseAdminProvisionAndInviteEnterpriseUserParamsName = { + givenName: string; + familyName: string; +}; +declare type EnterpriseAdminProvisionAndInviteEnterpriseUserParamsEmails = { + value: string; + type: string; + primary: boolean; +}; +declare type EnterpriseAdminProvisionAndInviteEnterpriseUserParamsGroups = { + value?: string; +}; +declare type EnterpriseAdminSetInformationForProvisionedEnterpriseGroupParamsMembers = { + value: string; +}; +declare type EnterpriseAdminSetInformationForProvisionedEnterpriseUserParamsName = { + givenName: string; + familyName: string; +}; +declare type EnterpriseAdminSetInformationForProvisionedEnterpriseUserParamsEmails = { + value: string; + type: string; + primary: boolean; +}; +declare type EnterpriseAdminSetInformationForProvisionedEnterpriseUserParamsGroups = { + value?: string; +}; +declare type EnterpriseAdminUpdateAttributeForEnterpriseGroupParamsOperations = {}; +declare type EnterpriseAdminUpdateAttributeForEnterpriseUserParamsOperations = {}; +declare type GistsCreateParamsFiles = { + [key: string]: GistsCreateParamsFilesKeyString; +}; +declare type GistsCreateParamsFilesKeyString = { + content: string; +}; +declare type GistsUpdateParamsFiles = { + [key: string]: GistsUpdateParamsFilesKeyString; +}; +declare type GistsUpdateParamsFilesKeyString = { + content: string; + filename: string; +}; +declare type GitCreateCommitParamsAuthor = { + name?: string; + email?: string; + date?: string; +}; +declare type GitCreateCommitParamsCommitter = { + name?: string; + email?: string; + date?: string; +}; +declare type GitCreateTagParamsTagger = { + name?: string; + email?: string; + date?: string; +}; +declare type GitCreateTreeParamsTree = { + path?: string; + mode?: "100644" | "100755" | "040000" | "160000" | "120000"; + type?: "blob" | "tree" | "commit"; + sha?: string | null; + content?: string; +}; +declare type OrgsCreateWebhookParamsConfig = { + url: string; + content_type?: string; + secret?: string; + insecure_ssl?: string; +}; +declare type OrgsUpdateWebhookParamsConfig = { + url: string; + content_type?: string; + secret?: string; + insecure_ssl?: string; +}; +declare type PullsCreateReviewParamsComments = { + path: string; + position: number; + body: string; +}; +declare type ReposCreateDispatchEventParamsClientPayload = { + [key: string]: ReposCreateDispatchEventParamsClientPayloadKeyString; +}; +declare type ReposCreateDispatchEventParamsClientPayloadKeyString = {}; +declare type ReposCreateOrUpdateFileContentsParamsCommitter = { + name: string; + email: string; +}; +declare type ReposCreateOrUpdateFileContentsParamsAuthor = { + name: string; + email: string; +}; +declare type ReposCreatePagesSiteParamsSource = { + branch: string; + path?: "/" | "/docs"; +}; +declare type ReposCreateWebhookParamsConfig = { + url: string; + content_type?: string; + secret?: string; + insecure_ssl?: string; +}; +declare type ReposDeleteFileParamsCommitter = { + name?: string; + email?: string; +}; +declare type ReposDeleteFileParamsAuthor = { + name?: string; + email?: string; +}; +declare type ReposUpdateBranchProtectionParamsRequiredStatusChecks = { + strict: boolean; + contexts: string[]; +}; +declare type ReposUpdateBranchProtectionParamsRequiredPullRequestReviews = { + dismissal_restrictions?: ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions; + dismiss_stale_reviews?: boolean; + require_code_owner_reviews?: boolean; + required_approving_review_count?: number; +}; +declare type ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions = { + users?: string[]; + teams?: string[]; +}; +declare type ReposUpdateBranchProtectionParamsRestrictions = { + users: string[]; + teams: string[]; + apps?: string[]; +}; +declare type ReposUpdateInformationAboutPagesSiteParamsSource = { + branch: string; + path: "/" | "/docs"; +}; +declare type ReposUpdatePullRequestReviewProtectionParamsDismissalRestrictions = { + users?: string[]; + teams?: string[]; +}; +declare type ReposUpdateWebhookParamsConfig = { + url: string; + content_type?: string; + secret?: string; + insecure_ssl?: string; +}; +declare type ScimProvisionAndInviteUserParamsName = { + givenName: string; + familyName: string; +}; +declare type ScimProvisionAndInviteUserParamsEmails = { + value: string; + type: string; + primary: boolean; +}; +declare type ScimSetInformationForProvisionedUserParamsName = { + givenName: string; + familyName: string; +}; +declare type ScimSetInformationForProvisionedUserParamsEmails = { + value: string; + type: string; + primary: boolean; +}; +declare type ScimUpdateAttributeForUserParamsOperations = {}; +declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgParamsGroups = { + group_id: string; + group_name: string; + group_description: string; +}; +declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyParamsGroups = { + group_id: string; + group_name: string; + group_description: string; +}; +export {}; diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/index.d.ts b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/index.d.ts similarity index 95% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/index.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/index.d.ts index 5d2d5ae09..004ae9b22 100644 --- a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/index.d.ts +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-types/index.d.ts @@ -4,6 +4,7 @@ export * from "./EndpointInterface"; export * from "./EndpointOptions"; export * from "./Fetch"; export * from "./OctokitResponse"; +export * from "./RequestError"; export * from "./RequestHeaders"; export * from "./RequestInterface"; export * from "./RequestMethod"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-web/index.js b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-web/index.js new file mode 100644 index 000000000..a28e6de53 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-web/index.js @@ -0,0 +1,4 @@ +const VERSION = "5.4.0"; + +export { VERSION }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-web/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-web/index.js.map similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-web/index.js.map rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/dist-web/index.js.map diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/package.json b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/package.json similarity index 94% rename from node_modules/@octokit/rest/node_modules/@octokit/types/package.json rename to node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/package.json index 9036e41f7..ae1d78d25 100644 --- a/node_modules/@octokit/rest/node_modules/@octokit/types/package.json +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/@octokit/types/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/types", "description": "Shared TypeScript definitions for Octokit projects", - "version": "2.16.2", + "version": "5.4.0", "license": "MIT", "files": [ "dist-*/", @@ -21,13 +21,13 @@ "@types/node": ">= 8" }, "devDependencies": { - "@gimenete/type-writer": "^0.1.5", "@octokit/graphql": "^4.2.2", "@pika/pack": "^0.5.0", "@pika/plugin-build-node": "^0.9.0", "@pika/plugin-build-web": "^0.9.0", "@pika/plugin-ts-standard-pkg": "^0.9.0", "handlebars": "^4.7.6", + "json-schema-to-typescript": "^9.1.0", "lodash.set": "^4.3.2", "npm-run-all": "^4.1.5", "pascal-case": "^3.1.1", diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/package.json b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/package.json new file mode 100644 index 000000000..db18c8086 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/@octokit/request/package.json @@ -0,0 +1,64 @@ +{ + "name": "@octokit/request", + "description": "Send parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node", + "version": "5.4.9", + "license": "MIT", + "files": [ + "dist-*/", + "bin/" + ], + "pika": true, + "sideEffects": false, + "keywords": [ + "octokit", + "github", + "api", + "request" + ], + "homepage": "https://github.com/octokit/request.js#readme", + "bugs": { + "url": "https://github.com/octokit/request.js/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/octokit/request.js.git" + }, + "dependencies": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.0.0", + "@octokit/types": "^5.0.0", + "deprecation": "^2.0.0", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.1", + "once": "^1.4.0", + "universal-user-agent": "^6.0.0" + }, + "devDependencies": { + "@octokit/auth-app": "^2.1.2", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.9.0", + "@pika/plugin-build-web": "^0.9.0", + "@pika/plugin-ts-standard-pkg": "^0.9.0", + "@types/fetch-mock": "^7.2.4", + "@types/jest": "^26.0.0", + "@types/lolex": "^5.1.0", + "@types/node": "^14.0.0", + "@types/node-fetch": "^2.3.3", + "@types/once": "^1.4.0", + "fetch-mock": "^9.3.1", + "jest": "^26.0.1", + "lolex": "^6.0.0", + "prettier": "^2.0.1", + "semantic-release": "^17.0.0", + "semantic-release-plugin-update-version-in-files": "^1.0.0", + "ts-jest": "^26.1.0", + "typescript": "^4.0.2" + }, + "publishConfig": { + "access": "public" + }, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "main": "dist-node/index.js", + "module": "dist-web/index.js" +} diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/package.json b/node_modules/@octokit/core/node_modules/@octokit/graphql/package.json index 78087d9a2..bb5890725 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/graphql/package.json +++ b/node_modules/@octokit/core/node_modules/@octokit/graphql/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/graphql", "description": "GitHub GraphQL API client for browsers and Node", - "version": "4.5.6", + "version": "4.5.8", "license": "MIT", "files": [ "dist-*/", @@ -25,7 +25,7 @@ }, "dependencies": { "@octokit/request": "^5.3.0", - "@octokit/types": "^5.0.0", + "@octokit/types": "^6.0.0", "universal-user-agent": "^6.0.0" }, "devDependencies": { diff --git a/node_modules/@octokit/core/node_modules/@octokit/request/README.md b/node_modules/@octokit/core/node_modules/@octokit/request/README.md index ef04ae892..514eb6e28 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/request/README.md +++ b/node_modules/@octokit/core/node_modules/@octokit/request/README.md @@ -38,7 +38,7 @@ the passed options and sends the request using [fetch](https://developer.mozilla 🤩 1:1 mapping of REST API endpoint documentation, e.g. [Add labels to an issue](https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue) becomes ```js -request("POST /repos/:owner/:repo/issues/:number/labels", { +request("POST /repos/{owner}/{repo}/issues/{number}/labels", { mediaType: { previews: ["symmetra"], }, @@ -70,11 +70,11 @@ request("POST /repos/:owner/:repo/issues/:number/labels", { Browsers -Load @octokit/request directly from cdn.pika.dev +Load @octokit/request directly from cdn.skypack.dev ```html ``` @@ -99,7 +99,7 @@ const { request } = require("@octokit/request"); ```js // Following GitHub docs formatting: // https://developer.github.com/v3/repos/#list-organization-repositories -const result = await request("GET /orgs/:org/repos", { +const result = await request("GET /orgs/{org}/repos", { headers: { authorization: "token 0000000000000000000000000000000000000001", }, @@ -139,7 +139,7 @@ Alternatively, pass in a method and a url ```js const result = await request({ method: "GET", - url: "/orgs/:org/repos", + url: "/orgs/{org}/repos", headers: { authorization: "token 0000000000000000000000000000000000000001", }, @@ -166,7 +166,7 @@ For more complex authentication strategies such as GitHub Apps or Basic, we reco ```js const { createAppAuth } = require("@octokit/auth-app"); const auth = createAppAuth({ - id: process.env.APP_ID, + appId: process.env.APP_ID, privateKey: process.env.PRIVATE_KEY, installationId: 123, }); @@ -180,11 +180,14 @@ const requestWithAuth = request.defaults({ }); const { data: app } = await requestWithAuth("GET /app"); -const { data: app } = await requestWithAuth("POST /repos/:owner/:repo/issues", { - owner: "octocat", - repo: "hello-world", - title: "Hello from the engine room", -}); +const { data: app } = await requestWithAuth( + "POST /repos/{owner}/{repo}/issues", + { + owner: "octocat", + repo: "hello-world", + title: "Hello from the engine room", + } +); ``` ## request() @@ -215,7 +218,7 @@ const { data: app } = await requestWithAuth("POST /repos/:owner/:repo/issues", { String - If route is set it has to be a string consisting of the request method and URL, e.g. GET /orgs/:org + If route is set it has to be a string consisting of the request method and URL, e.g. GET /orgs/{org} @@ -283,7 +286,7 @@ const { data: app } = await requestWithAuth("POST /repos/:owner/:repo/issues", { Required. A path or full URL which may contain :variable or {variable} placeholders, - e.g. /orgs/:org/repos. The url is parsed using url-template. + e.g. /orgs/{org}/repos. The url is parsed using url-template. @@ -356,7 +359,7 @@ const { data: app } = await requestWithAuth("POST /repos/:owner/:repo/issues", { All other options except `options.request.*` will be passed depending on the `method` and `url` options. -1. If the option key is a placeholder in the `url`, it will be used as replacement. For example, if the passed options are `{url: '/orgs/:org/repos', org: 'foo'}` the returned `options.url` is `https://api.github.com/orgs/foo/repos` +1. If the option key is a placeholder in the `url`, it will be used as replacement. For example, if the passed options are `{url: '/orgs/{org}/repos', org: 'foo'}` the returned `options.url` is `https://api.github.com/orgs/foo/repos` 2. If the `method` is `GET` or `HEAD`, the option is passed as query parameter 3. Otherwise the parameter is passed in the request body as JSON key. @@ -421,7 +424,7 @@ const myrequest = require("@octokit/request").defaults({ per_page: 100, }); -myrequest(`GET /orgs/:org/repos`); +myrequest(`GET /orgs/{org}/repos`); ``` You can call `.defaults()` again on the returned method, the defaults will cascade. @@ -450,7 +453,7 @@ by the global default. See https://github.com/octokit/endpoint.js. Example ```js -const options = request.endpoint("GET /orgs/:org/repos", { +const options = request.endpoint("GET /orgs/{org}/repos", { org: "my-project", type: "private", }); diff --git a/node_modules/@octokit/core/node_modules/@octokit/request/dist-node/index.js b/node_modules/@octokit/core/node_modules/@octokit/request/dist-node/index.js index 8518d8043..808deb661 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/request/dist-node/index.js +++ b/node_modules/@octokit/core/node_modules/@octokit/request/dist-node/index.js @@ -10,7 +10,7 @@ var isPlainObject = require('is-plain-object'); var nodeFetch = _interopDefault(require('node-fetch')); var requestError = require('@octokit/request-error'); -const VERSION = "5.4.9"; +const VERSION = "5.4.12"; function getBufferResponse(response) { return response.arrayBuffer(); diff --git a/node_modules/@octokit/core/node_modules/@octokit/request/dist-node/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/request/dist-node/index.js.map index 11d9ddcb3..cfa7cc056 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/request/dist-node/index.js.map +++ b/node_modules/@octokit/core/node_modules/@octokit/request/dist-node/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.9\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import { isPlainObject } from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["VERSION","getBufferResponse","response","arrayBuffer","fetchWrapper","requestOptions","isPlainObject","body","Array","isArray","JSON","stringify","headers","status","url","fetch","request","nodeFetch","Object","assign","method","redirect","then","keyAndValue","RequestError","statusText","text","message","error","responseBody","parse","errors","map","join","e","contentType","get","test","json","getBuffer","data","catch","withDefaults","oldEndpoint","newDefaults","endpoint","defaults","newApi","route","parameters","endpointOptions","merge","hook","bind","getUserAgent"],"mappings":";;;;;;;;;;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;ACAQ,SAASC,iBAAT,CAA2BC,QAA3B,EAAqC;AAChD,SAAOA,QAAQ,CAACC,WAAT,EAAP;AACH;;ACEc,SAASC,YAAT,CAAsBC,cAAtB,EAAsC;AACjD,MAAIC,2BAAa,CAACD,cAAc,CAACE,IAAhB,CAAb,IACAC,KAAK,CAACC,OAAN,CAAcJ,cAAc,CAACE,IAA7B,CADJ,EACwC;AACpCF,IAAAA,cAAc,CAACE,IAAf,GAAsBG,IAAI,CAACC,SAAL,CAAeN,cAAc,CAACE,IAA9B,CAAtB;AACH;;AACD,MAAIK,OAAO,GAAG,EAAd;AACA,MAAIC,MAAJ;AACA,MAAIC,GAAJ;AACA,QAAMC,KAAK,GAAIV,cAAc,CAACW,OAAf,IAA0BX,cAAc,CAACW,OAAf,CAAuBD,KAAlD,IAA4DE,SAA1E;AACA,SAAOF,KAAK,CAACV,cAAc,CAACS,GAAhB,EAAqBI,MAAM,CAACC,MAAP,CAAc;AAC3CC,IAAAA,MAAM,EAAEf,cAAc,CAACe,MADoB;AAE3Cb,IAAAA,IAAI,EAAEF,cAAc,CAACE,IAFsB;AAG3CK,IAAAA,OAAO,EAAEP,cAAc,CAACO,OAHmB;AAI3CS,IAAAA,QAAQ,EAAEhB,cAAc,CAACgB;AAJkB,GAAd,EAK9BhB,cAAc,CAACW,OALe,CAArB,CAAL,CAMFM,IANE,CAMIpB,QAAD,IAAc;AACpBY,IAAAA,GAAG,GAAGZ,QAAQ,CAACY,GAAf;AACAD,IAAAA,MAAM,GAAGX,QAAQ,CAACW,MAAlB;;AACA,SAAK,MAAMU,WAAX,IAA0BrB,QAAQ,CAACU,OAAnC,EAA4C;AACxCA,MAAAA,OAAO,CAACW,WAAW,CAAC,CAAD,CAAZ,CAAP,GAA0BA,WAAW,CAAC,CAAD,CAArC;AACH;;AACD,QAAIV,MAAM,KAAK,GAAX,IAAkBA,MAAM,KAAK,GAAjC,EAAsC;AAClC;AACH,KARmB;;;AAUpB,QAAIR,cAAc,CAACe,MAAf,KAA0B,MAA9B,EAAsC;AAClC,UAAIP,MAAM,GAAG,GAAb,EAAkB;AACd;AACH;;AACD,YAAM,IAAIW,yBAAJ,CAAiBtB,QAAQ,CAACuB,UAA1B,EAAsCZ,MAAtC,EAA8C;AAChDD,QAAAA,OADgD;AAEhDI,QAAAA,OAAO,EAAEX;AAFuC,OAA9C,CAAN;AAIH;;AACD,QAAIQ,MAAM,KAAK,GAAf,EAAoB;AAChB,YAAM,IAAIW,yBAAJ,CAAiB,cAAjB,EAAiCX,MAAjC,EAAyC;AAC3CD,QAAAA,OAD2C;AAE3CI,QAAAA,OAAO,EAAEX;AAFkC,OAAzC,CAAN;AAIH;;AACD,QAAIQ,MAAM,IAAI,GAAd,EAAmB;AACf,aAAOX,QAAQ,CACVwB,IADE,GAEFJ,IAFE,CAEIK,OAAD,IAAa;AACnB,cAAMC,KAAK,GAAG,IAAIJ,yBAAJ,CAAiBG,OAAjB,EAA0Bd,MAA1B,EAAkC;AAC5CD,UAAAA,OAD4C;AAE5CI,UAAAA,OAAO,EAAEX;AAFmC,SAAlC,CAAd;;AAIA,YAAI;AACA,cAAIwB,YAAY,GAAGnB,IAAI,CAACoB,KAAL,CAAWF,KAAK,CAACD,OAAjB,CAAnB;AACAT,UAAAA,MAAM,CAACC,MAAP,CAAcS,KAAd,EAAqBC,YAArB;AACA,cAAIE,MAAM,GAAGF,YAAY,CAACE,MAA1B,CAHA;;AAKAH,UAAAA,KAAK,CAACD,OAAN,GACIC,KAAK,CAACD,OAAN,GAAgB,IAAhB,GAAuBI,MAAM,CAACC,GAAP,CAAWtB,IAAI,CAACC,SAAhB,EAA2BsB,IAA3B,CAAgC,IAAhC,CAD3B;AAEH,SAPD,CAQA,OAAOC,CAAP,EAAU;AAET;;AACD,cAAMN,KAAN;AACH,OAnBM,CAAP;AAoBH;;AACD,UAAMO,WAAW,GAAGjC,QAAQ,CAACU,OAAT,CAAiBwB,GAAjB,CAAqB,cAArB,CAApB;;AACA,QAAI,oBAAoBC,IAApB,CAAyBF,WAAzB,CAAJ,EAA2C;AACvC,aAAOjC,QAAQ,CAACoC,IAAT,EAAP;AACH;;AACD,QAAI,CAACH,WAAD,IAAgB,yBAAyBE,IAAzB,CAA8BF,WAA9B,CAApB,EAAgE;AAC5D,aAAOjC,QAAQ,CAACwB,IAAT,EAAP;AACH;;AACD,WAAOa,iBAAS,CAACrC,QAAD,CAAhB;AACH,GA7DM,EA8DFoB,IA9DE,CA8DIkB,IAAD,IAAU;AAChB,WAAO;AACH3B,MAAAA,MADG;AAEHC,MAAAA,GAFG;AAGHF,MAAAA,OAHG;AAIH4B,MAAAA;AAJG,KAAP;AAMH,GArEM,EAsEFC,KAtEE,CAsEKb,KAAD,IAAW;AAClB,QAAIA,KAAK,YAAYJ,yBAArB,EAAmC;AAC/B,YAAMI,KAAN;AACH;;AACD,UAAM,IAAIJ,yBAAJ,CAAiBI,KAAK,CAACD,OAAvB,EAAgC,GAAhC,EAAqC;AACvCf,MAAAA,OADuC;AAEvCI,MAAAA,OAAO,EAAEX;AAF8B,KAArC,CAAN;AAIH,GA9EM,CAAP;AA+EH;;AC3Fc,SAASqC,YAAT,CAAsBC,WAAtB,EAAmCC,WAAnC,EAAgD;AAC3D,QAAMC,QAAQ,GAAGF,WAAW,CAACG,QAAZ,CAAqBF,WAArB,CAAjB;;AACA,QAAMG,MAAM,GAAG,UAAUC,KAAV,EAAiBC,UAAjB,EAA6B;AACxC,UAAMC,eAAe,GAAGL,QAAQ,CAACM,KAAT,CAAeH,KAAf,EAAsBC,UAAtB,CAAxB;;AACA,QAAI,CAACC,eAAe,CAAClC,OAAjB,IAA4B,CAACkC,eAAe,CAAClC,OAAhB,CAAwBoC,IAAzD,EAA+D;AAC3D,aAAOhD,YAAY,CAACyC,QAAQ,CAACf,KAAT,CAAeoB,eAAf,CAAD,CAAnB;AACH;;AACD,UAAMlC,OAAO,GAAG,CAACgC,KAAD,EAAQC,UAAR,KAAuB;AACnC,aAAO7C,YAAY,CAACyC,QAAQ,CAACf,KAAT,CAAee,QAAQ,CAACM,KAAT,CAAeH,KAAf,EAAsBC,UAAtB,CAAf,CAAD,CAAnB;AACH,KAFD;;AAGA/B,IAAAA,MAAM,CAACC,MAAP,CAAcH,OAAd,EAAuB;AACnB6B,MAAAA,QADmB;AAEnBC,MAAAA,QAAQ,EAAEJ,YAAY,CAACW,IAAb,CAAkB,IAAlB,EAAwBR,QAAxB;AAFS,KAAvB;AAIA,WAAOK,eAAe,CAAClC,OAAhB,CAAwBoC,IAAxB,CAA6BpC,OAA7B,EAAsCkC,eAAtC,CAAP;AACH,GAbD;;AAcA,SAAOhC,MAAM,CAACC,MAAP,CAAc4B,MAAd,EAAsB;AACzBF,IAAAA,QADyB;AAEzBC,IAAAA,QAAQ,EAAEJ,YAAY,CAACW,IAAb,CAAkB,IAAlB,EAAwBR,QAAxB;AAFe,GAAtB,CAAP;AAIH;;MCjBY7B,OAAO,GAAG0B,YAAY,CAACG,iBAAD,EAAW;AAC1CjC,EAAAA,OAAO,EAAE;AACL,kBAAe,sBAAqBZ,OAAQ,IAAGsD,+BAAY,EAAG;AADzD;AADiC,CAAX,CAA5B;;;;"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.12\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import { isPlainObject } from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["VERSION","getBufferResponse","response","arrayBuffer","fetchWrapper","requestOptions","isPlainObject","body","Array","isArray","JSON","stringify","headers","status","url","fetch","request","nodeFetch","Object","assign","method","redirect","then","keyAndValue","RequestError","statusText","text","message","error","responseBody","parse","errors","map","join","e","contentType","get","test","json","getBuffer","data","catch","withDefaults","oldEndpoint","newDefaults","endpoint","defaults","newApi","route","parameters","endpointOptions","merge","hook","bind","getUserAgent"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/core/node_modules/@octokit/request/dist-src/version.js b/node_modules/@octokit/core/node_modules/@octokit/request/dist-src/version.js index 856641b39..7644e7735 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/request/dist-src/version.js +++ b/node_modules/@octokit/core/node_modules/@octokit/request/dist-src/version.js @@ -1 +1 @@ -export const VERSION = "5.4.9"; +export const VERSION = "5.4.12"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/request/dist-types/version.d.ts b/node_modules/@octokit/core/node_modules/@octokit/request/dist-types/version.d.ts index cfc9b7aff..0e4434ff6 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/request/dist-types/version.d.ts +++ b/node_modules/@octokit/core/node_modules/@octokit/request/dist-types/version.d.ts @@ -1 +1 @@ -export declare const VERSION = "5.4.9"; +export declare const VERSION = "5.4.12"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/request/dist-web/index.js b/node_modules/@octokit/core/node_modules/@octokit/request/dist-web/index.js index 37fefe452..46c862516 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/request/dist-web/index.js +++ b/node_modules/@octokit/core/node_modules/@octokit/request/dist-web/index.js @@ -4,7 +4,7 @@ import { isPlainObject } from 'is-plain-object'; import nodeFetch from 'node-fetch'; import { RequestError } from '@octokit/request-error'; -const VERSION = "5.4.9"; +const VERSION = "5.4.12"; function getBufferResponse(response) { return response.arrayBuffer(); diff --git a/node_modules/@octokit/core/node_modules/@octokit/request/dist-web/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/request/dist-web/index.js.map index a0f0426b0..0bddd0d14 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/request/dist-web/index.js.map +++ b/node_modules/@octokit/core/node_modules/@octokit/request/dist-web/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.9\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import { isPlainObject } from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["getBuffer"],"mappings":";;;;;;AAAO,MAAM,OAAO,GAAG,mBAAmB;;ACA3B,SAAS,iBAAiB,CAAC,QAAQ,EAAE;AACpD,IAAI,OAAO,QAAQ,CAAC,WAAW,EAAE,CAAC;AAClC,CAAC;;ACEc,SAAS,YAAY,CAAC,cAAc,EAAE;AACrD,IAAI,IAAI,aAAa,CAAC,cAAc,CAAC,IAAI,CAAC;AAC1C,QAAQ,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;AAC5C,QAAQ,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;AAClE,KAAK;AACL,IAAI,IAAI,OAAO,GAAG,EAAE,CAAC;AACrB,IAAI,IAAI,MAAM,CAAC;AACf,IAAI,IAAI,GAAG,CAAC;AACZ,IAAI,MAAM,KAAK,GAAG,CAAC,cAAc,CAAC,OAAO,IAAI,cAAc,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,CAAC;AACxF,IAAI,OAAO,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC;AACnD,QAAQ,MAAM,EAAE,cAAc,CAAC,MAAM;AACrC,QAAQ,IAAI,EAAE,cAAc,CAAC,IAAI;AACjC,QAAQ,OAAO,EAAE,cAAc,CAAC,OAAO;AACvC,QAAQ,QAAQ,EAAE,cAAc,CAAC,QAAQ;AACzC,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;AAC/B,SAAS,IAAI,CAAC,CAAC,QAAQ,KAAK;AAC5B,QAAQ,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC;AAC3B,QAAQ,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;AACjC,QAAQ,KAAK,MAAM,WAAW,IAAI,QAAQ,CAAC,OAAO,EAAE;AACpD,YAAY,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AACrD,SAAS;AACT,QAAQ,IAAI,MAAM,KAAK,GAAG,IAAI,MAAM,KAAK,GAAG,EAAE;AAC9C,YAAY,OAAO;AACnB,SAAS;AACT;AACA,QAAQ,IAAI,cAAc,CAAC,MAAM,KAAK,MAAM,EAAE;AAC9C,YAAY,IAAI,MAAM,GAAG,GAAG,EAAE;AAC9B,gBAAgB,OAAO;AACvB,aAAa;AACb,YAAY,MAAM,IAAI,YAAY,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE;AAChE,gBAAgB,OAAO;AACvB,gBAAgB,OAAO,EAAE,cAAc;AACvC,aAAa,CAAC,CAAC;AACf,SAAS;AACT,QAAQ,IAAI,MAAM,KAAK,GAAG,EAAE;AAC5B,YAAY,MAAM,IAAI,YAAY,CAAC,cAAc,EAAE,MAAM,EAAE;AAC3D,gBAAgB,OAAO;AACvB,gBAAgB,OAAO,EAAE,cAAc;AACvC,aAAa,CAAC,CAAC;AACf,SAAS;AACT,QAAQ,IAAI,MAAM,IAAI,GAAG,EAAE;AAC3B,YAAY,OAAO,QAAQ;AAC3B,iBAAiB,IAAI,EAAE;AACvB,iBAAiB,IAAI,CAAC,CAAC,OAAO,KAAK;AACnC,gBAAgB,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE;AAChE,oBAAoB,OAAO;AAC3B,oBAAoB,OAAO,EAAE,cAAc;AAC3C,iBAAiB,CAAC,CAAC;AACnB,gBAAgB,IAAI;AACpB,oBAAoB,IAAI,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACjE,oBAAoB,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AACvD,oBAAoB,IAAI,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC;AACrD;AACA,oBAAoB,KAAK,CAAC,OAAO;AACjC,wBAAwB,KAAK,CAAC,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACrF,iBAAiB;AACjB,gBAAgB,OAAO,CAAC,EAAE;AAC1B;AACA,iBAAiB;AACjB,gBAAgB,MAAM,KAAK,CAAC;AAC5B,aAAa,CAAC,CAAC;AACf,SAAS;AACT,QAAQ,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACjE,QAAQ,IAAI,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;AACnD,YAAY,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;AACnC,SAAS;AACT,QAAQ,IAAI,CAAC,WAAW,IAAI,wBAAwB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE;AACxE,YAAY,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;AACnC,SAAS;AACT,QAAQ,OAAOA,iBAAS,CAAC,QAAQ,CAAC,CAAC;AACnC,KAAK,CAAC;AACN,SAAS,IAAI,CAAC,CAAC,IAAI,KAAK;AACxB,QAAQ,OAAO;AACf,YAAY,MAAM;AAClB,YAAY,GAAG;AACf,YAAY,OAAO;AACnB,YAAY,IAAI;AAChB,SAAS,CAAC;AACV,KAAK,CAAC;AACN,SAAS,KAAK,CAAC,CAAC,KAAK,KAAK;AAC1B,QAAQ,IAAI,KAAK,YAAY,YAAY,EAAE;AAC3C,YAAY,MAAM,KAAK,CAAC;AACxB,SAAS;AACT,QAAQ,MAAM,IAAI,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE;AACnD,YAAY,OAAO;AACnB,YAAY,OAAO,EAAE,cAAc;AACnC,SAAS,CAAC,CAAC;AACX,KAAK,CAAC,CAAC;AACP,CAAC;;AC3Fc,SAAS,YAAY,CAAC,WAAW,EAAE,WAAW,EAAE;AAC/D,IAAI,MAAM,QAAQ,GAAG,WAAW,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AACvD,IAAI,MAAM,MAAM,GAAG,UAAU,KAAK,EAAE,UAAU,EAAE;AAChD,QAAQ,MAAM,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAClE,QAAQ,IAAI,CAAC,eAAe,CAAC,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,EAAE;AACvE,YAAY,OAAO,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AACjE,SAAS;AACT,QAAQ,MAAM,OAAO,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK;AAC/C,YAAY,OAAO,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;AACnF,SAAS,CAAC;AACV,QAAQ,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;AAC/B,YAAY,QAAQ;AACpB,YAAY,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;AACvD,SAAS,CAAC,CAAC;AACX,QAAQ,OAAO,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AACtE,KAAK,CAAC;AACN,IAAI,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;AACjC,QAAQ,QAAQ;AAChB,QAAQ,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC;AACnD,KAAK,CAAC,CAAC;AACP,CAAC;;ACjBW,MAAC,OAAO,GAAG,YAAY,CAAC,QAAQ,EAAE;AAC9C,IAAI,OAAO,EAAE;AACb,QAAQ,YAAY,EAAE,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC;AACvE,KAAK;AACL,CAAC,CAAC;;;;"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.12\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import { isPlainObject } from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["getBuffer"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/core/node_modules/@octokit/request/package.json b/node_modules/@octokit/core/node_modules/@octokit/request/package.json index db18c8086..9b931ac28 100644 --- a/node_modules/@octokit/core/node_modules/@octokit/request/package.json +++ b/node_modules/@octokit/core/node_modules/@octokit/request/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/request", "description": "Send parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node", - "version": "5.4.9", + "version": "5.4.12", "license": "MIT", "files": [ "dist-*/", @@ -26,7 +26,7 @@ "dependencies": { "@octokit/endpoint": "^6.0.1", "@octokit/request-error": "^2.0.0", - "@octokit/types": "^5.0.0", + "@octokit/types": "^6.0.3", "deprecation": "^2.0.0", "is-plain-object": "^5.0.0", "node-fetch": "^2.6.1", diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/LICENSE b/node_modules/@octokit/core/node_modules/@octokit/types/LICENSE similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/LICENSE rename to node_modules/@octokit/core/node_modules/@octokit/types/LICENSE diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/README.md b/node_modules/@octokit/core/node_modules/@octokit/types/README.md new file mode 100644 index 000000000..707894566 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/README.md @@ -0,0 +1,64 @@ +# types.ts + +> Shared TypeScript definitions for Octokit projects + +[![@latest](https://img.shields.io/npm/v/@octokit/types.svg)](https://www.npmjs.com/package/@octokit/types) +[![Build Status](https://github.com/octokit/types.ts/workflows/Test/badge.svg)](https://github.com/octokit/types.ts/actions?workflow=Test) + + + +- [Usage](#usage) +- [Examples](#examples) + - [Get parameter and response data types for a REST API endpoint](#get-parameter-and-response-data-types-for-a-rest-api-endpoint) + - [Get response types from endpoint methods](#get-response-types-from-endpoint-methods) +- [Contributing](#contributing) +- [License](#license) + + + +## Usage + +See all exported types at https://octokit.github.io/types.ts + +## Examples + +### Get parameter and response data types for a REST API endpoint + +```ts +import { Endpoints } from "@octokit/types"; + +type listUserReposParameters = Endpoints["GET /repos/:owner/:repo"]["parameters"]; +type listUserReposResponse = Endpoints["GET /repos/:owner/:repo"]["response"]; + +async function listRepos( + options: listUserReposParameters +): listUserReposResponse["data"] { + // ... +} +``` + +### Get response types from endpoint methods + +```ts +import { + GetResponseTypeFromEndpointMethod, + GetResponseDataTypeFromEndpointMethod, +} from "@octokit/types"; +import { Octokit } from "@octokit/rest"; + +const octokit = new Octokit(); +type CreateLabelResponseType = GetResponseTypeFromEndpointMethod< + typeof octokit.issues.createLabel +>; +type CreateLabelResponseDataType = GetResponseDataTypeFromEndpointMethod< + typeof octokit.issues.createLabel +>; +``` + +## Contributing + +See [CONTRIBUTING.md](CONTRIBUTING.md) + +## License + +[MIT](LICENSE) diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-node/index.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-node/index.js new file mode 100644 index 000000000..b888f5732 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-node/index.js @@ -0,0 +1,8 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +const VERSION = "6.0.3"; + +exports.VERSION = VERSION; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-node/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/types/dist-node/index.js.map similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-node/index.js.map rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-node/index.js.map diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/AuthInterface.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-src/AuthInterface.js diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointDefaults.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointDefaults.js diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointInterface.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointInterface.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointOptions.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointOptions.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/EndpointOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Fetch.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Fetch.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Fetch.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/OctokitResponse.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/OctokitResponse.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/OctokitResponse.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestError.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestError.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestError.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestHeaders.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestHeaders.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestHeaders.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestInterface.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestInterface.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestMethod.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestMethod.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestMethod.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestOptions.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestOptions.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestParameters.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestParameters.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestParameters.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestRequestOptions.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestRequestOptions.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/RequestRequestOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/ResponseHeaders.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/ResponseHeaders.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/ResponseHeaders.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Route.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Route.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Route.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Signal.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Signal.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Signal.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/StrategyInterface.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/StrategyInterface.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/StrategyInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Url.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Url.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/Url.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/VERSION.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/VERSION.js new file mode 100644 index 000000000..38cea4357 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/VERSION.js @@ -0,0 +1 @@ +export const VERSION = "6.0.3"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/generated/Endpoints.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/generated/Endpoints.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/generated/Endpoints.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/index.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/index.js new file mode 100644 index 000000000..004ae9b22 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-src/index.js @@ -0,0 +1,21 @@ +export * from "./AuthInterface"; +export * from "./EndpointDefaults"; +export * from "./EndpointInterface"; +export * from "./EndpointOptions"; +export * from "./Fetch"; +export * from "./OctokitResponse"; +export * from "./RequestError"; +export * from "./RequestHeaders"; +export * from "./RequestInterface"; +export * from "./RequestMethod"; +export * from "./RequestOptions"; +export * from "./RequestParameters"; +export * from "./RequestRequestOptions"; +export * from "./ResponseHeaders"; +export * from "./Route"; +export * from "./Signal"; +export * from "./StrategyInterface"; +export * from "./Url"; +export * from "./VERSION"; +export * from "./GetResponseTypeFromEndpointMethod"; +export * from "./generated/Endpoints"; diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/AuthInterface.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/AuthInterface.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/AuthInterface.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/AuthInterface.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/Fetch.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Fetch.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/Fetch.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Fetch.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts new file mode 100644 index 000000000..19ffff822 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts @@ -0,0 +1,17 @@ +import { ResponseHeaders } from "./ResponseHeaders"; +import { Url } from "./Url"; +export declare type OctokitResponse = { + headers: ResponseHeaders; + /** + * http response code + */ + status: S; + /** + * URL of response after all redirects + */ + url: Url; + /** + * This is the data you would see in https://developer.Octokit.com/v3/ + */ + data: T; +}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestError.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestError.d.ts new file mode 100644 index 000000000..89174e6ee --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestError.d.ts @@ -0,0 +1,11 @@ +export declare type RequestError = { + name: string; + status: number; + documentation_url: string; + errors?: Array<{ + resource: string; + code: string; + field: string; + message?: string; + }>; +}; diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestInterface.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestInterface.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestInterface.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestInterface.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestMethod.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestMethod.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestMethod.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestMethod.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestOptions.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestOptions.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestOptions.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestOptions.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestParameters.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestParameters.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestParameters.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestParameters.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/Route.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Route.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/Route.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Route.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/Signal.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Signal.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/Signal.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Signal.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/Url.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Url.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-types/Url.d.ts rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-types/Url.d.ts diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/VERSION.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/VERSION.d.ts new file mode 100644 index 000000000..af986fe4f --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/VERSION.d.ts @@ -0,0 +1 @@ +export declare const VERSION = "6.0.3"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts new file mode 100644 index 000000000..399f673bf --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts @@ -0,0 +1,2972 @@ +import { paths } from "@octokit/openapi-types"; +import { OctokitResponse } from "../OctokitResponse"; +import { RequestHeaders } from "../RequestHeaders"; +import { RequestRequestOptions } from "../RequestRequestOptions"; +declare type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; +declare type ExtractParameters = "parameters" extends keyof T ? UnionToIntersection<{ + [K in keyof T["parameters"]]: T["parameters"][K]; +}[keyof T["parameters"]]> : {}; +declare type ExtractRequestBody = "requestBody" extends keyof T ? "application/json" extends keyof T["requestBody"] ? T["requestBody"]["application/json"] : { + data: { + [K in keyof T["requestBody"]]: T["requestBody"][K]; + }[keyof T["requestBody"]]; +} : {}; +declare type ToOctokitParameters = ExtractParameters & ExtractRequestBody; +declare type RequiredPreview = T extends string ? { + mediaType: { + previews: [T, ...string[]]; + }; +} : {}; +declare type Operation = { + parameters: ToOctokitParameters & RequiredPreview; + request: { + method: Method extends keyof MethodsMap ? MethodsMap[Method] : never; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; + }; + response: Url extends keyof EndpointsWithMissingRequiredResponseDataSchema ? Method extends EndpointsWithMissingRequiredResponseDataSchema[Url] ? DeepRequired> : ExtractFirstSuccessResponse : ExtractFirstSuccessResponse; +}; +declare type MethodsMap = { + delete: "DELETE"; + get: "GET"; + patch: "PATCH"; + post: "POST"; + put: "PUT"; +}; +declare type SuccessStatusesMap = { + "200": 200; + "201": 201; + "204": 204; +}; +declare type RedirectStatusesMap = { + "301": 301; + "302": 302; +}; +declare type DataType = "application/json" extends keyof T ? T["application/json"] : "application/scim+json" extends keyof T ? T["application/scim+json"] : unknown; +declare type ExtractFirstSuccessResponse = "responses" extends keyof R ? FirstSuccessResponse : unknown; +declare type FirstSuccessResponse = S extends keyof SuccessStatusesMap ? R[S] extends never ? Omit, "data"> : OctokitResponse, SuccessStatusesMap[S]> : S extends keyof RedirectStatusesMap ? OctokitResponse : never; +declare type EndpointsWithMissingRequiredResponseDataSchema = { + "/app/hook/config": "get" | "patch"; + "/app/installations/{installation_id}/access_tokens": "post"; + "/emojis": "get"; + "/enterprises/{enterprise}/actions/permissions": "get"; + "/enterprises/{enterprise}/actions/permissions/organizations": "get"; + "/enterprises/{enterprise}/actions/permissions/selected-actions": "get"; + "/enterprises/{enterprise}/actions/runner-groups": "get" | "post"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": "get" | "patch"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": "get"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": "get"; + "/enterprises/{enterprise}/actions/runners": "get"; + "/enterprises/{enterprise}/actions/runners/downloads": "get"; + "/enterprises/{enterprise}/settings/billing/actions": "get"; + "/enterprises/{enterprise}/settings/billing/packages": "get"; + "/enterprises/{enterprise}/settings/billing/shared-storage": "get"; + "/installation/repositories": "get"; + "/notifications": "get"; + "/notifications/threads/{thread_id}": "get"; + "/orgs/{org}/actions/permissions": "get"; + "/orgs/{org}/actions/permissions/repositories": "get"; + "/orgs/{org}/actions/permissions/selected-actions": "get"; + "/orgs/{org}/actions/runner-groups": "get" | "post"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}": "get" | "patch"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": "get"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners": "get"; + "/orgs/{org}/actions/runners": "get"; + "/orgs/{org}/actions/runners/downloads": "get"; + "/orgs/{org}/actions/secrets": "get"; + "/orgs/{org}/actions/secrets/{secret_name}/repositories": "get"; + "/orgs/{org}/hooks/{hook_id}/config": "get" | "patch"; + "/orgs/{org}/installations": "get"; + "/orgs/{org}/invitations": "get" | "post"; + "/orgs/{org}/settings/billing/actions": "get"; + "/orgs/{org}/settings/billing/packages": "get"; + "/orgs/{org}/settings/billing/shared-storage": "get"; + "/orgs/{org}/team-sync/groups": "get"; + "/orgs/{org}/teams/{team_slug}/invitations": "get"; + "/orgs/{org}/teams/{team_slug}/projects": "get"; + "/orgs/{org}/teams/{team_slug}/projects/{project_id}": "get"; + "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings": "get" | "patch"; + "/projects/columns/cards/{card_id}/moves": "post"; + "/projects/columns/{column_id}/moves": "post"; + "/repos/{owner}/{repo}/actions/artifacts": "get"; + "/repos/{owner}/{repo}/actions/permissions": "get"; + "/repos/{owner}/{repo}/actions/permissions/selected-actions": "get"; + "/repos/{owner}/{repo}/actions/runners": "get"; + "/repos/{owner}/{repo}/actions/runners/downloads": "get"; + "/repos/{owner}/{repo}/actions/runs": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/jobs": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/timing": "get"; + "/repos/{owner}/{repo}/actions/secrets": "get"; + "/repos/{owner}/{repo}/actions/workflows": "get"; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": "get"; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": "get"; + "/repos/{owner}/{repo}/check-suites/preferences": "patch"; + "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": "get"; + "/repos/{owner}/{repo}/code-scanning/alerts": "get"; + "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": "get" | "patch"; + "/repos/{owner}/{repo}/code-scanning/analyses": "get"; + "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": "get"; + "/repos/{owner}/{repo}/commits/{ref}/check-runs": "get"; + "/repos/{owner}/{repo}/commits/{ref}/check-suites": "get"; + "/repos/{owner}/{repo}/commits/{ref}/statuses": "get"; + "/repos/{owner}/{repo}/contents/{path}": "put" | "delete"; + "/repos/{owner}/{repo}/git/blobs": "post"; + "/repos/{owner}/{repo}/git/commits": "post"; + "/repos/{owner}/{repo}/git/commits/{commit_sha}": "get"; + "/repos/{owner}/{repo}/git/matching-refs/{ref}": "get"; + "/repos/{owner}/{repo}/git/ref/{ref}": "get"; + "/repos/{owner}/{repo}/git/refs": "post"; + "/repos/{owner}/{repo}/git/refs/{ref}": "patch"; + "/repos/{owner}/{repo}/hooks/{hook_id}/config": "get" | "patch"; + "/repos/{owner}/{repo}/issues/{issue_number}/events": "get"; + "/repos/{owner}/{repo}/issues/{issue_number}/timeline": "get"; + "/repos/{owner}/{repo}/keys": "get" | "post"; + "/repos/{owner}/{repo}/keys/{key_id}": "get"; + "/repos/{owner}/{repo}/languages": "get"; + "/repos/{owner}/{repo}/notifications": "get"; + "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": "get"; + "/repos/{owner}/{repo}/stats/participation": "get"; + "/repos/{owner}/{repo}/statuses/{sha}": "post"; + "/repos/{owner}/{repo}/topics": "get" | "put"; + "/scim/v2/enterprises/{enterprise}/Groups": "get" | "post"; + "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": "get" | "put" | "patch"; + "/scim/v2/enterprises/{enterprise}/Users": "get" | "post"; + "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": "get" | "put" | "patch"; + "/search/code": "get"; + "/search/commits": "get"; + "/search/issues": "get"; + "/search/labels": "get"; + "/search/repositories": "get"; + "/search/topics": "get"; + "/search/users": "get"; + "/teams/{team_id}/invitations": "get"; + "/teams/{team_id}/projects": "get"; + "/teams/{team_id}/projects/{project_id}": "get"; + "/teams/{team_id}/team-sync/group-mappings": "get" | "patch"; + "/user/installations": "get"; + "/user/installations/{installation_id}/repositories": "get"; + "/user/keys": "get" | "post"; + "/user/keys/{key_id}": "get"; + "/users/{username}/settings/billing/actions": "get"; + "/users/{username}/settings/billing/packages": "get"; + "/users/{username}/settings/billing/shared-storage": "get"; +}; +declare type NotNill = T extends null | undefined ? never : T; +declare type Primitive = undefined | null | boolean | string | number | Function; +declare type DeepRequired = T extends Primitive ? NotNill : { + [P in keyof T]-?: T[P] extends Array ? Array> : T[P] extends ReadonlyArray ? DeepRequired : DeepRequired; +}; +export interface Endpoints { + /** + * @see https://docs.github.com/v3/apps/#delete-an-installation-for-the-authenticated-app + */ + "DELETE /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "delete">; + /** + * @see https://docs.github.com/v3/apps/#unsuspend-an-app-installation + */ + "DELETE /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "delete">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-a-grant + */ + "DELETE /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#delete-an-app-authorization + */ + "DELETE /applications/{client_id}/grant": Operation<"/applications/{client_id}/grant", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#revoke-a-grant-for-an-application + */ + "DELETE /applications/{client_id}/grants/{access_token}": Operation<"/applications/{client_id}/grants/{access_token}", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#delete-an-app-token + */ + "DELETE /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#revoke-an-authorization-for-an-application + */ + "DELETE /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "delete">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-an-authorization + */ + "DELETE /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#disable-a-selected-organization-for-github-actions-in-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-self-hosted-runner-group-from-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#remove-a-self-hosted-runner-from-a-group-for-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-self-hosted-runner-from-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/v3/gists/#delete-a-gist + */ + "DELETE /gists/{gist_id}": Operation<"/gists/{gist_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/gists#delete-a-gist-comment + */ + "DELETE /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/gists/#unstar-a-gist + */ + "DELETE /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#revoke-an-installation-access-token + */ + "DELETE /installation/token": Operation<"/installation/token", "delete">; + /** + * @see https://docs.github.com/rest/reference/activity#delete-a-thread-subscription + */ + "DELETE /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#disable-a-selected-repository-for-github-actions-in-an-organization + */ + "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-organization + */ + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-organization + */ + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-an-organization + */ + "DELETE /orgs/{org}/actions/runners/{runner_id}": Operation<"/orgs/{org}/actions/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-an-organization-secret + */ + "DELETE /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret + */ + "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#unblock-a-user-from-an-organization + */ + "DELETE /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "delete">; + /** + * @see https://docs.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization + */ + "DELETE /orgs/{org}/credential-authorizations/{credential_id}": Operation<"/orgs/{org}/credential-authorizations/{credential_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#delete-an-organization-webhook + */ + "DELETE /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-an-organization + */ + "DELETE /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-an-organization-member + */ + "DELETE /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-organization-membership-for-a-user + */ + "DELETE /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/migrations#delete-an-organization-migration-archive + */ + "DELETE /orgs/{org}/migrations/{migration_id}/archive": Operation<"/orgs/{org}/migrations/{migration_id}/archive", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#unlock-an-organization-repository + */ + "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock": Operation<"/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-outside-collaborator-from-an-organization + */ + "DELETE /orgs/{org}/outside_collaborators/{username}": Operation<"/orgs/{org}/outside_collaborators/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-public-organization-membership-for-the-authenticated-user + */ + "DELETE /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#delete-a-team + */ + "DELETE /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-comment + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-team-discussion-comment-reaction + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#delete-team-discussion-reaction + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user + */ + "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-project-from-a-team + */ + "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-repository-from-a-team + */ + "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "delete">; + /** + * @see https://docs.github.com/rest/reference/projects#delete-a-project-card + */ + "DELETE /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "delete", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#delete-a-project-column + */ + "DELETE /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "delete", "inertia">; + /** + * @see https://docs.github.com/v3/projects/#delete-a-project + */ + "DELETE /projects/{project_id}": Operation<"/projects/{project_id}", "delete", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#remove-project-collaborator + */ + "DELETE /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "delete", "inertia">; + /** + * @see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy + */ + "DELETE /reactions/{reaction_id}": Operation<"/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/repos/#delete-a-repository + */ + "DELETE /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-an-artifact + */ + "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-a-repository + */ + "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}": Operation<"/repos/{owner}/{repo}/actions/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-workflow-run + */ + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-workflow-run-logs + */ + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/logs", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-repository-secret + */ + "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "delete">; + /** + * @see https://docs.github.com/v3/repos/#disable-automated-security-fixes + */ + "DELETE /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "delete", "london">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-branch-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-admin-branch-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-pull-request-review-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-commit-signature-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "delete", "zzzax">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-status-check-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-status-check-contexts + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-app-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-team-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-user-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-a-repository-collaborator + */ + "DELETE /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-commit-comment + */ + "DELETE /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-a-commit-comment-reaction + */ + "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-file + */ + "DELETE /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-deployment + */ + "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/git#delete-a-reference + */ + "DELETE /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-repository-webhook + */ + "DELETE /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/migrations#cancel-an-import + */ + "DELETE /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "delete">; + /** + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-a-repository + */ + "DELETE /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-repository-invitation + */ + "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#delete-an-issue-comment + */ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-an-issue-comment-reaction + */ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#remove-all-labels-from-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#remove-a-label-from-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}", "delete">; + /** + * @see https://docs.github.com/v3/issues/#unlock-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/lock", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-an-issue-reaction + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-deploy-key + */ + "DELETE /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#delete-a-label + */ + "DELETE /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#delete-a-milestone + */ + "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-github-pages-site + */ + "DELETE /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "delete", "switcheroo">; + /** + * @see https://docs.github.com/rest/reference/pulls#delete-a-review-comment-for-a-pull-request + */ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-a-pull-request-comment-reaction + */ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/pulls#remove-requested-reviewers-from-a-pull-request + */ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "delete">; + /** + * @see https://docs.github.com/rest/reference/pulls#delete-a-pending-review-for-a-pull-request + */ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-release-asset + */ + "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-release + */ + "DELETE /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/activity#delete-a-repository-subscription + */ + "DELETE /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "delete">; + /** + * @see https://docs.github.com/v3/repos/#disable-vulnerability-alerts + */ + "DELETE /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "delete", "dorian">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-group-from-an-enterprise + */ + "DELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-user-from-an-enterprise + */ + "DELETE /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "delete">; + /** + * @see https://docs.github.com/v3/scim/#delete-a-scim-user-from-an-organization + */ + "DELETE /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#delete-a-team-legacy + */ + "DELETE /teams/{team_id}": Operation<"/teams/{team_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-legacy + */ + "DELETE /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-comment-legacy + */ + "DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#remove-team-member-legacy + */ + "DELETE /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user-legacy + */ + "DELETE /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-project-from-a-team-legacy + */ + "DELETE /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-repository-from-a-team-legacy + */ + "DELETE /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#unblock-a-user + */ + "DELETE /user/blocks/{username}": Operation<"/user/blocks/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#delete-an-email-address-for-the-authenticated-user + */ + "DELETE /user/emails": Operation<"/user/emails", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#unfollow-a-user + */ + "DELETE /user/following/{username}": Operation<"/user/following/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user + */ + "DELETE /user/gpg_keys/{gpg_key_id}": Operation<"/user/gpg_keys/{gpg_key_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#remove-a-repository-from-an-app-installation + */ + "DELETE /user/installations/{installation_id}/repositories/{repository_id}": Operation<"/user/installations/{installation_id}/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-from-your-public-repositories + */ + "DELETE /user/interaction-limits": Operation<"/user/interaction-limits", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user + */ + "DELETE /user/keys/{key_id}": Operation<"/user/keys/{key_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/migrations#delete-a-user-migration-archive + */ + "DELETE /user/migrations/{migration_id}/archive": Operation<"/user/migrations/{migration_id}/archive", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#unlock-a-user-repository + */ + "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock": Operation<"/user/migrations/{migration_id}/repos/{repo_name}/lock", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/repos#decline-a-repository-invitation + */ + "DELETE /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/activity#unstar-a-repository-for-the-authenticated-user + */ + "DELETE /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "delete">; + /** + * @see + */ + "GET /": Operation<"/", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-the-authenticated-app + */ + "GET /app": Operation<"/app", "get">; + /** + * @see https://docs.github.com/v3/apps#get-a-webhook-configuration-for-an-app + */ + "GET /app/hook/config": Operation<"/app/hook/config", "get">; + /** + * @see https://docs.github.com/v3/apps/#list-installations-for-the-authenticated-app + */ + "GET /app/installations": Operation<"/app/installations", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-an-installation-for-the-authenticated-app + */ + "GET /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-grants + */ + "GET /applications/grants": Operation<"/applications/grants", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-grant + */ + "GET /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#check-an-authorization + */ + "GET /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-an-app + */ + "GET /apps/{app_slug}": Operation<"/apps/{app_slug}", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-authorizations + */ + "GET /authorizations": Operation<"/authorizations", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-authorization + */ + "GET /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "get">; + /** + * @see https://docs.github.com/v3/codes_of_conduct/#get-all-codes-of-conduct + */ + "GET /codes_of_conduct": Operation<"/codes_of_conduct", "get", "scarlet-witch">; + /** + * @see https://docs.github.com/v3/codes_of_conduct/#get-a-code-of-conduct + */ + "GET /codes_of_conduct/{key}": Operation<"/codes_of_conduct/{key}", "get", "scarlet-witch">; + /** + * @see https://docs.github.com/v3/emojis/#get-emojis + */ + "GET /emojis": Operation<"/emojis", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-github-actions-permissions-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-selected-organizations-enabled-for-github-actions-in-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-allowed-actions-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runner-groups-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-group-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-in-a-group-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners": Operation<"/enterprises/{enterprise}/actions/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-runner-applications-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners/downloads": Operation<"/enterprises/{enterprise}/actions/runners/downloads", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-enterprise + */ + "GET /enterprises/{enterprise}/settings/billing/actions": Operation<"/enterprises/{enterprise}/settings/billing/actions", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-enterprise + */ + "GET /enterprises/{enterprise}/settings/billing/packages": Operation<"/enterprises/{enterprise}/settings/billing/packages", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-enterprise + */ + "GET /enterprises/{enterprise}/settings/billing/shared-storage": Operation<"/enterprises/{enterprise}/settings/billing/shared-storage", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events + */ + "GET /events": Operation<"/events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-feeds + */ + "GET /feeds": Operation<"/feeds", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gists-for-the-authenticated-user + */ + "GET /gists": Operation<"/gists", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-public-gists + */ + "GET /gists/public": Operation<"/gists/public", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-starred-gists + */ + "GET /gists/starred": Operation<"/gists/starred", "get">; + /** + * @see https://docs.github.com/v3/gists/#get-a-gist + */ + "GET /gists/{gist_id}": Operation<"/gists/{gist_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/gists#list-gist-comments + */ + "GET /gists/{gist_id}/comments": Operation<"/gists/{gist_id}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/gists#get-a-gist-comment + */ + "GET /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gist-commits + */ + "GET /gists/{gist_id}/commits": Operation<"/gists/{gist_id}/commits", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gist-forks + */ + "GET /gists/{gist_id}/forks": Operation<"/gists/{gist_id}/forks", "get">; + /** + * @see https://docs.github.com/v3/gists/#check-if-a-gist-is-starred + */ + "GET /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "get">; + /** + * @see https://docs.github.com/v3/gists/#get-a-gist-revision + */ + "GET /gists/{gist_id}/{sha}": Operation<"/gists/{gist_id}/{sha}", "get">; + /** + * @see https://docs.github.com/v3/gitignore/#get-all-gitignore-templates + */ + "GET /gitignore/templates": Operation<"/gitignore/templates", "get">; + /** + * @see https://docs.github.com/v3/gitignore/#get-a-gitignore-template + */ + "GET /gitignore/templates/{name}": Operation<"/gitignore/templates/{name}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-app-installation + */ + "GET /installation/repositories": Operation<"/installation/repositories", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user + */ + "GET /issues": Operation<"/issues", "get">; + /** + * @see https://docs.github.com/v3/licenses/#get-all-commonly-used-licenses + */ + "GET /licenses": Operation<"/licenses", "get">; + /** + * @see https://docs.github.com/v3/licenses/#get-a-license + */ + "GET /licenses/{license}": Operation<"/licenses/{license}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account + */ + "GET /marketplace_listing/accounts/{account_id}": Operation<"/marketplace_listing/accounts/{account_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-plans + */ + "GET /marketplace_listing/plans": Operation<"/marketplace_listing/plans", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan + */ + "GET /marketplace_listing/plans/{plan_id}/accounts": Operation<"/marketplace_listing/plans/{plan_id}/accounts", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account-stubbed + */ + "GET /marketplace_listing/stubbed/accounts/{account_id}": Operation<"/marketplace_listing/stubbed/accounts/{account_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-plans-stubbed + */ + "GET /marketplace_listing/stubbed/plans": Operation<"/marketplace_listing/stubbed/plans", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan-stubbed + */ + "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts": Operation<"/marketplace_listing/stubbed/plans/{plan_id}/accounts", "get">; + /** + * @see https://docs.github.com/v3/meta/#get-github-meta-information + */ + "GET /meta": Operation<"/meta", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-network-of-repositories + */ + "GET /networks/{owner}/{repo}/events": Operation<"/networks/{owner}/{repo}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user + */ + "GET /notifications": Operation<"/notifications", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-a-thread + */ + "GET /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-a-thread-subscription-for-the-authenticated-user + */ + "GET /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "get">; + /** + * @see + */ + "GET /octocat": Operation<"/octocat", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations + */ + "GET /organizations": Operation<"/organizations", "get">; + /** + * @see https://docs.github.com/v3/orgs/#get-an-organization + */ + "GET /orgs/{org}": Operation<"/orgs/{org}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-an-organization + */ + "GET /orgs/{org}/actions/permissions": Operation<"/orgs/{org}/actions/permissions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization + */ + "GET /orgs/{org}/actions/permissions/repositories": Operation<"/orgs/{org}/actions/permissions/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-an-organization + */ + "GET /orgs/{org}/actions/permissions/selected-actions": Operation<"/orgs/{org}/actions/permissions/selected-actions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups": Operation<"/orgs/{org}/actions/runner-groups", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-group-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-organization + */ + "GET /orgs/{org}/actions/runners": Operation<"/orgs/{org}/actions/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-organization + */ + "GET /orgs/{org}/actions/runners/downloads": Operation<"/orgs/{org}/actions/runners/downloads", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-an-organization + */ + "GET /orgs/{org}/actions/runners/{runner_id}": Operation<"/orgs/{org}/actions/runners/{runner_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-organization-secrets + */ + "GET /orgs/{org}/actions/secrets": Operation<"/orgs/{org}/actions/secrets", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-an-organization-public-key + */ + "GET /orgs/{org}/actions/secrets/public-key": Operation<"/orgs/{org}/actions/secrets/public-key", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-an-organization-secret + */ + "GET /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret + */ + "GET /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-users-blocked-by-an-organization + */ + "GET /orgs/{org}/blocks": Operation<"/orgs/{org}/blocks", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#check-if-a-user-is-blocked-by-an-organization + */ + "GET /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization + */ + "GET /orgs/{org}/credential-authorizations": Operation<"/orgs/{org}/credential-authorizations", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-organization-events + */ + "GET /orgs/{org}/events": Operation<"/orgs/{org}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-webhooks + */ + "GET /orgs/{org}/hooks": Operation<"/orgs/{org}/hooks", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#get-an-organization-webhook + */ + "GET /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "get">; + /** + * @see https://docs.github.com/v3/orgs#get-a-webhook-configuration-for-an-organization + */ + "GET /orgs/{org}/hooks/{hook_id}/config": Operation<"/orgs/{org}/hooks/{hook_id}/config", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-an-organization-installation-for-the-authenticated-app + */ + "GET /orgs/{org}/installation": Operation<"/orgs/{org}/installation", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-app-installations-for-an-organization + */ + "GET /orgs/{org}/installations": Operation<"/orgs/{org}/installations", "get">; + /** + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-an-organization + */ + "GET /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-pending-organization-invitations + */ + "GET /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-invitation-teams + */ + "GET /orgs/{org}/invitations/{invitation_id}/teams": Operation<"/orgs/{org}/invitations/{invitation_id}/teams", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user + */ + "GET /orgs/{org}/issues": Operation<"/orgs/{org}/issues", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-members + */ + "GET /orgs/{org}/members": Operation<"/orgs/{org}/members", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#check-organization-membership-for-a-user + */ + "GET /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#get-organization-membership-for-a-user + */ + "GET /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-organization-migrations + */ + "GET /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-an-organization-migration-status + */ + "GET /orgs/{org}/migrations/{migration_id}": Operation<"/orgs/{org}/migrations/{migration_id}", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#download-an-organization-migration-archive + */ + "GET /orgs/{org}/migrations/{migration_id}/archive": Operation<"/orgs/{org}/migrations/{migration_id}/archive", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-repositories-in-an-organization-migration + */ + "GET /orgs/{org}/migrations/{migration_id}/repositories": Operation<"/orgs/{org}/migrations/{migration_id}/repositories", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-outside-collaborators-for-an-organization + */ + "GET /orgs/{org}/outside_collaborators": Operation<"/orgs/{org}/outside_collaborators", "get">; + /** + * @see https://docs.github.com/v3/projects/#list-organization-projects + */ + "GET /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-public-organization-members + */ + "GET /orgs/{org}/public_members": Operation<"/orgs/{org}/public_members", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#check-public-organization-membership-for-a-user + */ + "GET /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-organization-repositories + */ + "GET /orgs/{org}/repos": Operation<"/orgs/{org}/repos", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-organization + */ + "GET /orgs/{org}/settings/billing/actions": Operation<"/orgs/{org}/settings/billing/actions", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-organization + */ + "GET /orgs/{org}/settings/billing/packages": Operation<"/orgs/{org}/settings/billing/packages", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-organization + */ + "GET /orgs/{org}/settings/billing/shared-storage": Operation<"/orgs/{org}/settings/billing/shared-storage", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-an-organization + */ + "GET /orgs/{org}/team-sync/groups": Operation<"/orgs/{org}/team-sync/groups", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-teams + */ + "GET /orgs/{org}/teams": Operation<"/orgs/{org}/teams", "get">; + /** + * @see https://docs.github.com/v3/teams/#get-a-team-by-name + */ + "GET /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussions + */ + "GET /orgs/{org}/teams/{team_slug}/discussions": Operation<"/orgs/{org}/teams/{team_slug}/discussions", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-comment + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations + */ + "GET /orgs/{org}/teams/{team_slug}/invitations": Operation<"/orgs/{org}/teams/{team_slug}/invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-team-members + */ + "GET /orgs/{org}/teams/{team_slug}/members": Operation<"/orgs/{org}/teams/{team_slug}/members", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user + */ + "GET /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-team-projects + */ + "GET /orgs/{org}/teams/{team_slug}/projects": Operation<"/orgs/{org}/teams/{team_slug}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-project + */ + "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#list-team-repositories + */ + "GET /orgs/{org}/teams/{team_slug}/repos": Operation<"/orgs/{org}/teams/{team_slug}/repos", "get">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository + */ + "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team + */ + "GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": Operation<"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-child-teams + */ + "GET /orgs/{org}/teams/{team_slug}/teams": Operation<"/orgs/{org}/teams/{team_slug}/teams", "get">; + /** + * @see https://docs.github.com/rest/reference/projects#get-a-project-card + */ + "GET /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#get-a-project-column + */ + "GET /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-cards + */ + "GET /projects/columns/{column_id}/cards": Operation<"/projects/columns/{column_id}/cards", "get", "inertia">; + /** + * @see https://docs.github.com/v3/projects/#get-a-project + */ + "GET /projects/{project_id}": Operation<"/projects/{project_id}", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-collaborators + */ + "GET /projects/{project_id}/collaborators": Operation<"/projects/{project_id}/collaborators", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#get-project-permission-for-a-user + */ + "GET /projects/{project_id}/collaborators/{username}/permission": Operation<"/projects/{project_id}/collaborators/{username}/permission", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-columns + */ + "GET /projects/{project_id}/columns": Operation<"/projects/{project_id}/columns", "get", "inertia">; + /** + * @see https://docs.github.com/v3/rate_limit/#get-rate-limit-status-for-the-authenticated-user + */ + "GET /rate_limit": Operation<"/rate_limit", "get">; + /** + * @see https://docs.github.com/v3/repos/#get-a-repository + */ + "GET /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-artifacts-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/artifacts": Operation<"/repos/{owner}/{repo}/actions/artifacts", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-an-artifact + */ + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#download-an-artifact + */ + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-job-for-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#download-job-logs-for-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}/logs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/permissions": Operation<"/repos/{owner}/{repo}/actions/permissions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/permissions/selected-actions": Operation<"/repos/{owner}/{repo}/actions/permissions/selected-actions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners": Operation<"/repos/{owner}/{repo}/actions/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners/downloads": Operation<"/repos/{owner}/{repo}/actions/runners/downloads", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners/{runner_id}": Operation<"/repos/{owner}/{repo}/actions/runners/{runner_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runs": Operation<"/repos/{owner}/{repo}/actions/runs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-run-artifacts + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-jobs-for-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/jobs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#download-workflow-run-logs + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/logs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-workflow-run-usage + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/timing", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-secrets + */ + "GET /repos/{owner}/{repo}/actions/secrets": Operation<"/repos/{owner}/{repo}/actions/secrets", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-repository-public-key + */ + "GET /repos/{owner}/{repo}/actions/secrets/public-key": Operation<"/repos/{owner}/{repo}/actions/secrets/public-key", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-repository-secret + */ + "GET /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-workflows + */ + "GET /repos/{owner}/{repo}/actions/workflows": Operation<"/repos/{owner}/{repo}/actions/workflows", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-workflow + */ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs + */ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-workflow-usage + */ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-assignees + */ + "GET /repos/{owner}/{repo}/assignees": Operation<"/repos/{owner}/{repo}/assignees", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#check-if-a-user-can-be-assigned + */ + "GET /repos/{owner}/{repo}/assignees/{assignee}": Operation<"/repos/{owner}/{repo}/assignees/{assignee}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-branches + */ + "GET /repos/{owner}/{repo}/branches": Operation<"/repos/{owner}/{repo}/branches", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}": Operation<"/repos/{owner}/{repo}/branches/{branch}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-branch-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-admin-branch-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-pull-request-review-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-commit-signature-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "get", "zzzax">; + /** + * @see https://docs.github.com/rest/reference/repos#get-status-checks-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-all-status-check-contexts + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-access-restrictions + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-apps-with-access-to-the-protected-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-teams-with-access-to-the-protected-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-users-with-access-to-the-protected-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#get-a-check-run + */ + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-run-annotations + */ + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#get-a-check-suite + */ + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite + */ + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository + */ + "GET /repos/{owner}/{repo}/code-scanning/alerts": Operation<"/repos/{owner}/{repo}/code-scanning/alerts", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert + * @deprecated "alert_id" is now "alert_number" + */ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_id}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert + */ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#list-recent-analyses + */ + "GET /repos/{owner}/{repo}/code-scanning/analyses": Operation<"/repos/{owner}/{repo}/code-scanning/analyses", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-collaborators + */ + "GET /repos/{owner}/{repo}/collaborators": Operation<"/repos/{owner}/{repo}/collaborators", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#check-if-a-user-is-a-repository-collaborator + */ + "GET /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-repository-permissions-for-a-user + */ + "GET /repos/{owner}/{repo}/collaborators/{username}/permission": Operation<"/repos/{owner}/{repo}/collaborators/{username}/permission", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-comments-for-a-repository + */ + "GET /repos/{owner}/{repo}/comments": Operation<"/repos/{owner}/{repo}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-commit-comment + */ + "GET /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-commit-comment + */ + "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commits + */ + "GET /repos/{owner}/{repo}/commits": Operation<"/repos/{owner}/{repo}/commits", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-branches-for-head-commit + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", "get", "groot">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-comments + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-pull-requests-associated-with-a-commit + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/pulls", "get", "groot">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-commit + */ + "GET /repos/{owner}/{repo}/commits/{ref}": Operation<"/repos/{owner}/{repo}/commits/{ref}", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-runs-for-a-git-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/check-runs": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-runs", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/check-suites": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-suites", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-combined-status-for-a-specific-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/status": Operation<"/repos/{owner}/{repo}/commits/{ref}/status", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-statuses-for-a-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/statuses": Operation<"/repos/{owner}/{repo}/commits/{ref}/statuses", "get">; + /** + * @see https://docs.github.com/v3/codes_of_conduct/#get-the-code-of-conduct-for-a-repository + */ + "GET /repos/{owner}/{repo}/community/code_of_conduct": Operation<"/repos/{owner}/{repo}/community/code_of_conduct", "get", "scarlet-witch">; + /** + * @see https://docs.github.com/rest/reference/repos#get-community-profile-metrics + */ + "GET /repos/{owner}/{repo}/community/profile": Operation<"/repos/{owner}/{repo}/community/profile", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#compare-two-commits + */ + "GET /repos/{owner}/{repo}/compare/{base}...{head}": Operation<"/repos/{owner}/{repo}/compare/{base}...{head}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-repository-content + */ + "GET /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-contributors + */ + "GET /repos/{owner}/{repo}/contributors": Operation<"/repos/{owner}/{repo}/contributors", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-deployments + */ + "GET /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-deployment + */ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-deployment-statuses + */ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-deployment-status + */ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repository-events + */ + "GET /repos/{owner}/{repo}/events": Operation<"/repos/{owner}/{repo}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-forks + */ + "GET /repos/{owner}/{repo}/forks": Operation<"/repos/{owner}/{repo}/forks", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-blob + */ + "GET /repos/{owner}/{repo}/git/blobs/{file_sha}": Operation<"/repos/{owner}/{repo}/git/blobs/{file_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-commit + */ + "GET /repos/{owner}/{repo}/git/commits/{commit_sha}": Operation<"/repos/{owner}/{repo}/git/commits/{commit_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#list-matching-references + */ + "GET /repos/{owner}/{repo}/git/matching-refs/{ref}": Operation<"/repos/{owner}/{repo}/git/matching-refs/{ref}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-reference + */ + "GET /repos/{owner}/{repo}/git/ref/{ref}": Operation<"/repos/{owner}/{repo}/git/ref/{ref}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-tag + */ + "GET /repos/{owner}/{repo}/git/tags/{tag_sha}": Operation<"/repos/{owner}/{repo}/git/tags/{tag_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-tree + */ + "GET /repos/{owner}/{repo}/git/trees/{tree_sha}": Operation<"/repos/{owner}/{repo}/git/trees/{tree_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-webhooks + */ + "GET /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-repository-webhook + */ + "GET /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "get">; + /** + * @see https://docs.github.com/v3/repos#get-a-webhook-configuration-for-a-repository + */ + "GET /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-an-import-status + */ + "GET /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-commit-authors + */ + "GET /repos/{owner}/{repo}/import/authors": Operation<"/repos/{owner}/{repo}/import/authors", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-large-files + */ + "GET /repos/{owner}/{repo}/import/large_files": Operation<"/repos/{owner}/{repo}/import/large_files", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-a-repository-installation-for-the-authenticated-app + */ + "GET /repos/{owner}/{repo}/installation": Operation<"/repos/{owner}/{repo}/installation", "get">; + /** + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-a-repository + */ + "GET /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations + */ + "GET /repos/{owner}/{repo}/invitations": Operation<"/repos/{owner}/{repo}/invitations", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-repository-issues + */ + "GET /repos/{owner}/{repo}/issues": Operation<"/repos/{owner}/{repo}/issues", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-comments-for-a-repository + */ + "GET /repos/{owner}/{repo}/issues/comments": Operation<"/repos/{owner}/{repo}/issues/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-an-issue-comment + */ + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue-comment + */ + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-events-for-a-repository + */ + "GET /repos/{owner}/{repo}/issues/events": Operation<"/repos/{owner}/{repo}/issues/events", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-an-issue-event + */ + "GET /repos/{owner}/{repo}/issues/events/{event_id}": Operation<"/repos/{owner}/{repo}/issues/events/{event_id}", "get">; + /** + * @see https://docs.github.com/v3/issues/#get-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-comments + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/comments": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-events + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/events": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#list-timeline-events-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/timeline", "get", "mockingbird">; + /** + * @see https://docs.github.com/rest/reference/repos#list-deploy-keys + */ + "GET /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-deploy-key + */ + "GET /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-a-repository + */ + "GET /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-a-label + */ + "GET /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-languages + */ + "GET /repos/{owner}/{repo}/languages": Operation<"/repos/{owner}/{repo}/languages", "get">; + /** + * @see https://docs.github.com/v3/licenses/#get-the-license-for-a-repository + */ + "GET /repos/{owner}/{repo}/license": Operation<"/repos/{owner}/{repo}/license", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-milestones + */ + "GET /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-a-milestone + */ + "GET /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-issues-in-a-milestone + */ + "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}/labels", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user + */ + "GET /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-github-pages-site + */ + "GET /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-github-pages-builds + */ + "GET /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-latest-pages-build + */ + "GET /repos/{owner}/{repo}/pages/builds/latest": Operation<"/repos/{owner}/{repo}/pages/builds/latest", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-github-pages-build + */ + "GET /repos/{owner}/{repo}/pages/builds/{build_id}": Operation<"/repos/{owner}/{repo}/pages/builds/{build_id}", "get">; + /** + * @see https://docs.github.com/v3/projects/#list-repository-projects + */ + "GET /repos/{owner}/{repo}/projects": Operation<"/repos/{owner}/{repo}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/v3/pulls/#list-pull-requests + */ + "GET /repos/{owner}/{repo}/pulls": Operation<"/repos/{owner}/{repo}/pulls", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-in-a-repository + */ + "GET /repos/{owner}/{repo}/pulls/comments": Operation<"/repos/{owner}/{repo}/pulls/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#get-a-review-comment-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment + */ + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/pulls/#get-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-on-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments", "get">; + /** + * @see https://docs.github.com/v3/pulls/#list-commits-on-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/commits", "get">; + /** + * @see https://docs.github.com/v3/pulls/#list-pull-requests-files + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/files": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/files", "get">; + /** + * @see https://docs.github.com/v3/pulls/#check-if-a-pull-request-has-been-merged + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-requested-reviewers-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-reviews-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#get-a-review-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-comments-for-a-pull-request-review + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-repository-readme + */ + "GET /repos/{owner}/{repo}/readme": Operation<"/repos/{owner}/{repo}/readme", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-releases + */ + "GET /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-release-asset + */ + "GET /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-latest-release + */ + "GET /repos/{owner}/{repo}/releases/latest": Operation<"/repos/{owner}/{repo}/releases/latest", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name + */ + "GET /repos/{owner}/{repo}/releases/tags/{tag}": Operation<"/repos/{owner}/{repo}/releases/tags/{tag}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-release + */ + "GET /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-release-assets + */ + "GET /repos/{owner}/{repo}/releases/{release_id}/assets": Operation<"/repos/{owner}/{repo}/releases/{release_id}/assets", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-stargazers + */ + "GET /repos/{owner}/{repo}/stargazers": Operation<"/repos/{owner}/{repo}/stargazers", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-activity + */ + "GET /repos/{owner}/{repo}/stats/code_frequency": Operation<"/repos/{owner}/{repo}/stats/code_frequency", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-last-year-of-commit-activity + */ + "GET /repos/{owner}/{repo}/stats/commit_activity": Operation<"/repos/{owner}/{repo}/stats/commit_activity", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-all-contributor-commit-activity + */ + "GET /repos/{owner}/{repo}/stats/contributors": Operation<"/repos/{owner}/{repo}/stats/contributors", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-count + */ + "GET /repos/{owner}/{repo}/stats/participation": Operation<"/repos/{owner}/{repo}/stats/participation", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-hourly-commit-count-for-each-day + */ + "GET /repos/{owner}/{repo}/stats/punch_card": Operation<"/repos/{owner}/{repo}/stats/punch_card", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-watchers + */ + "GET /repos/{owner}/{repo}/subscribers": Operation<"/repos/{owner}/{repo}/subscribers", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-a-repository-subscription + */ + "GET /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-tags + */ + "GET /repos/{owner}/{repo}/tags": Operation<"/repos/{owner}/{repo}/tags", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#download-a-repository-archive + */ + "GET /repos/{owner}/{repo}/tarball/{ref}": Operation<"/repos/{owner}/{repo}/tarball/{ref}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-teams + */ + "GET /repos/{owner}/{repo}/teams": Operation<"/repos/{owner}/{repo}/teams", "get">; + /** + * @see https://docs.github.com/v3/repos/#get-all-repository-topics + */ + "GET /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "get", "mercy">; + /** + * @see https://docs.github.com/rest/reference/repos#get-repository-clones + */ + "GET /repos/{owner}/{repo}/traffic/clones": Operation<"/repos/{owner}/{repo}/traffic/clones", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-top-referral-paths + */ + "GET /repos/{owner}/{repo}/traffic/popular/paths": Operation<"/repos/{owner}/{repo}/traffic/popular/paths", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-top-referral-sources + */ + "GET /repos/{owner}/{repo}/traffic/popular/referrers": Operation<"/repos/{owner}/{repo}/traffic/popular/referrers", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-page-views + */ + "GET /repos/{owner}/{repo}/traffic/views": Operation<"/repos/{owner}/{repo}/traffic/views", "get">; + /** + * @see https://docs.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository + */ + "GET /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "get", "dorian">; + /** + * @see https://docs.github.com/rest/reference/repos#download-a-repository-archive + */ + "GET /repos/{owner}/{repo}/zipball/{ref}": Operation<"/repos/{owner}/{repo}/zipball/{ref}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-public-repositories + */ + "GET /repositories": Operation<"/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-provisioned-scim groups-for-an-enterprise + */ + "GET /scim/v2/enterprises/{enterprise}/Groups": Operation<"/scim/v2/enterprises/{enterprise}/Groups", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise group + */ + "GET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-scim-provisioned-identities-for-an-enterprise + */ + "GET /scim/v2/enterprises/{enterprise}/Users": Operation<"/scim/v2/enterprises/{enterprise}/Users", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise-user + */ + "GET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "get">; + /** + * @see https://docs.github.com/v3/scim/#list-scim-provisioned-identities + */ + "GET /scim/v2/organizations/{org}/Users": Operation<"/scim/v2/organizations/{org}/Users", "get">; + /** + * @see https://docs.github.com/v3/scim/#get-scim-provisioning-information-for-a-user + */ + "GET /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "get">; + /** + * @see https://docs.github.com/v3/search/#search-code + */ + "GET /search/code": Operation<"/search/code", "get">; + /** + * @see https://docs.github.com/v3/search/#search-commits + */ + "GET /search/commits": Operation<"/search/commits", "get", "cloak">; + /** + * @see https://docs.github.com/v3/search/#search-issues-and-pull-requests + */ + "GET /search/issues": Operation<"/search/issues", "get">; + /** + * @see https://docs.github.com/v3/search/#search-labels + */ + "GET /search/labels": Operation<"/search/labels", "get">; + /** + * @see https://docs.github.com/v3/search/#search-repositories + */ + "GET /search/repositories": Operation<"/search/repositories", "get">; + /** + * @see https://docs.github.com/v3/search/#search-topics + */ + "GET /search/topics": Operation<"/search/topics", "get", "mercy">; + /** + * @see https://docs.github.com/v3/search/#search-users + */ + "GET /search/users": Operation<"/search/users", "get">; + /** + * @see https://docs.github.com/v3/teams/#get-a-team-legacy + */ + "GET /teams/{team_id}": Operation<"/teams/{team_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussions-legacy + */ + "GET /teams/{team_id}/discussions": Operation<"/teams/{team_id}/discussions", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-comment-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations-legacy + */ + "GET /teams/{team_id}/invitations": Operation<"/teams/{team_id}/invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-team-members-legacy + */ + "GET /teams/{team_id}/members": Operation<"/teams/{team_id}/members", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-team-member-legacy + */ + "GET /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user-legacy + */ + "GET /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-team-projects-legacy + */ + "GET /teams/{team_id}/projects": Operation<"/teams/{team_id}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-project-legacy + */ + "GET /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#list-team-repositories-legacy + */ + "GET /teams/{team_id}/repos": Operation<"/teams/{team_id}/repos", "get">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy + */ + "GET /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team-legacy + */ + "GET /teams/{team_id}/team-sync/group-mappings": Operation<"/teams/{team_id}/team-sync/group-mappings", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-child-teams-legacy + */ + "GET /teams/{team_id}/teams": Operation<"/teams/{team_id}/teams", "get">; + /** + * @see https://docs.github.com/v3/users/#get-the-authenticated-user + */ + "GET /user": Operation<"/user", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user + */ + "GET /user/blocks": Operation<"/user/blocks", "get">; + /** + * @see https://docs.github.com/rest/reference/users#check-if-a-user-is-blocked-by-the-authenticated-user + */ + "GET /user/blocks/{username}": Operation<"/user/blocks/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-email-addresses-for-the-authenticated-user + */ + "GET /user/emails": Operation<"/user/emails", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-followers-of-the-authenticated-user + */ + "GET /user/followers": Operation<"/user/followers", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-the-people-the-authenticated-user-follows + */ + "GET /user/following": Operation<"/user/following", "get">; + /** + * @see https://docs.github.com/rest/reference/users#check-if-a-person-is-followed-by-the-authenticated-user + */ + "GET /user/following/{username}": Operation<"/user/following/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-the-authenticated-user + */ + "GET /user/gpg_keys": Operation<"/user/gpg_keys", "get">; + /** + * @see https://docs.github.com/rest/reference/users#get-a-gpg-key-for-the-authenticated-user + */ + "GET /user/gpg_keys/{gpg_key_id}": Operation<"/user/gpg_keys/{gpg_key_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-app-installations-accessible-to-the-user-access-token + */ + "GET /user/installations": Operation<"/user/installations", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-user-access-token + */ + "GET /user/installations/{installation_id}/repositories": Operation<"/user/installations/{installation_id}/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-your-public-repositories + */ + "GET /user/interaction-limits": Operation<"/user/interaction-limits", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user + */ + "GET /user/issues": Operation<"/user/issues", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user + */ + "GET /user/keys": Operation<"/user/keys", "get">; + /** + * @see https://docs.github.com/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user + */ + "GET /user/keys/{key_id}": Operation<"/user/keys/{key_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user + */ + "GET /user/marketplace_purchases": Operation<"/user/marketplace_purchases", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user-stubbed + */ + "GET /user/marketplace_purchases/stubbed": Operation<"/user/marketplace_purchases/stubbed", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-memberships-for-the-authenticated-user + */ + "GET /user/memberships/orgs": Operation<"/user/memberships/orgs", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#get-an-organization-membership-for-the-authenticated-user + */ + "GET /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-user-migrations + */ + "GET /user/migrations": Operation<"/user/migrations", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-a-user-migration-status + */ + "GET /user/migrations/{migration_id}": Operation<"/user/migrations/{migration_id}", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive + */ + "GET /user/migrations/{migration_id}/archive": Operation<"/user/migrations/{migration_id}/archive", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-repositories-for-a-user-migration + */ + "GET /user/migrations/{migration_id}/repositories": Operation<"/user/migrations/{migration_id}/repositories", "get", "wyandotte">; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations-for-the-authenticated-user + */ + "GET /user/orgs": Operation<"/user/orgs", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-public-email-addresses-for-the-authenticated-user + */ + "GET /user/public_emails": Operation<"/user/public_emails", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repositories-for-the-authenticated-user + */ + "GET /user/repos": Operation<"/user/repos", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations-for-the-authenticated-user + */ + "GET /user/repository_invitations": Operation<"/user/repository_invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-the-authenticated-user + */ + "GET /user/starred": Operation<"/user/starred", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#check-if-a-repository-is-starred-by-the-authenticated-user + */ + "GET /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-the-authenticated-user + */ + "GET /user/subscriptions": Operation<"/user/subscriptions", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-teams-for-the-authenticated-user + */ + "GET /user/teams": Operation<"/user/teams", "get">; + /** + * @see https://docs.github.com/v3/users/#list-users + */ + "GET /users": Operation<"/users", "get">; + /** + * @see https://docs.github.com/v3/users/#get-a-user + */ + "GET /users/{username}": Operation<"/users/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-events-for-the-authenticated-user + */ + "GET /users/{username}/events": Operation<"/users/{username}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-organization-events-for-the-authenticated-user + */ + "GET /users/{username}/events/orgs/{org}": Operation<"/users/{username}/events/orgs/{org}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-user + */ + "GET /users/{username}/events/public": Operation<"/users/{username}/events/public", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-followers-of-a-user + */ + "GET /users/{username}/followers": Operation<"/users/{username}/followers", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-the-people-a-user-follows + */ + "GET /users/{username}/following": Operation<"/users/{username}/following", "get">; + /** + * @see https://docs.github.com/rest/reference/users#check-if-a-user-follows-another-user + */ + "GET /users/{username}/following/{target_user}": Operation<"/users/{username}/following/{target_user}", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gists-for-a-user + */ + "GET /users/{username}/gists": Operation<"/users/{username}/gists", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-a-user + */ + "GET /users/{username}/gpg_keys": Operation<"/users/{username}/gpg_keys", "get">; + /** + * @see https://docs.github.com/v3/users/#get-contextual-information-for-a-user + */ + "GET /users/{username}/hovercard": Operation<"/users/{username}/hovercard", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-a-user-installation-for-the-authenticated-app + */ + "GET /users/{username}/installation": Operation<"/users/{username}/installation", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-public-keys-for-a-user + */ + "GET /users/{username}/keys": Operation<"/users/{username}/keys", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations-for-a-user + */ + "GET /users/{username}/orgs": Operation<"/users/{username}/orgs", "get">; + /** + * @see https://docs.github.com/v3/projects/#list-user-projects + */ + "GET /users/{username}/projects": Operation<"/users/{username}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/activity#list-events-received-by-the-authenticated-user + */ + "GET /users/{username}/received_events": Operation<"/users/{username}/received_events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-received-by-a-user + */ + "GET /users/{username}/received_events/public": Operation<"/users/{username}/received_events/public", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repositories-for-a-user + */ + "GET /users/{username}/repos": Operation<"/users/{username}/repos", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-a-user + */ + "GET /users/{username}/settings/billing/actions": Operation<"/users/{username}/settings/billing/actions", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-a-user + */ + "GET /users/{username}/settings/billing/packages": Operation<"/users/{username}/settings/billing/packages", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-a-user + */ + "GET /users/{username}/settings/billing/shared-storage": Operation<"/users/{username}/settings/billing/shared-storage", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-a-user + */ + "GET /users/{username}/starred": Operation<"/users/{username}/starred", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-a-user + */ + "GET /users/{username}/subscriptions": Operation<"/users/{username}/subscriptions", "get">; + /** + * @see + */ + "GET /zen": Operation<"/zen", "get">; + /** + * @see https://docs.github.com/v3/apps#update-a-webhook-configuration-for-an-app + */ + "PATCH /app/hook/config": Operation<"/app/hook/config", "patch">; + /** + * @see https://docs.github.com/rest/reference/apps#reset-a-token + */ + "PATCH /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "patch">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#update-an-existing-authorization + */ + "PATCH /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#update-a-self-hosted-runner-group-for-an-enterprise + */ + "PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "patch">; + /** + * @see https://docs.github.com/v3/gists/#update-a-gist + */ + "PATCH /gists/{gist_id}": Operation<"/gists/{gist_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/gists#update-a-gist-comment + */ + "PATCH /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/activity#mark-a-thread-as-read + */ + "PATCH /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "patch">; + /** + * @see https://docs.github.com/v3/orgs/#update-an-organization + */ + "PATCH /orgs/{org}": Operation<"/orgs/{org}", "patch">; + /** + * @see https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-organization + */ + "PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/orgs#update-an-organization-webhook + */ + "PATCH /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "patch">; + /** + * @see https://docs.github.com/v3/orgs#update-a-webhook-configuration-for-an-organization + */ + "PATCH /orgs/{org}/hooks/{hook_id}/config": Operation<"/orgs/{org}/hooks/{hook_id}/config", "patch">; + /** + * @see https://docs.github.com/v3/teams/#update-a-team + */ + "PATCH /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion + */ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-comment + */ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections + */ + "PATCH /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": Operation<"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", "patch">; + /** + * @see https://docs.github.com/rest/reference/projects#update-a-project-card + */ + "PATCH /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "patch", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#update-a-project-column + */ + "PATCH /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "patch", "inertia">; + /** + * @see https://docs.github.com/v3/projects/#update-a-project + */ + "PATCH /projects/{project_id}": Operation<"/projects/{project_id}", "patch", "inertia">; + /** + * @see https://docs.github.com/v3/repos/#update-a-repository + */ + "PATCH /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-pull-request-review-protection + */ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-status-check-potection + */ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "patch">; + /** + * @see https://docs.github.com/rest/reference/checks#update-a-check-run + */ + "PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/checks#update-repository-preferences-for-check-suites + */ + "PATCH /repos/{owner}/{repo}/check-suites/preferences": Operation<"/repos/{owner}/{repo}/check-suites/preferences", "patch">; + /** + * @see https://docs.github.com/v3/code-scanning/#upload-a-code-scanning-alert + */ + "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-commit-comment + */ + "PATCH /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/git#update-a-reference + */ + "PATCH /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-repository-webhook + */ + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "patch">; + /** + * @see https://docs.github.com/v3/repos#update-a-webhook-configuration-for-a-repository + */ + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "patch">; + /** + * @see https://docs.github.com/rest/reference/migrations#update-an-import + */ + "PATCH /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "patch">; + /** + * @see https://docs.github.com/rest/reference/migrations#map-a-commit-author + */ + "PATCH /repos/{owner}/{repo}/import/authors/{author_id}": Operation<"/repos/{owner}/{repo}/import/authors/{author_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/migrations#update-git-lfs-preference + */ + "PATCH /repos/{owner}/{repo}/import/lfs": Operation<"/repos/{owner}/{repo}/import/lfs", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-repository-invitation + */ + "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/issues#update-an-issue-comment + */ + "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/v3/issues/#update-an-issue + */ + "PATCH /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/issues#update-a-label + */ + "PATCH /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "patch">; + /** + * @see https://docs.github.com/rest/reference/issues#update-a-milestone + */ + "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/pulls#update-a-review-comment-for-a-pull-request + */ + "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/v3/pulls/#update-a-pull-request + */ + "PATCH /repos/{owner}/{repo}/pulls/{pull_number}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-release-asset + */ + "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-release + */ + "PATCH /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-group + */ + "PATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-user + */ + "PATCH /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "patch">; + /** + * @see https://docs.github.com/v3/scim/#update-an-attribute-for-a-scim-user + */ + "PATCH /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "patch">; + /** + * @see https://docs.github.com/v3/teams/#update-a-team-legacy + */ + "PATCH /teams/{team_id}": Operation<"/teams/{team_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-legacy + */ + "PATCH /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-comment-legacy + */ + "PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections-legacy + */ + "PATCH /teams/{team_id}/team-sync/group-mappings": Operation<"/teams/{team_id}/team-sync/group-mappings", "patch">; + /** + * @see https://docs.github.com/v3/users/#update-the-authenticated-user + */ + "PATCH /user": Operation<"/user", "patch">; + /** + * @see https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user + */ + "PATCH /user/email/visibility": Operation<"/user/email/visibility", "patch">; + /** + * @see https://docs.github.com/rest/reference/orgs#update-an-organization-membership-for-the-authenticated-user + */ + "PATCH /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#accept-a-repository-invitation + */ + "PATCH /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "patch">; + /** + * @see https://docs.github.com/v3/apps/#create-a-github-app-from-a-manifest + */ + "POST /app-manifests/{code}/conversions": Operation<"/app-manifests/{code}/conversions", "post">; + /** + * @see https://docs.github.com/v3/apps/#create-an-installation-access-token-for-an-app + */ + "POST /app/installations/{installation_id}/access_tokens": Operation<"/app/installations/{installation_id}/access_tokens", "post">; + /** + * @see https://docs.github.com/rest/reference/apps#check-a-token + */ + "POST /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "post">; + /** + * @see https://docs.github.com/rest/reference/apps#reset-an-authorization + */ + "POST /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "post">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization + */ + "POST /authorizations": Operation<"/authorizations", "post">; + /** + * @see https://docs.github.com/rest/reference/apps#create-a-content-attachment + */ + "POST /content_references/{content_reference_id}/attachments": Operation<"/content_references/{content_reference_id}/attachments", "post", "corsair">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#create-self-hosted-runner-group-for-an-enterprise + */ + "POST /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "post">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#create-a-registration-token-for-an-enterprise + */ + "POST /enterprises/{enterprise}/actions/runners/registration-token": Operation<"/enterprises/{enterprise}/actions/runners/registration-token", "post">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#create-a-remove-token-for-an-enterprise + */ + "POST /enterprises/{enterprise}/actions/runners/remove-token": Operation<"/enterprises/{enterprise}/actions/runners/remove-token", "post">; + /** + * @see https://docs.github.com/v3/gists/#create-a-gist + */ + "POST /gists": Operation<"/gists", "post">; + /** + * @see https://docs.github.com/rest/reference/gists#create-a-gist-comment + */ + "POST /gists/{gist_id}/comments": Operation<"/gists/{gist_id}/comments", "post">; + /** + * @see https://docs.github.com/v3/gists/#fork-a-gist + */ + "POST /gists/{gist_id}/forks": Operation<"/gists/{gist_id}/forks", "post">; + /** + * @see https://docs.github.com/v3/markdown/#render-a-markdown-document + */ + "POST /markdown": Operation<"/markdown", "post">; + /** + * @see https://docs.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode + */ + "POST /markdown/raw": Operation<"/markdown/raw", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-self-hosted-runner-group-for-an-organization + */ + "POST /orgs/{org}/actions/runner-groups": Operation<"/orgs/{org}/actions/runner-groups", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-organization + */ + "POST /orgs/{org}/actions/runners/registration-token": Operation<"/orgs/{org}/actions/runners/registration-token", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-an-organization + */ + "POST /orgs/{org}/actions/runners/remove-token": Operation<"/orgs/{org}/actions/runners/remove-token", "post">; + /** + * @see https://docs.github.com/rest/reference/orgs#create-an-organization-webhook + */ + "POST /orgs/{org}/hooks": Operation<"/orgs/{org}/hooks", "post">; + /** + * @see https://docs.github.com/rest/reference/orgs#ping-an-organization-webhook + */ + "POST /orgs/{org}/hooks/{hook_id}/pings": Operation<"/orgs/{org}/hooks/{hook_id}/pings", "post">; + /** + * @see https://docs.github.com/rest/reference/orgs#create-an-organization-invitation + */ + "POST /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "post">; + /** + * @see https://docs.github.com/rest/reference/migrations#start-an-organization-migration + */ + "POST /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "post">; + /** + * @see https://docs.github.com/v3/projects/#create-an-organization-project + */ + "POST /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "post", "inertia">; + /** + * @see https://docs.github.com/v3/repos/#create-an-organization-repository + */ + "POST /orgs/{org}/repos": Operation<"/orgs/{org}/repos", "post">; + /** + * @see https://docs.github.com/v3/teams/#create-a-team + */ + "POST /orgs/{org}/teams": Operation<"/orgs/{org}/teams", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion + */ + "POST /orgs/{org}/teams/{team_slug}/discussions": Operation<"/orgs/{org}/teams/{team_slug}/discussions", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-comment + */ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment + */ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion + */ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/projects#move-a-project-card + */ + "POST /projects/columns/cards/{card_id}/moves": Operation<"/projects/columns/cards/{card_id}/moves", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#create-a-project-card + */ + "POST /projects/columns/{column_id}/cards": Operation<"/projects/columns/{column_id}/cards", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#move-a-project-column + */ + "POST /projects/columns/{column_id}/moves": Operation<"/projects/columns/{column_id}/moves", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#create-a-project-column + */ + "POST /projects/{project_id}/columns": Operation<"/projects/{project_id}/columns", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-a-repository + */ + "POST /repos/{owner}/{repo}/actions/runners/registration-token": Operation<"/repos/{owner}/{repo}/actions/runners/registration-token", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-a-repository + */ + "POST /repos/{owner}/{repo}/actions/runners/remove-token": Operation<"/repos/{owner}/{repo}/actions/runners/remove-token", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#cancel-a-workflow-run + */ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/cancel", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#re-run-a-workflow + */ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event + */ + "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#set-admin-branch-protection + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-commit-signature-protection + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "post", "zzzax">; + /** + * @see https://docs.github.com/rest/reference/repos#add-status-check-contexts + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#add-app-access-restrictions + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#add-team-access-restrictions + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#add-user-access-restrictions + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "post">; + /** + * @see https://docs.github.com/rest/reference/checks#create-a-check-run + */ + "POST /repos/{owner}/{repo}/check-runs": Operation<"/repos/{owner}/{repo}/check-runs", "post">; + /** + * @see https://docs.github.com/rest/reference/checks#create-a-check-suite + */ + "POST /repos/{owner}/{repo}/check-suites": Operation<"/repos/{owner}/{repo}/check-suites", "post">; + /** + * @see https://docs.github.com/rest/reference/checks#rerequest-a-check-suite + */ + "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest", "post">; + /** + * @see https://docs.github.com/v3/code-scanning/#upload-a-sarif-analysis + */ + "POST /repos/{owner}/{repo}/code-scanning/sarifs": Operation<"/repos/{owner}/{repo}/code-scanning/sarifs", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-commit-comment + */ + "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-commit-comment + */ + "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-deployment + */ + "POST /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-deployment-status + */ + "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "post">; + /** + * @see https://docs.github.com/v3/repos/#create-a-repository-dispatch-event + */ + "POST /repos/{owner}/{repo}/dispatches": Operation<"/repos/{owner}/{repo}/dispatches", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-fork + */ + "POST /repos/{owner}/{repo}/forks": Operation<"/repos/{owner}/{repo}/forks", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-blob + */ + "POST /repos/{owner}/{repo}/git/blobs": Operation<"/repos/{owner}/{repo}/git/blobs", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-commit + */ + "POST /repos/{owner}/{repo}/git/commits": Operation<"/repos/{owner}/{repo}/git/commits", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-reference + */ + "POST /repos/{owner}/{repo}/git/refs": Operation<"/repos/{owner}/{repo}/git/refs", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-tag-object + */ + "POST /repos/{owner}/{repo}/git/tags": Operation<"/repos/{owner}/{repo}/git/tags", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-tree + */ + "POST /repos/{owner}/{repo}/git/trees": Operation<"/repos/{owner}/{repo}/git/trees", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-repository-webhook + */ + "POST /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#ping-a-repository-webhook + */ + "POST /repos/{owner}/{repo}/hooks/{hook_id}/pings": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/pings", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#test-the-push-repository-webhook + */ + "POST /repos/{owner}/{repo}/hooks/{hook_id}/tests": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/tests", "post">; + /** + * @see https://docs.github.com/v3/issues/#create-an-issue + */ + "POST /repos/{owner}/{repo}/issues": Operation<"/repos/{owner}/{repo}/issues", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-an-issue-comment + */ + "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#add-assignees-to-an-issue + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#create-an-issue-comment + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/comments": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/comments", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#add-labels-to-an-issue + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-an-issue + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-deploy-key + */ + "POST /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#create-a-label + */ + "POST /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#merge-a-branch + */ + "POST /repos/{owner}/{repo}/merges": Operation<"/repos/{owner}/{repo}/merges", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#create-a-milestone + */ + "POST /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-github-pages-site + */ + "POST /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "post", "switcheroo">; + /** + * @see https://docs.github.com/rest/reference/repos#request-a-github-pages-build + */ + "POST /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "post">; + /** + * @see https://docs.github.com/v3/projects/#create-a-repository-project + */ + "POST /repos/{owner}/{repo}/projects": Operation<"/repos/{owner}/{repo}/projects", "post", "inertia">; + /** + * @see https://docs.github.com/v3/pulls/#create-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls": Operation<"/repos/{owner}/{repo}/pulls", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment + */ + "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/pulls#create-a-review-comment-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#create-a-reply-for-a-review-comment + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#create-a-review-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#submit-a-review-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-release + */ + "POST /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-commit-status + */ + "POST /repos/{owner}/{repo}/statuses/{sha}": Operation<"/repos/{owner}/{repo}/statuses/{sha}", "post">; + /** + * @see https://docs.github.com/v3/repos/#transfer-a-repository + */ + "POST /repos/{owner}/{repo}/transfer": Operation<"/repos/{owner}/{repo}/transfer", "post">; + /** + * @see https://docs.github.com/v3/repos/#create-a-repository-using-a-template + */ + "POST /repos/{template_owner}/{template_repo}/generate": Operation<"/repos/{template_owner}/{template_repo}/generate", "post", "baptiste">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#provision-a-scim-enterprise-group-and-invite-users + */ + "POST /scim/v2/enterprises/{enterprise}/Groups": Operation<"/scim/v2/enterprises/{enterprise}/Groups", "post">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#provision-and-invite-a-scim-enterprise-user + */ + "POST /scim/v2/enterprises/{enterprise}/Users": Operation<"/scim/v2/enterprises/{enterprise}/Users", "post">; + /** + * @see https://docs.github.com/v3/scim/#provision-and-invite-a-scim-user + */ + "POST /scim/v2/organizations/{org}/Users": Operation<"/scim/v2/organizations/{org}/Users", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-legacy + */ + "POST /teams/{team_id}/discussions": Operation<"/teams/{team_id}/discussions", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-comment-legacy + */ + "POST /teams/{team_id}/discussions/{discussion_number}/comments": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy + */ + "POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy + */ + "POST /teams/{team_id}/discussions/{discussion_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/users#add-an-email-address-for-the-authenticated-user + */ + "POST /user/emails": Operation<"/user/emails", "post">; + /** + * @see https://docs.github.com/rest/reference/users#create-a-gpg-key-for-the-authenticated-user + */ + "POST /user/gpg_keys": Operation<"/user/gpg_keys", "post">; + /** + * @see https://docs.github.com/rest/reference/users#create-a-public-ssh-key-for-the-authenticated-user + */ + "POST /user/keys": Operation<"/user/keys", "post">; + /** + * @see https://docs.github.com/rest/reference/migrations#start-a-user-migration + */ + "POST /user/migrations": Operation<"/user/migrations", "post">; + /** + * @see https://docs.github.com/v3/projects/#create-a-user-project + */ + "POST /user/projects": Operation<"/user/projects", "post", "inertia">; + /** + * @see https://docs.github.com/v3/repos/#create-a-repository-for-the-authenticated-user + */ + "POST /user/repos": Operation<"/user/repos", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#upload-a-release-asset + */ + "POST {origin}/repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}": Operation<"/repos/{owner}/{repo}/releases/{release_id}/assets", "post">; + /** + * @see https://docs.github.com/v3/apps/#suspend-an-app-installation + */ + "PUT /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "put">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app + */ + "PUT /authorizations/clients/{client_id}": Operation<"/authorizations/clients/{client_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app-and-fingerprint + */ + "PUT /authorizations/clients/{client_id}/{fingerprint}": Operation<"/authorizations/clients/{client_id}/{fingerprint}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-github-actions-permissions-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-selected-organizations-enabled-for-github-actions-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#enable-a-selected-organization-for-github-actions-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-allowed-actions-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-self-hosted-runners-in-a-group-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#add-a-self-hosted-runner-to-a-group-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">; + /** + * @see https://docs.github.com/v3/gists/#star-a-gist + */ + "PUT /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#mark-notifications-as-read + */ + "PUT /notifications": Operation<"/notifications", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#set-a-thread-subscription + */ + "PUT /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-organization + */ + "PUT /orgs/{org}/actions/permissions": Operation<"/orgs/{org}/actions/permissions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-enabled-for-github-actions-in-an-organization + */ + "PUT /orgs/{org}/actions/permissions/repositories": Operation<"/orgs/{org}/actions/permissions/repositories", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#enable-a-selected-repository-for-github-actions-in-an-organization + */ + "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-an-organization + */ + "PUT /orgs/{org}/actions/permissions/selected-actions": Operation<"/orgs/{org}/actions/permissions/selected-actions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#add-repository-acess-to-a-self-hosted-runner-group-in-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret + */ + "PUT /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret + */ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#add-selected-repository-to-an-organization-secret + */ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#block-a-user-from-an-organization + */ + "PUT /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-an-organization + */ + "PUT /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#set-organization-membership-for-a-user + */ + "PUT /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#convert-an-organization-member-to-outside-collaborator + */ + "PUT /orgs/{org}/outside_collaborators/{username}": Operation<"/orgs/{org}/outside_collaborators/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#set-public-organization-membership-for-the-authenticated-user + */ + "PUT /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user + */ + "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "put">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-project-permissions + */ + "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "put", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions + */ + "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "put">; + /** + * @see https://docs.github.com/rest/reference/projects#add-project-collaborator + */ + "PUT /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "put", "inertia">; + /** + * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-a-repository + */ + "PUT /repos/{owner}/{repo}/actions/permissions": Operation<"/repos/{owner}/{repo}/actions/permissions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-a-repository + */ + "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions": Operation<"/repos/{owner}/{repo}/actions/permissions/selected-actions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#create-or-update-a-repository-secret + */ + "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#disable-a-workflow + */ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#enable-a-workflow + */ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable", "put">; + /** + * @see https://docs.github.com/v3/repos/#enable-automated-security-fixes + */ + "PUT /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "put", "london">; + /** + * @see https://docs.github.com/rest/reference/repos#update-branch-protection + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-status-check-contexts + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-app-access-restrictions + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-team-access-restrictions + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-user-access-restrictions + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#add-a-repository-collaborator + */ + "PUT /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#create-or-update-file-contents + */ + "PUT /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "put">; + /** + * @see https://docs.github.com/rest/reference/migrations#start-an-import + */ + "PUT /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "put">; + /** + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-a-repository + */ + "PUT /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "put">; + /** + * @see https://docs.github.com/rest/reference/issues#set-labels-for-an-issue + */ + "PUT /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "put">; + /** + * @see https://docs.github.com/v3/issues/#lock-an-issue + */ + "PUT /repos/{owner}/{repo}/issues/{issue_number}/lock": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/lock", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#mark-repository-notifications-as-read + */ + "PUT /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#update-information-about-a-github-pages-site + */ + "PUT /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "put">; + /** + * @see https://docs.github.com/v3/pulls/#merge-a-pull-request + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "put">; + /** + * @see https://docs.github.com/rest/reference/pulls#update-a-review-for-a-pull-request + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/pulls#dismiss-a-review-for-a-pull-request + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals", "put">; + /** + * @see https://docs.github.com/v3/pulls/#update-a-pull-request-branch + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/update-branch", "put", "lydian">; + /** + * @see https://docs.github.com/rest/reference/activity#set-a-repository-subscription + */ + "PUT /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "put">; + /** + * @see https://docs.github.com/v3/repos/#replace-all-repository-topics + */ + "PUT /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "put", "mercy">; + /** + * @see https://docs.github.com/v3/repos/#enable-vulnerability-alerts + */ + "PUT /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "put", "dorian">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-group + */ + "PUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-user + */ + "PUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "put">; + /** + * @see https://docs.github.com/v3/scim/#set-scim-information-for-a-provisioned-user + */ + "PUT /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/teams#add-team-member-legacy + */ + "PUT /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user-legacy + */ + "PUT /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "put">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-project-permissions-legacy + */ + "PUT /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "put", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy + */ + "PUT /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "put">; + /** + * @see https://docs.github.com/rest/reference/users#block-a-user + */ + "PUT /user/blocks/{username}": Operation<"/user/blocks/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/users#follow-a-user + */ + "PUT /user/following/{username}": Operation<"/user/following/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/apps#add-a-repository-to-an-app-installation + */ + "PUT /user/installations/{installation_id}/repositories/{repository_id}": Operation<"/user/installations/{installation_id}/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-your-public-repositories + */ + "PUT /user/interaction-limits": Operation<"/user/interaction-limits", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#star-a-repository-for-the-authenticated-user + */ + "PUT /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "put">; +} +export {}; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/index.d.ts b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/index.d.ts new file mode 100644 index 000000000..004ae9b22 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-types/index.d.ts @@ -0,0 +1,21 @@ +export * from "./AuthInterface"; +export * from "./EndpointDefaults"; +export * from "./EndpointInterface"; +export * from "./EndpointOptions"; +export * from "./Fetch"; +export * from "./OctokitResponse"; +export * from "./RequestError"; +export * from "./RequestHeaders"; +export * from "./RequestInterface"; +export * from "./RequestMethod"; +export * from "./RequestOptions"; +export * from "./RequestParameters"; +export * from "./RequestRequestOptions"; +export * from "./ResponseHeaders"; +export * from "./Route"; +export * from "./Signal"; +export * from "./StrategyInterface"; +export * from "./Url"; +export * from "./VERSION"; +export * from "./GetResponseTypeFromEndpointMethod"; +export * from "./generated/Endpoints"; diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/dist-web/index.js b/node_modules/@octokit/core/node_modules/@octokit/types/dist-web/index.js new file mode 100644 index 000000000..ce27278ed --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/dist-web/index.js @@ -0,0 +1,4 @@ +const VERSION = "6.0.3"; + +export { VERSION }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/types/dist-web/index.js.map b/node_modules/@octokit/core/node_modules/@octokit/types/dist-web/index.js.map similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/types/dist-web/index.js.map rename to node_modules/@octokit/core/node_modules/@octokit/types/dist-web/index.js.map diff --git a/node_modules/@octokit/core/node_modules/@octokit/types/package.json b/node_modules/@octokit/core/node_modules/@octokit/types/package.json new file mode 100644 index 000000000..1176062e4 --- /dev/null +++ b/node_modules/@octokit/core/node_modules/@octokit/types/package.json @@ -0,0 +1,51 @@ +{ + "name": "@octokit/types", + "description": "Shared TypeScript definitions for Octokit projects", + "version": "6.0.3", + "license": "MIT", + "files": [ + "dist-*/", + "bin/" + ], + "pika": true, + "sideEffects": false, + "keywords": [ + "github", + "api", + "sdk", + "toolkit", + "typescript" + ], + "repository": "https://github.com/octokit/types.ts", + "dependencies": { + "@octokit/openapi-types": "^1.2.0", + "@types/node": ">= 8" + }, + "devDependencies": { + "@octokit/graphql": "^4.2.2", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.9.0", + "@pika/plugin-build-web": "^0.9.0", + "@pika/plugin-ts-standard-pkg": "^0.9.0", + "handlebars": "^4.7.6", + "json-schema-to-typescript": "^10.0.0", + "lodash.set": "^4.3.2", + "npm-run-all": "^4.1.5", + "openapi-typescript": "^2.3.1", + "pascal-case": "^3.1.1", + "prettier": "^2.0.0", + "semantic-release": "^17.0.0", + "semantic-release-plugin-update-version-in-files": "^1.0.0", + "sort-keys": "^4.0.0", + "string-to-jsdoc-comment": "^1.0.0", + "typedoc": "^0.19.0", + "typescript": "^4.0.2" + }, + "publishConfig": { + "access": "public" + }, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "main": "dist-node/index.js", + "module": "dist-web/index.js" +} diff --git a/node_modules/@octokit/core/node_modules/node-fetch/CHANGELOG.md b/node_modules/@octokit/core/node_modules/node-fetch/CHANGELOG.md deleted file mode 100644 index 543d3d947..000000000 --- a/node_modules/@octokit/core/node_modules/node-fetch/CHANGELOG.md +++ /dev/null @@ -1,272 +0,0 @@ - -Changelog -========= - - -# 2.x release - -## v2.6.1 - -**This is an important security release. It is strongly recommended to update as soon as possible.** - -- Fix: honor the `size` option after following a redirect. - -## v2.6.0 - -- Enhance: `options.agent`, it now accepts a function that returns custom http(s).Agent instance based on current URL, see readme for more information. -- Fix: incorrect `Content-Length` was returned for stream body in 2.5.0 release; note that `node-fetch` doesn't calculate content length for stream body. -- Fix: `Response.url` should return empty string instead of `null` by default. - -## v2.5.0 - -- Enhance: `Response` object now includes `redirected` property. -- Enhance: `fetch()` now accepts third-party `Blob` implementation as body. -- Other: disable `package-lock.json` generation as we never commit them. -- Other: dev dependency update. -- Other: readme update. - -## v2.4.1 - -- Fix: `Blob` import rule for node < 10, as `Readable` isn't a named export. - -## v2.4.0 - -- Enhance: added `Brotli` compression support (using node's zlib). -- Enhance: updated `Blob` implementation per spec. -- Fix: set content type automatically for `URLSearchParams`. -- Fix: `Headers` now reject empty header names. -- Fix: test cases, as node 12+ no longer accepts invalid header response. - -## v2.3.0 - -- Enhance: added `AbortSignal` support, with README example. -- Enhance: handle invalid `Location` header during redirect by rejecting them explicitly with `FetchError`. -- Fix: update `browser.js` to support react-native environment, where `self` isn't available globally. - -## v2.2.1 - -- Fix: `compress` flag shouldn't overwrite existing `Accept-Encoding` header. -- Fix: multiple `import` rules, where `PassThrough` etc. doesn't have a named export when using node <10 and `--exerimental-modules` flag. -- Other: Better README. - -## v2.2.0 - -- Enhance: Support all `ArrayBuffer` view types -- Enhance: Support Web Workers -- Enhance: Support Node.js' `--experimental-modules` mode; deprecate `.es.js` file -- Fix: Add `__esModule` property to the exports object -- Other: Better example in README for writing response to a file -- Other: More tests for Agent - -## v2.1.2 - -- Fix: allow `Body` methods to work on `ArrayBuffer`-backed `Body` objects -- Fix: reject promise returned by `Body` methods when the accumulated `Buffer` exceeds the maximum size -- Fix: support custom `Host` headers with any casing -- Fix: support importing `fetch()` from TypeScript in `browser.js` -- Fix: handle the redirect response body properly - -## v2.1.1 - -Fix packaging errors in v2.1.0. - -## v2.1.0 - -- Enhance: allow using ArrayBuffer as the `body` of a `fetch()` or `Request` -- Fix: store HTTP headers of a `Headers` object internally with the given case, for compatibility with older servers that incorrectly treated header names in a case-sensitive manner -- Fix: silently ignore invalid HTTP headers -- Fix: handle HTTP redirect responses without a `Location` header just like non-redirect responses -- Fix: include bodies when following a redirection when appropriate - -## v2.0.0 - -This is a major release. Check [our upgrade guide](https://github.com/bitinn/node-fetch/blob/master/UPGRADE-GUIDE.md) for an overview on some key differences between v1 and v2. - -### General changes - -- Major: Node.js 0.10.x and 0.12.x support is dropped -- Major: `require('node-fetch/lib/response')` etc. is now unsupported; use `require('node-fetch').Response` or ES6 module imports -- Enhance: start testing on Node.js v4.x, v6.x, v8.x LTS, as well as v9.x stable -- Enhance: use Rollup to produce a distributed bundle (less memory overhead and faster startup) -- Enhance: make `Object.prototype.toString()` on Headers, Requests, and Responses return correct class strings -- Other: rewrite in ES2015 using Babel -- Other: use Codecov for code coverage tracking -- Other: update package.json script for npm 5 -- Other: `encoding` module is now optional (alpha.7) -- Other: expose browser.js through package.json, avoid bundling mishaps (alpha.9) -- Other: allow TypeScript to `import` node-fetch by exposing default (alpha.9) - -### HTTP requests - -- Major: overwrite user's `Content-Length` if we can be sure our information is correct (per spec) -- Fix: errors in a response are caught before the body is accessed -- Fix: support WHATWG URL objects, created by `whatwg-url` package or `require('url').URL` in Node.js 7+ - -### Response and Request classes - -- Major: `response.text()` no longer attempts to detect encoding, instead always opting for UTF-8 (per spec); use `response.textConverted()` for the v1 behavior -- Major: make `response.json()` throw error instead of returning an empty object on 204 no-content respose (per spec; reverts behavior changed in v1.6.2) -- Major: internal methods are no longer exposed -- Major: throw error when a `GET` or `HEAD` Request is constructed with a non-null body (per spec) -- Enhance: add `response.arrayBuffer()` (also applies to Requests) -- Enhance: add experimental `response.blob()` (also applies to Requests) -- Enhance: `URLSearchParams` is now accepted as a body -- Enhance: wrap `response.json()` json parsing error as `FetchError` -- Fix: fix Request and Response with `null` body - -### Headers class - -- Major: remove `headers.getAll()`; make `get()` return all headers delimited by commas (per spec) -- Enhance: make Headers iterable -- Enhance: make Headers constructor accept an array of tuples -- Enhance: make sure header names and values are valid in HTTP -- Fix: coerce Headers prototype function parameters to strings, where applicable - -### Documentation - -- Enhance: more comprehensive API docs -- Enhance: add a list of default headers in README - - -# 1.x release - -## backport releases (v1.7.0 and beyond) - -See [changelog on 1.x branch](https://github.com/bitinn/node-fetch/blob/1.x/CHANGELOG.md) for details. - -## v1.6.3 - -- Enhance: error handling document to explain `FetchError` design -- Fix: support `form-data` 2.x releases (requires `form-data` >= 2.1.0) - -## v1.6.2 - -- Enhance: minor document update -- Fix: response.json() returns empty object on 204 no-content response instead of throwing a syntax error - -## v1.6.1 - -- Fix: if `res.body` is a non-stream non-formdata object, we will call `body.toString` and send it as a string -- Fix: `counter` value is incorrectly set to `follow` value when wrapping Request instance -- Fix: documentation update - -## v1.6.0 - -- Enhance: added `res.buffer()` api for convenience, it returns body as a Node.js buffer -- Enhance: better old server support by handling raw deflate response -- Enhance: skip encoding detection for non-HTML/XML response -- Enhance: minor document update -- Fix: HEAD request doesn't need decompression, as body is empty -- Fix: `req.body` now accepts a Node.js buffer - -## v1.5.3 - -- Fix: handle 204 and 304 responses when body is empty but content-encoding is gzip/deflate -- Fix: allow resolving response and cloned response in any order -- Fix: avoid setting `content-length` when `form-data` body use streams -- Fix: send DELETE request with content-length when body is present -- Fix: allow any url when calling new Request, but still reject non-http(s) url in fetch - -## v1.5.2 - -- Fix: allow node.js core to handle keep-alive connection pool when passing a custom agent - -## v1.5.1 - -- Fix: redirect mode `manual` should work even when there is no redirection or broken redirection - -## v1.5.0 - -- Enhance: rejected promise now use custom `Error` (thx to @pekeler) -- Enhance: `FetchError` contains `err.type` and `err.code`, allows for better error handling (thx to @pekeler) -- Enhance: basic support for redirect mode `manual` and `error`, allows for location header extraction (thx to @jimmywarting for the initial PR) - -## v1.4.1 - -- Fix: wrapping Request instance with FormData body again should preserve the body as-is - -## v1.4.0 - -- Enhance: Request and Response now have `clone` method (thx to @kirill-konshin for the initial PR) -- Enhance: Request and Response now have proper string and buffer body support (thx to @kirill-konshin) -- Enhance: Body constructor has been refactored out (thx to @kirill-konshin) -- Enhance: Headers now has `forEach` method (thx to @tricoder42) -- Enhance: back to 100% code coverage -- Fix: better form-data support (thx to @item4) -- Fix: better character encoding detection under chunked encoding (thx to @dsuket for the initial PR) - -## v1.3.3 - -- Fix: make sure `Content-Length` header is set when body is string for POST/PUT/PATCH requests -- Fix: handle body stream error, for cases such as incorrect `Content-Encoding` header -- Fix: when following certain redirects, use `GET` on subsequent request per Fetch Spec -- Fix: `Request` and `Response` constructors now parse headers input using `Headers` - -## v1.3.2 - -- Enhance: allow auto detect of form-data input (no `FormData` spec on node.js, this is form-data specific feature) - -## v1.3.1 - -- Enhance: allow custom host header to be set (server-side only feature, as it's a forbidden header on client-side) - -## v1.3.0 - -- Enhance: now `fetch.Request` is exposed as well - -## v1.2.1 - -- Enhance: `Headers` now normalized `Number` value to `String`, prevent common mistakes - -## v1.2.0 - -- Enhance: now fetch.Headers and fetch.Response are exposed, making testing easier - -## v1.1.2 - -- Fix: `Headers` should only support `String` and `Array` properties, and ignore others - -## v1.1.1 - -- Enhance: now req.headers accept both plain object and `Headers` instance - -## v1.1.0 - -- Enhance: timeout now also applies to response body (in case of slow response) -- Fix: timeout is now cleared properly when fetch is done/has failed - -## v1.0.6 - -- Fix: less greedy content-type charset matching - -## v1.0.5 - -- Fix: when `follow = 0`, fetch should not follow redirect -- Enhance: update tests for better coverage -- Enhance: code formatting -- Enhance: clean up doc - -## v1.0.4 - -- Enhance: test iojs support -- Enhance: timeout attached to socket event only fire once per redirect - -## v1.0.3 - -- Fix: response size limit should reject large chunk -- Enhance: added character encoding detection for xml, such as rss/atom feed (encoding in DTD) - -## v1.0.2 - -- Fix: added res.ok per spec change - -## v1.0.0 - -- Enhance: better test coverage and doc - - -# 0.x release - -## v0.1 - -- Major: initial public release diff --git a/node_modules/@octokit/core/node_modules/node-fetch/README.md b/node_modules/@octokit/core/node_modules/node-fetch/README.md deleted file mode 100644 index 2dde74289..000000000 --- a/node_modules/@octokit/core/node_modules/node-fetch/README.md +++ /dev/null @@ -1,590 +0,0 @@ -node-fetch -========== - -[![npm version][npm-image]][npm-url] -[![build status][travis-image]][travis-url] -[![coverage status][codecov-image]][codecov-url] -[![install size][install-size-image]][install-size-url] -[![Discord][discord-image]][discord-url] - -A light-weight module that brings `window.fetch` to Node.js - -(We are looking for [v2 maintainers and collaborators](https://github.com/bitinn/node-fetch/issues/567)) - -[![Backers][opencollective-image]][opencollective-url] - - - -- [Motivation](#motivation) -- [Features](#features) -- [Difference from client-side fetch](#difference-from-client-side-fetch) -- [Installation](#installation) -- [Loading and configuring the module](#loading-and-configuring-the-module) -- [Common Usage](#common-usage) - - [Plain text or HTML](#plain-text-or-html) - - [JSON](#json) - - [Simple Post](#simple-post) - - [Post with JSON](#post-with-json) - - [Post with form parameters](#post-with-form-parameters) - - [Handling exceptions](#handling-exceptions) - - [Handling client and server errors](#handling-client-and-server-errors) -- [Advanced Usage](#advanced-usage) - - [Streams](#streams) - - [Buffer](#buffer) - - [Accessing Headers and other Meta data](#accessing-headers-and-other-meta-data) - - [Extract Set-Cookie Header](#extract-set-cookie-header) - - [Post data using a file stream](#post-data-using-a-file-stream) - - [Post with form-data (detect multipart)](#post-with-form-data-detect-multipart) - - [Request cancellation with AbortSignal](#request-cancellation-with-abortsignal) -- [API](#api) - - [fetch(url[, options])](#fetchurl-options) - - [Options](#options) - - [Class: Request](#class-request) - - [Class: Response](#class-response) - - [Class: Headers](#class-headers) - - [Interface: Body](#interface-body) - - [Class: FetchError](#class-fetcherror) -- [License](#license) -- [Acknowledgement](#acknowledgement) - - - -## Motivation - -Instead of implementing `XMLHttpRequest` in Node.js to run browser-specific [Fetch polyfill](https://github.com/github/fetch), why not go from native `http` to `fetch` API directly? Hence, `node-fetch`, minimal code for a `window.fetch` compatible API on Node.js runtime. - -See Matt Andrews' [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) or Leonardo Quixada's [cross-fetch](https://github.com/lquixada/cross-fetch) for isomorphic usage (exports `node-fetch` for server-side, `whatwg-fetch` for client-side). - -## Features - -- Stay consistent with `window.fetch` API. -- Make conscious trade-off when following [WHATWG fetch spec][whatwg-fetch] and [stream spec](https://streams.spec.whatwg.org/) implementation details, document known differences. -- Use native promise but allow substituting it with [insert your favorite promise library]. -- Use native Node streams for body on both request and response. -- Decode content encoding (gzip/deflate) properly and convert string output (such as `res.text()` and `res.json()`) to UTF-8 automatically. -- Useful extensions such as timeout, redirect limit, response size limit, [explicit errors](ERROR-HANDLING.md) for troubleshooting. - -## Difference from client-side fetch - -- See [Known Differences](LIMITS.md) for details. -- If you happen to use a missing feature that `window.fetch` offers, feel free to open an issue. -- Pull requests are welcomed too! - -## Installation - -Current stable release (`2.x`) - -```sh -$ npm install node-fetch -``` - -## Loading and configuring the module -We suggest you load the module via `require` until the stabilization of ES modules in node: -```js -const fetch = require('node-fetch'); -``` - -If you are using a Promise library other than native, set it through `fetch.Promise`: -```js -const Bluebird = require('bluebird'); - -fetch.Promise = Bluebird; -``` - -## Common Usage - -NOTE: The documentation below is up-to-date with `2.x` releases; see the [`1.x` readme](https://github.com/bitinn/node-fetch/blob/1.x/README.md), [changelog](https://github.com/bitinn/node-fetch/blob/1.x/CHANGELOG.md) and [2.x upgrade guide](UPGRADE-GUIDE.md) for the differences. - -#### Plain text or HTML -```js -fetch('https://github.com/') - .then(res => res.text()) - .then(body => console.log(body)); -``` - -#### JSON - -```js - -fetch('https://api.github.com/users/github') - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Simple Post -```js -fetch('https://httpbin.org/post', { method: 'POST', body: 'a=1' }) - .then(res => res.json()) // expecting a json response - .then(json => console.log(json)); -``` - -#### Post with JSON - -```js -const body = { a: 1 }; - -fetch('https://httpbin.org/post', { - method: 'post', - body: JSON.stringify(body), - headers: { 'Content-Type': 'application/json' }, - }) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Post with form parameters -`URLSearchParams` is available in Node.js as of v7.5.0. See [official documentation](https://nodejs.org/api/url.html#url_class_urlsearchparams) for more usage methods. - -NOTE: The `Content-Type` header is only set automatically to `x-www-form-urlencoded` when an instance of `URLSearchParams` is given as such: - -```js -const { URLSearchParams } = require('url'); - -const params = new URLSearchParams(); -params.append('a', 1); - -fetch('https://httpbin.org/post', { method: 'POST', body: params }) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Handling exceptions -NOTE: 3xx-5xx responses are *NOT* exceptions and should be handled in `then()`; see the next section for more information. - -Adding a catch to the fetch promise chain will catch *all* exceptions, such as errors originating from node core libraries, network errors and operational errors, which are instances of FetchError. See the [error handling document](ERROR-HANDLING.md) for more details. - -```js -fetch('https://domain.invalid/') - .catch(err => console.error(err)); -``` - -#### Handling client and server errors -It is common to create a helper function to check that the response contains no client (4xx) or server (5xx) error responses: - -```js -function checkStatus(res) { - if (res.ok) { // res.status >= 200 && res.status < 300 - return res; - } else { - throw MyCustomError(res.statusText); - } -} - -fetch('https://httpbin.org/status/400') - .then(checkStatus) - .then(res => console.log('will not get here...')) -``` - -## Advanced Usage - -#### Streams -The "Node.js way" is to use streams when possible: - -```js -fetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png') - .then(res => { - const dest = fs.createWriteStream('./octocat.png'); - res.body.pipe(dest); - }); -``` - -#### Buffer -If you prefer to cache binary data in full, use buffer(). (NOTE: `buffer()` is a `node-fetch`-only API) - -```js -const fileType = require('file-type'); - -fetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png') - .then(res => res.buffer()) - .then(buffer => fileType(buffer)) - .then(type => { /* ... */ }); -``` - -#### Accessing Headers and other Meta data -```js -fetch('https://github.com/') - .then(res => { - console.log(res.ok); - console.log(res.status); - console.log(res.statusText); - console.log(res.headers.raw()); - console.log(res.headers.get('content-type')); - }); -``` - -#### Extract Set-Cookie Header - -Unlike browsers, you can access raw `Set-Cookie` headers manually using `Headers.raw()`. This is a `node-fetch` only API. - -```js -fetch(url).then(res => { - // returns an array of values, instead of a string of comma-separated values - console.log(res.headers.raw()['set-cookie']); -}); -``` - -#### Post data using a file stream - -```js -const { createReadStream } = require('fs'); - -const stream = createReadStream('input.txt'); - -fetch('https://httpbin.org/post', { method: 'POST', body: stream }) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Post with form-data (detect multipart) - -```js -const FormData = require('form-data'); - -const form = new FormData(); -form.append('a', 1); - -fetch('https://httpbin.org/post', { method: 'POST', body: form }) - .then(res => res.json()) - .then(json => console.log(json)); - -// OR, using custom headers -// NOTE: getHeaders() is non-standard API - -const form = new FormData(); -form.append('a', 1); - -const options = { - method: 'POST', - body: form, - headers: form.getHeaders() -} - -fetch('https://httpbin.org/post', options) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Request cancellation with AbortSignal - -> NOTE: You may cancel streamed requests only on Node >= v8.0.0 - -You may cancel requests with `AbortController`. A suggested implementation is [`abort-controller`](https://www.npmjs.com/package/abort-controller). - -An example of timing out a request after 150ms could be achieved as the following: - -```js -import AbortController from 'abort-controller'; - -const controller = new AbortController(); -const timeout = setTimeout( - () => { controller.abort(); }, - 150, -); - -fetch(url, { signal: controller.signal }) - .then(res => res.json()) - .then( - data => { - useData(data) - }, - err => { - if (err.name === 'AbortError') { - // request was aborted - } - }, - ) - .finally(() => { - clearTimeout(timeout); - }); -``` - -See [test cases](https://github.com/bitinn/node-fetch/blob/master/test/test.js) for more examples. - - -## API - -### fetch(url[, options]) - -- `url` A string representing the URL for fetching -- `options` [Options](#fetch-options) for the HTTP(S) request -- Returns: Promise<[Response](#class-response)> - -Perform an HTTP(S) fetch. - -`url` should be an absolute url, such as `https://example.com/`. A path-relative URL (`/file/under/root`) or protocol-relative URL (`//can-be-http-or-https.com/`) will result in a rejected `Promise`. - - -### Options - -The default values are shown after each option key. - -```js -{ - // These properties are part of the Fetch Standard - method: 'GET', - headers: {}, // request headers. format is the identical to that accepted by the Headers constructor (see below) - body: null, // request body. can be null, a string, a Buffer, a Blob, or a Node.js Readable stream - redirect: 'follow', // set to `manual` to extract redirect headers, `error` to reject redirect - signal: null, // pass an instance of AbortSignal to optionally abort requests - - // The following properties are node-fetch extensions - follow: 20, // maximum redirect count. 0 to not follow redirect - timeout: 0, // req/res timeout in ms, it resets on redirect. 0 to disable (OS limit applies). Signal is recommended instead. - compress: true, // support gzip/deflate content encoding. false to disable - size: 0, // maximum response body size in bytes. 0 to disable - agent: null // http(s).Agent instance or function that returns an instance (see below) -} -``` - -##### Default Headers - -If no values are set, the following request headers will be sent automatically: - -Header | Value -------------------- | -------------------------------------------------------- -`Accept-Encoding` | `gzip,deflate` _(when `options.compress === true`)_ -`Accept` | `*/*` -`Connection` | `close` _(when no `options.agent` is present)_ -`Content-Length` | _(automatically calculated, if possible)_ -`Transfer-Encoding` | `chunked` _(when `req.body` is a stream)_ -`User-Agent` | `node-fetch/1.0 (+https://github.com/bitinn/node-fetch)` - -Note: when `body` is a `Stream`, `Content-Length` is not set automatically. - -##### Custom Agent - -The `agent` option allows you to specify networking related options which are out of the scope of Fetch, including and not limited to the following: - -- Support self-signed certificate -- Use only IPv4 or IPv6 -- Custom DNS Lookup - -See [`http.Agent`](https://nodejs.org/api/http.html#http_new_agent_options) for more information. - -In addition, the `agent` option accepts a function that returns `http`(s)`.Agent` instance given current [URL](https://nodejs.org/api/url.html), this is useful during a redirection chain across HTTP and HTTPS protocol. - -```js -const httpAgent = new http.Agent({ - keepAlive: true -}); -const httpsAgent = new https.Agent({ - keepAlive: true -}); - -const options = { - agent: function (_parsedURL) { - if (_parsedURL.protocol == 'http:') { - return httpAgent; - } else { - return httpsAgent; - } - } -} -``` - - -### Class: Request - -An HTTP(S) request containing information about URL, method, headers, and the body. This class implements the [Body](#iface-body) interface. - -Due to the nature of Node.js, the following properties are not implemented at this moment: - -- `type` -- `destination` -- `referrer` -- `referrerPolicy` -- `mode` -- `credentials` -- `cache` -- `integrity` -- `keepalive` - -The following node-fetch extension properties are provided: - -- `follow` -- `compress` -- `counter` -- `agent` - -See [options](#fetch-options) for exact meaning of these extensions. - -#### new Request(input[, options]) - -*(spec-compliant)* - -- `input` A string representing a URL, or another `Request` (which will be cloned) -- `options` [Options][#fetch-options] for the HTTP(S) request - -Constructs a new `Request` object. The constructor is identical to that in the [browser](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request). - -In most cases, directly `fetch(url, options)` is simpler than creating a `Request` object. - - -### Class: Response - -An HTTP(S) response. This class implements the [Body](#iface-body) interface. - -The following properties are not implemented in node-fetch at this moment: - -- `Response.error()` -- `Response.redirect()` -- `type` -- `trailer` - -#### new Response([body[, options]]) - -*(spec-compliant)* - -- `body` A `String` or [`Readable` stream][node-readable] -- `options` A [`ResponseInit`][response-init] options dictionary - -Constructs a new `Response` object. The constructor is identical to that in the [browser](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response). - -Because Node.js does not implement service workers (for which this class was designed), one rarely has to construct a `Response` directly. - -#### response.ok - -*(spec-compliant)* - -Convenience property representing if the request ended normally. Will evaluate to true if the response status was greater than or equal to 200 but smaller than 300. - -#### response.redirected - -*(spec-compliant)* - -Convenience property representing if the request has been redirected at least once. Will evaluate to true if the internal redirect counter is greater than 0. - - -### Class: Headers - -This class allows manipulating and iterating over a set of HTTP headers. All methods specified in the [Fetch Standard][whatwg-fetch] are implemented. - -#### new Headers([init]) - -*(spec-compliant)* - -- `init` Optional argument to pre-fill the `Headers` object - -Construct a new `Headers` object. `init` can be either `null`, a `Headers` object, an key-value map object or any iterable object. - -```js -// Example adapted from https://fetch.spec.whatwg.org/#example-headers-class - -const meta = { - 'Content-Type': 'text/xml', - 'Breaking-Bad': '<3' -}; -const headers = new Headers(meta); - -// The above is equivalent to -const meta = [ - [ 'Content-Type', 'text/xml' ], - [ 'Breaking-Bad', '<3' ] -]; -const headers = new Headers(meta); - -// You can in fact use any iterable objects, like a Map or even another Headers -const meta = new Map(); -meta.set('Content-Type', 'text/xml'); -meta.set('Breaking-Bad', '<3'); -const headers = new Headers(meta); -const copyOfHeaders = new Headers(headers); -``` - - -### Interface: Body - -`Body` is an abstract interface with methods that are applicable to both `Request` and `Response` classes. - -The following methods are not yet implemented in node-fetch at this moment: - -- `formData()` - -#### body.body - -*(deviation from spec)* - -* Node.js [`Readable` stream][node-readable] - -Data are encapsulated in the `Body` object. Note that while the [Fetch Standard][whatwg-fetch] requires the property to always be a WHATWG `ReadableStream`, in node-fetch it is a Node.js [`Readable` stream][node-readable]. - -#### body.bodyUsed - -*(spec-compliant)* - -* `Boolean` - -A boolean property for if this body has been consumed. Per the specs, a consumed body cannot be used again. - -#### body.arrayBuffer() -#### body.blob() -#### body.json() -#### body.text() - -*(spec-compliant)* - -* Returns: Promise - -Consume the body and return a promise that will resolve to one of these formats. - -#### body.buffer() - -*(node-fetch extension)* - -* Returns: Promise<Buffer> - -Consume the body and return a promise that will resolve to a Buffer. - -#### body.textConverted() - -*(node-fetch extension)* - -* Returns: Promise<String> - -Identical to `body.text()`, except instead of always converting to UTF-8, encoding sniffing will be performed and text converted to UTF-8 if possible. - -(This API requires an optional dependency of the npm package [encoding](https://www.npmjs.com/package/encoding), which you need to install manually. `webpack` users may see [a warning message](https://github.com/bitinn/node-fetch/issues/412#issuecomment-379007792) due to this optional dependency.) - - -### Class: FetchError - -*(node-fetch extension)* - -An operational error in the fetching process. See [ERROR-HANDLING.md][] for more info. - - -### Class: AbortError - -*(node-fetch extension)* - -An Error thrown when the request is aborted in response to an `AbortSignal`'s `abort` event. It has a `name` property of `AbortError`. See [ERROR-HANDLING.MD][] for more info. - -## Acknowledgement - -Thanks to [github/fetch](https://github.com/github/fetch) for providing a solid implementation reference. - -`node-fetch` v1 was maintained by [@bitinn](https://github.com/bitinn); v2 was maintained by [@TimothyGu](https://github.com/timothygu), [@bitinn](https://github.com/bitinn) and [@jimmywarting](https://github.com/jimmywarting); v2 readme is written by [@jkantr](https://github.com/jkantr). - -## License - -MIT - -[npm-image]: https://flat.badgen.net/npm/v/node-fetch -[npm-url]: https://www.npmjs.com/package/node-fetch -[travis-image]: https://flat.badgen.net/travis/bitinn/node-fetch -[travis-url]: https://travis-ci.org/bitinn/node-fetch -[codecov-image]: https://flat.badgen.net/codecov/c/github/bitinn/node-fetch/master -[codecov-url]: https://codecov.io/gh/bitinn/node-fetch -[install-size-image]: https://flat.badgen.net/packagephobia/install/node-fetch -[install-size-url]: https://packagephobia.now.sh/result?p=node-fetch -[discord-image]: https://img.shields.io/discord/619915844268326952?color=%237289DA&label=Discord&style=flat-square -[discord-url]: https://discord.gg/Zxbndcm -[opencollective-image]: https://opencollective.com/node-fetch/backers.svg -[opencollective-url]: https://opencollective.com/node-fetch -[whatwg-fetch]: https://fetch.spec.whatwg.org/ -[response-init]: https://fetch.spec.whatwg.org/#responseinit -[node-readable]: https://nodejs.org/api/stream.html#stream_readable_streams -[mdn-headers]: https://developer.mozilla.org/en-US/docs/Web/API/Headers -[LIMITS.md]: https://github.com/bitinn/node-fetch/blob/master/LIMITS.md -[ERROR-HANDLING.md]: https://github.com/bitinn/node-fetch/blob/master/ERROR-HANDLING.md -[UPGRADE-GUIDE.md]: https://github.com/bitinn/node-fetch/blob/master/UPGRADE-GUIDE.md diff --git a/node_modules/@octokit/core/node_modules/node-fetch/browser.js b/node_modules/@octokit/core/node_modules/node-fetch/browser.js deleted file mode 100644 index 83c54c584..000000000 --- a/node_modules/@octokit/core/node_modules/node-fetch/browser.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -// ref: https://github.com/tc39/proposal-global -var getGlobal = function () { - // the only reliable means to get the global object is - // `Function('return this')()` - // However, this causes CSP violations in Chrome apps. - if (typeof self !== 'undefined') { return self; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - throw new Error('unable to locate global object'); -} - -var global = getGlobal(); - -module.exports = exports = global.fetch; - -// Needed for TypeScript and Webpack. -if (global.fetch) { - exports.default = global.fetch.bind(global); -} - -exports.Headers = global.Headers; -exports.Request = global.Request; -exports.Response = global.Response; \ No newline at end of file diff --git a/node_modules/@octokit/core/node_modules/node-fetch/lib/index.es.js b/node_modules/@octokit/core/node_modules/node-fetch/lib/index.es.js deleted file mode 100644 index 61906c959..000000000 --- a/node_modules/@octokit/core/node_modules/node-fetch/lib/index.es.js +++ /dev/null @@ -1,1640 +0,0 @@ -process.emitWarning("The .es.js file is deprecated. Use .mjs instead."); - -import Stream from 'stream'; -import http from 'http'; -import Url from 'url'; -import https from 'https'; -import zlib from 'zlib'; - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js - -// fix for "Readable" isn't a named export issue -const Readable = Stream.Readable; - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - let size = 0; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = require('encoding').convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - let body = this.body; - - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is blob - if (isBlob(body)) { - body = body.stream(); - } - - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } - - // istanbul ignore if: should never happen - if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } - - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - - accumBytes += chunk.length; - accum.push(chunk); - }); - - body.on('end', function () { - if (abort) { - return; - } - - clearTimeout(resTimeout); - - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} - -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); - - // html5 - if (!res && str) { - res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; - -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - const headers = new Headers(opts.headers); - - if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } - - get url() { - return this[INTERNALS$1].url || ''; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get redirected() { - return this[INTERNALS$1].counter > 0; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; - -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; - -/** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parse_url(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parse_url(`${input}`); - } - input = {}; - } else { - parsedURL = parse_url(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - let agent = request.agent; - if (typeof agent === 'function') { - agent = agent(parsedURL); - } - - if (!headers.has('Connection') && !agent) { - headers.set('Connection', 'close'); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); -} - -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; - -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; -const resolve_url = Url.resolve; - -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { - - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } - - Body.Promise = fetch.Promise; - - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); - - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; - - let response = null; - - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - request.body.destroy(error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; - - if (signal && signal.aborted) { - abort(); - return; - } - - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; - - // send request - const req = send(options); - let reqTimeout; - - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } - - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } - - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - finalize(); - }); - - req.on('response', function (res) { - clearTimeout(reqTimeout); - - const headers = createHeadersLenient(res.headers); - - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); - - // HTTP fetch step 5.3 - const locationURL = location === null ? null : resolve_url(request.url, location); - - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } - - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; - - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } - - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; - - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); - - // HTTP-network fetch step 12.1.1.4: handle content codings - - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } - - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } - - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - return; - } - - // for br - if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { - body = body.pipe(zlib.createBrotliDecompress()); - response = new Response(body, response_options); - resolve(response); - return; - } - - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); - - writeToStream(req, request); - }); -} -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; - -// expose Promise -fetch.Promise = global.Promise; - -export default fetch; -export { Headers, Request, Response, FetchError }; diff --git a/node_modules/@octokit/core/node_modules/node-fetch/lib/index.js b/node_modules/@octokit/core/node_modules/node-fetch/lib/index.js deleted file mode 100644 index 4b241bfbf..000000000 --- a/node_modules/@octokit/core/node_modules/node-fetch/lib/index.js +++ /dev/null @@ -1,1649 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var Stream = _interopDefault(require('stream')); -var http = _interopDefault(require('http')); -var Url = _interopDefault(require('url')); -var https = _interopDefault(require('https')); -var zlib = _interopDefault(require('zlib')); - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js - -// fix for "Readable" isn't a named export issue -const Readable = Stream.Readable; - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - let size = 0; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = require('encoding').convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - let body = this.body; - - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is blob - if (isBlob(body)) { - body = body.stream(); - } - - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } - - // istanbul ignore if: should never happen - if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } - - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - - accumBytes += chunk.length; - accum.push(chunk); - }); - - body.on('end', function () { - if (abort) { - return; - } - - clearTimeout(resTimeout); - - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} - -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); - - // html5 - if (!res && str) { - res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; - -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - const headers = new Headers(opts.headers); - - if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } - - get url() { - return this[INTERNALS$1].url || ''; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get redirected() { - return this[INTERNALS$1].counter > 0; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; - -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; - -/** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parse_url(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parse_url(`${input}`); - } - input = {}; - } else { - parsedURL = parse_url(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - let agent = request.agent; - if (typeof agent === 'function') { - agent = agent(parsedURL); - } - - if (!headers.has('Connection') && !agent) { - headers.set('Connection', 'close'); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); -} - -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; - -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; -const resolve_url = Url.resolve; - -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { - - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } - - Body.Promise = fetch.Promise; - - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); - - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; - - let response = null; - - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - request.body.destroy(error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; - - if (signal && signal.aborted) { - abort(); - return; - } - - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; - - // send request - const req = send(options); - let reqTimeout; - - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } - - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } - - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - finalize(); - }); - - req.on('response', function (res) { - clearTimeout(reqTimeout); - - const headers = createHeadersLenient(res.headers); - - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); - - // HTTP fetch step 5.3 - const locationURL = location === null ? null : resolve_url(request.url, location); - - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } - - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; - - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } - - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; - - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); - - // HTTP-network fetch step 12.1.1.4: handle content codings - - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } - - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } - - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - return; - } - - // for br - if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { - body = body.pipe(zlib.createBrotliDecompress()); - response = new Response(body, response_options); - resolve(response); - return; - } - - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); - - writeToStream(req, request); - }); -} -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; - -// expose Promise -fetch.Promise = global.Promise; - -module.exports = exports = fetch; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = exports; -exports.Headers = Headers; -exports.Request = Request; -exports.Response = Response; -exports.FetchError = FetchError; diff --git a/node_modules/@octokit/core/node_modules/node-fetch/lib/index.mjs b/node_modules/@octokit/core/node_modules/node-fetch/lib/index.mjs deleted file mode 100644 index ecf59af8c..000000000 --- a/node_modules/@octokit/core/node_modules/node-fetch/lib/index.mjs +++ /dev/null @@ -1,1638 +0,0 @@ -import Stream from 'stream'; -import http from 'http'; -import Url from 'url'; -import https from 'https'; -import zlib from 'zlib'; - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js - -// fix for "Readable" isn't a named export issue -const Readable = Stream.Readable; - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - let size = 0; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = require('encoding').convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - let body = this.body; - - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is blob - if (isBlob(body)) { - body = body.stream(); - } - - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } - - // istanbul ignore if: should never happen - if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } - - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - - accumBytes += chunk.length; - accum.push(chunk); - }); - - body.on('end', function () { - if (abort) { - return; - } - - clearTimeout(resTimeout); - - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} - -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); - - // html5 - if (!res && str) { - res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; - -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - const headers = new Headers(opts.headers); - - if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } - - get url() { - return this[INTERNALS$1].url || ''; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get redirected() { - return this[INTERNALS$1].counter > 0; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; - -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; - -/** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parse_url(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parse_url(`${input}`); - } - input = {}; - } else { - parsedURL = parse_url(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - let agent = request.agent; - if (typeof agent === 'function') { - agent = agent(parsedURL); - } - - if (!headers.has('Connection') && !agent) { - headers.set('Connection', 'close'); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); -} - -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; - -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; -const resolve_url = Url.resolve; - -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { - - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } - - Body.Promise = fetch.Promise; - - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); - - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; - - let response = null; - - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - request.body.destroy(error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; - - if (signal && signal.aborted) { - abort(); - return; - } - - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; - - // send request - const req = send(options); - let reqTimeout; - - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } - - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } - - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - finalize(); - }); - - req.on('response', function (res) { - clearTimeout(reqTimeout); - - const headers = createHeadersLenient(res.headers); - - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); - - // HTTP fetch step 5.3 - const locationURL = location === null ? null : resolve_url(request.url, location); - - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } - - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; - - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } - - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; - - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); - - // HTTP-network fetch step 12.1.1.4: handle content codings - - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } - - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } - - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - return; - } - - // for br - if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { - body = body.pipe(zlib.createBrotliDecompress()); - response = new Response(body, response_options); - resolve(response); - return; - } - - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); - - writeToStream(req, request); - }); -} -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; - -// expose Promise -fetch.Promise = global.Promise; - -export default fetch; -export { Headers, Request, Response, FetchError }; diff --git a/node_modules/@octokit/core/node_modules/node-fetch/package.json b/node_modules/@octokit/core/node_modules/node-fetch/package.json deleted file mode 100644 index 216046916..000000000 --- a/node_modules/@octokit/core/node_modules/node-fetch/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "node-fetch", - "version": "2.6.1", - "description": "A light-weight module that brings window.fetch to node.js", - "main": "lib/index", - "browser": "./browser.js", - "module": "lib/index.mjs", - "files": [ - "lib/index.js", - "lib/index.mjs", - "lib/index.es.js", - "browser.js" - ], - "engines": { - "node": "4.x || >=6.0.0" - }, - "scripts": { - "build": "cross-env BABEL_ENV=rollup rollup -c", - "prepare": "npm run build", - "test": "cross-env BABEL_ENV=test mocha --require babel-register --throw-deprecation test/test.js", - "report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js", - "coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/test.js && codecov -f coverage/coverage-final.json" - }, - "repository": { - "type": "git", - "url": "https://github.com/bitinn/node-fetch.git" - }, - "keywords": [ - "fetch", - "http", - "promise" - ], - "author": "David Frank", - "license": "MIT", - "bugs": { - "url": "https://github.com/bitinn/node-fetch/issues" - }, - "homepage": "https://github.com/bitinn/node-fetch", - "devDependencies": { - "@ungap/url-search-params": "^0.1.2", - "abort-controller": "^1.1.0", - "abortcontroller-polyfill": "^1.3.0", - "babel-core": "^6.26.3", - "babel-plugin-istanbul": "^4.1.6", - "babel-preset-env": "^1.6.1", - "babel-register": "^6.16.3", - "chai": "^3.5.0", - "chai-as-promised": "^7.1.1", - "chai-iterator": "^1.1.1", - "chai-string": "~1.3.0", - "codecov": "^3.3.0", - "cross-env": "^5.2.0", - "form-data": "^2.3.3", - "is-builtin-module": "^1.0.0", - "mocha": "^5.0.0", - "nyc": "11.9.0", - "parted": "^0.1.1", - "promise": "^8.0.3", - "resumer": "0.0.0", - "rollup": "^0.63.4", - "rollup-plugin-babel": "^3.0.7", - "string-to-arraybuffer": "^1.0.2", - "whatwg-url": "^5.0.0" - }, - "dependencies": {} -} diff --git a/node_modules/@octokit/core/package.json b/node_modules/@octokit/core/package.json index f182576e5..9895e004f 100644 --- a/node_modules/@octokit/core/package.json +++ b/node_modules/@octokit/core/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/core", "description": "Extendable client for GitHub's REST & GraphQL APIs", - "version": "2.5.4", + "version": "3.2.3", "license": "MIT", "files": [ "dist-*/", @@ -18,12 +18,12 @@ ], "repository": "https://github.com/octokit/core.js", "dependencies": { - "@octokit/auth-token": "^2.4.0", - "@octokit/graphql": "^4.3.1", - "@octokit/request": "^5.4.0", - "@octokit/types": "^5.0.0", + "@octokit/auth-token": "^2.4.4", + "@octokit/graphql": "^4.5.8", + "@octokit/request": "^5.4.12", + "@octokit/types": "^6.0.3", "before-after-hook": "^2.1.0", - "universal-user-agent": "^5.0.0" + "universal-user-agent": "^6.0.0" }, "devDependencies": { "@octokit/auth": "^2.0.0", @@ -38,14 +38,14 @@ "@types/node-fetch": "^2.5.0", "fetch-mock": "^9.0.0", "http-proxy-agent": "^4.0.1", - "jest": "^25.1.0", + "jest": "^26.1.0", "lolex": "^6.0.0", "prettier": "^2.0.4", "proxy": "^1.0.1", "semantic-release": "^17.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", - "ts-jest": "^25.1.0", - "typescript": "^3.5.3" + "ts-jest": "^26.1.3", + "typescript": "^4.0.2" }, "publishConfig": { "access": "public" diff --git a/node_modules/@octokit/graphql/README.md b/node_modules/@octokit/graphql/README.md index 4e44592ce..8e6332a46 100644 --- a/node_modules/@octokit/graphql/README.md +++ b/node_modules/@octokit/graphql/README.md @@ -3,14 +3,19 @@ > GitHub GraphQL API client for browsers and Node [![@latest](https://img.shields.io/npm/v/@octokit/graphql.svg)](https://www.npmjs.com/package/@octokit/graphql) -[![Build Status](https://travis-ci.com/octokit/graphql.js.svg?branch=master)](https://travis-ci.com/octokit/graphql.js) -[![Coverage Status](https://coveralls.io/repos/github/octokit/graphql.js/badge.svg)](https://coveralls.io/github/octokit/graphql.js) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/graphql.js.svg)](https://greenkeeper.io/) +[![Build Status](https://github.com/octokit/graphql.js/workflows/Test/badge.svg)](https://github.com/octokit/graphql.js/actions?query=workflow%3ATest+branch%3Amaster) - [Usage](#usage) + - [Send a simple query](#send-a-simple-query) + - [Authentication](#authentication) + - [Variables](#variables) + - [Pass query together with headers and variables](#pass-query-together-with-headers-and-variables) + - [Use with GitHub Enterprise](#use-with-github-enterprise) + - [Use custom `@octokit/request` instance](#use-custom-octokitrequest-instance) - [Errors](#errors) +- [Partial responses](#partial-responses) - [Writing tests](#writing-tests) - [License](#license) @@ -18,34 +23,75 @@ ## Usage -Send a simple query + + + + + +
+Browsers + + +Load `@octokit/graphql` directly from [cdn.skypack.dev](https://cdn.skypack.dev) + +```html + +``` + +
+Node + + +Install with npm install @octokit/graphql ```js -const graphql = require('@octokit/graphql') -const { repository } = await graphql(`{ - repository(owner:"octokit", name:"graphql.js") { - issues(last:3) { - edges { - node { - title +const { graphql } = require("@octokit/graphql"); +// or: import { graphql } from "@octokit/graphql"; +``` + +
+ +### Send a simple query + +```js +const { repository } = await graphql( + ` + { + repository(owner: "octokit", name: "graphql.js") { + issues(last: 3) { + edges { + node { + title + } + } } } } + `, + { + headers: { + authorization: `token secret123`, + }, } -}`, { - headers: { - authorization: `token secret123` - } -}) +); ``` -⚠️ Do not use [template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) in the query strings as they make your code vulnerable to query injection attacks (see [#2](https://github.com/octokit/graphql.js/issues/2)). Use variables instead: +### Authentication + +The simplest way to authenticate a request is to set the `Authorization` header, e.g. to a [personal access token](https://github.com/settings/tokens/). ```js -const graphql = require('@octokit/graphql') -const { lastIssues } = await graphql(`query lastIssues($owner: String!, $repo: String!, $num: Int = 3) { - repository(owner:$owner, name:$repo) { - issues(last:$num) { +const graphqlWithAuth = graphql.defaults({ + headers: { + authorization: `token secret123`, + }, +}); +const { repository } = await graphqlWithAuth(` + { + repository(owner: "octokit", name: "graphql.js") { + issues(last: 3) { edges { node { title @@ -53,73 +99,73 @@ const { lastIssues } = await graphql(`query lastIssues($owner: String!, $repo: S } } } - }`, { - owner: 'octokit', - repo: 'graphql.js' - headers: { - authorization: `token secret123` - } } -}) +`); ``` -Create two new clients and set separate default configs for them. +For more complex authentication strategies such as GitHub Apps or Basic, we recommend the according authentication library exported by [`@octokit/auth`](https://github.com/octokit/auth.js). ```js -const graphql1 = require('@octokit/graphql').defaults({ - headers: { - authorization: `token secret123` - } -}) +const { createAppAuth } = require("@octokit/auth-app"); +const auth = createAppAuth({ + id: process.env.APP_ID, + privateKey: process.env.PRIVATE_KEY, + installationId: 123, +}); +const graphqlWithAuth = graphql.defaults({ + request: { + hook: auth.hook, + }, +}); -const graphql2 = require('@octokit/graphql').defaults({ - headers: { - authorization: `token foobar` - } -}) +const { repository } = await graphqlWithAuth( + `{ + repository(owner: "octokit", name: "graphql.js") { + issues(last: 3) { + edges { + node { + title + } + } + } + } + }` +); ``` -Create two clients, the second inherits config from the first. - -```js -const graphql1 = require('@octokit/graphql').defaults({ - headers: { - authorization: `token secret123` - } -}) - -const graphql2 = graphql1.defaults({ - headers: { - 'user-agent': 'my-user-agent/v1.2.3' - } -}) -``` +### Variables -Create a new client with default options and run query +⚠️ Do not use [template literals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals) in the query strings as they make your code vulnerable to query injection attacks (see [#2](https://github.com/octokit/graphql.js/issues/2)). Use variables instead: ```js -const graphql = require('@octokit/graphql').defaults({ - headers: { - authorization: `token secret123` - } -}) -const { repository } = await graphql(`{ - repository(owner:"octokit", name:"graphql.js") { - issues(last:3) { - edges { - node { - title +const { lastIssues } = await graphql( + ` + query lastIssues($owner: String!, $repo: String!, $num: Int = 3) { + repository(owner: $owner, name: $repo) { + issues(last: $num) { + edges { + node { + title + } + } } } } + `, + { + owner: "octokit", + repo: "graphql.js", + headers: { + authorization: `token secret123`, + }, } -}`) +); ``` -Pass query together with headers and variables +### Pass query together with headers and variables ```js -const graphql = require('@octokit/graphql') +const { graphql } = require("@octokit/graphql"); const { lastIssues } = await graphql({ query: `query lastIssues($owner: String!, $repo: String!, $num: Int = 3) { repository(owner:$owner, name:$repo) { @@ -132,34 +178,73 @@ const { lastIssues } = await graphql({ } } }`, - owner: 'octokit', - repo: 'graphql.js' + owner: "octokit", + repo: "graphql.js", headers: { - authorization: `token secret123` - } -}) + authorization: `token secret123`, + }, +}); ``` -Use with GitHub Enterprise +### Use with GitHub Enterprise ```js -const graphql = require('@octokit/graphql').defaults({ - baseUrl: 'https://github-enterprise.acme-inc.com/api', +let { graphql } = require("@octokit/graphql"); +graphql = graphql.defaults({ + baseUrl: "https://github-enterprise.acme-inc.com/api", headers: { - authorization: `token secret123` + authorization: `token secret123`, + }, +}); +const { repository } = await graphql(` + { + repository(owner: "acme-project", name: "acme-repo") { + issues(last: 3) { + edges { + node { + title + } + } + } + } } -}) -const { repository } = await graphql(`{ - repository(owner:"acme-project", name:"acme-repo") { - issues(last:3) { - edges { - node { - title +`); +``` + +### Use custom `@octokit/request` instance + +```js +const { request } = require("@octokit/request"); +const { withCustomRequest } = require("@octokit/graphql"); + +let requestCounter = 0; +const myRequest = request.defaults({ + headers: { + authentication: "token secret123", + }, + request: { + hook(request, options) { + requestCounter++; + return request(options); + }, + }, +}); +const myGraphql = withCustomRequest(myRequest); +await request("/"); +await myGraphql(` + { + repository(owner: "acme-project", name: "acme-repo") { + issues(last: 3) { + edges { + node { + title + } } } } } -}`) +`); +// requestCounter is now 2 ``` ## Errors @@ -167,19 +252,20 @@ const { repository } = await graphql(`{ In case of a GraphQL error, `error.message` is set to the first error from the response’s `errors` array. All errors can be accessed at `error.errors`. `error.request` has the request options such as query, variables and headers set for easier debugging. ```js -const graphql = require('@octokit/graphql').defaults({ +let { graphql } = require("@octokit/graphql"); +graphqlt = graphql.defaults({ headers: { - authorization: `token secret123` - } -}) + authorization: `token secret123`, + }, +}); const query = `{ viewer { bioHtml } -}` +}`; try { - const result = await graphql(query) + const result = await graphql(query); } catch (error) { // server responds with // { @@ -193,8 +279,8 @@ try { // }] // } - console.log('Request failed:', error.request) // { query, variables: {}, headers: { authorization: 'token secret123' } } - console.log(error.message) // Field 'bioHtml' doesn't exist on type 'User' + console.log("Request failed:", error.request); // { query, variables: {}, headers: { authorization: 'token secret123' } } + console.log(error.message); // Field 'bioHtml' doesn't exist on type 'User' } ``` @@ -203,11 +289,12 @@ try { A GraphQL query may respond with partial data accompanied by errors. In this case we will throw an error but the partial data will still be accessible through `error.data` ```js -const graphql = require('@octokit/graphql').defaults({ +let { graphql } = require("@octokit/graphql"); +graphql = graphql.defaults({ headers: { - authorization: `token secret123` - } -}) + authorization: `token secret123`, + }, +}); const query = `{ repository(name: "probot", owner: "probot") { name @@ -223,42 +310,42 @@ const query = `{ } } } -}` +}`; try { - const result = await graphql(query) + const result = await graphql(query); } catch (error) { // server responds with - // {  - // "data": {  - // "repository": {  - // "name": "probot",  - // "ref": null  - // }  - // },  - // "errors": [  - // {  - // "type": "INVALID_CURSOR_ARGUMENTS",  - // "path": [  - // "repository",  - // "ref",  - // "target",  - // "history"  - // ],  - // "locations": [  - // {  - // "line": 7,  - // "column": 11  - // }  - // ],  - // "message": "`invalid cursor` does not appear to be a valid cursor."  - // }  - // ]  - // }  - - console.log('Request failed:', error.request) // { query, variables: {}, headers: { authorization: 'token secret123' } } - console.log(error.message) // `invalid cursor` does not appear to be a valid cursor. - console.log(error.data) // { repository: { name: 'probot', ref: null } } + // { + // "data": { + // "repository": { + // "name": "probot", + // "ref": null + // } + // }, + // "errors": [ + // { + // "type": "INVALID_CURSOR_ARGUMENTS", + // "path": [ + // "repository", + // "ref", + // "target", + // "history" + // ], + // "locations": [ + // { + // "line": 7, + // "column": 11 + // } + // ], + // "message": "`invalid cursor` does not appear to be a valid cursor." + // } + // ] + // } + + console.log("Request failed:", error.request); // { query, variables: {}, headers: { authorization: 'token secret123' } } + console.log(error.message); // `invalid cursor` does not appear to be a valid cursor. + console.log(error.data); // { repository: { name: 'probot', ref: null } } } ``` @@ -267,24 +354,29 @@ try { You can pass a replacement for [the built-in fetch implementation](https://github.com/bitinn/node-fetch) as `request.fetch` option. For example, using [fetch-mock](http://www.wheresrhys.co.uk/fetch-mock/) works great to write tests ```js -const assert = require('assert') -const fetchMock = require('fetch-mock/es5/server') +const assert = require("assert"); +const fetchMock = require("fetch-mock/es5/server"); -const graphql = require('@octokit/graphql') +const { graphql } = require("@octokit/graphql"); -graphql('{ viewer { login } }', { +graphql("{ viewer { login } }", { headers: { - authorization: 'token secret123' + authorization: "token secret123", }, request: { - fetch: fetchMock.sandbox() - .post('https://api.github.com/graphql', (url, options) => { - assert.strictEqual(options.headers.authorization, 'token secret123') - assert.strictEqual(options.body, '{"query":"{ viewer { login } }"}', 'Sends correct query') - return { data: {} } - }) - } -}) + fetch: fetchMock + .sandbox() + .post("https://api.github.com/graphql", (url, options) => { + assert.strictEqual(options.headers.authorization, "token secret123"); + assert.strictEqual( + options.body, + '{"query":"{ viewer { login } }"}', + "Sends correct query" + ); + return { data: {} }; + }), + }, +}); ``` ## License diff --git a/node_modules/@octokit/graphql/dist-node/index.js b/node_modules/@octokit/graphql/dist-node/index.js new file mode 100644 index 000000000..5c26e9f7b --- /dev/null +++ b/node_modules/@octokit/graphql/dist-node/index.js @@ -0,0 +1,108 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var request = require('@octokit/request'); +var universalUserAgent = require('universal-user-agent'); + +const VERSION = "4.5.8"; + +class GraphqlError extends Error { + constructor(request, response) { + const message = response.data.errors[0].message; + super(message); + Object.assign(this, response.data); + Object.assign(this, { + headers: response.headers + }); + this.name = "GraphqlError"; + this.request = request; // Maintains proper stack trace (only available on V8) + + /* istanbul ignore next */ + + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + } + +} + +const NON_VARIABLE_OPTIONS = ["method", "baseUrl", "url", "headers", "request", "query", "mediaType"]; +const GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/; +function graphql(request, query, options) { + if (typeof query === "string" && options && "query" in options) { + return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`)); + } + + const parsedOptions = typeof query === "string" ? Object.assign({ + query + }, options) : query; + const requestOptions = Object.keys(parsedOptions).reduce((result, key) => { + if (NON_VARIABLE_OPTIONS.includes(key)) { + result[key] = parsedOptions[key]; + return result; + } + + if (!result.variables) { + result.variables = {}; + } + + result.variables[key] = parsedOptions[key]; + return result; + }, {}); // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix + // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451 + + const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl; + + if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) { + requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql"); + } + + return request(requestOptions).then(response => { + if (response.data.errors) { + const headers = {}; + + for (const key of Object.keys(response.headers)) { + headers[key] = response.headers[key]; + } + + throw new GraphqlError(requestOptions, { + headers, + data: response.data + }); + } + + return response.data.data; + }); +} + +function withDefaults(request$1, newDefaults) { + const newRequest = request$1.defaults(newDefaults); + + const newApi = (query, options) => { + return graphql(newRequest, query, options); + }; + + return Object.assign(newApi, { + defaults: withDefaults.bind(null, newRequest), + endpoint: request.request.endpoint + }); +} + +const graphql$1 = withDefaults(request.request, { + headers: { + "user-agent": `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}` + }, + method: "POST", + url: "/graphql" +}); +function withCustomRequest(customRequest) { + return withDefaults(customRequest, { + method: "POST", + url: "/graphql" + }); +} + +exports.graphql = graphql$1; +exports.withCustomRequest = withCustomRequest; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/graphql/dist-node/index.js.map b/node_modules/@octokit/graphql/dist-node/index.js.map new file mode 100644 index 000000000..3598288ef --- /dev/null +++ b/node_modules/@octokit/graphql/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/error.js","../dist-src/graphql.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"4.5.8\";\n","export class GraphqlError extends Error {\n constructor(request, response) {\n const message = response.data.errors[0].message;\n super(message);\n Object.assign(this, response.data);\n Object.assign(this, { headers: response.headers });\n this.name = \"GraphqlError\";\n this.request = request;\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n","import { GraphqlError } from \"./error\";\nconst NON_VARIABLE_OPTIONS = [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"query\",\n \"mediaType\",\n];\nconst GHES_V3_SUFFIX_REGEX = /\\/api\\/v3\\/?$/;\nexport function graphql(request, query, options) {\n if (typeof query === \"string\" && options && \"query\" in options) {\n return Promise.reject(new Error(`[@octokit/graphql] \"query\" cannot be used as variable name`));\n }\n const parsedOptions = typeof query === \"string\" ? Object.assign({ query }, options) : query;\n const requestOptions = Object.keys(parsedOptions).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = parsedOptions[key];\n return result;\n }\n if (!result.variables) {\n result.variables = {};\n }\n result.variables[key] = parsedOptions[key];\n return result;\n }, {});\n // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix\n // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451\n const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl;\n if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {\n requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, \"/api/graphql\");\n }\n return request(requestOptions).then((response) => {\n if (response.data.errors) {\n const headers = {};\n for (const key of Object.keys(response.headers)) {\n headers[key] = response.headers[key];\n }\n throw new GraphqlError(requestOptions, {\n headers,\n data: response.data,\n });\n }\n return response.data.data;\n });\n}\n","import { request as Request } from \"@octokit/request\";\nimport { graphql } from \"./graphql\";\nexport function withDefaults(request, newDefaults) {\n const newRequest = request.defaults(newDefaults);\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: Request.endpoint,\n });\n}\n","import { request } from \"@octokit/request\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport { withDefaults } from \"./with-defaults\";\nexport const graphql = withDefaults(request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${getUserAgent()}`,\n },\n method: \"POST\",\n url: \"/graphql\",\n});\nexport function withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\",\n });\n}\n"],"names":["VERSION","GraphqlError","Error","constructor","request","response","message","data","errors","Object","assign","headers","name","captureStackTrace","NON_VARIABLE_OPTIONS","GHES_V3_SUFFIX_REGEX","graphql","query","options","Promise","reject","parsedOptions","requestOptions","keys","reduce","result","key","includes","variables","baseUrl","endpoint","DEFAULTS","test","url","replace","then","withDefaults","newDefaults","newRequest","defaults","newApi","bind","Request","getUserAgent","method","withCustomRequest","customRequest"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/graphql/dist-src/error.js b/node_modules/@octokit/graphql/dist-src/error.js new file mode 100644 index 000000000..37942ba16 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-src/error.js @@ -0,0 +1,15 @@ +export class GraphqlError extends Error { + constructor(request, response) { + const message = response.data.errors[0].message; + super(message); + Object.assign(this, response.data); + Object.assign(this, { headers: response.headers }); + this.name = "GraphqlError"; + this.request = request; + // Maintains proper stack trace (only available on V8) + /* istanbul ignore next */ + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + } +} diff --git a/node_modules/@octokit/graphql/dist-src/graphql.js b/node_modules/@octokit/graphql/dist-src/graphql.js new file mode 100644 index 000000000..deb9488de --- /dev/null +++ b/node_modules/@octokit/graphql/dist-src/graphql.js @@ -0,0 +1,47 @@ +import { GraphqlError } from "./error"; +const NON_VARIABLE_OPTIONS = [ + "method", + "baseUrl", + "url", + "headers", + "request", + "query", + "mediaType", +]; +const GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/; +export function graphql(request, query, options) { + if (typeof query === "string" && options && "query" in options) { + return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`)); + } + const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query; + const requestOptions = Object.keys(parsedOptions).reduce((result, key) => { + if (NON_VARIABLE_OPTIONS.includes(key)) { + result[key] = parsedOptions[key]; + return result; + } + if (!result.variables) { + result.variables = {}; + } + result.variables[key] = parsedOptions[key]; + return result; + }, {}); + // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix + // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451 + const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl; + if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) { + requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql"); + } + return request(requestOptions).then((response) => { + if (response.data.errors) { + const headers = {}; + for (const key of Object.keys(response.headers)) { + headers[key] = response.headers[key]; + } + throw new GraphqlError(requestOptions, { + headers, + data: response.data, + }); + } + return response.data.data; + }); +} diff --git a/node_modules/@octokit/graphql/dist-src/index.js b/node_modules/@octokit/graphql/dist-src/index.js new file mode 100644 index 000000000..b20237849 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-src/index.js @@ -0,0 +1,17 @@ +import { request } from "@octokit/request"; +import { getUserAgent } from "universal-user-agent"; +import { VERSION } from "./version"; +import { withDefaults } from "./with-defaults"; +export const graphql = withDefaults(request, { + headers: { + "user-agent": `octokit-graphql.js/${VERSION} ${getUserAgent()}`, + }, + method: "POST", + url: "/graphql", +}); +export function withCustomRequest(customRequest) { + return withDefaults(customRequest, { + method: "POST", + url: "/graphql", + }); +} diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js b/node_modules/@octokit/graphql/dist-src/types.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js rename to node_modules/@octokit/graphql/dist-src/types.js diff --git a/node_modules/@octokit/graphql/dist-src/version.js b/node_modules/@octokit/graphql/dist-src/version.js new file mode 100644 index 000000000..cdefae231 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-src/version.js @@ -0,0 +1 @@ +export const VERSION = "4.5.8"; diff --git a/node_modules/@octokit/graphql/dist-src/with-defaults.js b/node_modules/@octokit/graphql/dist-src/with-defaults.js new file mode 100644 index 000000000..6ea309e3a --- /dev/null +++ b/node_modules/@octokit/graphql/dist-src/with-defaults.js @@ -0,0 +1,12 @@ +import { request as Request } from "@octokit/request"; +import { graphql } from "./graphql"; +export function withDefaults(request, newDefaults) { + const newRequest = request.defaults(newDefaults); + const newApi = (query, options) => { + return graphql(newRequest, query, options); + }; + return Object.assign(newApi, { + defaults: withDefaults.bind(null, newRequest), + endpoint: Request.endpoint, + }); +} diff --git a/node_modules/@octokit/graphql/dist-types/error.d.ts b/node_modules/@octokit/graphql/dist-types/error.d.ts new file mode 100644 index 000000000..81b31a43a --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/error.d.ts @@ -0,0 +1,9 @@ +import { ResponseHeaders } from "@octokit/types"; +import { GraphQlEndpointOptions, GraphQlQueryResponse } from "./types"; +export declare class GraphqlError extends Error { + request: GraphQlEndpointOptions; + constructor(request: GraphQlEndpointOptions, response: { + headers: ResponseHeaders; + data: Required>; + }); +} diff --git a/node_modules/@octokit/graphql/dist-types/graphql.d.ts b/node_modules/@octokit/graphql/dist-types/graphql.d.ts new file mode 100644 index 000000000..2942b8b6e --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/graphql.d.ts @@ -0,0 +1,3 @@ +import { request as Request } from "@octokit/request"; +import { RequestParameters, GraphQlQueryResponseData } from "./types"; +export declare function graphql(request: typeof Request, query: string | RequestParameters, options?: RequestParameters): Promise; diff --git a/node_modules/@octokit/graphql/dist-types/index.d.ts b/node_modules/@octokit/graphql/dist-types/index.d.ts new file mode 100644 index 000000000..1878fd411 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/index.d.ts @@ -0,0 +1,3 @@ +import { request } from "@octokit/request"; +export declare const graphql: import("./types").graphql; +export declare function withCustomRequest(customRequest: typeof request): import("./types").graphql; diff --git a/node_modules/@octokit/graphql/dist-types/types.d.ts b/node_modules/@octokit/graphql/dist-types/types.d.ts new file mode 100644 index 000000000..ef60d9547 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/types.d.ts @@ -0,0 +1,50 @@ +import { EndpointOptions, RequestParameters as RequestParametersType, EndpointInterface } from "@octokit/types"; +export declare type GraphQlEndpointOptions = EndpointOptions & { + variables?: { + [key: string]: unknown; + }; +}; +export declare type RequestParameters = RequestParametersType; +export declare type Query = string; +export interface graphql { + /** + * Sends a GraphQL query request based on endpoint options + * The GraphQL query must be specified in `options`. + * + * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (options: RequestParameters): GraphQlResponse; + /** + * Sends a GraphQL query request based on endpoint options + * + * @param {string} query GraphQL query. Example: `'query { viewer { login } }'`. + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (query: Query, parameters?: RequestParameters): GraphQlResponse; + /** + * Returns a new `endpoint` with updated route and parameters + */ + defaults: (newDefaults: RequestParameters) => graphql; + /** + * Octokit endpoint API, see {@link https://github.com/octokit/endpoint.js|@octokit/endpoint} + */ + endpoint: EndpointInterface; +} +export declare type GraphQlResponse = Promise; +export declare type GraphQlQueryResponseData = { + [key: string]: any; +}; +export declare type GraphQlQueryResponse = { + data: ResponseData; + errors?: [{ + message: string; + path: [string]; + extensions: { + [key: string]: any; + }; + locations: [{ + line: number; + column: number; + }]; + }]; +}; diff --git a/node_modules/@octokit/graphql/dist-types/version.d.ts b/node_modules/@octokit/graphql/dist-types/version.d.ts new file mode 100644 index 000000000..1b94bb92d --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/version.d.ts @@ -0,0 +1 @@ +export declare const VERSION = "4.5.8"; diff --git a/node_modules/@octokit/graphql/dist-types/with-defaults.d.ts b/node_modules/@octokit/graphql/dist-types/with-defaults.d.ts new file mode 100644 index 000000000..03edc3205 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-types/with-defaults.d.ts @@ -0,0 +1,3 @@ +import { request as Request } from "@octokit/request"; +import { graphql as ApiInterface, RequestParameters } from "./types"; +export declare function withDefaults(request: typeof Request, newDefaults: RequestParameters): ApiInterface; diff --git a/node_modules/@octokit/graphql/dist-web/index.js b/node_modules/@octokit/graphql/dist-web/index.js new file mode 100644 index 000000000..9cb20bc71 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-web/index.js @@ -0,0 +1,95 @@ +import { request } from '@octokit/request'; +import { getUserAgent } from 'universal-user-agent'; + +const VERSION = "4.5.8"; + +class GraphqlError extends Error { + constructor(request, response) { + const message = response.data.errors[0].message; + super(message); + Object.assign(this, response.data); + Object.assign(this, { headers: response.headers }); + this.name = "GraphqlError"; + this.request = request; + // Maintains proper stack trace (only available on V8) + /* istanbul ignore next */ + if (Error.captureStackTrace) { + Error.captureStackTrace(this, this.constructor); + } + } +} + +const NON_VARIABLE_OPTIONS = [ + "method", + "baseUrl", + "url", + "headers", + "request", + "query", + "mediaType", +]; +const GHES_V3_SUFFIX_REGEX = /\/api\/v3\/?$/; +function graphql(request, query, options) { + if (typeof query === "string" && options && "query" in options) { + return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`)); + } + const parsedOptions = typeof query === "string" ? Object.assign({ query }, options) : query; + const requestOptions = Object.keys(parsedOptions).reduce((result, key) => { + if (NON_VARIABLE_OPTIONS.includes(key)) { + result[key] = parsedOptions[key]; + return result; + } + if (!result.variables) { + result.variables = {}; + } + result.variables[key] = parsedOptions[key]; + return result; + }, {}); + // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix + // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451 + const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl; + if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) { + requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, "/api/graphql"); + } + return request(requestOptions).then((response) => { + if (response.data.errors) { + const headers = {}; + for (const key of Object.keys(response.headers)) { + headers[key] = response.headers[key]; + } + throw new GraphqlError(requestOptions, { + headers, + data: response.data, + }); + } + return response.data.data; + }); +} + +function withDefaults(request$1, newDefaults) { + const newRequest = request$1.defaults(newDefaults); + const newApi = (query, options) => { + return graphql(newRequest, query, options); + }; + return Object.assign(newApi, { + defaults: withDefaults.bind(null, newRequest), + endpoint: request.endpoint, + }); +} + +const graphql$1 = withDefaults(request, { + headers: { + "user-agent": `octokit-graphql.js/${VERSION} ${getUserAgent()}`, + }, + method: "POST", + url: "/graphql", +}); +function withCustomRequest(customRequest) { + return withDefaults(customRequest, { + method: "POST", + url: "/graphql", + }); +} + +export { graphql$1 as graphql, withCustomRequest }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/graphql/dist-web/index.js.map b/node_modules/@octokit/graphql/dist-web/index.js.map new file mode 100644 index 000000000..aebdc5e00 --- /dev/null +++ b/node_modules/@octokit/graphql/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/error.js","../dist-src/graphql.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"4.5.8\";\n","export class GraphqlError extends Error {\n constructor(request, response) {\n const message = response.data.errors[0].message;\n super(message);\n Object.assign(this, response.data);\n Object.assign(this, { headers: response.headers });\n this.name = \"GraphqlError\";\n this.request = request;\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n }\n}\n","import { GraphqlError } from \"./error\";\nconst NON_VARIABLE_OPTIONS = [\n \"method\",\n \"baseUrl\",\n \"url\",\n \"headers\",\n \"request\",\n \"query\",\n \"mediaType\",\n];\nconst GHES_V3_SUFFIX_REGEX = /\\/api\\/v3\\/?$/;\nexport function graphql(request, query, options) {\n if (typeof query === \"string\" && options && \"query\" in options) {\n return Promise.reject(new Error(`[@octokit/graphql] \"query\" cannot be used as variable name`));\n }\n const parsedOptions = typeof query === \"string\" ? Object.assign({ query }, options) : query;\n const requestOptions = Object.keys(parsedOptions).reduce((result, key) => {\n if (NON_VARIABLE_OPTIONS.includes(key)) {\n result[key] = parsedOptions[key];\n return result;\n }\n if (!result.variables) {\n result.variables = {};\n }\n result.variables[key] = parsedOptions[key];\n return result;\n }, {});\n // workaround for GitHub Enterprise baseUrl set with /api/v3 suffix\n // https://github.com/octokit/auth-app.js/issues/111#issuecomment-657610451\n const baseUrl = parsedOptions.baseUrl || request.endpoint.DEFAULTS.baseUrl;\n if (GHES_V3_SUFFIX_REGEX.test(baseUrl)) {\n requestOptions.url = baseUrl.replace(GHES_V3_SUFFIX_REGEX, \"/api/graphql\");\n }\n return request(requestOptions).then((response) => {\n if (response.data.errors) {\n const headers = {};\n for (const key of Object.keys(response.headers)) {\n headers[key] = response.headers[key];\n }\n throw new GraphqlError(requestOptions, {\n headers,\n data: response.data,\n });\n }\n return response.data.data;\n });\n}\n","import { request as Request } from \"@octokit/request\";\nimport { graphql } from \"./graphql\";\nexport function withDefaults(request, newDefaults) {\n const newRequest = request.defaults(newDefaults);\n const newApi = (query, options) => {\n return graphql(newRequest, query, options);\n };\n return Object.assign(newApi, {\n defaults: withDefaults.bind(null, newRequest),\n endpoint: Request.endpoint,\n });\n}\n","import { request } from \"@octokit/request\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport { withDefaults } from \"./with-defaults\";\nexport const graphql = withDefaults(request, {\n headers: {\n \"user-agent\": `octokit-graphql.js/${VERSION} ${getUserAgent()}`,\n },\n method: \"POST\",\n url: \"/graphql\",\n});\nexport function withCustomRequest(customRequest) {\n return withDefaults(customRequest, {\n method: \"POST\",\n url: \"/graphql\",\n });\n}\n"],"names":["request","Request","graphql"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/graphql/index.js b/node_modules/@octokit/graphql/index.js deleted file mode 100644 index 7f8278c9b..000000000 --- a/node_modules/@octokit/graphql/index.js +++ /dev/null @@ -1,15 +0,0 @@ -const { request } = require('@octokit/request') -const getUserAgent = require('universal-user-agent') - -const version = require('./package.json').version -const userAgent = `octokit-graphql.js/${version} ${getUserAgent()}` - -const withDefaults = require('./lib/with-defaults') - -module.exports = withDefaults(request, { - method: 'POST', - url: '/graphql', - headers: { - 'user-agent': userAgent - } -}) diff --git a/node_modules/@octokit/graphql/lib/error.js b/node_modules/@octokit/graphql/lib/error.js deleted file mode 100644 index 4478abd27..000000000 --- a/node_modules/@octokit/graphql/lib/error.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = class GraphqlError extends Error { - constructor (request, response) { - const message = response.data.errors[0].message - super(message) - - Object.assign(this, response.data) - this.name = 'GraphqlError' - this.request = request - - // Maintains proper stack trace (only available on V8) - /* istanbul ignore next */ - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor) - } - } -} diff --git a/node_modules/@octokit/graphql/lib/graphql.js b/node_modules/@octokit/graphql/lib/graphql.js deleted file mode 100644 index 4a5b21195..000000000 --- a/node_modules/@octokit/graphql/lib/graphql.js +++ /dev/null @@ -1,36 +0,0 @@ -module.exports = graphql - -const GraphqlError = require('./error') - -const NON_VARIABLE_OPTIONS = ['method', 'baseUrl', 'url', 'headers', 'request', 'query'] - -function graphql (request, query, options) { - if (typeof query === 'string') { - options = Object.assign({ query }, options) - } else { - options = query - } - - const requestOptions = Object.keys(options).reduce((result, key) => { - if (NON_VARIABLE_OPTIONS.includes(key)) { - result[key] = options[key] - return result - } - - if (!result.variables) { - result.variables = {} - } - - result.variables[key] = options[key] - return result - }, {}) - - return request(requestOptions) - .then(response => { - if (response.data.errors) { - throw new GraphqlError(requestOptions, response) - } - - return response.data.data - }) -} diff --git a/node_modules/@octokit/graphql/lib/with-defaults.js b/node_modules/@octokit/graphql/lib/with-defaults.js deleted file mode 100644 index a5b14935c..000000000 --- a/node_modules/@octokit/graphql/lib/with-defaults.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = withDefaults - -const graphql = require('./graphql') - -function withDefaults (request, newDefaults) { - const newRequest = request.defaults(newDefaults) - const newApi = function (query, options) { - return graphql(newRequest, query, options) - } - - newApi.defaults = withDefaults.bind(null, newRequest) - return newApi -} diff --git a/node_modules/semantic-release/node_modules/issue-parser/LICENSE b/node_modules/@octokit/graphql/node_modules/@octokit/request/LICENSE similarity index 86% rename from node_modules/semantic-release/node_modules/issue-parser/LICENSE rename to node_modules/@octokit/graphql/node_modules/@octokit/request/LICENSE index bbe81ddb8..af5366d0d 100644 --- a/node_modules/semantic-release/node_modules/issue-parser/LICENSE +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/LICENSE @@ -1,6 +1,6 @@ -MIT License +The MIT License -Copyright (c) 2017 Pierre Vanduynslager +Copyright (c) 2018 Octokit contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/README.md b/node_modules/@octokit/graphql/node_modules/@octokit/request/README.md new file mode 100644 index 000000000..ef04ae892 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/README.md @@ -0,0 +1,538 @@ +# request.js + +> Send parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node + +[![@latest](https://img.shields.io/npm/v/@octokit/request.svg)](https://www.npmjs.com/package/@octokit/request) +[![Build Status](https://github.com/octokit/request.js/workflows/Test/badge.svg)](https://github.com/octokit/request.js/actions?query=workflow%3ATest+branch%3Amaster) + +`@octokit/request` is a request library for browsers & node that makes it easier +to interact with [GitHub’s REST API](https://developer.github.com/v3/) and +[GitHub’s GraphQL API](https://developer.github.com/v4/guides/forming-calls/#the-graphql-endpoint). + +It uses [`@octokit/endpoint`](https://github.com/octokit/endpoint.js) to parse +the passed options and sends the request using [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) +([node-fetch](https://github.com/bitinn/node-fetch) in Node). + + + + + +- [Features](#features) +- [Usage](#usage) + - [REST API example](#rest-api-example) + - [GraphQL example](#graphql-example) + - [Alternative: pass `method` & `url` as part of options](#alternative-pass-method--url-as-part-of-options) +- [Authentication](#authentication) +- [request()](#request) +- [`request.defaults()`](#requestdefaults) +- [`request.endpoint`](#requestendpoint) +- [Special cases](#special-cases) + - [The `data` parameter – set request body directly](#the-data-parameter-%E2%80%93-set-request-body-directly) + - [Set parameters for both the URL/query and the request body](#set-parameters-for-both-the-urlquery-and-the-request-body) +- [LICENSE](#license) + + + +## Features + +🤩 1:1 mapping of REST API endpoint documentation, e.g. [Add labels to an issue](https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue) becomes + +```js +request("POST /repos/:owner/:repo/issues/:number/labels", { + mediaType: { + previews: ["symmetra"], + }, + owner: "octokit", + repo: "request.js", + number: 1, + labels: ["🐛 bug"], +}); +``` + +👶 [Small bundle size](https://bundlephobia.com/result?p=@octokit/request@5.0.3) (\<4kb minified + gzipped) + +😎 [Authenticate](#authentication) with any of [GitHubs Authentication Strategies](https://github.com/octokit/auth.js). + +👍 Sensible defaults + +- `baseUrl`: `https://api.github.com` +- `headers.accept`: `application/vnd.github.v3+json` +- `headers.agent`: `octokit-request.js/ `, e.g. `octokit-request.js/1.2.3 Node.js/10.15.0 (macOS Mojave; x64)` + +👌 Simple to test: mock requests by passing a custom fetch method. + +🧐 Simple to debug: Sets `error.request` to request options causing the error (with redacted credentials). + +## Usage + + + + + + +
+Browsers + +Load @octokit/request directly from cdn.pika.dev + +```html + +``` + +
+Node + + +Install with npm install @octokit/request + +```js +const { request } = require("@octokit/request"); +// or: import { request } from "@octokit/request"; +``` + +
+ +### REST API example + +```js +// Following GitHub docs formatting: +// https://developer.github.com/v3/repos/#list-organization-repositories +const result = await request("GET /orgs/:org/repos", { + headers: { + authorization: "token 0000000000000000000000000000000000000001", + }, + org: "octokit", + type: "private", +}); + +console.log(`${result.data.length} repos found.`); +``` + +### GraphQL example + +For GraphQL request we recommend using [`@octokit/graphql`](https://github.com/octokit/graphql.js#readme) + +```js +const result = await request("POST /graphql", { + headers: { + authorization: "token 0000000000000000000000000000000000000001", + }, + query: `query ($login: String!) { + organization(login: $login) { + repositories(privacy: PRIVATE) { + totalCount + } + } + }`, + variables: { + login: "octokit", + }, +}); +``` + +### Alternative: pass `method` & `url` as part of options + +Alternatively, pass in a method and a url + +```js +const result = await request({ + method: "GET", + url: "/orgs/:org/repos", + headers: { + authorization: "token 0000000000000000000000000000000000000001", + }, + org: "octokit", + type: "private", +}); +``` + +## Authentication + +The simplest way to authenticate a request is to set the `Authorization` header directly, e.g. to a [personal access token](https://github.com/settings/tokens/). + +```js +const requestWithAuth = request.defaults({ + headers: { + authorization: "token 0000000000000000000000000000000000000001", + }, +}); +const result = await requestWithAuth("GET /user"); +``` + +For more complex authentication strategies such as GitHub Apps or Basic, we recommend the according authentication library exported by [`@octokit/auth`](https://github.com/octokit/auth.js). + +```js +const { createAppAuth } = require("@octokit/auth-app"); +const auth = createAppAuth({ + id: process.env.APP_ID, + privateKey: process.env.PRIVATE_KEY, + installationId: 123, +}); +const requestWithAuth = request.defaults({ + request: { + hook: auth.hook, + }, + mediaType: { + previews: ["machine-man"], + }, +}); + +const { data: app } = await requestWithAuth("GET /app"); +const { data: app } = await requestWithAuth("POST /repos/:owner/:repo/issues", { + owner: "octocat", + repo: "hello-world", + title: "Hello from the engine room", +}); +``` + +## request() + +`request(route, options)` or `request(options)`. + +**Options** + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ name + + type + + description +
+ route + + String + + If route is set it has to be a string consisting of the request method and URL, e.g. GET /orgs/:org +
+ options.baseUrl + + String + + Required. Any supported http verb, case insensitive. Defaults to https://api.github.com. +
+ options.headers + + Object + + Custom headers. Passed headers are merged with defaults:
+ headers['user-agent'] defaults to octokit-rest.js/1.2.3 (where 1.2.3 is the released version).
+ headers['accept'] defaults to application/vnd.github.v3+json.
Use options.mediaType.{format,previews} to request API previews and custom media types. +
+ options.mediaType.format + + String + + Media type param, such as `raw`, `html`, or `full`. See Media Types. +
+ options.mediaType.previews + + Array of strings + + Name of previews, such as `mercy`, `symmetra`, or `scarlet-witch`. See API Previews. +
+ options.method + + String + + Required. Any supported http verb, case insensitive. Defaults to Get. +
+ options.url + + String + + Required. A path or full URL which may contain :variable or {variable} placeholders, + e.g. /orgs/:org/repos. The url is parsed using url-template. +
+ options.data + + Any + + Set request body directly instead of setting it to JSON based on additional parameters. See "The `data` parameter" below. +
+ options.request.agent + + http(s).Agent instance + + Node only. Useful for custom proxy, certificate, or dns lookup. +
+ options.request.fetch + + Function + + Custom replacement for built-in fetch method. Useful for testing or request hooks. +
+ options.request.hook + + Function + + Function with the signature hook(request, endpointOptions), where endpointOptions are the parsed options as returned by endpoint.merge(), and request is request(). This option works great in conjuction with before-after-hook. +
+ options.request.signal + + new AbortController().signal + + Use an AbortController instance to cancel a request. In node you can only cancel streamed requests. +
+ options.request.timeout + + Number + + Node only. Request/response timeout in ms, it resets on redirect. 0 to disable (OS limit applies). options.request.signal is recommended instead. +
+ +All other options except `options.request.*` will be passed depending on the `method` and `url` options. + +1. If the option key is a placeholder in the `url`, it will be used as replacement. For example, if the passed options are `{url: '/orgs/:org/repos', org: 'foo'}` the returned `options.url` is `https://api.github.com/orgs/foo/repos` +2. If the `method` is `GET` or `HEAD`, the option is passed as query parameter +3. Otherwise the parameter is passed in the request body as JSON key. + +**Result** + +`request` returns a promise and resolves with 4 keys + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ key + + type + + description +
statusIntegerResponse status status
urlStringURL of response. If a request results in redirects, this is the final URL. You can send a HEAD request to retrieve it without loading the full response body.
headersObjectAll response headers
dataAnyThe response body as returned from server. If the response is JSON then it will be parsed into an object
+ +If an error occurs, the `error` instance has additional properties to help with debugging + +- `error.status` The http response status code +- `error.headers` The http response headers as an object +- `error.request` The request options such as `method`, `url` and `data` + +## `request.defaults()` + +Override or set default options. Example: + +```js +const myrequest = require("@octokit/request").defaults({ + baseUrl: "https://github-enterprise.acme-inc.com/api/v3", + headers: { + "user-agent": "myApp/1.2.3", + authorization: `token 0000000000000000000000000000000000000001`, + }, + org: "my-project", + per_page: 100, +}); + +myrequest(`GET /orgs/:org/repos`); +``` + +You can call `.defaults()` again on the returned method, the defaults will cascade. + +```js +const myProjectRequest = request.defaults({ + baseUrl: "https://github-enterprise.acme-inc.com/api/v3", + headers: { + "user-agent": "myApp/1.2.3", + }, + org: "my-project", +}); +const myProjectRequestWithAuth = myProjectRequest.defaults({ + headers: { + authorization: `token 0000000000000000000000000000000000000001`, + }, +}); +``` + +`myProjectRequest` now defaults the `baseUrl`, `headers['user-agent']`, +`org` and `headers['authorization']` on top of `headers['accept']` that is set +by the global default. + +## `request.endpoint` + +See https://github.com/octokit/endpoint.js. Example + +```js +const options = request.endpoint("GET /orgs/:org/repos", { + org: "my-project", + type: "private", +}); + +// { +// method: 'GET', +// url: 'https://api.github.com/orgs/my-project/repos?type=private', +// headers: { +// accept: 'application/vnd.github.v3+json', +// authorization: 'token 0000000000000000000000000000000000000001', +// 'user-agent': 'octokit/endpoint.js v1.2.3' +// } +// } +``` + +All of the [`@octokit/endpoint`](https://github.com/octokit/endpoint.js) API can be used: + +- [`octokitRequest.endpoint()`](#endpoint) +- [`octokitRequest.endpoint.defaults()`](#endpointdefaults) +- [`octokitRequest.endpoint.merge()`](#endpointdefaults) +- [`octokitRequest.endpoint.parse()`](#endpointmerge) + +## Special cases + + + +### The `data` parameter – set request body directly + +Some endpoints such as [Render a Markdown document in raw mode](https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode) don’t have parameters that are sent as request body keys, instead the request body needs to be set directly. In these cases, set the `data` parameter. + +```js +const response = await request("POST /markdown/raw", { + data: "Hello world github/linguist#1 **cool**, and #1!", + headers: { + accept: "text/html;charset=utf-8", + "content-type": "text/plain", + }, +}); + +// Request is sent as +// +// { +// method: 'post', +// url: 'https://api.github.com/markdown/raw', +// headers: { +// accept: 'text/html;charset=utf-8', +// 'content-type': 'text/plain', +// 'user-agent': userAgent +// }, +// body: 'Hello world github/linguist#1 **cool**, and #1!' +// } +// +// not as +// +// { +// ... +// body: '{"data": "Hello world github/linguist#1 **cool**, and #1!"}' +// } +``` + +### Set parameters for both the URL/query and the request body + +There are API endpoints that accept both query parameters as well as a body. In that case you need to add the query parameters as templates to `options.url`, as defined in the [RFC 6570 URI Template specification](https://tools.ietf.org/html/rfc6570). + +Example + +```js +request( + "POST https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}", + { + name: "example.zip", + label: "short description", + headers: { + "content-type": "text/plain", + "content-length": 14, + authorization: `token 0000000000000000000000000000000000000001`, + }, + data: "Hello, world!", + } +); +``` + +## LICENSE + +[MIT](LICENSE) diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js new file mode 100644 index 000000000..72048946d --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js @@ -0,0 +1,148 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var endpoint = require('@octokit/endpoint'); +var universalUserAgent = require('universal-user-agent'); +var isPlainObject = _interopDefault(require('is-plain-object')); +var nodeFetch = _interopDefault(require('node-fetch')); +var requestError = require('@octokit/request-error'); + +const VERSION = "5.4.7"; + +function getBufferResponse(response) { + return response.arrayBuffer(); +} + +function fetchWrapper(requestOptions) { + if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) { + requestOptions.body = JSON.stringify(requestOptions.body); + } + + let headers = {}; + let status; + let url; + const fetch = requestOptions.request && requestOptions.request.fetch || nodeFetch; + return fetch(requestOptions.url, Object.assign({ + method: requestOptions.method, + body: requestOptions.body, + headers: requestOptions.headers, + redirect: requestOptions.redirect + }, requestOptions.request)).then(response => { + url = response.url; + status = response.status; + + for (const keyAndValue of response.headers) { + headers[keyAndValue[0]] = keyAndValue[1]; + } + + if (status === 204 || status === 205) { + return; + } // GitHub API returns 200 for HEAD requests + + + if (requestOptions.method === "HEAD") { + if (status < 400) { + return; + } + + throw new requestError.RequestError(response.statusText, status, { + headers, + request: requestOptions + }); + } + + if (status === 304) { + throw new requestError.RequestError("Not modified", status, { + headers, + request: requestOptions + }); + } + + if (status >= 400) { + return response.text().then(message => { + const error = new requestError.RequestError(message, status, { + headers, + request: requestOptions + }); + + try { + let responseBody = JSON.parse(error.message); + Object.assign(error, responseBody); + let errors = responseBody.errors; // Assumption `errors` would always be in Array format + + error.message = error.message + ": " + errors.map(JSON.stringify).join(", "); + } catch (e) {// ignore, see octokit/rest.js#684 + } + + throw error; + }); + } + + const contentType = response.headers.get("content-type"); + + if (/application\/json/.test(contentType)) { + return response.json(); + } + + if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { + return response.text(); + } + + return getBufferResponse(response); + }).then(data => { + return { + status, + url, + headers, + data + }; + }).catch(error => { + if (error instanceof requestError.RequestError) { + throw error; + } + + throw new requestError.RequestError(error.message, 500, { + headers, + request: requestOptions + }); + }); +} + +function withDefaults(oldEndpoint, newDefaults) { + const endpoint = oldEndpoint.defaults(newDefaults); + + const newApi = function (route, parameters) { + const endpointOptions = endpoint.merge(route, parameters); + + if (!endpointOptions.request || !endpointOptions.request.hook) { + return fetchWrapper(endpoint.parse(endpointOptions)); + } + + const request = (route, parameters) => { + return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters))); + }; + + Object.assign(request, { + endpoint, + defaults: withDefaults.bind(null, endpoint) + }); + return endpointOptions.request.hook(request, endpointOptions); + }; + + return Object.assign(newApi, { + endpoint, + defaults: withDefaults.bind(null, endpoint) + }); +} + +const request = withDefaults(endpoint.endpoint, { + headers: { + "user-agent": `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}` + } +}); + +exports.request = request; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js.map b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js.map new file mode 100644 index 000000000..7beace707 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.7\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import isPlainObject from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["VERSION","getBufferResponse","response","arrayBuffer","fetchWrapper","requestOptions","isPlainObject","body","Array","isArray","JSON","stringify","headers","status","url","fetch","request","nodeFetch","Object","assign","method","redirect","then","keyAndValue","RequestError","statusText","text","message","error","responseBody","parse","errors","map","join","e","contentType","get","test","json","getBuffer","data","catch","withDefaults","oldEndpoint","newDefaults","endpoint","defaults","newApi","route","parameters","endpointOptions","merge","hook","bind","getUserAgent"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/fetch-wrapper.js b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/fetch-wrapper.js new file mode 100644 index 000000000..5fef6e5fc --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/fetch-wrapper.js @@ -0,0 +1,93 @@ +import isPlainObject from "is-plain-object"; +import nodeFetch from "node-fetch"; +import { RequestError } from "@octokit/request-error"; +import getBuffer from "./get-buffer-response"; +export default function fetchWrapper(requestOptions) { + if (isPlainObject(requestOptions.body) || + Array.isArray(requestOptions.body)) { + requestOptions.body = JSON.stringify(requestOptions.body); + } + let headers = {}; + let status; + let url; + const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch; + return fetch(requestOptions.url, Object.assign({ + method: requestOptions.method, + body: requestOptions.body, + headers: requestOptions.headers, + redirect: requestOptions.redirect, + }, requestOptions.request)) + .then((response) => { + url = response.url; + status = response.status; + for (const keyAndValue of response.headers) { + headers[keyAndValue[0]] = keyAndValue[1]; + } + if (status === 204 || status === 205) { + return; + } + // GitHub API returns 200 for HEAD requests + if (requestOptions.method === "HEAD") { + if (status < 400) { + return; + } + throw new RequestError(response.statusText, status, { + headers, + request: requestOptions, + }); + } + if (status === 304) { + throw new RequestError("Not modified", status, { + headers, + request: requestOptions, + }); + } + if (status >= 400) { + return response + .text() + .then((message) => { + const error = new RequestError(message, status, { + headers, + request: requestOptions, + }); + try { + let responseBody = JSON.parse(error.message); + Object.assign(error, responseBody); + let errors = responseBody.errors; + // Assumption `errors` would always be in Array format + error.message = + error.message + ": " + errors.map(JSON.stringify).join(", "); + } + catch (e) { + // ignore, see octokit/rest.js#684 + } + throw error; + }); + } + const contentType = response.headers.get("content-type"); + if (/application\/json/.test(contentType)) { + return response.json(); + } + if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { + return response.text(); + } + return getBuffer(response); + }) + .then((data) => { + return { + status, + url, + headers, + data, + }; + }) + .catch((error) => { + if (error instanceof RequestError) { + throw error; + } + throw new RequestError(error.message, 500, { + headers, + request: requestOptions, + }); + }); +} diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/get-buffer-response.js b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/get-buffer-response.js new file mode 100644 index 000000000..845a3947b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/get-buffer-response.js @@ -0,0 +1,3 @@ +export default function getBufferResponse(response) { + return response.arrayBuffer(); +} diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/index.js b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/index.js new file mode 100644 index 000000000..2460e992c --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/index.js @@ -0,0 +1,9 @@ +import { endpoint } from "@octokit/endpoint"; +import { getUserAgent } from "universal-user-agent"; +import { VERSION } from "./version"; +import withDefaults from "./with-defaults"; +export const request = withDefaults(endpoint, { + headers: { + "user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`, + }, +}); diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/version.js b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/version.js new file mode 100644 index 000000000..37a8e689f --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/version.js @@ -0,0 +1 @@ +export const VERSION = "5.4.7"; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/with-defaults.js b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/with-defaults.js new file mode 100644 index 000000000..e20642945 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-src/with-defaults.js @@ -0,0 +1,22 @@ +import fetchWrapper from "./fetch-wrapper"; +export default function withDefaults(oldEndpoint, newDefaults) { + const endpoint = oldEndpoint.defaults(newDefaults); + const newApi = function (route, parameters) { + const endpointOptions = endpoint.merge(route, parameters); + if (!endpointOptions.request || !endpointOptions.request.hook) { + return fetchWrapper(endpoint.parse(endpointOptions)); + } + const request = (route, parameters) => { + return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters))); + }; + Object.assign(request, { + endpoint, + defaults: withDefaults.bind(null, endpoint), + }); + return endpointOptions.request.hook(request, endpointOptions); + }; + return Object.assign(newApi, { + endpoint, + defaults: withDefaults.bind(null, endpoint), + }); +} diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts new file mode 100644 index 000000000..4901c79e7 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/fetch-wrapper.d.ts @@ -0,0 +1,11 @@ +import { EndpointInterface } from "@octokit/types"; +export default function fetchWrapper(requestOptions: ReturnType & { + redirect?: "error" | "follow" | "manual"; +}): Promise<{ + status: number; + url: string; + headers: { + [header: string]: string; + }; + data: any; +}>; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/get-buffer-response.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/get-buffer-response.d.ts new file mode 100644 index 000000000..915b70577 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/get-buffer-response.d.ts @@ -0,0 +1,2 @@ +import { Response } from "node-fetch"; +export default function getBufferResponse(response: Response): Promise; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/index.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/index.d.ts new file mode 100644 index 000000000..1030809f9 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/index.d.ts @@ -0,0 +1 @@ +export declare const request: import("@octokit/types").RequestInterface; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/version.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/version.d.ts new file mode 100644 index 000000000..0671088d7 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/version.d.ts @@ -0,0 +1 @@ +export declare const VERSION = "5.4.7"; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/with-defaults.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/with-defaults.d.ts new file mode 100644 index 000000000..00804693a --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-types/with-defaults.d.ts @@ -0,0 +1,2 @@ +import { EndpointInterface, RequestInterface, RequestParameters } from "@octokit/types"; +export default function withDefaults(oldEndpoint: EndpointInterface, newDefaults: RequestParameters): RequestInterface; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js new file mode 100644 index 000000000..7c54c1ffd --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js @@ -0,0 +1,132 @@ +import { endpoint } from '@octokit/endpoint'; +import { getUserAgent } from 'universal-user-agent'; +import isPlainObject from 'is-plain-object'; +import nodeFetch from 'node-fetch'; +import { RequestError } from '@octokit/request-error'; + +const VERSION = "5.4.7"; + +function getBufferResponse(response) { + return response.arrayBuffer(); +} + +function fetchWrapper(requestOptions) { + if (isPlainObject(requestOptions.body) || + Array.isArray(requestOptions.body)) { + requestOptions.body = JSON.stringify(requestOptions.body); + } + let headers = {}; + let status; + let url; + const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch; + return fetch(requestOptions.url, Object.assign({ + method: requestOptions.method, + body: requestOptions.body, + headers: requestOptions.headers, + redirect: requestOptions.redirect, + }, requestOptions.request)) + .then((response) => { + url = response.url; + status = response.status; + for (const keyAndValue of response.headers) { + headers[keyAndValue[0]] = keyAndValue[1]; + } + if (status === 204 || status === 205) { + return; + } + // GitHub API returns 200 for HEAD requests + if (requestOptions.method === "HEAD") { + if (status < 400) { + return; + } + throw new RequestError(response.statusText, status, { + headers, + request: requestOptions, + }); + } + if (status === 304) { + throw new RequestError("Not modified", status, { + headers, + request: requestOptions, + }); + } + if (status >= 400) { + return response + .text() + .then((message) => { + const error = new RequestError(message, status, { + headers, + request: requestOptions, + }); + try { + let responseBody = JSON.parse(error.message); + Object.assign(error, responseBody); + let errors = responseBody.errors; + // Assumption `errors` would always be in Array format + error.message = + error.message + ": " + errors.map(JSON.stringify).join(", "); + } + catch (e) { + // ignore, see octokit/rest.js#684 + } + throw error; + }); + } + const contentType = response.headers.get("content-type"); + if (/application\/json/.test(contentType)) { + return response.json(); + } + if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { + return response.text(); + } + return getBufferResponse(response); + }) + .then((data) => { + return { + status, + url, + headers, + data, + }; + }) + .catch((error) => { + if (error instanceof RequestError) { + throw error; + } + throw new RequestError(error.message, 500, { + headers, + request: requestOptions, + }); + }); +} + +function withDefaults(oldEndpoint, newDefaults) { + const endpoint = oldEndpoint.defaults(newDefaults); + const newApi = function (route, parameters) { + const endpointOptions = endpoint.merge(route, parameters); + if (!endpointOptions.request || !endpointOptions.request.hook) { + return fetchWrapper(endpoint.parse(endpointOptions)); + } + const request = (route, parameters) => { + return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters))); + }; + Object.assign(request, { + endpoint, + defaults: withDefaults.bind(null, endpoint), + }); + return endpointOptions.request.hook(request, endpointOptions); + }; + return Object.assign(newApi, { + endpoint, + defaults: withDefaults.bind(null, endpoint), + }); +} + +const request = withDefaults(endpoint, { + headers: { + "user-agent": `octokit-request.js/${VERSION} ${getUserAgent()}`, + }, +}); + +export { request }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js.map b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js.map new file mode 100644 index 000000000..9e2cc2037 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.7\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import isPlainObject from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["getBuffer"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/LICENSE.md b/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/LICENSE.md similarity index 100% rename from node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/LICENSE.md rename to node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/LICENSE.md diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/README.md b/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/README.md similarity index 100% rename from node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/README.md rename to node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/README.md diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-node/index.js b/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js similarity index 100% rename from node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-node/index.js rename to node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-node/index.js.map b/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js.map similarity index 100% rename from node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-node/index.js.map rename to node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-node/index.js.map diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-src/index.js b/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/index.js similarity index 100% rename from node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-src/index.js rename to node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-src/index.js diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-types/index.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/index.d.ts similarity index 100% rename from node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-types/index.d.ts rename to node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-types/index.d.ts diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-web/index.js b/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js similarity index 100% rename from node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-web/index.js rename to node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-web/index.js.map b/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js.map similarity index 100% rename from node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/dist-web/index.js.map rename to node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/dist-web/index.js.map diff --git a/node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json b/node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/package.json similarity index 100% rename from node_modules/@octokit/core/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json rename to node_modules/@octokit/graphql/node_modules/@octokit/request/node_modules/universal-user-agent/package.json diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/request/package.json b/node_modules/@octokit/graphql/node_modules/@octokit/request/package.json new file mode 100644 index 000000000..f4a7c98af --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/request/package.json @@ -0,0 +1,64 @@ +{ + "name": "@octokit/request", + "description": "Send parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node", + "version": "5.4.7", + "license": "MIT", + "files": [ + "dist-*/", + "bin/" + ], + "pika": true, + "sideEffects": false, + "keywords": [ + "octokit", + "github", + "api", + "request" + ], + "homepage": "https://github.com/octokit/request.js#readme", + "bugs": { + "url": "https://github.com/octokit/request.js/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/octokit/request.js.git" + }, + "dependencies": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.0.0", + "@octokit/types": "^5.0.0", + "deprecation": "^2.0.0", + "is-plain-object": "^4.0.0", + "node-fetch": "^2.3.0", + "once": "^1.4.0", + "universal-user-agent": "^6.0.0" + }, + "devDependencies": { + "@octokit/auth-app": "^2.1.2", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.9.0", + "@pika/plugin-build-web": "^0.9.0", + "@pika/plugin-ts-standard-pkg": "^0.9.0", + "@types/fetch-mock": "^7.2.4", + "@types/jest": "^26.0.0", + "@types/lolex": "^5.1.0", + "@types/node": "^14.0.0", + "@types/node-fetch": "^2.3.3", + "@types/once": "^1.4.0", + "fetch-mock": "^9.3.1", + "jest": "^26.0.1", + "lolex": "^6.0.0", + "prettier": "^2.0.1", + "semantic-release": "^17.0.0", + "semantic-release-plugin-update-version-in-files": "^1.0.0", + "ts-jest": "^26.1.0", + "typescript": "^3.9.5" + }, + "publishConfig": { + "access": "public" + }, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "main": "dist-node/index.js", + "module": "dist-web/index.js" +} diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-rest-endpoint-methods/LICENSE b/node_modules/@octokit/graphql/node_modules/@octokit/types/LICENSE similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-rest-endpoint-methods/LICENSE rename to node_modules/@octokit/graphql/node_modules/@octokit/types/LICENSE diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/README.md b/node_modules/@octokit/graphql/node_modules/@octokit/types/README.md new file mode 100644 index 000000000..707894566 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/README.md @@ -0,0 +1,64 @@ +# types.ts + +> Shared TypeScript definitions for Octokit projects + +[![@latest](https://img.shields.io/npm/v/@octokit/types.svg)](https://www.npmjs.com/package/@octokit/types) +[![Build Status](https://github.com/octokit/types.ts/workflows/Test/badge.svg)](https://github.com/octokit/types.ts/actions?workflow=Test) + + + +- [Usage](#usage) +- [Examples](#examples) + - [Get parameter and response data types for a REST API endpoint](#get-parameter-and-response-data-types-for-a-rest-api-endpoint) + - [Get response types from endpoint methods](#get-response-types-from-endpoint-methods) +- [Contributing](#contributing) +- [License](#license) + + + +## Usage + +See all exported types at https://octokit.github.io/types.ts + +## Examples + +### Get parameter and response data types for a REST API endpoint + +```ts +import { Endpoints } from "@octokit/types"; + +type listUserReposParameters = Endpoints["GET /repos/:owner/:repo"]["parameters"]; +type listUserReposResponse = Endpoints["GET /repos/:owner/:repo"]["response"]; + +async function listRepos( + options: listUserReposParameters +): listUserReposResponse["data"] { + // ... +} +``` + +### Get response types from endpoint methods + +```ts +import { + GetResponseTypeFromEndpointMethod, + GetResponseDataTypeFromEndpointMethod, +} from "@octokit/types"; +import { Octokit } from "@octokit/rest"; + +const octokit = new Octokit(); +type CreateLabelResponseType = GetResponseTypeFromEndpointMethod< + typeof octokit.issues.createLabel +>; +type CreateLabelResponseDataType = GetResponseDataTypeFromEndpointMethod< + typeof octokit.issues.createLabel +>; +``` + +## Contributing + +See [CONTRIBUTING.md](CONTRIBUTING.md) + +## License + +[MIT](LICENSE) diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-node/index.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-node/index.js new file mode 100644 index 000000000..b888f5732 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-node/index.js @@ -0,0 +1,8 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +const VERSION = "6.0.3"; + +exports.VERSION = VERSION; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-node/index.js.map b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-node/index.js.map new file mode 100644 index 000000000..2d148d3b9 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/VERSION.js"],"sourcesContent":["export const VERSION = \"0.0.0-development\";\n"],"names":["VERSION"],"mappings":";;;;MAAaA,OAAO,GAAG;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/AuthInterface.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/AuthInterface.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/AuthInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointDefaults.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointDefaults.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointDefaults.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointInterface.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointInterface.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointOptions.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointOptions.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/EndpointOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Fetch.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Fetch.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Fetch.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/OctokitResponse.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/OctokitResponse.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/OctokitResponse.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestError.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestError.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestError.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestHeaders.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestHeaders.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestHeaders.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestInterface.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestInterface.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestMethod.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestMethod.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestMethod.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestOptions.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestOptions.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestParameters.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestParameters.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestParameters.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestRequestOptions.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestRequestOptions.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/RequestRequestOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/ResponseHeaders.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/ResponseHeaders.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/ResponseHeaders.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Route.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Route.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Route.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Signal.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Signal.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Signal.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/StrategyInterface.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/StrategyInterface.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/StrategyInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Url.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Url.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/Url.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/VERSION.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/VERSION.js new file mode 100644 index 000000000..38cea4357 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/VERSION.js @@ -0,0 +1 @@ +export const VERSION = "6.0.3"; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/generated/Endpoints.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/generated/Endpoints.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/generated/Endpoints.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/index.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/index.js new file mode 100644 index 000000000..004ae9b22 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-src/index.js @@ -0,0 +1,21 @@ +export * from "./AuthInterface"; +export * from "./EndpointDefaults"; +export * from "./EndpointInterface"; +export * from "./EndpointOptions"; +export * from "./Fetch"; +export * from "./OctokitResponse"; +export * from "./RequestError"; +export * from "./RequestHeaders"; +export * from "./RequestInterface"; +export * from "./RequestMethod"; +export * from "./RequestOptions"; +export * from "./RequestParameters"; +export * from "./RequestRequestOptions"; +export * from "./ResponseHeaders"; +export * from "./Route"; +export * from "./Signal"; +export * from "./StrategyInterface"; +export * from "./Url"; +export * from "./VERSION"; +export * from "./GetResponseTypeFromEndpointMethod"; +export * from "./generated/Endpoints"; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/AuthInterface.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/AuthInterface.d.ts new file mode 100644 index 000000000..0c19b50d2 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/AuthInterface.d.ts @@ -0,0 +1,31 @@ +import { EndpointOptions } from "./EndpointOptions"; +import { OctokitResponse } from "./OctokitResponse"; +import { RequestInterface } from "./RequestInterface"; +import { RequestParameters } from "./RequestParameters"; +import { Route } from "./Route"; +/** + * Interface to implement complex authentication strategies for Octokit. + * An object Implementing the AuthInterface can directly be passed as the + * `auth` option in the Octokit constructor. + * + * For the official implementations of the most common authentication + * strategies, see https://github.com/octokit/auth.js + */ +export interface AuthInterface { + (...args: AuthOptions): Promise; + hook: { + /** + * Sends a request using the passed `request` instance + * + * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (request: RequestInterface, options: EndpointOptions): Promise>; + /** + * Sends a request using the passed `request` instance + * + * @param {string} route Request method + URL. Example: `'GET /orgs/:org'` + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (request: RequestInterface, route: Route, parameters?: RequestParameters): Promise>; + }; +} diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts new file mode 100644 index 000000000..a2c230782 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts @@ -0,0 +1,21 @@ +import { RequestHeaders } from "./RequestHeaders"; +import { RequestMethod } from "./RequestMethod"; +import { RequestParameters } from "./RequestParameters"; +import { Url } from "./Url"; +/** + * The `.endpoint()` method is guaranteed to set all keys defined by RequestParameters + * as well as the method property. + */ +export declare type EndpointDefaults = RequestParameters & { + baseUrl: Url; + method: RequestMethod; + url?: Url; + headers: RequestHeaders & { + accept: string; + "user-agent": string; + }; + mediaType: { + format: string; + previews: string[]; + }; +}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts new file mode 100644 index 000000000..df585bef1 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts @@ -0,0 +1,65 @@ +import { EndpointDefaults } from "./EndpointDefaults"; +import { RequestOptions } from "./RequestOptions"; +import { RequestParameters } from "./RequestParameters"; +import { Route } from "./Route"; +import { Endpoints } from "./generated/Endpoints"; +export interface EndpointInterface { + /** + * Transforms a GitHub REST API endpoint into generic request options + * + * @param {object} endpoint Must set `url` unless it's set defaults. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (options: O & { + method?: string; + } & ("url" extends keyof D ? { + url?: string; + } : { + url: string; + })): RequestOptions & Pick; + /** + * Transforms a GitHub REST API endpoint into generic request options + * + * @param {string} route Request method + URL. Example: `'GET /orgs/:org'` + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (route: keyof Endpoints | R, parameters?: P): (R extends keyof Endpoints ? Endpoints[R]["request"] : RequestOptions) & Pick; + /** + * Object with current default route and parameters + */ + DEFAULTS: D & EndpointDefaults; + /** + * Returns a new `endpoint` interface with new defaults + */ + defaults: (newDefaults: O) => EndpointInterface; + merge: { + /** + * Merges current endpoint defaults with passed route and parameters, + * without transforming them into request options. + * + * @param {string} route Request method + URL. Example: `'GET /orgs/:org'` + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + * + */ + (route: keyof Endpoints | R, parameters?: P): D & (R extends keyof Endpoints ? Endpoints[R]["request"] & Endpoints[R]["parameters"] : EndpointDefaults) & P; + /** + * Merges current endpoint defaults with passed route and parameters, + * without transforming them into request options. + * + * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ +

(options: P): EndpointDefaults & D & P; + /** + * Returns current default options. + * + * @deprecated use endpoint.DEFAULTS instead + */ + (): D & EndpointDefaults; + }; + /** + * Stateless method to turn endpoint options into request options. + * Calling `endpoint(options)` is the same as calling `endpoint.parse(endpoint.merge(options))`. + * + * @param {object} options `method`, `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + parse: (options: O) => RequestOptions & Pick; +} diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts new file mode 100644 index 000000000..b1b91f11f --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts @@ -0,0 +1,7 @@ +import { RequestMethod } from "./RequestMethod"; +import { Url } from "./Url"; +import { RequestParameters } from "./RequestParameters"; +export declare type EndpointOptions = RequestParameters & { + method: RequestMethod; + url: Url; +}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Fetch.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Fetch.d.ts new file mode 100644 index 000000000..cbbd5e8fa --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Fetch.d.ts @@ -0,0 +1,4 @@ +/** + * Browser's fetch method (or compatible such as fetch-mock) + */ +export declare type Fetch = any; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts new file mode 100644 index 000000000..70e1a8d46 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts @@ -0,0 +1,5 @@ +declare type Unwrap = T extends Promise ? U : T; +declare type AnyFunction = (...args: any[]) => any; +export declare type GetResponseTypeFromEndpointMethod = Unwrap>; +export declare type GetResponseDataTypeFromEndpointMethod = Unwrap>["data"]; +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts new file mode 100644 index 000000000..19ffff822 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts @@ -0,0 +1,17 @@ +import { ResponseHeaders } from "./ResponseHeaders"; +import { Url } from "./Url"; +export declare type OctokitResponse = { + headers: ResponseHeaders; + /** + * http response code + */ + status: S; + /** + * URL of response after all redirects + */ + url: Url; + /** + * This is the data you would see in https://developer.Octokit.com/v3/ + */ + data: T; +}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestError.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestError.d.ts new file mode 100644 index 000000000..89174e6ee --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestError.d.ts @@ -0,0 +1,11 @@ +export declare type RequestError = { + name: string; + status: number; + documentation_url: string; + errors?: Array<{ + resource: string; + code: string; + field: string; + message?: string; + }>; +}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts new file mode 100644 index 000000000..ac5aae0a5 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts @@ -0,0 +1,15 @@ +export declare type RequestHeaders = { + /** + * Avoid setting `headers.accept`, use `mediaType.{format|previews}` option instead. + */ + accept?: string; + /** + * Use `authorization` to send authenticated request, remember `token ` / `bearer ` prefixes. Example: `token 1234567890abcdef1234567890abcdef12345678` + */ + authorization?: string; + /** + * `user-agent` is set do a default and can be overwritten as needed. + */ + "user-agent"?: string; + [header: string]: string | number | undefined; +}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestInterface.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestInterface.d.ts new file mode 100644 index 000000000..ef4d8d3a8 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestInterface.d.ts @@ -0,0 +1,34 @@ +import { EndpointInterface } from "./EndpointInterface"; +import { OctokitResponse } from "./OctokitResponse"; +import { RequestParameters } from "./RequestParameters"; +import { Route } from "./Route"; +import { Endpoints } from "./generated/Endpoints"; +export interface RequestInterface { + /** + * Sends a request based on endpoint options + * + * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (options: O & { + method?: string; + } & ("url" extends keyof D ? { + url?: string; + } : { + url: string; + })): Promise>; + /** + * Sends a request based on endpoint options + * + * @param {string} route Request method + URL. Example: `'GET /orgs/:org'` + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (route: keyof Endpoints | R, options?: R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters): R extends keyof Endpoints ? Promise : Promise>; + /** + * Returns a new `request` with updated route and parameters + */ + defaults: (newDefaults: O) => RequestInterface; + /** + * Octokit endpoint API, see {@link https://github.com/octokit/endpoint.js|@octokit/endpoint} + */ + endpoint: EndpointInterface; +} diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestMethod.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestMethod.d.ts new file mode 100644 index 000000000..e999c8d96 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestMethod.d.ts @@ -0,0 +1,4 @@ +/** + * HTTP Verb supported by GitHub's REST API + */ +export declare type RequestMethod = "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT"; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestOptions.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestOptions.d.ts new file mode 100644 index 000000000..97e2181ca --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestOptions.d.ts @@ -0,0 +1,14 @@ +import { RequestHeaders } from "./RequestHeaders"; +import { RequestMethod } from "./RequestMethod"; +import { RequestRequestOptions } from "./RequestRequestOptions"; +import { Url } from "./Url"; +/** + * Generic request options as they are returned by the `endpoint()` method + */ +export declare type RequestOptions = { + method: RequestMethod; + url: Url; + headers: RequestHeaders; + body?: any; + request?: RequestRequestOptions; +}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestParameters.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestParameters.d.ts new file mode 100644 index 000000000..692d193b4 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestParameters.d.ts @@ -0,0 +1,45 @@ +import { RequestRequestOptions } from "./RequestRequestOptions"; +import { RequestHeaders } from "./RequestHeaders"; +import { Url } from "./Url"; +/** + * Parameters that can be passed into `request(route, parameters)` or `endpoint(route, parameters)` methods + */ +export declare type RequestParameters = { + /** + * Base URL to be used when a relative URL is passed, such as `/orgs/:org`. + * If `baseUrl` is `https://enterprise.acme-inc.com/api/v3`, then the request + * will be sent to `https://enterprise.acme-inc.com/api/v3/orgs/:org`. + */ + baseUrl?: Url; + /** + * HTTP headers. Use lowercase keys. + */ + headers?: RequestHeaders; + /** + * Media type options, see {@link https://developer.github.com/v3/media/|GitHub Developer Guide} + */ + mediaType?: { + /** + * `json` by default. Can be `raw`, `text`, `html`, `full`, `diff`, `patch`, `sha`, `base64`. Depending on endpoint + */ + format?: string; + /** + * Custom media type names of {@link https://developer.github.com/v3/media/|API Previews} without the `-preview` suffix. + * Example for single preview: `['squirrel-girl']`. + * Example for multiple previews: `['squirrel-girl', 'mister-fantastic']`. + */ + previews?: string[]; + }; + /** + * Pass custom meta information for the request. The `request` object will be returned as is. + */ + request?: RequestRequestOptions; + /** + * Any additional parameter will be passed as follows + * 1. URL parameter if `':parameter'` or `{parameter}` is part of `url` + * 2. Query parameter if `method` is `'GET'` or `'HEAD'` + * 3. Request body if `parameter` is `'data'` + * 4. JSON in the request body in the form of `body[parameter]` unless `parameter` key is `'data'` + */ + [parameter: string]: unknown; +}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts new file mode 100644 index 000000000..4482a8a45 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts @@ -0,0 +1,26 @@ +/// +import { Agent } from "http"; +import { Fetch } from "./Fetch"; +import { Signal } from "./Signal"; +/** + * Octokit-specific request options which are ignored for the actual request, but can be used by Octokit or plugins to manipulate how the request is sent or how a response is handled + */ +export declare type RequestRequestOptions = { + /** + * Node only. Useful for custom proxy, certificate, or dns lookup. + */ + agent?: Agent; + /** + * Custom replacement for built-in fetch method. Useful for testing or request hooks. + */ + fetch?: Fetch; + /** + * Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests. + */ + signal?: Signal; + /** + * Node only. Request/response timeout in ms, it resets on redirect. 0 to disable (OS limit applies). `options.request.signal` is recommended instead. + */ + timeout?: number; + [option: string]: any; +}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts new file mode 100644 index 000000000..c8fbe43f3 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts @@ -0,0 +1,20 @@ +export declare type ResponseHeaders = { + "cache-control"?: string; + "content-length"?: number; + "content-type"?: string; + date?: string; + etag?: string; + "last-modified"?: string; + link?: string; + location?: string; + server?: string; + status?: string; + vary?: string; + "x-github-mediatype"?: string; + "x-github-request-id"?: string; + "x-oauth-scopes"?: string; + "x-ratelimit-limit"?: string; + "x-ratelimit-remaining"?: string; + "x-ratelimit-reset"?: string; + [header: string]: string | number | undefined; +}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Route.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Route.d.ts new file mode 100644 index 000000000..807904440 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Route.d.ts @@ -0,0 +1,4 @@ +/** + * String consisting of an optional HTTP method and relative path or absolute URL. Examples: `'/orgs/:org'`, `'PUT /orgs/:org'`, `GET https://example.com/foo/bar` + */ +export declare type Route = string; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Signal.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Signal.d.ts new file mode 100644 index 000000000..4ebcf24e6 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Signal.d.ts @@ -0,0 +1,6 @@ +/** + * Abort signal + * + * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal + */ +export declare type Signal = any; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts new file mode 100644 index 000000000..405cbd235 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts @@ -0,0 +1,4 @@ +import { AuthInterface } from "./AuthInterface"; +export interface StrategyInterface { + (...args: StrategyOptions): AuthInterface; +} diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Url.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Url.d.ts new file mode 100644 index 000000000..acaad6336 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/Url.d.ts @@ -0,0 +1,4 @@ +/** + * Relative or absolute URL. Examples: `'/orgs/:org'`, `https://example.com/foo/bar` + */ +export declare type Url = string; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/VERSION.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/VERSION.d.ts new file mode 100644 index 000000000..af986fe4f --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/VERSION.d.ts @@ -0,0 +1 @@ +export declare const VERSION = "6.0.3"; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts new file mode 100644 index 000000000..399f673bf --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts @@ -0,0 +1,2972 @@ +import { paths } from "@octokit/openapi-types"; +import { OctokitResponse } from "../OctokitResponse"; +import { RequestHeaders } from "../RequestHeaders"; +import { RequestRequestOptions } from "../RequestRequestOptions"; +declare type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; +declare type ExtractParameters = "parameters" extends keyof T ? UnionToIntersection<{ + [K in keyof T["parameters"]]: T["parameters"][K]; +}[keyof T["parameters"]]> : {}; +declare type ExtractRequestBody = "requestBody" extends keyof T ? "application/json" extends keyof T["requestBody"] ? T["requestBody"]["application/json"] : { + data: { + [K in keyof T["requestBody"]]: T["requestBody"][K]; + }[keyof T["requestBody"]]; +} : {}; +declare type ToOctokitParameters = ExtractParameters & ExtractRequestBody; +declare type RequiredPreview = T extends string ? { + mediaType: { + previews: [T, ...string[]]; + }; +} : {}; +declare type Operation = { + parameters: ToOctokitParameters & RequiredPreview; + request: { + method: Method extends keyof MethodsMap ? MethodsMap[Method] : never; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; + }; + response: Url extends keyof EndpointsWithMissingRequiredResponseDataSchema ? Method extends EndpointsWithMissingRequiredResponseDataSchema[Url] ? DeepRequired> : ExtractFirstSuccessResponse : ExtractFirstSuccessResponse; +}; +declare type MethodsMap = { + delete: "DELETE"; + get: "GET"; + patch: "PATCH"; + post: "POST"; + put: "PUT"; +}; +declare type SuccessStatusesMap = { + "200": 200; + "201": 201; + "204": 204; +}; +declare type RedirectStatusesMap = { + "301": 301; + "302": 302; +}; +declare type DataType = "application/json" extends keyof T ? T["application/json"] : "application/scim+json" extends keyof T ? T["application/scim+json"] : unknown; +declare type ExtractFirstSuccessResponse = "responses" extends keyof R ? FirstSuccessResponse : unknown; +declare type FirstSuccessResponse = S extends keyof SuccessStatusesMap ? R[S] extends never ? Omit, "data"> : OctokitResponse, SuccessStatusesMap[S]> : S extends keyof RedirectStatusesMap ? OctokitResponse : never; +declare type EndpointsWithMissingRequiredResponseDataSchema = { + "/app/hook/config": "get" | "patch"; + "/app/installations/{installation_id}/access_tokens": "post"; + "/emojis": "get"; + "/enterprises/{enterprise}/actions/permissions": "get"; + "/enterprises/{enterprise}/actions/permissions/organizations": "get"; + "/enterprises/{enterprise}/actions/permissions/selected-actions": "get"; + "/enterprises/{enterprise}/actions/runner-groups": "get" | "post"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": "get" | "patch"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": "get"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": "get"; + "/enterprises/{enterprise}/actions/runners": "get"; + "/enterprises/{enterprise}/actions/runners/downloads": "get"; + "/enterprises/{enterprise}/settings/billing/actions": "get"; + "/enterprises/{enterprise}/settings/billing/packages": "get"; + "/enterprises/{enterprise}/settings/billing/shared-storage": "get"; + "/installation/repositories": "get"; + "/notifications": "get"; + "/notifications/threads/{thread_id}": "get"; + "/orgs/{org}/actions/permissions": "get"; + "/orgs/{org}/actions/permissions/repositories": "get"; + "/orgs/{org}/actions/permissions/selected-actions": "get"; + "/orgs/{org}/actions/runner-groups": "get" | "post"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}": "get" | "patch"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": "get"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners": "get"; + "/orgs/{org}/actions/runners": "get"; + "/orgs/{org}/actions/runners/downloads": "get"; + "/orgs/{org}/actions/secrets": "get"; + "/orgs/{org}/actions/secrets/{secret_name}/repositories": "get"; + "/orgs/{org}/hooks/{hook_id}/config": "get" | "patch"; + "/orgs/{org}/installations": "get"; + "/orgs/{org}/invitations": "get" | "post"; + "/orgs/{org}/settings/billing/actions": "get"; + "/orgs/{org}/settings/billing/packages": "get"; + "/orgs/{org}/settings/billing/shared-storage": "get"; + "/orgs/{org}/team-sync/groups": "get"; + "/orgs/{org}/teams/{team_slug}/invitations": "get"; + "/orgs/{org}/teams/{team_slug}/projects": "get"; + "/orgs/{org}/teams/{team_slug}/projects/{project_id}": "get"; + "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings": "get" | "patch"; + "/projects/columns/cards/{card_id}/moves": "post"; + "/projects/columns/{column_id}/moves": "post"; + "/repos/{owner}/{repo}/actions/artifacts": "get"; + "/repos/{owner}/{repo}/actions/permissions": "get"; + "/repos/{owner}/{repo}/actions/permissions/selected-actions": "get"; + "/repos/{owner}/{repo}/actions/runners": "get"; + "/repos/{owner}/{repo}/actions/runners/downloads": "get"; + "/repos/{owner}/{repo}/actions/runs": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/jobs": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/timing": "get"; + "/repos/{owner}/{repo}/actions/secrets": "get"; + "/repos/{owner}/{repo}/actions/workflows": "get"; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": "get"; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": "get"; + "/repos/{owner}/{repo}/check-suites/preferences": "patch"; + "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": "get"; + "/repos/{owner}/{repo}/code-scanning/alerts": "get"; + "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": "get" | "patch"; + "/repos/{owner}/{repo}/code-scanning/analyses": "get"; + "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": "get"; + "/repos/{owner}/{repo}/commits/{ref}/check-runs": "get"; + "/repos/{owner}/{repo}/commits/{ref}/check-suites": "get"; + "/repos/{owner}/{repo}/commits/{ref}/statuses": "get"; + "/repos/{owner}/{repo}/contents/{path}": "put" | "delete"; + "/repos/{owner}/{repo}/git/blobs": "post"; + "/repos/{owner}/{repo}/git/commits": "post"; + "/repos/{owner}/{repo}/git/commits/{commit_sha}": "get"; + "/repos/{owner}/{repo}/git/matching-refs/{ref}": "get"; + "/repos/{owner}/{repo}/git/ref/{ref}": "get"; + "/repos/{owner}/{repo}/git/refs": "post"; + "/repos/{owner}/{repo}/git/refs/{ref}": "patch"; + "/repos/{owner}/{repo}/hooks/{hook_id}/config": "get" | "patch"; + "/repos/{owner}/{repo}/issues/{issue_number}/events": "get"; + "/repos/{owner}/{repo}/issues/{issue_number}/timeline": "get"; + "/repos/{owner}/{repo}/keys": "get" | "post"; + "/repos/{owner}/{repo}/keys/{key_id}": "get"; + "/repos/{owner}/{repo}/languages": "get"; + "/repos/{owner}/{repo}/notifications": "get"; + "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": "get"; + "/repos/{owner}/{repo}/stats/participation": "get"; + "/repos/{owner}/{repo}/statuses/{sha}": "post"; + "/repos/{owner}/{repo}/topics": "get" | "put"; + "/scim/v2/enterprises/{enterprise}/Groups": "get" | "post"; + "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": "get" | "put" | "patch"; + "/scim/v2/enterprises/{enterprise}/Users": "get" | "post"; + "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": "get" | "put" | "patch"; + "/search/code": "get"; + "/search/commits": "get"; + "/search/issues": "get"; + "/search/labels": "get"; + "/search/repositories": "get"; + "/search/topics": "get"; + "/search/users": "get"; + "/teams/{team_id}/invitations": "get"; + "/teams/{team_id}/projects": "get"; + "/teams/{team_id}/projects/{project_id}": "get"; + "/teams/{team_id}/team-sync/group-mappings": "get" | "patch"; + "/user/installations": "get"; + "/user/installations/{installation_id}/repositories": "get"; + "/user/keys": "get" | "post"; + "/user/keys/{key_id}": "get"; + "/users/{username}/settings/billing/actions": "get"; + "/users/{username}/settings/billing/packages": "get"; + "/users/{username}/settings/billing/shared-storage": "get"; +}; +declare type NotNill = T extends null | undefined ? never : T; +declare type Primitive = undefined | null | boolean | string | number | Function; +declare type DeepRequired = T extends Primitive ? NotNill : { + [P in keyof T]-?: T[P] extends Array ? Array> : T[P] extends ReadonlyArray ? DeepRequired : DeepRequired; +}; +export interface Endpoints { + /** + * @see https://docs.github.com/v3/apps/#delete-an-installation-for-the-authenticated-app + */ + "DELETE /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "delete">; + /** + * @see https://docs.github.com/v3/apps/#unsuspend-an-app-installation + */ + "DELETE /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "delete">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-a-grant + */ + "DELETE /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#delete-an-app-authorization + */ + "DELETE /applications/{client_id}/grant": Operation<"/applications/{client_id}/grant", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#revoke-a-grant-for-an-application + */ + "DELETE /applications/{client_id}/grants/{access_token}": Operation<"/applications/{client_id}/grants/{access_token}", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#delete-an-app-token + */ + "DELETE /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#revoke-an-authorization-for-an-application + */ + "DELETE /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "delete">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-an-authorization + */ + "DELETE /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#disable-a-selected-organization-for-github-actions-in-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-self-hosted-runner-group-from-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#remove-a-self-hosted-runner-from-a-group-for-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-self-hosted-runner-from-an-enterprise + */ + "DELETE /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/v3/gists/#delete-a-gist + */ + "DELETE /gists/{gist_id}": Operation<"/gists/{gist_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/gists#delete-a-gist-comment + */ + "DELETE /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/gists/#unstar-a-gist + */ + "DELETE /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#revoke-an-installation-access-token + */ + "DELETE /installation/token": Operation<"/installation/token", "delete">; + /** + * @see https://docs.github.com/rest/reference/activity#delete-a-thread-subscription + */ + "DELETE /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#disable-a-selected-repository-for-github-actions-in-an-organization + */ + "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-organization + */ + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-organization + */ + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-an-organization + */ + "DELETE /orgs/{org}/actions/runners/{runner_id}": Operation<"/orgs/{org}/actions/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-an-organization-secret + */ + "DELETE /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret + */ + "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#unblock-a-user-from-an-organization + */ + "DELETE /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "delete">; + /** + * @see https://docs.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization + */ + "DELETE /orgs/{org}/credential-authorizations/{credential_id}": Operation<"/orgs/{org}/credential-authorizations/{credential_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#delete-an-organization-webhook + */ + "DELETE /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-an-organization + */ + "DELETE /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-an-organization-member + */ + "DELETE /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-organization-membership-for-a-user + */ + "DELETE /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/migrations#delete-an-organization-migration-archive + */ + "DELETE /orgs/{org}/migrations/{migration_id}/archive": Operation<"/orgs/{org}/migrations/{migration_id}/archive", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#unlock-an-organization-repository + */ + "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock": Operation<"/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-outside-collaborator-from-an-organization + */ + "DELETE /orgs/{org}/outside_collaborators/{username}": Operation<"/orgs/{org}/outside_collaborators/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/orgs#remove-public-organization-membership-for-the-authenticated-user + */ + "DELETE /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#delete-a-team + */ + "DELETE /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-comment + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-team-discussion-comment-reaction + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#delete-team-discussion-reaction + */ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user + */ + "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-project-from-a-team + */ + "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-repository-from-a-team + */ + "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "delete">; + /** + * @see https://docs.github.com/rest/reference/projects#delete-a-project-card + */ + "DELETE /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "delete", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#delete-a-project-column + */ + "DELETE /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "delete", "inertia">; + /** + * @see https://docs.github.com/v3/projects/#delete-a-project + */ + "DELETE /projects/{project_id}": Operation<"/projects/{project_id}", "delete", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#remove-project-collaborator + */ + "DELETE /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "delete", "inertia">; + /** + * @see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy + */ + "DELETE /reactions/{reaction_id}": Operation<"/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/repos/#delete-a-repository + */ + "DELETE /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-an-artifact + */ + "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-a-repository + */ + "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}": Operation<"/repos/{owner}/{repo}/actions/runners/{runner_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-workflow-run + */ + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-workflow-run-logs + */ + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/logs", "delete">; + /** + * @see https://docs.github.com/rest/reference/actions#delete-a-repository-secret + */ + "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "delete">; + /** + * @see https://docs.github.com/v3/repos/#disable-automated-security-fixes + */ + "DELETE /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "delete", "london">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-branch-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-admin-branch-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-pull-request-review-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-commit-signature-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "delete", "zzzax">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-status-check-protection + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-status-check-contexts + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-app-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-team-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-user-access-restrictions + */ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#remove-a-repository-collaborator + */ + "DELETE /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-commit-comment + */ + "DELETE /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-a-commit-comment-reaction + */ + "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-file + */ + "DELETE /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-deployment + */ + "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/git#delete-a-reference + */ + "DELETE /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-repository-webhook + */ + "DELETE /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/migrations#cancel-an-import + */ + "DELETE /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "delete">; + /** + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-a-repository + */ + "DELETE /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-repository-invitation + */ + "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#delete-an-issue-comment + */ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-an-issue-comment-reaction + */ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#remove-all-labels-from-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#remove-a-label-from-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}", "delete">; + /** + * @see https://docs.github.com/v3/issues/#unlock-an-issue + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/lock", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-an-issue-reaction + */ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-deploy-key + */ + "DELETE /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#delete-a-label + */ + "DELETE /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "delete">; + /** + * @see https://docs.github.com/rest/reference/issues#delete-a-milestone + */ + "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-github-pages-site + */ + "DELETE /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "delete", "switcheroo">; + /** + * @see https://docs.github.com/rest/reference/pulls#delete-a-review-comment-for-a-pull-request + */ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "delete">; + /** + * @see https://docs.github.com/v3/reactions/#delete-a-pull-request-comment-reaction + */ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/pulls#remove-requested-reviewers-from-a-pull-request + */ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "delete">; + /** + * @see https://docs.github.com/rest/reference/pulls#delete-a-pending-review-for-a-pull-request + */ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-release-asset + */ + "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/repos#delete-a-release + */ + "DELETE /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/activity#delete-a-repository-subscription + */ + "DELETE /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "delete">; + /** + * @see https://docs.github.com/v3/repos/#disable-vulnerability-alerts + */ + "DELETE /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "delete", "dorian">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-group-from-an-enterprise + */ + "DELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-user-from-an-enterprise + */ + "DELETE /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "delete">; + /** + * @see https://docs.github.com/v3/scim/#delete-a-scim-user-from-an-organization + */ + "DELETE /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#delete-a-team-legacy + */ + "DELETE /teams/{team_id}": Operation<"/teams/{team_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-legacy + */ + "DELETE /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-comment-legacy + */ + "DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#remove-team-member-legacy + */ + "DELETE /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user-legacy + */ + "DELETE /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-project-from-a-team-legacy + */ + "DELETE /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "delete">; + /** + * @see https://docs.github.com/v3/teams/#remove-a-repository-from-a-team-legacy + */ + "DELETE /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#unblock-a-user + */ + "DELETE /user/blocks/{username}": Operation<"/user/blocks/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#delete-an-email-address-for-the-authenticated-user + */ + "DELETE /user/emails": Operation<"/user/emails", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#unfollow-a-user + */ + "DELETE /user/following/{username}": Operation<"/user/following/{username}", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user + */ + "DELETE /user/gpg_keys/{gpg_key_id}": Operation<"/user/gpg_keys/{gpg_key_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/apps#remove-a-repository-from-an-app-installation + */ + "DELETE /user/installations/{installation_id}/repositories/{repository_id}": Operation<"/user/installations/{installation_id}/repositories/{repository_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-from-your-public-repositories + */ + "DELETE /user/interaction-limits": Operation<"/user/interaction-limits", "delete">; + /** + * @see https://docs.github.com/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user + */ + "DELETE /user/keys/{key_id}": Operation<"/user/keys/{key_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/migrations#delete-a-user-migration-archive + */ + "DELETE /user/migrations/{migration_id}/archive": Operation<"/user/migrations/{migration_id}/archive", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#unlock-a-user-repository + */ + "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock": Operation<"/user/migrations/{migration_id}/repos/{repo_name}/lock", "delete", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/repos#decline-a-repository-invitation + */ + "DELETE /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "delete">; + /** + * @see https://docs.github.com/rest/reference/activity#unstar-a-repository-for-the-authenticated-user + */ + "DELETE /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "delete">; + /** + * @see + */ + "GET /": Operation<"/", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-the-authenticated-app + */ + "GET /app": Operation<"/app", "get">; + /** + * @see https://docs.github.com/v3/apps#get-a-webhook-configuration-for-an-app + */ + "GET /app/hook/config": Operation<"/app/hook/config", "get">; + /** + * @see https://docs.github.com/v3/apps/#list-installations-for-the-authenticated-app + */ + "GET /app/installations": Operation<"/app/installations", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-an-installation-for-the-authenticated-app + */ + "GET /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-grants + */ + "GET /applications/grants": Operation<"/applications/grants", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-grant + */ + "GET /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#check-an-authorization + */ + "GET /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-an-app + */ + "GET /apps/{app_slug}": Operation<"/apps/{app_slug}", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-authorizations + */ + "GET /authorizations": Operation<"/authorizations", "get">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-authorization + */ + "GET /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "get">; + /** + * @see https://docs.github.com/v3/codes_of_conduct/#get-all-codes-of-conduct + */ + "GET /codes_of_conduct": Operation<"/codes_of_conduct", "get", "scarlet-witch">; + /** + * @see https://docs.github.com/v3/codes_of_conduct/#get-a-code-of-conduct + */ + "GET /codes_of_conduct/{key}": Operation<"/codes_of_conduct/{key}", "get", "scarlet-witch">; + /** + * @see https://docs.github.com/v3/emojis/#get-emojis + */ + "GET /emojis": Operation<"/emojis", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-github-actions-permissions-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-selected-organizations-enabled-for-github-actions-in-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-allowed-actions-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runner-groups-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-group-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-in-a-group-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners": Operation<"/enterprises/{enterprise}/actions/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-runner-applications-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners/downloads": Operation<"/enterprises/{enterprise}/actions/runners/downloads", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-enterprise + */ + "GET /enterprises/{enterprise}/settings/billing/actions": Operation<"/enterprises/{enterprise}/settings/billing/actions", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-enterprise + */ + "GET /enterprises/{enterprise}/settings/billing/packages": Operation<"/enterprises/{enterprise}/settings/billing/packages", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-enterprise + */ + "GET /enterprises/{enterprise}/settings/billing/shared-storage": Operation<"/enterprises/{enterprise}/settings/billing/shared-storage", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events + */ + "GET /events": Operation<"/events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-feeds + */ + "GET /feeds": Operation<"/feeds", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gists-for-the-authenticated-user + */ + "GET /gists": Operation<"/gists", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-public-gists + */ + "GET /gists/public": Operation<"/gists/public", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-starred-gists + */ + "GET /gists/starred": Operation<"/gists/starred", "get">; + /** + * @see https://docs.github.com/v3/gists/#get-a-gist + */ + "GET /gists/{gist_id}": Operation<"/gists/{gist_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/gists#list-gist-comments + */ + "GET /gists/{gist_id}/comments": Operation<"/gists/{gist_id}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/gists#get-a-gist-comment + */ + "GET /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gist-commits + */ + "GET /gists/{gist_id}/commits": Operation<"/gists/{gist_id}/commits", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gist-forks + */ + "GET /gists/{gist_id}/forks": Operation<"/gists/{gist_id}/forks", "get">; + /** + * @see https://docs.github.com/v3/gists/#check-if-a-gist-is-starred + */ + "GET /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "get">; + /** + * @see https://docs.github.com/v3/gists/#get-a-gist-revision + */ + "GET /gists/{gist_id}/{sha}": Operation<"/gists/{gist_id}/{sha}", "get">; + /** + * @see https://docs.github.com/v3/gitignore/#get-all-gitignore-templates + */ + "GET /gitignore/templates": Operation<"/gitignore/templates", "get">; + /** + * @see https://docs.github.com/v3/gitignore/#get-a-gitignore-template + */ + "GET /gitignore/templates/{name}": Operation<"/gitignore/templates/{name}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-app-installation + */ + "GET /installation/repositories": Operation<"/installation/repositories", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user + */ + "GET /issues": Operation<"/issues", "get">; + /** + * @see https://docs.github.com/v3/licenses/#get-all-commonly-used-licenses + */ + "GET /licenses": Operation<"/licenses", "get">; + /** + * @see https://docs.github.com/v3/licenses/#get-a-license + */ + "GET /licenses/{license}": Operation<"/licenses/{license}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account + */ + "GET /marketplace_listing/accounts/{account_id}": Operation<"/marketplace_listing/accounts/{account_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-plans + */ + "GET /marketplace_listing/plans": Operation<"/marketplace_listing/plans", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan + */ + "GET /marketplace_listing/plans/{plan_id}/accounts": Operation<"/marketplace_listing/plans/{plan_id}/accounts", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account-stubbed + */ + "GET /marketplace_listing/stubbed/accounts/{account_id}": Operation<"/marketplace_listing/stubbed/accounts/{account_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-plans-stubbed + */ + "GET /marketplace_listing/stubbed/plans": Operation<"/marketplace_listing/stubbed/plans", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan-stubbed + */ + "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts": Operation<"/marketplace_listing/stubbed/plans/{plan_id}/accounts", "get">; + /** + * @see https://docs.github.com/v3/meta/#get-github-meta-information + */ + "GET /meta": Operation<"/meta", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-network-of-repositories + */ + "GET /networks/{owner}/{repo}/events": Operation<"/networks/{owner}/{repo}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user + */ + "GET /notifications": Operation<"/notifications", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-a-thread + */ + "GET /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-a-thread-subscription-for-the-authenticated-user + */ + "GET /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "get">; + /** + * @see + */ + "GET /octocat": Operation<"/octocat", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations + */ + "GET /organizations": Operation<"/organizations", "get">; + /** + * @see https://docs.github.com/v3/orgs/#get-an-organization + */ + "GET /orgs/{org}": Operation<"/orgs/{org}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-an-organization + */ + "GET /orgs/{org}/actions/permissions": Operation<"/orgs/{org}/actions/permissions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization + */ + "GET /orgs/{org}/actions/permissions/repositories": Operation<"/orgs/{org}/actions/permissions/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-an-organization + */ + "GET /orgs/{org}/actions/permissions/selected-actions": Operation<"/orgs/{org}/actions/permissions/selected-actions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups": Operation<"/orgs/{org}/actions/runner-groups", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-group-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-organization + */ + "GET /orgs/{org}/actions/runners": Operation<"/orgs/{org}/actions/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-organization + */ + "GET /orgs/{org}/actions/runners/downloads": Operation<"/orgs/{org}/actions/runners/downloads", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-an-organization + */ + "GET /orgs/{org}/actions/runners/{runner_id}": Operation<"/orgs/{org}/actions/runners/{runner_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-organization-secrets + */ + "GET /orgs/{org}/actions/secrets": Operation<"/orgs/{org}/actions/secrets", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-an-organization-public-key + */ + "GET /orgs/{org}/actions/secrets/public-key": Operation<"/orgs/{org}/actions/secrets/public-key", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-an-organization-secret + */ + "GET /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret + */ + "GET /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-users-blocked-by-an-organization + */ + "GET /orgs/{org}/blocks": Operation<"/orgs/{org}/blocks", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#check-if-a-user-is-blocked-by-an-organization + */ + "GET /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization + */ + "GET /orgs/{org}/credential-authorizations": Operation<"/orgs/{org}/credential-authorizations", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-organization-events + */ + "GET /orgs/{org}/events": Operation<"/orgs/{org}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-webhooks + */ + "GET /orgs/{org}/hooks": Operation<"/orgs/{org}/hooks", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#get-an-organization-webhook + */ + "GET /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "get">; + /** + * @see https://docs.github.com/v3/orgs#get-a-webhook-configuration-for-an-organization + */ + "GET /orgs/{org}/hooks/{hook_id}/config": Operation<"/orgs/{org}/hooks/{hook_id}/config", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-an-organization-installation-for-the-authenticated-app + */ + "GET /orgs/{org}/installation": Operation<"/orgs/{org}/installation", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-app-installations-for-an-organization + */ + "GET /orgs/{org}/installations": Operation<"/orgs/{org}/installations", "get">; + /** + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-an-organization + */ + "GET /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-pending-organization-invitations + */ + "GET /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-invitation-teams + */ + "GET /orgs/{org}/invitations/{invitation_id}/teams": Operation<"/orgs/{org}/invitations/{invitation_id}/teams", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user + */ + "GET /orgs/{org}/issues": Operation<"/orgs/{org}/issues", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-members + */ + "GET /orgs/{org}/members": Operation<"/orgs/{org}/members", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#check-organization-membership-for-a-user + */ + "GET /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#get-organization-membership-for-a-user + */ + "GET /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-organization-migrations + */ + "GET /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-an-organization-migration-status + */ + "GET /orgs/{org}/migrations/{migration_id}": Operation<"/orgs/{org}/migrations/{migration_id}", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#download-an-organization-migration-archive + */ + "GET /orgs/{org}/migrations/{migration_id}/archive": Operation<"/orgs/{org}/migrations/{migration_id}/archive", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-repositories-in-an-organization-migration + */ + "GET /orgs/{org}/migrations/{migration_id}/repositories": Operation<"/orgs/{org}/migrations/{migration_id}/repositories", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-outside-collaborators-for-an-organization + */ + "GET /orgs/{org}/outside_collaborators": Operation<"/orgs/{org}/outside_collaborators", "get">; + /** + * @see https://docs.github.com/v3/projects/#list-organization-projects + */ + "GET /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-public-organization-members + */ + "GET /orgs/{org}/public_members": Operation<"/orgs/{org}/public_members", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#check-public-organization-membership-for-a-user + */ + "GET /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-organization-repositories + */ + "GET /orgs/{org}/repos": Operation<"/orgs/{org}/repos", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-organization + */ + "GET /orgs/{org}/settings/billing/actions": Operation<"/orgs/{org}/settings/billing/actions", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-organization + */ + "GET /orgs/{org}/settings/billing/packages": Operation<"/orgs/{org}/settings/billing/packages", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-organization + */ + "GET /orgs/{org}/settings/billing/shared-storage": Operation<"/orgs/{org}/settings/billing/shared-storage", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-an-organization + */ + "GET /orgs/{org}/team-sync/groups": Operation<"/orgs/{org}/team-sync/groups", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-teams + */ + "GET /orgs/{org}/teams": Operation<"/orgs/{org}/teams", "get">; + /** + * @see https://docs.github.com/v3/teams/#get-a-team-by-name + */ + "GET /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussions + */ + "GET /orgs/{org}/teams/{team_slug}/discussions": Operation<"/orgs/{org}/teams/{team_slug}/discussions", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-comment + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations + */ + "GET /orgs/{org}/teams/{team_slug}/invitations": Operation<"/orgs/{org}/teams/{team_slug}/invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-team-members + */ + "GET /orgs/{org}/teams/{team_slug}/members": Operation<"/orgs/{org}/teams/{team_slug}/members", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user + */ + "GET /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-team-projects + */ + "GET /orgs/{org}/teams/{team_slug}/projects": Operation<"/orgs/{org}/teams/{team_slug}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-project + */ + "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#list-team-repositories + */ + "GET /orgs/{org}/teams/{team_slug}/repos": Operation<"/orgs/{org}/teams/{team_slug}/repos", "get">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository + */ + "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team + */ + "GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": Operation<"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-child-teams + */ + "GET /orgs/{org}/teams/{team_slug}/teams": Operation<"/orgs/{org}/teams/{team_slug}/teams", "get">; + /** + * @see https://docs.github.com/rest/reference/projects#get-a-project-card + */ + "GET /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#get-a-project-column + */ + "GET /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-cards + */ + "GET /projects/columns/{column_id}/cards": Operation<"/projects/columns/{column_id}/cards", "get", "inertia">; + /** + * @see https://docs.github.com/v3/projects/#get-a-project + */ + "GET /projects/{project_id}": Operation<"/projects/{project_id}", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-collaborators + */ + "GET /projects/{project_id}/collaborators": Operation<"/projects/{project_id}/collaborators", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#get-project-permission-for-a-user + */ + "GET /projects/{project_id}/collaborators/{username}/permission": Operation<"/projects/{project_id}/collaborators/{username}/permission", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-columns + */ + "GET /projects/{project_id}/columns": Operation<"/projects/{project_id}/columns", "get", "inertia">; + /** + * @see https://docs.github.com/v3/rate_limit/#get-rate-limit-status-for-the-authenticated-user + */ + "GET /rate_limit": Operation<"/rate_limit", "get">; + /** + * @see https://docs.github.com/v3/repos/#get-a-repository + */ + "GET /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-artifacts-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/artifacts": Operation<"/repos/{owner}/{repo}/actions/artifacts", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-an-artifact + */ + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#download-an-artifact + */ + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-job-for-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#download-job-logs-for-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}/logs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/permissions": Operation<"/repos/{owner}/{repo}/actions/permissions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/permissions/selected-actions": Operation<"/repos/{owner}/{repo}/actions/permissions/selected-actions", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners": Operation<"/repos/{owner}/{repo}/actions/runners", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners/downloads": Operation<"/repos/{owner}/{repo}/actions/runners/downloads", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners/{runner_id}": Operation<"/repos/{owner}/{repo}/actions/runners/{runner_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runs": Operation<"/repos/{owner}/{repo}/actions/runs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-run-artifacts + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-jobs-for-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/jobs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#download-workflow-run-logs + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/logs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-workflow-run-usage + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/timing", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-secrets + */ + "GET /repos/{owner}/{repo}/actions/secrets": Operation<"/repos/{owner}/{repo}/actions/secrets", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-repository-public-key + */ + "GET /repos/{owner}/{repo}/actions/secrets/public-key": Operation<"/repos/{owner}/{repo}/actions/secrets/public-key", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-repository-secret + */ + "GET /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-workflows + */ + "GET /repos/{owner}/{repo}/actions/workflows": Operation<"/repos/{owner}/{repo}/actions/workflows", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-a-workflow + */ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs + */ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", "get">; + /** + * @see https://docs.github.com/rest/reference/actions#get-workflow-usage + */ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-assignees + */ + "GET /repos/{owner}/{repo}/assignees": Operation<"/repos/{owner}/{repo}/assignees", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#check-if-a-user-can-be-assigned + */ + "GET /repos/{owner}/{repo}/assignees/{assignee}": Operation<"/repos/{owner}/{repo}/assignees/{assignee}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-branches + */ + "GET /repos/{owner}/{repo}/branches": Operation<"/repos/{owner}/{repo}/branches", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}": Operation<"/repos/{owner}/{repo}/branches/{branch}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-branch-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-admin-branch-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-pull-request-review-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-commit-signature-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "get", "zzzax">; + /** + * @see https://docs.github.com/rest/reference/repos#get-status-checks-protection + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-all-status-check-contexts + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-access-restrictions + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-apps-with-access-to-the-protected-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-teams-with-access-to-the-protected-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-users-with-access-to-the-protected-branch + */ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#get-a-check-run + */ + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-run-annotations + */ + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#get-a-check-suite + */ + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite + */ + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository + */ + "GET /repos/{owner}/{repo}/code-scanning/alerts": Operation<"/repos/{owner}/{repo}/code-scanning/alerts", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert + * @deprecated "alert_id" is now "alert_number" + */ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_id}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert + */ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "get">; + /** + * @see https://docs.github.com/v3/code-scanning/#list-recent-analyses + */ + "GET /repos/{owner}/{repo}/code-scanning/analyses": Operation<"/repos/{owner}/{repo}/code-scanning/analyses", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-collaborators + */ + "GET /repos/{owner}/{repo}/collaborators": Operation<"/repos/{owner}/{repo}/collaborators", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#check-if-a-user-is-a-repository-collaborator + */ + "GET /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-repository-permissions-for-a-user + */ + "GET /repos/{owner}/{repo}/collaborators/{username}/permission": Operation<"/repos/{owner}/{repo}/collaborators/{username}/permission", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-comments-for-a-repository + */ + "GET /repos/{owner}/{repo}/comments": Operation<"/repos/{owner}/{repo}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-commit-comment + */ + "GET /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-commit-comment + */ + "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commits + */ + "GET /repos/{owner}/{repo}/commits": Operation<"/repos/{owner}/{repo}/commits", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-branches-for-head-commit + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", "get", "groot">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-comments + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-pull-requests-associated-with-a-commit + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/pulls", "get", "groot">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-commit + */ + "GET /repos/{owner}/{repo}/commits/{ref}": Operation<"/repos/{owner}/{repo}/commits/{ref}", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-runs-for-a-git-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/check-runs": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-runs", "get">; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/check-suites": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-suites", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-combined-status-for-a-specific-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/status": Operation<"/repos/{owner}/{repo}/commits/{ref}/status", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-statuses-for-a-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/statuses": Operation<"/repos/{owner}/{repo}/commits/{ref}/statuses", "get">; + /** + * @see https://docs.github.com/v3/codes_of_conduct/#get-the-code-of-conduct-for-a-repository + */ + "GET /repos/{owner}/{repo}/community/code_of_conduct": Operation<"/repos/{owner}/{repo}/community/code_of_conduct", "get", "scarlet-witch">; + /** + * @see https://docs.github.com/rest/reference/repos#get-community-profile-metrics + */ + "GET /repos/{owner}/{repo}/community/profile": Operation<"/repos/{owner}/{repo}/community/profile", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#compare-two-commits + */ + "GET /repos/{owner}/{repo}/compare/{base}...{head}": Operation<"/repos/{owner}/{repo}/compare/{base}...{head}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-repository-content + */ + "GET /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-contributors + */ + "GET /repos/{owner}/{repo}/contributors": Operation<"/repos/{owner}/{repo}/contributors", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-deployments + */ + "GET /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-deployment + */ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-deployment-statuses + */ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-deployment-status + */ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repository-events + */ + "GET /repos/{owner}/{repo}/events": Operation<"/repos/{owner}/{repo}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-forks + */ + "GET /repos/{owner}/{repo}/forks": Operation<"/repos/{owner}/{repo}/forks", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-blob + */ + "GET /repos/{owner}/{repo}/git/blobs/{file_sha}": Operation<"/repos/{owner}/{repo}/git/blobs/{file_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-commit + */ + "GET /repos/{owner}/{repo}/git/commits/{commit_sha}": Operation<"/repos/{owner}/{repo}/git/commits/{commit_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#list-matching-references + */ + "GET /repos/{owner}/{repo}/git/matching-refs/{ref}": Operation<"/repos/{owner}/{repo}/git/matching-refs/{ref}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-reference + */ + "GET /repos/{owner}/{repo}/git/ref/{ref}": Operation<"/repos/{owner}/{repo}/git/ref/{ref}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-tag + */ + "GET /repos/{owner}/{repo}/git/tags/{tag_sha}": Operation<"/repos/{owner}/{repo}/git/tags/{tag_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/git#get-a-tree + */ + "GET /repos/{owner}/{repo}/git/trees/{tree_sha}": Operation<"/repos/{owner}/{repo}/git/trees/{tree_sha}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-webhooks + */ + "GET /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-repository-webhook + */ + "GET /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "get">; + /** + * @see https://docs.github.com/v3/repos#get-a-webhook-configuration-for-a-repository + */ + "GET /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-an-import-status + */ + "GET /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-commit-authors + */ + "GET /repos/{owner}/{repo}/import/authors": Operation<"/repos/{owner}/{repo}/import/authors", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-large-files + */ + "GET /repos/{owner}/{repo}/import/large_files": Operation<"/repos/{owner}/{repo}/import/large_files", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-a-repository-installation-for-the-authenticated-app + */ + "GET /repos/{owner}/{repo}/installation": Operation<"/repos/{owner}/{repo}/installation", "get">; + /** + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-a-repository + */ + "GET /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations + */ + "GET /repos/{owner}/{repo}/invitations": Operation<"/repos/{owner}/{repo}/invitations", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-repository-issues + */ + "GET /repos/{owner}/{repo}/issues": Operation<"/repos/{owner}/{repo}/issues", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-comments-for-a-repository + */ + "GET /repos/{owner}/{repo}/issues/comments": Operation<"/repos/{owner}/{repo}/issues/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-an-issue-comment + */ + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue-comment + */ + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-events-for-a-repository + */ + "GET /repos/{owner}/{repo}/issues/events": Operation<"/repos/{owner}/{repo}/issues/events", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-an-issue-event + */ + "GET /repos/{owner}/{repo}/issues/events/{event_id}": Operation<"/repos/{owner}/{repo}/issues/events/{event_id}", "get">; + /** + * @see https://docs.github.com/v3/issues/#get-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-comments + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/comments": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-events + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/events": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#list-timeline-events-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/timeline", "get", "mockingbird">; + /** + * @see https://docs.github.com/rest/reference/repos#list-deploy-keys + */ + "GET /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-deploy-key + */ + "GET /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-a-repository + */ + "GET /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-a-label + */ + "GET /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-languages + */ + "GET /repos/{owner}/{repo}/languages": Operation<"/repos/{owner}/{repo}/languages", "get">; + /** + * @see https://docs.github.com/v3/licenses/#get-the-license-for-a-repository + */ + "GET /repos/{owner}/{repo}/license": Operation<"/repos/{owner}/{repo}/license", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-milestones + */ + "GET /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#get-a-milestone + */ + "GET /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-issues-in-a-milestone + */ + "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}/labels", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user + */ + "GET /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-github-pages-site + */ + "GET /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-github-pages-builds + */ + "GET /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-latest-pages-build + */ + "GET /repos/{owner}/{repo}/pages/builds/latest": Operation<"/repos/{owner}/{repo}/pages/builds/latest", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-github-pages-build + */ + "GET /repos/{owner}/{repo}/pages/builds/{build_id}": Operation<"/repos/{owner}/{repo}/pages/builds/{build_id}", "get">; + /** + * @see https://docs.github.com/v3/projects/#list-repository-projects + */ + "GET /repos/{owner}/{repo}/projects": Operation<"/repos/{owner}/{repo}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/v3/pulls/#list-pull-requests + */ + "GET /repos/{owner}/{repo}/pulls": Operation<"/repos/{owner}/{repo}/pulls", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-in-a-repository + */ + "GET /repos/{owner}/{repo}/pulls/comments": Operation<"/repos/{owner}/{repo}/pulls/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#get-a-review-comment-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment + */ + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/pulls/#get-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-on-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments", "get">; + /** + * @see https://docs.github.com/v3/pulls/#list-commits-on-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/commits", "get">; + /** + * @see https://docs.github.com/v3/pulls/#list-pull-requests-files + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/files": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/files", "get">; + /** + * @see https://docs.github.com/v3/pulls/#check-if-a-pull-request-has-been-merged + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-requested-reviewers-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-reviews-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#get-a-review-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/pulls#list-comments-for-a-pull-request-review + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-repository-readme + */ + "GET /repos/{owner}/{repo}/readme": Operation<"/repos/{owner}/{repo}/readme", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-releases + */ + "GET /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-release-asset + */ + "GET /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-latest-release + */ + "GET /repos/{owner}/{repo}/releases/latest": Operation<"/repos/{owner}/{repo}/releases/latest", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name + */ + "GET /repos/{owner}/{repo}/releases/tags/{tag}": Operation<"/repos/{owner}/{repo}/releases/tags/{tag}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-a-release + */ + "GET /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-release-assets + */ + "GET /repos/{owner}/{repo}/releases/{release_id}/assets": Operation<"/repos/{owner}/{repo}/releases/{release_id}/assets", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-stargazers + */ + "GET /repos/{owner}/{repo}/stargazers": Operation<"/repos/{owner}/{repo}/stargazers", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-activity + */ + "GET /repos/{owner}/{repo}/stats/code_frequency": Operation<"/repos/{owner}/{repo}/stats/code_frequency", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-last-year-of-commit-activity + */ + "GET /repos/{owner}/{repo}/stats/commit_activity": Operation<"/repos/{owner}/{repo}/stats/commit_activity", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-all-contributor-commit-activity + */ + "GET /repos/{owner}/{repo}/stats/contributors": Operation<"/repos/{owner}/{repo}/stats/contributors", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-count + */ + "GET /repos/{owner}/{repo}/stats/participation": Operation<"/repos/{owner}/{repo}/stats/participation", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-the-hourly-commit-count-for-each-day + */ + "GET /repos/{owner}/{repo}/stats/punch_card": Operation<"/repos/{owner}/{repo}/stats/punch_card", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-watchers + */ + "GET /repos/{owner}/{repo}/subscribers": Operation<"/repos/{owner}/{repo}/subscribers", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#get-a-repository-subscription + */ + "GET /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-tags + */ + "GET /repos/{owner}/{repo}/tags": Operation<"/repos/{owner}/{repo}/tags", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#download-a-repository-archive + */ + "GET /repos/{owner}/{repo}/tarball/{ref}": Operation<"/repos/{owner}/{repo}/tarball/{ref}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repository-teams + */ + "GET /repos/{owner}/{repo}/teams": Operation<"/repos/{owner}/{repo}/teams", "get">; + /** + * @see https://docs.github.com/v3/repos/#get-all-repository-topics + */ + "GET /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "get", "mercy">; + /** + * @see https://docs.github.com/rest/reference/repos#get-repository-clones + */ + "GET /repos/{owner}/{repo}/traffic/clones": Operation<"/repos/{owner}/{repo}/traffic/clones", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-top-referral-paths + */ + "GET /repos/{owner}/{repo}/traffic/popular/paths": Operation<"/repos/{owner}/{repo}/traffic/popular/paths", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-top-referral-sources + */ + "GET /repos/{owner}/{repo}/traffic/popular/referrers": Operation<"/repos/{owner}/{repo}/traffic/popular/referrers", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#get-page-views + */ + "GET /repos/{owner}/{repo}/traffic/views": Operation<"/repos/{owner}/{repo}/traffic/views", "get">; + /** + * @see https://docs.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository + */ + "GET /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "get", "dorian">; + /** + * @see https://docs.github.com/rest/reference/repos#download-a-repository-archive + */ + "GET /repos/{owner}/{repo}/zipball/{ref}": Operation<"/repos/{owner}/{repo}/zipball/{ref}", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-public-repositories + */ + "GET /repositories": Operation<"/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-provisioned-scim groups-for-an-enterprise + */ + "GET /scim/v2/enterprises/{enterprise}/Groups": Operation<"/scim/v2/enterprises/{enterprise}/Groups", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise group + */ + "GET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-scim-provisioned-identities-for-an-enterprise + */ + "GET /scim/v2/enterprises/{enterprise}/Users": Operation<"/scim/v2/enterprises/{enterprise}/Users", "get">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise-user + */ + "GET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "get">; + /** + * @see https://docs.github.com/v3/scim/#list-scim-provisioned-identities + */ + "GET /scim/v2/organizations/{org}/Users": Operation<"/scim/v2/organizations/{org}/Users", "get">; + /** + * @see https://docs.github.com/v3/scim/#get-scim-provisioning-information-for-a-user + */ + "GET /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "get">; + /** + * @see https://docs.github.com/v3/search/#search-code + */ + "GET /search/code": Operation<"/search/code", "get">; + /** + * @see https://docs.github.com/v3/search/#search-commits + */ + "GET /search/commits": Operation<"/search/commits", "get", "cloak">; + /** + * @see https://docs.github.com/v3/search/#search-issues-and-pull-requests + */ + "GET /search/issues": Operation<"/search/issues", "get">; + /** + * @see https://docs.github.com/v3/search/#search-labels + */ + "GET /search/labels": Operation<"/search/labels", "get">; + /** + * @see https://docs.github.com/v3/search/#search-repositories + */ + "GET /search/repositories": Operation<"/search/repositories", "get">; + /** + * @see https://docs.github.com/v3/search/#search-topics + */ + "GET /search/topics": Operation<"/search/topics", "get", "mercy">; + /** + * @see https://docs.github.com/v3/search/#search-users + */ + "GET /search/users": Operation<"/search/users", "get">; + /** + * @see https://docs.github.com/v3/teams/#get-a-team-legacy + */ + "GET /teams/{team_id}": Operation<"/teams/{team_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussions-legacy + */ + "GET /teams/{team_id}/discussions": Operation<"/teams/{team_id}/discussions", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-comment-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "get">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/reactions", "get", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations-legacy + */ + "GET /teams/{team_id}/invitations": Operation<"/teams/{team_id}/invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-team-members-legacy + */ + "GET /teams/{team_id}/members": Operation<"/teams/{team_id}/members", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-team-member-legacy + */ + "GET /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user-legacy + */ + "GET /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-team-projects-legacy + */ + "GET /teams/{team_id}/projects": Operation<"/teams/{team_id}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-project-legacy + */ + "GET /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "get", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#list-team-repositories-legacy + */ + "GET /teams/{team_id}/repos": Operation<"/teams/{team_id}/repos", "get">; + /** + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy + */ + "GET /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team-legacy + */ + "GET /teams/{team_id}/team-sync/group-mappings": Operation<"/teams/{team_id}/team-sync/group-mappings", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-child-teams-legacy + */ + "GET /teams/{team_id}/teams": Operation<"/teams/{team_id}/teams", "get">; + /** + * @see https://docs.github.com/v3/users/#get-the-authenticated-user + */ + "GET /user": Operation<"/user", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user + */ + "GET /user/blocks": Operation<"/user/blocks", "get">; + /** + * @see https://docs.github.com/rest/reference/users#check-if-a-user-is-blocked-by-the-authenticated-user + */ + "GET /user/blocks/{username}": Operation<"/user/blocks/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-email-addresses-for-the-authenticated-user + */ + "GET /user/emails": Operation<"/user/emails", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-followers-of-the-authenticated-user + */ + "GET /user/followers": Operation<"/user/followers", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-the-people-the-authenticated-user-follows + */ + "GET /user/following": Operation<"/user/following", "get">; + /** + * @see https://docs.github.com/rest/reference/users#check-if-a-person-is-followed-by-the-authenticated-user + */ + "GET /user/following/{username}": Operation<"/user/following/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-the-authenticated-user + */ + "GET /user/gpg_keys": Operation<"/user/gpg_keys", "get">; + /** + * @see https://docs.github.com/rest/reference/users#get-a-gpg-key-for-the-authenticated-user + */ + "GET /user/gpg_keys/{gpg_key_id}": Operation<"/user/gpg_keys/{gpg_key_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-app-installations-accessible-to-the-user-access-token + */ + "GET /user/installations": Operation<"/user/installations", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-user-access-token + */ + "GET /user/installations/{installation_id}/repositories": Operation<"/user/installations/{installation_id}/repositories", "get">; + /** + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-your-public-repositories + */ + "GET /user/interaction-limits": Operation<"/user/interaction-limits", "get">; + /** + * @see https://docs.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user + */ + "GET /user/issues": Operation<"/user/issues", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user + */ + "GET /user/keys": Operation<"/user/keys", "get">; + /** + * @see https://docs.github.com/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user + */ + "GET /user/keys/{key_id}": Operation<"/user/keys/{key_id}", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user + */ + "GET /user/marketplace_purchases": Operation<"/user/marketplace_purchases", "get">; + /** + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user-stubbed + */ + "GET /user/marketplace_purchases/stubbed": Operation<"/user/marketplace_purchases/stubbed", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-memberships-for-the-authenticated-user + */ + "GET /user/memberships/orgs": Operation<"/user/memberships/orgs", "get">; + /** + * @see https://docs.github.com/rest/reference/orgs#get-an-organization-membership-for-the-authenticated-user + */ + "GET /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "get">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-user-migrations + */ + "GET /user/migrations": Operation<"/user/migrations", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#get-a-user-migration-status + */ + "GET /user/migrations/{migration_id}": Operation<"/user/migrations/{migration_id}", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive + */ + "GET /user/migrations/{migration_id}/archive": Operation<"/user/migrations/{migration_id}/archive", "get", "wyandotte">; + /** + * @see https://docs.github.com/rest/reference/migrations#list-repositories-for-a-user-migration + */ + "GET /user/migrations/{migration_id}/repositories": Operation<"/user/migrations/{migration_id}/repositories", "get", "wyandotte">; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations-for-the-authenticated-user + */ + "GET /user/orgs": Operation<"/user/orgs", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-public-email-addresses-for-the-authenticated-user + */ + "GET /user/public_emails": Operation<"/user/public_emails", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repositories-for-the-authenticated-user + */ + "GET /user/repos": Operation<"/user/repos", "get">; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations-for-the-authenticated-user + */ + "GET /user/repository_invitations": Operation<"/user/repository_invitations", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-the-authenticated-user + */ + "GET /user/starred": Operation<"/user/starred", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#check-if-a-repository-is-starred-by-the-authenticated-user + */ + "GET /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-the-authenticated-user + */ + "GET /user/subscriptions": Operation<"/user/subscriptions", "get">; + /** + * @see https://docs.github.com/v3/teams/#list-teams-for-the-authenticated-user + */ + "GET /user/teams": Operation<"/user/teams", "get">; + /** + * @see https://docs.github.com/v3/users/#list-users + */ + "GET /users": Operation<"/users", "get">; + /** + * @see https://docs.github.com/v3/users/#get-a-user + */ + "GET /users/{username}": Operation<"/users/{username}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-events-for-the-authenticated-user + */ + "GET /users/{username}/events": Operation<"/users/{username}/events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-organization-events-for-the-authenticated-user + */ + "GET /users/{username}/events/orgs/{org}": Operation<"/users/{username}/events/orgs/{org}", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-user + */ + "GET /users/{username}/events/public": Operation<"/users/{username}/events/public", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-followers-of-a-user + */ + "GET /users/{username}/followers": Operation<"/users/{username}/followers", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-the-people-a-user-follows + */ + "GET /users/{username}/following": Operation<"/users/{username}/following", "get">; + /** + * @see https://docs.github.com/rest/reference/users#check-if-a-user-follows-another-user + */ + "GET /users/{username}/following/{target_user}": Operation<"/users/{username}/following/{target_user}", "get">; + /** + * @see https://docs.github.com/v3/gists/#list-gists-for-a-user + */ + "GET /users/{username}/gists": Operation<"/users/{username}/gists", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-a-user + */ + "GET /users/{username}/gpg_keys": Operation<"/users/{username}/gpg_keys", "get">; + /** + * @see https://docs.github.com/v3/users/#get-contextual-information-for-a-user + */ + "GET /users/{username}/hovercard": Operation<"/users/{username}/hovercard", "get">; + /** + * @see https://docs.github.com/v3/apps/#get-a-user-installation-for-the-authenticated-app + */ + "GET /users/{username}/installation": Operation<"/users/{username}/installation", "get">; + /** + * @see https://docs.github.com/rest/reference/users#list-public-keys-for-a-user + */ + "GET /users/{username}/keys": Operation<"/users/{username}/keys", "get">; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations-for-a-user + */ + "GET /users/{username}/orgs": Operation<"/users/{username}/orgs", "get">; + /** + * @see https://docs.github.com/v3/projects/#list-user-projects + */ + "GET /users/{username}/projects": Operation<"/users/{username}/projects", "get", "inertia">; + /** + * @see https://docs.github.com/rest/reference/activity#list-events-received-by-the-authenticated-user + */ + "GET /users/{username}/received_events": Operation<"/users/{username}/received_events", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-received-by-a-user + */ + "GET /users/{username}/received_events/public": Operation<"/users/{username}/received_events/public", "get">; + /** + * @see https://docs.github.com/v3/repos/#list-repositories-for-a-user + */ + "GET /users/{username}/repos": Operation<"/users/{username}/repos", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-a-user + */ + "GET /users/{username}/settings/billing/actions": Operation<"/users/{username}/settings/billing/actions", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-a-user + */ + "GET /users/{username}/settings/billing/packages": Operation<"/users/{username}/settings/billing/packages", "get">; + /** + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-a-user + */ + "GET /users/{username}/settings/billing/shared-storage": Operation<"/users/{username}/settings/billing/shared-storage", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-a-user + */ + "GET /users/{username}/starred": Operation<"/users/{username}/starred", "get">; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-a-user + */ + "GET /users/{username}/subscriptions": Operation<"/users/{username}/subscriptions", "get">; + /** + * @see + */ + "GET /zen": Operation<"/zen", "get">; + /** + * @see https://docs.github.com/v3/apps#update-a-webhook-configuration-for-an-app + */ + "PATCH /app/hook/config": Operation<"/app/hook/config", "patch">; + /** + * @see https://docs.github.com/rest/reference/apps#reset-a-token + */ + "PATCH /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "patch">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#update-an-existing-authorization + */ + "PATCH /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#update-a-self-hosted-runner-group-for-an-enterprise + */ + "PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "patch">; + /** + * @see https://docs.github.com/v3/gists/#update-a-gist + */ + "PATCH /gists/{gist_id}": Operation<"/gists/{gist_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/gists#update-a-gist-comment + */ + "PATCH /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/activity#mark-a-thread-as-read + */ + "PATCH /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "patch">; + /** + * @see https://docs.github.com/v3/orgs/#update-an-organization + */ + "PATCH /orgs/{org}": Operation<"/orgs/{org}", "patch">; + /** + * @see https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-organization + */ + "PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/orgs#update-an-organization-webhook + */ + "PATCH /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "patch">; + /** + * @see https://docs.github.com/v3/orgs#update-a-webhook-configuration-for-an-organization + */ + "PATCH /orgs/{org}/hooks/{hook_id}/config": Operation<"/orgs/{org}/hooks/{hook_id}/config", "patch">; + /** + * @see https://docs.github.com/v3/teams/#update-a-team + */ + "PATCH /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion + */ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-comment + */ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections + */ + "PATCH /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": Operation<"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", "patch">; + /** + * @see https://docs.github.com/rest/reference/projects#update-a-project-card + */ + "PATCH /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "patch", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#update-a-project-column + */ + "PATCH /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "patch", "inertia">; + /** + * @see https://docs.github.com/v3/projects/#update-a-project + */ + "PATCH /projects/{project_id}": Operation<"/projects/{project_id}", "patch", "inertia">; + /** + * @see https://docs.github.com/v3/repos/#update-a-repository + */ + "PATCH /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-pull-request-review-protection + */ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-status-check-potection + */ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "patch">; + /** + * @see https://docs.github.com/rest/reference/checks#update-a-check-run + */ + "PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/checks#update-repository-preferences-for-check-suites + */ + "PATCH /repos/{owner}/{repo}/check-suites/preferences": Operation<"/repos/{owner}/{repo}/check-suites/preferences", "patch">; + /** + * @see https://docs.github.com/v3/code-scanning/#upload-a-code-scanning-alert + */ + "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-commit-comment + */ + "PATCH /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/git#update-a-reference + */ + "PATCH /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-repository-webhook + */ + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "patch">; + /** + * @see https://docs.github.com/v3/repos#update-a-webhook-configuration-for-a-repository + */ + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "patch">; + /** + * @see https://docs.github.com/rest/reference/migrations#update-an-import + */ + "PATCH /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "patch">; + /** + * @see https://docs.github.com/rest/reference/migrations#map-a-commit-author + */ + "PATCH /repos/{owner}/{repo}/import/authors/{author_id}": Operation<"/repos/{owner}/{repo}/import/authors/{author_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/migrations#update-git-lfs-preference + */ + "PATCH /repos/{owner}/{repo}/import/lfs": Operation<"/repos/{owner}/{repo}/import/lfs", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-repository-invitation + */ + "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/issues#update-an-issue-comment + */ + "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/v3/issues/#update-an-issue + */ + "PATCH /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/issues#update-a-label + */ + "PATCH /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "patch">; + /** + * @see https://docs.github.com/rest/reference/issues#update-a-milestone + */ + "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/pulls#update-a-review-comment-for-a-pull-request + */ + "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "patch">; + /** + * @see https://docs.github.com/v3/pulls/#update-a-pull-request + */ + "PATCH /repos/{owner}/{repo}/pulls/{pull_number}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-release-asset + */ + "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#update-a-release + */ + "PATCH /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-group + */ + "PATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-user + */ + "PATCH /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "patch">; + /** + * @see https://docs.github.com/v3/scim/#update-an-attribute-for-a-scim-user + */ + "PATCH /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "patch">; + /** + * @see https://docs.github.com/v3/teams/#update-a-team-legacy + */ + "PATCH /teams/{team_id}": Operation<"/teams/{team_id}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-legacy + */ + "PATCH /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-comment-legacy + */ + "PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "patch">; + /** + * @see https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections-legacy + */ + "PATCH /teams/{team_id}/team-sync/group-mappings": Operation<"/teams/{team_id}/team-sync/group-mappings", "patch">; + /** + * @see https://docs.github.com/v3/users/#update-the-authenticated-user + */ + "PATCH /user": Operation<"/user", "patch">; + /** + * @see https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user + */ + "PATCH /user/email/visibility": Operation<"/user/email/visibility", "patch">; + /** + * @see https://docs.github.com/rest/reference/orgs#update-an-organization-membership-for-the-authenticated-user + */ + "PATCH /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "patch">; + /** + * @see https://docs.github.com/rest/reference/repos#accept-a-repository-invitation + */ + "PATCH /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "patch">; + /** + * @see https://docs.github.com/v3/apps/#create-a-github-app-from-a-manifest + */ + "POST /app-manifests/{code}/conversions": Operation<"/app-manifests/{code}/conversions", "post">; + /** + * @see https://docs.github.com/v3/apps/#create-an-installation-access-token-for-an-app + */ + "POST /app/installations/{installation_id}/access_tokens": Operation<"/app/installations/{installation_id}/access_tokens", "post">; + /** + * @see https://docs.github.com/rest/reference/apps#check-a-token + */ + "POST /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "post">; + /** + * @see https://docs.github.com/rest/reference/apps#reset-an-authorization + */ + "POST /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "post">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization + */ + "POST /authorizations": Operation<"/authorizations", "post">; + /** + * @see https://docs.github.com/rest/reference/apps#create-a-content-attachment + */ + "POST /content_references/{content_reference_id}/attachments": Operation<"/content_references/{content_reference_id}/attachments", "post", "corsair">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#create-self-hosted-runner-group-for-an-enterprise + */ + "POST /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "post">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#create-a-registration-token-for-an-enterprise + */ + "POST /enterprises/{enterprise}/actions/runners/registration-token": Operation<"/enterprises/{enterprise}/actions/runners/registration-token", "post">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#create-a-remove-token-for-an-enterprise + */ + "POST /enterprises/{enterprise}/actions/runners/remove-token": Operation<"/enterprises/{enterprise}/actions/runners/remove-token", "post">; + /** + * @see https://docs.github.com/v3/gists/#create-a-gist + */ + "POST /gists": Operation<"/gists", "post">; + /** + * @see https://docs.github.com/rest/reference/gists#create-a-gist-comment + */ + "POST /gists/{gist_id}/comments": Operation<"/gists/{gist_id}/comments", "post">; + /** + * @see https://docs.github.com/v3/gists/#fork-a-gist + */ + "POST /gists/{gist_id}/forks": Operation<"/gists/{gist_id}/forks", "post">; + /** + * @see https://docs.github.com/v3/markdown/#render-a-markdown-document + */ + "POST /markdown": Operation<"/markdown", "post">; + /** + * @see https://docs.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode + */ + "POST /markdown/raw": Operation<"/markdown/raw", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-self-hosted-runner-group-for-an-organization + */ + "POST /orgs/{org}/actions/runner-groups": Operation<"/orgs/{org}/actions/runner-groups", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-organization + */ + "POST /orgs/{org}/actions/runners/registration-token": Operation<"/orgs/{org}/actions/runners/registration-token", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-an-organization + */ + "POST /orgs/{org}/actions/runners/remove-token": Operation<"/orgs/{org}/actions/runners/remove-token", "post">; + /** + * @see https://docs.github.com/rest/reference/orgs#create-an-organization-webhook + */ + "POST /orgs/{org}/hooks": Operation<"/orgs/{org}/hooks", "post">; + /** + * @see https://docs.github.com/rest/reference/orgs#ping-an-organization-webhook + */ + "POST /orgs/{org}/hooks/{hook_id}/pings": Operation<"/orgs/{org}/hooks/{hook_id}/pings", "post">; + /** + * @see https://docs.github.com/rest/reference/orgs#create-an-organization-invitation + */ + "POST /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "post">; + /** + * @see https://docs.github.com/rest/reference/migrations#start-an-organization-migration + */ + "POST /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "post">; + /** + * @see https://docs.github.com/v3/projects/#create-an-organization-project + */ + "POST /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "post", "inertia">; + /** + * @see https://docs.github.com/v3/repos/#create-an-organization-repository + */ + "POST /orgs/{org}/repos": Operation<"/orgs/{org}/repos", "post">; + /** + * @see https://docs.github.com/v3/teams/#create-a-team + */ + "POST /orgs/{org}/teams": Operation<"/orgs/{org}/teams", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion + */ + "POST /orgs/{org}/teams/{team_slug}/discussions": Operation<"/orgs/{org}/teams/{team_slug}/discussions", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-comment + */ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment + */ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion + */ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/projects#move-a-project-card + */ + "POST /projects/columns/cards/{card_id}/moves": Operation<"/projects/columns/cards/{card_id}/moves", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#create-a-project-card + */ + "POST /projects/columns/{column_id}/cards": Operation<"/projects/columns/{column_id}/cards", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#move-a-project-column + */ + "POST /projects/columns/{column_id}/moves": Operation<"/projects/columns/{column_id}/moves", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/projects#create-a-project-column + */ + "POST /projects/{project_id}/columns": Operation<"/projects/{project_id}/columns", "post", "inertia">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-a-repository + */ + "POST /repos/{owner}/{repo}/actions/runners/registration-token": Operation<"/repos/{owner}/{repo}/actions/runners/registration-token", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-a-repository + */ + "POST /repos/{owner}/{repo}/actions/runners/remove-token": Operation<"/repos/{owner}/{repo}/actions/runners/remove-token", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#cancel-a-workflow-run + */ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/cancel", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#re-run-a-workflow + */ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun", "post">; + /** + * @see https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event + */ + "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#set-admin-branch-protection + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-commit-signature-protection + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "post", "zzzax">; + /** + * @see https://docs.github.com/rest/reference/repos#add-status-check-contexts + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#add-app-access-restrictions + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#add-team-access-restrictions + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#add-user-access-restrictions + */ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "post">; + /** + * @see https://docs.github.com/rest/reference/checks#create-a-check-run + */ + "POST /repos/{owner}/{repo}/check-runs": Operation<"/repos/{owner}/{repo}/check-runs", "post">; + /** + * @see https://docs.github.com/rest/reference/checks#create-a-check-suite + */ + "POST /repos/{owner}/{repo}/check-suites": Operation<"/repos/{owner}/{repo}/check-suites", "post">; + /** + * @see https://docs.github.com/rest/reference/checks#rerequest-a-check-suite + */ + "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest", "post">; + /** + * @see https://docs.github.com/v3/code-scanning/#upload-a-sarif-analysis + */ + "POST /repos/{owner}/{repo}/code-scanning/sarifs": Operation<"/repos/{owner}/{repo}/code-scanning/sarifs", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-commit-comment + */ + "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-commit-comment + */ + "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-deployment + */ + "POST /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-deployment-status + */ + "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "post">; + /** + * @see https://docs.github.com/v3/repos/#create-a-repository-dispatch-event + */ + "POST /repos/{owner}/{repo}/dispatches": Operation<"/repos/{owner}/{repo}/dispatches", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-fork + */ + "POST /repos/{owner}/{repo}/forks": Operation<"/repos/{owner}/{repo}/forks", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-blob + */ + "POST /repos/{owner}/{repo}/git/blobs": Operation<"/repos/{owner}/{repo}/git/blobs", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-commit + */ + "POST /repos/{owner}/{repo}/git/commits": Operation<"/repos/{owner}/{repo}/git/commits", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-reference + */ + "POST /repos/{owner}/{repo}/git/refs": Operation<"/repos/{owner}/{repo}/git/refs", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-tag-object + */ + "POST /repos/{owner}/{repo}/git/tags": Operation<"/repos/{owner}/{repo}/git/tags", "post">; + /** + * @see https://docs.github.com/rest/reference/git#create-a-tree + */ + "POST /repos/{owner}/{repo}/git/trees": Operation<"/repos/{owner}/{repo}/git/trees", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-repository-webhook + */ + "POST /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#ping-a-repository-webhook + */ + "POST /repos/{owner}/{repo}/hooks/{hook_id}/pings": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/pings", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#test-the-push-repository-webhook + */ + "POST /repos/{owner}/{repo}/hooks/{hook_id}/tests": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/tests", "post">; + /** + * @see https://docs.github.com/v3/issues/#create-an-issue + */ + "POST /repos/{owner}/{repo}/issues": Operation<"/repos/{owner}/{repo}/issues", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-an-issue-comment + */ + "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/issues#add-assignees-to-an-issue + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#create-an-issue-comment + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/comments": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/comments", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#add-labels-to-an-issue + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-an-issue + */ + "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-deploy-key + */ + "POST /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#create-a-label + */ + "POST /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#merge-a-branch + */ + "POST /repos/{owner}/{repo}/merges": Operation<"/repos/{owner}/{repo}/merges", "post">; + /** + * @see https://docs.github.com/rest/reference/issues#create-a-milestone + */ + "POST /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-github-pages-site + */ + "POST /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "post", "switcheroo">; + /** + * @see https://docs.github.com/rest/reference/repos#request-a-github-pages-build + */ + "POST /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "post">; + /** + * @see https://docs.github.com/v3/projects/#create-a-repository-project + */ + "POST /repos/{owner}/{repo}/projects": Operation<"/repos/{owner}/{repo}/projects", "post", "inertia">; + /** + * @see https://docs.github.com/v3/pulls/#create-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls": Operation<"/repos/{owner}/{repo}/pulls", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment + */ + "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/pulls#create-a-review-comment-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#create-a-reply-for-a-review-comment + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#create-a-review-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "post">; + /** + * @see https://docs.github.com/rest/reference/pulls#submit-a-review-for-a-pull-request + */ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-release + */ + "POST /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#create-a-commit-status + */ + "POST /repos/{owner}/{repo}/statuses/{sha}": Operation<"/repos/{owner}/{repo}/statuses/{sha}", "post">; + /** + * @see https://docs.github.com/v3/repos/#transfer-a-repository + */ + "POST /repos/{owner}/{repo}/transfer": Operation<"/repos/{owner}/{repo}/transfer", "post">; + /** + * @see https://docs.github.com/v3/repos/#create-a-repository-using-a-template + */ + "POST /repos/{template_owner}/{template_repo}/generate": Operation<"/repos/{template_owner}/{template_repo}/generate", "post", "baptiste">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#provision-a-scim-enterprise-group-and-invite-users + */ + "POST /scim/v2/enterprises/{enterprise}/Groups": Operation<"/scim/v2/enterprises/{enterprise}/Groups", "post">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#provision-and-invite-a-scim-enterprise-user + */ + "POST /scim/v2/enterprises/{enterprise}/Users": Operation<"/scim/v2/enterprises/{enterprise}/Users", "post">; + /** + * @see https://docs.github.com/v3/scim/#provision-and-invite-a-scim-user + */ + "POST /scim/v2/organizations/{org}/Users": Operation<"/scim/v2/organizations/{org}/Users", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-legacy + */ + "POST /teams/{team_id}/discussions": Operation<"/teams/{team_id}/discussions", "post">; + /** + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-comment-legacy + */ + "POST /teams/{team_id}/discussions/{discussion_number}/comments": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments", "post">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy + */ + "POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy + */ + "POST /teams/{team_id}/discussions/{discussion_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/reactions", "post", "squirrel-girl">; + /** + * @see https://docs.github.com/rest/reference/users#add-an-email-address-for-the-authenticated-user + */ + "POST /user/emails": Operation<"/user/emails", "post">; + /** + * @see https://docs.github.com/rest/reference/users#create-a-gpg-key-for-the-authenticated-user + */ + "POST /user/gpg_keys": Operation<"/user/gpg_keys", "post">; + /** + * @see https://docs.github.com/rest/reference/users#create-a-public-ssh-key-for-the-authenticated-user + */ + "POST /user/keys": Operation<"/user/keys", "post">; + /** + * @see https://docs.github.com/rest/reference/migrations#start-a-user-migration + */ + "POST /user/migrations": Operation<"/user/migrations", "post">; + /** + * @see https://docs.github.com/v3/projects/#create-a-user-project + */ + "POST /user/projects": Operation<"/user/projects", "post", "inertia">; + /** + * @see https://docs.github.com/v3/repos/#create-a-repository-for-the-authenticated-user + */ + "POST /user/repos": Operation<"/user/repos", "post">; + /** + * @see https://docs.github.com/rest/reference/repos#upload-a-release-asset + */ + "POST {origin}/repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}": Operation<"/repos/{owner}/{repo}/releases/{release_id}/assets", "post">; + /** + * @see https://docs.github.com/v3/apps/#suspend-an-app-installation + */ + "PUT /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "put">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app + */ + "PUT /authorizations/clients/{client_id}": Operation<"/authorizations/clients/{client_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app-and-fingerprint + */ + "PUT /authorizations/clients/{client_id}/{fingerprint}": Operation<"/authorizations/clients/{client_id}/{fingerprint}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-github-actions-permissions-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-selected-organizations-enabled-for-github-actions-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#enable-a-selected-organization-for-github-actions-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-allowed-actions-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-self-hosted-runners-in-a-group-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#add-a-self-hosted-runner-to-a-group-for-an-enterprise + */ + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">; + /** + * @see https://docs.github.com/v3/gists/#star-a-gist + */ + "PUT /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#mark-notifications-as-read + */ + "PUT /notifications": Operation<"/notifications", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#set-a-thread-subscription + */ + "PUT /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-organization + */ + "PUT /orgs/{org}/actions/permissions": Operation<"/orgs/{org}/actions/permissions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-enabled-for-github-actions-in-an-organization + */ + "PUT /orgs/{org}/actions/permissions/repositories": Operation<"/orgs/{org}/actions/permissions/repositories", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#enable-a-selected-repository-for-github-actions-in-an-organization + */ + "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-an-organization + */ + "PUT /orgs/{org}/actions/permissions/selected-actions": Operation<"/orgs/{org}/actions/permissions/selected-actions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#add-repository-acess-to-a-self-hosted-runner-group-in-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-organization + */ + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret + */ + "PUT /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret + */ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#add-selected-repository-to-an-organization-secret + */ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#block-a-user-from-an-organization + */ + "PUT /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-an-organization + */ + "PUT /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#set-organization-membership-for-a-user + */ + "PUT /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#convert-an-organization-member-to-outside-collaborator + */ + "PUT /orgs/{org}/outside_collaborators/{username}": Operation<"/orgs/{org}/outside_collaborators/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/orgs#set-public-organization-membership-for-the-authenticated-user + */ + "PUT /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user + */ + "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "put">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-project-permissions + */ + "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "put", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions + */ + "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "put">; + /** + * @see https://docs.github.com/rest/reference/projects#add-project-collaborator + */ + "PUT /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "put", "inertia">; + /** + * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-a-repository + */ + "PUT /repos/{owner}/{repo}/actions/permissions": Operation<"/repos/{owner}/{repo}/actions/permissions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-a-repository + */ + "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions": Operation<"/repos/{owner}/{repo}/actions/permissions/selected-actions", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#create-or-update-a-repository-secret + */ + "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#disable-a-workflow + */ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable", "put">; + /** + * @see https://docs.github.com/rest/reference/actions#enable-a-workflow + */ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable", "put">; + /** + * @see https://docs.github.com/v3/repos/#enable-automated-security-fixes + */ + "PUT /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "put", "london">; + /** + * @see https://docs.github.com/rest/reference/repos#update-branch-protection + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-status-check-contexts + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-app-access-restrictions + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-team-access-restrictions + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#set-user-access-restrictions + */ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#add-a-repository-collaborator + */ + "PUT /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#create-or-update-file-contents + */ + "PUT /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "put">; + /** + * @see https://docs.github.com/rest/reference/migrations#start-an-import + */ + "PUT /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "put">; + /** + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-a-repository + */ + "PUT /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "put">; + /** + * @see https://docs.github.com/rest/reference/issues#set-labels-for-an-issue + */ + "PUT /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "put">; + /** + * @see https://docs.github.com/v3/issues/#lock-an-issue + */ + "PUT /repos/{owner}/{repo}/issues/{issue_number}/lock": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/lock", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#mark-repository-notifications-as-read + */ + "PUT /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "put">; + /** + * @see https://docs.github.com/rest/reference/repos#update-information-about-a-github-pages-site + */ + "PUT /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "put">; + /** + * @see https://docs.github.com/v3/pulls/#merge-a-pull-request + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "put">; + /** + * @see https://docs.github.com/rest/reference/pulls#update-a-review-for-a-pull-request + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/pulls#dismiss-a-review-for-a-pull-request + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals", "put">; + /** + * @see https://docs.github.com/v3/pulls/#update-a-pull-request-branch + */ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/update-branch", "put", "lydian">; + /** + * @see https://docs.github.com/rest/reference/activity#set-a-repository-subscription + */ + "PUT /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "put">; + /** + * @see https://docs.github.com/v3/repos/#replace-all-repository-topics + */ + "PUT /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "put", "mercy">; + /** + * @see https://docs.github.com/v3/repos/#enable-vulnerability-alerts + */ + "PUT /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "put", "dorian">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-group + */ + "PUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-user + */ + "PUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "put">; + /** + * @see https://docs.github.com/v3/scim/#set-scim-information-for-a-provisioned-user + */ + "PUT /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/teams#add-team-member-legacy + */ + "PUT /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user-legacy + */ + "PUT /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "put">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-project-permissions-legacy + */ + "PUT /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "put", "inertia">; + /** + * @see https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy + */ + "PUT /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "put">; + /** + * @see https://docs.github.com/rest/reference/users#block-a-user + */ + "PUT /user/blocks/{username}": Operation<"/user/blocks/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/users#follow-a-user + */ + "PUT /user/following/{username}": Operation<"/user/following/{username}", "put">; + /** + * @see https://docs.github.com/rest/reference/apps#add-a-repository-to-an-app-installation + */ + "PUT /user/installations/{installation_id}/repositories/{repository_id}": Operation<"/user/installations/{installation_id}/repositories/{repository_id}", "put">; + /** + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-your-public-repositories + */ + "PUT /user/interaction-limits": Operation<"/user/interaction-limits", "put">; + /** + * @see https://docs.github.com/rest/reference/activity#star-a-repository-for-the-authenticated-user + */ + "PUT /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "put">; +} +export {}; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/index.d.ts b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/index.d.ts new file mode 100644 index 000000000..004ae9b22 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-types/index.d.ts @@ -0,0 +1,21 @@ +export * from "./AuthInterface"; +export * from "./EndpointDefaults"; +export * from "./EndpointInterface"; +export * from "./EndpointOptions"; +export * from "./Fetch"; +export * from "./OctokitResponse"; +export * from "./RequestError"; +export * from "./RequestHeaders"; +export * from "./RequestInterface"; +export * from "./RequestMethod"; +export * from "./RequestOptions"; +export * from "./RequestParameters"; +export * from "./RequestRequestOptions"; +export * from "./ResponseHeaders"; +export * from "./Route"; +export * from "./Signal"; +export * from "./StrategyInterface"; +export * from "./Url"; +export * from "./VERSION"; +export * from "./GetResponseTypeFromEndpointMethod"; +export * from "./generated/Endpoints"; diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-web/index.js b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-web/index.js new file mode 100644 index 000000000..ce27278ed --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-web/index.js @@ -0,0 +1,4 @@ +const VERSION = "6.0.3"; + +export { VERSION }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-web/index.js.map b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-web/index.js.map new file mode 100644 index 000000000..cd0e254a5 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/VERSION.js"],"sourcesContent":["export const VERSION = \"0.0.0-development\";\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/graphql/node_modules/@octokit/types/package.json b/node_modules/@octokit/graphql/node_modules/@octokit/types/package.json new file mode 100644 index 000000000..1176062e4 --- /dev/null +++ b/node_modules/@octokit/graphql/node_modules/@octokit/types/package.json @@ -0,0 +1,51 @@ +{ + "name": "@octokit/types", + "description": "Shared TypeScript definitions for Octokit projects", + "version": "6.0.3", + "license": "MIT", + "files": [ + "dist-*/", + "bin/" + ], + "pika": true, + "sideEffects": false, + "keywords": [ + "github", + "api", + "sdk", + "toolkit", + "typescript" + ], + "repository": "https://github.com/octokit/types.ts", + "dependencies": { + "@octokit/openapi-types": "^1.2.0", + "@types/node": ">= 8" + }, + "devDependencies": { + "@octokit/graphql": "^4.2.2", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.9.0", + "@pika/plugin-build-web": "^0.9.0", + "@pika/plugin-ts-standard-pkg": "^0.9.0", + "handlebars": "^4.7.6", + "json-schema-to-typescript": "^10.0.0", + "lodash.set": "^4.3.2", + "npm-run-all": "^4.1.5", + "openapi-typescript": "^2.3.1", + "pascal-case": "^3.1.1", + "prettier": "^2.0.0", + "semantic-release": "^17.0.0", + "semantic-release-plugin-update-version-in-files": "^1.0.0", + "sort-keys": "^4.0.0", + "string-to-jsdoc-comment": "^1.0.0", + "typedoc": "^0.19.0", + "typescript": "^4.0.2" + }, + "publishConfig": { + "access": "public" + }, + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "main": "dist-node/index.js", + "module": "dist-web/index.js" +} diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/.travis.yml b/node_modules/@octokit/graphql/node_modules/universal-user-agent/.travis.yml deleted file mode 100644 index d54089575..000000000 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: node_js -cache: - directories: - - ~/.npm - - node_modules/cypress/dist - -# Trigger a push build on master and greenkeeper branches + PRs build on every branches -# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147) -branches: - only: - - master - - /^greenkeeper.*$/ - -stages: - - test - - name: release - if: branch = master AND type IN (push) - -jobs: - include: - - stage: test - node_js: 6 - script: npm run test - - node_js: 8 - script: npm run test - - node_js: 10 - env: Node 10 & coverage upload - script: - - npm run test - - npm run coverage:upload - - node_js: lts/* - env: browser tests - script: npm run test:browser - - - stage: release - node_js: lts/* - env: semantic-release - script: npm run semantic-release diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/LICENSE.md b/node_modules/@octokit/graphql/node_modules/universal-user-agent/LICENSE.md deleted file mode 100644 index f105ab0c0..000000000 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -# [ISC License](https://spdx.org/licenses/ISC) - -Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/README.md b/node_modules/@octokit/graphql/node_modules/universal-user-agent/README.md deleted file mode 100644 index 59e809ed8..000000000 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# universal-user-agent - -> Get a user agent string in both browser and node - -[![@latest](https://img.shields.io/npm/v/universal-user-agent.svg)](https://www.npmjs.com/package/universal-user-agent) -[![Build Status](https://travis-ci.com/gr2m/universal-user-agent.svg?branch=master)](https://travis-ci.com/gr2m/universal-user-agent) -[![Coverage Status](https://coveralls.io/repos/github/gr2m/universal-user-agent/badge.svg)](https://coveralls.io/github/gr2m/universal-user-agent) -[![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) - -```js -const getUserAgent = require('universal-user-agent') -const userAgent = getUserAgent() - -// userAgent will look like this -// in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0" -// in node: Node.js/v8.9.4 (macOS High Sierra; x64) -``` - -## Credits - -The Node implementation was originally inspired by [default-user-agent](https://www.npmjs.com/package/default-user-agent). - -## License - -[ISC](LICENSE.md) diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/browser.js b/node_modules/@octokit/graphql/node_modules/universal-user-agent/browser.js deleted file mode 100644 index eb1274439..000000000 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/browser.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = getUserAgentBrowser - -function getUserAgentBrowser () { - /* global navigator */ - return navigator.userAgent -} diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/cypress.json b/node_modules/@octokit/graphql/node_modules/universal-user-agent/cypress.json deleted file mode 100644 index a1ff4b85e..000000000 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/cypress.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "integrationFolder": "test", - "video": false -} diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/index.d.ts b/node_modules/@octokit/graphql/node_modules/universal-user-agent/index.d.ts deleted file mode 100644 index 04dfc0435..000000000 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function getUserAgentNode(): string; diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/index.js b/node_modules/@octokit/graphql/node_modules/universal-user-agent/index.js deleted file mode 100644 index ef2d06b28..000000000 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/index.js +++ /dev/null @@ -1,15 +0,0 @@ -module.exports = getUserAgentNode - -const osName = require('os-name') - -function getUserAgentNode () { - try { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})` - } catch (error) { - if (/wmic os get Caption/.test(error.message)) { - return 'Windows ' - } - - throw error - } -} diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json b/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json deleted file mode 100644 index 54bb55ee1..000000000 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "universal-user-agent", - "version": "2.1.0", - "description": "Get a user agent string in both browser and node", - "repository": "https://github.com/gr2m/universal-user-agent.git", - "keywords": [], - "author": "Gregor Martynus (https://github.com/gr2m)", - "license": "ISC", - "main": "index.js", - "browser": "browser.js", - "types": "index.d.ts", - "scripts": { - "coverage": "nyc report --reporter=html && open coverage/index.html", - "coverage:upload": "nyc report --reporter=text-lcov | coveralls", - "pretest": "standard", - "test": "nyc mocha \"test/*-test.js\"", - "test:browser": "cypress run --browser chrome", - "semantic-release": "semantic-release", - "travis-deploy-once": "travis-deploy-once" - }, - "devDependencies": { - "chai": "^4.1.2", - "coveralls": "^3.0.2", - "cypress": "^3.1.0", - "mocha": "^6.0.0", - "proxyquire": "^2.1.0", - "nyc": "^14.0.0", - "sinon": "^7.2.4", - "sinon-chai": "^3.2.0", - "standard": "^12.0.1", - "test": "^0.6.0", - "semantic-release": "^15.9.15", - "travis-deploy-once": "^5.0.7" - }, - "dependencies": { - "os-name": "^3.0.0" - }, - "standard": { - "globals": [ - "describe", - "it", - "beforeEach", - "afterEach", - "expect" - ] - } -} diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/test/smoke-test.js b/node_modules/@octokit/graphql/node_modules/universal-user-agent/test/smoke-test.js deleted file mode 100644 index d71b2d51c..000000000 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/test/smoke-test.js +++ /dev/null @@ -1,57 +0,0 @@ -// make tests run in both Node & Express -if (!global.cy) { - const chai = require('chai') - const sinon = require('sinon') - const sinonChai = require('sinon-chai') - chai.use(sinonChai) - global.expect = chai.expect - - let sandbox - beforeEach(() => { - sandbox = sinon.createSandbox() - global.cy = { - stub: function () { - return sandbox.stub.apply(sandbox, arguments) - }, - log () { - console.log.apply(console, arguments) - } - } - }) - - afterEach(() => { - sandbox.restore() - }) -} - -const getUserAgent = require('..') - -describe('smoke', () => { - it('works', () => { - expect(getUserAgent()).to.be.a('string') - expect(getUserAgent().length).to.be.above(10) - }) - - if (!process.browser) { // test on node only - const proxyquire = require('proxyquire').noCallThru() - it('works around wmic error on Windows (#5)', () => { - const getUserAgent = proxyquire('..', { - 'os-name': () => { - throw new Error('Command failed: wmic os get Caption') - } - }) - - expect(getUserAgent()).to.equal('Windows ') - }) - - it('does not swallow unexpected errors', () => { - const getUserAgent = proxyquire('..', { - 'os-name': () => { - throw new Error('oops') - } - }) - - expect(getUserAgent).to.throw('oops') - }) - } -}) diff --git a/node_modules/@octokit/graphql/package.json b/node_modules/@octokit/graphql/package.json index 97cfbd10e..bb5890725 100644 --- a/node_modules/@octokit/graphql/package.json +++ b/node_modules/@octokit/graphql/package.json @@ -1,90 +1,54 @@ { "name": "@octokit/graphql", - "version": "2.1.3", - "publishConfig": { - "access": "public" - }, "description": "GitHub GraphQL API client for browsers and Node", - "main": "index.js", - "scripts": { - "prebuild": "mkdirp dist/", - "build": "npm-run-all build:*", - "build:development": "webpack --mode development --entry . --output-library=octokitGraphql --output=./dist/octokit-graphql.js --profile --json > dist/bundle-stats.json", - "build:production": "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=octokitGraphql --output-path=./dist --output-filename=octokit-graphql.min.js --devtool source-map", - "bundle-report": "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html", - "coverage": "nyc report --reporter=html && open coverage/index.html", - "coverage:upload": "nyc report --reporter=text-lcov | coveralls", - "pretest": "standard", - "test": "nyc mocha test/*-test.js", - "test:browser": "cypress run --browser chrome" - }, - "repository": { - "type": "git", - "url": "https://github.com/octokit/graphql.js.git" - }, + "version": "4.5.8", + "license": "MIT", + "files": [ + "dist-*/", + "bin/" + ], + "pika": true, + "sideEffects": false, "keywords": [ "octokit", "github", "api", "graphql" ], - "author": "Gregor Martynus (https://github.com/gr2m)", - "license": "MIT", + "homepage": "https://github.com/octokit/graphql.js#readme", "bugs": { "url": "https://github.com/octokit/graphql.js/issues" }, - "homepage": "https://github.com/octokit/graphql.js#readme", + "repository": { + "type": "git", + "url": "https://github.com/octokit/graphql.js.git" + }, "dependencies": { - "@octokit/request": "^5.0.0", - "universal-user-agent": "^2.0.3" + "@octokit/request": "^5.3.0", + "@octokit/types": "^6.0.0", + "universal-user-agent": "^6.0.0" }, "devDependencies": { - "chai": "^4.2.0", - "compression-webpack-plugin": "^2.0.0", - "coveralls": "^3.0.3", - "cypress": "^3.1.5", - "fetch-mock": "^7.3.1", - "mkdirp": "^0.5.1", - "mocha": "^6.0.0", - "npm-run-all": "^4.1.3", - "nyc": "^14.0.0", - "semantic-release": "^15.13.3", - "simple-mock": "^0.8.0", - "standard": "^12.0.1", - "webpack": "^4.29.6", - "webpack-bundle-analyzer": "^3.1.0", - "webpack-cli": "^3.2.3" + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.9.0", + "@pika/plugin-build-web": "^0.9.0", + "@pika/plugin-ts-standard-pkg": "^0.9.0", + "@types/fetch-mock": "^7.2.5", + "@types/jest": "^26.0.0", + "@types/node": "^14.0.4", + "fetch-mock": "^9.0.0", + "jest": "^25.1.0", + "prettier": "^2.0.0", + "semantic-release": "^17.0.0", + "semantic-release-plugin-update-version-in-files": "^1.0.0", + "ts-jest": "^25.1.0", + "typescript": "^3.4.5" }, - "bundlesize": [ - { - "path": "./dist/octokit-graphql.min.js.gz", - "maxSize": "5KB" - } - ], - "release": { - "publish": [ - "@semantic-release/npm", - { - "path": "@semantic-release/github", - "assets": [ - "dist/*", - "!dist/*.map.gz" - ] - } - ] - }, - "standard": { - "globals": [ - "describe", - "before", - "beforeEach", - "afterEach", - "after", - "it", - "expect" - ] + "publishConfig": { + "access": "public" }, - "files": [ - "lib" - ] + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "main": "dist-node/index.js", + "module": "dist-web/index.js" } diff --git a/node_modules/@octokit/openapi-types/.github/dependabot.yml b/node_modules/@octokit/openapi-types/.github/dependabot.yml new file mode 100644 index 000000000..68bce18dc --- /dev/null +++ b/node_modules/@octokit/openapi-types/.github/dependabot.yml @@ -0,0 +1,18 @@ +version: 2 +updates: + # create PRs for out-of-range updates + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" + versioning-strategy: "increase" + labels: + - "maintenance" + + # Update actions with branch-based versioning + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + labels: + - "maintenance" diff --git a/node_modules/@octokit/openapi-types/.github/workflows/release-notification.yml b/node_modules/@octokit/openapi-types/.github/workflows/release-notification.yml new file mode 100644 index 000000000..ba9a962f8 --- /dev/null +++ b/node_modules/@octokit/openapi-types/.github/workflows/release-notification.yml @@ -0,0 +1,14 @@ +name: Release notification +on: + release: + types: + - published + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - uses: gr2m/release-notifier-action@v1 + with: + app_id: ${{ secrets.RELEASE_NOTIFIER_APP_ID }} + private_key: ${{ secrets.RELEASE_NOTIFIER_APP_PRIVATE_KEY }} diff --git a/node_modules/@octokit/openapi-types/.github/workflows/release.yml b/node_modules/@octokit/openapi-types/.github/workflows/release.yml new file mode 100644 index 000000000..ab0436ce0 --- /dev/null +++ b/node_modules/@octokit/openapi-types/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Release +on: + push: + branches: + - main + - next + - beta + - "*.x" # maintenance releases + +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2.1.2 + - run: npm ci + - run: npx semantic-release + env: + GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} + NPM_TOKEN: ${{ secrets.OCTOKITBOT_NPM_TOKEN }} diff --git a/node_modules/@octokit/openapi-types/.github/workflows/update.yml b/node_modules/@octokit/openapi-types/.github/workflows/update.yml new file mode 100644 index 000000000..2e0c1803b --- /dev/null +++ b/node_modules/@octokit/openapi-types/.github/workflows/update.yml @@ -0,0 +1,82 @@ +name: Update +on: + repository_dispatch: + types: ["octokit/openapi release"] + + push: + branches: + - dependabot/npm_and_yarn/openapi-typescript-* + + workflow_dispatch: + inputs: + version: + description: "Version of https://www.npmjs.com/package/@octokit/openapi" + required: true + +jobs: + update: + runs-on: ubuntu-latest + if: github.event_name == 'workflow_dispatch' || github.event.client_payload.action == 'published' + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2.1.2 + - run: npm ci + # do not update cache for dependabot update + - run: | + npm run download + npm run generate-types + if: github.event_name == 'repository_dispatch' + env: + VERSION: ${{ github.event.client_payload.release.tag_name }} + - run: | + npm run download + npm run generate-types + if: github.event_name == 'workflow_dispatch' + env: + VERSION: ${{ github.event.inputs.version }} + + # create/update pull request for dispatch event update + - name: Create Pull Request + if: github.event_name != 'push' + uses: gr2m/create-or-update-pull-request-action@v1.x + env: + GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} + with: + title: "🚧 OpenAPI types changed" + body: | + Make sure to update the commits so that the merge results in helpful release notes, see [Merging the Pull Request & releasing a new version](https://github.com/octokit/rest.js/blob/master/CONTRIBUTING.md#merging-the-pull-request--releasing-a-new-version). + + In general + + - Avoid breaking changes at all costs + - If there are no typescript changes, use `build: cache` as commit message + - If there are there are only updates, use `fix: ...` + - If there are any new additions, use `feat: ...` + - If there are breaking changes, keep the previous ones and deprecate them. Only if there is no other way, add `BREAKING CHANGE: ...` to the commit body (not subject!) to trigger a breaking change. + branch: "openapi-update" + commit-message: "WIP" + author: "Octokit Bot <33075676+octokitbot@users.noreply.github.com>" + labels: "maintenance" + + # update pull request for dependabot update + - name: Create Pull Request + if: github.event_name == 'push' + uses: gr2m/create-or-update-pull-request-action@v1.x + env: + GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} + with: + title: "🚧 OpenAPI types changed" + body: | + Make sure to update the commits so that the merge results in helpful release notes, see [Merging the Pull Request & releasing a new version](https://github.com/octokit/rest.js/blob/master/CONTRIBUTING.md#merging-the-pull-request--releasing-a-new-version). + + In general + + - Avoid breaking changes at all costs + - If there are no typescript changes, use `build: cache` as commit message + - If there are there are only updates, use `fix: ...` + - If there are any new additions, use `feat: ...` + - If there are breaking changes, keep the previous ones and deprecate them. Only if there is no other way, add `BREAKING CHANGE: ...` to the commit body (not subject!) to trigger a breaking change. + branch: "${{ github.ref }}" + commit-message: "WIP" + author: "Octokit Bot <33075676+octokitbot@users.noreply.github.com>" + labels: "maintenance" diff --git a/node_modules/@octokit/openapi-types/CODE_OF_CONDUCT.md b/node_modules/@octokit/openapi-types/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..dad5ddc09 --- /dev/null +++ b/node_modules/@octokit/openapi-types/CODE_OF_CONDUCT.md @@ -0,0 +1,74 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of experience, +nationality, personal appearance, race, religion, or sexual identity and +orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Focusing on what is best for the community +- Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +- The use of sexualized language or imagery and unwelcome sexual attention or + advances +- Trolling, insulting/derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or electronic + address, without explicit permission +- Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at opensource+coc@martynus.net. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at [https://contributor-covenant.org/version/1/4][version] + +[homepage]: https://contributor-covenant.org +[version]: https://contributor-covenant.org/version/1/4/ diff --git a/node_modules/@octokit/openapi-types/LICENSE b/node_modules/@octokit/openapi-types/LICENSE new file mode 100644 index 000000000..c61fbbe5a --- /dev/null +++ b/node_modules/@octokit/openapi-types/LICENSE @@ -0,0 +1,7 @@ +Copyright 2020 Gregor Martynus + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@octokit/openapi-types/README.md b/node_modules/@octokit/openapi-types/README.md new file mode 100644 index 000000000..47acb127f --- /dev/null +++ b/node_modules/@octokit/openapi-types/README.md @@ -0,0 +1,9 @@ +# openapi-types.ts + +> Generated TypeScript definitions based on GitHub's OpenAPI spec + +This repository continously converts [GitHub's OpenAPI specification](https://github.com/github/rest-api-description/) into TypeScript definitions and publishes them to npm as `@octokit/openapi-types` + +## License + +[MIT](LICENSE) diff --git a/node_modules/@octokit/openapi-types/cache/openapi-schema.json b/node_modules/@octokit/openapi-types/cache/openapi-schema.json new file mode 100644 index 000000000..a51340a23 --- /dev/null +++ b/node_modules/@octokit/openapi-types/cache/openapi-schema.json @@ -0,0 +1,65825 @@ +{ + "openapi": "3.0.3", + "info": { + "version": "1.0.3", + "title": "GitHub's official OpenAPI spec + Octokit extension", + "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", + "license": { "name": "MIT", "url": "https://spdx.org/licenses/MIT" }, + "termsOfService": "https://docs.github.com/articles/github-terms-of-service", + "contact": { + "name": "Support", + "url": "https://github.com/octokit/openapi" + } + }, + "tags": [ + { + "name": "actions", + "description": "Endpoints to manage GitHub Actions using the REST API." + }, + { + "name": "activity", + "description": "Activity APIs provide access to notifications, subscriptions, and timelines." + }, + { + "name": "apps", + "description": "Information for integrations and installations." + }, + { + "name": "billing", + "description": "Monitor charges and usage from Actions and Packages." + }, + { + "name": "checks", + "description": "Rich interactions with checks run by your integrations." + }, + { + "name": "code-scanning", + "description": "Retrieve code scanning alerts from a repository." + }, + { + "name": "codes-of-conduct", + "description": "Insight into codes of conduct for your communities." + }, + { + "name": "emojis", + "description": "List emojis available to use on GitHub." + }, + { "name": "gists", "description": "View, modify your gists." }, + { "name": "git", "description": "Raw Git functionality." }, + { "name": "gitignore", "description": "View gitignore templates" }, + { + "name": "interactions", + "description": "Owner or admin management of users interactons." + }, + { "name": "issues", "description": "Interact with GitHub Issues." }, + { "name": "licenses", "description": "View various OSS licenses." }, + { "name": "markdown", "description": "Render Github flavored markdown" }, + { + "name": "meta", + "description": "Endpoints that give information about the API." + }, + { "name": "migrations", "description": "Move projects to or from GitHub." }, + { + "name": "oauth-authorizations", + "description": "Manage access of OAuth applications" + }, + { "name": "orgs", "description": "Interact with GitHub Orgs." }, + { "name": "projects", "description": "Interact with GitHub Projects." }, + { "name": "pulls", "description": "Interact with GitHub Pull Requests." }, + { + "name": "rate-limit", + "description": "Check your current rate limit status" + }, + { + "name": "reactions", + "description": "Interact with reactions to various GitHub entities." + }, + { "name": "repos", "description": "Interact with GitHub Repos." }, + { + "name": "scim", + "description": "Provisioning of GitHub organization membership for SCIM-enabled providers." + }, + { "name": "search", "description": "Look for stuff on GitHub." }, + { "name": "teams", "description": "Interact with GitHub Teams." }, + { + "name": "users", + "description": "Interact with and view information about users and also current user." + } + ], + "servers": [{ "url": "https://api.github.com" }], + "externalDocs": { + "description": "GitHub v3 REST API", + "url": "https://docs.github.com/rest/" + }, + "paths": { + "/": { + "get": { + "summary": "GitHub API Root", + "description": "Get Hypermedia links to resources accessible in GitHub's REST API", + "tags": ["meta"], + "operationId": "meta/root", + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "current_user_url": { "type": "string", "format": "uri" }, + "current_user_authorizations_html_url": { + "type": "string", + "format": "uri" + }, + "authorizations_url": { "type": "string", "format": "uri" }, + "code_search_url": { "type": "string", "format": "uri" }, + "commit_search_url": { "type": "string", "format": "uri" }, + "emails_url": { "type": "string", "format": "uri" }, + "emojis_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string", "format": "uri" }, + "feeds_url": { "type": "string", "format": "uri" }, + "followers_url": { "type": "string", "format": "uri" }, + "following_url": { "type": "string", "format": "uri" }, + "gists_url": { "type": "string", "format": "uri" }, + "hub_url": { "type": "string", "format": "uri" }, + "issue_search_url": { "type": "string", "format": "uri" }, + "issues_url": { "type": "string", "format": "uri" }, + "keys_url": { "type": "string", "format": "uri" }, + "label_search_url": { "type": "string", "format": "uri" }, + "notifications_url": { "type": "string", "format": "uri" }, + "organization_url": { "type": "string", "format": "uri" }, + "organization_repositories_url": { + "type": "string", + "format": "uri" + }, + "organization_teams_url": { + "type": "string", + "format": "uri" + }, + "public_gists_url": { "type": "string", "format": "uri" }, + "rate_limit_url": { "type": "string", "format": "uri" }, + "repository_url": { "type": "string", "format": "uri" }, + "repository_search_url": { + "type": "string", + "format": "uri" + }, + "current_user_repositories_url": { + "type": "string", + "format": "uri" + }, + "starred_url": { "type": "string", "format": "uri" }, + "starred_gists_url": { "type": "string", "format": "uri" }, + "topic_search_url": { "type": "string", "format": "uri" }, + "user_url": { "type": "string", "format": "uri" }, + "user_organizations_url": { + "type": "string", + "format": "uri" + }, + "user_repositories_url": { + "type": "string", + "format": "uri" + }, + "user_search_url": { "type": "string", "format": "uri" } + }, + "required": [ + "current_user_url", + "current_user_authorizations_html_url", + "authorizations_url", + "code_search_url", + "commit_search_url", + "emails_url", + "emojis_url", + "events_url", + "feeds_url", + "followers_url", + "following_url", + "gists_url", + "hub_url", + "issue_search_url", + "issues_url", + "keys_url", + "label_search_url", + "notifications_url", + "organization_url", + "organization_repositories_url", + "organization_teams_url", + "public_gists_url", + "rate_limit_url", + "repository_url", + "repository_search_url", + "current_user_repositories_url", + "starred_url", + "starred_gists_url", + "user_url", + "user_organizations_url", + "user_repositories_url", + "user_search_url" + ] + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "meta" + }, + "x-octokit": {} + } + }, + "/app": { + "get": { + "summary": "Get the authenticated app", + "description": "Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the \"[List installations for the authenticated app](https://docs.github.com/rest/reference/apps#list-installations-for-the-authenticated-app)\" endpoint.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/get-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#get-the-authenticated-app" + }, + "parameters": [], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/integration" }, + "examples": { + "default": { "$ref": "#/components/examples/integration" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/app-manifests/{code}/conversions": { + "post": { + "summary": "Create a GitHub App from a manifest", + "description": "Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://docs.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`.", + "tags": ["apps"], + "operationId": "apps/create-from-manifest", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#create-a-github-app-from-a-manifest" + }, + "parameters": [ + { + "name": "code", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "allOf": [ + { "$ref": "#/components/schemas/integration" }, + { + "type": "object", + "properties": { + "client_id": { "type": "string" }, + "client_secret": { "type": "string" }, + "webhook_secret": { "type": "string" }, + "pem": { "type": "string" } + }, + "required": [ + "client_id", + "client_secret", + "webhook_secret", + "pem" + ], + "additionalProperties": true + } + ] + }, + "examples": { + "default": { + "$ref": "#/components/examples/integration-from-manifest" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/app/hook/config": { + "get": { + "summary": "Get a webhook configuration for an app", + "description": "Returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see \"[Creating a GitHub App](/developers/apps/creating-a-github-app).\"\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/get-webhook-config-for-app", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps#get-a-webhook-configuration-for-an-app" + }, + "responses": { + "200": { + "description": "Default response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/webhook-config" }, + "examples": { + "default": { "$ref": "#/components/examples/webhook-config" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "webhooks" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a webhook configuration for an app", + "description": "Updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see \"[Creating a GitHub App](/developers/apps/creating-a-github-app).\"\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/update-webhook-config-for-app", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps#update-a-webhook-configuration-for-an-app" + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "url": { "$ref": "#/components/schemas/webhook-config-url" }, + "content_type": { + "$ref": "#/components/schemas/webhook-config-content-type" + }, + "secret": { + "$ref": "#/components/schemas/webhook-config-secret" + }, + "insecure_ssl": { + "$ref": "#/components/schemas/webhook-config-insecure-ssl" + } + }, + "example": { + "content_type": "json", + "insecure_ssl": "0", + "secret": "********", + "url": "https://example.com/webhook" + } + } + } + } + }, + "responses": { + "200": { + "description": "Default response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/webhook-config" }, + "examples": { + "default": { "$ref": "#/components/examples/webhook-config" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "webhooks" + }, + "x-octokit": {} + } + }, + "/app/installations": { + "get": { + "summary": "List installations for the authenticated app", + "description": "You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.\n\nThe permissions the installation has are included under the `permissions` key.", + "tags": ["apps"], + "operationId": "apps/list-installations", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#list-installations-for-the-authenticated-app" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/since" }, + { + "name": "outdated", + "in": "query", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "The permissions the installation has are included under the `permissions` key.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/installation" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/base-installation-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/app/installations/{installation_id}": { + "get": { + "summary": "Get an installation for the authenticated app", + "description": "Enables an authenticated GitHub App to find an installation's information using the installation id. The installation's account type (`target_type`) will be either an organization or a user account, depending which account the repository belongs to.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/get-installation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#get-an-installation-for-the-authenticated-app" + }, + "parameters": [{ "$ref": "#/components/parameters/installation_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/installation" }, + "examples": { + "default": { + "$ref": "#/components/examples/base-installation" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete an installation for the authenticated app", + "description": "Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the \"[Suspend an app installation](https://docs.github.com/v3/apps/#suspend-an-app-installation)\" endpoint.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/delete-installation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#delete-an-installation-for-the-authenticated-app" + }, + "parameters": [{ "$ref": "#/components/parameters/installation_id" }], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/app/installations/{installation_id}/access_tokens": { + "post": { + "summary": "Create an installation access token for an app", + "description": "Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access. To restrict the access to specific repositories, you can provide the `repository_ids` when creating the token. When you omit `repository_ids`, the response does not contain the `repositories` key.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/create-installation-access-token", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#create-an-installation-access-token-for-an-app" + }, + "parameters": [{ "$ref": "#/components/parameters/installation_id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "repositories": { + "description": "List of repository names that the token should have access to", + "type": "array", + "items": { "type": "string", "example": "rails" } + }, + "repository_ids": { + "description": "List of repository IDs that the token should have access to", + "example": [1], + "type": "array", + "items": { "type": "integer" } + }, + "permissions": { + "type": "object", + "properties": { + "contents": { "type": "string" }, + "issues": { "type": "string" }, + "deployments": { "type": "string" }, + "single_file": { "type": "string" }, + "def_not_a_repo": { + "type": "string", + "example": "\"read\"" + } + }, + "example": { + "contents": "read", + "issues": "read", + "deployments": "write", + "single_file": "read" + } + } + } + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/installation-token" }, + "examples": { + "default": { + "$ref": "#/components/examples/installation-token" + } + } + } + } + }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/app/installations/{installation_id}/suspended": { + "put": { + "summary": "Suspend an app installation", + "description": "**Note:** Suspending a GitHub App installation is currently in beta and subject to change. Before you can suspend a GitHub App, the app owner must enable suspending installations for the app by opting-in to the beta. For more information, see \"[Suspending a GitHub App installation](https://docs.github.com/apps/managing-github-apps/suspending-a-github-app-installation/).\"\n\nSuspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account.\n\nTo suspend a GitHub App, you must be an account owner or have admin permissions in the repository or organization where the app is installed.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/suspend-installation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#suspend-an-app-installation" + }, + "parameters": [{ "$ref": "#/components/parameters/installation_id" }], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Unsuspend an app installation", + "description": "**Note:** Suspending a GitHub App installation is currently in beta and subject to change. Before you can suspend a GitHub App, the app owner must enable suspending installations for the app by opting-in to the beta. For more information, see \"[Suspending a GitHub App installation](https://docs.github.com/apps/managing-github-apps/suspending-a-github-app-installation/).\"\n\nRemoves a GitHub App installation suspension.\n\nTo unsuspend a GitHub App, you must be an account owner or have admin permissions in the repository or organization where the app is installed and suspended.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/unsuspend-installation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#unsuspend-an-app-installation" + }, + "parameters": [{ "$ref": "#/components/parameters/installation_id" }], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/applications/grants": { + "get": { + "summary": "List your grants", + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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\nYou can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://docs.github.com/rest/reference/oauth-authorizations#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `[\"repo\", \"user\"]`.", + "tags": ["oauth-authorizations"], + "operationId": "oauth-authorizations/list-grants", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/oauth-authorizations#list-your-grants" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/application-grant" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/application-grant-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2020-11-13", + "deprecationDate": "2020-02-14", + "category": "oauth-authorizations", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/applications/grants/{grant_id}": { + "get": { + "summary": "Get a single grant", + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/).", + "tags": ["oauth-authorizations"], + "operationId": "oauth-authorizations/get-grant", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-grant" + }, + "parameters": [{ "$ref": "#/components/parameters/grant_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/application-grant" }, + "examples": { + "default": { + "$ref": "#/components/examples/application-grant" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2020-11-13", + "deprecationDate": "2020-02-14", + "category": "oauth-authorizations", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a grant", + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).", + "tags": ["oauth-authorizations"], + "operationId": "oauth-authorizations/delete-grant", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/oauth-authorizations#delete-a-grant" + }, + "parameters": [{ "$ref": "#/components/parameters/grant_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2020-11-13", + "deprecationDate": "2020-02-14", + "category": "oauth-authorizations", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/applications/{client_id}/grant": { + "delete": { + "summary": "Delete an app authorization", + "description": "OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid OAuth `access_token` as an input parameter and the grant for the token's owner will be deleted.\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized).", + "operationId": "apps/delete-authorization", + "tags": ["apps"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#delete-an-app-authorization" + }, + "parameters": [{ "$ref": "#/components/parameters/client-id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "access_token": { + "type": "string", + "description": "The OAuth access token used to authenticate to the GitHub API." + } + } + }, + "example": { + "access_token": "e72e16c7e42f292c6912e7710c838347ae178b4a" + } + } + } + }, + "responses": { + "204": { "description": "Empty response" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "oauth-applications" + }, + "x-octokit": {} + } + }, + "/applications/{client_id}/grants/{access_token}": { + "delete": { + "summary": "Revoke a grant for an application", + "description": "**Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. The OAuth Application API will be removed on May 5, 2021. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/).\n\nOAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid token as `:access_token` and the grant for the token's owner will be deleted.\n\nDeleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the Applications settings page under \"Authorized OAuth Apps\" on GitHub](https://github.com/settings/applications#authorized).", + "tags": ["apps"], + "operationId": "apps/revoke-grant-for-application", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#revoke-a-grant-for-an-application" + }, + "parameters": [ + { "$ref": "#/components/parameters/client-id" }, + { "$ref": "#/components/parameters/access-token" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2021-05-05", + "deprecationDate": "2020-02-14", + "category": "apps", + "subcategory": "oauth-applications" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/applications/{client_id}/token": { + "post": { + "summary": "Check a token", + "description": "OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) to use this endpoint, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`.", + "tags": ["apps"], + "operationId": "apps/check-token", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#check-a-token" + }, + "parameters": [{ "$ref": "#/components/parameters/client-id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "access_token": { + "description": "The access_token of the OAuth application.", + "type": "string" + } + }, + "required": ["access_token"], + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/authorization" }, + "examples": { + "default": { + "$ref": "#/components/examples/authorization-with-user" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "oauth-applications" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Reset a token", + "description": "OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the \"token\" property in the response because changes take effect immediately. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`.", + "tags": ["apps"], + "operationId": "apps/reset-token", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#reset-a-token" + }, + "parameters": [{ "$ref": "#/components/parameters/client-id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "access_token": { + "description": "The access_token of the OAuth application.", + "type": "string" + } + }, + "required": ["access_token"], + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/authorization" }, + "examples": { + "default": { + "$ref": "#/components/examples/authorization-with-user" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "oauth-applications" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete an app token", + "description": "OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password.", + "tags": ["apps"], + "operationId": "apps/delete-token", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#delete-an-app-token" + }, + "parameters": [{ "$ref": "#/components/parameters/client-id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "access_token": { + "type": "string", + "description": "The OAuth access token used to authenticate to the GitHub API." + } + } + }, + "example": { + "access_token": "e72e16c7e42f292c6912e7710c838347ae178b4a" + } + } + } + }, + "responses": { + "204": { "description": "Empty response" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "oauth-applications" + }, + "x-octokit": {} + } + }, + "/applications/{client_id}/tokens/{access_token}": { + "get": { + "summary": "Check an authorization", + "description": "**Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. The OAuth Application API will be removed on May 5, 2021. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/).\n\nOAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`.", + "tags": ["apps"], + "operationId": "apps/check-authorization", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#check-an-authorization" + }, + "parameters": [ + { "$ref": "#/components/parameters/client-id" }, + { "$ref": "#/components/parameters/access-token" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/authorization" }] + }, + "examples": { + "default": { + "$ref": "#/components/examples/authorization-with-user" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2021-05-05", + "deprecationDate": "2020-02-14", + "category": "apps", + "subcategory": "oauth-applications" + }, + "deprecated": true, + "x-octokit": {} + }, + "post": { + "summary": "Reset an authorization", + "description": "**Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. The OAuth Application API will be removed on May 5, 2021. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/).\n\nOAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the \"token\" property in the response because changes take effect immediately. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`.", + "tags": ["apps"], + "operationId": "apps/reset-authorization", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#reset-an-authorization" + }, + "parameters": [ + { "$ref": "#/components/parameters/client-id" }, + { "$ref": "#/components/parameters/access-token" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/authorization" }, + "examples": { + "default": { + "$ref": "#/components/examples/authorization-with-user" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2021-05-05", + "deprecationDate": "2020-02-14", + "category": "apps", + "subcategory": "oauth-applications" + }, + "deprecated": true, + "x-octokit": {} + }, + "delete": { + "summary": "Revoke an authorization for an application", + "description": "**Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. The OAuth Application API will be removed on May 5, 2021. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/).\n\nOAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password.", + "tags": ["apps"], + "operationId": "apps/revoke-authorization-for-application", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#revoke-an-authorization-for-an-application" + }, + "parameters": [ + { "$ref": "#/components/parameters/client-id" }, + { "$ref": "#/components/parameters/access-token" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2021-05-05", + "deprecationDate": "2020-02-14", + "category": "apps", + "subcategory": "oauth-applications" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/apps/{app_slug}": { + "get": { + "summary": "Get an app", + "description": "**Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`).\n\nIf the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/get-by-slug", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#get-an-app" + }, + "parameters": [{ "$ref": "#/components/parameters/app_slug" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/integration" }, + "examples": { + "default": { "$ref": "#/components/examples/integration" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/authorizations": { + "get": { + "summary": "List your authorizations", + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/).", + "tags": ["oauth-authorizations"], + "operationId": "oauth-authorizations/list-authorizations", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/oauth-authorizations#list-your-authorizations" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/authorization" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/authorization-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2020-11-13", + "deprecationDate": "2020-02-14", + "category": "oauth-authorizations", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "post": { + "summary": "Create a new authorization", + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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\n**Warning:** Apps must use the [web application flow](https://docs.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api).\n\nCreates OAuth tokens using [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication). If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Working with two-factor authentication](https://docs.github.com/rest/overview/other-authentication-methods#working-with-two-factor-authentication).\"\n\nTo create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them.\n\nYou can also create tokens on GitHub from the [personal access tokens settings](https://github.com/settings/tokens) page. Read more about these tokens in [the GitHub Help documentation](https://help.github.com/articles/creating-an-access-token-for-command-line-use).\n\nOrganizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in [the GitHub Help documentation](https://help.github.com/articles/about-identity-and-access-management-with-saml-single-sign-on).", + "tags": ["oauth-authorizations"], + "operationId": "oauth-authorizations/create-authorization", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "scopes": { + "description": "A list of scopes that this authorization is in.", + "type": "array", + "items": { "type": "string" }, + "example": ["public_repo", "user"], + "nullable": true + }, + "note": { + "description": "A note to remind you what the OAuth token is for.", + "type": "string", + "example": "Update all gems" + }, + "note_url": { + "description": "A URL to remind you what app the OAuth token is for.", + "type": "string" + }, + "client_id": { + "description": "The OAuth app client key for which to create the token.", + "maxLength": 20, + "type": "string" + }, + "client_secret": { + "description": "The OAuth app client secret for which to create the token.", + "maxLength": 40, + "type": "string" + }, + "fingerprint": { + "description": "A unique string to distinguish an authorization from others created for the same client ID and user.", + "type": "string" + } + } + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/authorization" }, + "examples": { + "default": { "$ref": "#/components/examples/authorization" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/authorizations/1", + "schema": { "type": "string" } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2020-11-13", + "deprecationDate": "2020-02-14", + "category": "oauth-authorizations", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/authorizations/clients/{client_id}": { + "put": { + "summary": "Get-or-create an authorization for a specific app", + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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\n**Warning:** Apps must use the [web application flow](https://docs.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api).\n\nCreates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.\n\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Working with two-factor authentication](https://docs.github.com/rest/overview/other-authentication-methods#working-with-two-factor-authentication).\"\n\n**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/).", + "tags": ["oauth-authorizations"], + "operationId": "oauth-authorizations/get-or-create-authorization-for-app", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app" + }, + "parameters": [{ "$ref": "#/components/parameters/client-id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "client_secret": { + "description": "The OAuth app client secret for which to create the token.", + "maxLength": 40, + "type": "string" + }, + "scopes": { + "description": "A list of scopes that this authorization is in.", + "type": "array", + "items": { "type": "string" }, + "example": ["public_repo", "user"], + "nullable": true + }, + "note": { + "description": "A note to remind you what the OAuth token is for.", + "type": "string", + "example": "Update all gems" + }, + "note_url": { + "description": "A URL to remind you what app the OAuth token is for.", + "type": "string" + }, + "fingerprint": { + "description": "A unique string to distinguish an authorization from others created for the same client ID and user.", + "type": "string" + } + }, + "required": ["client_secret"], + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Response if returning an existing token", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/authorization" }, + "examples": { + "response-if-returning-an-existing-token": { + "$ref": "#/components/examples/authorization-response-if-returning-an-existing-token-2" + } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/authorizations/1", + "schema": { "type": "string" } + } + } + }, + "201": { + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/).", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/authorization" }, + "examples": { + "default": { "$ref": "#/components/examples/authorization" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/authorizations/1", + "schema": { "type": "string" } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2020-11-13", + "deprecationDate": "2020-02-14", + "category": "oauth-authorizations", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/authorizations/clients/{client_id}/{fingerprint}": { + "put": { + "summary": "Get-or-create an authorization for a specific app and fingerprint", + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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\n**Warning:** Apps must use the [web application flow](https://docs.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api).\n\nThis method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one.\n\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Working with two-factor authentication](https://docs.github.com/rest/overview/other-authentication-methods#working-with-two-factor-authentication).\"", + "tags": ["oauth-authorizations"], + "operationId": "oauth-authorizations/get-or-create-authorization-for-app-and-fingerprint", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app-and-fingerprint" + }, + "parameters": [ + { "$ref": "#/components/parameters/client-id" }, + { + "name": "fingerprint", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "client_secret": { + "description": "The OAuth app client secret for which to create the token.", + "maxLength": 40, + "type": "string" + }, + "scopes": { + "description": "A list of scopes that this authorization is in.", + "type": "array", + "items": { "type": "string" }, + "example": ["public_repo", "user"], + "nullable": true + }, + "note": { + "description": "A note to remind you what the OAuth token is for.", + "type": "string", + "example": "Update all gems" + }, + "note_url": { + "description": "A URL to remind you what app the OAuth token is for.", + "type": "string" + } + }, + "required": ["client_secret"], + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Response if returning an existing token", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/authorization" }, + "examples": { + "response-if-returning-an-existing-token": { + "$ref": "#/components/examples/authorization-response-if-returning-an-existing-token" + } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/authorizations/1", + "schema": { "type": "string" } + } + } + }, + "201": { + "description": "Response if returning a new token", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/authorization" }, + "examples": { + "default": { "$ref": "#/components/examples/authorization-3" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/authorizations/1", + "schema": { "type": "string" } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2020-11-13", + "deprecationDate": "2020-02-14", + "category": "oauth-authorizations", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/authorizations/{authorization_id}": { + "get": { + "summary": "Get a single authorization", + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/).", + "tags": ["oauth-authorizations"], + "operationId": "oauth-authorizations/get-authorization", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-authorization" + }, + "parameters": [{ "$ref": "#/components/parameters/authorization_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/authorization" }, + "examples": { + "default": { "$ref": "#/components/examples/authorization-2" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2020-11-13", + "deprecationDate": "2020-02-14", + "category": "oauth-authorizations", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "patch": { + "summary": "Update an existing authorization", + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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\nIf you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see \"[Working with two-factor authentication](https://docs.github.com/rest/overview/other-authentication-methods#working-with-two-factor-authentication).\"\n\nYou can only send one of these scope keys at a time.", + "tags": ["oauth-authorizations"], + "operationId": "oauth-authorizations/update-authorization", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/oauth-authorizations#update-an-existing-authorization" + }, + "parameters": [{ "$ref": "#/components/parameters/authorization_id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "scopes": { + "description": "A list of scopes that this authorization is in.", + "type": "array", + "items": { "type": "string" }, + "example": ["public_repo", "user"], + "nullable": true + }, + "add_scopes": { + "description": "A list of scopes to add to this authorization.", + "type": "array", + "items": { "type": "string" } + }, + "remove_scopes": { + "description": "A list of scopes to remove from this authorization.", + "type": "array", + "items": { "type": "string" } + }, + "note": { + "description": "A note to remind you what the OAuth token is for.", + "type": "string", + "example": "Update all gems" + }, + "note_url": { + "description": "A URL to remind you what app the OAuth token is for.", + "type": "string" + }, + "fingerprint": { + "description": "A unique string to distinguish an authorization from others created for the same client ID and user.", + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/authorization" }, + "examples": { + "default": { "$ref": "#/components/examples/authorization-2" } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2020-11-13", + "deprecationDate": "2020-02-14", + "category": "oauth-authorizations", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "delete": { + "summary": "Delete an authorization", + "description": "**Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/).", + "tags": ["oauth-authorizations"], + "operationId": "oauth-authorizations/delete-authorization", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/oauth-authorizations#delete-an-authorization" + }, + "parameters": [{ "$ref": "#/components/parameters/authorization_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2020-11-13", + "deprecationDate": "2020-02-14", + "category": "oauth-authorizations", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/codes_of_conduct": { + "get": { + "summary": "Get all codes of conduct", + "description": "", + "tags": ["codes-of-conduct"], + "operationId": "codes-of-conduct/get-all-codes-of-conduct", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/codes_of_conduct/#get-all-codes-of-conduct" + }, + "parameters": [], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/code-of-conduct" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/code-of-conduct-simple-items" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "scarlet-witch", + "note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```" + } + ], + "category": "codes-of-conduct", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/codes_of_conduct/{key}": { + "get": { + "summary": "Get a code of conduct", + "description": "", + "tags": ["codes-of-conduct"], + "operationId": "codes-of-conduct/get-conduct-code", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/codes_of_conduct/#get-a-code-of-conduct" + }, + "parameters": [ + { + "name": "key", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/code-of-conduct" }, + "examples": { + "default": { "$ref": "#/components/examples/code-of-conduct" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "scarlet-witch", + "note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```" + } + ], + "category": "codes-of-conduct", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/content_references/{content_reference_id}/attachments": { + "post": { + "summary": "Create a content attachment", + "description": "Creates an attachment under a content reference URL in the body or comment of an issue or pull request. Use the `id` of the content reference from the [`content_reference` event](https://docs.github.com/webhooks/event-payloads/#content_reference) to create an attachment.\n\nThe app must create a content attachment within six hours of the content reference URL being posted. See \"[Using content attachments](https://docs.github.com/apps/using-content-attachments/)\" for details about content attachments.\n\nYou must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/create-content-attachment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#create-a-content-attachment" + }, + "parameters": [ + { + "name": "content_reference_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "title": { + "description": "The title of the attachment", + "example": "Title of the attachment", + "type": "string", + "maxLength": 1024 + }, + "body": { + "description": "The body of the attachment", + "example": "Body of the attachment", + "type": "string", + "maxLength": 262144 + } + }, + "required": ["title", "body"], + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/content-reference-attachment" + }, + "examples": { + "default": { + "$ref": "#/components/examples/content-reference-attachment" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "corsair", + "note": "To access the Content Attachments API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.corsair-preview+json\n```" + } + ], + "category": "apps", + "subcategory": "installations" + }, + "x-octokit": {} + } + }, + "/emojis": { + "get": { + "summary": "Get emojis", + "description": "Lists all the emojis available to use on GitHub.", + "operationId": "emojis/get", + "tags": ["emojis"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/emojis/#get-emojis" + }, + "parameters": [], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "type": "object", + "additionalProperties": { "type": "string" } + } + } + }, + "description": "response" + }, + "304": { "$ref": "#/components/responses/not_modified" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "emojis", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/permissions": { + "get": { + "summary": "Get GitHub Actions permissions for an enterprise", + "description": "Gets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/get-github-actions-permissions-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#get-github-actions-permissions-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/actions-enterprise-permissions" + }, + "examples": { + "default": { + "$ref": "#/components/examples/actions-enterprise-permissions" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set GitHub Actions permissions for an enterprise", + "description": "Sets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/set-github-actions-permissions-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#set-github-actions-permissions-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { "204": { "description": "Empty response" } }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enabled_organizations": { + "$ref": "#/components/schemas/enabled-organizations" + }, + "allowed_actions": { + "$ref": "#/components/schemas/allowed-actions" + } + }, + "required": ["enabled_organizations"] + }, + "example": { + "enabled_organizations": "all", + "allowed_actions": "selected" + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/permissions/organizations": { + "get": { + "summary": "List selected organizations enabled for GitHub Actions in an enterprise", + "description": "Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/list-selected-organizations-enabled-github-actions-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#list-selected-organizations-enabled-for-github-actions-in-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "number" }, + "organizations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/organization-simple" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-targets" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set selected organizations enabled for GitHub Actions in an enterprise", + "description": "Replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/set-selected-organizations-enabled-github-actions-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#set-selected-organizations-enabled-for-github-actions-in-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { "204": { "description": "Empty response" } }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "selected_organization_ids": { + "description": "List of organization IDs to enable for GitHub Actions.", + "type": "array", + "items": { + "type": "integer", + "description": "Unique identifier of the organization." + } + } + }, + "required": ["selected_organization_ids"] + }, + "example": { "selected_organization_ids": [32, 91] } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/permissions/organizations/{org_id}": { + "put": { + "summary": "Enable a selected organization for GitHub Actions in an enterprise", + "description": "Adds an organization to the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/enable-selected-organization-github-actions-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#enable-a-selected-organization-for-github-actions-in-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/org_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Disable a selected organization for GitHub Actions in an enterprise", + "description": "Removes an organization from the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/disable-selected-organization-github-actions-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#disable-a-selected-organization-for-github-actions-in-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/org_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/permissions/selected-actions": { + "get": { + "summary": "Get allowed actions for an enterprise", + "description": "Gets the selected actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/get-allowed-actions-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#get-allowed-actions-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/selected-actions" }, + "examples": { + "default": { + "$ref": "#/components/examples/selected-actions" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set allowed actions for an enterprise", + "description": "Sets the actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/set-allowed-actions-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#set-allowed-actions-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { "204": { "description": "Empty response" } }, + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/selected-actions" }, + "examples": { + "selected_actions": { + "$ref": "#/components/examples/selected-actions" + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runner-groups": { + "get": { + "summary": "List self-hosted runner groups for an enterprise", + "description": "Lists all self-hosted runner groups for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/list-self-hosted-runner-groups-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runner-groups-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "number" }, + "runner_groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/runner-groups-enterprise" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-groups-enterprise" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a self-hosted runner group for an enterprise", + "description": "Creates a new self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/create-self-hosted-runner-group-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#create-self-hosted-runner-group-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "description": "Name of the runner group.", + "type": "string" + }, + "visibility": { + "description": "Visibility of a runner group. You can select all organizations or select individual organization. Can be one of: `all` or `selected`", + "type": "string", + "enum": ["selected", "all"] + }, + "selected_organization_ids": { + "description": "List of organization IDs that can access the runner group.", + "type": "array", + "items": { + "type": "integer", + "description": "Unique identifier of the organization." + } + }, + "runners": { + "description": "List of runner IDs to add to the runner group.", + "type": "array", + "items": { + "type": "integer", + "description": "Unique identifier of the runner." + } + } + }, + "required": ["name"] + }, + "example": { + "name": "Expensive hardware runners", + "visibility": "selected", + "selected_organization_ids": [32, 91], + "runners": [9, 2] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runner-groups-enterprise" + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-group-enterprise" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": { + "get": { + "summary": "Get a self-hosted runner group for an enterprise", + "description": "Gets a specific self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/get-self-hosted-runner-group-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-group-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runner-groups-enterprise" + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-group-enterprise" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a self-hosted runner group for an enterprise", + "description": "Updates the `name` and `visibility` of a self-hosted runner group in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/update-self-hosted-runner-group-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#update-a-self-hosted-runner-group-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "description": "Name of the runner group.", + "type": "string" + }, + "visibility": { + "description": "Visibility of a runner group. You can select all organizations or select individual organizations. Can be one of: `all` or `selected`", + "type": "string", + "enum": ["selected", "all"], + "default": "all" + } + } + }, + "example": { + "name": "Expensive hardware runners", + "visibility": "selected" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/runner-groups-enterprise" + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-group-update-enterprise" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a self-hosted runner group from an enterprise", + "description": "Deletes a self-hosted runner group for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/delete-self-hosted-runner-group-from-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#delete-a-self-hosted-runner-group-from-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": { + "get": { + "summary": "List organization access to a self-hosted runner group in an enterprise", + "description": "Lists the organizations with access to a self-hosted runner group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/list-org-access-to-self-hosted-runner-group-in-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "number" }, + "organizations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/organization-simple" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-targets" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set organization access for a self-hosted runner group in an enterprise", + "description": "Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "selected_organization_ids": { + "description": "List of organization IDs that can access the runner group.", + "type": "array", + "items": { + "type": "integer", + "description": "Unique identifier of the organization." + } + } + }, + "required": ["selected_organization_ids"] + }, + "example": { "selected_organization_ids": [32, 91] } + } + } + }, + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": { + "put": { + "summary": "Add organization access to a self-hosted runner group in an enterprise", + "description": "Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/org_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove organization access to a self-hosted runner group in an enterprise", + "description": "Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise).\"\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/org_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": { + "get": { + "summary": "List self-hosted runners in a group for an enterprise", + "description": "Lists the self-hosted runners that are in a specific enterprise group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/list-self-hosted-runners-in-group-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-in-a-group-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "number" }, + "runners": { + "type": "array", + "items": { "$ref": "#/components/schemas/runner" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set self-hosted runners in a group for an enterprise", + "description": "Replaces the list of self-hosted runners that that are part of an enterprise runner group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/set-self-hosted-runners-in-group-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#set-self-hosted-runners-in-a-group-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "runners": { + "description": "List of runner IDs to add to the runner group.", + "type": "array", + "items": { + "type": "integer", + "description": "Unique identifier of the runner." + } + } + }, + "required": ["runners"] + }, + "example": { "runners": [9, 2] } + } + } + }, + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": { + "put": { + "summary": "Add a self-hosted runner to a group for an enterprise", + "description": "Adds a self-hosted runner to a runner group configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise`\nscope to use this endpoint.", + "operationId": "enterprise-admin/add-self-hosted-runner-to-group-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#add-a-self-hosted-runner-to-a-group-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/runner_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove a self-hosted runner from a group for an enterprise", + "description": "Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#remove-a-self-hosted-runner-from-a-group-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/runner_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runners": { + "get": { + "summary": "List self-hosted runners for an enterprise", + "description": "Lists all self-hosted runners configured for an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/list-self-hosted-runners-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "number" }, + "runners": { + "type": "array", + "items": { "$ref": "#/components/schemas/runner" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runners/downloads": { + "get": { + "summary": "List runner applications for an enterprise", + "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/list-runner-applications-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#list-runner-applications-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/runner-application" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-application-items" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runners/registration-token": { + "post": { + "summary": "Create a registration token for an enterprise", + "description": "Returns a token that you can pass to the `config` script. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using registration token\n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/enterpises/octo-enterprise --token TOKEN\n```", + "operationId": "enterprise-admin/create-registration-token-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#create-a-registration-token-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authentication-token" + }, + "examples": { + "default": { + "$ref": "#/components/examples/authentication-token" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runners/remove-token": { + "post": { + "summary": "Create a remove token for an enterprise", + "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```", + "operationId": "enterprise-admin/create-remove-token-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#create-a-remove-token-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authentication-token" + }, + "examples": { + "default": { + "$ref": "#/components/examples/authentication-token-2" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/actions/runners/{runner_id}": { + "get": { + "summary": "Get a self-hosted runner for an enterprise", + "description": "Gets a specific self-hosted runner configured in an enterprise.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/get-self-hosted-runner-for-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/runner" }, + "examples": { + "default": { "$ref": "#/components/examples/runner" } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a self-hosted runner from an enterprise", + "description": "Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.", + "operationId": "enterprise-admin/delete-self-hosted-runner-from-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#delete-self-hosted-runner-from-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/runner_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": false, + "githubCloudOnly": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "actions" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/settings/billing/actions": { + "get": { + "summary": "Get GitHub Actions billing for an enterprise", + "description": "Gets the summary of the free and paid GitHub Actions minutes used.\n\nPaid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see \"[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)\".\n\nThe authenticated user must be an enterprise admin.", + "operationId": "billing/get-github-actions-billing-ghe", + "tags": ["billing"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/actions-billing-usage" + }, + "examples": { + "default": { + "$ref": "#/components/examples/actions-billing-usage" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "billing" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/settings/billing/packages": { + "get": { + "summary": "Get GitHub Packages billing for an enterprise", + "description": "Gets the free and paid storage used for GitHub Packages in gigabytes.\n\nPaid minutes only apply to packages stored for private repositories. For more information, see \"[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages).\"\n\nThe authenticated user must be an enterprise admin.", + "operationId": "billing/get-github-packages-billing-ghe", + "tags": ["billing"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/packages-billing-usage" + }, + "examples": { + "default": { + "$ref": "#/components/examples/packages-billing-usage" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "billing" + }, + "x-octokit": {} + } + }, + "/enterprises/{enterprise}/settings/billing/shared-storage": { + "get": { + "summary": "Get shared storage billing for an enterprise", + "description": "Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.\n\nPaid minutes only apply to packages stored for private repositories. For more information, see \"[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages).\"\n\nThe authenticated user must be an enterprise admin.", + "operationId": "billing/get-shared-storage-billing-ghe", + "tags": ["billing"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-enterprise" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/combined-billing-usage" + }, + "examples": { + "default": { + "$ref": "#/components/examples/combined-billing-usage" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": false, + "previews": [], + "category": "enterprise-admin", + "subcategory": "billing" + }, + "x-octokit": {} + } + }, + "/events": { + "get": { + "summary": "List public events", + "description": "We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago.", + "tags": ["activity"], + "operationId": "activity/list-public-events", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-public-events" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/event" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "503": { "$ref": "#/components/responses/service_unavailable" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/feeds": { + "get": { + "summary": "Get feeds", + "description": "GitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user:\n\n* **Timeline**: The GitHub global public timeline\n* **User**: The public timeline for any user, using [URI template](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia)\n* **Current user public**: The public timeline for the authenticated user\n* **Current user**: The private timeline for the authenticated user\n* **Current user actor**: The private timeline for activity created by the authenticated user\n* **Current user organizations**: The private timeline for the organizations the authenticated user is a member of.\n* **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub.\n\n**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.", + "tags": ["activity"], + "operationId": "activity/get-feeds", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#get-feeds" + }, + "parameters": [], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/feed" }, + "examples": { + "default": { "$ref": "#/components/examples/feed" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "feeds" + }, + "x-octokit": {} + } + }, + "/gists": { + "get": { + "summary": "List gists for the authenticated user", + "description": "Lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists:", + "tags": ["gists"], + "operationId": "gists/list", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#list-gists-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/base-gist" } + }, + "examples": { + "default": { "$ref": "#/components/examples/base-gist-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a gist", + "description": "Allows you to add a new gist with one or more files.\n\n**Note:** Don't name your files \"gistfile\" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.", + "operationId": "gists/create", + "tags": ["gists"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#create-a-gist" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "description": { + "description": "Description of the gist", + "example": "Example Ruby script", + "type": "string" + }, + "files": { + "description": "Names and content for the files that make up the gist", + "example": { + "hello.rb": { "content": "puts \"Hello, World!\"" } + }, + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "content": { + "description": "Content of the file", + "readOnly": false, + "type": "string" + } + }, + "required": ["content"] + } + }, + "public": { + "oneOf": [ + { + "description": "Flag indicating whether the gist is public", + "example": true, + "type": "boolean", + "default": false + }, + { + "type": "string", + "example": "true", + "default": "false", + "enum": ["true", "false"] + } + ] + } + }, + "required": ["files"], + "type": "object" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/gist-full" }, + "examples": { + "default": { "$ref": "#/components/examples/gist" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/gists/aa5a315d61ae9438b18d", + "schema": { "type": "string" } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/gists/public": { + "get": { + "summary": "List public gists", + "description": "List public gists sorted by most recently updated to least recently updated.\n\nNote: With [pagination](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.", + "tags": ["gists"], + "operationId": "gists/list-public", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#list-public-gists" + }, + "parameters": [ + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/base-gist" } + }, + "examples": { + "default": { "$ref": "#/components/examples/base-gist-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/gists/starred": { + "get": { + "summary": "List starred gists", + "description": "List the authenticated user's starred gists:", + "tags": ["gists"], + "operationId": "gists/list-starred", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#list-starred-gists" + }, + "parameters": [ + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/base-gist" } + }, + "examples": { + "default": { "$ref": "#/components/examples/base-gist-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/gists/{gist_id}": { + "get": { + "summary": "Get a gist", + "description": "", + "tags": ["gists"], + "operationId": "gists/get", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#get-a-gist" + }, + "parameters": [{ "$ref": "#/components/parameters/gist_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/gist-full" }, + "examples": { + "default": { "$ref": "#/components/examples/gist" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden_gist" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a gist", + "description": "Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged.", + "tags": ["gists"], + "operationId": "gists/update", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#update-a-gist" + }, + "parameters": [{ "$ref": "#/components/parameters/gist_id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "description": { + "description": "Description of the gist", + "example": "Example Ruby script", + "type": "string" + }, + "files": { + "description": "Names of files to be updated", + "example": { + "hello.rb": { + "content": "blah", + "filename": "goodbye.rb" + } + }, + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "content": { + "description": "The new content of the file", + "type": "string" + }, + "filename": { + "description": "The new filename for the file", + "type": "string", + "nullable": true + } + }, + "nullable": true + } + } + }, + "anyOf": [ + { "required": ["description"] }, + { "required": ["files"] } + ], + "type": "object", + "nullable": true + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/gist-full" }, + "examples": { + "default": { "$ref": "#/components/examples/gist-3" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a gist", + "description": "", + "tags": ["gists"], + "operationId": "gists/delete", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#delete-a-gist" + }, + "parameters": [{ "$ref": "#/components/parameters/gist_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/gists/{gist_id}/comments": { + "get": { + "summary": "List gist comments", + "description": "", + "tags": ["gists"], + "operationId": "gists/list-comments", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/gists#list-gist-comments" + }, + "parameters": [ + { "$ref": "#/components/parameters/gist_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/gist-comment" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/gist-comment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a gist comment", + "description": "", + "tags": ["gists"], + "operationId": "gists/create-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/gists#create-a-gist-comment" + }, + "parameters": [{ "$ref": "#/components/parameters/gist_id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "body": { + "description": "The comment text.", + "type": "string", + "maxLength": 65535, + "example": "Body of the attachment" + } + }, + "type": "object", + "required": ["body"] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/gist-comment" }, + "examples": { + "default": { "$ref": "#/components/examples/gist-comment" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/gists/a6db0bec360bb87e9418/comments/1", + "schema": { "type": "string" } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/gists/{gist_id}/comments/{comment_id}": { + "get": { + "summary": "Get a gist comment", + "description": "", + "tags": ["gists"], + "operationId": "gists/get-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/gists#get-a-gist-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/gist_id" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/gist-comment" }, + "examples": { + "default": { "$ref": "#/components/examples/gist-comment" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden_gist" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a gist comment", + "description": "", + "tags": ["gists"], + "operationId": "gists/update-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/gists#update-a-gist-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/gist_id" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "body": { + "description": "The comment text.", + "type": "string", + "maxLength": 65535, + "example": "Body of the attachment" + } + }, + "type": "object", + "required": ["body"] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/gist-comment" }, + "examples": { + "default": { "$ref": "#/components/examples/gist-comment" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a gist comment", + "description": "", + "tags": ["gists"], + "operationId": "gists/delete-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/gists#delete-a-gist-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/gist_id" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/gists/{gist_id}/commits": { + "get": { + "summary": "List gist commits", + "description": "", + "tags": ["gists"], + "operationId": "gists/list-commits", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#list-gist-commits" + }, + "parameters": [ + { "$ref": "#/components/parameters/gist_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/gist-commit" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/gist-commit-items" + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\"", + "schema": { "type": "string" } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/gists/{gist_id}/forks": { + "get": { + "summary": "List gist forks", + "description": "", + "tags": ["gists"], + "operationId": "gists/list-forks", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#list-gist-forks" + }, + "parameters": [ + { "$ref": "#/components/parameters/gist_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/gist-full" } + }, + "examples": { + "default": { "$ref": "#/components/examples/gist-fork-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Fork a gist", + "description": "**Note**: This was previously `/gists/:gist_id/fork`.", + "tags": ["gists"], + "operationId": "gists/fork", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#fork-a-gist" + }, + "parameters": [{ "$ref": "#/components/parameters/gist_id" }], + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/base-gist" }, + "examples": { + "default": { "$ref": "#/components/examples/base-gist" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/gists/aa5a315d61ae9438b18d", + "schema": { "type": "string" } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/gists/{gist_id}/star": { + "get": { + "summary": "Check if a gist is starred", + "description": "", + "tags": ["gists"], + "operationId": "gists/check-is-starred", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#check-if-a-gist-is-starred" + }, + "parameters": [{ "$ref": "#/components/parameters/gist_id" }], + "responses": { + "204": { "description": "Response if gist is starred" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { + "description": "Response if gist is not starred", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + }, + "put": { + "summary": "Star a gist", + "description": "Note that 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/rest/overview/resources-in-the-rest-api#http-verbs).\"", + "tags": ["gists"], + "operationId": "gists/star", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#star-a-gist" + }, + "parameters": [{ "$ref": "#/components/parameters/gist_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Unstar a gist", + "description": "", + "tags": ["gists"], + "operationId": "gists/unstar", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#unstar-a-gist" + }, + "parameters": [{ "$ref": "#/components/parameters/gist_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/gists/{gist_id}/{sha}": { + "get": { + "summary": "Get a gist revision", + "description": "", + "tags": ["gists"], + "operationId": "gists/get-revision", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#get-a-gist-revision" + }, + "parameters": [ + { "$ref": "#/components/parameters/gist_id" }, + { + "name": "sha", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/gist-full" }, + "examples": { + "default": { "$ref": "#/components/examples/gist-2" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/gitignore/templates": { + "get": { + "summary": "Get all gitignore templates", + "description": "List all templates available to pass as an option when [creating a repository](https://docs.github.com/rest/reference/repos#create-a-repository-for-the-authenticated-user).", + "operationId": "gitignore/get-all-templates", + "tags": ["gitignore"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gitignore/#get-all-gitignore-templates" + }, + "parameters": [], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "type": "array", "items": { "type": "string" } }, + "example": [ + "Actionscript", + "Android", + "AppceleratorTitanium", + "Autotools", + "Bancha", + "C", + "C++" + ] + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "gitignore", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/gitignore/templates/{name}": { + "get": { + "summary": "Get a gitignore template", + "description": "The API also allows fetching the source of a single template.\nUse the raw [media type](https://docs.github.com/rest/overview/media-types/) to get the raw contents.", + "operationId": "gitignore/get-template", + "tags": ["gitignore"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gitignore/#get-a-gitignore-template" + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/gitignore-template" }, + "examples": { + "default": { + "$ref": "#/components/examples/gitignore-template" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "gitignore", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/installation/repositories": { + "get": { + "summary": "List repositories accessible to the app installation", + "description": "List repositories that an app installation can access.\n\nYou must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/list-repos-accessible-to-installation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-app-installation" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "repositories": { + "type": "array", + "items": { "$ref": "#/components/schemas/repository" } + }, + "repository_selection": { + "type": "string", + "example": "selected" + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/repository-paginated-2" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "mercy", + "note": "The `topics` property for repositories on GitHub is currently available for developers to preview. To view the `topics` property in calls that return repository results, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.mercy-preview+json\n```" + } + ], + "category": "apps", + "subcategory": "installations" + }, + "x-octokit": {} + } + }, + "/installation/token": { + "delete": { + "summary": "Revoke an installation access token", + "description": "Revokes the installation token you're using to authenticate as an installation and access this endpoint.\n\nOnce an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the \"[Create an installation access token for an app](https://docs.github.com/rest/reference/apps#create-an-installation-access-token-for-an-app)\" endpoint.\n\nYou must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/revoke-installation-access-token", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#revoke-an-installation-access-token" + }, + "parameters": [], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "apps", + "subcategory": "installations" + }, + "x-octokit": {} + } + }, + "/issues": { + "get": { + "summary": "List issues assigned to the authenticated user", + "description": "List issues assigned to the authenticated user across all visible repositories including owned repositories, member\nrepositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are not\nnecessarily assigned to you.\n\n\n**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this\nreason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by\nthe `pull_request` key. Be aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull\nrequest id, use the \"[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)\" endpoint.", + "tags": ["issues"], + "operationId": "issues/list", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user" + }, + "parameters": [ + { + "name": "filter", + "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "default": "assigned" + } + }, + { + "name": "state", + "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["open", "closed", "all"], + "default": "open" + } + }, + { "$ref": "#/components/parameters/labels" }, + { + "name": "sort", + "description": "What to sort results by. Can be either `created`, `updated`, `comments`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["created", "updated", "comments"], + "default": "created" + } + }, + { "$ref": "#/components/parameters/direction" }, + { "$ref": "#/components/parameters/since" }, + { + "name": "collab", + "in": "query", + "required": false, + "schema": { "type": "boolean" } + }, + { + "name": "orgs", + "in": "query", + "required": false, + "schema": { "type": "boolean" } + }, + { + "name": "owned", + "in": "query", + "required": false, + "schema": { "type": "boolean" } + }, + { + "name": "pulls", + "in": "query", + "required": false, + "schema": { "type": "boolean" } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/issue" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/issue-with-repo-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "issues", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/licenses": { + "get": { + "summary": "Get all commonly used licenses", + "description": "", + "tags": ["licenses"], + "operationId": "licenses/get-all-commonly-used", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/licenses/#get-all-commonly-used-licenses" + }, + "parameters": [ + { + "name": "featured", + "in": "query", + "required": false, + "schema": { "type": "boolean" } + }, + { "$ref": "#/components/parameters/per_page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/license-simple" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/license-simple-items" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "licenses", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/licenses/{license}": { + "get": { + "summary": "Get a license", + "description": "", + "tags": ["licenses"], + "operationId": "licenses/get", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/licenses/#get-a-license" + }, + "parameters": [ + { + "name": "license", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/license" }, + "examples": { + "default": { "$ref": "#/components/examples/license" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "licenses", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/markdown": { + "post": { + "summary": "Render a Markdown document", + "description": "", + "operationId": "markdown/render", + "tags": ["markdown"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/markdown/#render-a-markdown-document" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "text": { + "description": "The Markdown text to render in HTML.", + "type": "string" + }, + "mode": { + "description": "The rendering mode.", + "enum": ["markdown", "gfm"], + "default": "markdown", + "example": "markdown", + "type": "string" + }, + "context": { + "description": "The repository context to use when creating references in `gfm` mode.", + "type": "string" + } + }, + "required": ["text"], + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "headers": { + "Content-Type": { "$ref": "#/components/headers/content-type" }, + "Content-Length": { + "example": "279", + "schema": { "type": "string" } + }, + "X-CommonMarker-Version": { + "$ref": "#/components/headers/x-common-marker-version" + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "markdown", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/markdown/raw": { + "post": { + "summary": "Render a Markdown document in raw mode", + "description": "You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less.", + "operationId": "markdown/render-raw", + "tags": ["markdown"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode" + }, + "parameters": [], + "requestBody": { + "content": { + "text/plain": { "schema": { "type": "string" } }, + "text/x-markdown": { "schema": { "type": "string" } } + } + }, + "responses": { + "200": { + "description": "response", + "headers": { + "X-CommonMarker-Version": { + "$ref": "#/components/headers/x-common-marker-version" + } + }, + "content": { "text/html": { "schema": { "type": "string" } } } + }, + "304": { "$ref": "#/components/responses/not_modified" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "markdown", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/marketplace_listing/accounts/{account_id}": { + "get": { + "summary": "Get a subscription plan for an account", + "description": "Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.\n\nGitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/get-subscription-plan-for-account", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account" + }, + "parameters": [{ "$ref": "#/components/parameters/account_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/marketplace-purchase" + }, + "examples": { + "default": { + "$ref": "#/components/examples/marketplace-purchase" + } + } + } + } + }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "404": { + "description": "Response when the account has not purchased the listing", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "marketplace" + }, + "x-octokit": {} + } + }, + "/marketplace_listing/plans": { + "get": { + "summary": "List plans", + "description": "Lists all plans that are part of your GitHub Marketplace listing.\n\nGitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/list-plans", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#list-plans" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/marketplace-listing-plan" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/marketplace-listing-plan-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "marketplace" + }, + "x-octokit": {} + } + }, + "/marketplace_listing/plans/{plan_id}/accounts": { + "get": { + "summary": "List accounts for a plan", + "description": "Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.\n\nGitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/list-accounts-for-plan", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan" + }, + "parameters": [ + { "$ref": "#/components/parameters/plan_id" }, + { "$ref": "#/components/parameters/sort" }, + { + "name": "direction", + "description": "To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter.", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["asc", "desc"] } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/marketplace-purchase" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/marketplace-purchase-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "marketplace" + }, + "x-octokit": {} + } + }, + "/marketplace_listing/stubbed/accounts/{account_id}": { + "get": { + "summary": "Get a subscription plan for an account (stubbed)", + "description": "Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.\n\nGitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/get-subscription-plan-for-account-stubbed", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account-stubbed" + }, + "parameters": [{ "$ref": "#/components/parameters/account_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/marketplace-purchase" + }, + "examples": { + "default": { + "$ref": "#/components/examples/marketplace-purchase" + } + } + } + } + }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "404": { + "description": "Response when the account has not purchased the listing" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "marketplace" + }, + "x-octokit": {} + } + }, + "/marketplace_listing/stubbed/plans": { + "get": { + "summary": "List plans (stubbed)", + "description": "Lists all plans that are part of your GitHub Marketplace listing.\n\nGitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/list-plans-stubbed", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#list-plans-stubbed" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/marketplace-listing-plan" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/marketplace-listing-plan-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "401": { "$ref": "#/components/responses/requires_authentication" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "marketplace" + }, + "x-octokit": {} + } + }, + "/marketplace_listing/stubbed/plans/{plan_id}/accounts": { + "get": { + "summary": "List accounts for a plan (stubbed)", + "description": "Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.\n\nGitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/list-accounts-for-plan-stubbed", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan-stubbed" + }, + "parameters": [ + { "$ref": "#/components/parameters/plan_id" }, + { "$ref": "#/components/parameters/sort" }, + { + "name": "direction", + "description": "To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter.", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["asc", "desc"] } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/marketplace-purchase" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/marketplace-purchase-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "401": { "$ref": "#/components/responses/requires_authentication" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "marketplace" + }, + "x-octokit": {} + } + }, + "/meta": { + "get": { + "summary": "Get GitHub meta information", + "description": "This endpoint provides a list of GitHub's IP addresses. For more information, see \"[About GitHub's IP addresses](https://help.github.com/articles/about-github-s-ip-addresses/).\"", + "tags": ["meta"], + "operationId": "meta/get", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/meta/#get-github-meta-information" + }, + "parameters": [], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/api-overview" }, + "examples": { + "default": { "$ref": "#/components/examples/api-overview" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "meta", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/networks/{owner}/{repo}/events": { + "get": { + "summary": "List public events for a network of repositories", + "description": "", + "tags": ["activity"], + "operationId": "activity/list-public-events-for-repo-network", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-public-events-for-a-network-of-repositories" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/event" } + } + } + } + }, + "301": { "$ref": "#/components/responses/moved_permanently" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/notifications": { + "get": { + "summary": "List notifications for the authenticated user", + "description": "List all notifications for the current user, sorted by most recently updated.", + "tags": ["activity"], + "operationId": "activity/list-notifications-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/all" }, + { "$ref": "#/components/parameters/participating" }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/before" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/thread" } + }, + "examples": { + "default": { "$ref": "#/components/examples/thread-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "notifications" + }, + "x-octokit": {} + }, + "put": { + "summary": "Mark notifications as read", + "description": "Marks all notifications as \"read\" removes it from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as \"read.\" To check whether any \"unread\" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.", + "tags": ["activity"], + "operationId": "activity/mark-notifications-as-read", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#mark-notifications-as-read" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "last_read_at": { + "description": "Describes the last point that notifications were checked.", + "type": "string", + "format": "date-time" + }, + "read": { + "description": "Whether the notification has been read.", + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "202": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { "message": { "type": "string" } } + } + } + } + }, + "205": { "description": "response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "notifications" + }, + "x-octokit": {} + } + }, + "/notifications/threads/{thread_id}": { + "get": { + "summary": "Get a thread", + "description": "", + "tags": ["activity"], + "operationId": "activity/get-thread", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#get-a-thread" + }, + "parameters": [{ "$ref": "#/components/parameters/thread_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/thread" }, + "examples": { + "default": { "$ref": "#/components/examples/thread" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "notifications" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Mark a thread as read", + "description": "", + "tags": ["activity"], + "operationId": "activity/mark-thread-as-read", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#mark-a-thread-as-read" + }, + "parameters": [{ "$ref": "#/components/parameters/thread_id" }], + "responses": { + "205": { "description": "response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "notifications" + }, + "x-octokit": {} + } + }, + "/notifications/threads/{thread_id}/subscription": { + "get": { + "summary": "Get a thread subscription for the authenticated user", + "description": "This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://docs.github.com/rest/reference/activity#get-a-repository-subscription).\n\nNote that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread.", + "tags": ["activity"], + "operationId": "activity/get-thread-subscription-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#get-a-thread-subscription-for-the-authenticated-user" + }, + "parameters": [{ "$ref": "#/components/parameters/thread_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/thread-subscription" + }, + "examples": { + "default": { + "$ref": "#/components/examples/thread-subscription" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "notifications" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set a thread subscription", + "description": "If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an **@mention**.\n\nYou can also use this endpoint to subscribe to threads that you are currently not receiving notifications for or to subscribed to threads that you have previously ignored.\n\nUnsubscribing from a conversation in a repository that you are not watching is functionally equivalent to the [Delete a thread subscription](https://docs.github.com/rest/reference/activity#delete-a-thread-subscription) endpoint.", + "tags": ["activity"], + "operationId": "activity/set-thread-subscription", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#set-a-thread-subscription" + }, + "parameters": [{ "$ref": "#/components/parameters/thread_id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "ignored": { + "description": "Whether to block all notifications from a thread.", + "default": false, + "type": "boolean" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/thread-subscription" + }, + "examples": { + "default": { + "$ref": "#/components/examples/thread-subscription" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "notifications" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a thread subscription", + "description": "Mutes all future notifications for a conversation until you comment on the thread or get an **@mention**. If you are watching the repository of the thread, you will still receive notifications. To ignore future notifications for a repository you are watching, use the [Set a thread subscription](https://docs.github.com/rest/reference/activity#set-a-thread-subscription) endpoint and set `ignore` to `true`.", + "tags": ["activity"], + "operationId": "activity/delete-thread-subscription", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#delete-a-thread-subscription" + }, + "parameters": [{ "$ref": "#/components/parameters/thread_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "notifications" + }, + "x-octokit": {} + } + }, + "/octocat": { + "get": { + "summary": "Get Octocat", + "description": "Get the octocat as ASCII art", + "tags": ["meta"], + "operationId": "meta/get-octocat", + "parameters": [ + { + "name": "s", + "in": "query", + "description": "The words to show in Octocat's speech bubble", + "schema": { "type": "string" }, + "required": false + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/octocat-stream": { "schema": { "type": "string" } } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "meta" + }, + "x-octokit": {} + } + }, + "/organizations": { + "get": { + "summary": "List organizations", + "description": "Lists all organizations, in the order that they were created on GitHub.\n\n**Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of organizations.", + "tags": ["orgs"], + "operationId": "orgs/list", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/orgs/#list-organizations" + }, + "parameters": [ + { "$ref": "#/components/parameters/since-org" }, + { "$ref": "#/components/parameters/per_page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/organization-simple" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-simple-items" + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\"", + "schema": { "type": "string" } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}": { + "get": { + "summary": "Get an organization", + "description": "To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/).\n\nGitHub Apps with the `Organization plan` permission can use this endpoint to retrieve information about an organization's GitHub plan. See \"[Authenticating with GitHub Apps](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/)\" for details. For an example response, see 'Response with GitHub plan information' below.\"", + "tags": ["orgs"], + "operationId": "orgs/get", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/orgs/#get-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/organization-full" }, + "examples": { + "default-response": { + "$ref": "#/components/examples/organization-full-default-response" + }, + "response-with-git-hub-plan-information": { + "$ref": "#/components/examples/organization-full-response-with-git-hub-plan-information" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "surtur", + "note": "New repository creation permissions are available to preview. You can now use `members_can_create_public_repositories`, `members_can_create_private_repositories`, and `members_can_create_internal_repositories`. 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+. These parameters provide more granular permissions to configure the type of repositories organization members can create.\n\nTo access these new parameters during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.surtur-preview+json\n```" + } + ], + "category": "orgs", + "subcategory": null + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an organization", + "description": "**Parameter Deprecation Notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes).\n\nEnables an authenticated organization owner with the `admin:org` scope to update the organization's profile and member privileges.", + "tags": ["orgs"], + "operationId": "orgs/update", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/orgs/#update-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "billing_email": { + "type": "string", + "description": "Billing email address. This address is not publicized." + }, + "company": { + "type": "string", + "description": "The company name." + }, + "email": { + "type": "string", + "description": "The publicly visible email address." + }, + "twitter_username": { + "type": "string", + "description": "The Twitter username of the company." + }, + "location": { + "type": "string", + "description": "The location." + }, + "name": { + "type": "string", + "description": "The shorthand name of the company." + }, + "description": { + "type": "string", + "description": "The description of the company." + }, + "has_organization_projects": { + "type": "boolean", + "description": "Toggles whether an organization can use organization projects." + }, + "has_repository_projects": { + "type": "boolean", + "description": "Toggles whether repositories that belong to the organization can use repository projects." + }, + "default_repository_permission": { + "type": "string", + "description": "Default permission level members have for organization repositories: \n\\* `read` - can pull, but not push to or administer this repository. \n\\* `write` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push, and administer this repository. \n\\* `none` - no permissions granted by default.", + "enum": ["read", "write", "admin", "none"], + "default": "read" + }, + "members_can_create_repositories": { + "type": "boolean", + "description": "Toggles the ability of non-admin organization members to create repositories. Can be one of: \n\\* `true` - all organization members can create repositories. \n\\* `false` - only organization owners can create repositories. \nDefault: `true` \n**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.", + "default": true + }, + "members_can_create_internal_repositories": { + "type": "boolean", + "description": "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: \n\\* `true` - all organization members can create internal repositories. \n\\* `false` - only organization owners can create internal repositories. \nDefault: `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": { + "type": "boolean", + "description": "Toggles whether organization members can create private repositories, which are visible to organization members with permission. Can be one of: \n\\* `true` - all organization members can create private repositories. \n\\* `false` - only organization owners can create private repositories. \nDefault: `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": { + "type": "boolean", + "description": "Toggles whether organization members can create public repositories, which are visible to anyone. Can be one of: \n\\* `true` - all organization members can create public repositories. \n\\* `false` - only organization owners can create public repositories. \nDefault: `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": { + "type": "string", + "description": "Specifies which types of repositories non-admin organization members can create. Can be one of: \n\\* `all` - all organization members can create public and private repositories. \n\\* `private` - members can create private repositories. This option is only available to repositories that are part of an organization on GitHub Enterprise Cloud. \n\\* `none` - only admin members can create repositories. \n**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.", + "enum": ["all", "private", "none"] + }, + "members_can_create_pages": { + "type": "boolean", + "description": "Toggles whether organization members can create GitHub Pages sites. Can be one of: \n\\* `true` - all organization members can create GitHub Pages sites. \n\\* `false` - no organization members can create GitHub Pages sites. Existing published sites will not be impacted. \nDefault: `true`. " + }, + "blog": { + "type": "string", + "example": "\"http://github.blog\"" + } + } + }, + "example": { + "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" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/organization-full" }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-full" + } + } + } + } + }, + "409": { "$ref": "#/components/responses/conflict" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { "$ref": "#/components/schemas/validation-error" }, + { "$ref": "#/components/schemas/validation-error-simple" } + ] + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "surtur", + "note": "New repository creation permissions are available to preview. You can now use `members_can_create_public_repositories`, `members_can_create_private_repositories`, and `members_can_create_internal_repositories`. 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+. These parameters provide more granular permissions to configure the type of repositories organization members can create.\n\nTo access these new parameters during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.surtur-preview+json\n```" + } + ], + "category": "orgs", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/permissions": { + "get": { + "summary": "Get GitHub Actions permissions for an organization", + "description": "Gets the GitHub Actions permissions policy for repositories and allowed actions in an organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.", + "operationId": "actions/get-github-actions-permissions-organization", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/actions-organization-permissions" + }, + "examples": { + "default": { + "$ref": "#/components/examples/actions-organization-permissions" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set GitHub Actions permissions for an organization", + "description": "Sets the GitHub Actions permissions policy for repositories and allowed actions in an organization.\n\nIf the organization belongs to an enterprise that has set restrictive permissions at the enterprise level, such as `allowed_actions` to `selected` actions, then you cannot override them for the organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.", + "operationId": "actions/set-github-actions-permissions-organization", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { "204": { "description": "Empty response" } }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enabled_repositories": { + "$ref": "#/components/schemas/enabled-repositories" + }, + "allowed_actions": { + "$ref": "#/components/schemas/allowed-actions" + } + }, + "required": ["enabled_repositories"] + }, + "example": { + "enabled_repositories": "all", + "allowed_actions": "selected" + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/permissions/repositories": { + "get": { + "summary": "List selected repositories enabled for GitHub Actions in an organization", + "description": "Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).\"\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.", + "operationId": "actions/list-selected-repositories-enabled-github-actions-organization", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "number" }, + "repositories": { + "type": "array", + "items": { "$ref": "#/components/schemas/repository" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/repository-paginated" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set selected repositories enabled for GitHub Actions in an organization", + "description": "Replaces the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).\"\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.", + "operationId": "actions/set-selected-repositories-enabled-github-actions-organization", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#set-selected-repositories-enabled-for-github-actions-in-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { "204": { "description": "Empty response" } }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "selected_repository_ids": { + "description": "List of repository IDs to enable for GitHub Actions.", + "type": "array", + "items": { + "type": "integer", + "description": "Unique identifier of the repository." + } + } + }, + "required": ["selected_repository_ids"] + }, + "example": { "selected_repository_ids": [32, 42] } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/permissions/repositories/{repository_id}": { + "put": { + "summary": "Enable a selected repository for GitHub Actions in an organization", + "description": "Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).\"\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.", + "operationId": "actions/enable-selected-repository-github-actions-organization", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#enable-a-selected-repository-for-github-actions-in-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/repository_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Disable a selected repository for GitHub Actions in an organization", + "description": "Removes a repository from the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).\"\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.", + "operationId": "actions/disable-selected-repository-github-actions-organization", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#disable-a-selected-repository-for-github-actions-in-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/repository_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/permissions/selected-actions": { + "get": { + "summary": "Get allowed actions for an organization", + "description": "Gets the selected actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).\"\"\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.", + "operationId": "actions/get-allowed-actions-organization", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-allowed-actions-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/selected-actions" }, + "examples": { + "default": { + "$ref": "#/components/examples/selected-actions" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set allowed actions for an organization", + "description": "Sets the actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization).\"\n\nIf the organization belongs to an enterprise that has `selected` actions set at the enterprise level, then you cannot override any of the enterprise's allowed actions settings.\n\nTo use the `patterns_allowed` setting for private repositories, the organization must belong to an enterprise. If the organization does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories in the organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API.", + "operationId": "actions/set-allowed-actions-organization", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#set-allowed-actions-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { "204": { "description": "Empty response" } }, + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/selected-actions" }, + "examples": { + "selected_actions": { + "$ref": "#/components/examples/selected-actions" + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runner-groups": { + "get": { + "summary": "List self-hosted runner groups for an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\nLists all self-hosted runner groups configured in an organization and inherited from an enterprise.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/list-self-hosted-runner-groups-for-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "number" }, + "runner_groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/runner-groups-org" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-groups-org" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a self-hosted runner group for an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud and GitHub Enterprise Server. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\nCreates a new self-hosted runner group for an organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/create-self-hosted-runner-group-for-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#create-a-self-hosted-runner-group-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "description": "Name of the runner group.", + "type": "string" + }, + "visibility": { + "description": "Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. Can be one of: `all`, `selected`, or `private`.", + "type": "string", + "enum": ["selected", "all", "private"], + "default": "all" + }, + "selected_repository_ids": { + "description": "List of repository IDs that can access the runner group.", + "type": "array", + "items": { + "type": "integer", + "description": "Unique identifier of the repository." + } + }, + "runners": { + "description": "List of runner IDs to add to the runner group.", + "type": "array", + "items": { + "type": "integer", + "description": "Unique identifier of the runner." + } + } + }, + "required": ["name"] + }, + "example": { + "name": "Expensive hardware runners", + "visibility": "selected", + "selected_repository_ids": [32, 91], + "runners": [9, 2] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/runner-groups-org" }, + "examples": { + "default": { "$ref": "#/components/examples/runner-group" } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runner-groups/{runner_group_id}": { + "get": { + "summary": "Get a self-hosted runner group for an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\nGets a specific self-hosted runner group for an organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/get-self-hosted-runner-group-for-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-group-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/runner-groups-org" }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-group-item" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a self-hosted runner group for an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\nUpdates the `name` and `visibility` of a self-hosted runner group in an organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/update-self-hosted-runner-group-for-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "description": "Name of the runner group.", + "type": "string" + }, + "visibility": { + "description": "Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. Can be one of: `all`, `selected`, or `private`.", + "type": "string", + "enum": ["selected", "all", "private"] + } + } + }, + "example": { + "name": "Expensive hardware runners", + "visibility": "selected" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/runner-groups-org" }, + "examples": { + "default": { "$ref": "#/components/examples/runner-group" } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a self-hosted runner group from an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\nDeletes a self-hosted runner group for an organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/delete-self-hosted-runner-group-from-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": { + "get": { + "summary": "List repository access to a self-hosted runner group in an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud and GitHub Enterprise Server. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\nLists the repositories with access to a self-hosted runner group configured in an organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/list-repo-access-to-self-hosted-runner-group-in-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-repository-access-to-a-self-hosted-runner-group-in-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "number" }, + "repositories": { + "type": "array", + "items": { "$ref": "#/components/schemas/repository" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/repository-paginated" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set repository access for a self-hosted runner group in an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\nReplaces the list of repositories that have access to a self-hosted runner group configured in an organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/set-repo-access-to-self-hosted-runner-group-in-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#set-repository-access-to-a-self-hosted-runner-group-in-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "selected_repository_ids": { + "description": "List of repository IDs that can access the runner group.", + "type": "array", + "items": { + "type": "integer", + "description": "Unique identifier of the repository." + } + } + }, + "required": ["selected_repository_ids"] + }, + "example": { "selected_repository_ids": [32, 91] } + } + } + }, + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": { + "put": { + "summary": "Add repository access to a self-hosted runner group in an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\n\nAdds a repository to the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization).\"\n\nYou must authenticate using an access token with the `admin:org`\nscope to use this endpoint.", + "operationId": "actions/add-repo-access-to-self-hosted-runner-group-in-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#add-repository-acess-to-a-self-hosted-runner-group-in-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/repository_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove repository access to a self-hosted runner group in an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\n\nRemoves a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see \"[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization).\"\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/remove-repo-access-to-self-hosted-runner-group-in-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/repository_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners": { + "get": { + "summary": "List self-hosted runners in a group for an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\nLists self-hosted runners that are in a specific organization group.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/list-self-hosted-runners-in-group-for-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "number" }, + "runners": { + "type": "array", + "items": { "$ref": "#/components/schemas/runner" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set self-hosted runners in a group for an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\nReplaces the list of self-hosted runners that are part of an organization runner group.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/set-self-hosted-runners-in-group-for-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "runners": { + "description": "List of runner IDs to add to the runner group.", + "type": "array", + "items": { + "type": "integer", + "description": "Unique identifier of the runner." + } + } + }, + "required": ["runners"] + }, + "example": { "runners": [9, 2] } + } + } + }, + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": { + "put": { + "summary": "Add a self-hosted runner to a group for an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\n\nAdds a self-hosted runner to a runner group configured in an organization.\n\nYou must authenticate using an access token with the `admin:org`\nscope to use this endpoint.", + "operationId": "actions/add-self-hosted-runner-to-group-for-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/runner_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove a self-hosted runner from a group for an organization", + "description": "The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products).\"\n\n\nRemoves a self-hosted runner from a group configured in an organization. The runner is then returned to the default group.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "operationId": "actions/remove-self-hosted-runner-from-group-for-org", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_group_id" }, + { "$ref": "#/components/parameters/runner_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runner-groups" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runners": { + "get": { + "summary": "List self-hosted runners for an organization", + "description": "Lists all self-hosted runners configured in an organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-self-hosted-runners-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "runners": { + "type": "array", + "items": { "$ref": "#/components/schemas/runner" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runners/downloads": { + "get": { + "summary": "List runner applications for an organization", + "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-runner-applications-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/runner-application" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-application-items" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runners/registration-token": { + "post": { + "summary": "Create a registration token for an organization", + "description": "Returns a token that you can pass to the `config` script. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.\n\n#### Example using registration token\n\nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/octo-org --token TOKEN\n```", + "tags": ["actions"], + "operationId": "actions/create-registration-token-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authentication-token" + }, + "examples": { + "default": { + "$ref": "#/components/examples/authentication-token" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runners/remove-token": { + "post": { + "summary": "Create a remove token for an organization", + "description": "Returns a token that you can pass to the `config` script to remove a self-hosted runner from an organization. The token expires after one hour.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.\n\n#### Example using remove token\n\nTo remove your self-hosted runner from an organization, replace `TOKEN` with the remove token provided by this\nendpoint.\n\n```\n./config.sh remove --token TOKEN\n```", + "tags": ["actions"], + "operationId": "actions/create-remove-token-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#create-a-remove-token-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authentication-token" + }, + "examples": { + "default": { + "$ref": "#/components/examples/authentication-token-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/runners/{runner_id}": { + "get": { + "summary": "Get a self-hosted runner for an organization", + "description": "Gets a specific self-hosted runner configured in an organization.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-self-hosted-runner-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/runner" }, + "examples": { + "default": { "$ref": "#/components/examples/runner" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a self-hosted runner from an organization", + "description": "Forces the removal of a self-hosted runner from an organization. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `admin:org` scope to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/delete-self-hosted-runner-from-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/runner_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/secrets": { + "get": { + "summary": "List organization secrets", + "description": "Lists all secrets available in an organization without revealing their encrypted values. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-org-secrets", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-organization-secrets" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "secrets": { + "type": "array", + "items": { + "$ref": "#/components/schemas/organization-actions-secret" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-actions-secret-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/secrets/public-key": { + "get": { + "summary": "Get an organization public key", + "description": "Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-org-public-key", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-an-organization-public-key" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/actions-public-key" }, + "examples": { + "default": { + "$ref": "#/components/examples/actions-public-key" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/secrets/{secret_name}": { + "get": { + "summary": "Get an organization secret", + "description": "Gets a single organization secret without revealing its encrypted value. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-org-secret", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-an-organization-secret" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/secret_name" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/organization-actions-secret" + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-actions-secret" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + }, + "put": { + "summary": "Create or update an organization secret", + "description": "Creates or updates an organization secret with an encrypted value. Encrypt your secret using\n[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate using an access\ntoken with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to\nuse this endpoint.\n\n#### Example encrypting a secret using Node.js\n\nEncrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library.\n\n```\nconst sodium = require('tweetsodium');\n\nconst key = \"base64-encoded-public-key\";\nconst value = \"plain-text-secret\";\n\n// Convert the message and key to Uint8Array's (Buffer implements that interface)\nconst messageBytes = Buffer.from(value);\nconst keyBytes = Buffer.from(key, 'base64');\n\n// Encrypt using LibSodium.\nconst encryptedBytes = sodium.seal(messageBytes, keyBytes);\n\n// Base64 the encrypted secret\nconst encrypted = Buffer.from(encryptedBytes).toString('base64');\n\nconsole.log(encrypted);\n```\n\n\n#### Example encrypting a secret using Python\n\nEncrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/stable/public/#nacl-public-sealedbox) with Python 3.\n\n```\nfrom base64 import b64encode\nfrom nacl import encoding, public\n\ndef encrypt(public_key: str, secret_value: str) -> str:\n \"\"\"Encrypt a Unicode string using the public key.\"\"\"\n public_key = public.PublicKey(public_key.encode(\"utf-8\"), encoding.Base64Encoder())\n sealed_box = public.SealedBox(public_key)\n encrypted = sealed_box.encrypt(secret_value.encode(\"utf-8\"))\n return b64encode(encrypted).decode(\"utf-8\")\n```\n\n#### Example encrypting a secret using C#\n\nEncrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package.\n\n```\nvar secretValue = System.Text.Encoding.UTF8.GetBytes(\"mySecret\");\nvar publicKey = Convert.FromBase64String(\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU=\");\n\nvar sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey);\n\nConsole.WriteLine(Convert.ToBase64String(sealedPublicKeyBox));\n```\n\n#### Example encrypting a secret using Ruby\n\nEncrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem.\n\n```ruby\nrequire \"rbnacl\"\nrequire \"base64\"\n\nkey = Base64.decode64(\"+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=\")\npublic_key = RbNaCl::PublicKey.new(key)\n\nbox = RbNaCl::Boxes::Sealed.from_public_key(public_key)\nencrypted_secret = box.encrypt(\"my_secret\")\n\n# Print the base64 encoded secret\nputs Base64.strict_encode64(encrypted_secret)\n```", + "tags": ["actions"], + "operationId": "actions/create-or-update-org-secret", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/secret_name" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "encrypted_value": { + "type": "string", + "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/actions#get-an-organization-public-key) endpoint." + }, + "key_id": { + "type": "string", + "description": "ID of the key you used to encrypt the secret." + }, + "visibility": { + "type": "string", + "description": "Configures the access that repositories have to the organization secret. Can be one of: \n\\- `all` - All repositories in an organization can access the secret. \n\\- `private` - Private repositories in an organization can access the secret. \n\\- `selected` - Only specific repositories can access the secret.", + "enum": ["all", "private", "selected"] + }, + "selected_repository_ids": { + "type": "array", + "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.", + "items": { "type": "string" } + } + } + }, + "example": { + "encrypted_value": "****************************************************************************************", + "key_id": "012345678912345678", + "visibility": "selected", + "selected_repository_ids": ["1296269", "1296280"] + } + } + } + }, + "responses": { + "201": { "description": "Response when creating a secret" }, + "204": { "description": "Response when updating a secret" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete an organization secret", + "description": "Deletes a secret in an organization using the secret name. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/delete-org-secret", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#delete-an-organization-secret" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/secret_name" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/secrets/{secret_name}/repositories": { + "get": { + "summary": "List selected repositories for an organization secret", + "description": "Lists all repositories that have been selected when the `visibility` for repository access to a secret is set to `selected`. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-selected-repos-for-org-secret", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/secret_name" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "repositories": { + "type": "array", + "items": { + "$ref": "#/components/schemas/minimal-repository" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/public-repository-paginated" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set selected repositories for an organization secret", + "description": "Replaces all repositories for an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/set-selected-repos-for-org-secret", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/secret_name" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "selected_repository_ids": { + "type": "array", + "description": "An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints.", + "items": { "type": "integer" } + } + } + }, + "example": { "selected_repository_ids": [64780797] } + } + } + }, + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": { + "put": { + "summary": "Add selected repository to an organization secret", + "description": "Adds a repository to an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/add-selected-repo-to-org-secret", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#add-selected-repository-to-an-organization-secret" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/secret_name" }, + { + "name": "repository_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + } + ], + "responses": { + "204": { + "description": "Response when repository was added to the selected list" + }, + "409": { + "description": "Response when visibility type is not set to selected" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove selected repository from an organization secret", + "description": "Removes a repository from an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/remove-selected-repo-from-org-secret", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/secret_name" }, + { + "name": "repository_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + } + ], + "responses": { + "204": { + "description": "Response when repository was removed from the selected list" + }, + "409": { + "description": "Response when visibility type not set to selected" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/blocks": { + "get": { + "summary": "List users blocked by an organization", + "description": "List the users blocked by an organization.", + "tags": ["orgs"], + "operationId": "orgs/list-blocked-users", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#list-users-blocked-by-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + } + }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "blocking" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/blocks/{username}": { + "get": { + "summary": "Check if a user is blocked by an organization", + "description": "", + "tags": ["orgs"], + "operationId": "orgs/check-blocked-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#check-if-a-user-is-blocked-by-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "If the user is blocked:" }, + "404": { + "description": "If the user is not blocked:", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "blocking" + }, + "x-octokit": {} + }, + "put": { + "summary": "Block a user from an organization", + "description": "", + "tags": ["orgs"], + "operationId": "orgs/block-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#block-a-user-from-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Empty response" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "blocking" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Unblock a user from an organization", + "description": "", + "tags": ["orgs"], + "operationId": "orgs/unblock-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#unblock-a-user-from-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "blocking" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/credential-authorizations": { + "get": { + "summary": "List SAML SSO authorizations for an organization", + "description": "Listing and deleting credential authorizations is available to organizations with GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products).\n\nAn authenticated organization owner with the `read:org` scope can list all credential authorizations for an organization that uses SAML single sign-on (SSO). The credentials are either personal access tokens or SSH keys that organization members have authorized for the organization. For more information, see [About authentication with SAML single sign-on](https://help.github.com/en/articles/about-authentication-with-saml-single-sign-on).", + "tags": ["orgs"], + "operationId": "orgs/list-saml-sso-authorizations", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/credential-authorization" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/credential-authorization-items" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/credential-authorizations/{credential_id}": { + "delete": { + "summary": "Remove a SAML SSO authorization for an organization", + "description": "Listing and deleting credential authorizations is available to organizations with GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products).\n\nAn authenticated organization owner with the `admin:org` scope can remove a credential authorization for an organization that uses SAML SSO. Once you remove someone's credential authorization, they will need to create a new personal access token or SSH key and authorize it for the organization they want to access.", + "tags": ["orgs"], + "operationId": "orgs/remove-saml-sso-authorization", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { + "name": "credential_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/events": { + "get": { + "summary": "List public organization events", + "description": "", + "tags": ["activity"], + "operationId": "activity/list-public-org-events", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-public-organization-events" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/event" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/hooks": { + "get": { + "summary": "List organization webhooks", + "description": "", + "tags": ["orgs"], + "operationId": "orgs/list-webhooks", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#list-organization-webhooks" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/org-hook" } + }, + "examples": { + "default": { "$ref": "#/components/examples/org-hook-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "webhooks" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create an organization webhook", + "description": "Here's how you can create a hook that posts payloads in JSON format:", + "tags": ["orgs"], + "operationId": "orgs/create-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#create-an-organization-webhook" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Must be passed as \"web\"." + }, + "config": { + "type": "object", + "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/rest/reference/orgs#create-hook-config-params).", + "properties": { + "url": { + "$ref": "#/components/schemas/webhook-config-url" + }, + "content_type": { + "$ref": "#/components/schemas/webhook-config-content-type" + }, + "secret": { + "$ref": "#/components/schemas/webhook-config-secret" + }, + "insecure_ssl": { + "$ref": "#/components/schemas/webhook-config-insecure-ssl" + }, + "username": { + "type": "string", + "example": "\"kdaigle\"" + }, + "password": { + "type": "string", + "example": "\"password\"" + } + }, + "required": ["url"] + }, + "events": { + "type": "array", + "description": "Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", + "default": ["push"], + "items": { "type": "string" } + }, + "active": { + "type": "boolean", + "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + "default": true + } + }, + "required": ["name", "config"] + }, + "example": { + "name": "web", + "active": true, + "events": ["push", "pull_request"], + "config": { + "url": "http://example.com/webhook", + "content_type": "json" + } + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/org-hook" }, + "examples": { + "default": { "$ref": "#/components/examples/org-hook" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/orgs/octocat/hooks/1", + "schema": { "type": "string" } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "webhooks" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/hooks/{hook_id}": { + "get": { + "summary": "Get an organization webhook", + "description": "Returns a webhook configured in an organization. To get only the webhook `config` properties, see \"[Get a webhook configuration for an organization](/rest/reference/orgs#get-a-webhook-configuration-for-an-organization).\"", + "tags": ["orgs"], + "operationId": "orgs/get-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#get-an-organization-webhook" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/org-hook" }, + "examples": { + "default": { "$ref": "#/components/examples/org-hook" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "webhooks" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an organization webhook", + "description": "Updates a webhook configured in an organization. When you update a webhook, the `secret` will be overwritten. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. If you are only updating individual webhook `config` properties, use \"[Update a webhook configuration for an organization](/rest/reference/orgs#update-a-webhook-configuration-for-an-organization).\"", + "tags": ["orgs"], + "operationId": "orgs/update-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#update-an-organization-webhook" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "config": { + "type": "object", + "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/rest/reference/orgs#update-hook-config-params).", + "properties": { + "url": { + "$ref": "#/components/schemas/webhook-config-url" + }, + "content_type": { + "$ref": "#/components/schemas/webhook-config-content-type" + }, + "secret": { + "$ref": "#/components/schemas/webhook-config-secret" + }, + "insecure_ssl": { + "$ref": "#/components/schemas/webhook-config-insecure-ssl" + } + }, + "required": ["url"] + }, + "events": { + "type": "array", + "description": "Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", + "default": ["push"], + "items": { "type": "string" } + }, + "active": { + "type": "boolean", + "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + "default": true + }, + "name": { "type": "string", "example": "\"web\"" } + } + }, + "example": { "active": true, "events": ["pull_request"] } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/org-hook" }, + "examples": { + "default": { "$ref": "#/components/examples/org-hook-2" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "webhooks" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete an organization webhook", + "description": "", + "tags": ["orgs"], + "operationId": "orgs/delete-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#delete-an-organization-webhook" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "webhooks" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/hooks/{hook_id}/config": { + "get": { + "summary": "Get a webhook configuration for an organization", + "description": "Returns the webhook configuration for an organization. To get more information about the webhook, including the `active` state and `events`, use \"[Get an organization webhook ](/rest/reference/orgs#get-an-organization-webhook).\"\n\nAccess tokens must have the `admin:org_hook` scope, and GitHub Apps must have the `organization_hooks:read` permission.", + "tags": ["orgs"], + "operationId": "orgs/get-webhook-config-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/orgs#get-a-webhook-configuration-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "responses": { + "200": { + "description": "Default response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/webhook-config" }, + "examples": { + "default": { "$ref": "#/components/examples/webhook-config" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "webhooks" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a webhook configuration for an organization", + "description": "Updates the webhook configuration for an organization. To update more information about the webhook, including the `active` state and `events`, use \"[Update an organization webhook ](/rest/reference/orgs#update-an-organization-webhook).\"\n\nAccess tokens must have the `admin:org_hook` scope, and GitHub Apps must have the `organization_hooks:write` permission.", + "tags": ["orgs"], + "operationId": "orgs/update-webhook-config-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/orgs#update-a-webhook-configuration-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "url": { "$ref": "#/components/schemas/webhook-config-url" }, + "content_type": { + "$ref": "#/components/schemas/webhook-config-content-type" + }, + "secret": { + "$ref": "#/components/schemas/webhook-config-secret" + }, + "insecure_ssl": { + "$ref": "#/components/schemas/webhook-config-insecure-ssl" + } + }, + "example": { + "content_type": "json", + "insecure_ssl": "0", + "secret": "********", + "url": "https://example.com/webhook" + } + } + } + } + }, + "responses": { + "200": { + "description": "Default response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/webhook-config" }, + "examples": { + "default": { "$ref": "#/components/examples/webhook-config" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "webhooks" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/hooks/{hook_id}/pings": { + "post": { + "summary": "Ping an organization webhook", + "description": "This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the hook.", + "tags": ["orgs"], + "operationId": "orgs/ping-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#ping-an-organization-webhook" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "webhooks" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/installation": { + "get": { + "summary": "Get an organization installation for the authenticated app", + "description": "Enables an authenticated GitHub App to find the organization's installation information.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/get-org-installation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#get-an-organization-installation-for-the-authenticated-app" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/installation" }, + "examples": { + "default": { "$ref": "#/components/examples/installation" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/installations": { + "get": { + "summary": "List app installations for an organization", + "description": "Lists all GitHub Apps in an organization. The installation count includes all GitHub Apps installed on repositories in the organization. You must be an organization owner with `admin:read` scope to use this endpoint.", + "tags": ["orgs"], + "operationId": "orgs/list-app-installations", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/orgs/#list-app-installations-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "installations": { + "type": "array", + "items": { "$ref": "#/components/schemas/installation" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/installation-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/interaction-limits": { + "get": { + "summary": "Get interaction restrictions for an organization", + "description": "Shows which type of GitHub user can interact with this organization and when the restriction expires. If there is no restrictions, you will see an empty response.", + "tags": ["interactions"], + "operationId": "interactions/get-restrictions-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/interaction-limit-response" + }, + "examples": { + "default": { + "$ref": "#/components/examples/interaction-limit-response" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "interactions", + "subcategory": "orgs" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set interaction restrictions for an organization", + "description": "Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization.", + "tags": ["interactions"], + "operationId": "interactions/set-restrictions-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/interaction-limit" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/interaction-limit-response" + }, + "examples": { + "default": { + "$ref": "#/components/examples/interaction-limit-response" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "interactions", + "subcategory": "orgs" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove interaction restrictions for an organization", + "description": "Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions.", + "tags": ["interactions"], + "operationId": "interactions/remove-restrictions-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "interactions", + "subcategory": "orgs" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/invitations": { + "get": { + "summary": "List pending organization invitations", + "description": "The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`.", + "tags": ["orgs"], + "operationId": "orgs/list-pending-invitations", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#list-pending-organization-invitations" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/organization-invitation" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-invitation-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create an organization invitation", + "description": "Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.", + "tags": ["orgs"], + "operationId": "orgs/create-invitation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#create-an-organization-invitation" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "invitee_id": { + "type": "integer", + "description": "**Required unless you provide `email`**. GitHub user ID for the person you are inviting." + }, + "email": { + "type": "string", + "description": "**Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user." + }, + "role": { + "type": "string", + "description": "Specify role for new member. Can be one of: \n\\* `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. \n\\* `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. \n\\* `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization.", + "enum": ["admin", "direct_member", "billing_manager"], + "default": "direct_member" + }, + "team_ids": { + "type": "array", + "description": "Specify IDs for the teams you want to invite new members to.", + "items": { "type": "integer" } + } + } + }, + "example": { + "email": "octocat@github.com", + "role": "direct_member", + "team_ids": [12, 26] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/organization-invitation" + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-invitation" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/invitations/{invitation_id}/teams": { + "get": { + "summary": "List organization invitation teams", + "description": "List all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner.", + "tags": ["orgs"], + "operationId": "orgs/list-invitation-teams", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#list-organization-invitation-teams" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/invitation_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + }, + "examples": { + "default": { "$ref": "#/components/examples/team-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/issues": { + "get": { + "summary": "List organization issues assigned to the authenticated user", + "description": "List issues in an organization assigned to the authenticated user.\n\n**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this\nreason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by\nthe `pull_request` key. Be aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull\nrequest id, use the \"[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)\" endpoint.", + "tags": ["issues"], + "operationId": "issues/list-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { + "name": "filter", + "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "default": "assigned" + } + }, + { + "name": "state", + "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["open", "closed", "all"], + "default": "open" + } + }, + { "$ref": "#/components/parameters/labels" }, + { + "name": "sort", + "description": "What to sort results by. Can be either `created`, `updated`, `comments`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["created", "updated", "comments"], + "default": "created" + } + }, + { "$ref": "#/components/parameters/direction" }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/issue" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/issue-with-repo-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "issues", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/members": { + "get": { + "summary": "List organization members", + "description": "List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned.", + "tags": ["orgs"], + "operationId": "orgs/list-members", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#list-organization-members" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { + "name": "filter", + "description": "Filter members returned in the list. Can be one of: \n\\* `2fa_disabled` - Members without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. Available for organization owners. \n\\* `all` - All members the authenticated user can see.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["2fa_disabled", "all"], + "default": "all" + } + }, + { + "name": "role", + "description": "Filter members returned by their role. Can be one of: \n\\* `all` - All members of the organization, regardless of role. \n\\* `admin` - Organization owners. \n\\* `member` - Non-owner organization members.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["all", "admin", "member"], + "default": "all" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "302": { + "description": "Response if requester is not an organization member", + "headers": { + "Location": { + "example": "https://api.github.com/orgs/github/public_members", + "schema": { "type": "string" } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/members/{username}": { + "get": { + "summary": "Check organization membership for a user", + "description": "Check if a user is, publicly or privately, a member of the organization.", + "tags": ["orgs"], + "operationId": "orgs/check-membership-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#check-organization-membership-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { + "description": "Response if requester is an organization member and user is a member" + }, + "302": { + "description": "Response if requester is not an organization member", + "headers": { + "Location": { + "example": "https://api.github.com/orgs/github/public_members/pezra", + "schema": { "type": "string" } + } + } + }, + "404": { + "description": "Response if requester is an organization member and user is not a member" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove an organization member", + "description": "Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories.", + "tags": ["orgs"], + "operationId": "orgs/remove-member", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#remove-an-organization-member" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Empty response" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/memberships/{username}": { + "get": { + "summary": "Get organization membership for a user", + "description": "In order to get a user's membership with an organization, the authenticated user must be an organization member.", + "tags": ["orgs"], + "operationId": "orgs/get-membership-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#get-organization-membership-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/org-membership" }, + "examples": { + "response-if-user-has-an-active-admin-membership-with-organization": { + "$ref": "#/components/examples/org-membership-response-if-user-has-an-active-admin-membership-with-organization" + }, + "response-if-user-has-an-active-membership-with-organization": { + "$ref": "#/components/examples/org-membership-response-if-user-has-an-active-membership-with-organization" + }, + "response-if-user-has-a-pending-membership-with-organization": { + "$ref": "#/components/examples/org-membership-response-if-user-has-a-pending-membership-with-organization" + } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set organization membership for a user", + "description": "Only authenticated organization owners can add a member to the organization or update the member's role.\n\n* If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/rest/reference/orgs#get-organization-membership-for-a-user) will be `pending` until they accept the invitation.\n \n* Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent.\n\n**Rate limits**\n\nTo prevent abuse, the authenticated user is limited to 50 organization invitations per 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period.", + "tags": ["orgs"], + "operationId": "orgs/set-membership-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#set-organization-membership-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "role": { + "type": "string", + "description": "The role to give the user in the organization. Can be one of: \n\\* `admin` - The user will become an owner of the organization. \n\\* `member` - The user will become a non-owner member of the organization.", + "enum": ["admin", "member"], + "default": "member" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/org-membership" }, + "examples": { + "response-if-user-was-previously-unaffiliated-with-organization": { + "$ref": "#/components/examples/org-membership-response-if-user-was-previously-unaffiliated-with-organization" + }, + "response-if-user-already-had-membership-with-organization": { + "$ref": "#/components/examples/org-membership-response-if-user-already-had-membership-with-organization" + } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove organization membership for a user", + "description": "In order to remove a user's membership with an organization, the authenticated user must be an organization owner.\n\nIf the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases.", + "tags": ["orgs"], + "operationId": "orgs/remove-membership-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#remove-organization-membership-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Empty response" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/migrations": { + "get": { + "summary": "List organization migrations", + "description": "Lists the most recent migrations.", + "tags": ["migrations"], + "operationId": "migrations/list-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#list-organization-migrations" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/migration" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/migration-with-short-org-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "orgs" + }, + "x-octokit": {} + }, + "post": { + "summary": "Start an organization migration", + "description": "Initiates the generation of a migration archive.", + "tags": ["migrations"], + "operationId": "migrations/start-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#start-an-organization-migration" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "repositories": { + "type": "array", + "description": "A list of arrays indicating which repositories should be migrated.", + "items": { "type": "string" } + }, + "lock_repositories": { + "type": "boolean", + "description": "Indicates whether repositories should be locked (to prevent manipulation) while migrating data.", + "default": false + }, + "exclude_attachments": { + "type": "boolean", + "description": "Indicates whether attachments should be excluded from the migration (to reduce migration archive file size).", + "default": false + }, + "exclude": { "type": "array", "items": { "type": "string" } } + }, + "required": ["repositories"] + }, + "example": { + "repositories": ["github/Hello-World"], + "lock_repositories": true + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/migration" }, + "examples": { + "default": { + "$ref": "#/components/examples/migration-with-short-org-2" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "migrations", + "subcategory": "orgs" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/migrations/{migration_id}": { + "get": { + "summary": "Get an organization migration status", + "description": "Fetches the status of a migration.\n\nThe `state` of a migration can be one of the following values:\n\n* `pending`, which means the migration hasn't started yet.\n* `exporting`, which means the migration is in progress.\n* `exported`, which means the migration finished successfully.\n* `failed`, which means the migration failed.", + "tags": ["migrations"], + "operationId": "migrations/get-status-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#get-an-organization-migration-status" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/migration_id" } + ], + "responses": { + "200": { + "description": "* `pending`, which means the migration hasn't started yet.\n* `exporting`, which means the migration is in progress.\n* `exported`, which means the migration finished successfully.\n* `failed`, which means the migration failed.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/migration" }, + "examples": { + "default": { + "$ref": "#/components/examples/migration-with-short-org" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "orgs" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/migrations/{migration_id}/archive": { + "get": { + "summary": "Download an organization migration archive", + "description": "Fetches the URL to a migration archive.", + "tags": ["migrations"], + "operationId": "migrations/download-archive-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#download-an-organization-migration-archive" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/migration_id" } + ], + "responses": { + "302": { "description": "response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "orgs" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete an organization migration archive", + "description": "Deletes a previous migration archive. Migration archives are automatically deleted after seven days.", + "tags": ["migrations"], + "operationId": "migrations/delete-archive-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#delete-an-organization-migration-archive" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/migration_id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "orgs" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock": { + "delete": { + "summary": "Unlock an organization repository", + "description": "Unlocks a repository that was locked for migration. You should unlock each migrated repository and [delete them](https://docs.github.com/rest/reference/repos#delete-a-repository) when the migration is complete and you no longer need the source data.", + "tags": ["migrations"], + "operationId": "migrations/unlock-repo-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#unlock-an-organization-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/migration_id" }, + { "$ref": "#/components/parameters/repo_name" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "orgs" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/migrations/{migration_id}/repositories": { + "get": { + "summary": "List repositories in an organization migration", + "description": "List all the repositories for this organization migration.", + "tags": ["migrations"], + "operationId": "migrations/list-repos-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#list-repositories-in-an-organization-migration" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/migration_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/minimal-repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/minimal-repository-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "orgs" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/outside_collaborators": { + "get": { + "summary": "List outside collaborators for an organization", + "description": "List all users who are outside collaborators of an organization.", + "tags": ["orgs"], + "operationId": "orgs/list-outside-collaborators", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#list-outside-collaborators-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { + "name": "filter", + "description": "Filter the list of outside collaborators. Can be one of: \n\\* `2fa_disabled`: Outside collaborators without [two-factor authentication](https://github.com/blog/1614-two-factor-authentication) enabled. \n\\* `all`: All outside collaborators.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["2fa_disabled", "all"], + "default": "all" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "outside-collaborators" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/outside_collaborators/{username}": { + "put": { + "summary": "Convert an organization member to outside collaborator", + "description": "When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see \"[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)\".", + "tags": ["orgs"], + "operationId": "orgs/convert-member-to-outside-collaborator", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#convert-an-organization-member-to-outside-collaborator" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "202": { "description": "User is getting converted asynchronously" }, + "204": { "description": "User was converted" }, + "403": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + }, + "examples": { + "response-if-user-is-the-last-owner-of-the-organization": { + "summary": "Response if user is the last owner of the organization", + "value": { + "message": "Cannot convert the last owner to an outside collaborator", + "documentation_url": "https://docs.github.com/rest/reference/orgs#convert-member-to-outside-collaborator" + } + }, + "response-if-user-is-not-a-member-of-the-organization": { + "summary": "Response if user is not a member of the organization", + "value": { + "message": " is not a member of the organization.", + "documentation_url": "https://docs.github.com/rest/reference/orgs#convert-member-to-outside-collaborator" + } + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "outside-collaborators" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove outside collaborator from an organization", + "description": "Removing a user from this list will remove them from all the organization's repositories.", + "tags": ["orgs"], + "operationId": "orgs/remove-outside-collaborator", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#remove-outside-collaborator-from-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Empty response" }, + "422": { + "description": "Response if user is a member of the organization", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + }, + "examples": { + "response-if-user-is-a-member-of-the-organization": { + "value": { + "message": "You cannot specify an organization member to remove as an outside collaborator.", + "documentation_url": "https://docs.github.com/rest/reference/orgs#remove-outside-collaborator" + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "outside-collaborators" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/projects": { + "get": { + "summary": "List organization projects", + "description": "Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", + "tags": ["projects"], + "operationId": "projects/list-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/projects/#list-organization-projects" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { + "name": "state", + "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["open", "closed", "all"], + "default": "open" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/project" } + }, + "examples": { + "default": { "$ref": "#/components/examples/project-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create an organization project", + "description": "Creates an organization project board. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", + "tags": ["projects"], + "operationId": "projects/create-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/projects/#create-an-organization-project" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the project." + }, + "body": { + "type": "string", + "description": "The description of the project." + } + }, + "required": ["name"] + }, + "example": { + "name": "Organization Roadmap", + "body": "High-level roadmap for the upcoming year." + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project" }, + "examples": { + "default": { "$ref": "#/components/examples/project-2" } + } + } + } + }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/public_members": { + "get": { + "summary": "List public organization members", + "description": "Members of an organization can choose to have their membership publicized or not.", + "tags": ["orgs"], + "operationId": "orgs/list-public-members", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#list-public-organization-members" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/public_members/{username}": { + "get": { + "summary": "Check public organization membership for a user", + "description": "", + "tags": ["orgs"], + "operationId": "orgs/check-public-membership-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#check-public-organization-membership-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Response if user is a public member" }, + "404": { "description": "Response if user is not a public member" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set public organization membership for the authenticated user", + "description": "The user can publicize their own membership. (A user cannot publicize the membership for another user.)\n\nNote that 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/rest/overview/resources-in-the-rest-api#http-verbs).\"", + "tags": ["orgs"], + "operationId": "orgs/set-public-membership-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#set-public-organization-membership-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Empty response" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove public organization membership for the authenticated user", + "description": "", + "tags": ["orgs"], + "operationId": "orgs/remove-public-membership-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#remove-public-organization-membership-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/repos": { + "get": { + "summary": "List organization repositories", + "description": "Lists repositories for the specified organization.", + "tags": ["repos"], + "operationId": "repos/list-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#list-organization-repositories" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { + "name": "type", + "description": "Specifies the types of repositories you want returned. Can be one of `all`, `public`, `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`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "all", + "public", + "private", + "forks", + "sources", + "member", + "internal" + ] + } + }, + { + "name": "sort", + "description": "Can be one of `created`, `updated`, `pushed`, `full_name`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["created", "updated", "pushed", "full_name"], + "default": "created" + } + }, + { + "name": "direction", + "description": "Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc`", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["asc", "desc"] } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/minimal-repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/minimal-repository-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "nebula", + "note": "You can set the visibility of a repository using the new `visibility` parameter in the [Repositories API](https://docs.github.com/rest/reference/repos/), and get a repository's visibility with a new response key. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes/).\n\nTo access repository visibility during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.nebula-preview+json\n```" + }, + { + "required": false, + "name": "baptiste", + "note": "The `is_template` and `template_repository` keys are currently available for developer to preview. See [Create a repository using a template](https://docs.github.com/repos#create-a-repository-using-a-template) to learn how to create template repositories. To access these new response keys during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.baptiste-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create an organization repository", + "description": "Creates a new repository in the specified organization. The authenticated user must be a member of the organization.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository", + "tags": ["repos"], + "operationId": "repos/create-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#create-an-organization-repository" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the repository." + }, + "description": { + "type": "string", + "description": "A short description of the repository." + }, + "homepage": { + "type": "string", + "description": "A URL with more information about the repository." + }, + "private": { + "type": "boolean", + "description": "Either `true` to create a private repository or `false` to create a public one.", + "default": false + }, + "visibility": { + "type": "string", + "description": "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`. 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. \nThe `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header.", + "enum": ["public", "private", "visibility", "internal"] + }, + "has_issues": { + "type": "boolean", + "description": "Either `true` to enable issues for this repository or `false` to disable them.", + "default": true + }, + "has_projects": { + "type": "boolean", + "description": "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.", + "default": true + }, + "has_wiki": { + "type": "boolean", + "description": "Either `true` to enable the wiki for this repository or `false` to disable it.", + "default": true + }, + "is_template": { + "type": "boolean", + "description": "Either `true` to make this repo available as a template repository or `false` to prevent it.", + "default": false + }, + "team_id": { + "type": "integer", + "description": "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": { + "type": "boolean", + "description": "Pass `true` to create an initial commit with empty README.", + "default": false + }, + "gitignore_template": { + "type": "string", + "description": "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": { + "type": "string", + "description": "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": { + "type": "boolean", + "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + "default": true + }, + "allow_merge_commit": { + "type": "boolean", + "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + "default": true + }, + "allow_rebase_merge": { + "type": "boolean", + "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + "default": true + }, + "delete_branch_on_merge": { + "type": "boolean", + "description": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + "default": false + } + }, + "required": ["name"] + }, + "example": { + "name": "Hello-World", + "description": "This is your first repository", + "homepage": "https://github.com", + "private": false, + "has_issues": true, + "has_projects": true, + "has_wiki": true + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/repository" }, + "examples": { + "default": { "$ref": "#/components/examples/repository" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World", + "schema": { "type": "string" } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "nebula", + "note": "You can set the visibility of a repository using the new `visibility` parameter in the [Repositories API](https://docs.github.com/rest/reference/repos/), and get a repository's visibility with a new response key. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes/).\n\nTo access repository visibility during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.nebula-preview+json\n```" + }, + { + "required": false, + "name": "baptiste", + "note": "The `is_template` and `template_repository` keys are currently available for developer to preview. See [Create a repository using a template](https://docs.github.com/repos#create-a-repository-using-a-template) to learn how to create template repositories. To access these new response keys during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.baptiste-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/settings/billing/actions": { + "get": { + "summary": "Get GitHub Actions billing for an organization", + "description": "Gets the summary of the free and paid GitHub Actions minutes used.\n\nPaid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see \"[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)\".\n\nAccess tokens must have the `read:org` scope.", + "operationId": "billing/get-github-actions-billing-org", + "tags": ["billing"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/actions-billing-usage" + }, + "examples": { + "default": { + "$ref": "#/components/examples/actions-billing-usage" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "billing", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/settings/billing/packages": { + "get": { + "summary": "Get GitHub Packages billing for an organization", + "description": "Gets the free and paid storage usued for GitHub Packages in gigabytes.\n\nPaid minutes only apply to packages stored for private repositories. For more information, see \"[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages).\"\n\nAccess tokens must have the `read:org` scope.", + "operationId": "billing/get-github-packages-billing-org", + "tags": ["billing"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/packages-billing-usage" + }, + "examples": { + "default": { + "$ref": "#/components/examples/packages-billing-usage" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "billing", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/settings/billing/shared-storage": { + "get": { + "summary": "Get shared storage billing for an organization", + "description": "Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.\n\nPaid minutes only apply to packages stored for private repositories. For more information, see \"[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages).\"\n\nAccess tokens must have the `read:org` scope.", + "operationId": "billing/get-shared-storage-billing-org", + "tags": ["billing"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-organization" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/combined-billing-usage" + }, + "examples": { + "default": { + "$ref": "#/components/examples/combined-billing-usage" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "billing", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/team-sync/groups": { + "get": { + "summary": "List IdP groups for an organization", + "description": "Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nList IdP groups available in an organization. You can limit your page results using the `per_page` parameter. GitHub generates a url-encoded `page` token using a cursor value for where the next page begins. For more information on cursor pagination, see \"[Offset and Cursor Pagination explained](https://dev.to/jackmarchant/offset-and-cursor-pagination-explained-b89).\"\n\nThe `per_page` parameter provides pagination for a list of IdP groups the authenticated user can access in an organization. For example, if the user `octocat` wants to see two groups per page in `octo-org` via cURL, it would look like this:", + "tags": ["teams"], + "operationId": "teams/list-idp-groups-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-idp-groups-for-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/group-mapping" }, + "examples": { + "default": { "$ref": "#/components/examples/group-mapping-3" } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\"", + "schema": { "type": "string" } + } + } + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": "team-sync" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams": { + "get": { + "summary": "List teams", + "description": "Lists all teams in an organization that are visible to the authenticated user.", + "tags": ["teams"], + "operationId": "teams/list", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#list-teams" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + }, + "examples": { + "default": { "$ref": "#/components/examples/team-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a team", + "description": "To create a team, the authenticated user must be a member or owner of `{org}`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see \"[Setting team creation permissions](https://help.github.com/en/articles/setting-team-creation-permissions-in-your-organization).\"\n\nWhen you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of `maintainers`. For more information, see \"[About teams](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-teams)\".", + "tags": ["teams"], + "operationId": "teams/create", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#create-a-team" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the team." + }, + "description": { + "type": "string", + "description": "The description of the team." + }, + "maintainers": { + "type": "array", + "description": "List GitHub IDs for organization members who will become team maintainers.", + "items": { "type": "string" } + }, + "repo_names": { + "type": "array", + "description": "The full name (e.g., \"organization-name/repository-name\") of repositories to add the team to.", + "items": { "type": "string" } + }, + "privacy": { + "type": "string", + "description": "The level of privacy this team should have. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \nDefault: `secret` \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization. \nDefault for child team: `closed`", + "enum": ["secret", "closed"] + }, + "permission": { + "type": "string", + "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.", + "enum": ["pull", "push", "admin"], + "default": "pull" + }, + "parent_team_id": { + "type": "integer", + "description": "The ID of a team to set as the parent team." + } + }, + "required": ["name"] + }, + "example": { + "name": "Justice League", + "description": "A great team", + "permission": "admin", + "privacy": "closed" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-full" }, + "examples": { + "default": { "$ref": "#/components/examples/team-full" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}": { + "get": { + "summary": "Get a team by name", + "description": "Gets a team using the team's `slug`. GitHub generates the `slug` from the team `name`.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}`.", + "tags": ["teams"], + "operationId": "teams/get-by-name", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#get-a-team-by-name" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-full" }, + "examples": { + "default": { "$ref": "#/components/examples/team-full" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a team", + "description": "To edit a team, the authenticated user must either be an organization owner or a team maintainer.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}`.", + "tags": ["teams"], + "operationId": "teams/update-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#update-a-team" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the team." + }, + "description": { + "type": "string", + "description": "The description of the team." + }, + "privacy": { + "type": "string", + "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.", + "enum": ["secret", "closed"] + }, + "permission": { + "type": "string", + "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.", + "enum": ["pull", "push", "admin"], + "default": "pull" + }, + "parent_team_id": { + "type": "integer", + "description": "The ID of a team to set as the parent team." + } + }, + "required": ["name"] + }, + "example": { + "name": "new team name", + "description": "new team description", + "privacy": "closed" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-full" }, + "examples": { + "default": { "$ref": "#/components/examples/team-full" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a team", + "description": "To delete a team, the authenticated user must be an organization owner or team maintainer.\n\nIf you are an organization owner, deleting a parent team will delete all of its child teams as well.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}`.", + "tags": ["teams"], + "operationId": "teams/delete-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#delete-a-team" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/discussions": { + "get": { + "summary": "List discussions", + "description": "List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.", + "tags": ["teams"], + "operationId": "teams/list-discussions-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-discussions" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/direction" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team-discussion" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "teams", + "subcategory": "discussions" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a discussion", + "description": "Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.", + "tags": ["teams"], + "operationId": "teams/create-discussion-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#create-a-discussion" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The discussion post's title." + }, + "body": { + "type": "string", + "description": "The discussion post's body text." + }, + "private": { + "type": "boolean", + "description": "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.", + "default": false + } + }, + "required": ["title", "body"] + }, + "example": { + "title": "Our first team post", + "body": "Hi! This is an area for us to collaborate as a team." + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-discussion" }, + "examples": { + "default": { "$ref": "#/components/examples/team-discussion" } + } + } + } + } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "teams", + "subcategory": "discussions" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": { + "get": { + "summary": "Get a discussion", + "description": "Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`.", + "tags": ["teams"], + "operationId": "teams/get-discussion-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#get-a-discussion" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-discussion" }, + "examples": { + "default": { "$ref": "#/components/examples/team-discussion" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "teams", + "subcategory": "discussions" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a discussion", + "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`.", + "tags": ["teams"], + "operationId": "teams/update-discussion-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#update-a-discussion" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The discussion post's title." + }, + "body": { + "type": "string", + "description": "The discussion post's body text." + } + } + }, + "example": { "title": "Welcome to our first team post" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-discussion" }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "teams", + "subcategory": "discussions" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a discussion", + "description": "Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`.", + "tags": ["teams"], + "operationId": "teams/delete-discussion-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#delete-a-discussion" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": "discussions" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": { + "get": { + "summary": "List discussion comments", + "description": "List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`.", + "tags": ["teams"], + "operationId": "teams/list-discussion-comments-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-discussion-comments" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/direction" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/team-discussion-comment" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-comment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "teams", + "subcategory": "discussion-comments" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a discussion comment", + "description": "Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`.", + "tags": ["teams"], + "operationId": "teams/create-discussion-comment-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#create-a-discussion-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The discussion comment's body text." + } + }, + "required": ["body"] + }, + "example": { "body": "Do you like apples?" } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/team-discussion-comment" + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-comment" + } + } + } + } + } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "teams", + "subcategory": "discussion-comments" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": { + "get": { + "summary": "Get a discussion comment", + "description": "Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`.", + "tags": ["teams"], + "operationId": "teams/get-discussion-comment-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#get-a-discussion-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/team-discussion-comment" + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-comment" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "teams", + "subcategory": "discussion-comments" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a discussion comment", + "description": "Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`.", + "tags": ["teams"], + "operationId": "teams/update-discussion-comment-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#update-a-discussion-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The discussion comment's body text." + } + }, + "required": ["body"] + }, + "example": { "body": "Do you like pineapples?" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/team-discussion-comment" + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-comment-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "teams", + "subcategory": "discussion-comments" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a discussion comment", + "description": "Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`.", + "tags": ["teams"], + "operationId": "teams/delete-discussion-comment-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#delete-a-discussion-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": "discussion-comments" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": { + "get": { + "summary": "List reactions for a team discussion comment", + "description": "List the reactions to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments/). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.", + "tags": ["reactions"], + "operationId": "reactions/list-for-team-discussion-comment-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" }, + { + "name": "content", + "description": "Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion comment.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/reaction" } + }, + "examples": { + "default": { "$ref": "#/components/examples/reaction-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create reaction for a team discussion comment", + "description": "Create a reaction to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`.", + "tags": ["reactions"], + "operationId": "reactions/create-for-team-discussion-comment-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + "required": ["content"] + }, + "example": { "content": "heart" } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}": { + "delete": { + "summary": "Delete team discussion comment reaction", + "description": "**Note:** You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id`.\n\nDelete a reaction to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["reactions"], + "operationId": "reactions/delete-for-team-discussion-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#delete-team-discussion-comment-reaction" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" }, + { "$ref": "#/components/parameters/reaction-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": { + "get": { + "summary": "List reactions for a team discussion", + "description": "List the reactions to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.", + "tags": ["reactions"], + "operationId": "reactions/list-for-team-discussion-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" }, + { + "name": "content", + "description": "Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/reaction" } + }, + "examples": { + "default": { "$ref": "#/components/examples/reaction-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create reaction for a team discussion", + "description": "Create a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`.", + "tags": ["reactions"], + "operationId": "reactions/create-for-team-discussion-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + "required": ["content"] + }, + "example": { "content": "heart" } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}": { + "delete": { + "summary": "Delete team discussion reaction", + "description": "**Note:** You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id`.\n\nDelete a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["reactions"], + "operationId": "reactions/delete-for-team-discussion", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#delete-team-discussion-reaction" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/reaction-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/invitations": { + "get": { + "summary": "List pending team invitations", + "description": "The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/invitations`.", + "tags": ["teams"], + "operationId": "teams/list-pending-invitations-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-pending-team-invitations" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/organization-invitation" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-invitation-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/members": { + "get": { + "summary": "List team members", + "description": "Team members will include the members of child teams.\n\nTo list members in a team, the team must be visible to the authenticated user.", + "tags": ["teams"], + "operationId": "teams/list-members-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-team-members" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { + "name": "role", + "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` - normal members of the team. \n\\* `maintainer` - team maintainers. \n\\* `all` - all members of the team.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["member", "maintainer", "all"], + "default": "all" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/memberships/{username}": { + "get": { + "summary": "Get team membership for a user", + "description": "Team members will include the members of child teams.\n\nTo get a user's membership with a team, the team must be visible to the authenticated user.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/memberships/{username}`.\n\n**Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/rest/reference/teams#create-a-team).", + "tags": ["teams"], + "operationId": "teams/get-membership-for-user-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-membership" }, + "examples": { + "response-if-user-has-an-active-membership-with-team": { + "$ref": "#/components/examples/team-membership-response-if-user-has-an-active-membership-with-team" + }, + "response-if-user-is-a-team-maintainer": { + "$ref": "#/components/examples/team-membership-response-if-user-is-a-team-maintainer" + }, + "response-if-user-has-a-pending-membership-with-team": { + "$ref": "#/components/examples/team-membership-response-if-user-has-a-pending-membership-with-team" + } + } + } + } + }, + "404": { "description": "Response if user has no team membership" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": "members" + }, + "x-octokit": {} + }, + "put": { + "summary": "Add or update team membership for a user", + "description": "Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nAdds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team.\n\n**Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see \"[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\nAn organization owner can add someone who is not part of the team's organization to a team. When an organization owner adds someone to a team who is not an organization member, this endpoint will send an invitation to the person via email. This newly-created membership will be in the \"pending\" state until the person accepts the invitation, at which point the membership will transition to the \"active\" state and the user will be added as a member of the team.\n\nIf the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/memberships/{username}`.", + "tags": ["teams"], + "operationId": "teams/add-or-update-membership-for-user-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/username" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "role": { + "type": "string", + "description": "The role that this user should have in the team. Can be one of: \n\\* `member` - a normal member of the team. \n\\* `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.", + "enum": ["member", "maintainer"], + "default": "member" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-membership" }, + "examples": { + "response-if-users-membership-with-team-is-now-active": { + "$ref": "#/components/examples/team-membership-response-if-users-membership-with-team-is-now-active" + }, + "response-if-users-membership-with-team-is-now-pending": { + "$ref": "#/components/examples/team-membership-response-if-users-membership-with-team-is-now-pending" + } + } + } + } + }, + "403": { + "description": "Response if team synchronization is set up" + }, + "422": { + "description": "Response if you attempt to add an organization to a team", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { "type": "string" }, + "field": { "type": "string" }, + "resource": { "type": "string" } + } + } + } + } + }, + "examples": { + "response-if-you-attempt-to-add-an-organization-to-a-team": { + "value": { + "message": "Cannot add an organization as a member.", + "errors": [ + { + "code": "org", + "field": "user", + "resource": "TeamMember" + } + ] + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": "members" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove team membership for a user", + "description": "Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.\n\n**Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see \"[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/memberships/{username}`.", + "tags": ["teams"], + "operationId": "teams/remove-membership-for-user-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Empty response" }, + "403": { "description": "Response if team synchronization is set up" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/projects": { + "get": { + "summary": "List team projects", + "description": "Lists the organization projects for a team.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects`.", + "tags": ["teams"], + "operationId": "teams/list-projects-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#list-team-projects" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team-project" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-project-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/projects/{project_id}": { + "get": { + "summary": "Check team permissions for a project", + "description": "Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects/{project_id}`.", + "tags": ["teams"], + "operationId": "teams/check-permissions-for-project-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#check-team-permissions-for-a-project" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/project-id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-project" }, + "examples": { + "default": { "$ref": "#/components/examples/team-project" } + } + } + } + }, + "404": { + "description": "Response if project is not managed by this team" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + }, + "put": { + "summary": "Add or update team project permissions", + "description": "Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/projects/{project_id}`.", + "tags": ["teams"], + "operationId": "teams/add-or-update-project-permissions-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#add-or-update-team-project-permissions" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/project-id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "permission": { + "type": "string", + "description": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: 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/rest/overview/resources-in-the-rest-api#http-verbs).\"", + "enum": ["read", "write", "admin"] + } + } + } + } + } + }, + "responses": { + "204": { "description": "Empty response" }, + "403": { + "description": "Response if the project is not owned by the organization", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + }, + "examples": { + "response-if-the-project-is-not-owned-by-the-organization": { + "value": { + "message": "Must have admin rights to Repository.", + "documentation_url": "https://docs.github.com/rest/reference/teams#add-or-update-team-project-permissions" + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove a project from a team", + "description": "Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. This endpoint removes the project from the team, but does not delete the project.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/projects/{project_id}`.", + "tags": ["teams"], + "operationId": "teams/remove-project-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#remove-a-project-from-a-team" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/project-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/repos": { + "get": { + "summary": "List team repositories", + "description": "Lists a team's repositories visible to the authenticated user.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos`.", + "tags": ["teams"], + "operationId": "teams/list-repos-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#list-team-repositories" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/minimal-repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/minimal-repository-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": { + "get": { + "summary": "Check team permissions for a repository", + "description": "Checks whether a team has `admin`, `push`, `maintain`, `triage`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked.\n\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `application/vnd.github.v3.repository+json` accept header.\n\nIf a team doesn't have permission for the repository, you will receive a `404 Not Found` response status.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`.", + "tags": ["teams"], + "operationId": "teams/check-permissions-for-repo-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "Alternative response with repository permissions", + "content": { + "application/vnd.github.v3.repository+json": { + "schema": { "$ref": "#/components/schemas/team-repository" }, + "examples": { + "alternative-response-with-repository-permissions": { + "$ref": "#/components/examples/team-repository-alternative-response-with-repository-permissions" + } + } + } + } + }, + "204": { + "description": "Response if team has permission for the repository" + }, + "404": { + "description": "Response if team does not have permission for the repository" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + }, + "put": { + "summary": "Add or update team repository permissions", + "description": "To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. 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/rest/overview/resources-in-the-rest-api#http-verbs).\"\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`.\n\nFor more information about the permission levels, see \"[Repository permission levels for an organization](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)\".", + "tags": ["teams"], + "operationId": "teams/add-or-update-repo-permissions-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "permission": { + "type": "string", + "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n\\* `maintain` - team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations. \n\\* `triage` - team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + "enum": ["pull", "push", "admin", "maintain", "triage"] + } + } + } + } + } + }, + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove a repository from a team", + "description": "If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. This does not delete the repository, it just removes it from the team.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`.", + "tags": ["teams"], + "operationId": "teams/remove-repo-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#remove-a-repository-from-a-team" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings": { + "get": { + "summary": "List IdP groups for a team", + "description": "Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nList IdP groups connected to a team on GitHub.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/team-sync/group-mappings`.", + "tags": ["teams"], + "operationId": "teams/list-idp-groups-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/group-mapping" }, + "examples": { + "default": { "$ref": "#/components/examples/group-mapping-3" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": false, + "previews": [], + "category": "teams", + "subcategory": "team-sync" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Create or update IdP group connections", + "description": "Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nCreates, updates, or removes a connection between a team and an IdP group. When adding groups to a team, you must include all new and existing groups to avoid replacing existing groups with the new ones. Specifying an empty `groups` array will remove all connections for a team.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/team-sync/group-mappings`.", + "tags": ["teams"], + "operationId": "teams/create-or-update-idp-group-connections-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "groups": { + "type": "array", + "description": "The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "string", + "description": "ID of the IdP group." + }, + "group_name": { + "type": "string", + "description": "Name of the IdP group." + }, + "group_description": { + "type": "string", + "description": "Description of the IdP group." + } + }, + "required": [ + "group_id", + "group_name", + "group_description" + ] + } + } + }, + "required": ["groups"] + }, + "example": { + "groups": [ + { + "group_id": "123", + "group_name": "Octocat admins", + "group_description": "string" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/group-mapping" }, + "examples": { + "default": { "$ref": "#/components/examples/group-mapping" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": false, + "previews": [], + "category": "teams", + "subcategory": "team-sync" + }, + "x-octokit": {} + } + }, + "/orgs/{org}/teams/{team_slug}/teams": { + "get": { + "summary": "List child teams", + "description": "Lists the child teams of the team specified by `{team_slug}`.\n\n**Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/teams`.", + "tags": ["teams"], + "operationId": "teams/list-child-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#list-child-teams" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/team_slug" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "Response if child teams exist", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + }, + "examples": { + "response-if-child-teams-exist": { + "$ref": "#/components/examples/team-items-response-if-child-teams-exist" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/projects/columns/cards/{card_id}": { + "get": { + "summary": "Get a project card", + "description": "", + "tags": ["projects"], + "operationId": "projects/get-card", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#get-a-project-card" + }, + "parameters": [{ "$ref": "#/components/parameters/card_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project-card" }, + "examples": { + "default": { "$ref": "#/components/examples/project-card" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "cards" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an existing project card", + "description": "", + "tags": ["projects"], + "operationId": "projects/update-card", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#update-a-project-card" + }, + "parameters": [{ "$ref": "#/components/parameters/card_id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "note": { + "description": "The project card's note", + "example": "Update all gems", + "type": "string", + "nullable": true + }, + "archived": { + "description": "Whether or not the card is archived", + "example": false, + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project-card" }, + "examples": { + "default": { "$ref": "#/components/examples/project-card" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "cards" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a project card", + "description": "", + "tags": ["projects"], + "operationId": "projects/delete-card", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#delete-a-project-card" + }, + "parameters": [{ "$ref": "#/components/parameters/card_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" }, + "errors": { "type": "array", "items": { "type": "string" } } + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "cards" + }, + "x-octokit": {} + } + }, + "/projects/columns/cards/{card_id}/moves": { + "post": { + "summary": "Move a project card", + "description": "", + "tags": ["projects"], + "operationId": "projects/move-card", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#move-a-project-card" + }, + "parameters": [{ "$ref": "#/components/parameters/card_id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "position": { + "description": "The position of the card in a column", + "example": "bottom", + "type": "string", + "pattern": "^(?:top|bottom|after:\\d+)$" + }, + "column_id": { + "description": "The unique identifier of the column the card should be moved to", + "example": 42, + "type": "integer" + } + }, + "required": ["position"], + "type": "object" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" }, + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { "type": "string" }, + "message": { "type": "string" }, + "resource": { "type": "string" }, + "field": { "type": "string" } + } + } + } + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" }, + "503": { + "description": "Service Unavailable", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { "type": "string" }, + "message": { "type": "string" }, + "documentation_url": { "type": "string" }, + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { "type": "string" }, + "message": { "type": "string" } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "cards" + }, + "x-octokit": {} + } + }, + "/projects/columns/{column_id}": { + "get": { + "summary": "Get a project column", + "description": "", + "tags": ["projects"], + "operationId": "projects/get-column", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#get-a-project-column" + }, + "parameters": [{ "$ref": "#/components/parameters/column_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project-column" }, + "examples": { + "default": { "$ref": "#/components/examples/project-column" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "columns" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an existing project column", + "description": "", + "tags": ["projects"], + "operationId": "projects/update-column", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#update-a-project-column" + }, + "parameters": [{ "$ref": "#/components/parameters/column_id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "name": { + "description": "Name of the project column", + "example": "Remaining tasks", + "type": "string" + } + }, + "required": ["name"], + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project-column" }, + "examples": { + "default": { "$ref": "#/components/examples/project-column" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "columns" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a project column", + "description": "", + "tags": ["projects"], + "operationId": "projects/delete-column", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#delete-a-project-column" + }, + "parameters": [{ "$ref": "#/components/parameters/column_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "columns" + }, + "x-octokit": {} + } + }, + "/projects/columns/{column_id}/cards": { + "get": { + "summary": "List project cards", + "description": "", + "tags": ["projects"], + "operationId": "projects/list-cards", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#list-project-cards" + }, + "parameters": [ + { "$ref": "#/components/parameters/column_id" }, + { + "name": "archived_state", + "description": "Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["all", "archived", "not_archived"], + "default": "not_archived" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/project-card" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/project-card-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "cards" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a project card", + "description": "**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key.\n\nBe aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull request id, use the \"[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)\" endpoint.", + "tags": ["projects"], + "operationId": "projects/create-card", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#create-a-project-card" + }, + "parameters": [{ "$ref": "#/components/parameters/column_id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "type": "object", + "properties": { + "note": { + "description": "The project card's note", + "example": "Update all gems", + "type": "string", + "nullable": true + } + }, + "required": ["note"] + }, + { + "type": "object", + "properties": { + "content_id": { + "description": "The unique identifier of the content associated with the card", + "example": 42, + "type": "integer" + }, + "content_type": { + "description": "The piece of content associated with the card", + "example": "PullRequest", + "type": "string" + } + }, + "required": ["content_id", "content_type"] + } + ] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project-card" }, + "examples": { + "default": { "$ref": "#/components/examples/project-card" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { "$ref": "#/components/schemas/validation-error" }, + { "$ref": "#/components/schemas/validation-error-simple" } + ] + } + } + } + }, + "503": { + "description": "Service Unavailable", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { "type": "string" }, + "message": { "type": "string" }, + "documentation_url": { "type": "string" }, + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { "type": "string" }, + "message": { "type": "string" } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "cards" + }, + "x-octokit": {} + } + }, + "/projects/columns/{column_id}/moves": { + "post": { + "summary": "Move a project column", + "description": "", + "tags": ["projects"], + "operationId": "projects/move-column", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#move-a-project-column" + }, + "parameters": [{ "$ref": "#/components/parameters/column_id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "position": { + "description": "The position of the column in a project", + "example": "last", + "type": "string", + "pattern": "^(?:first|last|after:\\d+)$" + } + }, + "required": ["position"], + "type": "object" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {}, + "additionalProperties": false + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "columns" + }, + "x-octokit": {} + } + }, + "/projects/{project_id}": { + "get": { + "summary": "Get a project", + "description": "Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", + "tags": ["projects"], + "operationId": "projects/get", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/projects/#get-a-project" + }, + "parameters": [{ "$ref": "#/components/parameters/project-id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project" }, + "examples": { + "default": { "$ref": "#/components/examples/project-3" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": null + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a project", + "description": "Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", + "operationId": "projects/update", + "tags": ["projects"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/projects/#update-a-project" + }, + "parameters": [{ "$ref": "#/components/parameters/project-id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "name": { + "description": "Name of the project", + "example": "Week One Sprint", + "type": "string" + }, + "body": { + "description": "Body of the project", + "example": "This project represents the sprint of the first week in January", + "type": "string", + "nullable": true + }, + "state": { + "description": "State of the project; either 'open' or 'closed'", + "example": "open", + "type": "string" + }, + "organization_permission": { + "description": "The baseline permission that all organization members have on this project", + "type": "string", + "enum": ["read", "write", "admin", "none"] + }, + "private": { + "description": "Whether or not this project can be seen by everyone.", + "type": "boolean" + } + }, + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project" }, + "examples": { + "default": { "$ref": "#/components/examples/project-3" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" }, + "errors": { "type": "array", "items": { "type": "string" } } + } + } + } + } + }, + "404": { + "description": "Response if the authenticated user does not have access to the project" + }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a project", + "description": "Deletes a project board. Returns a `404 Not Found` status if projects are disabled.", + "operationId": "projects/delete", + "tags": ["projects"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/projects/#delete-a-project" + }, + "parameters": [{ "$ref": "#/components/parameters/project-id" }], + "responses": { + "204": { "description": "Delete Success" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" }, + "errors": { "type": "array", "items": { "type": "string" } } + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/projects/{project_id}/collaborators": { + "get": { + "summary": "List project collaborators", + "description": "Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators.", + "tags": ["projects"], + "operationId": "projects/list-collaborators", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#list-project-collaborators" + }, + "parameters": [ + { "$ref": "#/components/parameters/project-id" }, + { + "name": "affiliation", + "description": "Filters the collaborators by their affiliation. Can be one of: \n\\* `outside`: Outside collaborators of a project that are not a member of the project's organization. \n\\* `direct`: Collaborators with permissions to a project, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["outside", "direct", "all"], + "default": "all" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "collaborators" + }, + "x-octokit": {} + } + }, + "/projects/{project_id}/collaborators/{username}": { + "put": { + "summary": "Add project collaborator", + "description": "Adds a collaborator to an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator.", + "tags": ["projects"], + "operationId": "projects/add-collaborator", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#add-project-collaborator" + }, + "parameters": [ + { "$ref": "#/components/parameters/project-id" }, + { "$ref": "#/components/parameters/username" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "permission": { + "description": "The permission to grant the collaborator.", + "enum": ["read", "write", "admin"], + "default": "write", + "example": "write", + "type": "string" + } + } + } + } + } + }, + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "collaborators" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove user as a collaborator", + "description": "Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator.", + "tags": ["projects"], + "operationId": "projects/remove-collaborator", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#remove-project-collaborator" + }, + "parameters": [ + { "$ref": "#/components/parameters/project-id" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "collaborators" + }, + "x-octokit": {} + } + }, + "/projects/{project_id}/collaborators/{username}/permission": { + "get": { + "summary": "Get project permission for a user", + "description": "Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level.", + "tags": ["projects"], + "operationId": "projects/get-permission-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#get-project-permission-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/project-id" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/repository-collaborator-permission" + }, + "examples": { + "default": { + "$ref": "#/components/examples/repository-collaborator-permission" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "collaborators" + }, + "x-octokit": {} + } + }, + "/projects/{project_id}/columns": { + "get": { + "summary": "List project columns", + "description": "", + "tags": ["projects"], + "operationId": "projects/list-columns", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#list-project-columns" + }, + "parameters": [ + { "$ref": "#/components/parameters/project-id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/project-column" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/project-column-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "columns" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a project column", + "description": "", + "tags": ["projects"], + "operationId": "projects/create-column", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/projects#create-a-project-column" + }, + "parameters": [{ "$ref": "#/components/parameters/project-id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "name": { + "description": "Name of the project column", + "example": "Remaining tasks", + "type": "string" + } + }, + "required": ["name"], + "type": "object" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project-column" }, + "example": { + "url": "https://api.github.com/projects/columns/367", + "project_url": "https://api.github.com/projects/120", + "cards_url": "https://api.github.com/projects/columns/367/cards", + "id": 367, + "node_id": "MDEzOlByb2plY3RDb2x1bW4zNjc=", + "name": "To Do", + "created_at": "2016-09-05T14:18:44Z", + "updated_at": "2016-09-05T14:22:28Z" + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": "columns" + }, + "x-octokit": {} + } + }, + "/rate_limit": { + "get": { + "summary": "Get rate limit status for the authenticated user", + "description": "**Note:** Accessing this endpoint does not count against your REST API rate limit.\n\n**Note:** The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object.", + "tags": ["rate-limit"], + "operationId": "rate-limit/get", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/rate_limit/#get-rate-limit-status-for-the-authenticated-user" + }, + "parameters": [], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/rate-limit-overview" + }, + "examples": { + "default": { + "$ref": "#/components/examples/rate-limit-overview" + } + } + } + }, + "headers": { + "X-RateLimit-Limit": { + "$ref": "#/components/headers/x-rate-limit-limit" + }, + "X-RateLimit-Remaining": { + "$ref": "#/components/headers/x-rate-limit-remaining" + }, + "X-RateLimit-Reset": { + "$ref": "#/components/headers/x-rate-limit-reset" + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "rate-limit", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/reactions/{reaction_id}": { + "delete": { + "summary": "Delete a reaction (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Reactions API. We recommend migrating your existing code to use the new delete reactions endpoints. For more information, see this [blog post](https://developer.github.com/changes/2020-02-26-new-delete-reactions-endpoints/).\n\nOAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://docs.github.com/rest/reference/teams#discussions) or [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments).", + "tags": ["reactions"], + "operationId": "reactions/delete-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#delete-a-reaction-legacy" + }, + "parameters": [{ "$ref": "#/components/parameters/reaction-id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "410": { "$ref": "#/components/responses/gone" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-21", + "deprecationDate": "2020-02-26", + "category": "reactions", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}": { + "get": { + "summary": "Get a repository", + "description": "When you pass the `scarlet-witch-preview` media type, requests to get a repository will also return the repository's code of conduct if it can be detected from the repository's code of conduct file.\n\nThe `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network.", + "tags": ["repos"], + "operationId": "repos/get", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#get-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/full-repository" }, + "examples": { + "default-response": { + "$ref": "#/components/examples/full-repository-default-response" + }, + "response-with-scarlet-witch-preview-media-type": { + "$ref": "#/components/examples/full-repository-response-with-scarlet-witch-preview-media-type" + } + } + } + } + }, + "301": { "$ref": "#/components/responses/moved_permanently" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "nebula", + "note": "You can set the visibility of a repository using the new `visibility` parameter in the [Repositories API](https://docs.github.com/rest/reference/repos/), and get a repository's visibility with a new response key. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes/).\n\nTo access repository visibility during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.nebula-preview+json\n```" + }, + { + "required": false, + "name": "scarlet-witch", + "note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a repository", + "description": "**Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/reference/repos#replace-all-repository-topics) endpoint.", + "tags": ["repos"], + "operationId": "repos/update", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#update-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the repository." + }, + "description": { + "type": "string", + "description": "A short description of the repository." + }, + "homepage": { + "type": "string", + "description": "A URL with more information about the repository." + }, + "private": { + "type": "boolean", + "description": "Either `true` to make the repository private or `false` to make it public. Default: `false`. \n**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.", + "default": false + }, + "visibility": { + "type": "string", + "description": "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.", + "enum": ["public", "private", "visibility", "internal"] + }, + "has_issues": { + "type": "boolean", + "description": "Either `true` to enable issues for this repository or `false` to disable them.", + "default": true + }, + "has_projects": { + "type": "boolean", + "description": "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.", + "default": true + }, + "has_wiki": { + "type": "boolean", + "description": "Either `true` to enable the wiki for this repository or `false` to disable it.", + "default": true + }, + "is_template": { + "type": "boolean", + "description": "Either `true` to make this repo available as a template repository or `false` to prevent it.", + "default": false + }, + "default_branch": { + "type": "string", + "description": "Updates the default branch for this repository." + }, + "allow_squash_merge": { + "type": "boolean", + "description": "Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging.", + "default": true + }, + "allow_merge_commit": { + "type": "boolean", + "description": "Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits.", + "default": true + }, + "allow_rebase_merge": { + "type": "boolean", + "description": "Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging.", + "default": true + }, + "delete_branch_on_merge": { + "type": "boolean", + "description": "Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion.", + "default": false + }, + "archived": { + "type": "boolean", + "description": "`true` to archive this repository. **Note**: You cannot unarchive repositories through the API.", + "default": false + } + } + }, + "example": { + "name": "Hello-World", + "description": "This is your first repository", + "homepage": "https://github.com", + "private": true, + "has_issues": true, + "has_projects": true, + "has_wiki": true + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/full-repository" }, + "examples": { + "default": { "$ref": "#/components/examples/full-repository" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "nebula", + "note": "You can set the visibility of a repository using the new `visibility` parameter in the [Repositories API](https://docs.github.com/rest/reference/repos/), and get a repository's visibility with a new response key. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes/).\n\nTo access repository visibility during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.nebula-preview+json\n```" + }, + { + "required": false, + "name": "baptiste", + "note": "The `is_template` and `template_repository` keys are currently available for developer to preview. See [Create a repository using a template](https://docs.github.com/repos#create-a-repository-using-a-template) to learn how to create template repositories. To access these new response keys during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.baptiste-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a repository", + "description": "Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required.\n\nIf an organization owner has configured the organization to prevent members from deleting organization-owned\nrepositories, you will get a `403 Forbidden` response.", + "tags": ["repos"], + "operationId": "repos/delete", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#delete-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "204": { "description": "Empty response" }, + "403": { + "description": "If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response:", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + }, + "example": { + "message": "Organization members cannot delete repositories.", + "documentation_url": "https://docs.github.com/rest/reference/repos#delete-a-repository" + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/artifacts": { + "get": { + "summary": "List artifacts for a repository", + "description": "Lists all artifacts for a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-artifacts-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-artifacts-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "artifacts": { + "type": "array", + "items": { "$ref": "#/components/schemas/artifact" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/artifact-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "artifacts" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/artifacts/{artifact_id}": { + "get": { + "summary": "Get an artifact", + "description": "Gets a specific artifact for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-artifact", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-an-artifact" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/artifact_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/artifact" }, + "examples": { + "default": { "$ref": "#/components/examples/artifact" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "artifacts" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete an artifact", + "description": "Deletes an artifact for a workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/delete-artifact", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#delete-an-artifact" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/artifact_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "artifacts" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}": { + "get": { + "summary": "Download an artifact", + "description": "Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for `Location:` in\nthe response header to find the URL for the download. The `:archive_format` must be `zip`. Anyone with read access to\nthe repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.\nGitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/download-artifact", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#download-an-artifact" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/artifact_id" }, + { + "name": "archive_format", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "302": { + "description": "response", + "headers": { + "Location": { "$ref": "#/components/headers/location" } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "artifacts" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/jobs/{job_id}": { + "get": { + "summary": "Get a job for a workflow run", + "description": "Gets a specific job in a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-job-for-workflow-run", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-a-job-for-a-workflow-run" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/job_id" } + ], + "responses": { + "202": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/job" }, + "examples": { + "default": { "$ref": "#/components/examples/job" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflow-jobs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/jobs/{job_id}/logs": { + "get": { + "summary": "Download job logs for a workflow run", + "description": "Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look\nfor `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can\nuse this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must\nhave the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/download-job-logs-for-workflow-run", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#download-job-logs-for-a-workflow-run" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/job_id" } + ], + "responses": { + "302": { + "description": "response", + "headers": { + "Location": { + "example": "https://pipelines.actions.githubusercontent.com/ab1f3cCFPB34Nd6imvFxpGZH5hNlDp2wijMwl2gDoO0bcrrlJj/_apis/pipelines/1/jobs/19/signedlogcontent?urlExpires=2020-01-22T22%3A44%3A54.1389777Z&urlSigningMethod=HMACV1&urlSignature=2TUDfIg4fm36OJmfPy6km5QD5DLCOkBVzvhWZM8B%2BUY%3D", + "schema": { "type": "string" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflow-jobs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/permissions": { + "get": { + "summary": "Get GitHub Actions permissions for a repository", + "description": "Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions allowed to run in the repository.\n\nYou must authenticate using an access token with the `repo` scope to use this\nendpoint. GitHub Apps must have the `administration` repository permission to use this API.", + "operationId": "actions/get-github-actions-permissions-repository", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/actions-repository-permissions" + }, + "examples": { + "default": { + "$ref": "#/components/examples/actions-repository-permissions" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": { + "changes": [ + { + "type": "OPERATION", + "date": "2020-11-10", + "before": { "operationId": "actions/get-repo-permissions" } + } + ] + } + }, + "put": { + "summary": "Set GitHub Actions permissions for a repository", + "description": "Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions in the repository.\n\nIf the repository belongs to an organization or enterprise that has set restrictive permissions at the organization or enterprise levels, such as `allowed_actions` to `selected` actions, then you cannot override them for the repository.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API.", + "operationId": "actions/set-github-actions-permissions-repository", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { "204": { "description": "Empty response" } }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "enabled": { "$ref": "#/components/schemas/actions-enabled" }, + "allowed_actions": { + "$ref": "#/components/schemas/allowed-actions" + } + }, + "required": ["enabled"] + }, + "example": { "enabled": true, "allowed_actions": "selected" } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/permissions/selected-actions": { + "get": { + "summary": "Get allowed actions for a repository", + "description": "Gets the settings for selected actions that are allowed in a repository. To use this endpoint, the repository policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API.", + "operationId": "actions/get-allowed-actions-repository", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-allowed-actions-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/selected-actions" }, + "examples": { + "default": { + "$ref": "#/components/examples/selected-actions" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set allowed actions for a repository", + "description": "Sets the actions that are allowed in a repository. To use this endpoint, the repository permission policy for `allowed_actions` must be configured to `selected`. For more information, see \"[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository).\"\n\nIf the repository belongs to an organization or enterprise that has `selected` actions set at the organization or enterprise levels, then you cannot override any of the allowed actions settings.\n\nTo use the `patterns_allowed` setting for private repositories, the repository must belong to an enterprise. If the repository does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API.", + "operationId": "actions/set-allowed-actions-repository", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#set-allowed-actions-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { "204": { "description": "Empty response" } }, + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/selected-actions" }, + "examples": { + "selected_actions": { + "$ref": "#/components/examples/selected-actions" + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "actions", + "subcategory": "permissions" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runners": { + "get": { + "summary": "List self-hosted runners for a repository", + "description": "Lists all self-hosted runners configured in a repository. You must authenticate using an access token with the `repo` scope to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-self-hosted-runners-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "runners": { + "type": "array", + "items": { "$ref": "#/components/schemas/runner" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runners/downloads": { + "get": { + "summary": "List runner applications for a repository", + "description": "Lists binaries for the runner application that you can download and run.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-runner-applications-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-runner-applications-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/runner-application" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/runner-application-items" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runners/registration-token": { + "post": { + "summary": "Create a registration token for a repository", + "description": "Returns a token that you can pass to the `config` script. The token expires after one hour. You must authenticate\nusing an access token with the `repo` scope to use this endpoint.\n\n#### Example using registration token\n \nConfigure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint.\n\n```\n./config.sh --url https://github.com/octo-org/octo-repo-artifacts --token TOKEN\n```", + "tags": ["actions"], + "operationId": "actions/create-registration-token-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#create-a-registration-token-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authentication-token" + }, + "examples": { + "default": { + "$ref": "#/components/examples/authentication-token" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runners/remove-token": { + "post": { + "summary": "Create a remove token for a repository", + "description": "Returns a token that you can pass to remove a self-hosted runner from a repository. The token expires after one hour.\nYou must authenticate using an access token with the `repo` scope to use this endpoint.\n\n#### Example using remove token\n \nTo remove your self-hosted runner from a repository, replace TOKEN with the remove token provided by this endpoint.\n\n```\n./config.sh remove --token TOKEN\n```", + "tags": ["actions"], + "operationId": "actions/create-remove-token-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#create-a-remove-token-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/authentication-token" + }, + "examples": { + "default": { + "$ref": "#/components/examples/authentication-token-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runners/{runner_id}": { + "get": { + "summary": "Get a self-hosted runner for a repository", + "description": "Gets a specific self-hosted runner configured in a repository.\n\nYou must authenticate using an access token with the `repo` scope to use this\nendpoint.", + "tags": ["actions"], + "operationId": "actions/get-self-hosted-runner-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/runner_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/runner" }, + "examples": { + "default": { "$ref": "#/components/examples/runner" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a self-hosted runner from a repository", + "description": "Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists.\n\nYou must authenticate using an access token with the `repo`\nscope to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/delete-self-hosted-runner-from-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/runner_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "self-hosted-runners" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runs": { + "get": { + "summary": "List workflow runs for a repository", + "description": "Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters).\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-workflow-runs-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-workflow-runs-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/actor" }, + { "$ref": "#/components/parameters/workflow-run-branch" }, + { "$ref": "#/components/parameters/event" }, + { "$ref": "#/components/parameters/workflow-run-status" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "workflow_runs": { + "type": "array", + "items": { "$ref": "#/components/schemas/workflow-run" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/workflow-run-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflow-runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runs/{run_id}": { + "get": { + "summary": "Get a workflow run", + "description": "Gets a specific workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-workflow-run", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-a-workflow-run" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/run-id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/workflow-run" }, + "examples": { + "default": { "$ref": "#/components/examples/workflow-run" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflow-runs" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a workflow run", + "description": "Delete a specific workflow run. Anyone with write access to the repository can use this endpoint. If the repository is\nprivate you must use an access token with the `repo` scope. GitHub Apps must have the `actions:write` permission to use\nthis endpoint.", + "operationId": "actions/delete-workflow-run", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#delete-a-workflow-run" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/run-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflow-runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": { + "get": { + "summary": "List workflow run artifacts", + "description": "Lists artifacts for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-workflow-run-artifacts", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-workflow-run-artifacts" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/run-id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "artifacts": { + "type": "array", + "items": { "$ref": "#/components/schemas/artifact" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/artifact-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "artifacts" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runs/{run_id}/cancel": { + "post": { + "summary": "Cancel a workflow run", + "description": "Cancels a workflow run using its `id`. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/cancel-workflow-run", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#cancel-a-workflow-run" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/run-id" } + ], + "responses": { "202": { "description": "response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflow-runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runs/{run_id}/jobs": { + "get": { + "summary": "List jobs for a workflow run", + "description": "Lists jobs for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters).", + "tags": ["actions"], + "operationId": "actions/list-jobs-for-workflow-run", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-jobs-for-a-workflow-run" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/run-id" }, + { + "name": "filter", + "description": "Filters jobs by their `completed_at` timestamp. Can be one of: \n\\* `latest`: Returns jobs from the most recent execution of the workflow run. \n\\* `all`: Returns all jobs for a workflow run, including from old executions of the workflow run.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["latest", "all"], + "default": "latest" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "jobs": { + "type": "array", + "items": { "$ref": "#/components/schemas/job" } + } + } + }, + "examples": { + "default": { "$ref": "#/components/examples/job-paginated" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflow-jobs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runs/{run_id}/logs": { + "get": { + "summary": "Download workflow run logs", + "description": "Gets a redirect URL to download an archive of log files for a workflow run. This link expires after 1 minute. Look for\n`Location:` in the response header to find the URL for the download. Anyone with read access to the repository can use\nthis endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have\nthe `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/download-workflow-run-logs", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#download-workflow-run-logs" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/run-id" } + ], + "responses": { + "302": { + "description": "response", + "headers": { + "Location": { + "example": "https://pipelines.actions.githubusercontent.com/ab1f3cCFPB34Nd6imvFxpGZH5hNlDp2wijMwl2gDoO0bcrrlJj/_apis/pipelines/1/runs/19/signedlogcontent?urlExpires=2020-01-22T22%3A44%3A54.1389777Z&urlSigningMethod=HMACV1&urlSignature=2TUDfIg4fm36OJmfPy6km5QD5DLCOkBVzvhWZM8B%2BUY%3D", + "schema": { "type": "string" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflow-runs" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete workflow run logs", + "description": "Deletes all logs for a workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/delete-workflow-run-logs", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#delete-workflow-run-logs" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/run-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflow-runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runs/{run_id}/rerun": { + "post": { + "summary": "Re-run a workflow", + "description": "Re-runs your workflow run using its `id`. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/re-run-workflow", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#re-run-a-workflow" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/run-id" } + ], + "responses": { "201": { "description": "response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "actions", + "subcategory": "workflow-runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/runs/{run_id}/timing": { + "get": { + "summary": "Get workflow run usage", + "description": "**Warning:** This GitHub Actions usage endpoint is currently in public beta and subject to change. For more information, see \"[GitHub Actions API workflow usage](https://developer.github.com/changes/2020-05-15-actions-api-workflow-usage).\"\n\nGets the number of billable minutes and total run time for a specific workflow run. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see \"[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)\".\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-workflow-run-usage", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-workflow-run-usage" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/run-id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/workflow-run-usage" }, + "examples": { + "default": { + "$ref": "#/components/examples/workflow-run-usage" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "actions", + "subcategory": "workflow-runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/secrets": { + "get": { + "summary": "List repository secrets", + "description": "Lists all secrets available in a repository without revealing their encrypted values. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-repo-secrets", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-repository-secrets" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "secrets": { + "type": "array", + "items": { "$ref": "#/components/schemas/actions-secret" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/actions-secret-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/secrets/public-key": { + "get": { + "summary": "Get a repository public key", + "description": "Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `secrets` repository permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-repo-public-key", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-a-repository-public-key" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/actions-public-key" }, + "examples": { + "default": { + "$ref": "#/components/examples/actions-public-key" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/secrets/{secret_name}": { + "get": { + "summary": "Get a repository secret", + "description": "Gets a single repository secret without revealing its encrypted value. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-repo-secret", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-a-repository-secret" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/secret_name" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/actions-secret" }, + "examples": { + "default": { "$ref": "#/components/examples/actions-secret" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + }, + "put": { + "summary": "Create or update a repository secret", + "description": "Creates or updates a repository secret with an encrypted value. Encrypt your secret using\n[LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate using an access\ntoken with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use\nthis endpoint.\n\n#### Example encrypting a secret using Node.js\n\nEncrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library.\n\n```\nconst sodium = require('tweetsodium');\n\nconst key = \"base64-encoded-public-key\";\nconst value = \"plain-text-secret\";\n\n// Convert the message and key to Uint8Array's (Buffer implements that interface)\nconst messageBytes = Buffer.from(value);\nconst keyBytes = Buffer.from(key, 'base64');\n\n// Encrypt using LibSodium.\nconst encryptedBytes = sodium.seal(messageBytes, keyBytes);\n\n// Base64 the encrypted secret\nconst encrypted = Buffer.from(encryptedBytes).toString('base64');\n\nconsole.log(encrypted);\n```\n\n\n#### Example encrypting a secret using Python\n\nEncrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/stable/public/#nacl-public-sealedbox) with Python 3.\n\n```\nfrom base64 import b64encode\nfrom nacl import encoding, public\n\ndef encrypt(public_key: str, secret_value: str) -> str:\n \"\"\"Encrypt a Unicode string using the public key.\"\"\"\n public_key = public.PublicKey(public_key.encode(\"utf-8\"), encoding.Base64Encoder())\n sealed_box = public.SealedBox(public_key)\n encrypted = sealed_box.encrypt(secret_value.encode(\"utf-8\"))\n return b64encode(encrypted).decode(\"utf-8\")\n```\n\n#### Example encrypting a secret using C#\n\nEncrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package.\n\n```\nvar secretValue = System.Text.Encoding.UTF8.GetBytes(\"mySecret\");\nvar publicKey = Convert.FromBase64String(\"2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU=\");\n\nvar sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey);\n\nConsole.WriteLine(Convert.ToBase64String(sealedPublicKeyBox));\n```\n\n#### Example encrypting a secret using Ruby\n\nEncrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem.\n\n```ruby\nrequire \"rbnacl\"\nrequire \"base64\"\n\nkey = Base64.decode64(\"+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=\")\npublic_key = RbNaCl::PublicKey.new(key)\n\nbox = RbNaCl::Boxes::Sealed.from_public_key(public_key)\nencrypted_secret = box.encrypt(\"my_secret\")\n\n# Print the base64 encoded secret\nputs Base64.strict_encode64(encrypted_secret)\n```", + "tags": ["actions"], + "operationId": "actions/create-or-update-repo-secret", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#create-or-update-a-repository-secret" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/secret_name" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "encrypted_value": { + "type": "string", + "description": "Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/reference/actions#get-a-repository-public-key) endpoint." + }, + "key_id": { + "type": "string", + "description": "ID of the key you used to encrypt the secret." + } + } + }, + "example": { + "encrypted_value": "****************************************************************************************", + "key_id": "012345678912345678" + } + } + } + }, + "responses": { + "201": { "description": "Response when creating a secret" }, + "204": { "description": "Response when updating a secret" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a repository secret", + "description": "Deletes a secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/delete-repo-secret", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#delete-a-repository-secret" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/secret_name" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "secrets" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/workflows": { + "get": { + "summary": "List repository workflows", + "description": "Lists the workflows in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/list-repo-workflows", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-repository-workflows" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "workflows": { + "type": "array", + "items": { "$ref": "#/components/schemas/workflow" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/workflow-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflows" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}": { + "get": { + "summary": "Get a workflow", + "description": "Gets a specific workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-workflow", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-a-workflow" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/workflow-id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/workflow" }, + "examples": { + "default": { "$ref": "#/components/examples/workflow" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflows" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable": { + "put": { + "summary": "Disable a workflow", + "description": "Disables a workflow and sets the `state` of the workflow to `disabled_manually`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/disable-workflow", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#disable-a-workflow" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/workflow-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflows" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches": { + "post": { + "summary": "Create a workflow dispatch event", + "description": "You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.\n\nYou must configure your GitHub Actions workflow to run when the [`workflow_dispatch` webhook](/developers/webhooks-and-events/webhook-events-and-payloads#workflow_dispatch) event occurs. The `inputs` are configured in the workflow file. For more information about how to configure the `workflow_dispatch` event in the workflow file, see \"[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#workflow_dispatch).\"\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. For more information, see \"[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line).\"", + "operationId": "actions/create-workflow-dispatch", + "tags": ["actions"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/workflow-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ref": { + "type": "string", + "description": "The git reference for the workflow. The reference can be a branch or tag name." + }, + "inputs": { + "type": "object", + "description": "Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted.", + "additionalProperties": { "type": "string" }, + "maxProperties": 10 + } + }, + "required": ["ref"] + }, + "example": { + "ref": "topic-branch", + "inputs": { + "name": "Mona the Octocat", + "home": "San Francisco, CA" + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflows" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable": { + "put": { + "summary": "Enable a workflow", + "description": "Enables a workflow and sets the `state` of the workflow to `active`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`.\n\nYou must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/enable-workflow", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#enable-a-workflow" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/workflow-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflows" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": { + "get": { + "summary": "List workflow runs", + "description": "List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters).\n\nAnyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope.", + "tags": ["actions"], + "operationId": "actions/list-workflow-runs", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#list-workflow-runs" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/workflow-id" }, + { "$ref": "#/components/parameters/actor" }, + { "$ref": "#/components/parameters/workflow-run-branch" }, + { "$ref": "#/components/parameters/event" }, + { "$ref": "#/components/parameters/workflow-run-status" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "workflow_runs": { + "type": "array", + "items": { "$ref": "#/components/schemas/workflow-run" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/workflow-run-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "actions", + "subcategory": "workflow-runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": { + "get": { + "summary": "Get workflow usage", + "description": "**Warning:** This GitHub Actions usage endpoint is currently in public beta and subject to change. For more information, see \"[GitHub Actions API workflow usage](https://developer.github.com/changes/2020-05-15-actions-api-workflow-usage).\"\n\nGets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see \"[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)\".\n\nYou can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.", + "tags": ["actions"], + "operationId": "actions/get-workflow-usage", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/actions#get-workflow-usage" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/workflow-id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/workflow-usage" }, + "examples": { + "default": { "$ref": "#/components/examples/workflow-usage" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "actions", + "subcategory": "workflows" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/assignees": { + "get": { + "summary": "List assignees", + "description": "Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository.", + "tags": ["issues"], + "operationId": "issues/list-assignees", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#list-assignees" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "assignees" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/assignees/{assignee}": { + "get": { + "summary": "Check if a user can be assigned", + "description": "Checks if a user has permission to be assigned to an issue in this repository.\n\nIf the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned.\n\nOtherwise a `404` status code is returned.", + "tags": ["issues"], + "operationId": "issues/check-user-can-be-assigned", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#check-if-a-user-can-be-assigned" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "assignee", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "204": { + "description": "If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned." + }, + "404": { + "description": "Otherwise a `404` status code is returned.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "assignees" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/automated-security-fixes": { + "put": { + "summary": "Enable automated security fixes", + "description": "Enables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see \"[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)\".", + "tags": ["repos"], + "operationId": "repos/enable-automated-security-fixes", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#enable-automated-security-fixes" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "london", + "note": "Enabling or disabling automated security fixes is currently available for developers to preview. To access this new endpoint during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.london-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Disable automated security fixes", + "description": "Disables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see \"[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)\".", + "tags": ["repos"], + "operationId": "repos/disable-automated-security-fixes", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#disable-automated-security-fixes" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "london", + "note": "Enabling or disabling automated security fixes is currently available for developers to preview. To access this new endpoint during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.london-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches": { + "get": { + "summary": "List branches", + "description": "", + "tags": ["repos"], + "operationId": "repos/list-branches", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-branches" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "protected", + "description": "Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches.", + "in": "query", + "required": false, + "schema": { "type": "boolean" } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/short-branch" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/short-branch-items" + }, + "with-protection": { + "$ref": "#/components/examples/short-branch-with-protection-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}": { + "get": { + "summary": "Get a branch", + "description": "", + "tags": ["repos"], + "operationId": "repos/get-branch", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-branch" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/branch-with-protection" + }, + "examples": { + "default": { + "$ref": "#/components/examples/branch-with-protection" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}/protection": { + "get": { + "summary": "Get branch protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/get-branch-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-branch-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/branch-protection" }, + "examples": { + "default": { + "$ref": "#/components/examples/branch-protection" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "luke-cage", + "note": "The Protected Branches API now has a setting for requiring a specified number of approving pull request reviews before merging. This feature is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2018-03-16-protected-branches-required-approving-reviews) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.luke-cage-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "put": { + "summary": "Update branch protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nProtecting a branch requires admin or owner permissions to the repository.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.\n\n**Note**: The list of users, apps, and teams in total is limited to 100 items.", + "tags": ["repos"], + "operationId": "repos/update-branch-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#update-branch-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "required_status_checks": { + "type": "object", + "description": "Require status checks to pass before merging. Set to `null` to disable.", + "nullable": true, + "properties": { + "strict": { + "type": "boolean", + "description": "Require branches to be up to date before merging." + }, + "contexts": { + "type": "array", + "description": "The list of status checks to require in order to merge into this branch", + "items": { "type": "string" } + } + }, + "required": ["strict", "contexts"] + }, + "enforce_admins": { + "type": "boolean", + "description": "Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable.", + "nullable": true + }, + "required_pull_request_reviews": { + "type": "object", + "description": "Require at least one approving review on a pull request, before merging. Set to `null` to disable.", + "nullable": true, + "properties": { + "dismissal_restrictions": { + "type": "object", + "description": "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.", + "properties": { + "users": { + "type": "array", + "description": "The list of user `login`s with dismissal access", + "items": { "type": "string" } + }, + "teams": { + "type": "array", + "description": "The list of team `slug`s with dismissal access", + "items": { "type": "string" } + } + } + }, + "dismiss_stale_reviews": { + "type": "boolean", + "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit." + }, + "require_code_owner_reviews": { + "type": "boolean", + "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) review them." + }, + "required_approving_review_count": { + "type": "integer", + "description": "Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6." + } + } + }, + "restrictions": { + "type": "object", + "description": "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.", + "nullable": true, + "properties": { + "users": { + "type": "array", + "description": "The list of user `login`s with push access", + "items": { "type": "string" } + }, + "teams": { + "type": "array", + "description": "The list of team `slug`s with push access", + "items": { "type": "string" } + }, + "apps": { + "type": "array", + "description": "The list of app `slug`s with push access", + "items": { "type": "string" } + } + }, + "required": ["users", "teams"] + }, + "required_linear_history": { + "type": "boolean", + "description": "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": { + "type": "boolean", + "description": "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.\"", + "nullable": true + }, + "allow_deletions": { + "type": "boolean", + "description": "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": [ + "required_status_checks", + "enforce_admins", + "required_pull_request_reviews", + "restrictions" + ] + }, + "example": { + "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 + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/protected-branch" } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "luke-cage", + "note": "The Protected Branches API now has a setting for requiring a specified number of approving pull request reviews before merging. This feature is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2018-03-16-protected-branches-required-approving-reviews) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.luke-cage-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete branch protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/delete-branch-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-branch-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "204": { "description": "Empty response" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": { + "get": { + "summary": "Get admin branch protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/get-admin-branch-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-admin-branch-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/protected-branch-admin-enforced" + }, + "examples": { + "default": { + "$ref": "#/components/examples/protected-branch-admin-enforced-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "post": { + "summary": "Set admin branch protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nAdding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.", + "tags": ["repos"], + "operationId": "repos/set-admin-branch-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#set-admin-branch-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/protected-branch-admin-enforced" + }, + "examples": { + "default": { + "$ref": "#/components/examples/protected-branch-admin-enforced-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete admin branch protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nRemoving admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled.", + "tags": ["repos"], + "operationId": "repos/delete-admin-branch-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-admin-branch-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "204": { "description": "No Content" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": { + "get": { + "summary": "Get pull request review protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/get-pull-request-review-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-pull-request-review-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/vnd.github.luke-cage-preview+json": { + "schema": { + "$ref": "#/components/schemas/protected-branch-pull-request-review" + }, + "examples": { + "default": { + "$ref": "#/components/examples/protected-branch-pull-request-review" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "luke-cage", + "note": "The Protected Branches API now has a setting for requiring a specified number of approving pull request reviews before merging. This feature is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2018-03-16-protected-branches-required-approving-reviews) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.luke-cage-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update pull request review protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nUpdating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled.\n\n**Note**: Passing new arrays of `users` and `teams` replaces their previous values.", + "tags": ["repos"], + "operationId": "repos/update-pull-request-review-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#update-pull-request-review-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "dismissal_restrictions": { + "type": "object", + "description": "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.", + "properties": { + "users": { + "type": "array", + "description": "The list of user `login`s with dismissal access", + "items": { "type": "string" } + }, + "teams": { + "type": "array", + "description": "The list of team `slug`s with dismissal access", + "items": { "type": "string" } + } + } + }, + "dismiss_stale_reviews": { + "type": "boolean", + "description": "Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit." + }, + "require_code_owner_reviews": { + "type": "boolean", + "description": "Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed." + }, + "required_approving_review_count": { + "type": "integer", + "description": "Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6." + } + } + }, + "example": { + "dismissal_restrictions": { + "users": ["octocat"], + "teams": ["justice-league"] + }, + "dismiss_stale_reviews": true, + "require_code_owner_reviews": true, + "required_approving_review_count": 2 + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/protected-branch-pull-request-review" + }, + "examples": { + "default": { + "$ref": "#/components/examples/protected-branch-pull-request-review" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "luke-cage", + "note": "The Protected Branches API now has a setting for requiring a specified number of approving pull request reviews before merging. This feature is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2018-03-16-protected-branches-required-approving-reviews) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.luke-cage-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete pull request review protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/delete-pull-request-review-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-pull-request-review-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "204": { "description": "No Content" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": { + "get": { + "summary": "Get commit signature protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nWhen authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help.\n\n**Note**: You must enable branch protection to require signed commits.", + "tags": ["repos"], + "operationId": "repos/get-commit-signature-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-commit-signature-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/protected-branch-admin-enforced" + }, + "examples": { + "default": { + "$ref": "#/components/examples/protected-branch-admin-enforced" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "zzzax", + "note": "Protected Branches API can now manage a setting for requiring signed commits. This feature is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2018-02-22-protected-branches-required-signatures) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.zzzax-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create commit signature protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nWhen authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits.", + "tags": ["repos"], + "operationId": "repos/create-commit-signature-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-commit-signature-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/protected-branch-admin-enforced" + }, + "examples": { + "default": { + "$ref": "#/components/examples/protected-branch-admin-enforced" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "zzzax", + "note": "Protected Branches API can now manage a setting for requiring signed commits. This feature is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2018-02-22-protected-branches-required-signatures) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.zzzax-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete commit signature protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nWhen authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits.", + "tags": ["repos"], + "operationId": "repos/delete-commit-signature-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-commit-signature-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "204": { "description": "No Content" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "zzzax", + "note": "Protected Branches API can now manage a setting for requiring signed commits. This feature is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2018-02-22-protected-branches-required-signatures) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.zzzax-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": { + "get": { + "summary": "Get status checks protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/get-status-checks-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-status-checks-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/status-check-policy" + }, + "examples": { + "default": { + "$ref": "#/components/examples/status-check-policy" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update status check protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nUpdating required status checks requires admin or owner permissions to the repository and branch protection to be enabled.", + "tags": ["repos"], + "operationId": "repos/update-status-check-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#update-status-check-potection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "strict": { + "type": "boolean", + "description": "Require branches to be up to date before merging." + }, + "contexts": { + "type": "array", + "description": "The list of status checks to require in order to merge into this branch", + "items": { "type": "string" } + } + } + }, + "example": { + "strict": true, + "contexts": ["continuous-integration/travis-ci"] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/status-check-policy" + }, + "examples": { + "default": { + "$ref": "#/components/examples/status-check-policy" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove status check protection", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/remove-status-check-protection", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#remove-status-check-protection" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { "204": { "description": "No Content" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": { + "get": { + "summary": "Get all status check contexts", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/get-all-status-check-contexts", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-all-status-check-contexts" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "type": "array", "items": { "type": "string" } }, + "example": ["continuous-integration/travis-ci"] + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "post": { + "summary": "Add status check contexts", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/add-status-check-contexts", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#add-status-check-contexts" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "contexts": { + "type": "array", + "description": "contexts parameter", + "items": { "type": "string" } + } + }, + "required": ["contexts"], + "example": { "contexts": ["contexts"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "type": "array", "items": { "type": "string" } }, + "example": [ + "continuous-integration/travis-ci", + "continuous-integration/jenkins" + ] + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "contexts", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set status check contexts", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/set-status-check-contexts", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#set-status-check-contexts" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "contexts": { + "type": "array", + "description": "contexts parameter", + "items": { "type": "string" } + } + }, + "required": ["contexts"], + "example": { "contexts": ["contexts"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "type": "array", "items": { "type": "string" } }, + "example": ["continuous-integration/travis-ci"] + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "contexts", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove status check contexts", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["repos"], + "operationId": "repos/remove-status-check-contexts", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#remove-status-check-contexts" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "contexts": { + "type": "array", + "description": "contexts parameter", + "items": { "type": "string" } + } + }, + "required": ["contexts"], + "example": { "contexts": ["contexts"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "type": "array", "items": { "type": "string" } }, + "example": ["continuous-integration/travis-ci"] + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "contexts", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions": { + "get": { + "summary": "Get access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nLists who has access to this protected branch.\n\n**Note**: Users, apps, and teams `restrictions` are only available for organization-owned repositories.", + "tags": ["repos"], + "operationId": "repos/get-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/branch-restriction-policy" + }, + "examples": { + "default": { + "$ref": "#/components/examples/branch-restriction-policy" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nDisables the ability to restrict who can push to this branch.", + "tags": ["repos"], + "operationId": "repos/delete-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { "204": { "description": "No Content" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": { + "get": { + "summary": "Get apps with access to the protected branch", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nLists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch.", + "tags": ["repos"], + "operationId": "repos/get-apps-with-access-to-protected-branch", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-apps-with-access-to-the-protected-branch" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/integration" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/integration-items" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "post": { + "summary": "Add app access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nGrants the specified apps push access for this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. |", + "tags": ["repos"], + "operationId": "repos/add-app-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#add-app-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "apps": { + "type": "array", + "description": "apps parameter", + "items": { "type": "string" } + } + }, + "required": ["apps"], + "example": { "apps": ["my-app"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/integration" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/integration-items" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "apps", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set app access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nReplaces the list of apps that have push access to this branch. This removes all apps that previously had push access and grants push access to the new list of apps. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. |", + "tags": ["repos"], + "operationId": "repos/set-app-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#set-app-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "apps": { + "type": "array", + "description": "apps parameter", + "items": { "type": "string" } + } + }, + "required": ["apps"], + "example": { "apps": ["my-app"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/integration" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/integration-items" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "apps", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove app access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nRemoves the ability of an app to push to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch.\n\n| Type | Description |\n| ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. |", + "tags": ["repos"], + "operationId": "repos/remove-app-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#remove-app-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "apps": { + "type": "array", + "description": "apps parameter", + "items": { "type": "string" } + } + }, + "required": ["apps"], + "example": { "apps": ["my-app"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/integration" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/integration-items" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "apps", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": { + "get": { + "summary": "Get teams with access to the protected branch", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nLists the teams who have push access to this branch. The list includes child teams.", + "tags": ["repos"], + "operationId": "repos/get-teams-with-access-to-protected-branch", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-teams-with-access-to-the-protected-branch" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + }, + "examples": { + "default": { "$ref": "#/components/examples/team-items" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "post": { + "summary": "Add team access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nGrants the specified teams push access for this branch. You can also give push access to child teams.\n\n| Type | Description |\n| ------- | ------------------------------------------------------------------------------------------------------------------------------------------ |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. |", + "tags": ["repos"], + "operationId": "repos/add-team-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#add-team-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "teams": { + "type": "array", + "description": "teams parameter", + "items": { "type": "string" } + } + }, + "required": ["teams"], + "example": { "teams": ["my-team"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + }, + "examples": { + "default": { "$ref": "#/components/examples/team-items" } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "teams", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set team access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nReplaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. Team restrictions include child teams.\n\n| Type | Description |\n| ------- | ------------------------------------------------------------------------------------------------------------------------------------------ |\n| `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. |", + "tags": ["repos"], + "operationId": "repos/set-team-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#set-team-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "teams": { + "type": "array", + "description": "teams parameter", + "items": { "type": "string" } + } + }, + "required": ["teams"], + "example": { "teams": ["my-team"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + }, + "examples": { + "default": { "$ref": "#/components/examples/team-items" } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "teams", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove team access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nRemoves the ability of a team to push to this branch. You can also remove push access for child teams.\n\n| Type | Description |\n| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. |", + "tags": ["repos"], + "operationId": "repos/remove-team-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#remove-team-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "teams": { + "type": "array", + "description": "teams parameter", + "items": { "type": "string" } + } + }, + "required": ["teams"], + "example": { "teams": ["my-team"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + }, + "examples": { + "default": { "$ref": "#/components/examples/team-items" } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "teams", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": { + "get": { + "summary": "Get users with access to the protected branch", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nLists the people who have push access to this branch.", + "tags": ["repos"], + "operationId": "repos/get-users-with-access-to-protected-branch", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-users-with-access-to-the-protected-branch" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "post": { + "summary": "Add user access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nGrants the specified people push access for this branch.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. |", + "tags": ["repos"], + "operationId": "repos/add-user-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#add-user-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "users": { + "type": "array", + "description": "users parameter", + "items": { "type": "string" } + } + }, + "required": ["users"], + "example": { "users": ["mona"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "users", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set user access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nReplaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people.\n\n| Type | Description |\n| ------- | ----------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. |", + "tags": ["repos"], + "operationId": "repos/set-user-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#set-user-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "users": { + "type": "array", + "description": "users parameter", + "items": { "type": "string" } + } + }, + "required": ["users"], + "example": { "users": ["mona"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "users", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove user access restrictions", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nRemoves the ability of a user to push to this branch.\n\n| Type | Description |\n| ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |\n| `array` | Usernames of the people who should no longer have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. |", + "tags": ["repos"], + "operationId": "repos/remove-user-access-restrictions", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#remove-user-access-restrictions" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/branch" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "users": { + "type": "array", + "description": "users parameter", + "items": { "type": "string" } + } + }, + "required": ["users"], + "example": { "users": ["mona"] } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "requestBodyParameterName": "users", + "category": "repos", + "subcategory": "branches" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/check-runs": { + "post": { + "summary": "Create a check run", + "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nCreates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs.\n\nIn a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs.", + "tags": ["checks"], + "operationId": "checks/create", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#create-a-check-run" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the check. For example, \"code-coverage\"." + }, + "head_sha": { + "type": "string", + "description": "The SHA of the commit." + }, + "details_url": { + "type": "string", + "description": "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": { + "type": "string", + "description": "A reference for the run on the integrator's system." + }, + "status": { + "type": "string", + "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.", + "enum": ["queued", "in_progress", "completed"], + "default": "queued" + }, + "started_at": { + "type": "string", + "description": "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": { + "type": "string", + "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. When the conclusion is `action_required`, additional details should be provided on the site specified by `details_url`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. Only GitHub can change a check run conclusion to `stale`.", + "enum": [ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required" + ] + }, + "completed_at": { + "type": "string", + "description": "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": { + "type": "object", + "description": "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/rest/reference/checks#output-object) description.", + "properties": { + "title": { + "type": "string", + "description": "The title of the check run." + }, + "summary": { + "type": "string", + "description": "The summary of the check run. This parameter supports Markdown." + }, + "text": { + "type": "string", + "description": "The details of the check run. This parameter supports Markdown." + }, + "annotations": { + "type": "array", + "description": "Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/rest/reference/checks#annotations-object) description for details about how to use this parameter.", + "items": { + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`." + }, + "start_line": { + "type": "integer", + "description": "The start line of the annotation." + }, + "end_line": { + "type": "integer", + "description": "The end line of the annotation." + }, + "start_column": { + "type": "integer", + "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values." + }, + "end_column": { + "type": "integer", + "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values." + }, + "annotation_level": { + "type": "string", + "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.", + "enum": ["notice", "warning", "failure"] + }, + "message": { + "type": "string", + "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB." + }, + "title": { + "type": "string", + "description": "The title that represents the annotation. The maximum size is 255 characters." + }, + "raw_details": { + "type": "string", + "description": "Details about this annotation. The maximum size is 64 KB." + } + }, + "required": [ + "path", + "start_line", + "end_line", + "annotation_level", + "message" + ] + } + }, + "images": { + "type": "array", + "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/rest/reference/checks#images-object) description for details.", + "items": { + "type": "object", + "properties": { + "alt": { + "type": "string", + "description": "The alternative text for the image." + }, + "image_url": { + "type": "string", + "description": "The full URL of the image." + }, + "caption": { + "type": "string", + "description": "A short image description." + } + }, + "required": ["alt", "image_url"] + } + } + }, + "required": ["title", "summary"] + }, + "actions": { + "type": "array", + "description": "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/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/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/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/rest/reference/checks#check-runs-and-requested-actions).\"", + "items": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters." + }, + "description": { + "type": "string", + "description": "A short explanation of what this action would do. The maximum size is 40 characters." + }, + "identifier": { + "type": "string", + "description": "A reference for the action on the integrator's system. The maximum size is 20 characters." + } + }, + "required": ["label", "description", "identifier"] + } + } + }, + "required": ["name", "head_sha"] + }, + "examples": { + "example-of-in-progress-conclusion": { + "summary": "Example of in_progress conclusion", + "value": { + "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": "" + } + } + }, + "example-of-completed-conclusion": { + "summary": "Example of completed conclusion", + "value": { + "name": "mighty_readme", + "head_sha": "ce587453ced02b1526dfb4cb910479d431683101", + "status": "completed", + "started_at": "2017-11-30T19:39:10Z", + "conclusion": "success", + "completed_at": "2017-11-30T19:49:10Z", + "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" + } + ] + }, + "actions": [ + { + "label": "Fix", + "identifier": "fix_errors", + "description": "Allow us to fix these errors for you" + } + ] + } + } + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/check-run" }, + "examples": { + "example-of-in-progress-conclusion": { + "$ref": "#/components/examples/check-run-example-of-in-progress-conclusion" + }, + "example-of-completed-conclusion": { + "$ref": "#/components/examples/check-run-example-of-completed-conclusion" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/check-runs/{check_run_id}": { + "get": { + "summary": "Get a check run", + "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nGets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.", + "tags": ["checks"], + "operationId": "checks/get", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#get-a-check-run" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/check_run_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/check-run" }, + "examples": { + "default": { "$ref": "#/components/examples/check-run" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "runs" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a check run", + "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nUpdates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs.", + "tags": ["checks"], + "operationId": "checks/update", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#update-a-check-run" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/check_run_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the check. For example, \"code-coverage\"." + }, + "details_url": { + "type": "string", + "description": "The URL of the integrator's site that has the full details of the check." + }, + "external_id": { + "type": "string", + "description": "A reference for the run on the integrator's system." + }, + "started_at": { + "type": "string", + "description": "This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." + }, + "status": { + "type": "string", + "description": "The current status. Can be one of `queued`, `in_progress`, or `completed`.", + "enum": ["queued", "in_progress", "completed"] + }, + "conclusion": { + "type": "string", + "description": "**Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. \n**Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. Only GitHub can change a check run conclusion to `stale`.", + "enum": [ + "success", + "failure", + "neutral", + "cancelled", + "skipped", + "timed_out", + "action_required" + ] + }, + "completed_at": { + "type": "string", + "description": "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": { + "type": "object", + "description": "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/rest/reference/checks#output-object-1) description.", + "properties": { + "title": { + "type": "string", + "description": "**Required**." + }, + "summary": { + "type": "string", + "description": "Can contain Markdown." + }, + "text": { + "type": "string", + "description": "Can contain Markdown." + }, + "annotations": { + "type": "array", + "description": "Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see \"[About status checks](https://help.github.com/articles/about-status-checks#checks)\". See the [`annotations` object](https://docs.github.com/rest/reference/checks#annotations-object-1) description for details.", + "items": { + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "The path of the file to add an annotation to. For example, `assets/css/main.css`." + }, + "start_line": { + "type": "integer", + "description": "The start line of the annotation." + }, + "end_line": { + "type": "integer", + "description": "The end line of the annotation." + }, + "start_column": { + "type": "integer", + "description": "The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values." + }, + "end_column": { + "type": "integer", + "description": "The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values." + }, + "annotation_level": { + "type": "string", + "description": "The level of the annotation. Can be one of `notice`, `warning`, or `failure`.", + "enum": ["notice", "warning", "failure"] + }, + "message": { + "type": "string", + "description": "A short description of the feedback for these lines of code. The maximum size is 64 KB." + }, + "title": { + "type": "string", + "description": "The title that represents the annotation. The maximum size is 255 characters." + }, + "raw_details": { + "type": "string", + "description": "Details about this annotation. The maximum size is 64 KB." + } + }, + "required": [ + "path", + "start_line", + "end_line", + "annotation_level", + "message" + ] + } + }, + "images": { + "type": "array", + "description": "Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/rest/reference/checks#annotations-object-1) description for details.", + "items": { + "type": "object", + "properties": { + "alt": { + "type": "string", + "description": "The alternative text for the image." + }, + "image_url": { + "type": "string", + "description": "The full URL of the image." + }, + "caption": { + "type": "string", + "description": "A short image description." + } + }, + "required": ["alt", "image_url"] + } + } + }, + "required": ["summary"] + }, + "actions": { + "type": "array", + "description": "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/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/rest/reference/checks#check-runs-and-requested-actions).\"", + "items": { + "type": "object", + "properties": { + "label": { + "type": "string", + "description": "The text to be displayed on a button in the web UI. The maximum size is 20 characters." + }, + "description": { + "type": "string", + "description": "A short explanation of what this action would do. The maximum size is 40 characters." + }, + "identifier": { + "type": "string", + "description": "A reference for the action on the integrator's system. The maximum size is 20 characters." + } + }, + "required": ["label", "description", "identifier"] + } + } + } + }, + "example": { + "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" + } + ] + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/check-run" }, + "examples": { + "default": { "$ref": "#/components/examples/check-run" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": { + "get": { + "summary": "List check run annotations", + "description": "Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository.", + "tags": ["checks"], + "operationId": "checks/list-annotations", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#list-check-run-annotations" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/check_run_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/check-annotation" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/check-annotation-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/check-suites": { + "post": { + "summary": "Create a check suite", + "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nBy default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/reference/checks#check-runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using \"[Update repository preferences for check suites](https://docs.github.com/rest/reference/checks#update-repository-preferences-for-check-suites)\". Your GitHub App must have the `checks:write` permission to create check suites.", + "tags": ["checks"], + "operationId": "checks/create-suite", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#create-a-check-suite" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "head_sha": { + "type": "string", + "description": "The sha of the head commit." + } + }, + "required": ["head_sha"] + }, + "example": { + "head_sha": "d6fde92930d4715a2b49857d24b940956b26d2d3" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/check-suite" }, + "examples": { + "default": { "$ref": "#/components/examples/check-suite" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "suites" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/check-suites/preferences": { + "patch": { + "summary": "Update repository preferences for check suites", + "description": "Changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/reference/checks#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites.", + "tags": ["checks"], + "operationId": "checks/set-suites-preferences", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#update-repository-preferences-for-check-suites" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "auto_trigger_checks": { + "type": "array", + "description": "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/rest/reference/checks#auto_trigger_checks-object) description for details.", + "items": { + "type": "object", + "properties": { + "app_id": { + "type": "integer", + "description": "The `id` of the GitHub App." + }, + "setting": { + "type": "boolean", + "description": "Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them.", + "default": true + } + }, + "required": ["app_id", "setting"] + } + } + } + }, + "example": { + "auto_trigger_checks": [{ "app_id": 4, "setting": false }] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/check-suite-preference" + }, + "examples": { + "default": { + "$ref": "#/components/examples/check-suite-preference" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "suites" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/check-suites/{check_suite_id}": { + "get": { + "summary": "Get a check suite", + "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nGets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository.", + "tags": ["checks"], + "operationId": "checks/get-suite", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#get-a-check-suite" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/check_suite_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/check-suite" }, + "examples": { + "default": { "$ref": "#/components/examples/check-suite" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "suites" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": { + "get": { + "summary": "List check runs in a check suite", + "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nLists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.", + "tags": ["checks"], + "operationId": "checks/list-for-suite", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/check_suite_id" }, + { "$ref": "#/components/parameters/check_name" }, + { "$ref": "#/components/parameters/status" }, + { + "name": "filter", + "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["latest", "all"], + "default": "latest" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "check_runs": { + "type": "array", + "items": { "$ref": "#/components/schemas/check-run" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/check-run-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest": { + "post": { + "summary": "Rerequest a check suite", + "description": "Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared.\n\nTo rerequest a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository.", + "tags": ["checks"], + "operationId": "checks/rerequest-suite", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#rerequest-a-check-suite" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/check_suite_id" } + ], + "responses": { "201": { "description": "response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "suites" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/code-scanning/alerts": { + "get": { + "summary": "List code scanning alerts for a repository", + "description": "Lists all open code scanning alerts for the default branch (usually `main` or `master`). For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` read permission to use this endpoint.", + "tags": ["code-scanning"], + "operationId": "code-scanning/list-alerts-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "state", + "description": "Set to `open`, `fixed`, or `dismissed` to list code scanning alerts in a specific state.", + "in": "query", + "required": false, + "schema": { + "$ref": "#/components/schemas/code-scanning-alert-state" + } + }, + { + "name": "ref", + "in": "query", + "description": "Set a full Git reference to list alerts for a specific branch. The `ref` must be formatted as `refs/heads/`.", + "required": false, + "schema": { "$ref": "#/components/schemas/code-scanning-alert-ref" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/code-scanning-alert-code-scanning-alert-items" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/code-scanning-alert-code-scanning-alert-items" + } + } + } + } + }, + "404": { + "description": "Response if the ref does not match an existing ref" + }, + "503": { "$ref": "#/components/responses/service_unavailable" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "code-scanning", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": { + "get": { + "summary": "Get a code scanning alert", + "description": "Gets a single code scanning alert. You must use an access token with the `security_events` scope to use this endpoint. GitHub Apps must have the `security_events` read permission to use this endpoint.\n\nThe security `alert_number` is found at the end of the security alert's URL. For example, the security alert ID for `https://github.com/Octo-org/octo-repo/security/code-scanning/88` is `88`.", + "tags": ["code-scanning"], + "operationId": "code-scanning/get-alert", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "alert_number", + "in": "path", + "required": true, + "schema": { "type": "integer" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/code-scanning-alert-code-scanning-alert" + }, + "examples": { + "default": { + "$ref": "#/components/examples/code-scanning-alert-code-scanning-alert" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "503": { "$ref": "#/components/responses/service_unavailable" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "code-scanning", + "subcategory": null + }, + "x-octokit": { + "changes": [ + { + "type": "PARAMETER", + "date": "2020-09-17", + "parameter": "alert_number", + "before": { "name": "alert_id" } + } + ] + } + }, + "patch": { + "summary": "Update a code scanning alert", + "description": "Updates the status of a single code scanning alert. For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes.\nGitHub Apps must have the `security_events` write permission to use this endpoint.", + "operationId": "code-scanning/update-alert", + "tags": ["code-scanning"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/code-scanning/#upload-a-code-scanning-alert" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/alert_number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "state": { + "$ref": "#/components/schemas/code-scanning-alert-set-state" + }, + "dismissed_reason": { + "$ref": "#/components/schemas/code-scanning-alert-dismissed-reason" + } + }, + "required": ["state"] + }, + "example": { + "state": "dismissed", + "dismissed_reason": "false positive" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/code-scanning-alert-code-scanning-alert" + }, + "examples": { + "default": { + "$ref": "#/components/examples/code-scanning-alert-code-scanning-alert-dismissed" + } + } + } + } + }, + "403": { "description": "Response if the repository is archived" }, + "503": { + "description": "Response when code scanning is not available and you should try again at a later time" + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "code-scanning" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/code-scanning/analyses": { + "get": { + "summary": "List recent code scanning analyses for a repository", + "description": "List the details of recent code scanning analyses for a repository. For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` read permission to use this endpoint.", + "operationId": "code-scanning/list-recent-analyses", + "tags": ["code-scanning"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/code-scanning/#list-recent-analyses" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "in": "query", + "description": "Set a full Git reference to list alerts for a specific branch. The `ref` must be formatted as `refs/heads/`.", + "required": false, + "schema": { + "$ref": "#/components/schemas/code-scanning-analysis-ref" + } + }, + { + "name": "tool_name", + "in": "query", + "description": "Set a single code scanning tool name to filter alerts by tool.", + "required": false, + "schema": { + "$ref": "#/components/schemas/code-scanning-analysis-tool-name" + } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/code-scanning-analysis-code-scanning-analysis" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/code-scanning-analysis-code-scanning-analysis-items" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "code-scanning" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/code-scanning/sarifs": { + "post": { + "summary": "Upload a SARIF file", + "description": "Upload a SARIF file containing the results of a code scanning analysis to make the results available in a repository.\nFor private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` write permission to use this endpoint.", + "operationId": "code-scanning/upload-sarif", + "tags": ["code-scanning"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/code-scanning/#upload-a-sarif-analysis" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "commit_sha": { + "$ref": "#/components/schemas/code-scanning-analysis-commit-sha" + }, + "ref": { + "$ref": "#/components/schemas/code-scanning-analysis-ref" + }, + "sarif": { + "$ref": "#/components/schemas/code-scanning-analysis-sarif-file" + }, + "checkout_uri": { + "description": "The base directory used in the analysis, as it appears in the SARIF file.\nThis property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository.", + "example": "file:///github/workspace/", + "type": "string", + "format": "uri" + }, + "started_at": { + "description": "The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`.", + "format": "date", + "type": "string" + }, + "tool_name": { + "$ref": "#/components/schemas/code-scanning-analysis-tool-name" + } + }, + "required": ["commit_sha", "ref", "sarif", "tool_name"] + }, + "example": { + "commit_sha": "9a450a043b9038ba86722926570d2312cff6aba8", + "ref": "refs/heads/main", + "sarif": "REPLACE_ME", + "tool_name": "codeql" + } + } + } + }, + "responses": { + "202": { "description": "response" }, + "403": { "description": "Response if the repository is archived" }, + "404": { + "description": "Response if `commit_sha` or `ref` cannot be found" + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": false, + "previews": [], + "category": "code-scanning" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/collaborators": { + "get": { + "summary": "List repository collaborators", + "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nTeam members will include the members of child teams.", + "tags": ["repos"], + "operationId": "repos/list-collaborators", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-repository-collaborators" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "affiliation", + "description": "Filter collaborators returned by their affiliation. Can be one of: \n\\* `outside`: All outside collaborators of an organization-owned repository. \n\\* `direct`: All collaborators with permissions to an organization-owned repository, regardless of organization membership status. \n\\* `all`: All collaborators the authenticated user can see.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["outside", "direct", "all"], + "default": "all" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/collaborator" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/collaborator-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "collaborators" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/collaborators/{username}": { + "get": { + "summary": "Check if a user is a repository collaborator", + "description": "For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.\n\nTeam members will include the members of child teams.", + "tags": ["repos"], + "operationId": "repos/check-collaborator", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#check-if-a-user-is-a-repository-collaborator" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Response if user is a collaborator" }, + "404": { "description": "Response if user is not a collaborator" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "collaborators" + }, + "x-octokit": {} + }, + "put": { + "summary": "Add a repository collaborator", + "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.\n\nFor more information the permission levels, see \"[Repository permission levels for an organization](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)\".\n\nNote 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/rest/overview/resources-in-the-rest-api#http-verbs).\"\n\nThe invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the [repository invitations API endpoints](https://docs.github.com/rest/reference/repos#invitations).\n\n**Rate limits**\n\nTo prevent abuse, you are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository.", + "tags": ["repos"], + "operationId": "repos/add-collaborator", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#add-a-repository-collaborator" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/username" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "permission": { + "type": "string", + "description": "The permission to grant the collaborator. **Only valid on organization-owned repositories.** Can be one of: \n\\* `pull` - can pull, but not push to or administer this repository. \n\\* `push` - can pull and push, but not administer this repository. \n\\* `admin` - can pull, push and administer this repository. \n\\* `maintain` - Recommended for project managers who need to manage the repository without access to sensitive or destructive actions. \n\\* `triage` - Recommended for contributors who need to proactively manage issues and pull requests without write access.", + "enum": ["pull", "push", "admin", "maintain", "triage"], + "default": "push" + }, + "permissions": { "type": "string", "example": "\"push\"" } + } + } + } + } + }, + "responses": { + "201": { + "description": "Response when a new invitation is created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/repository-invitation" + }, + "examples": { + "response-when-a-new-invitation-is-created": { + "$ref": "#/components/examples/repository-invitation-response-when-a-new-invitation-is-created" + } + } + } + } + }, + "204": { + "description": "Response when person is already a collaborator" + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "collaborators" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove a repository collaborator", + "description": "", + "tags": ["repos"], + "operationId": "repos/remove-collaborator", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#remove-a-repository-collaborator" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "collaborators" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/collaborators/{username}/permission": { + "get": { + "summary": "Get repository permissions for a user", + "description": "Checks the repository permission of a collaborator. The possible repository permissions are `admin`, `write`, `read`, and `none`.", + "tags": ["repos"], + "operationId": "repos/get-collaborator-permission-level", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-repository-permissions-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "200": { + "description": "Response if user has admin permissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/repository-collaborator-permission" + }, + "examples": { + "response-if-user-has-admin-permissions": { + "$ref": "#/components/examples/repository-collaborator-permission-response-if-user-has-admin-permissions" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "collaborators" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/comments": { + "get": { + "summary": "List commit comments for a repository", + "description": "Commit Comments use [these custom media types](https://docs.github.com/rest/reference/repos#custom-media-types). You can read more about the use of media types in the API [here](https://docs.github.com/rest/overview/media-types/).\n\nComments are ordered by ascending ID.", + "tags": ["repos"], + "operationId": "repos/list-commit-comments-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-commit-comments-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/commit-comment" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/commit-comment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "repos", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/comments/{comment_id}": { + "get": { + "summary": "Get a commit comment", + "description": "", + "tags": ["repos"], + "operationId": "repos/get-commit-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-commit-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/commit-comment" }, + "examples": { + "default": { "$ref": "#/components/examples/commit-comment" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "repos", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a commit comment", + "description": "", + "tags": ["repos"], + "operationId": "repos/update-commit-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#update-a-commit-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The contents of the comment" + } + }, + "required": ["body"] + }, + "example": { "body": "Nice change" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/commit-comment" }, + "examples": { + "default": { + "$ref": "#/components/examples/commit-comment-2" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a commit comment", + "description": "", + "tags": ["repos"], + "operationId": "repos/delete-commit-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-a-commit-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/comments/{comment_id}/reactions": { + "get": { + "summary": "List reactions for a commit comment", + "description": "List the reactions to a [commit comment](https://docs.github.com/rest/reference/repos#comments).", + "tags": ["reactions"], + "operationId": "reactions/list-for-commit-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#list-reactions-for-a-commit-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" }, + { + "name": "content", + "description": "Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a commit comment.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/reaction" } + }, + "examples": { + "default": { "$ref": "#/components/examples/reaction-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create reaction for a commit comment", + "description": "Create a reaction to a [commit comment](https://docs.github.com/rest/reference/repos#comments). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment.", + "tags": ["reactions"], + "operationId": "reactions/create-for-commit-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#create-reaction-for-a-commit-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the commit comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + "required": ["content"] + }, + "example": { "content": "heart" } + } + } + }, + "responses": { + "200": { + "description": "Reaction exists", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + }, + "201": { + "description": "Reaction created", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}": { + "delete": { + "summary": "Delete a commit comment reaction", + "description": "**Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id`.\n\nDelete a reaction to a [commit comment](https://docs.github.com/rest/reference/repos#comments).", + "tags": ["reactions"], + "operationId": "reactions/delete-for-commit-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#delete-a-commit-comment-reaction" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" }, + { "$ref": "#/components/parameters/reaction-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/commits": { + "get": { + "summary": "List commits", + "description": "**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |\n| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |\n| `signature` | `string` | The signature that was extracted from the commit. |\n| `payload` | `string` | The value that was signed. |\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ----- | ----------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |", + "tags": ["repos"], + "operationId": "repos/list-commits", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-commits" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "sha", + "description": "SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`).", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "path", + "description": "Only commits containing this file path will be returned.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "author", + "description": "GitHub login or email address by which to filter by commit author.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { "$ref": "#/components/parameters/since" }, + { + "name": "until", + "description": "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`.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/commit" } + }, + "examples": { + "default": { "$ref": "#/components/examples/commit-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "400": { "$ref": "#/components/responses/bad_request" }, + "404": { "$ref": "#/components/responses/not_found" }, + "409": { "$ref": "#/components/responses/conflict" }, + "500": { "$ref": "#/components/responses/internal_error" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "commits" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": { + "get": { + "summary": "List branches for HEAD commit", + "description": "Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nReturns all branches where the given commit SHA is the HEAD, or latest commit for the branch.", + "tags": ["repos"], + "operationId": "repos/list-branches-for-head-commit", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-branches-for-head-commit" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/commit_sha" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/branch-short" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/branch-short-items" + } + } + } + } + }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "groot", + "note": "Listing branches or pull requests for a commit in the Commits API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-04-11-pulls-branches-for-commit/) for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.groot-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "commits" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/commits/{commit_sha}/comments": { + "get": { + "summary": "List commit comments", + "description": "Use the `:commit_sha` to specify the commit that will have its comments listed.", + "tags": ["repos"], + "operationId": "repos/list-comments-for-commit", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-commit-comments" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/commit_sha" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/commit-comment" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/commit-comment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "repos", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a commit comment", + "description": "Create a comment for a commit using its `:commit_sha`.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.", + "tags": ["repos"], + "operationId": "repos/create-commit-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-a-commit-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/commit_sha" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The contents of the comment." + }, + "path": { + "type": "string", + "description": "Relative path of the file to comment on." + }, + "position": { + "type": "integer", + "description": "Line index in the diff to comment on." + }, + "line": { + "type": "integer", + "description": "**Deprecated**. Use **position** parameter instead. Line number in the file to comment on." + } + }, + "required": ["body"] + }, + "example": { + "body": "Great stuff", + "path": "file1.txt", + "position": 4, + "line": 1 + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/commit-comment" }, + "examples": { + "default": { "$ref": "#/components/examples/commit-comment" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/comments/1", + "schema": { "type": "string" } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/commits/{commit_sha}/pulls": { + "get": { + "summary": "List pull requests associated with a commit", + "description": "Lists all pull requests containing the provided commit SHA, which can be from any point in the commit history. The results will include open and closed pull requests. Additional preview headers may be required to see certain details for associated pull requests, such as whether a pull request is in a draft state. For more information about previews that might affect this endpoint, see the [List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests) endpoint.", + "tags": ["repos"], + "operationId": "repos/list-pull-requests-associated-with-commit", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-pull-requests-associated-with-a-commit" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/commit_sha" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/pull-request-simple" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-simple-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "groot", + "note": "Listing branches or pull requests for a commit in the Commits API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-04-11-pulls-branches-for-commit/) for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.groot-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "commits" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/commits/{ref}": { + "get": { + "summary": "Get a commit", + "description": "Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint.\n\n**Note:** If there are more than 300 files in the commit diff, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing.\n\nYou can pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property.\n\nTo return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |\n| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |\n| `signature` | `string` | The signature that was extracted from the commit. |\n| `payload` | `string` | The value that was signed. |\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ----- | ----------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |", + "tags": ["repos"], + "operationId": "repos/get-commit", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-commit" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "description": "ref+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/commit" }, + "examples": { + "default": { "$ref": "#/components/examples/commit" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" }, + "500": { "$ref": "#/components/responses/internal_error" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "commits" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/commits/{ref}/check-runs": { + "get": { + "summary": "List check runs for a Git reference", + "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array.\n\nLists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository.", + "tags": ["checks"], + "operationId": "checks/list-for-ref", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#list-check-runs-for-a-git-reference" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "description": "ref+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "$ref": "#/components/parameters/check_name" }, + { "$ref": "#/components/parameters/status" }, + { + "name": "filter", + "description": "Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["latest", "all"], + "default": "latest" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "check_runs": { + "type": "array", + "items": { "$ref": "#/components/schemas/check-run" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/check-run-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "runs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/commits/{ref}/check-suites": { + "get": { + "summary": "List check suites for a Git reference", + "description": "**Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`.\n\nLists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository.", + "tags": ["checks"], + "operationId": "checks/list-suites-for-ref", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "description": "ref+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "app_id", + "description": "Filters check suites by GitHub App `id`.", + "in": "query", + "required": false, + "schema": { "type": "integer" }, + "example": 1 + }, + { "$ref": "#/components/parameters/check_name" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "check_suites": { + "type": "array", + "items": { "$ref": "#/components/schemas/check-suite" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/check-suite-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "checks", + "subcategory": "suites" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/commits/{ref}/status": { + "get": { + "summary": "Get the combined status for a specific reference", + "description": "Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name.\n\nThe most recent status for each context is returned, up to 100. This field [paginates](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination) if there are over 100 contexts.\n\nAdditionally, a combined `state` is returned. The `state` is one of:\n\n* **failure** if any of the contexts report as `error` or `failure`\n* **pending** if there are no statuses or a context is `pending`\n* **success** if the latest status for all contexts is `success`", + "tags": ["repos"], + "operationId": "repos/get-combined-status-for-ref", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-the-combined-status-for-a-specific-reference" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "description": "ref+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/combined-commit-status" + }, + "examples": { + "default": { + "$ref": "#/components/examples/combined-commit-status" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "statuses" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/commits/{ref}/statuses": { + "get": { + "summary": "List commit statuses for a reference", + "description": "Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one.\n\nThis resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`.", + "tags": ["repos"], + "operationId": "repos/list-commit-statuses-for-ref", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-commit-statuses-for-a-reference" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "description": "ref+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/status" } + }, + "examples": { + "default": { "$ref": "#/components/examples/status-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "301": { "$ref": "#/components/responses/moved_permanently" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "statuses" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/community/code_of_conduct": { + "get": { + "summary": "Get the code of conduct for a repository", + "description": "This method returns the contents of the repository's code of conduct file, if one is detected.", + "tags": ["codes-of-conduct"], + "operationId": "codes-of-conduct/get-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/codes_of_conduct/#get-the-code-of-conduct-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/code-of-conduct" }, + "examples": { + "default": { + "$ref": "#/components/examples/code-of-conduct-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "scarlet-witch", + "note": "The Codes of Conduct API is currently available for developers to preview.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.scarlet-witch-preview+json\n```" + } + ], + "category": "codes-of-conduct", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/community/profile": { + "get": { + "summary": "Get community profile metrics", + "description": "This endpoint will return all community profile metrics, including an\noverall health score, repository description, the presence of documentation, detected\ncode of conduct, detected license, and the presence of ISSUE\\_TEMPLATE, PULL\\_REQUEST\\_TEMPLATE,\nREADME, and CONTRIBUTING files.\n\n`content_reports_enabled` is only returned for organization-owned repositories.", + "tags": ["repos"], + "operationId": "repos/get-community-profile-metrics", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-community-profile-metrics" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/community-profile" }, + "examples": { + "default": { + "$ref": "#/components/examples/community-profile" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "repos", + "subcategory": "community" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/compare/{base}...{head}": { + "get": { + "summary": "Compare two commits", + "description": "Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `:branch`.\n\nThe response from the API is equivalent to running the `git log base..head` command; however, commits are returned in chronological order. Pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.\n\nThe response also includes details on the files that were changed between the two commits. This includes the status of the change (for example, if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file.\n\n**Working with large comparisons**\n\nThe response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [List commits](https://docs.github.com/rest/reference/repos#list-commits) to enumerate all commits in the range.\n\nFor comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long\nto generate. You can typically resolve this error by using a smaller commit range.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |\n| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |\n| `signature` | `string` | The signature that was extracted from the commit. |\n| `payload` | `string` | The value that was signed. |\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ----- | ----------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |", + "tags": ["repos"], + "operationId": "repos/compare-commits", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#compare-two-commits" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "base", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "head", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/commit-comparison" }, + "examples": { + "default": { + "$ref": "#/components/examples/commit-comparison" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "500": { "$ref": "#/components/responses/internal_error" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "commits" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/contents/{path}": { + "get": { + "summary": "Get repository content", + "description": "Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit\n`:path`, you will receive the contents of all files in the repository.\n\nFiles and symlinks support [a custom media type](https://docs.github.com/rest/reference/repos#custom-media-types) for\nretrieving the raw content or rendered HTML (when supported). All content types support [a custom media\ntype](https://docs.github.com/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistent\nobject format.\n\n**Note**:\n* To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/rest/reference/git#trees).\n* This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees\nAPI](https://docs.github.com/rest/reference/git#get-a-tree).\n* This API supports files up to 1 megabyte in size.\n\n#### If the content is a directory\nThe response will be an array of objects, one object for each item in the directory.\nWhen listing the contents of a directory, submodules have their \"type\" specified as \"file\". Logically, the value\n_should_ be \"submodule\". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW).\nIn the next major version of the API, the type will be returned as \"submodule\".\n\n#### If the content is a symlink \nIf the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the\nAPI responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object \ndescribing the symlink itself.\n\n#### If the content is a submodule\nThe `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific\ncommit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out\nthe submodule at that specific commit.\n\nIf the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links[\"git\"]`) and the\ngithub.com URLs (`html_url` and `_links[\"html\"]`) will have null values.", + "tags": ["repos"], + "operationId": "repos/get-content", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-repository-content" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "path", + "description": "path+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "ref", + "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)", + "in": "query", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/vnd.github.v3.object": { + "schema": { "$ref": "#/components/schemas/content-tree" } + }, + "application/json": { + "schema": { + "oneOf": [ + { "$ref": "#/components/schemas/content-directory" }, + { "$ref": "#/components/schemas/content-file" }, + { "$ref": "#/components/schemas/content-symlink" }, + { "$ref": "#/components/schemas/content-submodule" } + ] + }, + "examples": { + "response-if-content-is-a-file": { + "$ref": "#/components/examples/content-file-response-if-content-is-a-file" + }, + "response-if-content-is-a-directory": { + "$ref": "#/components/examples/content-file-response-if-content-is-a-directory" + }, + "response-if-content-is-a-symlink": { + "$ref": "#/components/examples/content-file-response-if-content-is-a-symlink" + }, + "response-if-content-is-a-submodule": { + "$ref": "#/components/examples/content-file-response-if-content-is-a-submodule" + } + } + } + } + }, + "302": { "$ref": "#/components/responses/found" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "contents" + }, + "x-octokit": {} + }, + "put": { + "summary": "Create or update file contents", + "description": "Creates a new file or replaces an existing file in a repository.", + "tags": ["repos"], + "operationId": "repos/create-or-update-file-contents", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-or-update-file-contents" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "path", + "description": "path+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The commit message." + }, + "content": { + "type": "string", + "description": "The new file content, using Base64 encoding." + }, + "sha": { + "type": "string", + "description": "**Required if you are updating a file**. The blob SHA of the file being replaced." + }, + "branch": { + "type": "string", + "description": "The branch name. Default: the repository’s default branch (usually `master`)" + }, + "committer": { + "type": "object", + "description": "The person that committed the file. Default: the authenticated user.", + "properties": { + "name": { + "type": "string", + "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + }, + "email": { + "type": "string", + "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + }, + "date": { + "type": "string", + "example": "\"2013-01-05T13:13:22+05:00\"" + } + }, + "required": ["name", "email"] + }, + "author": { + "type": "object", + "description": "The author of the file. Default: The `committer` or the authenticated user if you omit `committer`.", + "properties": { + "name": { + "type": "string", + "description": "The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted." + }, + "email": { + "type": "string", + "description": "The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted." + }, + "date": { + "type": "string", + "example": "\"2013-01-15T17:13:22+05:00\"" + } + }, + "required": ["name", "email"] + } + }, + "required": ["message", "content"] + }, + "examples": { + "example-for-creating-a-file": { + "summary": "Example for creating a file", + "value": { + "message": "my commit message", + "committer": { + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "content": "bXkgbmV3IGZpbGUgY29udGVudHM=" + } + }, + "example-for-updating-a-file": { + "summary": "Example for updating a file", + "value": { + "message": "a new commit message", + "committer": { + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "content": "bXkgdXBkYXRlZCBmaWxlIGNvbnRlbnRz", + "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/file-commit" }, + "examples": { + "example-for-updating-a-file": { + "$ref": "#/components/examples/file-commit-example-for-updating-a-file" + } + } + } + } + }, + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/file-commit" }, + "examples": { + "example-for-creating-a-file": { + "$ref": "#/components/examples/file-commit-example-for-creating-a-file" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "409": { "$ref": "#/components/responses/conflict" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "contents" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a file", + "description": "Deletes a file in a repository.\n\nYou can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author.\n\nThe `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used.\n\nYou must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code.", + "tags": ["repos"], + "operationId": "repos/delete-file", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-a-file" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "path", + "description": "path+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The commit message." + }, + "sha": { + "type": "string", + "description": "The blob SHA of the file being replaced." + }, + "branch": { + "type": "string", + "description": "The branch name. Default: the repository’s default branch (usually `master`)" + }, + "committer": { + "type": "object", + "description": "object containing information about the committer.", + "properties": { + "name": { + "type": "string", + "description": "The name of the author (or committer) of the commit" + }, + "email": { + "type": "string", + "description": "The email of the author (or committer) of the commit" + } + } + }, + "author": { + "type": "object", + "description": "object containing information about the author.", + "properties": { + "name": { + "type": "string", + "description": "The name of the author (or committer) of the commit" + }, + "email": { + "type": "string", + "description": "The email of the author (or committer) of the commit" + } + } + } + }, + "required": ["message", "sha"] + }, + "example": { + "message": "my commit message", + "committer": { + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "sha": "329688480d39049927147c162b9d2deaf885005f" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/file-commit" }, + "examples": { + "default": { "$ref": "#/components/examples/file-commit" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "409": { "$ref": "#/components/responses/conflict" }, + "422": { "$ref": "#/components/responses/validation_failed" }, + "503": { "$ref": "#/components/responses/service_unavailable" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "contents" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/contributors": { + "get": { + "summary": "List repository contributors", + "description": "Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance.\n\nGitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information.", + "tags": ["repos"], + "operationId": "repos/list-contributors", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#list-repository-contributors" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "anon", + "description": "Set to `1` or `true` to include anonymous contributors in results.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "Response if repository contains content", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/contributor" } + }, + "examples": { + "response-if-repository-contains-content": { + "$ref": "#/components/examples/contributor-items-response-if-repository-contains-content" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "204": { "description": "Response if repository is empty" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/deployments": { + "get": { + "summary": "List deployments", + "description": "Simple filtering of deployments is available via query parameters:", + "tags": ["repos"], + "operationId": "repos/list-deployments", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-deployments" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "sha", + "description": "The SHA recorded at creation time.", + "in": "query", + "required": false, + "schema": { "type": "string", "default": "none" } + }, + { + "name": "ref", + "description": "The name of the ref. This can be a branch, tag, or SHA.", + "in": "query", + "required": false, + "schema": { "type": "string", "default": "none" } + }, + { + "name": "task", + "description": "The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`).", + "in": "query", + "required": false, + "schema": { "type": "string", "default": "none" } + }, + { + "name": "environment", + "description": "The name of the environment that was deployed to (e.g., `staging` or `production`).", + "in": "query", + "required": false, + "schema": { "type": "string", "default": "none" } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/deployment" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/deployment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "ant-man", + "note": "The `inactive` state and the `log_url`, `environment_url`, and `auto_inactive` parameters are currently available for developers to preview. Please see the [blog post](https://developer.github.com/changes/2016-04-06-deployment-and-deployment-status-enhancements) for full details.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.ant-man-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "deployments" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a deployment", + "description": "Deployments offer a few configurable parameters with certain defaults.\n\nThe `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them\nbefore we merge a pull request.\n\nThe `environment` parameter allows deployments to be issued to different runtime environments. Teams often have\nmultiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parameter\nmakes it easier to track which environments have requested deployments. The default environment is `production`.\n\nThe `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If\nthe ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds,\nthe API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will\nreturn a failure response.\n\nBy default, [commit statuses](https://docs.github.com/rest/reference/repos#statuses) for every submitted context must be in a `success`\nstate. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to\nspecify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do\nnot require any contexts or create any commit statuses, the deployment will always succeed.\n\nThe `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text\nfield that will be passed on when a deployment event is dispatched.\n\nThe `task` parameter is used by the deployment system to allow different execution paths. In the web world this might\nbe `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an\napplication with debugging enabled.\n\nUsers with `repo` or `repo_deployment` scopes can create a deployment for a given ref.\n\n#### Merged branch response\nYou will see this response when GitHub automatically merges the base branch into the topic branch instead of creating\na deployment. This auto-merge happens when:\n* Auto-merge option is enabled in the repository\n* Topic branch does not include the latest changes on the base branch, which is `master` in the response example\n* There are no merge conflicts\n\nIf there are no new commits in the base branch, a new request to create a deployment should give a successful\nresponse.\n\n#### Merge conflict response\nThis error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't\nbe merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts.\n\n#### Failed commit status checks\nThis error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success`\nstatus for the commit to be deployed, but one or more of the required contexts do not have a state of `success`.", + "tags": ["repos"], + "operationId": "repos/create-deployment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-a-deployment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ref": { + "type": "string", + "description": "The ref to deploy. This can be a branch, tag, or SHA." + }, + "task": { + "type": "string", + "description": "Specifies a task to execute (e.g., `deploy` or `deploy:migrations`).", + "default": "deploy" + }, + "auto_merge": { + "type": "boolean", + "description": "Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch.", + "default": true + }, + "required_contexts": { + "type": "array", + "description": "The [status](https://docs.github.com/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.", + "items": { "type": "string" } + }, + "payload": { + "type": "string", + "description": "JSON payload with extra information about the deployment.", + "default": "" + }, + "environment": { + "type": "string", + "description": "Name for the target deployment environment (e.g., `production`, `staging`, `qa`).", + "default": "production" + }, + "description": { + "type": "string", + "description": "Short description of the deployment.", + "default": "", + "nullable": true + }, + "transient_environment": { + "type": "boolean", + "description": "Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future. Default: `false` \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type.", + "default": false + }, + "production_environment": { + "type": "boolean", + "description": "Specifies if the given environment is one that end-users directly interact with. Default: `true` when `environment` is `production` and `false` otherwise. \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type." + }, + "created_at": { + "type": "string", + "example": "\"1776-07-04T00:00:00.000-07:52\"" + } + }, + "required": ["ref"] + }, + "examples": { + "simple-example": { + "summary": "Simple example", + "value": { + "ref": "topic-branch", + "payload": "{ \"deploy\": \"migrate\" }", + "description": "Deploy request from hubot" + } + }, + "advanced-example": { + "summary": "Advanced example", + "value": { + "ref": "topic-branch", + "auto_merge": false, + "payload": "{ \"deploy\": \"migrate\" }", + "description": "Deploy request from hubot", + "required_contexts": ["ci/janky", "security/brakeman"] + } + } + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/deployment" }, + "examples": { + "simple-example": { + "$ref": "#/components/examples/deployment-simple-example" + }, + "advanced-example": { + "$ref": "#/components/examples/deployment-advanced-example" + } + } + } + } + }, + "202": { + "description": "Merged branch response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { "message": { "type": "string" } } + }, + "examples": { + "merged-branch-response": { + "value": { + "message": "Auto-merged master into topic-branch on deployment." + } + } + } + } + } + }, + "409": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { + "type": "string", + "example": "\"https://docs.github.com/rest/reference/repos#create-a-deployment\"" + } + } + }, + "examples": { + "merge-conflict-response": { + "summary": "Merge conflict response", + "value": { + "message": "Conflict merging master into topic-branch" + } + }, + "failed-commit-status-checks": { + "summary": "Failed commit status checks", + "value": { + "message": "Conflict: Commit status checks failed for topic-branch." + } + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "ant-man", + "note": "The `inactive` state and the `log_url`, `environment_url`, and `auto_inactive` parameters are currently available for developers to preview. Please see the [blog post](https://developer.github.com/changes/2016-04-06-deployment-and-deployment-status-enhancements) for full details.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.ant-man-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "deployments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/deployments/{deployment_id}": { + "get": { + "summary": "Get a deployment", + "description": "", + "tags": ["repos"], + "operationId": "repos/get-deployment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-deployment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/deployment_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/deployment" }, + "examples": { + "default": { "$ref": "#/components/examples/deployment" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "ant-man", + "note": "The `inactive` state and the `log_url`, `environment_url`, and `auto_inactive` parameters are currently available for developers to preview. Please see the [blog post](https://developer.github.com/changes/2016-04-06-deployment-and-deployment-status-enhancements) for full details.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.ant-man-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "deployments" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a deployment", + "description": "To ensure there can always be an active deployment, you can only delete an _inactive_ deployment. Anyone with `repo` or `repo_deployment` scopes can delete an inactive deployment.\n\nTo set a deployment as inactive, you must:\n\n* Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment.\n* Mark the active deployment as inactive by adding any non-successful deployment status.\n\nFor more information, see \"[Create a deployment](https://docs.github.com/rest/reference/repos/deployments/#create-a-deployment)\" and \"[Create a deployment status](https://docs.github.com/rest/reference/repos#create-a-deployment-status).\"", + "tags": ["repos"], + "operationId": "repos/delete-deployment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-a-deployment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/deployment_id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "deployments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses": { + "get": { + "summary": "List deployment statuses", + "description": "Users with pull access can view deployment statuses for a deployment:", + "tags": ["repos"], + "operationId": "repos/list-deployment-statuses", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-deployment-statuses" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/deployment_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/deployment-status" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/deployment-status-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "flash", + "note": "New features in the Deployments API on GitHub are currently available during a public beta. Please see the [blog post](https://developer.github.com/changes/2018-10-16-deployments-environments-states-and-auto-inactive-updates/) for full details.\n\nTo access the new `environment` parameter, the two new values for the `state` parameter (`in_progress` and `queued`), and use `auto_inactive` on production deployments during the public beta period, you must provide the following custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.flash-preview+json\n```" + }, + { + "required": false, + "name": "ant-man", + "note": "The `inactive` state and the `log_url`, `environment_url`, and `auto_inactive` parameters are currently available for developers to preview. Please see the [blog post](https://developer.github.com/changes/2016-04-06-deployment-and-deployment-status-enhancements) for full details.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.ant-man-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "deployments" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a deployment status", + "description": "Users with `push` access can create deployment statuses for a given deployment.\n\nGitHub Apps require `read & write` access to \"Deployments\" and `read-only` access to \"Repo contents\" (for private repos). OAuth Apps require the `repo_deployment` scope.", + "tags": ["repos"], + "operationId": "repos/create-deployment-status", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-a-deployment-status" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/deployment_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "state": { + "type": "string", + "description": "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/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/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.", + "enum": [ + "error", + "failure", + "inactive", + "in_progress", + "queued", + "pending", + "success" + ] + }, + "target_url": { + "type": "string", + "description": "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`.", + "default": "" + }, + "log_url": { + "type": "string", + "description": "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: `\"\"` \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type.", + "default": "" + }, + "description": { + "type": "string", + "description": "A short description of the status. The maximum description length is 140 characters.", + "default": "" + }, + "environment": { + "type": "string", + "description": "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/rest/overview/api-previews#deployment-statuses) custom media type.", + "enum": ["production", "staging", "qa"] + }, + "environment_url": { + "type": "string", + "description": "Sets the URL for accessing your environment. Default: `\"\"` \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type.", + "default": "" + }, + "auto_inactive": { + "type": "boolean", + "description": "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` \n**Note:** To add an `inactive` status to `production` environments, you must use the [`application/vnd.github.flash-preview+json`](https://docs.github.com/rest/overview/api-previews#deployment-statuses) custom media type. \n**Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type." + } + }, + "required": ["state"] + }, + "example": { + "environment": "production", + "state": "success", + "log_url": "https://example.com/deployment/42/output", + "description": "Deployment finished successfully." + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/deployment-status" }, + "examples": { + "default": { + "$ref": "#/components/examples/deployment-status" + } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/example/deployments/42/statuses/1", + "schema": { "type": "string" } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "flash", + "note": "New features in the Deployments API on GitHub are currently available during a public beta. Please see the [blog post](https://developer.github.com/changes/2018-10-16-deployments-environments-states-and-auto-inactive-updates/) for full details.\n\nTo access the new `environment` parameter, the two new values for the `state` parameter (`in_progress` and `queued`), and use `auto_inactive` on production deployments during the public beta period, you must provide the following custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.flash-preview+json\n```" + }, + { + "required": false, + "name": "ant-man", + "note": "The `inactive` state and the `log_url`, `environment_url`, and `auto_inactive` parameters are currently available for developers to preview. Please see the [blog post](https://developer.github.com/changes/2016-04-06-deployment-and-deployment-status-enhancements) for full details.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.ant-man-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "deployments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": { + "get": { + "summary": "Get a deployment status", + "description": "Users with pull access can view a deployment status for a deployment:", + "tags": ["repos"], + "operationId": "repos/get-deployment-status", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-deployment-status" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/deployment_id" }, + { + "name": "status_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/deployment-status" }, + "examples": { + "default": { + "$ref": "#/components/examples/deployment-status" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "flash", + "note": "New features in the Deployments API on GitHub are currently available during a public beta. Please see the [blog post](https://developer.github.com/changes/2018-10-16-deployments-environments-states-and-auto-inactive-updates/) for full details.\n\nTo access the new `environment` parameter, the two new values for the `state` parameter (`in_progress` and `queued`), and use `auto_inactive` on production deployments during the public beta period, you must provide the following custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.flash-preview+json\n```" + }, + { + "required": false, + "name": "ant-man", + "note": "The `inactive` state and the `log_url`, `environment_url`, and `auto_inactive` parameters are currently available for developers to preview. Please see the [blog post](https://developer.github.com/changes/2016-04-06-deployment-and-deployment-status-enhancements) for full details.\n\nTo access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.ant-man-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "deployments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/dispatches": { + "post": { + "summary": "Create a repository dispatch event", + "description": "You can use this endpoint to trigger a webhook event called `repository_dispatch` when you want activity that happens outside of GitHub to trigger a GitHub Actions workflow or GitHub App webhook. You must configure your GitHub Actions workflow or GitHub App to run when the `repository_dispatch` event occurs. For an example `repository_dispatch` webhook payload, see \"[RepositoryDispatchEvent](https://docs.github.com/webhooks/event-payloads/#repository_dispatch).\"\n\nThe `client_payload` parameter is available for any extra information that your workflow might need. This parameter is a JSON payload that will be passed on when the webhook event is dispatched. For example, the `client_payload` can include a message that a user would like to send using a GitHub Actions workflow. Or the `client_payload` can be used as a test to debug your workflow.\n\nTo give you write access to the repository, you must use a personal access token with the `repo` scope. For more information, see \"[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line)\" in the GitHub Help documentation.\n\nThis input example shows how you can use the `client_payload` as a test to debug your workflow.", + "tags": ["repos"], + "operationId": "repos/create-dispatch-event", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#create-a-repository-dispatch-event" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["event_type"], + "properties": { + "event_type": { + "type": "string", + "description": "A custom webhook event name." + }, + "client_payload": { + "type": "object", + "description": "JSON payload with extra information about the webhook event that your action or worklow may use.", + "additionalProperties": true + } + } + }, + "example": { + "event_type": "on-demand-test", + "client_payload": { "unit": false, "integration": true } + } + } + } + }, + "responses": { + "204": { "description": "Empty response" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/events": { + "get": { + "summary": "List repository events", + "description": "", + "tags": ["activity"], + "operationId": "activity/list-repo-events", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-repository-events" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/event" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/forks": { + "get": { + "summary": "List forks", + "description": "", + "tags": ["repos"], + "operationId": "repos/list-forks", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-forks" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "sort", + "description": "The sort order. Can be either `newest`, `oldest`, or `stargazers`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["newest", "oldest", "stargazers"], + "default": "newest" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/minimal-repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/minimal-repository-items-2" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "400": { "$ref": "#/components/responses/bad_request" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "forks" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a fork", + "description": "Create a fork for the authenticated user.\n\n**Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Support](https://github.com/contact) or [GitHub Premium Support](https://premium.githubsupport.com).", + "tags": ["repos"], + "operationId": "repos/create-fork", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-a-fork" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "organization": { + "type": "string", + "description": "Optional parameter to specify the organization name if forking into an organization." + } + } + } + } + } + }, + "responses": { + "202": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/repository" }, + "examples": { + "default": { "$ref": "#/components/examples/repository" } + } + } + } + }, + "400": { "$ref": "#/components/responses/bad_request" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "forks" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/blobs": { + "post": { + "summary": "Create a blob", + "description": "", + "tags": ["git"], + "operationId": "git/create-blob", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#create-a-blob" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The new blob's content." + }, + "encoding": { + "type": "string", + "description": "The encoding used for `content`. Currently, `\"utf-8\"` and `\"base64\"` are supported.", + "default": "utf-8" + } + }, + "required": ["content"] + }, + "example": { + "content": "Content of the blob", + "encoding": "utf-8" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/short-blob" }, + "examples": { + "default": { "$ref": "#/components/examples/short-blob" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/example/git/blobs/3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15", + "schema": { "type": "string" } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "409": { "$ref": "#/components/responses/conflict" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "blobs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/blobs/{file_sha}": { + "get": { + "summary": "Get a blob", + "description": "The `content` in the response will always be Base64 encoded.\n\n_Note_: This API supports blobs up to 100 megabytes in size.", + "tags": ["git"], + "operationId": "git/get-blob", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#get-a-blob" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "file_sha", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/blob" }, + "examples": { + "default": { "$ref": "#/components/examples/blob" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "blobs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/commits": { + "post": { + "summary": "Create a commit", + "description": "Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |\n| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |\n| `signature` | `string` | The signature that was extracted from the commit. |\n| `payload` | `string` | The value that was signed. |\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ----- | ----------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |", + "tags": ["git"], + "operationId": "git/create-commit", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#create-a-commit" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The commit message" + }, + "tree": { + "type": "string", + "description": "The SHA of the tree object this commit points to" + }, + "parents": { + "type": "array", + "description": "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.", + "items": { "type": "string" } + }, + "author": { + "type": "object", + "description": "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.", + "properties": { + "name": { + "type": "string", + "description": "The name of the author (or committer) of the commit" + }, + "email": { + "type": "string", + "description": "The email of the author (or committer) of the commit" + }, + "date": { + "type": "string", + "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." + } + } + }, + "committer": { + "type": "object", + "description": "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.", + "properties": { + "name": { + "type": "string", + "description": "The name of the author (or committer) of the commit" + }, + "email": { + "type": "string", + "description": "The email of the author (or committer) of the commit" + }, + "date": { + "type": "string", + "description": "Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." + } + } + }, + "signature": { + "type": "string", + "description": "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." + } + }, + "required": ["message", "tree"] + }, + "example": { + "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" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/git-commit" }, + "examples": { + "default": { "$ref": "#/components/examples/git-commit" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd", + "schema": { "type": "string" } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "commits" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/commits/{commit_sha}": { + "get": { + "summary": "Get a commit", + "description": "Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects).\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |\n| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |\n| `signature` | `string` | The signature that was extracted from the commit. |\n| `payload` | `string` | The value that was signed. |\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ----- | ----------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |", + "tags": ["git"], + "operationId": "git/get-commit", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#get-a-commit" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/commit_sha" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/git-commit" }, + "examples": { + "default": { "$ref": "#/components/examples/git-commit-2" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "commits" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/matching-refs/{ref}": { + "get": { + "summary": "List matching references", + "description": "Returns an array of references from your Git database that match the supplied name. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be returned as an array.\n\nWhen you use this endpoint without providing a `:ref`, it will return an array of all the references from your Git database, including notes and stashes if they exist on the server. Anything in the namespace is returned, not just `heads` and `tags`.\n\n**Note:** You need to explicitly [request a pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see \"[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)\".\n\nIf you request matching references for a branch named `feature` but the branch `feature` doesn't exist, the response can still include other matching head refs that start with the word `feature`, such as `featureA` and `featureB`.", + "tags": ["git"], + "operationId": "git/list-matching-refs", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#list-matching-references" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "description": "ref+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/git-ref" } + }, + "examples": { + "default": { "$ref": "#/components/examples/git-ref-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "refs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/ref/{ref}": { + "get": { + "summary": "Get a reference", + "description": "Returns a single reference from your Git database. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't match an existing ref, a `404` is returned.\n\n**Note:** You need to explicitly [request a pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see \"[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)\".", + "tags": ["git"], + "operationId": "git/get-ref", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#get-a-reference" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "description": "ref+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/git-ref" }, + "examples": { + "default": { "$ref": "#/components/examples/git-ref" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "refs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/refs": { + "post": { + "summary": "Create a reference", + "description": "Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches.", + "tags": ["git"], + "operationId": "git/create-ref", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#create-a-reference" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "ref": { + "type": "string", + "description": "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": { + "type": "string", + "description": "The SHA1 value for this reference." + }, + "key": { + "type": "string", + "example": "\"refs/heads/newbranch\"" + } + }, + "required": ["ref", "sha"] + }, + "example": { + "ref": "refs/heads/featureA", + "sha": "aa218f56b14c9653891f9e74264a383fa43fefbd" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/git-ref" }, + "examples": { + "default": { "$ref": "#/components/examples/git-ref" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA", + "schema": { "type": "string" } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "refs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/refs/{ref}": { + "patch": { + "summary": "Update a reference", + "description": "", + "tags": ["git"], + "operationId": "git/update-ref", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#update-a-reference" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "description": "ref+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "sha": { + "type": "string", + "description": "The SHA1 value to set this reference to" + }, + "force": { + "type": "boolean", + "description": "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.", + "default": false + } + }, + "required": ["sha"] + }, + "example": { + "sha": "aa218f56b14c9653891f9e74264a383fa43fefbd", + "force": true + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/git-ref" }, + "examples": { + "default": { "$ref": "#/components/examples/git-ref" } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "refs" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a reference", + "description": "", + "tags": ["git"], + "operationId": "git/delete-ref", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#delete-a-reference" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "description": "ref+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "204": { "description": "Empty response" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "refs" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/tags": { + "post": { + "summary": "Create a tag object", + "description": "Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/rest/reference/git#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/rest/reference/git#create-a-reference) the tag reference - this call would be unnecessary.\n\n**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |\n| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |\n| `signature` | `string` | The signature that was extracted from the commit. |\n| `payload` | `string` | The value that was signed. |\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ----- | ----------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |", + "tags": ["git"], + "operationId": "git/create-tag", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#create-a-tag-object" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "tag": { + "type": "string", + "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\")." + }, + "message": { + "type": "string", + "description": "The tag message." + }, + "object": { + "type": "string", + "description": "The SHA of the git object this is tagging." + }, + "type": { + "type": "string", + "description": "The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`.", + "enum": ["commit", "tree", "blob"] + }, + "tagger": { + "type": "object", + "description": "An object with information about the individual creating the tag.", + "properties": { + "name": { + "type": "string", + "description": "The name of the author of the tag" + }, + "email": { + "type": "string", + "description": "The email of the author of the tag" + }, + "date": { + "type": "string", + "description": "When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." + } + } + } + }, + "required": ["tag", "message", "object", "type"] + }, + "example": { + "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" + } + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/git-tag" }, + "examples": { + "default": { "$ref": "#/components/examples/git-tag" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac", + "schema": { "type": "string" } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "tags" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/tags/{tag_sha}": { + "get": { + "summary": "Get a tag", + "description": "**Signature verification object**\n\nThe response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object:\n\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. |\n| `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. |\n| `signature` | `string` | The signature that was extracted from the commit. |\n| `payload` | `string` | The value that was signed. |\n\nThese are the possible values for `reason` in the `verification` object:\n\n| Value | Description |\n| ----- | ----------- |\n| `expired_key` | The key that made the signature is expired. |\n| `not_signing_key` | The \"signing\" flag is not among the usage flags in the GPG key that made the signature. |\n| `gpgverify_error` | There was an error communicating with the signature verification service. |\n| `gpgverify_unavailable` | The signature verification service is currently unavailable. |\n| `unsigned` | The object does not include a signature. |\n| `unknown_signature_type` | A non-PGP signature was found in the commit. |\n| `no_user` | No user was associated with the `committer` email address in the commit. |\n| `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. |\n| `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. |\n| `unknown_key` | The key that made the signature has not been registered with any user's account. |\n| `malformed_signature` | There was an error parsing the signature. |\n| `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. |\n| `valid` | None of the above errors applied, so the signature is considered to be verified. |", + "tags": ["git"], + "operationId": "git/get-tag", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#get-a-tag" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "tag_sha", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/git-tag" }, + "examples": { + "default": { "$ref": "#/components/examples/git-tag" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "tags" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/trees": { + "post": { + "summary": "Create a tree", + "description": "The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure.\n\nIf you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see \"[Create a commit](https://docs.github.com/rest/reference/git#create-a-commit)\" and \"[Update a reference](https://docs.github.com/rest/reference/git#update-a-reference).\"", + "tags": ["git"], + "operationId": "git/create-tree", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#create-a-tree" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "tree": { + "type": "array", + "description": "Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure.", + "items": { + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "The file referenced in the tree." + }, + "mode": { + "type": "string", + "description": "The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink.", + "enum": [ + "100644", + "100755", + "040000", + "160000", + "120000" + ] + }, + "type": { + "type": "string", + "description": "Either `blob`, `tree`, or `commit`.", + "enum": ["blob", "tree", "commit"] + }, + "sha": { + "type": "string", + "description": "The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error.", + "nullable": true + }, + "content": { + "type": "string", + "description": "The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. \n \n**Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error." + } + } + } + }, + "base_tree": { + "type": "string", + "description": "The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted." + } + }, + "required": ["tree"] + }, + "example": { + "base_tree": "9fb037999f264ba9a7fc6274d15fa3ae2ab98312", + "tree": [ + { + "path": "file.rb", + "mode": "100644", + "type": "blob", + "sha": "44b4fc6d56897b048c772eb4087f854f46256132" + } + ] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/git-tree" }, + "examples": { + "default": { "$ref": "#/components/examples/git-tree" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/trees/cd8274d15fa3ae2ab983129fb037999f264ba9a7", + "schema": { "type": "string" } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "trees" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/git/trees/{tree_sha}": { + "get": { + "summary": "Get a tree", + "description": "Returns a single tree using the SHA1 value for that tree.\n\nIf `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time.", + "tags": ["git"], + "operationId": "git/get-tree", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/git#get-a-tree" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "tree_sha", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "recursive", + "description": "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.", + "in": "query", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/git-tree" }, + "examples": { + "default-response": { + "$ref": "#/components/examples/git-tree-default-response" + }, + "response-recursively-retrieving-a-tree": { + "$ref": "#/components/examples/git-tree-response-recursively-retrieving-a-tree" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "git", + "subcategory": "trees" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/hooks": { + "get": { + "summary": "List repository webhooks", + "description": "", + "tags": ["repos"], + "operationId": "repos/list-webhooks", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-repository-webhooks" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/hook" } + }, + "examples": { + "default": { "$ref": "#/components/examples/hook-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "webhooks" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a repository webhook", + "description": "Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can\nshare the same `config` as long as those webhooks do not have any `events` that overlap.", + "tags": ["repos"], + "operationId": "repos/create-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-a-repository-webhook" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`." + }, + "config": { + "type": "object", + "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/rest/reference/repos#create-hook-config-params).", + "properties": { + "url": { + "$ref": "#/components/schemas/webhook-config-url" + }, + "content_type": { + "$ref": "#/components/schemas/webhook-config-content-type" + }, + "secret": { + "$ref": "#/components/schemas/webhook-config-secret" + }, + "insecure_ssl": { + "$ref": "#/components/schemas/webhook-config-insecure-ssl" + }, + "token": { "type": "string", "example": "\"abc\"" }, + "digest": { "type": "string", "example": "\"md5\"" } + }, + "required": ["url"] + }, + "events": { + "type": "array", + "description": "Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for.", + "default": ["push"], + "items": { "type": "string" } + }, + "active": { + "type": "boolean", + "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + "default": true + } + }, + "required": ["config"] + }, + "example": { + "name": "web", + "active": true, + "events": ["push", "pull_request"], + "config": { + "url": "https://example.com/webhook", + "content_type": "json", + "insecure_ssl": "0" + } + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/hook" }, + "examples": { + "default": { "$ref": "#/components/examples/hook" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678", + "schema": { "type": "string" } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "webhooks" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/hooks/{hook_id}": { + "get": { + "summary": "Get a repository webhook", + "description": "Returns a webhook configured in a repository. To get only the webhook `config` properties, see \"[Get a webhook configuration for a repository](/rest/reference/repos#get-a-webhook-configuration-for-a-repository).\"", + "tags": ["repos"], + "operationId": "repos/get-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-repository-webhook" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/hook" }, + "examples": { + "default": { "$ref": "#/components/examples/hook" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "webhooks" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a repository webhook", + "description": "Updates a webhook configured in a repository. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. If you are only updating individual webhook `config` properties, use \"[Update a webhook configuration for a repository](/rest/reference/repos#update-a-webhook-configuration-for-a-repository).\"", + "tags": ["repos"], + "operationId": "repos/update-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#update-a-repository-webhook" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "config": { + "type": "object", + "description": "Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/rest/reference/repos#create-hook-config-params).", + "properties": { + "url": { + "$ref": "#/components/schemas/webhook-config-url" + }, + "content_type": { + "$ref": "#/components/schemas/webhook-config-content-type" + }, + "secret": { + "$ref": "#/components/schemas/webhook-config-secret" + }, + "insecure_ssl": { + "$ref": "#/components/schemas/webhook-config-insecure-ssl" + }, + "address": { + "type": "string", + "example": "\"bar@example.com\"" + }, + "room": { + "type": "string", + "example": "\"The Serious Room\"" + } + }, + "required": ["url"] + }, + "events": { + "type": "array", + "description": "Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events.", + "default": ["push"], + "items": { "type": "string" } + }, + "add_events": { + "type": "array", + "description": "Determines a list of events to be added to the list of events that the Hook triggers for.", + "items": { "type": "string" } + }, + "remove_events": { + "type": "array", + "description": "Determines a list of events to be removed from the list of events that the Hook triggers for.", + "items": { "type": "string" } + }, + "active": { + "type": "boolean", + "description": "Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications.", + "default": true + } + } + }, + "example": { "active": true, "add_events": ["pull_request"] } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/hook" }, + "examples": { + "default": { "$ref": "#/components/examples/hook" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "webhooks" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a repository webhook", + "description": "", + "tags": ["repos"], + "operationId": "repos/delete-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-a-repository-webhook" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "webhooks" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/hooks/{hook_id}/config": { + "get": { + "summary": "Get a webhook configuration for a repository", + "description": "Returns the webhook configuration for a repository. To get more information about the webhook, including the `active` state and `events`, use \"[Get a repository webhook](/rest/reference/orgs#get-a-repository-webhook).\"\n\nAccess tokens must have the `read:repo_hook` or `repo` scope, and GitHub Apps must have the `repository_hooks:read` permission.", + "tags": ["repos"], + "operationId": "repos/get-webhook-config-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos#get-a-webhook-configuration-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "responses": { + "200": { + "description": "Default response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/webhook-config" }, + "examples": { + "default": { "$ref": "#/components/examples/webhook-config" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "webhooks" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a webhook configuration for a repository", + "description": "Updates the webhook configuration for a repository. To update more information about the webhook, including the `active` state and `events`, use \"[Update a repository webhook](/rest/reference/orgs#update-a-repository-webhook).\"\n\nAccess tokens must have the `write:repo_hook` or `repo` scope, and GitHub Apps must have the `repository_hooks:write` permission.", + "tags": ["repos"], + "operationId": "repos/update-webhook-config-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos#update-a-webhook-configuration-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "url": { "$ref": "#/components/schemas/webhook-config-url" }, + "content_type": { + "$ref": "#/components/schemas/webhook-config-content-type" + }, + "secret": { + "$ref": "#/components/schemas/webhook-config-secret" + }, + "insecure_ssl": { + "$ref": "#/components/schemas/webhook-config-insecure-ssl" + } + }, + "example": { + "content_type": "json", + "insecure_ssl": "0", + "secret": "********", + "url": "https://example.com/webhook" + } + } + } + } + }, + "responses": { + "200": { + "description": "Default response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/webhook-config" }, + "examples": { + "default": { "$ref": "#/components/examples/webhook-config" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "webhooks" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/hooks/{hook_id}/pings": { + "post": { + "summary": "Ping a repository webhook", + "description": "This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the hook.", + "tags": ["repos"], + "operationId": "repos/ping-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#ping-a-repository-webhook" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "webhooks" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/hooks/{hook_id}/tests": { + "post": { + "summary": "Test the push repository webhook", + "description": "This will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated.\n\n**Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test`", + "tags": ["repos"], + "operationId": "repos/test-push-webhook", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#test-the-push-repository-webhook" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/hook-id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "webhooks" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/import": { + "get": { + "summary": "Get an import status", + "description": "View the progress of an import.\n\n**Import status**\n\nThis section includes details about the possible values of the `status` field of the Import Progress response.\n\nAn import that does not have errors will progress through these steps:\n\n* `detecting` - the \"detection\" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL.\n* `importing` - the \"raw\" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import).\n* `mapping` - the \"rewrite\" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information.\n* `pushing` - the \"push\" step of the import is in progress. This is where the importer updates the repository on GitHub. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is \"Writing objects\".\n* `complete` - the import is complete, and the repository is ready on GitHub.\n\nIf there are problems, you will see one of these in the `status` field:\n\n* `auth_failed` - the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update an import](https://docs.github.com/rest/reference/migrations#update-an-import) section.\n* `error` - the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub Support](https://github.com/contact) or [GitHub Premium Support](https://premium.githubsupport.com) for more information.\n* `detection_needs_auth` - the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update an import](https://docs.github.com/rest/reference/migrations#update-an-import) section.\n* `detection_found_nothing` - the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](https://docs.github.com/rest/reference/migrations#cancel-an-import) and [retry](https://docs.github.com/rest/reference/migrations#start-an-import) with the correct URL.\n* `detection_found_multiple` - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update an import](https://docs.github.com/rest/reference/migrations#update-an-import) section.\n\n**The project_choices field**\n\nWhen multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type.\n\n**Git LFS related fields**\n\nThis section includes details about Git LFS related fields that may be present in the Import Progress response.\n\n* `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken.\n* `has_large_files` - the boolean value describing whether files larger than 100MB were found during the `importing` step.\n* `large_files_size` - the total size in gigabytes of files larger than 100MB found in the originating repository.\n* `large_files_count` - the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a \"Get Large Files\" request.", + "tags": ["migrations"], + "operationId": "migrations/get-import-status", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#get-an-import-status" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/import" }, + "examples": { + "default": { "$ref": "#/components/examples/import" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "migrations", + "subcategory": "source-imports" + }, + "x-octokit": {} + }, + "put": { + "summary": "Start an import", + "description": "Start a source import to a GitHub repository using GitHub Importer.", + "tags": ["migrations"], + "operationId": "migrations/start-import", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#start-an-import" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "vcs_url": { + "type": "string", + "description": "The URL of the originating repository." + }, + "vcs": { + "type": "string", + "description": "The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response.", + "enum": ["subversion", "git", "mercurial", "tfvc"] + }, + "vcs_username": { + "type": "string", + "description": "If authentication is required, the username to provide to `vcs_url`." + }, + "vcs_password": { + "type": "string", + "description": "If authentication is required, the password to provide to `vcs_url`." + }, + "tfvc_project": { + "type": "string", + "description": "For a tfvc import, the name of the project that is being imported." + } + }, + "required": ["vcs_url"] + }, + "example": { + "vcs": "subversion", + "vcs_url": "http://svn.mycompany.com/svn/myproject", + "vcs_username": "octocat", + "vcs_password": "secret" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/import" }, + "examples": { + "default": { "$ref": "#/components/examples/import-2" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/spraints/socm/import", + "schema": { "type": "string" } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "migrations", + "subcategory": "source-imports" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an import", + "description": "An import can be updated with credentials or a project choice by passing in the appropriate parameters in this API\nrequest. If no parameters are provided, the import will be restarted.", + "tags": ["migrations"], + "operationId": "migrations/update-import", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#update-an-import" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "vcs_username": { + "type": "string", + "description": "The username to provide to the originating repository." + }, + "vcs_password": { + "type": "string", + "description": "The password to provide to the originating repository." + }, + "vcs": { "type": "string", "example": "\"git\"" }, + "tfvc_project": { + "type": "string", + "example": "\"project1\"" + } + } + }, + "examples": { + "example-1": { + "summary": "Example 1", + "value": { + "vcs_username": "octocat", + "vcs_password": "secret" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/import" }, + "examples": { + "example-1": { + "$ref": "#/components/examples/import-example-1" + }, + "example-2": { + "$ref": "#/components/examples/import-example-2" + }, + "response": { + "$ref": "#/components/examples/import-response" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "migrations", + "subcategory": "source-imports" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Cancel an import", + "description": "Stop an import for a repository.", + "tags": ["migrations"], + "operationId": "migrations/cancel-import", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#cancel-an-import" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "migrations", + "subcategory": "source-imports" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/import/authors": { + "get": { + "summary": "Get commit authors", + "description": "Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot `.\n\nThis endpoint and the [Map a commit author](https://docs.github.com/rest/reference/migrations#map-a-commit-author) endpoint allow you to provide correct Git author information.", + "tags": ["migrations"], + "operationId": "migrations/get-commit-authors", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#get-commit-authors" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/since-user" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/porter-author" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/porter-author-items" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "migrations", + "subcategory": "source-imports" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/import/authors/{author_id}": { + "patch": { + "summary": "Map a commit author", + "description": "Update an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository.", + "tags": ["migrations"], + "operationId": "migrations/map-commit-author", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#map-a-commit-author" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "author_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "email": { + "type": "string", + "description": "The new Git author email." + }, + "name": { + "type": "string", + "description": "The new Git author name." + }, + "remote_id": { + "type": "string", + "example": "\"can't touch this\"" + } + } + }, + "example": { + "email": "hubot@github.com", + "name": "Hubot the Robot" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/porter-author" }, + "examples": { + "default": { "$ref": "#/components/examples/porter-author" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "migrations", + "subcategory": "source-imports" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/import/large_files": { + "get": { + "summary": "Get large files", + "description": "List files larger than 100MB found during the import", + "tags": ["migrations"], + "operationId": "migrations/get-large-files", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#get-large-files" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/porter-large-file" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/porter-large-file-items" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "migrations", + "subcategory": "source-imports" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/import/lfs": { + "patch": { + "summary": "Update Git LFS preference", + "description": "You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability is powered by [Git LFS](https://git-lfs.github.com). You can learn more about our LFS feature and working with large files [on our help site](https://help.github.com/articles/versioning-large-files/).", + "tags": ["migrations"], + "operationId": "migrations/set-lfs-preference", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#update-git-lfs-preference" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "use_lfs": { + "type": "string", + "description": "Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import).", + "enum": ["opt_in", "opt_out"] + } + }, + "required": ["use_lfs"] + }, + "example": { "use_lfs": "opt_in" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/import" }, + "examples": { + "default": { "$ref": "#/components/examples/import" } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "migrations", + "subcategory": "source-imports" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/installation": { + "get": { + "summary": "Get a repository installation for the authenticated app", + "description": "Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/get-repo-installation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#get-a-repository-installation-for-the-authenticated-app" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/installation" }, + "examples": { + "default": { "$ref": "#/components/examples/installation" } + } + } + } + }, + "301": { "$ref": "#/components/responses/moved_permanently" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/interaction-limits": { + "get": { + "summary": "Get interaction restrictions for a repository", + "description": "Shows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response.", + "tags": ["interactions"], + "operationId": "interactions/get-restrictions-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/interaction-limit-response" + }, + "examples": { + "default": { + "$ref": "#/components/examples/interaction-limit-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "interactions", + "subcategory": "repos" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set interaction restrictions for a repository", + "description": "Temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository.", + "tags": ["interactions"], + "operationId": "interactions/set-restrictions-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/interaction-limit" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/interaction-limit-response" + }, + "examples": { + "default": { + "$ref": "#/components/examples/interaction-limit-2" + } + } + } + } + }, + "409": { "description": "Conflict" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "interactions", + "subcategory": "repos" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove interaction restrictions for a repository", + "description": "Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. If the interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository.", + "tags": ["interactions"], + "operationId": "interactions/remove-restrictions-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "204": { "description": "Empty response" }, + "409": { "description": "Conflict" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "interactions", + "subcategory": "repos" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/invitations": { + "get": { + "summary": "List repository invitations", + "description": "When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations.", + "tags": ["repos"], + "operationId": "repos/list-invitations", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-repository-invitations" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/repository-invitation" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/repository-invitation-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "invitations" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/invitations/{invitation_id}": { + "patch": { + "summary": "Update a repository invitation", + "description": "", + "tags": ["repos"], + "operationId": "repos/update-invitation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#update-a-repository-invitation" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/invitation_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "permissions": { + "type": "string", + "description": "The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`.", + "enum": ["read", "write", "maintain", "triage", "admin"] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/repository-invitation" + }, + "examples": { + "default": { + "$ref": "#/components/examples/repository-invitation" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "invitations" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a repository invitation", + "description": "", + "tags": ["repos"], + "operationId": "repos/delete-invitation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-a-repository-invitation" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/invitation_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "invitations" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues": { + "get": { + "summary": "List repository issues", + "description": "List issues in a repository.\n\n**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this\nreason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by\nthe `pull_request` key. Be aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull\nrequest id, use the \"[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)\" endpoint.", + "tags": ["issues"], + "operationId": "issues/list-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/issues/#list-repository-issues" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "milestone", + "description": "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.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "state", + "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["open", "closed", "all"], + "default": "open" + } + }, + { + "name": "assignee", + "description": "Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "creator", + "description": "The user that created the issue.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "mentioned", + "description": "A user that's mentioned in the issue.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { "$ref": "#/components/parameters/labels" }, + { + "name": "sort", + "description": "What to sort results by. Can be either `created`, `updated`, `comments`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["created", "updated", "comments"], + "default": "created" + } + }, + { "$ref": "#/components/parameters/direction" }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/issue-simple" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/issue-simple-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "301": { "$ref": "#/components/responses/moved_permanently" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "issues", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create an issue", + "description": "Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://help.github.com/articles/disabling-issues/), the API returns a `410 Gone` status.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.", + "tags": ["issues"], + "operationId": "issues/create", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/issues/#create-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The title of the issue." + }, + "body": { + "type": "string", + "description": "The contents of the issue." + }, + "assignee": { + "type": "string", + "description": "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.**_", + "nullable": true + }, + "milestone": { + "type": "integer", + "description": "The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._", + "nullable": true + }, + "labels": { + "type": "array", + "description": "Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._", + "items": { + "oneOf": [ + { "type": "string" }, + { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "color": { "type": "string" } + } + } + ] + } + }, + "assignees": { + "type": "array", + "description": "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._", + "items": { "type": "string" } + } + }, + "required": ["title"] + }, + "example": { + "title": "Found a bug", + "body": "I'm having a problem with this.", + "assignees": ["octocat"], + "milestone": 1, + "labels": ["bug"] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/issue" }, + "examples": { + "default": { "$ref": "#/components/examples/issue" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "schema": { "type": "string" } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed" }, + "503": { "$ref": "#/components/responses/service_unavailable" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/comments": { + "get": { + "summary": "List issue comments for a repository", + "description": "By default, Issue Comments are ordered by ascending ID.", + "tags": ["issues"], + "operationId": "issues/list-comments-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#list-issue-comments-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/sort" }, + { + "name": "direction", + "description": "Either `asc` or `desc`. Ignored without the `sort` parameter.", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["asc", "desc"] } + }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/issue-comment" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/issue-comment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "issues", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/comments/{comment_id}": { + "get": { + "summary": "Get an issue comment", + "description": "", + "tags": ["issues"], + "operationId": "issues/get-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#get-an-issue-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/issue-comment" }, + "examples": { + "default": { "$ref": "#/components/examples/issue-comment" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "issues", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an issue comment", + "description": "", + "tags": ["issues"], + "operationId": "issues/update-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#update-an-issue-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The contents of the comment." + } + }, + "required": ["body"] + }, + "example": { "body": "Me too" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/issue-comment" }, + "examples": { + "default": { "$ref": "#/components/examples/issue-comment" } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete an issue comment", + "description": "", + "tags": ["issues"], + "operationId": "issues/delete-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#delete-an-issue-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": { + "get": { + "summary": "List reactions for an issue comment", + "description": "List the reactions to an [issue comment](https://docs.github.com/rest/reference/issues#comments).", + "tags": ["reactions"], + "operationId": "reactions/list-for-issue-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#list-reactions-for-an-issue-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" }, + { + "name": "content", + "description": "Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue comment.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/reaction" } + }, + "examples": { + "default": { "$ref": "#/components/examples/reaction-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create reaction for an issue comment", + "description": "Create a reaction to an [issue comment](https://docs.github.com/rest/reference/issues#comments). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment.", + "tags": ["reactions"], + "operationId": "reactions/create-for-issue-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#create-reaction-for-an-issue-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the issue comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + "required": ["content"] + }, + "example": { "content": "heart" } + } + } + }, + "responses": { + "200": { + "description": "Reaction exists", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + }, + "201": { + "description": "Reaction created", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}": { + "delete": { + "summary": "Delete an issue comment reaction", + "description": "**Note:** You can also specify a repository by `repository_id` using the route `DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id`.\n\nDelete a reaction to an [issue comment](https://docs.github.com/rest/reference/issues#comments).", + "tags": ["reactions"], + "operationId": "reactions/delete-for-issue-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#delete-an-issue-comment-reaction" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" }, + { "$ref": "#/components/parameters/reaction-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/events": { + "get": { + "summary": "List issue events for a repository", + "description": "", + "tags": ["issues"], + "operationId": "issues/list-events-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#list-issue-events-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/issue-event" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/issue-event-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "starfox", + "note": "Project card details are now shown in REST API v3 responses for project-related issue and timeline events. This feature is now available for developers to preview. For details, see the [blog post](https://developer.github.com/changes/2018-09-05-project-card-events).\n\nTo receive the `project_card` attribute, project boards must be [enabled](https://help.github.com/articles/disabling-project-boards-in-a-repository) for a repository, and you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.starfox-preview+json\n```" + } + ], + "category": "issues", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/events/{event_id}": { + "get": { + "summary": "Get an issue event", + "description": "", + "tags": ["issues"], + "operationId": "issues/get-event", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#get-an-issue-event" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "event_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/issue-event" }, + "examples": { + "default": { "$ref": "#/components/examples/issue-event" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "starfox", + "note": "Project card details are now shown in REST API v3 responses for project-related issue and timeline events. This feature is now available for developers to preview. For details, see the [blog post](https://developer.github.com/changes/2018-09-05-project-card-events).\n\nTo receive the `project_card` attribute, project boards must be [enabled](https://help.github.com/articles/disabling-project-boards-in-a-repository) for a repository, and you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.starfox-preview+json\n```" + } + ], + "category": "issues", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/{issue_number}": { + "get": { + "summary": "Get an issue", + "description": "The API returns a [`301 Moved Permanently` status](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-redirects-redirects) if the issue was\n[transferred](https://help.github.com/articles/transferring-an-issue-to-another-repository/) to another repository. If\nthe issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API\nreturns a `404 Not Found` status. If the issue was deleted from a repository where the authenticated user has read\naccess, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted issues, subscribe\nto the [`issues`](https://docs.github.com/webhooks/event-payloads/#issues) webhook.\n\n**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this\nreason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by\nthe `pull_request` key. Be aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull\nrequest id, use the \"[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)\" endpoint.", + "tags": ["issues"], + "operationId": "issues/get", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/issues/#get-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/issue" }, + "examples": { + "default": { "$ref": "#/components/examples/issue" } + } + } + } + }, + "301": { "$ref": "#/components/responses/moved_permanently" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "issues", + "subcategory": null + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an issue", + "description": "Issue owners and users with push access can edit an issue.", + "tags": ["issues"], + "operationId": "issues/update", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/issues/#update-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The title of the issue." + }, + "body": { + "type": "string", + "description": "The contents of the issue." + }, + "assignee": { + "type": "string", + "description": "Login for the user that this issue should be assigned to. **This field is deprecated.**" + }, + "state": { + "type": "string", + "description": "State of the issue. Either `open` or `closed`.", + "enum": ["open", "closed"] + }, + "milestone": { + "type": "integer", + "description": "The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._", + "nullable": true + }, + "labels": { + "type": "array", + "description": "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._", + "items": { + "oneOf": [ + { "type": "string" }, + { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "color": { "type": "string" } + } + } + ] + } + }, + "assignees": { + "type": "array", + "description": "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._", + "items": { "type": "string" } + } + } + }, + "example": { + "title": "Found a bug", + "body": "I'm having a problem with this.", + "assignees": ["octocat"], + "milestone": 1, + "state": "open", + "labels": ["bug"] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/issue" }, + "examples": { + "default": { "$ref": "#/components/examples/issue" } + } + } + } + }, + "301": { "$ref": "#/components/responses/moved_permanently" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed" }, + "503": { "$ref": "#/components/responses/service_unavailable" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/{issue_number}/assignees": { + "post": { + "summary": "Add assignees to an issue", + "description": "Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.", + "tags": ["issues"], + "operationId": "issues/add-assignees", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#add-assignees-to-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "assignees": { + "type": "array", + "description": "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._", + "items": { "type": "string" } + } + } + }, + "example": { "assignees": ["hubot", "other_user"] } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/issue-simple" }, + "examples": { + "default": { "$ref": "#/components/examples/issue-simple" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "assignees" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove assignees from an issue", + "description": "Removes one or more assignees from an issue.", + "tags": ["issues"], + "operationId": "issues/remove-assignees", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "assignees": { + "type": "array", + "description": "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._", + "items": { "type": "string" } + } + } + }, + "example": { "assignees": ["hubot", "other_user"] } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/issue-simple" }, + "examples": { + "default": { "$ref": "#/components/examples/issue-simple" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "assignees" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/{issue_number}/comments": { + "get": { + "summary": "List issue comments", + "description": "Issue Comments are ordered by ascending ID.", + "tags": ["issues"], + "operationId": "issues/list-comments", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#list-issue-comments" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/issue-comment" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/issue-comment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "issues", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create an issue comment", + "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.", + "tags": ["issues"], + "operationId": "issues/create-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#create-an-issue-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The contents of the comment." + } + }, + "required": ["body"] + }, + "example": { "body": "Me too" } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/issue-comment" }, + "examples": { + "default": { "$ref": "#/components/examples/issue-comment" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1", + "schema": { "type": "string" } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/{issue_number}/events": { + "get": { + "summary": "List issue events", + "description": "", + "tags": ["issues"], + "operationId": "issues/list-events", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#list-issue-events" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/issue-event-for-issue" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/issue-event-for-issue-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "410": { "$ref": "#/components/responses/gone" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "starfox", + "note": "Project card details are now shown in REST API v3 responses for project-related issue and timeline events. This feature is now available for developers to preview. For details, see the [blog post](https://developer.github.com/changes/2018-09-05-project-card-events).\n\nTo receive the `project_card` attribute, project boards must be [enabled](https://help.github.com/articles/disabling-project-boards-in-a-repository) for a repository, and you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.starfox-preview+json\n```" + } + ], + "category": "issues", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/{issue_number}/labels": { + "get": { + "summary": "List labels for an issue", + "description": "", + "tags": ["issues"], + "operationId": "issues/list-labels-on-issue", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#list-labels-for-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/label" } + }, + "examples": { + "default": { "$ref": "#/components/examples/label-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "410": { "$ref": "#/components/responses/gone" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + }, + "post": { + "summary": "Add labels to an issue", + "description": "", + "tags": ["issues"], + "operationId": "issues/add-labels", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#add-labels-to-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "labels": { + "type": "array", + "description": "The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.", + "items": { "type": "string" } + } + }, + "required": ["labels"] + }, + "example": { "labels": ["bug", "enhancement"] } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/label" } + }, + "examples": { + "default": { "$ref": "#/components/examples/label-items" } + } + } + } + }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set labels for an issue", + "description": "Removes any previous labels and sets the new labels for an issue.", + "tags": ["issues"], + "operationId": "issues/set-labels", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#set-labels-for-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "labels": { + "type": "array", + "description": "The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key.", + "items": { "type": "string" } + } + } + }, + "example": { "labels": ["bug", "enhancement"] } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/label" } + }, + "examples": { + "default": { "$ref": "#/components/examples/label-items" } + } + } + } + }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove all labels from an issue", + "description": "", + "tags": ["issues"], + "operationId": "issues/remove-all-labels", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#remove-all-labels-from-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "responses": { + "204": { "description": "Empty response" }, + "410": { "$ref": "#/components/responses/gone" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": { + "delete": { + "summary": "Remove a label from an issue", + "description": "Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist.", + "tags": ["issues"], + "operationId": "issues/remove-label", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#remove-a-label-from-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" }, + { + "name": "name", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/label" } + }, + "examples": { + "default": { "$ref": "#/components/examples/label-items-2" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/{issue_number}/lock": { + "put": { + "summary": "Lock an issue", + "description": "Users with push access can lock an issue or pull request's conversation.\n\nNote 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/rest/overview/resources-in-the-rest-api#http-verbs).\"", + "tags": ["issues"], + "operationId": "issues/lock", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/issues/#lock-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "lock_reason": { + "type": "string", + "description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n\\* `off-topic` \n\\* `too heated` \n\\* `resolved` \n\\* `spam`", + "enum": ["off-topic", "too heated", "resolved", "spam"] + } + } + } + } + } + }, + "responses": { + "204": { "description": "Empty response" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Unlock an issue", + "description": "Users with push access can unlock an issue's conversation.", + "tags": ["issues"], + "operationId": "issues/unlock", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/issues/#unlock-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "responses": { + "204": { "description": "Empty response" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/{issue_number}/reactions": { + "get": { + "summary": "List reactions for an issue", + "description": "List the reactions to an [issue](https://docs.github.com/rest/reference/issues).", + "tags": ["reactions"], + "operationId": "reactions/list-for-issue", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#list-reactions-for-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" }, + { + "name": "content", + "description": "Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/reaction" } + }, + "examples": { + "default": { "$ref": "#/components/examples/reaction-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create reaction for an issue", + "description": "Create a reaction to an [issue](https://docs.github.com/rest/reference/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue.", + "tags": ["reactions"], + "operationId": "reactions/create-for-issue", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#create-reaction-for-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the issue.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + "required": ["content"] + }, + "example": { "content": "heart" } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": { + "delete": { + "summary": "Delete an issue reaction", + "description": "**Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id`.\n\nDelete a reaction to an [issue](https://docs.github.com/rest/reference/issues/).", + "tags": ["reactions"], + "operationId": "reactions/delete-for-issue", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#delete-an-issue-reaction" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" }, + { "$ref": "#/components/parameters/reaction-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/issues/{issue_number}/timeline": { + "get": { + "summary": "List timeline events for an issue", + "description": "", + "tags": ["issues"], + "operationId": "issues/list-events-for-timeline", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#list-timeline-events-for-an-issue" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/issue_number" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/issue-event-for-issue" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/issue-event-for-issue-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "mockingbird", + "note": "The API to get issue timeline events is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-23-timeline-preview-api/) for full details. To access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.mockingbird-preview\n```" + }, + { + "required": false, + "name": "starfox", + "note": "Project card details are now shown in REST API v3 responses for project-related issue and timeline events. This feature is now available for developers to preview. For details, see the [blog post](https://developer.github.com/changes/2018-09-05-project-card-events).\n\nTo receive the `project_card` attribute, project boards must be [enabled](https://help.github.com/articles/disabling-project-boards-in-a-repository) for a repository, and you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.starfox-preview+json\n```" + } + ], + "category": "issues", + "subcategory": "timeline" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/keys": { + "get": { + "summary": "List deploy keys", + "description": "", + "tags": ["repos"], + "operationId": "repos/list-deploy-keys", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-deploy-keys" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/deploy-key" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/deploy-key-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "keys" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a deploy key", + "description": "You can create a read-only deploy key.", + "tags": ["repos"], + "operationId": "repos/create-deploy-key", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-a-deploy-key" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "A name for the key." + }, + "key": { + "type": "string", + "description": "The contents of the key." + }, + "read_only": { + "type": "boolean", + "description": "If `true`, the key will only be able to read repository contents. Otherwise, the key will be able to read and write. \n \nDeploy 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/).\"" + } + }, + "required": ["key"] + }, + "example": { + "title": "octocat@octomac", + "key": "ssh-rsa AAA...", + "read_only": true + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/deploy-key" }, + "examples": { + "default": { "$ref": "#/components/examples/deploy-key" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/keys/1", + "schema": { "type": "string" } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "keys" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/keys/{key_id}": { + "get": { + "summary": "Get a deploy key", + "description": "", + "tags": ["repos"], + "operationId": "repos/get-deploy-key", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-deploy-key" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/key_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/deploy-key" }, + "examples": { + "default": { "$ref": "#/components/examples/deploy-key" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "keys" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a deploy key", + "description": "Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead.", + "tags": ["repos"], + "operationId": "repos/delete-deploy-key", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-a-deploy-key" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/key_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "keys" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/labels": { + "get": { + "summary": "List labels for a repository", + "description": "", + "tags": ["issues"], + "operationId": "issues/list-labels-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#list-labels-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/label" } + }, + "examples": { + "default": { "$ref": "#/components/examples/label-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a label", + "description": "", + "tags": ["issues"], + "operationId": "issues/create-label", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#create-a-label" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "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.com](http://emoji-cheat-sheet.com/)." + }, + "color": { + "type": "string", + "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`." + }, + "description": { + "type": "string", + "description": "A short description of the label." + } + }, + "required": ["name"] + }, + "example": { + "name": "bug", + "description": "Something isn't working", + "color": "f29513" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/label" }, + "examples": { + "default": { "$ref": "#/components/examples/label" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "schema": { "type": "string" } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/labels/{name}": { + "get": { + "summary": "Get a label", + "description": "", + "tags": ["issues"], + "operationId": "issues/get-label", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#get-a-label" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "name", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/label" }, + "examples": { + "default": { "$ref": "#/components/examples/label" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a label", + "description": "", + "tags": ["issues"], + "operationId": "issues/update-label", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#update-a-label" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "name", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "new_name": { + "type": "string", + "description": "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.com](http://emoji-cheat-sheet.com/)." + }, + "color": { + "type": "string", + "description": "The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`." + }, + "description": { + "type": "string", + "description": "A short description of the label." + } + } + }, + "example": { + "new_name": "bug :bug:", + "description": "Small bug fix required", + "color": "b01f26" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/label" }, + "examples": { + "default": { "$ref": "#/components/examples/label-2" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a label", + "description": "", + "tags": ["issues"], + "operationId": "issues/delete-label", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#delete-a-label" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "name", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/languages": { + "get": { + "summary": "List repository languages", + "description": "Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language.", + "tags": ["repos"], + "operationId": "repos/list-languages", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#list-repository-languages" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/language" }, + "examples": { + "default": { "$ref": "#/components/examples/language" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/license": { + "get": { + "summary": "Get the license for a repository", + "description": "This method returns the contents of the repository's license file, if one is detected.\n\nSimilar to [Get repository content](https://docs.github.com/rest/reference/repos/contents#get-repository-content), this method also supports [custom media types](https://docs.github.com/rest/overview/media-types) for retrieving the raw license content or rendered license HTML.", + "tags": ["licenses"], + "operationId": "licenses/get-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/licenses/#get-the-license-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/license-content" }, + "examples": { + "default": { "$ref": "#/components/examples/license-content" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "licenses", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/merges": { + "post": { + "summary": "Merge a branch", + "description": "", + "tags": ["repos"], + "operationId": "repos/merge", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#merge-a-branch" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "base": { + "type": "string", + "description": "The name of the base branch that the head will be merged into." + }, + "head": { + "type": "string", + "description": "The head to merge. This can be a branch name or a commit SHA1." + }, + "commit_message": { + "type": "string", + "description": "Commit message to use for the merge commit. If omitted, a default message will be used." + } + }, + "required": ["base", "head"] + }, + "example": { + "base": "master", + "head": "cool_feature", + "commit_message": "Shipped cool_feature!" + } + } + } + }, + "responses": { + "201": { + "description": "Successful Response (The resulting merge commit)", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/commit" }, + "examples": { + "default": { "$ref": "#/components/examples/commit" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { + "type": "string", + "example": "\"https://docs.github.com/rest/reference/repos#perform-a-merge\"" + } + } + }, + "examples": { + "missing-base-response": { + "summary": "Missing base response", + "value": { "message": "Base does not exist" } + }, + "missing-head-response": { + "summary": "Missing head response", + "value": { "message": "Head does not exist" } + } + } + } + } + }, + "409": { + "description": "Merge conflict response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { + "type": "string", + "example": "\"https://docs.github.com/rest/reference/repos#perform-a-merge\"" + } + } + }, + "examples": { + "merge-conflict-response": { + "value": { "message": "Merge Conflict" } + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "merging" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/milestones": { + "get": { + "summary": "List milestones", + "description": "", + "tags": ["issues"], + "operationId": "issues/list-milestones", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#list-milestones" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "state", + "description": "The state of the milestone. Either `open`, `closed`, or `all`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["open", "closed", "all"], + "default": "open" + } + }, + { + "name": "sort", + "description": "What to sort results by. Either `due_on` or `completeness`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["due_on", "completeness"], + "default": "due_on" + } + }, + { + "name": "direction", + "description": "The direction of the sort. Either `asc` or `desc`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["asc", "desc"], + "default": "asc" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/milestone" } + }, + "examples": { + "default": { "$ref": "#/components/examples/milestone-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "milestones" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a milestone", + "description": "", + "tags": ["issues"], + "operationId": "issues/create-milestone", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#create-a-milestone" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The title of the milestone." + }, + "state": { + "type": "string", + "description": "The state of the milestone. Either `open` or `closed`.", + "enum": ["open", "closed"], + "default": "open" + }, + "description": { + "type": "string", + "description": "A description of the milestone." + }, + "due_on": { + "type": "string", + "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." + } + }, + "required": ["title"] + }, + "example": { + "title": "v1.0", + "state": "open", + "description": "Tracking milestone for version 1.0", + "due_on": "2012-10-09T23:39:01Z" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/milestone" }, + "examples": { + "default": { "$ref": "#/components/examples/milestone" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "schema": { "type": "string" } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "milestones" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/milestones/{milestone_number}": { + "get": { + "summary": "Get a milestone", + "description": "", + "tags": ["issues"], + "operationId": "issues/get-milestone", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#get-a-milestone" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/milestone_number" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/milestone" }, + "examples": { + "default": { "$ref": "#/components/examples/milestone" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "milestones" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a milestone", + "description": "", + "tags": ["issues"], + "operationId": "issues/update-milestone", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#update-a-milestone" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/milestone_number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The title of the milestone." + }, + "state": { + "type": "string", + "description": "The state of the milestone. Either `open` or `closed`.", + "enum": ["open", "closed"], + "default": "open" + }, + "description": { + "type": "string", + "description": "A description of the milestone." + }, + "due_on": { + "type": "string", + "description": "The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`." + } + } + }, + "example": { + "title": "v1.0", + "state": "open", + "description": "Tracking milestone for version 1.0", + "due_on": "2012-10-09T23:39:01Z" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/milestone" }, + "examples": { + "default": { "$ref": "#/components/examples/milestone" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "milestones" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a milestone", + "description": "", + "tags": ["issues"], + "operationId": "issues/delete-milestone", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#delete-a-milestone" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/milestone_number" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "milestones" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/milestones/{milestone_number}/labels": { + "get": { + "summary": "List labels for issues in a milestone", + "description": "", + "tags": ["issues"], + "operationId": "issues/list-labels-for-milestone", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/issues#list-labels-for-issues-in-a-milestone" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/milestone_number" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/label" } + }, + "examples": { + "default": { "$ref": "#/components/examples/label-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "issues", + "subcategory": "labels" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/notifications": { + "get": { + "summary": "List repository notifications for the authenticated user", + "description": "List all notifications for the current user.", + "tags": ["activity"], + "operationId": "activity/list-repo-notifications-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/all" }, + { "$ref": "#/components/parameters/participating" }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/before" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/thread" } + }, + "examples": { + "default": { "$ref": "#/components/examples/thread-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "notifications" + }, + "x-octokit": {} + }, + "put": { + "summary": "Mark repository notifications as read", + "description": "Marks all notifications in a repository as \"read\" removes them from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as \"read.\" To check whether any \"unread\" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`.", + "tags": ["activity"], + "operationId": "activity/mark-repo-notifications-as-read", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#mark-repository-notifications-as-read" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "last_read_at": { + "type": "string", + "description": "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." + } + } + } + } + } + }, + "responses": { "202": { "description": "response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "notifications" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pages": { + "get": { + "summary": "Get a GitHub Pages site", + "description": "", + "tags": ["repos"], + "operationId": "repos/get-pages", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-github-pages-site" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page" }, + "examples": { + "default": { "$ref": "#/components/examples/page" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "pages" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a GitHub Pages site", + "description": "Configures a GitHub Pages site. For more information, see \"[About GitHub Pages](/github/working-with-github-pages/about-github-pages).\"", + "tags": ["repos"], + "operationId": "repos/create-pages-site", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-a-github-pages-site" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "description": "The source branch and directory used to publish your Pages site.", + "properties": { + "source": { + "type": "object", + "description": "The source branch and directory used to publish your Pages site.", + "properties": { + "branch": { + "type": "string", + "description": "The repository branch used to publish your site's source files." + }, + "path": { + "type": "string", + "description": "The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/`", + "enum": ["/", "/docs"], + "default": "/" + } + }, + "required": ["branch"] + } + }, + "required": ["source"] + }, + "example": { "source": { "branch": "main", "path": "/docs" } } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page" }, + "examples": { + "default": { "$ref": "#/components/examples/page" } + } + } + } + }, + "409": { "$ref": "#/components/responses/conflict" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "switcheroo", + "note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "pages" + }, + "x-octokit": {} + }, + "put": { + "summary": "Update information about a GitHub Pages site", + "description": "Updates information for a GitHub Pages site. For more information, see \"[About GitHub Pages](/github/working-with-github-pages/about-github-pages).", + "tags": ["repos"], + "operationId": "repos/update-information-about-pages-site", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#update-information-about-a-github-pages-site" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "cname": { + "type": "string", + "description": "Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see \"[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/).\"", + "nullable": true + }, + "source": { + "anyOf": [ + { + "type": "string", + "description": "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\"`.", + "enum": ["gh-pages", "master", "master /docs"] + }, + { + "type": "object", + "description": "Update the source for the repository. Must include the branch name and path.", + "properties": { + "branch": { + "type": "string", + "description": "The repository branch used to publish your site's source files." + }, + "path": { + "type": "string", + "description": "The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`.", + "enum": ["/", "/docs"] + } + }, + "required": ["branch", "path"] + } + ] + } + }, + "required": ["source"] + }, + "example": { + "cname": "octocatblog.com", + "source": { "branch": "main", "path": "/" } + } + } + } + }, + "responses": { + "204": { "description": "Empty response" }, + "400": { "$ref": "#/components/responses/bad_request" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "pages" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a GitHub Pages site", + "description": "", + "tags": ["repos"], + "operationId": "repos/delete-pages-site", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-a-github-pages-site" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "switcheroo", + "note": "Enabling and disabling Pages in the Pages API is currently available for developers to preview. See the [blog post](https://developer.github.com/changes/2019-03-14-enabling-disabling-pages/) preview for more details. To access the new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.switcheroo-preview+json\n```" + } + ], + "category": "repos", + "subcategory": "pages" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pages/builds": { + "get": { + "summary": "List GitHub Pages builds", + "description": "", + "tags": ["repos"], + "operationId": "repos/list-pages-builds", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-github-pages-builds" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/page-build" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/page-build-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "pages" + }, + "x-octokit": {} + }, + "post": { + "summary": "Request a GitHub Pages build", + "description": "You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures.\n\nBuild requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes.", + "tags": ["repos"], + "operationId": "repos/request-pages-build", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#request-a-github-pages-build" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page-build-status" }, + "examples": { + "default": { + "$ref": "#/components/examples/page-build-status" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "pages" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pages/builds/latest": { + "get": { + "summary": "Get latest Pages build", + "description": "", + "tags": ["repos"], + "operationId": "repos/get-latest-pages-build", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-latest-pages-build" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page-build" }, + "examples": { + "default": { "$ref": "#/components/examples/page-build" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "pages" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pages/builds/{build_id}": { + "get": { + "summary": "Get GitHub Pages build", + "description": "", + "tags": ["repos"], + "operationId": "repos/get-pages-build", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-github-pages-build" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "build_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/page-build" }, + "examples": { + "default": { "$ref": "#/components/examples/page-build" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "pages" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/projects": { + "get": { + "summary": "List repository projects", + "description": "Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", + "tags": ["projects"], + "operationId": "projects/list-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/projects/#list-repository-projects" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "state", + "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["open", "closed", "all"], + "default": "open" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/project" } + }, + "examples": { + "default": { "$ref": "#/components/examples/project-items-2" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a repository project", + "description": "Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.", + "tags": ["projects"], + "operationId": "projects/create-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/projects/#create-a-repository-project" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the project." + }, + "body": { + "type": "string", + "description": "The description of the project." + } + }, + "required": ["name"] + }, + "example": { + "name": "Projects Documentation", + "body": "Developer documentation project for the developer site." + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project" }, + "examples": { + "default": { "$ref": "#/components/examples/project-3" } + } + } + } + }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "410": { "$ref": "#/components/responses/gone" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls": { + "get": { + "summary": "List pull requests", + "description": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": ["pulls"], + "operationId": "pulls/list", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/pulls/#list-pull-requests" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "state", + "description": "Either `open`, `closed`, or `all` to filter by state.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["open", "closed", "all"], + "default": "open" + } + }, + { + "name": "head", + "description": "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`.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "base", + "description": "Filter pulls by base branch name. Example: `gh-pages`.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + { + "name": "sort", + "description": "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).", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["created", "updated", "popularity", "long-running"], + "default": "created" + } + }, + { + "name": "direction", + "description": "The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`.", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["asc", "desc"] } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/pull-request-simple" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-simple-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a pull request", + "description": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.\n\nYou can create a new pull request.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.", + "tags": ["pulls"], + "operationId": "pulls/create", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/pulls/#create-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The title of the new pull request." + }, + "head": { + "type": "string", + "description": "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": { + "type": "string", + "description": "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." + }, + "body": { + "type": "string", + "description": "The contents of the pull request." + }, + "maintainer_can_modify": { + "type": "boolean", + "description": "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": { + "type": "boolean", + "description": "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": { "type": "integer", "example": "1" } + }, + "required": ["head", "base"] + }, + "example": { + "title": "Amazing new feature", + "body": "Please pull these awesome changes in!", + "head": "octocat:new-feature", + "base": "master" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/pull-request" }, + "examples": { + "default": { "$ref": "#/components/examples/pull-request" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", + "schema": { "type": "string" } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/comments": { + "get": { + "summary": "List review comments in a repository", + "description": "**Note:** Multi-line comments on pull requests are currently in public beta and subject to change.\n\nLists review comments for all pull requests in a repository. By default, review comments are in ascending order by ID.\n\n**Multi-line comment summary**\n\n**Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details.\n\nUse the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response.\n\nIf you use the `comfort-fade` preview header, your response will show:\n\n* For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`.\n* For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`.\n\nIf you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show:\n\n* For multi-line comments, the last line of the comment range for the `position` attribute.\n* For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table.\n\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions.", + "tags": ["pulls"], + "operationId": "pulls/list-review-comments-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#list-review-comments-in-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/sort" }, + { + "name": "direction", + "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["asc", "desc"] } + }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/pull-request-review-comment" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-comment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "comfort-fade", + "note": "Multi-line comments in a pull request diff is currently available for developers to preview. To access the new response fields during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.comfort-fade-preview+json\n```" + }, + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "pulls", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/comments/{comment_id}": { + "get": { + "summary": "Get a review comment for a pull request", + "description": "**Note:** Multi-line comments on pull requests are currently in public beta and subject to change.\n\nProvides details for a review comment.\n\n**Multi-line comment summary**\n\n**Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details.\n\nUse the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response.\n\nIf you use the `comfort-fade` preview header, your response will show:\n\n* For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`.\n* For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`.\n\nIf you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show:\n\n* For multi-line comments, the last line of the comment range for the `position` attribute.\n* For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table.\n\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions.", + "tags": ["pulls"], + "operationId": "pulls/get-review-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#get-a-review-comment-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review-comment" + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-comment-2" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "comfort-fade", + "note": "Multi-line comments in a pull request diff is currently available for developers to preview. To access the new response fields during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.comfort-fade-preview+json\n```" + }, + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "pulls", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a review comment for a pull request", + "description": "**Note:** Multi-line comments on pull requests are currently in public beta and subject to change.\n\nEnables you to edit a review comment.\n\n**Multi-line comment summary**\n\n**Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details.\n\nUse the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response.\n\nIf you use the `comfort-fade` preview header, your response will show:\n\n* For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`.\n* For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`.\n\nIf you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show:\n\n* For multi-line comments, the last line of the comment range for the `position` attribute.\n* For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table.", + "tags": ["pulls"], + "operationId": "pulls/update-review-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#update-a-review-comment-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The text of the reply to the review comment." + } + }, + "required": ["body"] + }, + "example": { "body": "I like this too!" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review-comment" + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-comment-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "comfort-fade", + "note": "Multi-line comments in a pull request diff is currently available for developers to preview. To access the new response fields during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.comfort-fade-preview+json\n```" + } + ], + "category": "pulls", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a review comment for a pull request", + "description": "Deletes a review comment.", + "tags": ["pulls"], + "operationId": "pulls/delete-review-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#delete-a-review-comment-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": { + "get": { + "summary": "List reactions for a pull request review comment", + "description": "List the reactions to a [pull request review comment](https://docs.github.com/rest/reference/pulls#review-comments).", + "tags": ["reactions"], + "operationId": "reactions/list-for-pull-request-review-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" }, + { + "name": "content", + "description": "Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a pull request review comment.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/reaction" } + }, + "examples": { + "default": { "$ref": "#/components/examples/reaction-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create reaction for a pull request review comment", + "description": "Create a reaction to a [pull request review comment](https://docs.github.com/rest/reference/pulls#comments). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment.", + "tags": ["reactions"], + "operationId": "reactions/create-for-pull-request-review-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the pull request review comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + "required": ["content"] + }, + "example": { "content": "heart" } + } + } + }, + "responses": { + "200": { + "description": "Reaction exists", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + }, + "201": { + "description": "Reaction created", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}": { + "delete": { + "summary": "Delete a pull request comment reaction", + "description": "**Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.`\n\nDelete a reaction to a [pull request review comment](https://docs.github.com/rest/reference/pulls#review-comments).", + "tags": ["reactions"], + "operationId": "reactions/delete-for-pull-request-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#delete-a-pull-request-comment-reaction" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/comment_id" }, + { "$ref": "#/components/parameters/reaction-id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "reactions", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}": { + "get": { + "summary": "Get a pull request", + "description": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nLists details of a pull request by providing its number.\n\nWhen you get, [create](https://docs.github.com/rest/reference/pulls/#create-a-pull-request), or [edit](https://docs.github.com/rest/reference/pulls#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see \"[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)\".\n\nThe value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit.\n\nThe value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request:\n\n* If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit.\n* If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch.\n* If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to.\n\nPass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.", + "tags": ["pulls"], + "operationId": "pulls/get", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/pulls/#get-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" } + ], + "responses": { + "200": { + "description": "Pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/pull-request" }, + "examples": { + "default": { "$ref": "#/components/examples/pull-request" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "404": { "$ref": "#/components/responses/not_found" }, + "500": { "$ref": "#/components/responses/internal_error" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": null + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a pull request", + "description": "Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request.", + "tags": ["pulls"], + "operationId": "pulls/update", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/pulls/#update-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The title of the pull request." + }, + "body": { + "type": "string", + "description": "The contents of the pull request." + }, + "state": { + "type": "string", + "description": "State of this Pull Request. Either `open` or `closed`.", + "enum": ["open", "closed"] + }, + "base": { + "type": "string", + "description": "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": { + "type": "boolean", + "description": "Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request." + } + } + }, + "example": { + "title": "new title", + "body": "updated body", + "state": "open", + "base": "master" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/pull-request" }, + "examples": { + "default": { "$ref": "#/components/examples/pull-request" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/comments": { + "get": { + "summary": "List review comments on a pull request", + "description": "**Note:** Multi-line comments on pull requests are currently in public beta and subject to change.\n\nLists all review comments for a pull request. By default, review comments are in ascending order by ID.\n\n**Multi-line comment summary**\n\n**Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details.\n\nUse the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response.\n\nIf you use the `comfort-fade` preview header, your response will show:\n\n* For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`.\n* For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`.\n\nIf you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show:\n\n* For multi-line comments, the last line of the comment range for the `position` attribute.\n* For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table.\n\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions.", + "tags": ["pulls"], + "operationId": "pulls/list-review-comments", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#list-review-comments-on-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/sort" }, + { + "name": "direction", + "description": "Can be either `asc` or `desc`. Ignored without `sort` parameter.", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["asc", "desc"] } + }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/pull-request-review-comment" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-comment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "comfort-fade", + "note": "Multi-line comments in a pull request diff is currently available for developers to preview. To access the new response fields during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.comfort-fade-preview+json\n```" + }, + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "pulls", + "subcategory": "comments" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a review comment for a pull request", + "description": "**Note:** Multi-line comments on pull requests are currently in public beta and subject to change.\n\nCreates a review comment in the pull request diff. To add a regular comment to a pull request timeline, see \"[Create an issue comment](https://docs.github.com/rest/reference/issues#create-an-issue-comment).\" We recommend creating a review comment using `line`, `side`, and optionally `start_line` and `start_side` if your comment applies to more than one line in the pull request diff.\n\nYou can still create a review comment using the `position` parameter. When you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. For more information, see [Multi-line comment summary](https://docs.github.com/rest/reference/pulls#multi-line-comment-summary-3).\n\n**Note:** The position value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.\n\n**Multi-line comment summary**\n\n**Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details.\n\nUse the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response.\n\nIf you use the `comfort-fade` preview header, your response will show:\n\n* For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`.\n* For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`.\n\nIf you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show:\n\n* For multi-line comments, the last line of the comment range for the `position` attribute.\n* For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table.", + "tags": ["pulls"], + "operationId": "pulls/create-review-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#create-a-review-comment-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The text of the review comment." + }, + "commit_id": { + "type": "string", + "description": "The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`." + }, + "path": { + "type": "string", + "description": "The relative path to the file that necessitates a comment." + }, + "position": { + "type": "integer", + "description": "**Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above." + }, + "side": { + "type": "string", + "description": "**Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see \"[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)\" in the GitHub Help documentation.", + "enum": ["LEFT", "RIGHT"] + }, + "line": { + "type": "integer", + "description": "**Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to." + }, + "start_line": { + "type": "integer", + "description": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see \"[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation." + }, + "start_side": { + "type": "string", + "description": "**Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see \"[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)\" in the GitHub Help documentation. See `side` in this table for additional context.", + "enum": ["LEFT", "RIGHT", "side"] + }, + "in_reply_to": { "type": "integer", "example": "2" } + }, + "required": ["body", "path"] + }, + "examples": { + "example-for-a-single-line-comment": { + "summary": "Example for a single-line comment", + "value": { + "body": "Let's add this deleted line back.", + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "path": "file1.txt", + "line": 5, + "side": "LEFT" + } + }, + "example-for-a-multi-line-comment": { + "summary": "Example for a multi-line comment", + "value": { + "body": "Great stuff!", + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "path": "file1.txt", + "start_line": 1, + "start_side": "RIGHT", + "line": 2, + "side": "RIGHT" + } + } + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review-comment" + }, + "examples": { + "example-for-a-multi-line-comment": { + "$ref": "#/components/examples/pull-request-review-comment-example-for-a-multi-line-comment" + } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", + "schema": { "type": "string" } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "comfort-fade", + "note": "Multi-line comments in a pull request diff is currently available for developers to preview. To access the new response fields during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.comfort-fade-preview+json\n```" + } + ], + "category": "pulls", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies": { + "post": { + "summary": "Create a reply for a review comment", + "description": "Creates a reply to a review comment for a pull request. For the `comment_id`, provide the ID of the review comment you are replying to. This must be the ID of a _top-level review comment_, not a reply to that comment. Replies to replies are not supported.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.", + "tags": ["pulls"], + "operationId": "pulls/create-reply-for-review-comment", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#create-a-reply-for-a-review-comment" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/comment_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The text of the review comment." + } + }, + "required": ["body"] + }, + "example": { "body": "Great stuff!" } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review-comment" + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-comment" + } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", + "schema": { "type": "string" } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "pulls", + "subcategory": "comments" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/commits": { + "get": { + "summary": "List commits on a pull request", + "description": "Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [List commits](https://docs.github.com/rest/reference/repos#list-commits) endpoint.", + "tags": ["pulls"], + "operationId": "pulls/list-commits", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/pulls/#list-commits-on-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/commit" } + }, + "examples": { + "default": { "$ref": "#/components/examples/commit-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/files": { + "get": { + "summary": "List pull requests files", + "description": "**Note:** Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default.", + "tags": ["pulls"], + "operationId": "pulls/list-files", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/pulls/#list-pull-requests-files" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/diff-entry" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/diff-entry-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "422": { "$ref": "#/components/responses/validation_failed" }, + "500": { "$ref": "#/components/responses/internal_error" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/merge": { + "get": { + "summary": "Check if a pull request has been merged", + "description": "", + "tags": ["pulls"], + "operationId": "pulls/check-if-merged", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/pulls/#check-if-a-pull-request-has-been-merged" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" } + ], + "responses": { + "204": { "description": "Response if pull request has been merged" }, + "404": { + "description": "Response if pull request has not been merged" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": null + }, + "x-octokit": {} + }, + "put": { + "summary": "Merge a pull request", + "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/reference/guides#dealing-with-abuse-rate-limits)\" for details.", + "tags": ["pulls"], + "operationId": "pulls/merge", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/pulls/#merge-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "commit_title": { + "type": "string", + "description": "Title for the automatic commit message." + }, + "commit_message": { + "type": "string", + "description": "Extra detail to append to automatic commit message." + }, + "sha": { + "type": "string", + "description": "SHA that pull request head must match to allow merge." + }, + "merge_method": { + "type": "string", + "description": "Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`.", + "enum": ["merge", "squash", "rebase"] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Response if merge was successful", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-merge-result" + }, + "examples": { + "response-if-merge-was-successful": { + "$ref": "#/components/examples/pull-request-merge-result-response-if-merge-was-successful" + } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "405": { + "description": "Response if merge cannot be performed", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + }, + "examples": { + "response-if-merge-cannot-be-performed": { + "value": { "message": "Pull Request is not mergeable" } + } + } + } + } + }, + "409": { + "description": "Response if sha was provided and pull request head did not match", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + }, + "examples": { + "response-if-sha-was-provided-and-pull-request-head-did-not-match": { + "value": { + "message": "Head branch was modified. Review and try the merge again." + } + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": { + "get": { + "summary": "List requested reviewers for a pull request", + "description": "", + "tags": ["pulls"], + "operationId": "pulls/list-requested-reviewers", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#list-requested-reviewers-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review-request" + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-pull-request-review-request" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "review-requests" + }, + "x-octokit": {} + }, + "post": { + "summary": "Request reviewers for a pull request", + "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/reference/guides#dealing-with-abuse-rate-limits)\" for details.", + "tags": ["pulls"], + "operationId": "pulls/request-reviewers", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "reviewers": { + "type": "array", + "description": "An array of user `login`s that will be requested.", + "items": { "type": "string" } + }, + "team_reviewers": { + "type": "array", + "description": "An array of team `slug`s that will be requested.", + "items": { "type": "string" } + } + } + }, + "example": { + "reviewers": ["octocat", "hubot", "other_user"], + "team_reviewers": ["justice-league"] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-simple" + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-request" + } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "description": "Response if user is not a collaborator" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "review-requests" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove requested reviewers from a pull request", + "description": "", + "tags": ["pulls"], + "operationId": "pulls/remove-requested-reviewers", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#remove-requested-reviewers-from-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "reviewers": { + "type": "array", + "description": "An array of user `login`s that will be removed.", + "items": { "type": "string" } + }, + "team_reviewers": { + "type": "array", + "description": "An array of team `slug`s that will be removed.", + "items": { "type": "string" } + } + } + }, + "example": { + "reviewers": ["octocat", "hubot", "other_user"], + "team_reviewers": ["justice-league"] + } + } + } + }, + "responses": { + "200": { "description": "response" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "review-requests" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/reviews": { + "get": { + "summary": "List reviews for a pull request", + "description": "The list of reviews returns in chronological order.", + "tags": ["pulls"], + "operationId": "pulls/list-reviews", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#list-reviews-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "The list of reviews returns in chronological order.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/pull-request-review" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "reviews" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a review for a pull request", + "description": "This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.\n\nPull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response.\n\n**Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/rest/reference/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) endpoint.\n\nThe `position` value equals the number of lines down from the first \"@@\" hunk header in the file you want to add a comment. The line just below the \"@@\" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file.", + "tags": ["pulls"], + "operationId": "pulls/create-review", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#create-a-review-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "commit_id": { + "type": "string", + "description": "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": { + "type": "string", + "description": "**Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review." + }, + "event": { + "type": "string", + "description": "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/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready.", + "enum": ["APPROVE", "REQUEST_CHANGES", "COMMENT"] + }, + "comments": { + "type": "array", + "description": "Use the following table to specify the location, destination, and contents of the draft review comment.", + "items": { + "type": "object", + "properties": { + "path": { + "type": "string", + "description": "The relative path to the file that necessitates a review comment." + }, + "position": { + "type": "integer", + "description": "The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below." + }, + "body": { + "type": "string", + "description": "Text of the review comment." + }, + "line": { "type": "integer", "example": "28" }, + "side": { "type": "string", "example": "\"RIGHT\"" }, + "start_line": { "type": "integer", "example": "26" }, + "start_side": { + "type": "string", + "example": "\"LEFT\"" + } + }, + "required": ["path", "body"] + } + } + } + }, + "example": { + "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." + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review" + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review" + } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "reviews" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": { + "get": { + "summary": "Get a review for a pull request", + "description": "", + "tags": ["pulls"], + "operationId": "pulls/get-review", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#get-a-review-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/review_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review" + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-4" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "reviews" + }, + "x-octokit": {} + }, + "put": { + "summary": "Update a review for a pull request", + "description": "Update the review summary comment with new text.", + "tags": ["pulls"], + "operationId": "pulls/update-review", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#update-a-review-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/review_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The body text of the pull request review." + } + }, + "required": ["body"] + }, + "example": { + "body": "This is close to perfect! Please address the suggested inline change. And add more about this." + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review" + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-5" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "reviews" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a pending review for a pull request", + "description": "", + "tags": ["pulls"], + "operationId": "pulls/delete-pending-review", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#delete-a-pending-review-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/review_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review" + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "reviews" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": { + "get": { + "summary": "List comments for a pull request review", + "description": "List comments for a specific pull request review.", + "tags": ["pulls"], + "operationId": "pulls/list-comments-for-review", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#list-comments-for-a-pull-request-review" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/review_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/review-comment" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/review-comment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "reviews" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": { + "put": { + "summary": "Dismiss a review for a pull request", + "description": "**Note:** To dismiss a pull request review on a [protected branch](https://docs.github.com/rest/reference/repos#branches), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews.", + "tags": ["pulls"], + "operationId": "pulls/dismiss-review", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#dismiss-a-review-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/review_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { + "type": "string", + "description": "The message for the pull request review dismissal" + }, + "event": { "type": "string", "example": "\"APPROVE\"" } + }, + "required": ["message"] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review" + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-3" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "reviews" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": { + "post": { + "summary": "Submit a review for a pull request", + "description": "", + "tags": ["pulls"], + "operationId": "pulls/submit-review", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/pulls#submit-a-review-for-a-pull-request" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" }, + { "$ref": "#/components/parameters/review_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The body text of the pull request review" + }, + "event": { + "type": "string", + "description": "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.", + "enum": ["APPROVE", "REQUEST_CHANGES", "COMMENT"] + } + }, + "required": ["event"] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/pull-request-review" + }, + "examples": { + "default": { + "$ref": "#/components/examples/pull-request-review-4" + } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "pulls", + "subcategory": "reviews" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch": { + "put": { + "summary": "Update a pull request branch", + "description": "Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch.", + "tags": ["pulls"], + "operationId": "pulls/update-branch", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/pulls/#update-a-pull-request-branch" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/pull-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "expected_head_sha": { + "type": "string", + "description": "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/rest/reference/repos#list-commits)\" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref." + } + } + }, + "example": { + "expected_head_sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + } + } + } + }, + "responses": { + "202": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "url": { "type": "string" } + } + }, + "example": { + "message": "Updating pull request branch.", + "url": "https://github.com/repos/octocat/Hello-World/pulls/53" + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "lydian", + "note": "Updating the pull request branch with latest upstream changes is currently available for developers to preview. To access this new endpoint during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.lydian-preview+json\n```" + } + ], + "category": "pulls", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/readme": { + "get": { + "summary": "Get a repository README", + "description": "Gets the preferred README for a repository.\n\nREADMEs support [custom media types](https://docs.github.com/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML.", + "tags": ["repos"], + "operationId": "repos/get-readme", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-repository-readme" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "description": "The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`)", + "in": "query", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/content-file" }, + "examples": { + "default": { "$ref": "#/components/examples/content-file" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "contents" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/releases": { + "get": { + "summary": "List releases", + "description": "This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs.github.com/rest/reference/repos#list-repository-tags).\n\nInformation about published releases are available to everyone. Only users with push access will receive listings for draft releases.", + "tags": ["repos"], + "operationId": "repos/list-releases", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-releases" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/release" } + }, + "examples": { + "default": { "$ref": "#/components/examples/release-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a release", + "description": "Users with push access to the repository can create a release.\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.", + "tags": ["repos"], + "operationId": "repos/create-release", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-a-release" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "tag_name": { + "type": "string", + "description": "The name of the tag." + }, + "target_commitish": { + "type": "string", + "description": "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": { + "type": "string", + "description": "The name of the release." + }, + "body": { + "type": "string", + "description": "Text describing the contents of the tag." + }, + "draft": { + "type": "boolean", + "description": "`true` to create a draft (unpublished) release, `false` to create a published one.", + "default": false + }, + "prerelease": { + "type": "boolean", + "description": "`true` to identify the release as a prerelease. `false` to identify the release as a full release.", + "default": false + } + }, + "required": ["tag_name"] + }, + "example": { + "tag_name": "v1.0.0", + "target_commitish": "master", + "name": "v1.0.0", + "body": "Description of the release", + "draft": false, + "prerelease": false + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/release" }, + "examples": { + "default": { "$ref": "#/components/examples/release" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/releases/1", + "schema": { "type": "string" } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/releases/assets/{asset_id}": { + "get": { + "summary": "Get a release asset", + "description": "To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/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.", + "tags": ["repos"], + "operationId": "repos/get-release-asset", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-release-asset" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/asset_id" } + ], + "responses": { + "200": { + "description": "To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/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.", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/release-asset" }, + "examples": { + "default": { "$ref": "#/components/examples/release-asset" } + } + } + } + }, + "302": { "$ref": "#/components/responses/found" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a release asset", + "description": "Users with push access to the repository can edit a release asset.", + "tags": ["repos"], + "operationId": "repos/update-release-asset", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#update-a-release-asset" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/asset_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The file name of the asset." + }, + "label": { + "type": "string", + "description": "An alternate short description of the asset. Used in place of the filename." + }, + "state": { "type": "string", "example": "\"uploaded\"" } + } + }, + "example": { "name": "foo-1.0.0-osx.zip", "label": "Mac binary" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/release-asset" }, + "examples": { + "default": { "$ref": "#/components/examples/release-asset" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a release asset", + "description": "", + "tags": ["repos"], + "operationId": "repos/delete-release-asset", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-a-release-asset" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/asset_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/releases/latest": { + "get": { + "summary": "Get the latest release", + "description": "View the latest published full release for the repository.\n\nThe latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published.", + "tags": ["repos"], + "operationId": "repos/get-latest-release", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-the-latest-release" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/release" }, + "examples": { + "default": { "$ref": "#/components/examples/release" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/releases/tags/{tag}": { + "get": { + "summary": "Get a release by tag name", + "description": "Get a published release with the specified tag.", + "tags": ["repos"], + "operationId": "repos/get-release-by-tag", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "tag", + "description": "tag+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/release" }, + "examples": { + "default": { "$ref": "#/components/examples/release" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/releases/{release_id}": { + "get": { + "summary": "Get a release", + "description": "**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/rest/overview/resources-in-the-rest-api#hypermedia).", + "tags": ["repos"], + "operationId": "repos/get-release", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-a-release" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/release_id" } + ], + "responses": { + "200": { + "description": "**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/rest/overview/resources-in-the-rest-api#hypermedia).", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/release" }, + "examples": { + "default": { "$ref": "#/components/examples/release" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update a release", + "description": "Users with push access to the repository can edit a release.", + "tags": ["repos"], + "operationId": "repos/update-release", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#update-a-release" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/release_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "tag_name": { + "type": "string", + "description": "The name of the tag." + }, + "target_commitish": { + "type": "string", + "description": "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": { + "type": "string", + "description": "The name of the release." + }, + "body": { + "type": "string", + "description": "Text describing the contents of the tag." + }, + "draft": { + "type": "boolean", + "description": "`true` makes the release a draft, and `false` publishes the release." + }, + "prerelease": { + "type": "boolean", + "description": "`true` to identify the release as a prerelease, `false` to identify the release as a full release." + } + } + }, + "example": { + "tag_name": "v1.0.0", + "target_commitish": "master", + "name": "v1.0.0", + "body": "Description of the release", + "draft": false, + "prerelease": false + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/release" }, + "examples": { + "default": { "$ref": "#/components/examples/release" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a release", + "description": "Users with push access to the repository can delete a release.", + "tags": ["repos"], + "operationId": "repos/delete-release", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#delete-a-release" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/release_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/releases/{release_id}/assets": { + "get": { + "summary": "List release assets", + "description": "", + "tags": ["repos"], + "operationId": "repos/list-release-assets", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-release-assets" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/release_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/release-asset" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/release-asset-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + }, + "post": { + "summary": "Upload a release asset", + "description": "This endpoint makes use of [a Hypermedia relation](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned in\nthe response of the [Create a release endpoint](https://docs.github.com/rest/reference/repos#create-a-release) to upload a release asset.\n\nYou need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint.\n\nMost libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: \n\n`application/zip`\n\nGitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example,\nyou'll still need to pass your authentication to be able to upload an asset.\n\nWhen an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted.\n\n**Notes:**\n* GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The \"[List assets for a release](https://docs.github.com/rest/reference/repos#list-assets-for-a-release)\"\nendpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://github.com/contact).\n* If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset.", + "tags": ["repos"], + "operationId": "repos/upload-release-asset", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#upload-a-release-asset" + }, + "servers": [ + { + "url": "{origin}", + "variables": { + "origin": { + "default": "https://uploads.github.com", + "description": "The URL origin (protocol + host name + port) is included in `upload_url` returned in the response of the \"Create a release\" endpoint" + } + } + } + ], + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/release_id" }, + { "name": "name", "in": "query", "schema": { "type": "string" } }, + { "name": "label", "in": "query", "schema": { "type": "string" } } + ], + "requestBody": { + "content": { + "*/*": { + "schema": { "type": "string", "description": "The raw file data" } + } + } + }, + "responses": { + "201": { + "description": "Response for successful upload", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/release-asset" }, + "examples": { + "response-for-successful-upload": { + "$ref": "#/components/examples/release-asset-response-for-successful-upload" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "releases" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/stargazers": { + "get": { + "summary": "List stargazers", + "description": "Lists the people that have starred the repository.\n\nYou can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header:", + "tags": ["activity"], + "operationId": "activity/list-stargazers-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-stargazers" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default-response": { + "$ref": "#/components/examples/simple-user-items-default-response" + } + } + }, + "application/vnd.github.v3.star+json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/stargazer" } + }, + "examples": { + "alternative-response-with-star-creation-timestamps": { + "$ref": "#/components/examples/stargazer-items-alternative-response-with-star-creation-timestamps" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "starring" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/stats/code_frequency": { + "get": { + "summary": "Get the weekly commit activity", + "description": "Returns a weekly aggregate of the number of additions and deletions pushed to a repository.", + "tags": ["repos"], + "operationId": "repos/get-code-frequency-stats", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-the-weekly-commit-activity" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "Returns a weekly aggregate of the number of additions and deletions pushed to a repository.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/code-frequency-stat" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/code-frequency-stat-items" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "statistics" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/stats/commit_activity": { + "get": { + "summary": "Get the last year of commit activity", + "description": "Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`.", + "tags": ["repos"], + "operationId": "repos/get-commit-activity-stats", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-the-last-year-of-commit-activity" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/commit-activity" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/commit-activity-items" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "statistics" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/stats/contributors": { + "get": { + "summary": "Get all contributor commit activity", + "description": "\nReturns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information:\n\n* `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).\n* `a` - Number of additions\n* `d` - Number of deletions\n* `c` - Number of commits", + "tags": ["repos"], + "operationId": "repos/get-contributors-stats", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-all-contributor-commit-activity" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "* `w` - Start of the week, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time).\n* `a` - Number of additions\n* `d` - Number of deletions\n* `c` - Number of commits", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/contributor-activity" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/contributor-activity-items" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "statistics" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/stats/participation": { + "get": { + "summary": "Get the weekly commit count", + "description": "Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`.\n\nThe array order is oldest week (index 0) to most recent week.", + "tags": ["repos"], + "operationId": "repos/get-participation-stats", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-the-weekly-commit-count" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "The array order is oldest week (index 0) to most recent week.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/participation-stats" + }, + "examples": { + "default": { + "$ref": "#/components/examples/participation-stats" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "statistics" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/stats/punch_card": { + "get": { + "summary": "Get the hourly commit count for each day", + "description": "Each array contains the day number, hour number, and number of commits:\n\n* `0-6`: Sunday - Saturday\n* `0-23`: Hour of day\n* Number of commits\n\nFor 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.", + "tags": ["repos"], + "operationId": "repos/get-punch-card-stats", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-the-hourly-commit-count-for-each-day" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "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.", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/code-frequency-stat" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/code-frequency-stat-items-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "statistics" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/statuses/{sha}": { + "post": { + "summary": "Create a commit status", + "description": "Users with push access in a repository can create commit statuses for a given SHA.\n\nNote: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error.", + "tags": ["repos"], + "operationId": "repos/create-commit-status", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#create-a-commit-status" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "sha", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "state": { + "type": "string", + "description": "The state of the status. Can be one of `error`, `failure`, `pending`, or `success`.", + "enum": ["error", "failure", "pending", "success"] + }, + "target_url": { + "type": "string", + "description": "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. \nFor 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: \n`http://ci.example.com/user/repo/build/sha`" + }, + "description": { + "type": "string", + "description": "A short description of the status." + }, + "context": { + "type": "string", + "description": "A string label to differentiate this status from the status of other systems.", + "default": "default" + } + }, + "required": ["state"] + }, + "example": { + "state": "success", + "target_url": "https://example.com/build/status", + "description": "The build succeeded!", + "context": "continuous-integration/jenkins" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/status" }, + "examples": { + "default": { "$ref": "#/components/examples/status" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "schema": { "type": "string" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "statuses" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/subscribers": { + "get": { + "summary": "List watchers", + "description": "Lists the people watching the specified repository.", + "tags": ["activity"], + "operationId": "activity/list-watchers-for-repo", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-watchers" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "watching" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/subscription": { + "get": { + "summary": "Get a repository subscription", + "description": "", + "tags": ["activity"], + "operationId": "activity/get-repo-subscription", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#get-a-repository-subscription" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "Response if you subscribe to the repository", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/repository-subscription" + }, + "examples": { + "response-if-you-subscribe-to-the-repository": { + "$ref": "#/components/examples/repository-subscription-response-if-you-subscribe-to-the-repository" + } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { + "description": "Response if you don't subscribe to the repository" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "watching" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set a repository subscription", + "description": "If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://docs.github.com/rest/reference/activity#delete-a-repository-subscription) completely.", + "tags": ["activity"], + "operationId": "activity/set-repo-subscription", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#set-a-repository-subscription" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "subscribed": { + "type": "boolean", + "description": "Determines if notifications should be received from this repository." + }, + "ignored": { + "type": "boolean", + "description": "Determines if all notifications should be blocked from this repository." + } + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/repository-subscription" + }, + "examples": { + "default": { + "$ref": "#/components/examples/repository-subscription" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "watching" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a repository subscription", + "description": "This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://docs.github.com/rest/reference/activity#set-a-repository-subscription).", + "tags": ["activity"], + "operationId": "activity/delete-repo-subscription", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#delete-a-repository-subscription" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "watching" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/tags": { + "get": { + "summary": "List repository tags", + "description": "", + "tags": ["repos"], + "operationId": "repos/list-tags", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#list-repository-tags" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/tag" } + }, + "examples": { + "default": { "$ref": "#/components/examples/tag-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/tarball/{ref}": { + "get": { + "summary": "Download a repository archive (tar)", + "description": "Gets a redirect URL to download a tar archive for a repository. If you omit `:ref`, the repository’s default branch (usually\n`master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe `Location` header to make a second `GET` request.\n**Note**: For private repositories, these links are temporary and expire after five minutes.", + "tags": ["repos"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#download-a-repository-archive" + }, + "operationId": "repos/download-tarball-archive", + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "302": { + "description": "response", + "headers": { + "Location": { + "example": "https://codeload.github.com/me/myprivate/legacy.zip/master?login=me&token=thistokenexpires", + "schema": { "type": "string" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "contents" + }, + "x-octokit": { + "changes": [ + { + "type": "OPERATION", + "date": "2020-09-17", + "before": { "operationId": "repos/download-archive" } + } + ] + } + } + }, + "/repos/{owner}/{repo}/teams": { + "get": { + "summary": "List repository teams", + "description": "", + "tags": ["repos"], + "operationId": "repos/list-teams", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#list-repository-teams" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + }, + "examples": { + "default": { "$ref": "#/components/examples/team-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/topics": { + "get": { + "summary": "Get all repository topics", + "description": "", + "tags": ["repos"], + "operationId": "repos/get-all-topics", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#get-all-repository-topics" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/topic" }, + "examples": { + "default": { "$ref": "#/components/examples/topic" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "mercy", + "note": "The `topics` property for repositories on GitHub is currently available for developers to preview. To view the `topics` property in calls that return repository results, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.mercy-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + }, + "put": { + "summary": "Replace all repository topics", + "description": "", + "tags": ["repos"], + "operationId": "repos/replace-all-topics", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#replace-all-repository-topics" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "names": { + "type": "array", + "description": "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.", + "items": { "type": "string" } + } + }, + "required": ["names"] + }, + "example": { "names": ["octocat", "atom", "electron", "api"] } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/topic" }, + "examples": { + "default": { "$ref": "#/components/examples/topic" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "mercy", + "note": "The `topics` property for repositories on GitHub is currently available for developers to preview. To view the `topics` property in calls that return repository results, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.mercy-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/traffic/clones": { + "get": { + "summary": "Get repository clones", + "description": "Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.", + "tags": ["repos"], + "operationId": "repos/get-clones", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-repository-clones" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/clone-traffic" }, + "examples": { + "default": { "$ref": "#/components/examples/clone-traffic" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "traffic" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/traffic/popular/paths": { + "get": { + "summary": "Get top referral paths", + "description": "Get the top 10 popular contents over the last 14 days.", + "tags": ["repos"], + "operationId": "repos/get-top-paths", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-top-referral-paths" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/content-traffic" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/content-traffic-items" + } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "traffic" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/traffic/popular/referrers": { + "get": { + "summary": "Get top referral sources", + "description": "Get the top 10 referrers over the last 14 days.", + "tags": ["repos"], + "operationId": "repos/get-top-referrers", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-top-referral-sources" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/referrer-traffic" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/referrer-traffic-items" + } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "traffic" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/traffic/views": { + "get": { + "summary": "Get page views", + "description": "Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.", + "tags": ["repos"], + "operationId": "repos/get-views", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#get-page-views" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { "$ref": "#/components/parameters/per" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/view-traffic" }, + "examples": { + "default": { "$ref": "#/components/examples/view-traffic" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "traffic" + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/transfer": { + "post": { + "summary": "Transfer a repository", + "description": "A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/).", + "tags": ["repos"], + "operationId": "repos/transfer", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#transfer-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "new_owner": { + "type": "string", + "description": "**Required:** The username or organization name the repository will be transferred to." + }, + "team_ids": { + "type": "array", + "description": "ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories.", + "items": { "type": "integer" } + } + } + }, + "example": { "new_owner": "github", "team_ids": [12, 345] } + } + } + }, + "responses": { + "202": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/repository" }, + "examples": { + "default": { "$ref": "#/components/examples/repository" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/vulnerability-alerts": { + "get": { + "summary": "Check if vulnerability alerts are enabled for a repository", + "description": "Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user must have admin access to the repository. For more information, see \"[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)\".", + "tags": ["repos"], + "operationId": "repos/check-vulnerability-alerts", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "204": { + "description": "Response if repository is enabled with vulnerability alerts" + }, + "404": { + "description": "Response if repository is not enabled with vulnerability alerts" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "dorian", + "note": "Enabling and disabling dependency alerts for a repository using the REST API is currently available for developers to preview. To access these new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.dorian-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + }, + "put": { + "summary": "Enable vulnerability alerts", + "description": "Enables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see \"[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)\".", + "tags": ["repos"], + "operationId": "repos/enable-vulnerability-alerts", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#enable-vulnerability-alerts" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "dorian", + "note": "Enabling and disabling dependency alerts for a repository using the REST API is currently available for developers to preview. To access these new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.dorian-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Disable vulnerability alerts", + "description": "Disables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see \"[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)\".", + "tags": ["repos"], + "operationId": "repos/disable-vulnerability-alerts", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#disable-vulnerability-alerts" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "dorian", + "note": "Enabling and disabling dependency alerts for a repository using the REST API is currently available for developers to preview. To access these new endpoints during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.dorian-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repos/{owner}/{repo}/zipball/{ref}": { + "get": { + "summary": "Download a repository archive (zip)", + "description": "Gets a redirect URL to download a zip archive for a repository. If you omit `:ref`, the repository’s default branch (usually\n`master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use\nthe `Location` header to make a second `GET` request.\n**Note**: For private repositories, these links are temporary and expire after five minutes.", + "tags": ["repos"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#download-a-repository-archive" + }, + "operationId": "repos/download-zipball-archive", + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" }, + { + "name": "ref", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "302": { + "description": "response", + "headers": { + "Location": { + "example": "https://codeload.github.com/me/myprivate/legacy.zip/master?login=me&token=thistokenexpires", + "schema": { "type": "string" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": "contents" + }, + "x-octokit": { + "changes": [ + { + "type": "OPERATION", + "date": "2020-09-17", + "before": { "operationId": "repos/download-archive" } + } + ] + } + } + }, + "/repos/{template_owner}/{template_repo}/generate": { + "post": { + "summary": "Create a repository using a template", + "description": "Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. The authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [Get a repository](https://docs.github.com/rest/reference/repos#get-a-repository) endpoint and check that the `is_template` key is `true`.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository", + "tags": ["repos"], + "operationId": "repos/create-using-template", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#create-a-repository-using-a-template" + }, + "parameters": [ + { + "name": "template_owner", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "template_repo", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "owner": { + "type": "string", + "description": "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." + }, + "name": { + "type": "string", + "description": "The name of the new repository." + }, + "description": { + "type": "string", + "description": "A short description of the new repository." + }, + "include_all_branches": { + "type": "boolean", + "description": "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`.", + "default": false + }, + "private": { + "type": "boolean", + "description": "Either `true` to create a new private repository or `false` to create a new public one.", + "default": false + } + }, + "required": ["name"] + }, + "example": { + "owner": "octocat", + "name": "Hello-World", + "description": "This is your first repository", + "include_all_branches": false, + "private": false + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/repository" }, + "examples": { + "default": { "$ref": "#/components/examples/repository-3" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World", + "schema": { "type": "string" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "baptiste", + "note": "Creating and using repository templates is currently available for developers to preview. To access this new endpoint during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n\n```shell\napplication/vnd.github.baptiste-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/repositories": { + "get": { + "summary": "List public repositories", + "description": "Lists all public repositories in the order that they were created.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of repositories.", + "tags": ["repos"], + "operationId": "repos/list-public", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#list-public-repositories" + }, + "parameters": [{ "$ref": "#/components/parameters/since-repo" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/minimal-repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/public-repository-items" + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\"", + "schema": { "type": "string" } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/scim/v2/enterprises/{enterprise}/Groups": { + "get": { + "summary": "List provisioned SCIM groups for an enterprise", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.", + "operationId": "enterprise-admin/list-provisioned-groups-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#list-provisioned-scim groups-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/start_index" }, + { "$ref": "#/components/parameters/count" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim-group-list-enterprise" + }, + "examples": { + "default": { + "$ref": "#/components/examples/scim-enterprise-group-list" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + }, + "post": { + "summary": "Provision a SCIM enterprise group and invite users", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.\n\nProvision an enterprise group, and invite users to the group. This sends invitation emails to the email address of the invited users to join the GitHub organization that the SCIM group corresponds to.", + "operationId": "enterprise-admin/provision-and-invite-enterprise-group", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#provision-a-scim-enterprise-group-and-invite-users" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "schemas": { + "type": "array", + "description": "The SCIM schema URIs.", + "items": { "type": "string" } + }, + "displayName": { + "type": "string", + "description": "The name of the SCIM group. This must match the GitHub organization that the group maps to." + }, + "members": { + "type": "array", + "items": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "The SCIM user ID for a user." + } + }, + "required": ["value"] + } + } + }, + "required": ["schemas", "displayName"] + }, + "example": { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"], + "displayName": "octo-org", + "members": [ + { "value": "92b58aaa-a1d6-11ea-8227-b9ce9e023ccc" }, + { "value": "aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5" } + ] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim-enterprise-group" + }, + "examples": { + "default": { + "$ref": "#/components/examples/scim-enterprise-group" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + } + }, + "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": { + "get": { + "summary": "Get SCIM provisioning information for an enterprise group", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.", + "operationId": "enterprise-admin/get-provisioning-information-for-enterprise-group", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise group" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/scim_group_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim-enterprise-group" + }, + "examples": { + "default": { + "$ref": "#/components/examples/scim-enterprise-group" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set SCIM information for a provisioned enterprise group", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.\n\nReplaces an existing provisioned group’s information. You must provide all the information required for the group as if you were provisioning it for the first time. Any existing group information that you don't provide will be removed, including group membership. If you want to only update a specific attribute, use the [Update an attribute for a SCIM enterprise group](#update-an-attribute-for-a-scim-enterprise-group) endpoint instead.", + "operationId": "enterprise-admin/set-information-for-provisioned-enterprise-group", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-group" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/scim_group_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "schemas": { + "type": "array", + "description": "The SCIM schema URIs.", + "items": { "type": "string" } + }, + "displayName": { + "type": "string", + "description": "The name of the SCIM group. This must match the GitHub organization that the group maps to." + }, + "members": { + "type": "array", + "items": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "The SCIM user ID for a user." + } + }, + "required": ["value"] + } + } + }, + "required": ["schemas", "displayName"] + }, + "example": { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"], + "displayName": "octo-org", + "members": [ + { "value": "92b58aaa-a1d6-11ea-8227-b9ce9e023ccc" }, + { "value": "aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5" } + ] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim-enterprise-group" + }, + "examples": { + "default": { + "$ref": "#/components/examples/scim-enterprise-group" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an attribute for a SCIM enterprise group", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.\n\nAllows you to change a provisioned group’s individual attributes. To change a group’s values, you must provide a specific Operations JSON format that contains at least one of the add, remove, or replace operations. For examples and more information on the SCIM operations format, see the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2).", + "operationId": "enterprise-admin/update-attribute-for-enterprise-group", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-group" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/scim_group_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "schemas": { + "type": "array", + "description": "The SCIM schema URIs.", + "items": { "type": "string" } + }, + "Operations": { + "type": "array", + "description": "Array of [SCIM operations](https://tools.ietf.org/html/rfc7644#section-3.5.2).", + "items": { "type": "object" } + } + }, + "required": ["schemas", "Operations"] + }, + "example": { + "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], + "Operations": [ + { + "op": "remove", + "path": "members", + "value": [ + { "value": "aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5" } + ] + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim-enterprise-group" + }, + "examples": { + "default": { + "$ref": "#/components/examples/scim-enterprise-group-2" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a SCIM group from an enterprise", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.", + "operationId": "enterprise-admin/delete-scim-group-from-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-group-from-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/scim_group_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + } + }, + "/scim/v2/enterprises/{enterprise}/Users": { + "get": { + "summary": "List SCIM provisioned identities for an enterprise", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.\n\nRetrieves a paginated list of all provisioned enterprise members, including pending invitations.\n\nWhen a user with a SAML-provisioned external identity leaves (or is removed from) an enterprise, the account's metadata is immediately removed. However, the returned list of user accounts might not always match the organization or enterprise member list you see on GitHub. This can happen in certain cases where an external identity associated with an organization will not match an organization member:\n - When a user with a SCIM-provisioned external identity is removed from an enterprise, the account's metadata is preserved to allow the user to re-join the organization in the future.\n - When inviting a user to join an organization, you can expect to see their external identity in the results before they accept the invitation, or if the invitation is cancelled (or never accepted).\n - When a user is invited over SCIM, an external identity is created that matches with the invitee's email address. However, this identity is only linked to a user account when the user accepts the invitation by going through SAML SSO.\n\nThe returned list of external identities can include an entry for a `null` user. These are unlinked SAML identities that are created when a user goes through the following Single Sign-On (SSO) process but does not sign in to their GitHub account after completing SSO:\n\n1. The user is granted access by the IdP and is not a member of the GitHub enterprise.\n\n1. The user attempts to access the GitHub enterprise and initiates the SAML SSO process, and is not currently signed in to their GitHub account.\n\n1. After successfully authenticating with the SAML SSO IdP, the `null` external identity entry is created and the user is prompted to sign in to their GitHub account:\n - If the user signs in, their GitHub account is linked to this entry.\n - If the user does not sign in (or does not create a new account when prompted), they are not added to the GitHub enterprise, and the external identity `null` entry remains in place.", + "operationId": "enterprise-admin/list-provisioned-identities-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#list-scim-provisioned-identities-for-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/start_index" }, + { "$ref": "#/components/parameters/count" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim-user-list-enterprise" + }, + "examples": { + "default": { + "$ref": "#/components/examples/scim-enterprise-user-list" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + }, + "post": { + "summary": "Provision and invite a SCIM enterprise user", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.\n\nProvision enterprise membership for a user, and send organization invitation emails to the email address.\n\nYou can optionally include the groups a user will be invited to join. If you do not provide a list of `groups`, the user is provisioned for the enterprise, but no organization invitation emails will be sent.", + "operationId": "enterprise-admin/provision-and-invite-enterprise-user", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#provision-and-invite-a-scim-enterprise-user" + }, + "parameters": [{ "$ref": "#/components/parameters/enterprise" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "schemas": { + "type": "array", + "description": "The SCIM schema URIs.", + "items": { "type": "string" } + }, + "userName": { + "type": "string", + "description": "The username for the user." + }, + "name": { + "type": "object", + "properties": { + "givenName": { + "type": "string", + "description": "The first name of the user." + }, + "familyName": { + "type": "string", + "description": "The last name of the user." + } + }, + "required": ["givenName", "familyName"] + }, + "emails": { + "type": "array", + "description": "List of user emails.", + "items": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "The email address." + }, + "type": { + "type": "string", + "description": "The type of email address." + }, + "primary": { + "type": "boolean", + "description": "Whether this email address is the primary address." + } + }, + "required": ["value", "type", "primary"] + } + }, + "groups": { + "type": "array", + "description": "List of SCIM group IDs the user is a member of.", + "items": { + "type": "object", + "properties": { "value": { "type": "string" } } + } + } + }, + "required": ["schemas", "userName", "name", "emails"] + }, + "example": { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], + "userName": "mona.octocat@okta.example.com", + "name": { "familyName": "Octocat", "givenName": "Mona" }, + "emails": [ + { + "value": "mona.octocat@okta.example.com", + "type": "work", + "primary": true + } + ], + "groups": [{ "value": "468dd3fa-a1d6-11ea-9031-15a1f0d7811d" }] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim-enterprise-user" + }, + "examples": { + "default": { + "$ref": "#/components/examples/scim-enterprise-user" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + } + }, + "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": { + "get": { + "summary": "Get SCIM provisioning information for an enterprise user", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.", + "operationId": "enterprise-admin/get-provisioning-information-for-enterprise-user", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/scim_user_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim-enterprise-user" + }, + "examples": { + "default": { + "$ref": "#/components/examples/scim-enterprise-user" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set SCIM information for a provisioned enterprise user", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.\n\nReplaces an existing provisioned user's information. You must provide all the information required for the user as if you were provisioning them for the first time. Any existing user information that you don't provide will be removed. If you want to only update a specific attribute, use the [Update an attribute for a SCIM user](#update-an-attribute-for-an-enterprise-scim-user) endpoint instead.\n\nYou must at least provide the required values for the user: `userName`, `name`, and `emails`.\n\n**Warning:** Setting `active: false` removes the user from the enterprise, deletes the external identity, and deletes the associated `{scim_user_id}`.", + "operationId": "enterprise-admin/set-information-for-provisioned-enterprise-user", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/scim_user_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "schemas": { + "type": "array", + "description": "The SCIM schema URIs.", + "items": { "type": "string" } + }, + "userName": { + "type": "string", + "description": "The username for the user." + }, + "name": { + "type": "object", + "properties": { + "givenName": { + "type": "string", + "description": "The first name of the user." + }, + "familyName": { + "type": "string", + "description": "The last name of the user." + } + }, + "required": ["givenName", "familyName"] + }, + "emails": { + "type": "array", + "description": "List of user emails.", + "items": { + "type": "object", + "properties": { + "value": { + "type": "string", + "description": "The email address." + }, + "type": { + "type": "string", + "description": "The type of email address." + }, + "primary": { + "type": "boolean", + "description": "Whether this email address is the primary address." + } + }, + "required": ["value", "type", "primary"] + } + }, + "groups": { + "type": "array", + "description": "List of SCIM group IDs the user is a member of.", + "items": { + "type": "object", + "properties": { "value": { "type": "string" } } + } + } + }, + "required": ["schemas", "userName", "name", "emails"] + }, + "example": { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], + "userName": "mona.octocat@okta.example.com", + "name": { "familyName": "Octocat", "givenName": "Mona" }, + "emails": [ + { + "value": "mona.octocat@okta.example.com", + "type": "work", + "primary": true + } + ], + "groups": [{ "value": "468dd3fa-a1d6-11ea-9031-15a1f0d7811d" }] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim-enterprise-user" + }, + "examples": { + "default": { + "$ref": "#/components/examples/scim-enterprise-user" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an attribute for a SCIM enterprise user", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.\n\nAllows you to change a provisioned user's individual attributes. To change a user's values, you must provide a specific `Operations` JSON format that contains at least one of the `add`, `remove`, or `replace` operations. For examples and more information on the SCIM operations format, see the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2).\n\n**Note:** Complicated SCIM `path` selectors that include filters are not supported. For example, a `path` selector defined as `\"path\": \"emails[type eq \\\"work\\\"]\"` will not work.\n\n**Warning:** If you set `active:false` using the `replace` operation (as shown in the JSON example below), it removes the user from the enterprise, deletes the external identity, and deletes the associated `:scim_user_id`.\n\n```\n{\n \"Operations\":[{\n \"op\":\"replace\",\n \"value\":{\n \"active\":false\n }\n }]\n}\n```", + "operationId": "enterprise-admin/update-attribute-for-enterprise-user", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/scim_user_id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "schemas": { + "type": "array", + "description": "The SCIM schema URIs.", + "items": { "type": "string" } + }, + "Operations": { + "type": "array", + "description": "Array of [SCIM operations](https://tools.ietf.org/html/rfc7644#section-3.5.2).", + "items": { "type": "object" } + } + }, + "required": ["schemas", "Operations"] + }, + "example": { + "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"], + "Operations": [ + { + "op": "add", + "path": "emails", + "value": [ + { "value": "monalisa@octocat.github.com", "type": "home" } + ] + }, + { + "op": "replace", + "path": "name.givenName", + "value": "Monalisa" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/scim-enterprise-user" + }, + "examples": { + "default": { + "$ref": "#/components/examples/scim-enterprise-user-2" + } + } + } + } + } + }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a SCIM user from an enterprise", + "description": "**Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change.", + "operationId": "enterprise-admin/delete-user-from-enterprise", + "tags": ["enterprise-admin"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-user-from-an-enterprise" + }, + "parameters": [ + { "$ref": "#/components/parameters/enterprise" }, + { "$ref": "#/components/parameters/scim_user_id" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "enabledForGitHubApps": true, + "githubCloudOnly": true, + "previews": [], + "category": "enterprise-admin", + "subcategory": "scim" + }, + "x-octokit": {} + } + }, + "/scim/v2/organizations/{org}/Users": { + "get": { + "summary": "List SCIM provisioned identities", + "description": "Retrieves a paginated list of all provisioned organization members, including pending invitations. If you provide the `filter` parameter, the resources for all matching provisions members are returned.\n\nWhen a user with a SAML-provisioned external identity leaves (or is removed from) an organization, the account's metadata is immediately removed. However, the returned list of user accounts might not always match the organization or enterprise member list you see on GitHub. This can happen in certain cases where an external identity associated with an organization will not match an organization member:\n - When a user with a SCIM-provisioned external identity is removed from an organization, the account's metadata is preserved to allow the user to re-join the organization in the future.\n - When inviting a user to join an organization, you can expect to see their external identity in the results before they accept the invitation, or if the invitation is cancelled (or never accepted).\n - When a user is invited over SCIM, an external identity is created that matches with the invitee's email address. However, this identity is only linked to a user account when the user accepts the invitation by going through SAML SSO.\n\nThe returned list of external identities can include an entry for a `null` user. These are unlinked SAML identities that are created when a user goes through the following Single Sign-On (SSO) process but does not sign in to their GitHub account after completing SSO:\n\n1. The user is granted access by the IdP and is not a member of the GitHub organization.\n\n1. The user attempts to access the GitHub organization and initiates the SAML SSO process, and is not currently signed in to their GitHub account.\n\n1. After successfully authenticating with the SAML SSO IdP, the `null` external identity entry is created and the user is prompted to sign in to their GitHub account:\n - If the user signs in, their GitHub account is linked to this entry.\n - If the user does not sign in (or does not create a new account when prompted), they are not added to the GitHub organization, and the external identity `null` entry remains in place.", + "tags": ["scim"], + "operationId": "scim/list-provisioned-identities", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/scim/#list-scim-provisioned-identities" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { + "name": "startIndex", + "description": "Used for pagination: the index of the first result to return.", + "in": "query", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "count", + "description": "Used for pagination: the number of results to return.", + "in": "query", + "required": false, + "schema": { "type": "integer" } + }, + { + "name": "filter", + "description": "Filters results using the equals query parameter operator (`eq`). You can filter results that are equal to `id`, `userName`, `emails`, and `external_id`. For example, to search for an identity with the `userName` Octocat, you would use this query:\n\n`?filter=userName%20eq%20\\\"Octocat\\\"`.\n\nTo filter results for for the identity with the email `octocat@github.com`, you would use this query:\n\n`?filter=emails%20eq%20\\\"octocat@github.com\\\"`.", + "in": "query", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-user-list" }, + "examples": { + "response-with-filter": { + "$ref": "#/components/examples/scim-user-list-response-with-filter" + }, + "response-without-filter": { + "$ref": "#/components/examples/scim-user-list-response-without-filter" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "400": { "$ref": "#/components/responses/scim_bad_request" }, + "403": { "$ref": "#/components/responses/scim_forbidden" }, + "404": { "$ref": "#/components/responses/scim_not_found" } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": true, + "previews": [], + "category": "scim", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Provision and invite a SCIM user", + "description": "Provision organization membership for a user, and send an activation email to the email address.", + "tags": ["scim"], + "operationId": "scim/provision-and-invite-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/scim/#provision-and-invite-a-scim-user" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "201": { + "description": "response", + "content": { + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-user" }, + "examples": { + "default": { "$ref": "#/components/examples/scim-user" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "400": { "$ref": "#/components/responses/scim_bad_request" }, + "403": { "$ref": "#/components/responses/scim_forbidden" }, + "404": { "$ref": "#/components/responses/scim_not_found" }, + "409": { "$ref": "#/components/responses/scim_conflict" }, + "500": { "$ref": "#/components/responses/scim_internal_error" } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "userName": { + "description": "Configured by the admin. Could be an email, login, or username", + "example": "someone@example.com", + "type": "string" + }, + "displayName": { + "description": "The name of the user, suitable for display to end-users", + "example": "Jon Doe", + "type": "string" + }, + "name": { + "type": "object", + "properties": { + "givenName": { "type": "string" }, + "familyName": { "type": "string" }, + "formatted": { "type": "string" } + }, + "required": ["givenName", "familyName"], + "example": "Jane User" + }, + "emails": { + "description": "user emails", + "example": ["someone@example.com", "another@example.com"], + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "properties": { + "value": { "type": "string" }, + "primary": { "type": "boolean" }, + "type": { "type": "string" } + }, + "required": ["value"] + } + }, + "schemas": { "type": "array", "items": { "type": "string" } }, + "externalId": { "type": "string" }, + "groups": { "type": "array", "items": { "type": "string" } }, + "active": { "type": "boolean" } + }, + "required": ["userName", "name", "emails"] + } + } + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": true, + "previews": [], + "category": "scim", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/scim/v2/organizations/{org}/Users/{scim_user_id}": { + "get": { + "summary": "Get SCIM provisioning information for a user", + "description": "", + "tags": ["scim"], + "operationId": "scim/get-provisioning-information-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/scim/#get-scim-provisioning-information-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/scim_user_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-user" }, + "examples": { + "default": { "$ref": "#/components/examples/scim-user" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/scim_forbidden" }, + "404": { "$ref": "#/components/responses/scim_not_found" } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": true, + "previews": [], + "category": "scim", + "subcategory": null + }, + "x-octokit": {} + }, + "put": { + "summary": "Update a provisioned organization membership", + "description": "Replaces an existing provisioned user's information. You must provide all the information required for the user as if you were provisioning them for the first time. Any existing user information that you don't provide will be removed. If you want to only update a specific attribute, use the [Update an attribute for a SCIM user](https://docs.github.com/rest/reference/scim#update-an-attribute-for-a-scim-user) endpoint instead.\n\nYou must at least provide the required values for the user: `userName`, `name`, and `emails`.\n\n**Warning:** Setting `active: false` removes the user from the organization, deletes the external identity, and deletes the associated `{scim_user_id}`.", + "tags": ["scim"], + "operationId": "scim/set-information-for-provisioned-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/scim/#set-scim-information-for-a-provisioned-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/scim_user_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-user" }, + "examples": { + "default": { "$ref": "#/components/examples/scim-user" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/scim_forbidden" }, + "404": { "$ref": "#/components/responses/scim_not_found" } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "schemas": { "type": "array", "items": { "type": "string" } }, + "displayName": { + "description": "The name of the user, suitable for display to end-users", + "example": "Jon Doe", + "type": "string" + }, + "externalId": { "type": "string" }, + "groups": { "type": "array", "items": { "type": "string" } }, + "active": { "type": "boolean" }, + "userName": { + "description": "Configured by the admin. Could be an email, login, or username", + "example": "someone@example.com", + "type": "string" + }, + "name": { + "type": "object", + "properties": { + "givenName": { "type": "string" }, + "familyName": { "type": "string" }, + "formatted": { "type": "string" } + }, + "required": ["givenName", "familyName"], + "example": "Jane User" + }, + "emails": { + "description": "user emails", + "example": ["someone@example.com", "another@example.com"], + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "properties": { + "type": { "type": "string" }, + "value": { "type": "string" }, + "primary": { "type": "boolean" } + }, + "required": ["value"] + } + } + }, + "required": ["userName", "name", "emails"] + } + } + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": true, + "previews": [], + "category": "scim", + "subcategory": null + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an attribute for a SCIM user", + "description": "Allows you to change a provisioned user's individual attributes. To change a user's values, you must provide a specific `Operations` JSON format that contains at least one of the `add`, `remove`, or `replace` operations. For examples and more information on the SCIM operations format, see the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2).\n\n**Note:** Complicated SCIM `path` selectors that include filters are not supported. For example, a `path` selector defined as `\"path\": \"emails[type eq \\\"work\\\"]\"` will not work.\n\n**Warning:** If you set `active:false` using the `replace` operation (as shown in the JSON example below), it removes the user from the organization, deletes the external identity, and deletes the associated `:scim_user_id`.\n\n```\n{\n \"Operations\":[{\n \"op\":\"replace\",\n \"value\":{\n \"active\":false\n }\n }]\n}\n```", + "tags": ["scim"], + "operationId": "scim/update-attribute-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/scim/#update-an-attribute-for-a-scim-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/scim_user_id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-user" }, + "examples": { + "default": { "$ref": "#/components/examples/scim-user" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "400": { "$ref": "#/components/responses/scim_bad_request" }, + "403": { "$ref": "#/components/responses/scim_forbidden" }, + "404": { "$ref": "#/components/responses/scim_not_found" }, + "429": { + "description": "Too many requests", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "schemas": { "type": "array", "items": { "type": "string" } }, + "Operations": { + "description": "Set of operations to be performed", + "example": [ + { "op": "replace", "value": { "active": false } } + ], + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "properties": { + "op": { + "type": "string", + "enum": ["add", "remove", "replace"] + }, + "path": { "type": "string" }, + "value": { + "oneOf": [ + { + "type": "object", + "properties": { + "active": { + "type": "boolean", + "nullable": true + }, + "userName": { + "type": "string", + "nullable": true + }, + "externalId": { + "type": "string", + "nullable": true + }, + "givenName": { + "type": "string", + "nullable": true + }, + "familyName": { + "type": "string", + "nullable": true + } + } + }, + { + "type": "array", + "items": { + "type": "object", + "properties": { + "value": { "type": "string" }, + "primary": { "type": "boolean" } + } + } + }, + { "type": "string" } + ] + } + }, + "required": ["op"] + } + } + }, + "required": ["Operations"], + "type": "object" + } + } + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": true, + "previews": [], + "category": "scim", + "subcategory": null + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a SCIM user from an organization", + "description": "", + "tags": ["scim"], + "operationId": "scim/delete-user-from-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/scim/#delete-a-scim-user-from-an-organization" + }, + "parameters": [ + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/scim_user_id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/scim_forbidden" }, + "404": { "$ref": "#/components/responses/scim_not_found" } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": true, + "previews": [], + "category": "scim", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/search/code": { + "get": { + "summary": "Search code", + "description": "Searches for query terms inside of a file. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).\n\nWhen searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).\n\nFor example, if you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery) repository, your query would look something like this:\n\n`q=addClass+in:file+language:js+repo:jquery/jquery`\n\nThis query searches for the keyword `addClass` within a file's contents. The query limits the search to files where the language is JavaScript in the `jquery/jquery` repository.\n\n#### Considerations for code search\n\nDue to the complexity of searching code, there are a few restrictions on how searches are performed:\n\n* Only the _default branch_ is considered. In most cases, this will be the `master` branch.\n* Only files smaller than 384 KB are searchable.\n* You must always include at least one search term when searching source code. For example, searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) is not valid, while [`amazing\nlanguage:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is.", + "tags": ["search"], + "operationId": "search/code", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/search/#search-code" + }, + "parameters": [ + { + "name": "q", + "description": "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/rest/reference/search#constructing-a-search-query). See \"[Searching code](https://help.github.com/articles/searching-code/)\" for a detailed list of qualifiers.", + "in": "query", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "sort", + "description": "Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/reference/search#ranking-search-results)", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["indexed"] } + }, + { "$ref": "#/components/parameters/order" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "incomplete_results": { "type": "boolean" }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/code-search-result-item" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/code-search-result-item-paginated" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" }, + "503": { "$ref": "#/components/responses/service_unavailable" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "search", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/search/commits": { + "get": { + "summary": "Search commits", + "description": "Find commits via various criteria on the default branch (usually `master`). This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).\n\nWhen searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text match\nmetadata](https://docs.github.com/rest/reference/search#text-match-metadata).\n\nFor example, if you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this:\n\n`q=repo:octocat/Spoon-Knife+css`", + "tags": ["search"], + "operationId": "search/commits", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/search/#search-commits" + }, + "parameters": [ + { + "name": "q", + "description": "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/rest/reference/search#constructing-a-search-query). See \"[Searching commits](https://help.github.com/articles/searching-commits/)\" for a detailed list of qualifiers.", + "in": "query", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "sort", + "description": "Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://docs.github.com/rest/reference/search#ranking-search-results)", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["author-date", "committer-date"] + } + }, + { "$ref": "#/components/parameters/order" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "incomplete_results": { "type": "boolean" }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/commit-search-result-item" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/commit-search-result-item-paginated" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "cloak", + "note": "The Commit Search API is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2017-01-05-commit-search-api/) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.cloak-preview\n```" + } + ], + "category": "search", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/search/issues": { + "get": { + "summary": "Search issues and pull requests", + "description": "Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).\n\nWhen searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted\nsearch results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).\n\nFor example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this.\n\n`q=windows+label:bug+language:python+state:open&sort=created&order=asc`\n\nThis query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results.\n\n**Note:** For [user-to-server](https://docs.github.com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) GitHub App requests, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see \"[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests).\"", + "tags": ["search"], + "operationId": "search/issues-and-pull-requests", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/search/#search-issues-and-pull-requests" + }, + "parameters": [ + { + "name": "q", + "description": "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/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.", + "in": "query", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "sort", + "description": "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/rest/reference/search#ranking-search-results)", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "comments", + "reactions", + "reactions-+1", + "reactions--1", + "reactions-smile", + "reactions-thinking_face", + "reactions-heart", + "reactions-tada", + "interactions", + "created", + "updated" + ] + } + }, + { "$ref": "#/components/parameters/order" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "incomplete_results": { "type": "boolean" }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/issue-search-result-item" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/issue-search-result-item-paginated" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" }, + "503": { "$ref": "#/components/responses/service_unavailable" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "search", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/search/labels": { + "get": { + "summary": "Search labels", + "description": "Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).\n\nWhen searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).\n\nFor example, if you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this:\n\n`q=bug+defect+enhancement&repository_id=64778136`\n\nThe labels that best match the query appear first in the search results.", + "tags": ["search"], + "operationId": "search/labels", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/search/#search-labels" + }, + "parameters": [ + { + "name": "repository_id", + "description": "The id of the repository.", + "in": "query", + "required": true, + "schema": { "type": "integer" } + }, + { + "name": "q", + "description": "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/rest/reference/search#constructing-a-search-query).", + "in": "query", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "sort", + "description": "Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://docs.github.com/rest/reference/search#ranking-search-results)", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["created", "updated"] } + }, + { "$ref": "#/components/parameters/order" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "incomplete_results": { "type": "boolean" }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/label-search-result-item" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/label-search-result-item-paginated" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "search", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/search/repositories": { + "get": { + "summary": "Search repositories", + "description": "Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).\n\nWhen searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).\n\nFor example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this:\n\n`q=tetris+language:assembly&sort=stars&order=desc`\n\nThis query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results.\n\nWhen you include the `mercy` preview header, you can also search for multiple topics by adding more `topic:` instances. For example, your query might look like this:\n\n`q=topic:ruby+topic:rails`", + "tags": ["search"], + "operationId": "search/repos", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/search/#search-repositories" + }, + "parameters": [ + { + "name": "q", + "description": "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/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.", + "in": "query", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "sort", + "description": "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/rest/reference/search#ranking-search-results)", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["stars", "forks", "help-wanted-issues", "updated"] + } + }, + { "$ref": "#/components/parameters/order" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "incomplete_results": { "type": "boolean" }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/repo-search-result-item" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/repo-search-result-item-paginated" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "422": { "$ref": "#/components/responses/validation_failed" }, + "503": { "$ref": "#/components/responses/service_unavailable" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "mercy", + "note": "The `topics` property for repositories on GitHub is currently available for developers to preview. To view the `topics` property in calls that return repository results, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.mercy-preview+json\n```" + } + ], + "category": "search", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/search/topics": { + "get": { + "summary": "Search topics", + "description": "Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). See \"[Searching topics](https://help.github.com/articles/searching-topics/)\" for a detailed list of qualifiers.\n\nWhen searching for topics, you can get text match metadata for the topic's **short\\_description**, **description**, **name**, or **display\\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).\n\nFor example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this:\n\n`q=ruby+is:featured`\n\nThis query searches for topics with the keyword `ruby` and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results.", + "tags": ["search"], + "operationId": "search/topics", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/search/#search-topics" + }, + "parameters": [ + { + "name": "q", + "description": "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/rest/reference/search#constructing-a-search-query).", + "in": "query", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "incomplete_results": { "type": "boolean" }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/topic-search-result-item" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/topic-search-result-item-paginated" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "mercy", + "note": "The `topics` property for repositories on GitHub is currently available for developers to preview. To view the `topics` property in calls that return repository results, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.mercy-preview+json\n```" + } + ], + "category": "search", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/search/users": { + "get": { + "summary": "Search users", + "description": "Find users via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination).\n\nWhen searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata).\n\nFor example, if you're looking for a list of popular users, you might try this query:\n\n`q=tom+repos:%3E42+followers:%3E1000`\n\nThis query searches for users with the name `tom`. The results are restricted to users with more than 42 repositories and over 1,000 followers.", + "tags": ["search"], + "operationId": "search/users", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/search/#search-users" + }, + "parameters": [ + { + "name": "q", + "description": "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/rest/reference/search#constructing-a-search-query). See \"[Searching users](https://help.github.com/articles/searching-users/)\" for a detailed list of qualifiers.", + "in": "query", + "required": true, + "schema": { "type": "string" } + }, + { + "name": "sort", + "description": "Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://docs.github.com/rest/reference/search#ranking-search-results)", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["followers", "repositories", "joined"] + } + }, + { "$ref": "#/components/parameters/order" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "incomplete_results": { "type": "boolean" }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/user-search-result-item" + } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/user-search-result-item-paginated" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "422": { "$ref": "#/components/responses/validation_failed" }, + "503": { "$ref": "#/components/responses/service_unavailable" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "search", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/teams/{team_id}": { + "get": { + "summary": "Get a team (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/rest/reference/teams#get-a-team-by-name) endpoint.", + "tags": ["teams"], + "operationId": "teams/get-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#get-a-team-legacy" + }, + "parameters": [{ "$ref": "#/components/parameters/team-id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-full" }, + "examples": { + "default": { "$ref": "#/components/examples/team-full" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "patch": { + "summary": "Update a team (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/reference/teams#update-a-team) endpoint.\n\nTo edit a team, the authenticated user must either be an organization owner or a team maintainer.\n\n**Note:** With nested teams, the `privacy` for parent teams cannot be `secret`.", + "tags": ["teams"], + "operationId": "teams/update-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#update-a-team-legacy" + }, + "parameters": [{ "$ref": "#/components/parameters/team-id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the team." + }, + "description": { + "type": "string", + "description": "The description of the team." + }, + "privacy": { + "type": "string", + "description": "The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: \n**For a non-nested team:** \n\\* `secret` - only visible to organization owners and members of this team. \n\\* `closed` - visible to all members of this organization. \n**For a parent or child team:** \n\\* `closed` - visible to all members of this organization.", + "enum": ["secret", "closed"] + }, + "permission": { + "type": "string", + "description": "**Deprecated**. The permission that new repositories will be added to the team with when none is specified. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer newly-added repositories. \n\\* `push` - team members can pull and push, but not administer newly-added repositories. \n\\* `admin` - team members can pull, push and administer newly-added repositories.", + "enum": ["pull", "push", "admin"], + "default": "pull" + }, + "parent_team_id": { + "type": "integer", + "description": "The ID of a team to set as the parent team.", + "nullable": true + } + }, + "required": ["name"] + }, + "example": { + "name": "new team name", + "description": "new team description", + "privacy": "closed" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-full" }, + "examples": { + "default": { "$ref": "#/components/examples/team-full" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a team (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/rest/reference/teams#delete-a-team) endpoint.\n\nTo delete a team, the authenticated user must be an organization owner or team maintainer.\n\nIf you are an organization owner, deleting a parent team will delete all of its child teams as well.", + "tags": ["teams"], + "operationId": "teams/delete-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#delete-a-team-legacy" + }, + "parameters": [{ "$ref": "#/components/parameters/team-id" }], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/discussions": { + "get": { + "summary": "List discussions (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/reference/teams#list-discussions) endpoint.\n\nList all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["teams"], + "operationId": "teams/list-discussions-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-discussions-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/direction" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team-discussion" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "discussions" + }, + "deprecated": true, + "x-octokit": {} + }, + "post": { + "summary": "Create a discussion (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/reference/teams#create-a-discussion) endpoint.\n\nCreates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.", + "tags": ["teams"], + "operationId": "teams/create-discussion-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#create-a-discussion-legacy" + }, + "parameters": [{ "$ref": "#/components/parameters/team-id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The discussion post's title." + }, + "body": { + "type": "string", + "description": "The discussion post's body text." + }, + "private": { + "type": "boolean", + "description": "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.", + "default": false + } + }, + "required": ["title", "body"] + }, + "example": { + "title": "Our first team post", + "body": "Hi! This is an area for us to collaborate as a team." + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-discussion" }, + "examples": { + "default": { "$ref": "#/components/examples/team-discussion" } + } + } + } + } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "discussions" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/discussions/{discussion_number}": { + "get": { + "summary": "Get a discussion (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/reference/teams#get-a-discussion) endpoint.\n\nGet a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["teams"], + "operationId": "teams/get-discussion-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#get-a-discussion-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-discussion" }, + "examples": { + "default": { "$ref": "#/components/examples/team-discussion" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "discussions" + }, + "deprecated": true, + "x-octokit": {} + }, + "patch": { + "summary": "Update a discussion (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/reference/teams#update-a-discussion) endpoint.\n\nEdits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["teams"], + "operationId": "teams/update-discussion-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#update-a-discussion-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "title": { + "type": "string", + "description": "The discussion post's title." + }, + "body": { + "type": "string", + "description": "The discussion post's body text." + } + } + }, + "example": { "title": "Welcome to our first team post" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-discussion" }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "discussions" + }, + "deprecated": true, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a discussion (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/reference/teams#delete-a-discussion) endpoint.\n\nDelete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["teams"], + "operationId": "teams/delete-discussion-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#delete-a-discussion-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "discussions" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/discussions/{discussion_number}/comments": { + "get": { + "summary": "List discussion comments (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/reference/teams#list-discussion-comments) endpoint.\n\nList all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["teams"], + "operationId": "teams/list-discussion-comments-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-discussion-comments-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/direction" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/team-discussion-comment" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-comment-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "discussion-comments" + }, + "deprecated": true, + "x-octokit": {} + }, + "post": { + "summary": "Create a discussion comment (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/reference/teams#create-a-discussion-comment) endpoint.\n\nCreates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).\n\nThis endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)\" for details.", + "tags": ["teams"], + "operationId": "teams/create-discussion-comment-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#create-a-discussion-comment-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The discussion comment's body text." + } + }, + "required": ["body"] + }, + "example": { "body": "Do you like apples?" } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/team-discussion-comment" + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-comment" + } + } + } + } + } + }, + "x-github": { + "triggersNotification": true, + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "discussion-comments" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": { + "get": { + "summary": "Get a discussion comment (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/reference/teams#get-a-discussion-comment) endpoint.\n\nGet a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["teams"], + "operationId": "teams/get-discussion-comment-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#get-a-discussion-comment-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/team-discussion-comment" + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-comment" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "discussion-comments" + }, + "deprecated": true, + "x-octokit": {} + }, + "patch": { + "summary": "Update a discussion comment (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/reference/teams#update-a-discussion-comment) endpoint.\n\nEdits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["teams"], + "operationId": "teams/update-discussion-comment-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#update-a-discussion-comment-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "body": { + "type": "string", + "description": "The discussion comment's body text." + } + }, + "required": ["body"] + }, + "example": { "body": "Do you like pineapples?" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/team-discussion-comment" + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-discussion-comment-2" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "discussion-comments" + }, + "deprecated": true, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a discussion comment (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/reference/teams#delete-a-discussion-comment) endpoint.\n\nDeletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["teams"], + "operationId": "teams/delete-discussion-comment-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#delete-a-discussion-comment-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "discussion-comments" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": { + "get": { + "summary": "List reactions for a team discussion comment (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reference/reactions#list-reactions-for-a-team-discussion-comment) endpoint.\n\nList the reactions to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["reactions"], + "operationId": "reactions/list-for-team-discussion-comment-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" }, + { + "name": "content", + "description": "Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion comment.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/reaction" } + }, + "examples": { + "default": { "$ref": "#/components/examples/reaction-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-21", + "deprecationDate": "2020-02-26", + "category": "reactions", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "post": { + "summary": "Create reaction for a team discussion comment (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion comment`](https://docs.github.comt/rest/reference/reactions#create-reaction-for-a-team-discussion-comment) endpoint.\n\nCreate a reaction to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment.", + "tags": ["reactions"], + "operationId": "reactions/create-for-team-discussion-comment-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" }, + { "$ref": "#/components/parameters/comment-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion comment.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + "required": ["content"] + }, + "example": { "content": "heart" } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-21", + "deprecationDate": "2020-02-26", + "category": "reactions", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/discussions/{discussion_number}/reactions": { + "get": { + "summary": "List reactions for a team discussion (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reference/reactions#list-reactions-for-a-team-discussion) endpoint.\n\nList the reactions to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["reactions"], + "operationId": "reactions/list-for-team-discussion-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" }, + { + "name": "content", + "description": "Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/reaction" } + }, + "examples": { + "default": { "$ref": "#/components/examples/reaction-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-21", + "deprecationDate": "2020-02-26", + "category": "reactions", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "post": { + "summary": "Create reaction for a team discussion (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reference/reactions#create-reaction-for-a-team-discussion) endpoint.\n\nCreate a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion.", + "tags": ["reactions"], + "operationId": "reactions/create-for-team-discussion-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/discussion-number" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion.", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + } + }, + "required": ["content"] + }, + "example": { "content": "heart" } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/reaction" }, + "examples": { + "default": { "$ref": "#/components/examples/reaction" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "removalDate": "2021-02-21", + "deprecationDate": "2020-02-26", + "category": "reactions", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/invitations": { + "get": { + "summary": "List pending team invitations (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/rest/reference/teams#list-pending-team-invitations) endpoint.\n\nThe return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`.", + "tags": ["teams"], + "operationId": "teams/list-pending-invitations-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-pending-team-invitations-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/organization-invitation" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-invitation-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "members" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/members": { + "get": { + "summary": "List team members (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/rest/reference/teams#list-team-members) endpoint.\n\nTeam members will include the members of child teams.", + "tags": ["teams"], + "operationId": "teams/list-members-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-team-members-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { + "name": "role", + "description": "Filters members returned by their role in the team. Can be one of: \n\\* `member` - normal members of the team. \n\\* `maintainer` - team maintainers. \n\\* `all` - all members of the team.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["member", "maintainer", "all"], + "default": "all" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "members" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/members/{username}": { + "get": { + "summary": "Get team member (Legacy)", + "description": "The \"Get team member\" endpoint (described below) is deprecated.\n\nWe recommend using the [Get team membership for a user](https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships.\n\nTo list members in a team, the team must be visible to the authenticated user.", + "tags": ["teams"], + "operationId": "teams/get-member-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#get-team-member-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Response if user is a member" }, + "404": { "description": "Response if user is not a member" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "members" + }, + "deprecated": true, + "x-octokit": {} + }, + "put": { + "summary": "Add team member (Legacy)", + "description": "The \"Add team member\" endpoint (described below) is deprecated.\n\nWe recommend using the [Add or update team membership for a user](https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization.\n\n**Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see \"[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\nNote that 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/rest/overview/resources-in-the-rest-api#http-verbs).\"", + "tags": ["teams"], + "operationId": "teams/add-member-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#add-team-member-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Empty response" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { + "description": "Response if team synchronization is set up" + }, + "422": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { "type": "string" }, + "field": { "type": "string" }, + "resource": { "type": "string" } + } + } + }, + "documentation_url": { + "type": "string", + "example": "\"https://docs.github.com/rest\"" + } + } + }, + "examples": { + "response-if-you-attempt-to-add-an-organization-to-a-team": { + "summary": "Response if you attempt to add an organization to a team", + "value": { + "message": "Cannot add an organization as a member.", + "errors": [ + { + "code": "org", + "field": "user", + "resource": "TeamMember" + } + ] + } + }, + "response-if-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": { + "summary": "Response if 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", + "value": { + "message": "User isn't a member of this organization. Please invite them first.", + "errors": [ + { + "code": "unaffiliated", + "field": "user", + "resource": "TeamMember" + } + ] + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "members" + }, + "deprecated": true, + "x-octokit": {} + }, + "delete": { + "summary": "Remove team member (Legacy)", + "description": "The \"Remove team member\" endpoint (described below) is deprecated.\n\nWe recommend using the [Remove team membership for a user](https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team.\n\n**Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see \"[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/).\"", + "tags": ["teams"], + "operationId": "teams/remove-member-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#remove-team-member-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "description": "Response if team synchronization is setup" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "members" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/memberships/{username}": { + "get": { + "summary": "Get team membership for a user (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user) endpoint.\n\nTeam members will include the members of child teams.\n\nTo get a user's membership with a team, the team must be visible to the authenticated user.\n\n**Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/rest/reference/teams#create-a-team).", + "tags": ["teams"], + "operationId": "teams/get-membership-for-user-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-membership" }, + "examples": { + "response-if-user-has-an-active-membership-with-team": { + "$ref": "#/components/examples/team-membership-response-if-user-has-an-active-membership-with-team" + }, + "response-if-user-is-a-team-maintainer": { + "$ref": "#/components/examples/team-membership-response-if-user-is-a-team-maintainer" + }, + "response-if-user-has-a-pending-membership-with-team": { + "$ref": "#/components/examples/team-membership-response-if-user-has-a-pending-membership-with-team" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "members" + }, + "deprecated": true, + "x-octokit": {} + }, + "put": { + "summary": "Add or update team membership for a user (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user) endpoint.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nIf the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer.\n\n**Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see \"[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\nIf the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the \"pending\" state until the user accepts the invitation, at which point the membership will transition to the \"active\" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner.\n\nIf the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer.", + "tags": ["teams"], + "operationId": "teams/add-or-update-membership-for-user-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/username" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "role": { + "type": "string", + "description": "The role that this user should have in the team. Can be one of: \n\\* `member` - a normal member of the team. \n\\* `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.", + "enum": ["member", "maintainer"], + "default": "member" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-membership" }, + "examples": { + "response-if-users-membership-with-team-is-now-active": { + "$ref": "#/components/examples/team-membership-response-if-users-membership-with-team-is-now-active" + }, + "response-if-users-membership-with-team-is-now-pending": { + "$ref": "#/components/examples/team-membership-response-if-users-membership-with-team-is-now-pending" + } + } + } + } + }, + "403": { + "description": "Response if team synchronization is set up" + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { + "description": "Response if you attempt to add an organization to a team", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "errors": { + "type": "array", + "items": { + "type": "object", + "properties": { + "code": { "type": "string" }, + "field": { "type": "string" }, + "resource": { "type": "string" } + } + } + }, + "documentation_url": { + "type": "string", + "example": "\"https://help.github.com/articles/github-and-trade-controls\"" + } + } + }, + "examples": { + "response-if-you-attempt-to-add-an-organization-to-a-team": { + "value": { + "message": "Cannot add an organization as a member.", + "errors": [ + { + "code": "org", + "field": "user", + "resource": "TeamMember" + } + ] + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "members" + }, + "deprecated": true, + "x-octokit": {} + }, + "delete": { + "summary": "Remove team membership for a user (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user) endpoint.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nTo remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team.\n\n**Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see \"[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/).\"", + "tags": ["teams"], + "operationId": "teams/remove-membership-for-user-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/username" } + ], + "responses": { + "204": { "description": "Empty response" }, + "403": { "description": "Response if team synchronization is set up" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "members" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/projects": { + "get": { + "summary": "List team projects (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/reference/teams#list-team-projects) endpoint.\n\nLists the organization projects for a team.", + "tags": ["teams"], + "operationId": "teams/list-projects-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#list-team-projects-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team-project" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/team-project-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/projects/{project_id}": { + "get": { + "summary": "Check team permissions for a project (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/reference/teams#check-team-permissions-for-a-project) endpoint.\n\nChecks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team.", + "tags": ["teams"], + "operationId": "teams/check-permissions-for-project-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#check-team-permissions-for-a-project-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/project-id" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/team-project" }, + "examples": { + "default": { "$ref": "#/components/examples/team-project" } + } + } + } + }, + "404": { + "description": "Response if project is not managed by this team" + }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "put": { + "summary": "Add or update team project permissions (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/reference/teams#add-or-update-team-project-permissions) endpoint.\n\nAdds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization.", + "tags": ["teams"], + "operationId": "teams/add-or-update-project-permissions-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#add-or-update-team-project-permissions-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/project-id" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "permission": { + "type": "string", + "description": "The permission to grant to the team for this project. Can be one of: \n\\* `read` - team members can read, but not write to or administer this project. \n\\* `write` - team members can read and write, but not administer this project. \n\\* `admin` - team members can read, write and administer this project. \nDefault: 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/rest/overview/resources-in-the-rest-api#http-verbs).\"", + "enum": ["read", "write", "admin"] + } + } + } + } + } + }, + "responses": { + "204": { "description": "Empty response" }, + "403": { + "description": "Response if the project is not owned by the organization", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + }, + "examples": { + "response-if-the-project-is-not-owned-by-the-organization": { + "value": { + "message": "Must have admin rights to Repository.", + "documentation_url": "https://docs.github.com/rest/reference/teams#add-or-update-team-project-permissions" + } + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "delete": { + "summary": "Remove a project from a team (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/reference/teams#remove-a-project-from-a-team) endpoint.\n\nRemoves an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it.", + "tags": ["teams"], + "operationId": "teams/remove-project-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#remove-a-project-from-a-team-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/project-id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/repos": { + "get": { + "summary": "List team repositories (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/rest/reference/teams#list-team-repositories) endpoint.", + "tags": ["teams"], + "operationId": "teams/list-repos-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#list-team-repositories-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/minimal-repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/minimal-repository-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/repos/{owner}/{repo}": { + "get": { + "summary": "Check team permissions for a repository (Legacy)", + "description": "**Note**: Repositories inherited through a parent team will also be checked.\n\n**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/rest/reference/teams#check-team-permissions-for-a-repository) endpoint.\n\nYou can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header:", + "tags": ["teams"], + "operationId": "teams/check-permissions-for-repo-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "200": { + "description": "Alternative response with extra repository information", + "content": { + "application/vnd.github.v3.repository+json": { + "schema": { "$ref": "#/components/schemas/team-repository" }, + "examples": { + "alternative-response-with-extra-repository-information": { + "$ref": "#/components/examples/team-repository-alternative-response-with-extra-repository-information" + } + } + } + } + }, + "204": { + "description": "Response if repository is managed by this team" + }, + "404": { + "description": "Response if repository is not managed by this team" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "put": { + "summary": "Add or update team repository permissions (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team repository permissions](https://docs.github.comt/rest/reference/teams#add-or-update-team-project-permissions) endpoint.\n\nTo add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization.\n\nNote 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/rest/overview/resources-in-the-rest-api#http-verbs).\"", + "tags": ["teams"], + "operationId": "teams/add-or-update-repo-permissions-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "permission": { + "type": "string", + "description": "The permission to grant the team on this repository. Can be one of: \n\\* `pull` - team members can pull, but not push to or administer this repository. \n\\* `push` - team members can pull and push, but not administer this repository. \n\\* `admin` - team members can pull, push and administer this repository. \n \nIf no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository.", + "enum": ["pull", "push", "admin"] + } + } + } + } + } + }, + "responses": { + "204": { "description": "Empty response" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + }, + "delete": { + "summary": "Remove a repository from a team (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/rest/reference/teams#remove-a-repository-from-a-team) endpoint.\n\nIf the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team.", + "tags": ["teams"], + "operationId": "teams/remove-repo-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#remove-a-repository-from-a-team-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/team-sync/group-mappings": { + "get": { + "summary": "List IdP groups for a team (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List IdP groups for a team`](https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team) endpoint.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nList IdP groups connected to a team on GitHub.", + "tags": ["teams"], + "operationId": "teams/list-idp-groups-for-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team-legacy" + }, + "parameters": [{ "$ref": "#/components/parameters/team-id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/group-mapping" }, + "examples": { + "default": { "$ref": "#/components/examples/group-mapping-3" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "team-sync" + }, + "deprecated": true, + "x-octokit": {} + }, + "patch": { + "summary": "Create or update IdP group connections (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create or update IdP group connections`](https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections) endpoint.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\nCreates, updates, or removes a connection between a team and an IdP group. When adding groups to a team, you must include all new and existing groups to avoid replacing existing groups with the new ones. Specifying an empty `groups` array will remove all connections for a team.", + "tags": ["teams"], + "operationId": "teams/create-or-update-idp-group-connections-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections-legacy" + }, + "parameters": [{ "$ref": "#/components/parameters/team-id" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "groups": { + "type": "array", + "description": "The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove.", + "items": { + "type": "object", + "properties": { + "group_id": { + "type": "string", + "description": "ID of the IdP group." + }, + "group_name": { + "type": "string", + "description": "Name of the IdP group." + }, + "group_description": { + "type": "string", + "description": "Description of the IdP group." + }, + "id": { + "type": "string", + "example": "\"caceab43fc9ffa20081c\"" + }, + "name": { + "type": "string", + "example": "\"external-team-6c13e7288ef7\"" + }, + "description": { + "type": "string", + "example": "\"moar cheese pleese\"" + } + }, + "required": [ + "group_id", + "group_name", + "group_description" + ] + } + }, + "synced_at": { + "type": "string", + "example": "\"I am not a timestamp\"" + } + }, + "required": ["groups"] + }, + "example": { + "groups": [ + { + "group_id": "123", + "group_name": "Octocat admins", + "description": "The people who configure your octoworld.", + "group_description": "string" + } + ] + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/group-mapping" }, + "examples": { + "default": { "$ref": "#/components/examples/group-mapping-2" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": false, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": "team-sync" + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/teams/{team_id}/teams": { + "get": { + "summary": "List child teams (Legacy)", + "description": "**Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/rest/reference/teams#list-child-teams) endpoint.", + "tags": ["teams"], + "operationId": "teams/list-child-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#list-child-teams-legacy" + }, + "parameters": [ + { "$ref": "#/components/parameters/team-id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "Response if child teams exist", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + }, + "examples": { + "response-if-child-teams-exist": { + "$ref": "#/components/examples/team-items-response-if-child-teams-exist" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "removalDate": "2021-02-01", + "deprecationDate": "2020-01-21", + "category": "teams", + "subcategory": null + }, + "deprecated": true, + "x-octokit": {} + } + }, + "/user": { + "get": { + "summary": "Get the authenticated user", + "description": "If the authenticated user is authenticated through basic authentication or OAuth with the `user` scope, then the response lists public and private profile information.\n\nIf the authenticated user is authenticated through OAuth without the `user` scope, then the response lists only public profile information.", + "tags": ["users"], + "operationId": "users/get-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/users/#get-the-authenticated-user" + }, + "parameters": [], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { "$ref": "#/components/schemas/private-user" }, + { "$ref": "#/components/schemas/public-user" } + ] + }, + "examples": { + "response-with-public-and-private-profile-information": { + "$ref": "#/components/examples/private-user-response-with-public-and-private-profile-information" + }, + "response-with-public-profile-information": { + "$ref": "#/components/examples/private-user-response-with-public-profile-information" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": null + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update the authenticated user", + "description": "**Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API.", + "tags": ["users"], + "operationId": "users/update-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/users/#update-the-authenticated-user" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "name": { + "description": "The new name of the user.", + "type": "string", + "example": "Omar Jahandar" + }, + "email": { + "description": "The publicly visible email address of the user.", + "type": "string", + "example": "omar@example.com" + }, + "blog": { + "description": "The new blog URL of the user.", + "type": "string", + "example": "blog.example.com" + }, + "twitter_username": { + "description": "The new Twitter username of the user.", + "type": "string", + "example": "therealomarj", + "nullable": true + }, + "company": { + "description": "The new company of the user.", + "type": "string", + "example": "Acme corporation" + }, + "location": { + "description": "The new location of the user.", + "type": "string", + "example": "Berlin, Germany" + }, + "hireable": { + "description": "The new hiring availability of the user.", + "type": "boolean" + }, + "bio": { + "description": "The new short biography of the user.", + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/private-user" }, + "examples": { + "default": { "$ref": "#/components/examples/private-user" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/user/blocks": { + "get": { + "summary": "List users blocked by the authenticated user", + "description": "List the users you've blocked on your personal account.", + "tags": ["users"], + "operationId": "users/list-blocked-by-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user" + }, + "parameters": [], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "blocking" + }, + "x-octokit": {} + } + }, + "/user/blocks/{username}": { + "get": { + "summary": "Check if a user is blocked by the authenticated user", + "description": "If the user is blocked:\n\nIf the user is not blocked:", + "tags": ["users"], + "operationId": "users/check-blocked", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#check-if-a-user-is-blocked-by-the-authenticated-user" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "204": { "description": "If the user is blocked:" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { + "description": "If the user is not blocked:", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "blocking" + }, + "x-octokit": {} + }, + "put": { + "summary": "Block a user", + "description": "", + "tags": ["users"], + "operationId": "users/block", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#block-a-user" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "blocking" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Unblock a user", + "description": "", + "tags": ["users"], + "operationId": "users/unblock", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#unblock-a-user" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "blocking" + }, + "x-octokit": {} + } + }, + "/user/email/visibility": { + "patch": { + "summary": "Set primary email visibility for the authenticated user", + "description": "Sets the visibility for your primary email addresses.", + "tags": ["users"], + "operationId": "users/set-primary-email-visibility-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "email": { + "description": "An email address associated with the GitHub user account to manage.", + "type": "string", + "example": "org@example.com" + }, + "visibility": { + "description": "Denotes whether an email is publically visible.", + "type": "string", + "enum": ["public", "private"] + } + }, + "required": ["email", "visibility"], + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/email" } + }, + "examples": { + "default": { "$ref": "#/components/examples/email-items-3" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "emails" + }, + "x-octokit": {} + } + }, + "/user/emails": { + "get": { + "summary": "List email addresses for the authenticated user", + "description": "Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope.", + "tags": ["users"], + "operationId": "users/list-emails-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-email-addresses-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/email" } + }, + "examples": { + "default": { "$ref": "#/components/examples/email-items-2" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "emails" + }, + "x-octokit": {} + }, + "post": { + "summary": "Add an email address for the authenticated user", + "description": "This endpoint is accessible with the `user` scope.", + "tags": ["users"], + "operationId": "users/add-email-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#add-an-email-address-for-the-authenticated-user" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "type": "object", + "properties": { + "emails": { + "description": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.", + "type": "array", + "items": { + "type": "string", + "example": "username@example.com", + "minItems": 1 + }, + "example": [] + } + }, + "required": ["emails"], + "example": { + "emails": ["octocat@github.com", "mona@github.com"] + } + }, + { + "type": "array", + "items": { + "type": "string", + "example": "username@example.com", + "minItems": 1 + } + }, + { "type": "string" } + ] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/email" } + }, + "examples": { + "default": { "$ref": "#/components/examples/email-items" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "emails" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete an email address for the authenticated user", + "description": "This endpoint is accessible with the `user` scope.", + "tags": ["users"], + "operationId": "users/delete-email-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#delete-an-email-address-for-the-authenticated-user" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "oneOf": [ + { + "type": "object", + "description": "Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.", + "properties": { + "emails": { + "description": "Email addresses associated with the GitHub user account.", + "type": "array", + "items": { + "type": "string", + "example": "username@example.com", + "minItems": 1 + }, + "example": { + "emails": ["octocat@github.com", "mona@github.com"] + } + } + }, + "required": ["emails"] + }, + { + "type": "array", + "items": { + "type": "string", + "example": "username@example.com", + "minItems": 1 + } + }, + { "type": "string" } + ] + } + } + } + }, + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "emails" + }, + "x-octokit": {} + } + }, + "/user/followers": { + "get": { + "summary": "List followers of the authenticated user", + "description": "Lists the people following the authenticated user.", + "tags": ["users"], + "operationId": "users/list-followers-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-followers-of-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "followers" + }, + "x-octokit": {} + } + }, + "/user/following": { + "get": { + "summary": "List the people the authenticated user follows", + "description": "Lists the people who the authenticated user follows.", + "tags": ["users"], + "operationId": "users/list-followed-by-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-the-people-the-authenticated-user-follows" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "followers" + }, + "x-octokit": {} + } + }, + "/user/following/{username}": { + "get": { + "summary": "Check if a person is followed by the authenticated user", + "description": "", + "tags": ["users"], + "operationId": "users/check-person-is-followed-by-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#check-if-a-person-is-followed-by-the-authenticated-user" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "204": { + "description": "Response if the person is followed by the authenticated user" + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { + "description": "Response if the person is not followed by the authenticated user", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "followers" + }, + "x-octokit": {} + }, + "put": { + "summary": "Follow a user", + "description": "Note that 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/rest/overview/resources-in-the-rest-api#http-verbs).\"\n\nFollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.", + "tags": ["users"], + "operationId": "users/follow", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#follow-a-user" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "followers" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Unfollow a user", + "description": "Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope.", + "tags": ["users"], + "operationId": "users/unfollow", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#unfollow-a-user" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "followers" + }, + "x-octokit": {} + } + }, + "/user/gpg_keys": { + "get": { + "summary": "List GPG keys for the authenticated user", + "description": "Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["users"], + "operationId": "users/list-gpg-keys-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-gpg-keys-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/gpg-key" } + }, + "examples": { + "default": { "$ref": "#/components/examples/gpg-key-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "gpg-keys" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a GPG key for the authenticated user", + "description": "Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "operationId": "users/create-gpg-key-for-authenticated", + "tags": ["users"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#create-a-gpg-key-for-the-authenticated-user" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "armored_public_key": { + "description": "A GPG key in ASCII-armored format.", + "type": "string" + } + }, + "type": "object", + "required": ["armored_public_key"] + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/gpg-key" }, + "examples": { + "default": { "$ref": "#/components/examples/gpg-key" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "gpg-keys" + }, + "x-octokit": {} + } + }, + "/user/gpg_keys/{gpg_key_id}": { + "get": { + "summary": "Get a GPG key for the authenticated user", + "description": "View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["users"], + "operationId": "users/get-gpg-key-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#get-a-gpg-key-for-the-authenticated-user" + }, + "parameters": [{ "$ref": "#/components/parameters/gpg_key_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/gpg-key" }, + "examples": { + "default": { "$ref": "#/components/examples/gpg-key" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "gpg-keys" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a GPG key for the authenticated user", + "description": "Removes a GPG key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["users"], + "operationId": "users/delete-gpg-key-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user" + }, + "parameters": [{ "$ref": "#/components/parameters/gpg_key_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "gpg-keys" + }, + "x-octokit": {} + } + }, + "/user/installations": { + "get": { + "summary": "List app installations accessible to the user access token", + "description": "Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nYou must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.\n\nYou can find the permissions for the installation under the `permissions` key.", + "tags": ["apps"], + "operationId": "apps/list-installations-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#list-app-installations-accessible-to-the-user-access-token" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "You can find the permissions for the installation under the `permissions` key.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "installations": { + "type": "array", + "items": { "$ref": "#/components/schemas/installation" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/base-installation-for-auth-user-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "415": { "$ref": "#/components/responses/preview_header_missing" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "installations" + }, + "x-octokit": {} + } + }, + "/user/installations/{installation_id}/repositories": { + "get": { + "summary": "List repositories accessible to the user access token", + "description": "List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.\n\nYou must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint.\n\nThe access the user has to each repository is included in the hash under the `permissions` key.", + "tags": ["apps"], + "operationId": "apps/list-installation-repos-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-user-access-token" + }, + "parameters": [ + { "$ref": "#/components/parameters/installation_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "The access the user has to each repository is included in the hash under the `permissions` key.", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "total_count": { "type": "integer" }, + "repository_selection": { "type": "string" }, + "repositories": { + "type": "array", + "items": { "$ref": "#/components/schemas/repository" } + } + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/repository-paginated" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": false, + "name": "mercy", + "note": "The `topics` property for repositories on GitHub is currently available for developers to preview. To view the `topics` property in calls that return repository results, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.mercy-preview+json\n```" + } + ], + "category": "apps", + "subcategory": "installations" + }, + "x-octokit": {} + } + }, + "/user/installations/{installation_id}/repositories/{repository_id}": { + "put": { + "summary": "Add a repository to an app installation", + "description": "Add a single repository to an installation. The authenticated user must have admin access to the repository.\n\nYou must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization) or [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/add-repo-to-installation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#add-a-repository-to-an-app-installation" + }, + "parameters": [ + { "$ref": "#/components/parameters/installation_id" }, + { "$ref": "#/components/parameters/repository_id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "installations" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove a repository from an app installation", + "description": "Remove a single repository from an installation. The authenticated user must have admin access to the repository.\n\nYou must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization) or [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/remove-repo-from-installation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#remove-a-repository-from-an-app-installation" + }, + "parameters": [ + { "$ref": "#/components/parameters/installation_id" }, + { "$ref": "#/components/parameters/repository_id" } + ], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "installations" + }, + "x-octokit": {} + } + }, + "/user/interaction-limits": { + "get": { + "summary": "Get interaction restrictions for your public repositories", + "description": "Shows which type of GitHub user can interact with your public repositories and when the restriction expires. If there are no restrictions, you will see an empty response.", + "tags": ["interactions"], + "operationId": "interactions/get-restrictions-for-your-public-repos", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-your-public-repositories" + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/interaction-limit-response" + }, + "examples": { + "default": { + "$ref": "#/components/examples/interaction-limit-user" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "interactions", + "subcategory": "user" + }, + "x-octokit": {} + }, + "put": { + "summary": "Set interaction restrictions for your public repositories", + "description": "Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user.", + "tags": ["interactions"], + "operationId": "interactions/set-restrictions-for-your-public-repos", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-your-public-repositories" + }, + "requestBody": { + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/interaction-limit" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/interaction-limit-response" + }, + "examples": { + "default": { + "$ref": "#/components/examples/interaction-limit-user" + } + } + } + } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "interactions", + "subcategory": "user" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Remove interaction restrictions from your public repositories", + "description": "Removes any interaction restrictions from your public repositories.", + "tags": ["interactions"], + "operationId": "interactions/remove-restrictions-for-your-public-repos", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-from-your-public-repositories" + }, + "responses": { "204": { "description": "Empty response" } }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "interactions", + "subcategory": "user" + }, + "x-octokit": {} + } + }, + "/user/issues": { + "get": { + "summary": "List user account issues assigned to the authenticated user", + "description": "List issues across owned and member repositories assigned to the authenticated user.\n\n**Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this\nreason, \"Issues\" endpoints may return both issues and pull requests in the response. You can identify pull requests by\nthe `pull_request` key. Be aware that the `id` of a pull request returned from \"Issues\" endpoints will be an _issue id_. To find out the pull\nrequest id, use the \"[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)\" endpoint.", + "tags": ["issues"], + "operationId": "issues/list-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user" + }, + "parameters": [ + { + "name": "filter", + "description": "Indicates which sorts of issues to return. Can be one of: \n\\* `assigned`: Issues assigned to you \n\\* `created`: Issues created by you \n\\* `mentioned`: Issues mentioning you \n\\* `subscribed`: Issues you're subscribed to updates for \n\\* `all`: All issues the authenticated user can see, regardless of participation or creation", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "default": "assigned" + } + }, + { + "name": "state", + "description": "Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["open", "closed", "all"], + "default": "open" + } + }, + { "$ref": "#/components/parameters/labels" }, + { + "name": "sort", + "description": "What to sort results by. Can be either `created`, `updated`, `comments`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["created", "updated", "comments"], + "default": "created" + } + }, + { "$ref": "#/components/parameters/direction" }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/issue" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/issue-with-repo-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": false, + "name": "squirrel-girl", + "note": "An additional `reactions` object in the issue comment payload is currently available for developers to preview. During the preview period, the APIs may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-05-12-reactions-api-preview) for full details.\n\nTo access the API you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.squirrel-girl-preview\n```\nThe `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions." + } + ], + "category": "issues", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/user/keys": { + "get": { + "summary": "List public SSH keys for the authenticated user", + "description": "Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["users"], + "operationId": "users/list-public-ssh-keys-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/key" } + }, + "examples": { + "default": { "$ref": "#/components/examples/key-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "keys" + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a public SSH key for the authenticated user", + "description": "Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "operationId": "users/create-public-ssh-key-for-authenticated", + "tags": ["users"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#create-a-public-ssh-key-for-the-authenticated-user" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "title": { + "description": "A descriptive name for the new key.", + "type": "string", + "example": "Personal MacBook Air" + }, + "key": { + "description": "The public SSH key to add to your GitHub account.", + "type": "string", + "pattern": "^ssh-(rsa|dss|ed25519) |^ecdsa-sha2-nistp(256|384|521) " + } + }, + "required": ["key"], + "type": "object" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/key" }, + "examples": { + "default": { "$ref": "#/components/examples/key" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "keys" + }, + "x-octokit": {} + } + }, + "/user/keys/{key_id}": { + "get": { + "summary": "Get a public SSH key for the authenticated user", + "description": "View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["users"], + "operationId": "users/get-public-ssh-key-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user" + }, + "parameters": [{ "$ref": "#/components/parameters/key_id" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/key" }, + "examples": { + "default": { "$ref": "#/components/examples/key" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "keys" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a public SSH key for the authenticated user", + "description": "Removes a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/).", + "tags": ["users"], + "operationId": "users/delete-public-ssh-key-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user" + }, + "parameters": [{ "$ref": "#/components/parameters/key_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "keys" + }, + "x-octokit": {} + } + }, + "/user/marketplace_purchases": { + "get": { + "summary": "List subscriptions for the authenticated user", + "description": "Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/).", + "tags": ["apps"], + "operationId": "apps/list-subscriptions-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/user-marketplace-purchase" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/user-marketplace-purchase-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "marketplace" + }, + "x-octokit": {} + } + }, + "/user/marketplace_purchases/stubbed": { + "get": { + "summary": "List subscriptions for the authenticated user (stubbed)", + "description": "Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/).", + "tags": ["apps"], + "operationId": "apps/list-subscriptions-for-authenticated-user-stubbed", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user-stubbed" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/user-marketplace-purchase" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/user-marketplace-purchase-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": "marketplace" + }, + "x-octokit": {} + } + }, + "/user/memberships/orgs": { + "get": { + "summary": "List organization memberships for the authenticated user", + "description": "", + "tags": ["orgs"], + "operationId": "orgs/list-memberships-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#list-organization-memberships-for-the-authenticated-user" + }, + "parameters": [ + { + "name": "state", + "description": "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.", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["active", "pending"] } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/org-membership" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/org-membership-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/user/memberships/orgs/{org}": { + "get": { + "summary": "Get an organization membership for the authenticated user", + "description": "", + "tags": ["orgs"], + "operationId": "orgs/get-membership-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#get-an-organization-membership-for-the-authenticated-user" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/org-membership" }, + "examples": { + "default": { "$ref": "#/components/examples/org-membership" } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + }, + "patch": { + "summary": "Update an organization membership for the authenticated user", + "description": "", + "tags": ["orgs"], + "operationId": "orgs/update-membership-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/orgs#update-an-organization-membership-for-the-authenticated-user" + }, + "parameters": [{ "$ref": "#/components/parameters/org" }], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "state": { + "type": "string", + "description": "The state that the membership should be in. Only `\"active\"` will be accepted.", + "enum": ["active"] + } + }, + "required": ["state"] + }, + "example": { "state": "active" } + } + } + }, + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/org-membership" }, + "examples": { + "default": { + "$ref": "#/components/examples/org-membership-2" + } + } + } + } + }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "orgs", + "subcategory": "members" + }, + "x-octokit": {} + } + }, + "/user/migrations": { + "get": { + "summary": "List user migrations", + "description": "Lists all migrations a user has started.", + "tags": ["migrations"], + "operationId": "migrations/list-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#list-user-migrations" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/migration" } + }, + "examples": { + "default": { "$ref": "#/components/examples/migration-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "users" + }, + "x-octokit": {} + }, + "post": { + "summary": "Start a user migration", + "description": "Initiates the generation of a user migration archive.", + "tags": ["migrations"], + "operationId": "migrations/start-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#start-a-user-migration" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "lock_repositories": { + "description": "Lock the repositories being migrated at the start of the migration", + "example": true, + "readOnly": false, + "type": "boolean" + }, + "exclude_attachments": { + "description": "Do not include attachments in the migration", + "example": true, + "readOnly": false, + "type": "boolean" + }, + "exclude": { + "description": "Exclude attributes from the API response to improve performance", + "example": ["repositories"], + "readOnly": false, + "type": "array", + "items": { + "description": "Allowed values that can be passed to the exclude param.", + "enum": ["repositories"], + "example": "repositories", + "type": "string" + } + }, + "repositories": { + "type": "array", + "items": { + "description": "Repository path, owner and name", + "example": "acme/widgets", + "type": "string" + } + } + }, + "required": ["repositories"], + "type": "object" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/migration" }, + "examples": { + "default": { "$ref": "#/components/examples/migration-2" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "migrations", + "subcategory": "users" + }, + "x-octokit": {} + } + }, + "/user/migrations/{migration_id}": { + "get": { + "summary": "Get a user migration status", + "description": "Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values:\n\n* `pending` - the migration hasn't started yet.\n* `exporting` - the migration is in progress.\n* `exported` - the migration finished successfully.\n* `failed` - the migration failed.\n\nOnce the migration has been `exported` you can [download the migration archive](https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive).", + "tags": ["migrations"], + "operationId": "migrations/get-status-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#get-a-user-migration-status" + }, + "parameters": [ + { "$ref": "#/components/parameters/migration_id" }, + { + "name": "exclude", + "in": "query", + "required": false, + "schema": { "type": "array", "items": { "type": "string" } } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/migration" }, + "examples": { + "default": { "$ref": "#/components/examples/migration" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "users" + }, + "x-octokit": {} + } + }, + "/user/migrations/{migration_id}/archive": { + "get": { + "summary": "Download a user migration archive", + "description": "Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects:\n\n* attachments\n* bases\n* commit\\_comments\n* issue\\_comments\n* issue\\_events\n* issues\n* milestones\n* organizations\n* projects\n* protected\\_branches\n* pull\\_request\\_reviews\n* pull\\_requests\n* releases\n* repositories\n* review\\_comments\n* schema\n* users\n\nThe archive will also contain an `attachments` directory that includes all attachment files uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data.", + "tags": ["migrations"], + "operationId": "migrations/get-archive-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive" + }, + "parameters": [{ "$ref": "#/components/parameters/migration_id" }], + "responses": { + "302": { "description": "response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "users" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Delete a user migration archive", + "description": "Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://docs.github.com/rest/reference/migrations#list-user-migrations) and [Get a user migration status](https://docs.github.com/rest/reference/migrations#get-a-user-migration-status) endpoints, will continue to be available even after an archive is deleted.", + "tags": ["migrations"], + "operationId": "migrations/delete-archive-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#delete-a-user-migration-archive" + }, + "parameters": [{ "$ref": "#/components/parameters/migration_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "users" + }, + "x-octokit": {} + } + }, + "/user/migrations/{migration_id}/repos/{repo_name}/lock": { + "delete": { + "summary": "Unlock a user repository", + "description": "Unlocks a repository. You can lock repositories when you [start a user migration](https://docs.github.com/rest/reference/migrations#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://docs.github.com/rest/reference/repos#delete-a-repository) if you no longer need the source data. Returns a status of `404 Not Found` if the repository is not locked.", + "tags": ["migrations"], + "operationId": "migrations/unlock-repo-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#unlock-a-user-repository" + }, + "parameters": [ + { "$ref": "#/components/parameters/migration_id" }, + { "$ref": "#/components/parameters/repo_name" } + ], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "users" + }, + "x-octokit": {} + } + }, + "/user/migrations/{migration_id}/repositories": { + "get": { + "summary": "List repositories for a user migration", + "description": "Lists all the repositories for this user migration.", + "tags": ["migrations"], + "operationId": "migrations/list-repos-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/migrations#list-repositories-for-a-user-migration" + }, + "parameters": [ + { "$ref": "#/components/parameters/migration_id" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/minimal-repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/minimal-repository-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "wyandotte", + "note": "To access the Migrations API, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.wyandotte-preview+json\n```" + } + ], + "category": "migrations", + "subcategory": "users" + }, + "x-octokit": {} + } + }, + "/user/orgs": { + "get": { + "summary": "List organizations for the authenticated user", + "description": "List organizations for the authenticated user.\n\n**OAuth scope requirements**\n\nThis only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response.", + "tags": ["orgs"], + "operationId": "orgs/list-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/orgs/#list-organizations-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/organization-simple" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-simple-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "orgs", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/user/projects": { + "post": { + "summary": "Create a user project", + "description": "", + "tags": ["projects"], + "operationId": "projects/create-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/projects/#create-a-user-project" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "name": { + "description": "Name of the project", + "example": "Week One Sprint", + "type": "string" + }, + "body": { + "description": "Body of the project", + "example": "This project represents the sprint of the first week in January", + "type": "string", + "nullable": true + } + }, + "required": ["name"], + "type": "object" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/project" }, + "examples": { + "default": { "$ref": "#/components/examples/project" } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed_simple" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/user/public_emails": { + "get": { + "summary": "List public email addresses for the authenticated user", + "description": "Lists your publicly visible email address, which you can set with the [Set primary email visibility for the authenticated user](https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user) endpoint. This endpoint is accessible with the `user:email` scope.", + "tags": ["users"], + "operationId": "users/list-public-emails-for-authenticated", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-public-email-addresses-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/email" } + }, + "examples": { + "default": { "$ref": "#/components/examples/email-items-2" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": "emails" + }, + "x-octokit": {} + } + }, + "/user/repos": { + "get": { + "summary": "List repositories for the authenticated user", + "description": "Lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access.\n\nThe authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership.", + "tags": ["repos"], + "operationId": "repos/list-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#list-repositories-for-the-authenticated-user" + }, + "parameters": [ + { + "name": "visibility", + "description": "Can be one of `all`, `public`, or `private`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["all", "public", "private"], + "default": "all" + } + }, + { + "name": "affiliation", + "description": "Comma-separated list of values. Can include: \n\\* `owner`: Repositories that are owned by the authenticated user. \n\\* `collaborator`: Repositories that the user has been added to as a collaborator. \n\\* `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.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "default": "owner,collaborator,organization_member" + } + }, + { + "name": "type", + "description": "Can be one of `all`, `owner`, `public`, `private`, `member`. Default: `all` \n \nWill 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**.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["all", "owner", "public", "private", "member"], + "default": "all" + } + }, + { + "name": "sort", + "description": "Can be one of `created`, `updated`, `pushed`, `full_name`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["created", "updated", "pushed", "full_name"], + "default": "full_name" + } + }, + { + "name": "direction", + "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["asc", "desc"] } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/before" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/repository-items-default-response" + } + } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "418": { "description": "Response definition missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + }, + "post": { + "summary": "Create a repository for the authenticated user", + "description": "Creates a new repository for the authenticated user.\n\n**OAuth scope requirements**\n\nWhen using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include:\n\n* `public_repo` scope or `repo` scope to create a public repository\n* `repo` scope to create a private repository", + "tags": ["repos"], + "operationId": "repos/create-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#create-a-repository-for-the-authenticated-user" + }, + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "name": { + "description": "The name of the repository.", + "type": "string", + "example": "Team Environment" + }, + "description": { + "description": "A short description of the repository.", + "type": "string" + }, + "homepage": { + "description": "A URL with more information about the repository.", + "type": "string" + }, + "private": { + "description": "Whether the repository is private or public.", + "default": false, + "type": "boolean" + }, + "has_issues": { + "description": "Whether issues are enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "has_projects": { + "description": "Whether projects are enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "has_wiki": { + "description": "Whether the wiki is enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "team_id": { + "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization.", + "type": "integer" + }, + "auto_init": { + "description": "Whether the repository is initialized with a minimal README.", + "default": false, + "type": "boolean" + }, + "gitignore_template": { + "description": "The desired language or platform to apply to the .gitignore.", + "example": "Haskell", + "type": "string" + }, + "license_template": { + "description": "The license keyword of the open source license for this repository.", + "example": "mit", + "type": "string" + }, + "allow_squash_merge": { + "description": "Whether to allow squash merges for pull requests.", + "default": true, + "type": "boolean", + "example": true + }, + "allow_merge_commit": { + "description": "Whether to allow merge commits for pull requests.", + "default": true, + "type": "boolean", + "example": true + }, + "allow_rebase_merge": { + "description": "Whether to allow rebase merges for pull requests.", + "default": true, + "type": "boolean", + "example": true + }, + "delete_branch_on_merge": { + "description": "Whether to delete head branches when pull requests are merged", + "default": false, + "type": "boolean", + "example": false + }, + "has_downloads": { + "description": "Whether downloads are enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "is_template": { + "description": "Whether this repository acts as a template that can be used to generate new repositories.", + "default": false, + "type": "boolean", + "example": true + } + }, + "required": ["name"], + "type": "object" + } + } + } + }, + "responses": { + "201": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/repository" }, + "examples": { + "default": { "$ref": "#/components/examples/repository" } + } + } + }, + "headers": { + "Location": { + "example": "https://api.github.com/repos/octocat/Hello-World", + "schema": { "type": "string" } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "400": { "$ref": "#/components/responses/bad_request" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": false, + "name": "nebula", + "note": "You can set the visibility of a repository using the new `visibility` parameter in the [Repositories API](https://docs.github.com/rest/reference/repos/), and get a repository's visibility with a new response key. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes/).\n\nTo access repository visibility during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.nebula-preview+json\n```" + }, + { + "required": false, + "name": "baptiste", + "note": "The `is_template` and `template_repository` keys are currently available for developer to preview. See [Create a repository using a template](https://docs.github.com/repos#create-a-repository-using-a-template) to learn how to create template repositories. To access these new response keys during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.baptiste-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/user/repository_invitations": { + "get": { + "summary": "List repository invitations for the authenticated user", + "description": "When authenticating as a user, this endpoint will list all currently open repository invitations for that user.", + "tags": ["repos"], + "operationId": "repos/list-invitations-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#list-repository-invitations-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/repository-invitation" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/repository-invitation-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "repos", + "subcategory": "invitations" + }, + "x-octokit": {} + } + }, + "/user/repository_invitations/{invitation_id}": { + "patch": { + "summary": "Accept a repository invitation", + "description": "", + "tags": ["repos"], + "operationId": "repos/accept-invitation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#accept-a-repository-invitation" + }, + "parameters": [{ "$ref": "#/components/parameters/invitation_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "409": { "$ref": "#/components/responses/conflict" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "repos", + "subcategory": "invitations" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Decline a repository invitation", + "description": "", + "tags": ["repos"], + "operationId": "repos/decline-invitation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/repos#decline-a-repository-invitation" + }, + "parameters": [{ "$ref": "#/components/parameters/invitation_id" }], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" }, + "409": { "$ref": "#/components/responses/conflict" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "repos", + "subcategory": "invitations" + }, + "x-octokit": {} + } + }, + "/user/starred": { + "get": { + "summary": "List repositories starred by the authenticated user", + "description": "Lists repositories the authenticated user has starred.\n\nYou can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header:", + "tags": ["activity"], + "operationId": "activity/list-repos-starred-by-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-repositories-starred-by-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/sort" }, + { "$ref": "#/components/parameters/direction" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/repository" } + }, + "examples": { + "default-response": { + "$ref": "#/components/examples/repository-items-default-response" + } + } + }, + "application/vnd.github.v3.star+json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/starred-repository" } + }, + "examples": { + "alternative-response-with-star-creation-timestamps": { + "$ref": "#/components/examples/starred-repository-items-alternative-response-with-star-creation-timestamps" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "starring" + }, + "x-octokit": {} + } + }, + "/user/starred/{owner}/{repo}": { + "get": { + "summary": "Check if a repository is starred by the authenticated user", + "description": "", + "tags": ["activity"], + "operationId": "activity/check-repo-is-starred-by-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#check-if-a-repository-is-starred-by-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "204": { + "description": "Response if this repository is starred by you" + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { + "description": "Response if this repository is not starred by you", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "starring" + }, + "x-octokit": {} + }, + "put": { + "summary": "Star a repository for the authenticated user", + "description": "Note that 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/rest/overview/resources-in-the-rest-api#http-verbs).\"", + "tags": ["activity"], + "operationId": "activity/star-repo-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#star-a-repository-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "starring" + }, + "x-octokit": {} + }, + "delete": { + "summary": "Unstar a repository for the authenticated user", + "description": "", + "tags": ["activity"], + "operationId": "activity/unstar-repo-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#unstar-a-repository-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/owner" }, + { "$ref": "#/components/parameters/repo" } + ], + "responses": { + "204": { "description": "Empty response" }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "starring" + }, + "x-octokit": {} + } + }, + "/user/subscriptions": { + "get": { + "summary": "List repositories watched by the authenticated user", + "description": "Lists repositories the authenticated user is watching.", + "tags": ["activity"], + "operationId": "activity/list-watched-repos-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-repositories-watched-by-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/minimal-repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/minimal-repository-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "401": { "$ref": "#/components/responses/requires_authentication" }, + "403": { "$ref": "#/components/responses/forbidden" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "watching" + }, + "x-octokit": {} + } + }, + "/user/teams": { + "get": { + "summary": "List teams for the authenticated user", + "description": "List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://docs.github.com/apps/building-oauth-apps/).", + "tags": ["teams"], + "operationId": "teams/list-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/teams/#list-teams-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/team-full" } + }, + "examples": { + "default": { "$ref": "#/components/examples/team-full-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "304": { "$ref": "#/components/responses/not_modified" }, + "403": { "$ref": "#/components/responses/forbidden" }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "teams", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users": { + "get": { + "summary": "List users", + "description": "Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts.\n\nNote: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of users.", + "tags": ["users"], + "operationId": "users/list", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/users/#list-users" + }, + "parameters": [ + { "$ref": "#/components/parameters/since-user" }, + { "$ref": "#/components/parameters/per_page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\"", + "schema": { "type": "string" } + } + } + }, + "304": { "$ref": "#/components/responses/not_modified" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "users", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}": { + "get": { + "summary": "Get a user", + "description": "Provides publicly available information about someone with a GitHub account.\n\nGitHub Apps with the `Plan` user permission can use this endpoint to retrieve information about a user's GitHub plan. The GitHub App must be authenticated as a user. See \"[Identifying and authorizing users for GitHub Apps](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)\" for details about authentication. For an example response, see 'Response with GitHub plan information' below\"\n\nThe `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://docs.github.com/rest/overview/resources-in-the-rest-api#authentication).\n\nThe Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see \"[Emails API](https://docs.github.com/rest/reference/users#emails)\".", + "tags": ["users"], + "operationId": "users/get-by-username", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/users/#get-a-user" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "oneOf": [ + { "$ref": "#/components/schemas/private-user" }, + { "$ref": "#/components/schemas/public-user" } + ] + }, + "examples": { + "default-response": { + "$ref": "#/components/examples/public-user-default-response" + }, + "response-with-git-hub-plan-information": { + "$ref": "#/components/examples/public-user-response-with-git-hub-plan-information" + } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "users", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}/events": { + "get": { + "summary": "List events for the authenticated user", + "description": "If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.", + "tags": ["activity"], + "operationId": "activity/list-events-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-events-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/event" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/users/{username}/events/orgs/{org}": { + "get": { + "summary": "List organization events for the authenticated user", + "description": "This is the user's organization dashboard. You must be authenticated as the user to view this.", + "tags": ["activity"], + "operationId": "activity/list-org-events-for-authenticated-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-organization-events-for-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/org" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/event" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "activity", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/users/{username}/events/public": { + "get": { + "summary": "List public events for a user", + "description": "", + "tags": ["activity"], + "operationId": "activity/list-public-events-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-public-events-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/event" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/users/{username}/followers": { + "get": { + "summary": "List followers of a user", + "description": "Lists the people following the specified user.", + "tags": ["users"], + "operationId": "users/list-followers-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-followers-of-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "users", + "subcategory": "followers" + }, + "x-octokit": {} + } + }, + "/users/{username}/following": { + "get": { + "summary": "List the people a user follows", + "description": "Lists the people who the specified user follows.", + "tags": ["users"], + "operationId": "users/list-following-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-the-people-a-user-follows" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/simple-user-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "users", + "subcategory": "followers" + }, + "x-octokit": {} + } + }, + "/users/{username}/following/{target_user}": { + "get": { + "summary": "Check if a user follows another user", + "description": "", + "tags": ["users"], + "operationId": "users/check-following-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#check-if-a-user-follows-another-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { + "name": "target_user", + "in": "path", + "required": true, + "schema": { "type": "string" } + } + ], + "responses": { + "204": { + "description": "Response if the user follows the target user" + }, + "404": { + "description": "Response if the user does not follow the target user" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "users", + "subcategory": "followers" + }, + "x-octokit": {} + } + }, + "/users/{username}/gists": { + "get": { + "summary": "List gists for a user", + "description": "Lists public gists for the specified user:", + "tags": ["gists"], + "operationId": "gists/list-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/gists/#list-gists-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/since" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/base-gist" } + }, + "examples": { + "default": { "$ref": "#/components/examples/base-gist-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "gists", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}/gpg_keys": { + "get": { + "summary": "List GPG keys for a user", + "description": "Lists the GPG keys for a user. This information is accessible by anyone.", + "tags": ["users"], + "operationId": "users/list-gpg-keys-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-gpg-keys-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/gpg-key" } + }, + "examples": { + "default": { "$ref": "#/components/examples/gpg-key-items" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "users", + "subcategory": "gpg-keys" + }, + "x-octokit": {} + } + }, + "/users/{username}/hovercard": { + "get": { + "summary": "Get contextual information for a user", + "description": "Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations.\n\nThe `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this:\n\n```shell\n curl -u username:token\n https://api.github.com/users/octocat/hovercard?subject_type=repository&subject_id=1300192\n```", + "tags": ["users"], + "operationId": "users/get-context-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/users/#get-contextual-information-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { + "name": "subject_type", + "description": "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`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["organization", "repository", "issue", "pull_request"] + } + }, + { + "name": "subject_id", + "description": "Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`.", + "in": "query", + "required": false, + "schema": { "type": "string" } + } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/hovercard" }, + "examples": { + "default": { "$ref": "#/components/examples/hovercard" } + } + } + } + }, + "404": { "$ref": "#/components/responses/not_found" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "users", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}/installation": { + "get": { + "summary": "Get a user installation for the authenticated app", + "description": "Enables an authenticated GitHub App to find the user’s installation information.\n\nYou must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.", + "tags": ["apps"], + "operationId": "apps/get-user-installation", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/apps/#get-a-user-installation-for-the-authenticated-app" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/installation" }, + "examples": { + "default": { "$ref": "#/components/examples/installation" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "apps", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}/keys": { + "get": { + "summary": "List public keys for a user", + "description": "Lists the _verified_ public SSH keys for a user. This is accessible by anyone.", + "tags": ["users"], + "operationId": "users/list-public-keys-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/users#list-public-keys-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/key-simple" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/key-simple-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "users", + "subcategory": "keys" + }, + "x-octokit": {} + } + }, + "/users/{username}/orgs": { + "get": { + "summary": "List organizations for a user", + "description": "List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user.\n\nThis method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List organizations for the authenticated user](https://docs.github.com/rest/reference/orgs#list-organizations-for-the-authenticated-user) API instead.", + "tags": ["orgs"], + "operationId": "orgs/list-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/orgs/#list-organizations-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/organization-simple" + } + }, + "examples": { + "default": { + "$ref": "#/components/examples/organization-simple-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "orgs", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}/projects": { + "get": { + "summary": "List user projects", + "description": "", + "tags": ["projects"], + "operationId": "projects/list-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/projects/#list-user-projects" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { + "name": "state", + "description": "Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["open", "closed", "all"], + "default": "open" + } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/project" } + }, + "examples": { + "default": { "$ref": "#/components/examples/project-items-3" } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + }, + "415": { "$ref": "#/components/responses/preview_header_missing" }, + "422": { "$ref": "#/components/responses/validation_failed" } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [ + { + "required": true, + "name": "inertia", + "note": "The Projects API is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2016-10-27-changes-to-projects-api) for full details. To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.inertia-preview+json\n```" + } + ], + "category": "projects", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}/received_events": { + "get": { + "summary": "List events received by the authenticated user", + "description": "These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events.", + "tags": ["activity"], + "operationId": "activity/list-received-events-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-events-received-by-the-authenticated-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/event" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/users/{username}/received_events/public": { + "get": { + "summary": "List public events received by a user", + "description": "", + "tags": ["activity"], + "operationId": "activity/list-received-public-events-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-public-events-received-by-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/event" } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "events" + }, + "x-octokit": {} + } + }, + "/users/{username}/repos": { + "get": { + "summary": "List repositories for a user", + "description": "Lists public repositories for the specified user.", + "tags": ["repos"], + "operationId": "repos/list-for-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/repos/#list-repositories-for-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { + "name": "type", + "description": "Can be one of `all`, `owner`, `member`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["all", "owner", "member"], + "default": "owner" + } + }, + { + "name": "sort", + "description": "Can be one of `created`, `updated`, `pushed`, `full_name`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["created", "updated", "pushed", "full_name"], + "default": "full_name" + } + }, + { + "name": "direction", + "description": "Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc`", + "in": "query", + "required": false, + "schema": { "type": "string", "enum": ["asc", "desc"] } + }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/minimal-repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/minimal-repository-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [ + { + "required": false, + "name": "nebula", + "note": "You can set the visibility of a repository using the new `visibility` parameter in the [Repositories API](https://docs.github.com/rest/reference/repos/), and get a repository's visibility with a new response key. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes/).\n\nTo access repository visibility during the preview period, you must provide a custom [media type](https://docs.github.com/rest/overview/media-types) in the `Accept` header:\n```shell\napplication/vnd.github.nebula-preview+json\n```" + } + ], + "category": "repos", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}/settings/billing/actions": { + "get": { + "summary": "Get GitHub Actions billing for a user", + "description": "Gets the summary of the free and paid GitHub Actions minutes used.\n\nPaid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see \"[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)\".\n\nAccess tokens must have the `user` scope.", + "operationId": "billing/get-github-actions-billing-user", + "tags": ["billing"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/billing/#get-github-actions-billing-for-a-user" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/actions-billing-usage" + }, + "examples": { + "default": { + "$ref": "#/components/examples/actions-billing-usage" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "billing", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}/settings/billing/packages": { + "get": { + "summary": "Get GitHub Packages billing for a user", + "description": "Gets the free and paid storage used for GitHub Packages in gigabytes.\n\nPaid minutes only apply to packages stored for private repositories. For more information, see \"[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages).\"\n\nAccess tokens must have the `user` scope.", + "operationId": "billing/get-github-packages-billing-user", + "tags": ["billing"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/billing/#get-github-packages-billing-for-a-user" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/packages-billing-usage" + }, + "examples": { + "default": { + "$ref": "#/components/examples/packages-billing-usage" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "billing", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}/settings/billing/shared-storage": { + "get": { + "summary": "Get shared storage billing for a user", + "description": "Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.\n\nPaid minutes only apply to packages stored for private repositories. For more information, see \"[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages).\"\n\nAccess tokens must have the `user` scope.", + "operationId": "billing/get-shared-storage-billing-user", + "tags": ["billing"], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/v3/billing/#get-shared-storage-billing-for-a-user" + }, + "parameters": [{ "$ref": "#/components/parameters/username" }], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/combined-billing-usage" + }, + "examples": { + "default": { + "$ref": "#/components/examples/combined-billing-usage" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "previews": [], + "category": "billing", + "subcategory": null + }, + "x-octokit": {} + } + }, + "/users/{username}/starred": { + "get": { + "summary": "List repositories starred by a user", + "description": "Lists repositories a user has starred.\n\nYou can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header:", + "tags": ["activity"], + "operationId": "activity/list-repos-starred-by-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-repositories-starred-by-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/sort" }, + { "$ref": "#/components/parameters/direction" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/repository" } + }, + "examples": { + "default-response": { + "$ref": "#/components/examples/repository-items-default-response" + } + } + }, + "application/vnd.github.v3.star+json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/starred-repository" } + }, + "examples": { + "alternative-response-with-star-creation-timestamps": { + "$ref": "#/components/examples/starred-repository-items-alternative-response-with-star-creation-timestamps" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "starring" + }, + "x-octokit": {} + } + }, + "/users/{username}/subscriptions": { + "get": { + "summary": "List repositories watched by a user", + "description": "Lists repositories a user is watching.", + "tags": ["activity"], + "operationId": "activity/list-repos-watched-by-user", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/reference/activity#list-repositories-watched-by-a-user" + }, + "parameters": [ + { "$ref": "#/components/parameters/username" }, + { "$ref": "#/components/parameters/per_page" }, + { "$ref": "#/components/parameters/page" } + ], + "responses": { + "200": { + "description": "response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { "$ref": "#/components/schemas/minimal-repository" } + }, + "examples": { + "default": { + "$ref": "#/components/examples/minimal-repository-items" + } + } + } + }, + "headers": { "Link": { "$ref": "#/components/headers/link" } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "activity", + "subcategory": "watching" + }, + "x-octokit": {} + } + }, + "/zen": { + "get": { + "summary": "Get the Zen of GitHub", + "description": "Get a random sentence from the Zen of GitHub", + "tags": ["meta"], + "operationId": "meta/get-zen", + "responses": { + "200": { + "description": "response", + "content": { "text/plain": { "schema": { "type": "string" } } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "previews": [], + "category": "meta" + }, + "x-octokit": {} + } + } + }, + "components": { + "schemas": { + "simple-user": { + "title": "Simple User", + "description": "Simple User", + "type": "object", + "properties": { + "login": { "type": "string", "example": "octocat" }, + "id": { "type": "integer", "example": 1 }, + "node_id": { "type": "string", "example": "MDQ6VXNlcjE=" }, + "avatar_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/images/error/octocat_happy.gif" + }, + "gravatar_id": { "type": "string", "example": "", "nullable": true }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat" + }, + "followers_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/followers" + }, + "following_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/following{/other_user}" + }, + "gists_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/gists{/gist_id}" + }, + "starred_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/starred{/owner}{/repo}" + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/subscriptions" + }, + "organizations_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/orgs" + }, + "repos_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/repos" + }, + "events_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/events{/privacy}" + }, + "received_events_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/received_events" + }, + "type": { "type": "string", "example": "User" }, + "site_admin": { "type": "boolean" }, + "starred_at": { + "type": "string", + "example": "\"2020-07-09T00:17:55Z\"" + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ], + "nullable": true + }, + "integration": { + "title": "GitHub app", + "description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the GitHub app", + "example": 37, + "type": "integer" + }, + "slug": { + "description": "The slug name of the GitHub app", + "example": "probot-owners", + "type": "string" + }, + "node_id": { + "type": "string", + "example": "MDExOkludGVncmF0aW9uMQ==" + }, + "owner": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "name": { + "description": "The name of the GitHub app", + "example": "Probot Owners", + "type": "string" + }, + "description": { "type": "string", "example": "", "nullable": true }, + "external_url": { + "type": "string", + "format": "uri", + "example": "https://example.com" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/apps/super-ci" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2017-07-08T16:18:44-04:00" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2017-07-08T16:18:44-04:00" + }, + "permissions": { + "description": "The set of permissions for the GitHub app", + "type": "object", + "properties": { + "issues": { "type": "string" }, + "checks": { "type": "string" }, + "metadata": { "type": "string" }, + "contents": { "type": "string" }, + "deployments": { "type": "string" } + }, + "additionalProperties": { "type": "string" }, + "example": { "issues": "read", "deployments": "write" } + }, + "events": { + "description": "The list of events for the GitHub app", + "example": ["label", "deployment"], + "type": "array", + "items": { "type": "string" } + }, + "installations_count": { + "description": "The number of installations associated with the GitHub app", + "example": 5, + "type": "integer" + }, + "client_id": { + "type": "string", + "example": "\"Iv1.25b5d1e65ffc4022\"" + }, + "client_secret": { + "type": "string", + "example": "\"1d4b2097ac622ba702d19de498f005747a8b21d3\"" + }, + "webhook_secret": { + "type": "string", + "example": "\"6fba8f2fc8a7e8f2cca5577eddd82ca7586b3b6b\"" + }, + "pem": { + "type": "string", + "example": "\"-----BEGIN RSA PRIVATE KEY-----\\nMIIEogIBAAKCAQEArYxrNYD/iT5CZVpRJu4rBKmmze3PVmT/gCo2ATUvDvZTPTey\\nxcGJ3vvrJXazKk06pN05TN29o98jrYz4cengG3YGsXPNEpKsIrEl8NhbnxapEnM9\\nJCMRe0P5JcPsfZlX6hmiT7136GRWiGOUba2X9+HKh8QJVLG5rM007TBER9/z9mWm\\nrJuNh+m5l320oBQY/Qq3A7wzdEfZw8qm/mIN0FCeoXH1L6B8xXWaAYBwhTEh6SSn\\nZHlO1Xu1JWDmAvBCi0RO5aRSKM8q9QEkvvHP4yweAtK3N8+aAbZ7ovaDhyGz8r6r\\nzhU1b8Uo0Z2ysf503WqzQgIajr7Fry7/kUwpgQIDAQABAoIBADwJp80Ko1xHPZDy\\nfcCKBDfIuPvkmSW6KumbsLMaQv1aGdHDwwTGv3t0ixSay8CGlxMRtRDyZPib6SvQ\\n6OH/lpfpbMdW2ErkksgtoIKBVrDilfrcAvrNZu7NxRNbhCSvN8q0s4ICecjbbVQh\\nnueSdlA6vGXbW58BHMq68uRbHkP+k+mM9U0mDJ1HMch67wlg5GbayVRt63H7R2+r\\nVxcna7B80J/lCEjIYZznawgiTvp3MSanTglqAYi+m1EcSsP14bJIB9vgaxS79kTu\\noiSo93leJbBvuGo8QEiUqTwMw4tDksmkLsoqNKQ1q9P7LZ9DGcujtPy4EZsamSJT\\ny8OJt0ECgYEA2lxOxJsQk2kI325JgKFjo92mQeUObIvPfSNWUIZQDTjniOI6Gv63\\nGLWVFrZcvQBWjMEQraJA9xjPbblV8PtfO87MiJGLWCHFxmPz2dzoedN+2Coxom8m\\nV95CLz8QUShuao6u/RYcvUaZEoYs5bHcTmy5sBK80JyEmafJPtCQVxMCgYEAy3ar\\nZr3yv4xRPEPMat4rseswmuMooSaK3SKub19WFI5IAtB/e7qR1Rj9JhOGcZz+OQrl\\nT78O2OFYlgOIkJPvRMrPpK5V9lslc7tz1FSh3BZMRGq5jSyD7ETSOQ0c8T2O/s7v\\nbeEPbVbDe4mwvM24XByH0GnWveVxaDl51ABD65sCgYB3ZAspUkOA5egVCh8kNpnd\\nSd6SnuQBE3ySRlT2WEnCwP9Ph6oPgn+oAfiPX4xbRqkL8q/k0BdHQ4h+zNwhk7+h\\nWtPYRAP1Xxnc/F+jGjb+DVaIaKGU18MWPg7f+FI6nampl3Q0KvfxwX0GdNhtio8T\\nTj1E+SnFwh56SRQuxSh2gwKBgHKjlIO5NtNSflsUYFM+hyQiPiqnHzddfhSG+/3o\\nm5nNaSmczJesUYreH5San7/YEy2UxAugvP7aSY2MxB+iGsiJ9WD2kZzTUlDZJ7RV\\nUzWsoqBR+eZfVJ2FUWWvy8TpSG6trh4dFxImNtKejCR1TREpSiTV3Zb1dmahK9GV\\nrK9NAoGAbBxRLoC01xfxCTgt5BDiBcFVh4fp5yYKwavJPLzHSpuDOrrI9jDn1oKN\\nonq5sDU1i391zfQvdrbX4Ova48BN+B7p63FocP/MK5tyyBoT8zQEk2+vWDOw7H/Z\\nu5dTCPxTIsoIwUw1I+7yIxqJzLPFgR2gVBwY1ra/8iAqCj+zeBw=\\n-----END RSA PRIVATE KEY-----\\n\"" + } + }, + "required": [ + "id", + "node_id", + "owner", + "name", + "description", + "external_url", + "html_url", + "created_at", + "updated_at", + "permissions", + "events" + ], + "additionalProperties": true + }, + "basic-error": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + }, + "validation-error-simple": { + "title": "Validation Error Simple", + "description": "Validation Error Simple", + "type": "object", + "required": ["message", "documentation_url"], + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" }, + "errors": { "type": "array", "items": { "type": "string" } } + } + }, + "webhook-config-url": { + "type": "string", + "description": "The URL to which the payloads will be delivered.", + "example": "https://example.com/webhook", + "format": "uri" + }, + "webhook-config-content-type": { + "type": "string", + "description": "The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`.", + "example": "\"json\"" + }, + "webhook-config-secret": { + "type": "string", + "description": "If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers).", + "example": "\"********\"" + }, + "webhook-config-insecure-ssl": { + "type": "string", + "description": "Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.**", + "example": "\"0\"" + }, + "webhook-config": { + "title": "Webhook Configuration", + "description": "Configuration object of the webhook", + "type": "object", + "properties": { + "url": { "$ref": "#/components/schemas/webhook-config-url" }, + "content_type": { + "$ref": "#/components/schemas/webhook-config-content-type" + }, + "secret": { "$ref": "#/components/schemas/webhook-config-secret" }, + "insecure_ssl": { + "$ref": "#/components/schemas/webhook-config-insecure-ssl" + } + } + }, + "enterprise": { + "title": "Enterprise", + "description": "An enterprise account", + "type": "object", + "properties": { + "description": { + "description": "A short description of the enterprise.", + "type": "string", + "nullable": true + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/enterprises/octo-business" + }, + "website_url": { + "description": "The enterprise's website URL.", + "type": "string", + "nullable": true, + "format": "uri" + }, + "id": { + "description": "Unique identifier of the enterprise", + "example": 42, + "type": "integer" + }, + "node_id": { + "type": "string", + "example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + }, + "name": { + "description": "The name of the enterprise.", + "type": "string", + "example": "Octo Business" + }, + "slug": { + "description": "The slug url identifier for the enterprise.", + "type": "string", + "example": "octo-business" + }, + "created_at": { + "type": "string", + "nullable": true, + "format": "date-time", + "example": "2019-01-26T19:01:12Z" + }, + "updated_at": { + "type": "string", + "nullable": true, + "format": "date-time", + "example": "2019-01-26T19:14:43Z" + }, + "avatar_url": { "type": "string", "format": "uri" } + }, + "required": [ + "id", + "node_id", + "name", + "slug", + "html_url", + "created_at", + "updated_at", + "avatar_url" + ] + }, + "installation": { + "title": "Installation", + "description": "Installation", + "type": "object", + "properties": { + "id": { + "description": "The ID of the installation.", + "type": "integer", + "example": 1 + }, + "account": { + "nullable": true, + "anyOf": [ + { "$ref": "#/components/schemas/simple-user" }, + { "$ref": "#/components/schemas/enterprise" } + ] + }, + "repository_selection": { + "description": "Describe whether all repositories have been selected or there's a selection involved", + "type": "string", + "enum": ["all", "selected"] + }, + "access_tokens_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/installations/1/access_tokens" + }, + "repositories_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/installation/repositories" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/organizations/github/settings/installations/1" + }, + "app_id": { "type": "integer", "example": 1 }, + "target_id": { + "description": "The ID of the user or organization this token is being scoped to.", + "type": "integer" + }, + "target_type": { "type": "string", "example": "Organization" }, + "permissions": { + "type": "object", + "example": { "issues": "read", "deployments": "write" }, + "properties": { + "deployments": { "type": "string" }, + "checks": { "type": "string" }, + "metadata": { "type": "string" }, + "contents": { "type": "string" }, + "pull_requests": { "type": "string" }, + "statuses": { "type": "string" }, + "issues": { "type": "string", "example": "\"read\"" }, + "organization_administration": { + "type": "string", + "example": "\"read\"" + } + } + }, + "events": { "type": "array", "items": { "type": "string" } }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "single_file_name": { + "type": "string", + "example": "config.yaml", + "nullable": true + }, + "has_multiple_single_files": { "type": "boolean", "example": true }, + "single_file_paths": { + "type": "array", + "items": { + "type": "string", + "example": ["config.yml", ".github/issue_TEMPLATE.md"] + } + }, + "app_slug": { "type": "string", "example": "github-actions" }, + "suspended_by": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "suspended_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "contact_email": { + "type": "string", + "example": "\"test_13f1e99741e3e004@d7e1eb0bc0a1ba12.com\"", + "nullable": true + } + }, + "required": [ + "id", + "app_id", + "app_slug", + "target_id", + "target_type", + "single_file_name", + "repository_selection", + "access_tokens_url", + "html_url", + "repositories_url", + "events", + "account", + "permissions", + "created_at", + "updated_at" + ] + }, + "license-simple": { + "title": "License Simple", + "description": "License Simple", + "type": "object", + "properties": { + "key": { "type": "string", "example": "mit" }, + "name": { "type": "string", "example": "MIT License" }, + "url": { + "type": "string", + "nullable": true, + "format": "uri", + "example": "https://api.github.com/licenses/mit" + }, + "spdx_id": { "type": "string", "nullable": true, "example": "MIT" }, + "node_id": { "type": "string", "example": "MDc6TGljZW5zZW1pdA==" }, + "html_url": { "type": "string", "format": "uri" } + }, + "required": ["key", "name", "url", "spdx_id", "node_id"] + }, + "repository": { + "title": "Repository", + "description": "A git repository", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the repository", + "example": 42, + "type": "integer" + }, + "node_id": { + "type": "string", + "example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + }, + "name": { + "description": "The name of the repository.", + "type": "string", + "example": "Team Environment" + }, + "full_name": { "type": "string", "example": "octocat/Hello-World" }, + "license": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/license-simple" }] + }, + "forks": { "type": "integer" }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "pull": { "type": "boolean" }, + "triage": { "type": "boolean" }, + "push": { "type": "boolean" }, + "maintain": { "type": "boolean" } + }, + "required": ["admin", "pull", "push"] + }, + "owner": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "private": { + "description": "Whether the repository is private or public.", + "default": false, + "type": "boolean" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World" + }, + "description": { + "type": "string", + "example": "This your first repo!", + "nullable": true + }, + "fork": { "type": "boolean" }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World" + }, + "archive_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" + }, + "assignees_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" + }, + "blobs_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" + }, + "branches_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" + }, + "collaborators_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" + }, + "comments_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}" + }, + "commits_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" + }, + "compare_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" + }, + "contents_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" + }, + "contributors_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/contributors" + }, + "deployments_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/deployments" + }, + "downloads_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/downloads" + }, + "events_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/events" + }, + "forks_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/forks" + }, + "git_commits_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}" + }, + "git_refs_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}" + }, + "git_tags_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}" + }, + "git_url": { + "type": "string", + "example": "git:github.com/octocat/Hello-World.git" + }, + "issue_comment_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}" + }, + "issue_events_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}" + }, + "issues_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}" + }, + "keys_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}" + }, + "labels_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}" + }, + "languages_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/languages" + }, + "merges_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/merges" + }, + "milestones_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}" + }, + "notifications_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}" + }, + "pulls_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}" + }, + "releases_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}" + }, + "ssh_url": { + "type": "string", + "example": "git@github.com:octocat/Hello-World.git" + }, + "stargazers_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/stargazers" + }, + "statuses_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}" + }, + "subscribers_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/subscribers" + }, + "subscription_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/subscription" + }, + "tags_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/tags" + }, + "teams_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/teams" + }, + "trees_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}" + }, + "clone_url": { + "type": "string", + "example": "https://github.com/octocat/Hello-World.git" + }, + "mirror_url": { + "type": "string", + "format": "uri", + "example": "git:git.example.com/octocat/Hello-World", + "nullable": true + }, + "hooks_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "svn_url": { + "type": "string", + "format": "uri", + "example": "https://svn.github.com/octocat/Hello-World" + }, + "homepage": { + "type": "string", + "format": "uri", + "example": "https://github.com", + "nullable": true + }, + "language": { "type": "string", "nullable": true }, + "forks_count": { "type": "integer", "example": 9 }, + "stargazers_count": { "type": "integer", "example": 80 }, + "watchers_count": { "type": "integer", "example": 80 }, + "size": { "type": "integer", "example": 108 }, + "default_branch": { + "description": "The default branch of the repository.", + "type": "string", + "example": "master" + }, + "open_issues_count": { "type": "integer", "example": 0 }, + "is_template": { + "description": "Whether this repository acts as a template that can be used to generate new repositories.", + "default": false, + "type": "boolean", + "example": true + }, + "topics": { "type": "array", "items": { "type": "string" } }, + "has_issues": { + "description": "Whether issues are enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "has_projects": { + "description": "Whether projects are enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "has_wiki": { + "description": "Whether the wiki is enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "has_pages": { "type": "boolean" }, + "has_downloads": { + "description": "Whether downloads are enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "archived": { + "description": "Whether the repository is archived.", + "default": false, + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "description": "Returns whether or not this repository disabled." + }, + "visibility": { + "description": "The repository visibility: public, private, or internal.", + "default": "public", + "type": "string" + }, + "pushed_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:06:43Z", + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z", + "nullable": true + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:14:43Z", + "nullable": true + }, + "allow_rebase_merge": { + "description": "Whether to allow rebase merges for pull requests.", + "default": true, + "type": "boolean", + "example": true + }, + "template_repository": { + "type": "object", + "nullable": true, + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "name": { "type": "string" }, + "full_name": { "type": "string" }, + "owner": { + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" } + } + }, + "private": { "type": "boolean" }, + "html_url": { "type": "string" }, + "description": { "type": "string" }, + "fork": { "type": "boolean" }, + "url": { "type": "string" }, + "archive_url": { "type": "string" }, + "assignees_url": { "type": "string" }, + "blobs_url": { "type": "string" }, + "branches_url": { "type": "string" }, + "collaborators_url": { "type": "string" }, + "comments_url": { "type": "string" }, + "commits_url": { "type": "string" }, + "compare_url": { "type": "string" }, + "contents_url": { "type": "string" }, + "contributors_url": { "type": "string" }, + "deployments_url": { "type": "string" }, + "downloads_url": { "type": "string" }, + "events_url": { "type": "string" }, + "forks_url": { "type": "string" }, + "git_commits_url": { "type": "string" }, + "git_refs_url": { "type": "string" }, + "git_tags_url": { "type": "string" }, + "git_url": { "type": "string" }, + "issue_comment_url": { "type": "string" }, + "issue_events_url": { "type": "string" }, + "issues_url": { "type": "string" }, + "keys_url": { "type": "string" }, + "labels_url": { "type": "string" }, + "languages_url": { "type": "string" }, + "merges_url": { "type": "string" }, + "milestones_url": { "type": "string" }, + "notifications_url": { "type": "string" }, + "pulls_url": { "type": "string" }, + "releases_url": { "type": "string" }, + "ssh_url": { "type": "string" }, + "stargazers_url": { "type": "string" }, + "statuses_url": { "type": "string" }, + "subscribers_url": { "type": "string" }, + "subscription_url": { "type": "string" }, + "tags_url": { "type": "string" }, + "teams_url": { "type": "string" }, + "trees_url": { "type": "string" }, + "clone_url": { "type": "string" }, + "mirror_url": { "type": "string" }, + "hooks_url": { "type": "string" }, + "svn_url": { "type": "string" }, + "homepage": { "type": "string" }, + "language": { "type": "string" }, + "forks_count": { "type": "integer" }, + "stargazers_count": { "type": "integer" }, + "watchers_count": { "type": "integer" }, + "size": { "type": "integer" }, + "default_branch": { "type": "string" }, + "open_issues_count": { "type": "integer" }, + "is_template": { "type": "boolean" }, + "topics": { "type": "array", "items": { "type": "string" } }, + "has_issues": { "type": "boolean" }, + "has_projects": { "type": "boolean" }, + "has_wiki": { "type": "boolean" }, + "has_pages": { "type": "boolean" }, + "has_downloads": { "type": "boolean" }, + "archived": { "type": "boolean" }, + "disabled": { "type": "boolean" }, + "visibility": { "type": "string" }, + "pushed_at": { "type": "string" }, + "created_at": { "type": "string" }, + "updated_at": { "type": "string" }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "push": { "type": "boolean" }, + "pull": { "type": "boolean" } + } + }, + "allow_rebase_merge": { "type": "boolean" }, + "template_repository": { "type": "string" }, + "temp_clone_token": { "type": "string" }, + "allow_squash_merge": { "type": "boolean" }, + "delete_branch_on_merge": { "type": "boolean" }, + "allow_merge_commit": { "type": "boolean" }, + "subscribers_count": { "type": "integer" }, + "network_count": { "type": "integer" } + } + }, + "temp_clone_token": { "type": "string" }, + "allow_squash_merge": { + "description": "Whether to allow squash merges for pull requests.", + "default": true, + "type": "boolean", + "example": true + }, + "delete_branch_on_merge": { + "description": "Whether to delete head branches when pull requests are merged", + "default": false, + "type": "boolean", + "example": false + }, + "allow_merge_commit": { + "description": "Whether to allow merge commits for pull requests.", + "default": true, + "type": "boolean", + "example": true + }, + "subscribers_count": { "type": "integer" }, + "network_count": { "type": "integer" }, + "open_issues": { "type": "integer" }, + "watchers": { "type": "integer" }, + "master_branch": { "type": "string" }, + "starred_at": { + "type": "string", + "example": "\"2020-07-09T00:17:42Z\"" + } + }, + "required": [ + "archive_url", + "assignees_url", + "blobs_url", + "branches_url", + "collaborators_url", + "comments_url", + "commits_url", + "compare_url", + "contents_url", + "contributors_url", + "deployments_url", + "description", + "downloads_url", + "events_url", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", + "html_url", + "id", + "node_id", + "issue_comment_url", + "issue_events_url", + "issues_url", + "keys_url", + "labels_url", + "languages_url", + "merges_url", + "milestones_url", + "name", + "notifications_url", + "owner", + "private", + "pulls_url", + "releases_url", + "stargazers_url", + "statuses_url", + "subscribers_url", + "subscription_url", + "tags_url", + "teams_url", + "trees_url", + "url", + "clone_url", + "default_branch", + "forks", + "forks_count", + "git_url", + "has_downloads", + "has_issues", + "has_projects", + "has_wiki", + "has_pages", + "homepage", + "language", + "archived", + "disabled", + "mirror_url", + "open_issues", + "open_issues_count", + "license", + "pushed_at", + "size", + "ssh_url", + "stargazers_count", + "svn_url", + "watchers", + "watchers_count", + "created_at", + "updated_at" + ] + }, + "installation-token": { + "title": "Installation Token", + "description": "Authentication token for a GitHub App installed on a user or org.", + "type": "object", + "properties": { + "token": { "type": "string" }, + "expires_at": { "type": "string" }, + "permissions": { + "type": "object", + "properties": { + "issues": { "type": "string" }, + "contents": { "type": "string" }, + "metadata": { "type": "string", "example": "read" }, + "single_file": { "type": "string", "example": "read" } + } + }, + "repository_selection": { + "type": "string", + "enum": ["all", "selected"] + }, + "repositories": { + "type": "array", + "items": { "$ref": "#/components/schemas/repository" } + }, + "single_file": { "type": "string", "example": "README.md" }, + "has_multiple_single_files": { "type": "boolean", "example": true }, + "single_file_paths": { + "type": "array", + "items": { + "type": "string", + "example": ["config.yml", ".github/issue_TEMPLATE.md"] + } + } + } + }, + "validation-error": { + "title": "Validation Error", + "description": "Validation Error", + "type": "object", + "required": ["message", "documentation_url"], + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" }, + "errors": { + "type": "array", + "items": { + "type": "object", + "required": ["code"], + "properties": { + "resource": { "type": "string" }, + "field": { "type": "string" }, + "message": { "type": "string" }, + "code": { "type": "string" }, + "index": { "type": "integer" }, + "value": { + "oneOf": [ + { "type": "string", "nullable": true }, + { "type": "integer", "nullable": true }, + { + "type": "array", + "nullable": true, + "items": { "type": "string" } + } + ] + } + } + } + } + } + }, + "application-grant": { + "title": "Application Grant", + "description": "The authorization associated with an OAuth Access.", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 1 }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/applications/grants/1" + }, + "app": { + "type": "object", + "properties": { + "client_id": { "type": "string" }, + "name": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": ["client_id", "name", "url"] + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-09-06T17:26:27Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-09-06T20:39:23Z" + }, + "scopes": { + "type": "array", + "items": { "type": "string" }, + "example": ["public_repo"] + }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + } + }, + "required": ["app", "id", "scopes", "url", "created_at", "updated_at"] + }, + "scoped-installation": { + "title": "Scoped Installation", + "type": "object", + "properties": { + "permissions": { + "type": "object", + "example": { "issues": "read", "deployments": "write" } + }, + "repository_selection": { + "description": "Describe whether all repositories have been selected or there's a selection involved", + "type": "string", + "enum": ["all", "selected"] + }, + "single_file_name": { + "type": "string", + "example": "config.yaml", + "nullable": true + }, + "has_multiple_single_files": { "type": "boolean", "example": true }, + "single_file_paths": { + "type": "array", + "items": { + "type": "string", + "example": ["config.yml", ".github/issue_TEMPLATE.md"] + } + }, + "repositories_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/repos" + }, + "account": { "$ref": "#/components/schemas/simple-user" } + }, + "required": [ + "permissions", + "repository_selection", + "single_file_name", + "repositories_url", + "account" + ] + }, + "authorization": { + "title": "Authorization", + "description": "The authorization for an OAuth app, GitHub App, or a Personal Access Token.", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 1 }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/authorizations/1" + }, + "scopes": { + "description": "A list of scopes that this authorization is in.", + "type": "array", + "items": { "type": "string" }, + "example": ["public_repo", "user"], + "nullable": true + }, + "token": { "type": "string", "example": "" }, + "token_last_eight": { + "type": "string", + "example": "12345678", + "nullable": true + }, + "hashed_token": { + "type": "string", + "example": "25f94a2a5c7fbaf499c665bc73d67c1c87e496da8985131633ee0a95819db2e8", + "nullable": true + }, + "app": { + "type": "object", + "properties": { + "client_id": { "type": "string" }, + "name": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": ["client_id", "name", "url"] + }, + "note": { + "type": "string", + "example": "optional note", + "nullable": true + }, + "note_url": { + "type": "string", + "format": "uri", + "example": "http://optional/note/url", + "nullable": true + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-09-06T20:39:23Z" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-09-06T17:26:27Z" + }, + "fingerprint": { + "type": "string", + "example": "jklmnop12345678", + "nullable": true + }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "installation": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/scoped-installation" }] + } + }, + "required": [ + "app", + "id", + "note", + "note_url", + "scopes", + "token", + "hashed_token", + "token_last_eight", + "fingerprint", + "url", + "created_at", + "updated_at" + ] + }, + "code-of-conduct": { + "title": "Code Of Conduct", + "description": "Code Of Conduct", + "type": "object", + "properties": { + "key": { "type": "string", "example": "contributor_covenant" }, + "name": { "type": "string", "example": "Contributor Covenant" }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/codes_of_conduct/contributor_covenant" + }, + "body": { + "type": "string", + "example": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]\n\n[homepage]: http://contributor-covenant.org\n[version]: http://contributor-covenant.org/version/1/4/\n" + }, + "html_url": { "type": "string", "format": "uri", "nullable": true } + }, + "required": ["url", "html_url", "key", "name"] + }, + "content-reference-attachment": { + "title": "ContentReferenceAttachment", + "description": "Content Reference attachments allow you to provide context around URLs posted in comments", + "type": "object", + "properties": { + "id": { + "description": "The ID of the attachment", + "example": 21, + "type": "integer" + }, + "title": { + "description": "The title of the attachment", + "example": "Title of the attachment", + "type": "string", + "maxLength": 1024 + }, + "body": { + "description": "The body of the attachment", + "example": "Body of the attachment", + "type": "string", + "maxLength": 262144 + }, + "node_id": { + "description": "The node_id of the content attachment", + "example": "MDE3OkNvbnRlbnRBdHRhY2htZW50MjE=", + "type": "string" + } + }, + "required": ["id", "title", "body"] + }, + "enabled-organizations": { + "type": "string", + "description": "The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.", + "enum": ["all", "none", "selected"] + }, + "allowed-actions": { + "type": "string", + "description": "The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`.", + "enum": ["all", "local_only", "selected"] + }, + "selected-actions-url": { + "type": "string", + "description": "The API URL to use to get or set the actions that are allowed to run, when `allowed_actions` is set to `selected`." + }, + "actions-enterprise-permissions": { + "type": "object", + "properties": { + "enabled_organizations": { + "$ref": "#/components/schemas/enabled-organizations" + }, + "selected_organizations_url": { + "type": "string", + "description": "The API URL to use to get or set the selected organizations that are allowed to run GitHub Actions, when `enabled_organizations` is set to `selected`." + }, + "allowed_actions": { "$ref": "#/components/schemas/allowed-actions" }, + "selected_actions_url": { + "$ref": "#/components/schemas/selected-actions-url" + } + } + }, + "organization-simple": { + "title": "Organization Simple", + "description": "Organization Simple", + "type": "object", + "properties": { + "login": { "type": "string", "example": "github" }, + "id": { "type": "integer", "example": 1 }, + "node_id": { + "type": "string", + "example": "MDEyOk9yZ2FuaXphdGlvbjE=" + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/github" + }, + "repos_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/github/repos" + }, + "events_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/github/events" + }, + "hooks_url": { + "type": "string", + "example": "https://api.github.com/orgs/github/hooks" + }, + "issues_url": { + "type": "string", + "example": "https://api.github.com/orgs/github/issues" + }, + "members_url": { + "type": "string", + "example": "https://api.github.com/orgs/github/members{/member}" + }, + "public_members_url": { + "type": "string", + "example": "https://api.github.com/orgs/github/public_members{/member}" + }, + "avatar_url": { + "type": "string", + "example": "https://github.com/images/error/octocat_happy.gif" + }, + "description": { + "type": "string", + "example": "A great organization", + "nullable": true + } + }, + "required": [ + "login", + "url", + "id", + "node_id", + "repos_url", + "events_url", + "hooks_url", + "issues_url", + "members_url", + "public_members_url", + "avatar_url", + "description" + ] + }, + "selected-actions": { + "type": "object", + "properties": { + "github_owned_allowed": { + "type": "boolean", + "description": "Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization." + }, + "verified_allowed": { + "type": "boolean", + "description": "Whether actions in GitHub Marketplace from verified creators are allowed. Set to `true` to allow all GitHub Marketplace actions by verified creators." + }, + "patterns_allowed": { + "type": "array", + "description": "Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.\"", + "items": { "type": "string" } + } + } + }, + "runner-groups-enterprise": { + "type": "object", + "properties": { + "id": { "type": "number" }, + "name": { "type": "string" }, + "visibility": { "type": "string" }, + "default": { "type": "boolean" }, + "selected_organizations_url": { "type": "string" }, + "runners_url": { "type": "string" } + } + }, + "runner": { + "title": "Self hosted runners", + "description": "A self hosted runner", + "type": "object", + "properties": { + "id": { + "description": "The id of the runner.", + "type": "integer", + "example": 5 + }, + "name": { + "description": "The name of the runner.", + "type": "string", + "example": "iMac" + }, + "os": { + "description": "The Operating System of the runner.", + "type": "string", + "example": "macos" + }, + "status": { + "description": "The status of the runner.", + "type": "string", + "example": "online" + }, + "busy": { "type": "boolean" }, + "labels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "Unique identifier of the label." + }, + "name": { + "type": "string", + "description": "Name of the label." + }, + "type": { + "type": "string", + "description": "The type of label. Read-only labels are applied automatically when the runner is configured.", + "enum": ["read-only", "custom"] + } + } + } + } + }, + "required": ["id", "name", "os", "status", "busy", "labels"] + }, + "runner-application": { + "title": "Runner Application", + "description": "Runner Application", + "type": "object", + "properties": { + "os": { "type": "string" }, + "architecture": { "type": "string" }, + "download_url": { "type": "string" }, + "filename": { "type": "string" } + } + }, + "authentication-token": { + "title": "Authentication Token", + "description": "Authentication Token", + "type": "object", + "properties": { + "token": { + "description": "The token used for authentication", + "type": "string", + "example": "v1.1f699f1069f60xxx" + }, + "expires_at": { + "description": "The time this token expires", + "type": "string", + "format": "date-time", + "example": "2016-07-11T22:14:10Z" + }, + "permissions": { + "type": "object", + "example": { "issues": "read", "deployments": "write" } + }, + "repositories": { + "description": "The repositories this token has access to", + "type": "array", + "items": { "$ref": "#/components/schemas/repository" } + }, + "single_file": { + "type": "string", + "example": "config.yaml", + "nullable": true + }, + "repository_selection": { + "description": "Describe whether all repositories have been selected or there's a selection involved", + "type": "string", + "enum": ["all", "selected"] + } + }, + "required": ["token", "expires_at"] + }, + "actions-billing-usage": { + "type": "object", + "properties": { + "total_minutes_used": { + "type": "integer", + "description": "The sum of the free and paid GitHub Actions minutes used." + }, + "total_paid_minutes_used": { + "type": "integer", + "description": "The total paid GitHub Actions minutes used." + }, + "included_minutes": { + "type": "integer", + "description": "The amount of free GitHub Actions minutes available." + }, + "minutes_used_breakdown": { + "type": "object", + "properties": { + "UBUNTU": { + "type": "integer", + "description": "Total minutes used on Ubuntu runner machines." + }, + "MACOS": { + "type": "integer", + "description": "Total minutes used on macOS runner machines." + }, + "WINDOWS": { + "type": "integer", + "description": "Total minutes used on Windows runner machines." + } + } + } + } + }, + "packages-billing-usage": { + "type": "object", + "properties": { + "total_gigabytes_bandwidth_used": { + "type": "integer", + "description": "Sum of the free and paid storage space (GB) for GitHuub Packages." + }, + "total_paid_gigabytes_bandwidth_used": { + "type": "integer", + "description": "Total paid storage space (GB) for GitHuub Packages." + }, + "included_gigabytes_bandwidth": { + "type": "integer", + "description": "Free storage space (GB) for GitHub Packages." + } + } + }, + "combined-billing-usage": { + "type": "object", + "properties": { + "days_left_in_billing_cycle": { + "type": "integer", + "description": "Numbers of days left in billing cycle." + }, + "estimated_paid_storage_for_month": { + "type": "integer", + "description": "Estimated storage space (GB) used in billing cycle." + }, + "estimated_storage_for_month": { + "type": "integer", + "description": "Estimated sum of free and paid storage space (GB) used in billing cycle." + } + } + }, + "actor": { + "title": "Actor", + "description": "Actor", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "login": { "type": "string" }, + "display_login": { "type": "string" }, + "gravatar_id": { "type": "string", "nullable": true }, + "url": { "type": "string", "format": "uri" }, + "avatar_url": { "type": "string", "format": "uri" } + }, + "required": ["id", "login", "gravatar_id", "url", "avatar_url"] + }, + "milestone": { + "title": "Milestone", + "description": "A collection of related issues and pull requests.", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/milestones/1" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/milestones/v1.0" + }, + "labels_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels" + }, + "id": { "type": "integer", "example": 1002604 }, + "node_id": { + "type": "string", + "example": "MDk6TWlsZXN0b25lMTAwMjYwNA==" + }, + "number": { + "description": "The number of the milestone.", + "type": "integer", + "example": 42 + }, + "state": { + "description": "The state of the milestone.", + "example": "open", + "type": "string", + "enum": ["open", "closed"], + "default": "open" + }, + "title": { + "description": "The title of the milestone.", + "example": "v1.0", + "type": "string" + }, + "description": { + "type": "string", + "example": "Tracking milestone for version 1.0", + "nullable": true + }, + "creator": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "open_issues": { "type": "integer", "example": 4 }, + "closed_issues": { "type": "integer", "example": 8 }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-10T20:09:31Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2014-03-03T18:58:10Z" + }, + "closed_at": { + "type": "string", + "format": "date-time", + "example": "2013-02-12T13:22:01Z", + "nullable": true + }, + "due_on": { + "type": "string", + "format": "date-time", + "example": "2012-10-09T23:39:01Z", + "nullable": true + } + }, + "required": [ + "closed_issues", + "creator", + "description", + "due_on", + "closed_at", + "id", + "node_id", + "labels_url", + "html_url", + "number", + "open_issues", + "state", + "title", + "url", + "created_at", + "updated_at" + ] + }, + "issue-simple": { + "title": "Issue Simple", + "description": "Issue Simple", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 1 }, + "node_id": { "type": "string", "example": "MDU6SXNzdWUx" }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/issues/1347" + }, + "repository_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World" + }, + "labels_url": { + "type": "string", + "example": "https://api.github.com/repos/octocat/Hello-World/issues/1347/labels{/name}" + }, + "comments_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments" + }, + "events_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/issues/1347/events" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/issues/1347" + }, + "number": { "type": "integer", "example": 1347 }, + "state": { "type": "string", "example": "open" }, + "title": { "type": "string", "example": "Found a bug" }, + "body": { + "type": "string", + "example": "I'm having a problem with this." + }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "labels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "name": { "type": "string" }, + "description": { "type": "string", "nullable": true }, + "color": { "type": "string" }, + "default": { "type": "boolean" } + } + } + }, + "assignee": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "assignees": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" }, + "nullable": true + }, + "milestone": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/milestone" }] + }, + "locked": { "type": "boolean", "example": true }, + "active_lock_reason": { + "type": "string", + "example": "too heated", + "nullable": true + }, + "comments": { "type": "integer", "example": 0 }, + "pull_request": { + "type": "object", + "properties": { + "merged_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "diff_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "html_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "patch_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "url": { "type": "string", "format": "uri", "nullable": true } + }, + "required": ["diff_url", "html_url", "patch_url", "url"] + }, + "closed_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-22T13:33:48Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-22T13:33:48Z" + }, + "author_association": { "type": "string" }, + "body_html": { "type": "string" }, + "body_text": { "type": "string" }, + "timeline_url": { "type": "string", "format": "uri" }, + "repository": { "$ref": "#/components/schemas/repository" }, + "performed_via_github_app": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/integration" }] + } + }, + "required": [ + "assignee", + "closed_at", + "comments", + "comments_url", + "events_url", + "html_url", + "id", + "node_id", + "labels", + "labels_url", + "milestone", + "number", + "repository_url", + "state", + "locked", + "title", + "url", + "user", + "author_association", + "created_at", + "updated_at" + ] + }, + "reaction-rollup": { + "title": "Reaction Rollup", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "total_count": { "type": "integer" }, + "+1": { "type": "integer" }, + "-1": { "type": "integer" }, + "laugh": { "type": "integer" }, + "confused": { "type": "integer" }, + "heart": { "type": "integer" }, + "hooray": { "type": "integer" }, + "eyes": { "type": "integer" }, + "rocket": { "type": "integer" } + }, + "required": [ + "url", + "total_count", + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "eyes", + "rocket" + ] + }, + "issue-comment": { + "title": "Issue Comment", + "description": "Comments provide a way for people to collaborate on an issue.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the issue comment", + "example": 42, + "type": "integer" + }, + "node_id": { "type": "string" }, + "url": { + "description": "URL for the issue comment", + "example": "https://api.github.com/repositories/42/issues/comments/1", + "type": "string", + "format": "uri" + }, + "body": { + "description": "Contents of the issue comment", + "example": "What version of Safari were you using when you observed this bug?", + "type": "string" + }, + "body_text": { "type": "string" }, + "body_html": { "type": "string" }, + "html_url": { "type": "string", "format": "uri" }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-14T16:00:49Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-14T16:00:49Z" + }, + "issue_url": { "type": "string", "format": "uri" }, + "author_association": { + "type": "string", + "enum": [ + "collaborator", + "contributor", + "first_timer", + "first_time_contributor", + "mannequin", + "member", + "none", + "owner" + ] + }, + "performed_via_github_app": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/integration" }] + }, + "reactions": { "$ref": "#/components/schemas/reaction-rollup" } + }, + "required": [ + "id", + "node_id", + "html_url", + "issue_url", + "author_association", + "user", + "url", + "created_at", + "updated_at" + ] + }, + "event": { + "title": "Event", + "description": "Event", + "type": "object", + "properties": { + "id": { "type": "string" }, + "type": { "type": "string", "nullable": true }, + "actor": { "$ref": "#/components/schemas/actor" }, + "repo": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "name": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": ["id", "name", "url"] + }, + "org": { "$ref": "#/components/schemas/actor" }, + "payload": { + "type": "object", + "properties": { + "action": { "type": "string" }, + "issue": { "$ref": "#/components/schemas/issue-simple" }, + "comment": { "$ref": "#/components/schemas/issue-comment" }, + "pages": { + "type": "array", + "items": { + "type": "object", + "properties": { + "page_name": { "type": "string" }, + "title": { "type": "string" }, + "summary": { "type": "string", "nullable": true }, + "action": { "type": "string" }, + "sha": { "type": "string" }, + "html_url": { "type": "string" } + } + } + } + }, + "required": ["action"] + }, + "public": { "type": "boolean" }, + "created_at": { + "type": "string", + "format": "date-time", + "nullable": true + } + }, + "required": [ + "id", + "type", + "actor", + "repo", + "payload", + "public", + "created_at" + ] + }, + "link-with-type": { + "title": "Link With Type", + "description": "Hypermedia Link with Type", + "type": "object", + "properties": { + "href": { "type": "string" }, + "type": { "type": "string" } + }, + "required": ["href", "type"] + }, + "feed": { + "title": "Feed", + "description": "Feed", + "type": "object", + "properties": { + "timeline_url": { + "type": "string", + "example": "https://github.com/timeline" + }, + "user_url": { + "type": "string", + "example": "https://github.com/{user}" + }, + "current_user_public_url": { + "type": "string", + "example": "https://github.com/octocat" + }, + "current_user_url": { + "type": "string", + "example": "https://github.com/octocat.private?token=abc123" + }, + "current_user_actor_url": { + "type": "string", + "example": "https://github.com/octocat.private.actor?token=abc123" + }, + "current_user_organization_url": { "type": "string", "example": "" }, + "current_user_organization_urls": { + "type": "array", + "example": [ + "https://github.com/organizations/github/octocat.private.atom?token=abc123" + ], + "items": { "type": "string", "format": "uri" } + }, + "security_advisories_url": { + "type": "string", + "example": "https://github.com/security-advisories" + }, + "_links": { + "type": "object", + "properties": { + "timeline": { "$ref": "#/components/schemas/link-with-type" }, + "user": { "$ref": "#/components/schemas/link-with-type" }, + "security_advisories": { + "$ref": "#/components/schemas/link-with-type" + }, + "current_user": { "$ref": "#/components/schemas/link-with-type" }, + "current_user_public": { + "$ref": "#/components/schemas/link-with-type" + }, + "current_user_actor": { + "$ref": "#/components/schemas/link-with-type" + }, + "current_user_organization": { + "$ref": "#/components/schemas/link-with-type" + }, + "current_user_organizations": { + "type": "array", + "items": { "$ref": "#/components/schemas/link-with-type" } + } + }, + "required": ["timeline", "user"] + } + }, + "required": ["_links", "timeline_url", "user_url"] + }, + "base-gist": { + "title": "Base Gist", + "description": "Base Gist", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "forks_url": { "type": "string", "format": "uri" }, + "commits_url": { "type": "string", "format": "uri" }, + "id": { "type": "string" }, + "node_id": { "type": "string" }, + "git_pull_url": { "type": "string", "format": "uri" }, + "git_push_url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "files": { + "type": "object", + "additionalProperties": { + "type": "object", + "properties": { + "filename": { "type": "string" }, + "type": { "type": "string" }, + "language": { "type": "string" }, + "raw_url": { "type": "string" }, + "size": { "type": "integer" } + } + } + }, + "public": { "type": "boolean" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "description": { "type": "string", "nullable": true }, + "comments": { "type": "integer" }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "comments_url": { "type": "string", "format": "uri" }, + "owner": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "truncated": { "type": "boolean" }, + "forks": { "type": "array", "items": {} }, + "history": { "type": "array", "items": {} } + }, + "required": [ + "id", + "node_id", + "url", + "forks_url", + "commits_url", + "git_pull_url", + "git_push_url", + "html_url", + "comments_url", + "public", + "description", + "comments", + "user", + "files", + "created_at", + "updated_at" + ] + }, + "gist-simple": { + "title": "Gist Simple", + "description": "Gist Simple", + "type": "object", + "properties": { + "url": { "type": "string" }, + "forks_url": { "type": "string" }, + "commits_url": { "type": "string" }, + "id": { "type": "string" }, + "node_id": { "type": "string" }, + "git_pull_url": { "type": "string" }, + "git_push_url": { "type": "string" }, + "html_url": { "type": "string" }, + "files": { + "type": "object", + "additionalProperties": { + "nullable": true, + "type": "object", + "properties": { + "filename": { "type": "string" }, + "type": { "type": "string" }, + "language": { "type": "string" }, + "raw_url": { "type": "string" }, + "size": { "type": "integer" }, + "truncated": { "type": "boolean" }, + "content": { "type": "string" } + } + } + }, + "public": { "type": "boolean" }, + "created_at": { "type": "string" }, + "updated_at": { "type": "string" }, + "description": { "type": "string", "nullable": true }, + "comments": { "type": "integer" }, + "user": { "type": "string", "nullable": true }, + "comments_url": { "type": "string" }, + "owner": { "$ref": "#/components/schemas/simple-user" }, + "truncated": { "type": "boolean" } + } + }, + "gist-full": { + "title": "Gist Full", + "description": "Gist Full", + "allOf": [ + { "$ref": "#/components/schemas/gist-simple" }, + { + "type": "object", + "properties": { + "forks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "user": { + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" } + } + }, + "url": { "type": "string" }, + "id": { "type": "string" }, + "created_at": { "type": "string" }, + "updated_at": { "type": "string" } + } + } + }, + "history": { + "type": "array", + "items": { + "type": "object", + "properties": { + "url": { "type": "string" }, + "version": { "type": "string" }, + "user": { + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" } + }, + "nullable": true + }, + "change_status": { + "type": "object", + "properties": { + "deletions": { "type": "integer" }, + "additions": { "type": "integer" }, + "total": { "type": "integer" } + } + }, + "committed_at": { "type": "string" } + } + } + }, + "fork_of": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/gist-simple" }] + }, + "url": { + "type": "string", + "example": "\"https://api.github.com/gists/d8de7663c84491ba9eeb9ca1fd20ced8/cb5b95fe0f15ada6d34a421007ba2e4a34e2771e\"" + }, + "forks_url": { + "type": "string", + "example": "\"https://api.github.com/gists/d8de7663c84491ba9eeb9ca1fd20ced8/forks\"" + }, + "commits_url": { + "type": "string", + "example": "\"https://api.github.com/gists/d8de7663c84491ba9eeb9ca1fd20ced8/commits\"" + }, + "id": { + "type": "string", + "example": "\"d8de7663c84491ba9eeb9ca1fd20ced8\"" + }, + "node_id": { + "type": "string", + "example": "\"MDQ6R2lzdGQ4ZGU3NjYzYzg0NDkxYmE5ZWViOWNhMWZkMjBjZWQ4\"" + }, + "git_pull_url": { + "type": "string", + "example": "\"https://gist.github.com/d8de7663c84491ba9eeb9ca1fd20ced8.git\"" + }, + "git_push_url": { + "type": "string", + "example": "\"https://gist.github.com/d8de7663c84491ba9eeb9ca1fd20ced8.git\"" + }, + "html_url": { + "type": "string", + "example": "\"https://gist.github.com/d8de7663c84491ba9eeb9ca1fd20ced8\"" + }, + "created_at": { + "type": "string", + "example": "\"2020-07-09T00:18:06Z\"" + }, + "updated_at": { + "type": "string", + "example": "\"2020-07-09T00:18:06Z\"" + }, + "description": { + "type": "string", + "example": "\"description\"", + "nullable": true + }, + "comments": { "type": "integer", "example": "0" }, + "comments_url": { + "type": "string", + "example": "\"https://api.github.com/gists/d8de7663c84491ba9eeb9ca1fd20ced8/comments\"" + } + } + } + ] + }, + "gist-comment": { + "title": "Gist Comment", + "description": "A comment made to a gist.", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 1 }, + "node_id": { + "type": "string", + "example": "MDExOkdpc3RDb21tZW50MQ==" + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/gists/a6db0bec360bb87e9418/comments/1" + }, + "body": { + "description": "The comment text.", + "type": "string", + "maxLength": 65535, + "example": "Body of the attachment" + }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-18T23:23:56Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-18T23:23:56Z" + }, + "author_association": { "type": "string" } + }, + "required": [ + "url", + "id", + "node_id", + "user", + "body", + "author_association", + "created_at", + "updated_at" + ] + }, + "gist-commit": { + "title": "Gist Commit", + "description": "Gist Commit", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/gists/aa5a315d61ae9438b18d/57a7f021a713b1c5a6a199b54cc514735d2d462f" + }, + "version": { + "type": "string", + "example": "57a7f021a713b1c5a6a199b54cc514735d2d462f" + }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "change_status": { + "type": "object", + "properties": { + "total": { "type": "integer" }, + "additions": { "type": "integer" }, + "deletions": { "type": "integer" } + } + }, + "committed_at": { + "type": "string", + "format": "date-time", + "example": "2010-04-14T02:15:15Z" + } + }, + "required": ["url", "user", "version", "committed_at", "change_status"] + }, + "gitignore-template": { + "title": "Gitignore Template", + "description": "Gitignore Template", + "type": "object", + "properties": { + "name": { "type": "string", "example": "C" }, + "source": { + "type": "string", + "example": "# Object files\n*.o\n\n# Libraries\n*.lib\n*.a\n\n# Shared objects (inc. Windows DLLs)\n*.dll\n*.so\n*.so.*\n*.dylib\n\n# Executables\n*.exe\n*.out\n*.app\n" + } + }, + "required": ["name", "source"] + }, + "issue": { + "title": "Issue", + "description": "Issues are a great way to keep track of tasks, enhancements, and bugs for your projects.", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { + "description": "URL for the issue", + "example": "https://api.github.com/repositories/42/issues/1", + "type": "string", + "format": "uri" + }, + "repository_url": { "type": "string", "format": "uri" }, + "labels_url": { "type": "string" }, + "comments_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "number": { + "description": "Number uniquely identifying the issue within its repository", + "example": 42, + "type": "integer" + }, + "state": { + "description": "State of the issue; either 'open' or 'closed'", + "example": "open", + "type": "string" + }, + "title": { + "description": "Title of the issue", + "example": "Widget creation fails in Safari on OS X 10.8", + "type": "string" + }, + "body": { + "description": "Contents of the issue", + "example": "It looks like the new widget form is broken on Safari. When I try and create the widget, Safari crashes. This is reproducible on 10.8, but not 10.9. Maybe a browser bug?", + "type": "string" + }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "labels": { + "description": "Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository", + "example": ["bug", "registration"], + "type": "array", + "items": { + "oneOf": [ + { "type": "string" }, + { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "name": { "type": "string" }, + "description": { "type": "string", "nullable": true }, + "color": { "type": "string", "nullable": true }, + "default": { "type": "boolean" } + } + } + ] + } + }, + "assignee": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "assignees": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" }, + "nullable": true + }, + "milestone": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/milestone" }] + }, + "locked": { "type": "boolean" }, + "active_lock_reason": { "type": "string", "nullable": true }, + "comments": { "type": "integer" }, + "pull_request": { + "type": "object", + "properties": { + "merged_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "diff_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "html_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "patch_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "url": { "type": "string", "format": "uri", "nullable": true } + }, + "required": ["diff_url", "html_url", "patch_url", "url"] + }, + "closed_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "closed_by": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "body_html": { "type": "string" }, + "body_text": { "type": "string" }, + "timeline_url": { "type": "string", "format": "uri" }, + "repository": { "$ref": "#/components/schemas/repository" }, + "performed_via_github_app": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/integration" }] + }, + "author_association": { "type": "string" }, + "reactions": { "$ref": "#/components/schemas/reaction-rollup" } + }, + "required": [ + "assignee", + "closed_at", + "comments", + "comments_url", + "events_url", + "html_url", + "id", + "node_id", + "labels", + "labels_url", + "milestone", + "number", + "repository_url", + "state", + "locked", + "title", + "url", + "user", + "author_association", + "created_at", + "updated_at" + ] + }, + "license": { + "title": "License", + "description": "License", + "type": "object", + "properties": { + "key": { "type": "string", "example": "mit" }, + "name": { "type": "string", "example": "MIT License" }, + "spdx_id": { "type": "string", "example": "MIT", "nullable": true }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/licenses/mit", + "nullable": true + }, + "node_id": { "type": "string", "example": "MDc6TGljZW5zZW1pdA==" }, + "html_url": { + "type": "string", + "format": "uri", + "example": "http://choosealicense.com/licenses/mit/" + }, + "description": { + "type": "string", + "example": "A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty." + }, + "implementation": { + "type": "string", + "example": "Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders." + }, + "permissions": { + "type": "array", + "example": [ + "commercial-use", + "modifications", + "distribution", + "sublicense", + "private-use" + ], + "items": { "type": "string" } + }, + "conditions": { + "type": "array", + "example": ["include-copyright"], + "items": { "type": "string" } + }, + "limitations": { + "type": "array", + "example": ["no-liability"], + "items": { "type": "string" } + }, + "body": { + "type": "string", + "example": "\n\nThe MIT License (MIT)\n\nCopyright (c) [year] [fullname]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n" + }, + "featured": { "type": "boolean", "example": true } + }, + "required": [ + "key", + "name", + "url", + "spdx_id", + "node_id", + "html_url", + "description", + "implementation", + "permissions", + "conditions", + "limitations", + "body", + "featured" + ] + }, + "marketplace-listing-plan": { + "title": "Marketplace Listing Plan", + "description": "Marketplace Listing Plan", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/marketplace_listing/plans/1313" + }, + "accounts_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/marketplace_listing/plans/1313/accounts" + }, + "id": { "type": "integer", "example": 1313 }, + "number": { "type": "integer", "example": 3 }, + "name": { "type": "string", "example": "Pro" }, + "description": { + "type": "string", + "example": "A professional-grade CI solution" + }, + "monthly_price_in_cents": { "type": "integer", "example": 1099 }, + "yearly_price_in_cents": { "type": "integer", "example": 11870 }, + "price_model": { "type": "string", "example": "flat-rate" }, + "has_free_trial": { "type": "boolean", "example": true }, + "unit_name": { "type": "string", "nullable": true }, + "state": { "type": "string", "example": "published" }, + "bullets": { + "type": "array", + "items": { "type": "string" }, + "example": ["Up to 25 private repositories", "11 concurrent builds"] + } + }, + "required": [ + "url", + "accounts_url", + "id", + "number", + "name", + "description", + "has_free_trial", + "price_model", + "unit_name", + "monthly_price_in_cents", + "state", + "yearly_price_in_cents", + "bullets" + ] + }, + "marketplace-purchase": { + "title": "Marketplace Purchase", + "description": "Marketplace Purchase", + "type": "object", + "properties": { + "url": { "type": "string" }, + "type": { "type": "string" }, + "id": { "type": "integer" }, + "login": { "type": "string" }, + "organization_billing_email": { "type": "string" }, + "marketplace_pending_change": { + "type": "object", + "properties": { + "is_installed": { "type": "boolean" }, + "effective_date": { "type": "string" }, + "unit_count": { "type": "integer", "nullable": true }, + "id": { "type": "integer" }, + "plan": { + "$ref": "#/components/schemas/marketplace-listing-plan" + } + }, + "nullable": true + }, + "marketplace_purchase": { + "type": "object", + "properties": { + "billing_cycle": { "type": "string" }, + "next_billing_date": { "type": "string", "nullable": true }, + "is_installed": { "type": "boolean" }, + "unit_count": { "type": "integer", "nullable": true }, + "on_free_trial": { "type": "boolean" }, + "free_trial_ends_on": { "type": "string", "nullable": true }, + "updated_at": { "type": "string" }, + "plan": { + "$ref": "#/components/schemas/marketplace-listing-plan" + } + } + } + }, + "required": ["url", "id", "type", "login", "marketplace_purchase"] + }, + "api-overview": { + "title": "Api Overview", + "description": "Api Overview", + "type": "object", + "properties": { + "verifiable_password_authentication": { + "type": "boolean", + "example": true + }, + "ssh_key_fingerprints": { + "type": "object", + "properties": { + "MD5_RSA": { "type": "string" }, + "MD5_DSA": { "type": "string" }, + "SHA256_RSA": { "type": "string" }, + "SHA256_DSA": { "type": "string" } + } + }, + "hooks": { + "type": "array", + "items": { "type": "string" }, + "example": ["127.0.0.1/32"] + }, + "web": { + "type": "array", + "items": { "type": "string" }, + "example": ["127.0.0.1/32"] + }, + "api": { + "type": "array", + "items": { "type": "string" }, + "example": ["127.0.0.1/32"] + }, + "git": { + "type": "array", + "items": { "type": "string" }, + "example": ["127.0.0.1/32"] + }, + "pages": { + "type": "array", + "items": { "type": "string" }, + "example": ["192.30.252.153/32", "192.30.252.154/32"] + }, + "importer": { + "type": "array", + "items": { "type": "string" }, + "example": ["54.158.161.132", "54.226.70.38"] + }, + "github_services_sha": { + "type": "string", + "example": "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15" + }, + "installed_version": { "type": "string" } + }, + "required": ["verifiable_password_authentication"] + }, + "minimal-repository": { + "title": "Minimal Repository", + "description": "Minimal Repository", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 1296269 }, + "node_id": { + "type": "string", + "example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + }, + "name": { "type": "string", "example": "Hello-World" }, + "full_name": { "type": "string", "example": "octocat/Hello-World" }, + "owner": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "private": { "type": "boolean" }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World" + }, + "description": { + "type": "string", + "example": "This your first repo!", + "nullable": true + }, + "fork": { "type": "boolean" }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World" + }, + "archive_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" + }, + "assignees_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" + }, + "blobs_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" + }, + "branches_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" + }, + "collaborators_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" + }, + "comments_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}" + }, + "commits_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" + }, + "compare_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" + }, + "contents_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" + }, + "contributors_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/contributors" + }, + "deployments_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/deployments" + }, + "downloads_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/downloads" + }, + "events_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/events" + }, + "forks_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/forks" + }, + "git_commits_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}" + }, + "git_refs_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}" + }, + "git_tags_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}" + }, + "git_url": { "type": "string" }, + "issue_comment_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}" + }, + "issue_events_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}" + }, + "issues_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}" + }, + "keys_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}" + }, + "labels_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}" + }, + "languages_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/languages" + }, + "merges_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/merges" + }, + "milestones_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}" + }, + "notifications_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}" + }, + "pulls_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}" + }, + "releases_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}" + }, + "ssh_url": { "type": "string" }, + "stargazers_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/stargazers" + }, + "statuses_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}" + }, + "subscribers_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/subscribers" + }, + "subscription_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/subscription" + }, + "tags_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/tags" + }, + "teams_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/teams" + }, + "trees_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}" + }, + "clone_url": { "type": "string" }, + "mirror_url": { "type": "string", "nullable": true }, + "hooks_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "svn_url": { "type": "string" }, + "homepage": { "type": "string", "nullable": true }, + "language": { "type": "string", "nullable": true }, + "forks_count": { "type": "integer" }, + "stargazers_count": { "type": "integer" }, + "watchers_count": { "type": "integer" }, + "size": { "type": "integer" }, + "default_branch": { "type": "string" }, + "open_issues_count": { "type": "integer" }, + "is_template": { "type": "boolean" }, + "topics": { "type": "array", "items": { "type": "string" } }, + "has_issues": { "type": "boolean" }, + "has_projects": { "type": "boolean" }, + "has_wiki": { "type": "boolean" }, + "has_pages": { "type": "boolean" }, + "has_downloads": { "type": "boolean" }, + "archived": { "type": "boolean" }, + "disabled": { "type": "boolean" }, + "visibility": { "type": "string" }, + "pushed_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:06:43Z", + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z", + "nullable": true + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:14:43Z", + "nullable": true + }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "push": { "type": "boolean" }, + "pull": { "type": "boolean" } + } + }, + "template_repository": { "type": "string" }, + "temp_clone_token": { "type": "string" }, + "delete_branch_on_merge": { "type": "boolean" }, + "subscribers_count": { "type": "integer" }, + "network_count": { "type": "integer" }, + "license": { + "type": "object", + "properties": { + "key": { "type": "string" }, + "name": { "type": "string" }, + "spdx_id": { "type": "string" }, + "url": { "type": "string" }, + "node_id": { "type": "string" } + }, + "nullable": true + }, + "forks": { "type": "integer", "example": 0 }, + "open_issues": { "type": "integer", "example": 0 }, + "watchers": { "type": "integer", "example": 0 } + }, + "required": [ + "archive_url", + "assignees_url", + "blobs_url", + "branches_url", + "collaborators_url", + "comments_url", + "commits_url", + "compare_url", + "contents_url", + "contributors_url", + "deployments_url", + "description", + "downloads_url", + "events_url", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", + "html_url", + "id", + "node_id", + "issue_comment_url", + "issue_events_url", + "issues_url", + "keys_url", + "labels_url", + "languages_url", + "merges_url", + "milestones_url", + "name", + "notifications_url", + "owner", + "private", + "pulls_url", + "releases_url", + "stargazers_url", + "statuses_url", + "subscribers_url", + "subscription_url", + "tags_url", + "teams_url", + "trees_url", + "url" + ] + }, + "thread": { + "title": "Thread", + "description": "Thread", + "type": "object", + "properties": { + "id": { "type": "string" }, + "repository": { "$ref": "#/components/schemas/minimal-repository" }, + "subject": { + "type": "object", + "properties": { + "title": { "type": "string" }, + "url": { "type": "string" }, + "latest_comment_url": { "type": "string" }, + "type": { "type": "string" } + } + }, + "reason": { "type": "string" }, + "unread": { "type": "boolean" }, + "updated_at": { "type": "string" }, + "last_read_at": { "type": "string", "nullable": true }, + "url": { "type": "string" }, + "subscription_url": { + "type": "string", + "example": "https://api.github.com/notifications/threads/2/subscription" + } + } + }, + "thread-subscription": { + "title": "Thread Subscription", + "description": "Thread Subscription", + "type": "object", + "properties": { + "subscribed": { "type": "boolean", "example": true }, + "ignored": { "type": "boolean" }, + "reason": { "type": "string", "nullable": true }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2012-10-06T21:34:12Z", + "nullable": true + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/notifications/threads/1/subscription" + }, + "thread_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/notifications/threads/1" + }, + "repository_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/1" + } + }, + "required": ["created_at", "ignored", "reason", "url", "subscribed"] + }, + "organization-full": { + "title": "Organization Full", + "description": "Organization Full", + "type": "object", + "properties": { + "login": { "type": "string", "example": "github" }, + "id": { "type": "integer", "example": 1 }, + "node_id": { + "type": "string", + "example": "MDEyOk9yZ2FuaXphdGlvbjE=" + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/github" + }, + "repos_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/github/repos" + }, + "events_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/github/events" + }, + "hooks_url": { + "type": "string", + "example": "https://api.github.com/orgs/github/hooks" + }, + "issues_url": { + "type": "string", + "example": "https://api.github.com/orgs/github/issues" + }, + "members_url": { + "type": "string", + "example": "https://api.github.com/orgs/github/members{/member}" + }, + "public_members_url": { + "type": "string", + "example": "https://api.github.com/orgs/github/public_members{/member}" + }, + "avatar_url": { + "type": "string", + "example": "https://github.com/images/error/octocat_happy.gif" + }, + "description": { + "type": "string", + "example": "A great organization", + "nullable": true + }, + "name": { "type": "string", "example": "github" }, + "company": { "type": "string", "example": "GitHub" }, + "blog": { + "type": "string", + "format": "uri", + "example": "https://github.com/blog" + }, + "location": { "type": "string", "example": "San Francisco" }, + "email": { + "type": "string", + "format": "email", + "example": "octocat@github.com" + }, + "twitter_username": { + "type": "string", + "example": "github", + "nullable": true + }, + "is_verified": { "type": "boolean", "example": true }, + "has_organization_projects": { "type": "boolean", "example": true }, + "has_repository_projects": { "type": "boolean", "example": true }, + "public_repos": { "type": "integer", "example": 2 }, + "public_gists": { "type": "integer", "example": 1 }, + "followers": { "type": "integer", "example": 20 }, + "following": { "type": "integer", "example": 0 }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2008-01-14T04:33:35Z" + }, + "type": { "type": "string", "example": "Organization" }, + "total_private_repos": { "type": "integer", "example": 100 }, + "owned_private_repos": { "type": "integer", "example": 100 }, + "private_gists": { + "type": "integer", + "example": 81, + "nullable": true + }, + "disk_usage": { + "type": "integer", + "example": 10000, + "nullable": true + }, + "collaborators": { + "type": "integer", + "example": 8, + "nullable": true + }, + "billing_email": { + "type": "string", + "format": "email", + "example": "org@example.com", + "nullable": true + }, + "plan": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "space": { "type": "integer" }, + "private_repos": { "type": "integer" }, + "filled_seats": { "type": "integer" }, + "seats": { "type": "integer" } + }, + "required": ["name", "space", "private_repos"] + }, + "default_repository_permission": { + "type": "string", + "nullable": true + }, + "members_can_create_repositories": { + "type": "boolean", + "example": true, + "nullable": true + }, + "two_factor_requirement_enabled": { + "type": "boolean", + "example": true, + "nullable": true + }, + "members_allowed_repository_creation_type": { + "type": "string", + "example": "all" + }, + "members_can_create_public_repositories": { + "type": "boolean", + "example": true + }, + "members_can_create_private_repositories": { + "type": "boolean", + "example": true + }, + "members_can_create_internal_repositories": { + "type": "boolean", + "example": true + }, + "members_can_create_pages": { "type": "boolean", "example": true }, + "updated_at": { "type": "string", "format": "date-time" } + }, + "required": [ + "login", + "url", + "id", + "node_id", + "repos_url", + "events_url", + "hooks_url", + "issues_url", + "members_url", + "public_members_url", + "avatar_url", + "description", + "html_url", + "has_organization_projects", + "has_repository_projects", + "public_repos", + "public_gists", + "followers", + "following", + "type", + "created_at", + "updated_at" + ] + }, + "enabled-repositories": { + "type": "string", + "description": "The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`.", + "enum": ["all", "none", "selected"] + }, + "actions-organization-permissions": { + "type": "object", + "properties": { + "enabled_repositories": { + "$ref": "#/components/schemas/enabled-repositories" + }, + "selected_repositories_url": { + "type": "string", + "description": "The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`." + }, + "allowed_actions": { "$ref": "#/components/schemas/allowed-actions" }, + "selected_actions_url": { + "$ref": "#/components/schemas/selected-actions-url" + } + } + }, + "runner-groups-org": { + "type": "object", + "properties": { + "id": { "type": "number" }, + "name": { "type": "string" }, + "visibility": { "type": "string" }, + "default": { "type": "boolean" }, + "selected_repositories_url": { "type": "string" }, + "runners_url": { "type": "string" }, + "inherited": { "type": "boolean" } + } + }, + "organization-actions-secret": { + "title": "Actions Secret for an Organization", + "description": "Secrets for GitHub Actions for an organization.", + "type": "object", + "properties": { + "name": { + "description": "The name of the secret.", + "example": "SECRET_TOKEN", + "type": "string" + }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "visibility": { + "description": "Visibility of a secret", + "enum": ["all", "private", "selected"], + "type": "string" + }, + "selected_repositories_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/organizations/org/secrets/my_secret/repositories" + } + }, + "required": ["name", "created_at", "updated_at", "visibility"] + }, + "actions-public-key": { + "title": "ActionsPublicKey", + "description": "The public key used for setting Actions Secrets.", + "type": "object", + "properties": { + "key_id": { + "description": "The identifier for the key.", + "type": "string", + "example": "1234567" + }, + "key": { + "description": "The Base64 encoded public key.", + "type": "string", + "example": "hBT5WZEj8ZoOv6TYJsfWq7MxTEQopZO5/IT3ZCVQPzs=" + }, + "id": { "type": "integer", "example": 2 }, + "url": { + "type": "string", + "example": "https://api.github.com/user/keys/2" + }, + "title": { + "type": "string", + "example": "ssh-rsa AAAAB3NzaC1yc2EAAA" + }, + "created_at": { "type": "string", "example": "2011-01-26T19:01:12Z" } + }, + "required": ["key_id", "key"] + }, + "credential-authorization": { + "title": "Credential Authorization", + "description": "Credential Authorization", + "type": "object", + "properties": { + "login": { + "type": "string", + "example": "monalisa", + "description": "User login that owns the underlying credential." + }, + "credential_id": { + "type": "integer", + "example": 1, + "description": "Unique identifier for the credential." + }, + "credential_type": { + "type": "string", + "example": "SSH Key", + "description": "Human-readable description of the credential type." + }, + "token_last_eight": { + "type": "string", + "example": "12345678", + "description": "Last eight characters of the credential. Only included in responses with credential_type of personal access token." + }, + "credential_authorized_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:06:43Z", + "description": "Date when the credential was authorized for use." + }, + "scopes": { + "type": "array", + "example": ["user", "repo"], + "description": "List of oauth scopes the token has been granted.", + "items": { "type": "string" } + }, + "fingerprint": { + "type": "string", + "example": "jklmnop12345678", + "description": "Unique string to distinguish the credential. Only included in responses with credential_type of SSH Key." + }, + "credential_accessed_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:06:43Z", + "description": "Date when the credential was last accessed. May be null if it was never accessed", + "nullable": true + } + }, + "required": [ + "login", + "credential_id", + "credential_type", + "credential_authorized_at" + ] + }, + "org-hook": { + "title": "Org Hook", + "description": "Org Hook", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 1 }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1" + }, + "ping_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/hooks/1/pings" + }, + "name": { "type": "string", "example": "web" }, + "events": { + "type": "array", + "example": ["push", "pull_request"], + "items": { "type": "string" } + }, + "active": { "type": "boolean", "example": true }, + "config": { + "type": "object", + "properties": { + "url": { + "type": "string", + "example": "\"http://example.com/2\"" + }, + "insecure_ssl": { "type": "string", "example": "\"0\"" }, + "content_type": { "type": "string", "example": "\"form\"" }, + "secret": { "type": "string", "example": "\"********\"" } + } + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-09-06T20:39:23Z" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-09-06T17:26:27Z" + }, + "type": { "type": "string" } + }, + "required": [ + "id", + "url", + "type", + "name", + "active", + "events", + "config", + "ping_url", + "created_at", + "updated_at" + ] + }, + "interaction-group": { + "type": "string", + "description": "The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Can be one of: `existing_users`, `contributors_only`, `collaborators_only`.", + "example": "collaborators_only", + "enum": ["existing_users", "contributors_only", "collaborators_only"] + }, + "interaction-limit-response": { + "title": "Interaction Limits", + "description": "Interaction limit settings.", + "type": "object", + "properties": { + "limit": { "$ref": "#/components/schemas/interaction-group" }, + "origin": { "type": "string", "example": "repository" }, + "expires_at": { + "type": "string", + "format": "date-time", + "example": "2018-08-17T04:18:39Z" + } + }, + "required": ["limit", "origin", "expires_at"] + }, + "interaction-expiry": { + "type": "string", + "description": "The duration of the interaction restriction. Can be one of: `one_day`, `three_days`, `one_week`, `one_month`, `six_months`. Default: `one_day`.", + "example": "one_month", + "enum": ["one_day", "three_days", "one_week", "one_month", "six_months"] + }, + "interaction-limit": { + "title": "Interaction Restrictions", + "description": "Limit interactions to a specific type of user for a specified duration", + "type": "object", + "properties": { + "limit": { "$ref": "#/components/schemas/interaction-group" }, + "expiry": { "$ref": "#/components/schemas/interaction-expiry" } + }, + "required": ["limit"] + }, + "organization-invitation": { + "title": "Organization Invitation", + "description": "Organization Invitation", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "login": { "type": "string", "nullable": true }, + "email": { "type": "string", "nullable": true }, + "role": { "type": "string" }, + "created_at": { "type": "string" }, + "inviter": { "$ref": "#/components/schemas/simple-user" }, + "team_count": { "type": "integer" }, + "invitation_team_url": { "type": "string" }, + "node_id": { + "type": "string", + "example": "\"MDIyOk9yZ2FuaXphdGlvbkludml0YXRpb24x\"" + }, + "invitation_teams_url": { + "type": "string", + "example": "\"https://api.github.com/organizations/16/invitations/1/teams\"" + } + } + }, + "team-simple": { + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", + "example": 1 + }, + "node_id": { "type": "string", "example": "MDQ6VGVhbTE=" }, + "url": { + "description": "URL for the team", + "type": "string", + "format": "uri", + "example": "https://api.github.com/organizations/1/team/1" + }, + "members_url": { + "type": "string", + "example": "https://api.github.com/organizations/1/team/1/members{/member}" + }, + "name": { + "description": "Name of the team", + "type": "string", + "example": "Justice League" + }, + "description": { + "description": "Description of the team", + "type": "string", + "nullable": true, + "example": "A great team." + }, + "permission": { + "description": "Permission that the team will have for its repositories", + "type": "string", + "example": "admin" + }, + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "example": "closed" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/orgs/rails/teams/core" + }, + "repositories_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/organizations/1/team/1/repos" + }, + "slug": { "type": "string", "example": "justice-league" }, + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", + "example": "uid=example,ou=users,dc=github,dc=com", + "type": "string" + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug" + ], + "nullable": true + }, + "team": { + "title": "Team", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "name": { "type": "string" }, + "slug": { "type": "string" }, + "description": { "type": "string", "nullable": true }, + "privacy": { "type": "string" }, + "permission": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/orgs/rails/teams/core" + }, + "members_url": { "type": "string" }, + "repositories_url": { "type": "string", "format": "uri" }, + "parent": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/team-simple" }] + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug" + ] + }, + "org-membership": { + "title": "Org Membership", + "description": "Org Membership", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat/memberships/defunkt" + }, + "state": { "type": "string", "example": "active" }, + "role": { "type": "string", "example": "admin" }, + "organization_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octocat" + }, + "organization": { + "$ref": "#/components/schemas/organization-simple" + }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "permissions": { + "type": "object", + "properties": { "can_create_repository": { "type": "boolean" } }, + "required": ["can_create_repository"] + } + }, + "required": [ + "state", + "role", + "organization_url", + "url", + "organization", + "user" + ] + }, + "migration": { + "title": "Migration", + "description": "A migration.", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 79 }, + "owner": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "guid": { + "type": "string", + "example": "0b989ba4-242f-11e5-81e1-c7b6966d2516" + }, + "state": { "type": "string", "example": "pending" }, + "lock_repositories": { "type": "boolean", "example": true }, + "exclude_attachments": { "type": "boolean" }, + "repositories": { + "type": "array", + "items": { "$ref": "#/components/schemas/repository" } + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/orgs/octo-org/migrations/79" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2015-07-06T15:33:38-07:00" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2015-07-06T15:33:38-07:00" + }, + "node_id": { "type": "string" }, + "archive_url": { "type": "string", "format": "uri" }, + "exclude": { "type": "array", "items": {} } + }, + "required": [ + "id", + "node_id", + "owner", + "guid", + "state", + "lock_repositories", + "exclude_attachments", + "repositories", + "url", + "created_at", + "updated_at" + ] + }, + "project": { + "title": "Project", + "description": "Projects are a way to organize columns and cards of work.", + "type": "object", + "properties": { + "owner_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/api-playground/projects-test" + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/projects/1002604" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/api-playground/projects-test/projects/12" + }, + "columns_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/projects/1002604/columns" + }, + "id": { "type": "integer", "example": 1002604 }, + "node_id": { + "type": "string", + "example": "MDc6UHJvamVjdDEwMDI2MDQ=" + }, + "name": { + "description": "Name of the project", + "example": "Week One Sprint", + "type": "string" + }, + "body": { + "description": "Body of the project", + "example": "This project represents the sprint of the first week in January", + "type": "string", + "nullable": true + }, + "number": { "type": "integer", "example": 1 }, + "state": { + "description": "State of the project; either 'open' or 'closed'", + "example": "open", + "type": "string" + }, + "creator": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-10T20:09:31Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2014-03-03T18:58:10Z" + }, + "organization_permission": { + "description": "The baseline permission that all organization members have on this project", + "type": "string", + "enum": ["read", "write", "admin", "none"] + }, + "private": { + "description": "Whether or not this project can be seen by everyone.", + "type": "boolean" + }, + "cards_url": { "type": "string", "format": "uri" }, + "permissions": { + "type": "object", + "properties": { + "read": { "type": "boolean" }, + "write": { "type": "boolean" }, + "admin": { "type": "boolean" } + }, + "required": ["read", "write", "admin"] + } + }, + "required": [ + "id", + "node_id", + "number", + "name", + "body", + "state", + "url", + "html_url", + "owner_url", + "creator", + "columns_url", + "created_at", + "updated_at" + ] + }, + "group-mapping": { + "title": "GroupMapping", + "description": "External Groups to be mapped to a team for membership", + "type": "object", + "properties": { + "groups": { + "description": "Array of groups to be mapped to this team", + "example": [ + { + "group_id": "111a1a11-aaa1-1aaa-11a1-a1a1a1a1a1aa", + "group_name": "saml-azuread-test", + "group_description": "A group of Developers working on AzureAD SAML SSO" + }, + { + "group_id": "2bb2bb2b-bb22-22bb-2bb2-bb2bbb2bb2b2", + "group_name": "saml-azuread-test2", + "group_description": "Another group of Developers working on AzureAD SAML SSO" + } + ], + "type": "array", + "items": { + "type": "object", + "required": ["group_id", "group_name", "group_description"], + "properties": { + "group_id": { + "description": "The ID of the group", + "example": "111a1a11-aaa1-1aaa-11a1-a1a1a1a1a1aa", + "type": "string" + }, + "group_name": { + "description": "The name of the group", + "example": "saml-azuread-test", + "type": "string" + }, + "group_description": { + "description": "a description of the group", + "example": "A group of Developers working on AzureAD SAML SSO", + "type": "string" + } + } + } + }, + "group_id": { + "description": "The ID of the group", + "example": "111a1a11-aaa1-1aaa-11a1-a1a1a1a1a1aa", + "type": "string" + }, + "group_name": { + "description": "The name of the group", + "example": "saml-azuread-test", + "type": "string" + }, + "group_description": { + "description": "a description of the group", + "example": "A group of Developers working on AzureAD SAML SSO", + "type": "string" + }, + "status": { + "description": "synchronization status for this group mapping", + "example": "unsynced", + "type": "string" + }, + "synced_at": { + "description": "the time of the last sync for this group-mapping", + "example": "2019-06-03 22:27:15:000 -700", + "type": "string" + } + } + }, + "team-full": { + "title": "Full Team", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the team", + "example": 42, + "type": "integer" + }, + "node_id": { "type": "string", "example": "MDQ6VGVhbTE=" }, + "url": { + "description": "URL for the team", + "example": "https://api.github.com/organizations/1/team/1", + "type": "string", + "format": "uri" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/orgs/rails/teams/core" + }, + "name": { + "description": "Name of the team", + "example": "Developers", + "type": "string" + }, + "slug": { "type": "string", "example": "justice-league" }, + "description": { + "type": "string", + "example": "A great team.", + "nullable": true + }, + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "enum": ["closed", "secret"], + "example": "closed" + }, + "permission": { + "description": "Permission that the team will have for its repositories", + "example": "push", + "type": "string" + }, + "members_url": { + "type": "string", + "example": "https://api.github.com/organizations/1/team/1/members{/member}" + }, + "repositories_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/organizations/1/team/1/repos" + }, + "parent": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/team-simple" }] + }, + "members_count": { "type": "integer", "example": 3 }, + "repos_count": { "type": "integer", "example": 10 }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2017-07-14T16:53:42Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2017-08-17T12:37:15Z" + }, + "organization": { "$ref": "#/components/schemas/organization-full" }, + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", + "example": "uid=example,ou=users,dc=github,dc=com", + "type": "string" + } + }, + "required": [ + "id", + "node_id", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "created_at", + "updated_at", + "members_count", + "repos_count", + "organization" + ] + }, + "team-discussion": { + "title": "Team Discussion", + "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "type": "object", + "properties": { + "author": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "body": { + "description": "The main text of the discussion.", + "example": "Please suggest improvements to our workflow in comments.", + "type": "string" + }, + "body_html": { + "type": "string", + "example": "

Hi! This is an area for us to collaborate as a team

" + }, + "body_version": { + "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.", + "example": "0307116bbf7ced493b8d8a346c650b71", + "type": "string" + }, + "comments_count": { "type": "integer", "example": 0 }, + "comments_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/organizations/1/team/2343027/discussions/1/comments" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2018-01-25T18:56:31Z" + }, + "last_edited_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/orgs/github/teams/justice-league/discussions/1" + }, + "node_id": { + "type": "string", + "example": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" + }, + "number": { + "description": "The unique sequence number of a team discussion.", + "example": 42, + "type": "integer" + }, + "pinned": { + "description": "Whether or not this discussion should be pinned for easy retrieval.", + "example": true, + "type": "boolean" + }, + "private": { + "description": "Whether or not this discussion should be restricted to team members and organization administrators.", + "example": true, + "type": "boolean" + }, + "team_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/organizations/1/team/2343027" + }, + "title": { + "description": "The title of the discussion.", + "example": "How can we improve our workflow?", + "type": "string" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2018-01-25T18:56:31Z" + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/organizations/1/team/2343027/discussions/1" + }, + "reactions": { "$ref": "#/components/schemas/reaction-rollup" } + }, + "required": [ + "author", + "body", + "body_html", + "body_version", + "comments_count", + "comments_url", + "created_at", + "last_edited_at", + "html_url", + "pinned", + "private", + "node_id", + "number", + "team_url", + "title", + "updated_at", + "url" + ] + }, + "team-discussion-comment": { + "title": "Team Discussion Comment", + "description": "A reply to a discussion within a team.", + "type": "object", + "properties": { + "author": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "body": { + "description": "The main text of the comment.", + "example": "I agree with this suggestion.", + "type": "string" + }, + "body_html": { + "type": "string", + "example": "

Do you like apples?

" + }, + "body_version": { + "description": "The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server.", + "example": "0307116bbf7ced493b8d8a346c650b71", + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2018-01-15T23:53:58Z" + }, + "last_edited_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "discussion_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/organizations/1/team/2403582/discussions/1" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1" + }, + "node_id": { + "type": "string", + "example": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=" + }, + "number": { + "description": "The unique sequence number of a team discussion comment.", + "example": 42, + "type": "integer" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2018-01-15T23:53:58Z" + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/organizations/1/team/2403582/discussions/1/comments/1" + }, + "reactions": { "$ref": "#/components/schemas/reaction-rollup" } + }, + "required": [ + "author", + "body", + "body_html", + "body_version", + "created_at", + "last_edited_at", + "discussion_url", + "html_url", + "node_id", + "number", + "updated_at", + "url" + ] + }, + "reaction": { + "title": "Reaction", + "description": "Reactions to conversations provide a way to help people express their feelings more simply and effectively.", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 1 }, + "node_id": { "type": "string", "example": "MDg6UmVhY3Rpb24x" }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "content": { + "description": "The reaction to use", + "example": "heart", + "type": "string", + "enum": [ + "+1", + "-1", + "laugh", + "confused", + "heart", + "hooray", + "rocket", + "eyes" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2016-05-20T20:09:31Z" + } + }, + "required": ["id", "node_id", "user", "content", "created_at"] + }, + "team-membership": { + "title": "Team Membership", + "description": "Team Membership", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "role": { + "description": "The role of the user in the team.", + "enum": ["member", "maintainer"], + "default": "member", + "example": "member", + "type": "string" + }, + "state": { "type": "string" } + }, + "required": ["role", "state", "url"] + }, + "team-project": { + "title": "Team Project", + "description": "A team's access to a project.", + "type": "object", + "properties": { + "owner_url": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "columns_url": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "name": { "type": "string" }, + "body": { "type": "string", "nullable": true }, + "number": { "type": "integer" }, + "state": { "type": "string" }, + "creator": { "$ref": "#/components/schemas/simple-user" }, + "created_at": { "type": "string" }, + "updated_at": { "type": "string" }, + "organization_permission": { "type": "string" }, + "private": { "type": "boolean" }, + "permissions": { + "type": "object", + "properties": { + "read": { "type": "boolean" }, + "write": { "type": "boolean" }, + "admin": { "type": "boolean" } + } + } + } + }, + "team-repository": { + "title": "Team Repository", + "description": "A team's access to a repository.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the repository", + "example": 42, + "type": "integer" + }, + "node_id": { + "type": "string", + "example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + }, + "name": { + "description": "The name of the repository.", + "type": "string", + "example": "Team Environment" + }, + "full_name": { "type": "string", "example": "octocat/Hello-World" }, + "license": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/license-simple" }] + }, + "forks": { "type": "integer" }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "pull": { "type": "boolean" }, + "triage": { "type": "boolean" }, + "push": { "type": "boolean" }, + "maintain": { "type": "boolean" } + }, + "required": ["admin", "pull", "push"] + }, + "owner": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "private": { + "description": "Whether the repository is private or public.", + "default": false, + "type": "boolean" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World" + }, + "description": { + "type": "string", + "example": "This your first repo!", + "nullable": true + }, + "fork": { "type": "boolean" }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World" + }, + "archive_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" + }, + "assignees_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" + }, + "blobs_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" + }, + "branches_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" + }, + "collaborators_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" + }, + "comments_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}" + }, + "commits_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" + }, + "compare_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" + }, + "contents_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" + }, + "contributors_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/contributors" + }, + "deployments_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/deployments" + }, + "downloads_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/downloads" + }, + "events_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/events" + }, + "forks_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/forks" + }, + "git_commits_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}" + }, + "git_refs_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}" + }, + "git_tags_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}" + }, + "git_url": { + "type": "string", + "example": "git:github.com/octocat/Hello-World.git" + }, + "issue_comment_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}" + }, + "issue_events_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}" + }, + "issues_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}" + }, + "keys_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}" + }, + "labels_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}" + }, + "languages_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/languages" + }, + "merges_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/merges" + }, + "milestones_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}" + }, + "notifications_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}" + }, + "pulls_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}" + }, + "releases_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}" + }, + "ssh_url": { + "type": "string", + "example": "git@github.com:octocat/Hello-World.git" + }, + "stargazers_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/stargazers" + }, + "statuses_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}" + }, + "subscribers_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/subscribers" + }, + "subscription_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/subscription" + }, + "tags_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/tags" + }, + "teams_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/teams" + }, + "trees_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}" + }, + "clone_url": { + "type": "string", + "example": "https://github.com/octocat/Hello-World.git" + }, + "mirror_url": { + "type": "string", + "format": "uri", + "example": "git:git.example.com/octocat/Hello-World", + "nullable": true + }, + "hooks_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "svn_url": { + "type": "string", + "format": "uri", + "example": "https://svn.github.com/octocat/Hello-World" + }, + "homepage": { + "type": "string", + "format": "uri", + "example": "https://github.com", + "nullable": true + }, + "language": { "type": "string", "nullable": true }, + "forks_count": { "type": "integer", "example": 9 }, + "stargazers_count": { "type": "integer", "example": 80 }, + "watchers_count": { "type": "integer", "example": 80 }, + "size": { "type": "integer", "example": 108 }, + "default_branch": { + "description": "The default branch of the repository.", + "type": "string", + "example": "master" + }, + "open_issues_count": { "type": "integer", "example": 0 }, + "is_template": { + "description": "Whether this repository acts as a template that can be used to generate new repositories.", + "default": false, + "type": "boolean", + "example": true + }, + "topics": { "type": "array", "items": { "type": "string" } }, + "has_issues": { + "description": "Whether issues are enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "has_projects": { + "description": "Whether projects are enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "has_wiki": { + "description": "Whether the wiki is enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "has_pages": { "type": "boolean" }, + "has_downloads": { + "description": "Whether downloads are enabled.", + "default": true, + "type": "boolean", + "example": true + }, + "archived": { + "description": "Whether the repository is archived.", + "default": false, + "type": "boolean" + }, + "disabled": { + "type": "boolean", + "description": "Returns whether or not this repository disabled." + }, + "visibility": { + "description": "The repository visibility: public, private, or internal.", + "default": "public", + "type": "string" + }, + "pushed_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:06:43Z", + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z", + "nullable": true + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:14:43Z", + "nullable": true + }, + "allow_rebase_merge": { + "description": "Whether to allow rebase merges for pull requests.", + "default": true, + "type": "boolean", + "example": true + }, + "template_repository": { + "type": "object", + "nullable": true, + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "name": { "type": "string" }, + "full_name": { "type": "string" }, + "owner": { + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" } + } + }, + "private": { "type": "boolean" }, + "html_url": { "type": "string" }, + "description": { "type": "string" }, + "fork": { "type": "boolean" }, + "url": { "type": "string" }, + "archive_url": { "type": "string" }, + "assignees_url": { "type": "string" }, + "blobs_url": { "type": "string" }, + "branches_url": { "type": "string" }, + "collaborators_url": { "type": "string" }, + "comments_url": { "type": "string" }, + "commits_url": { "type": "string" }, + "compare_url": { "type": "string" }, + "contents_url": { "type": "string" }, + "contributors_url": { "type": "string" }, + "deployments_url": { "type": "string" }, + "downloads_url": { "type": "string" }, + "events_url": { "type": "string" }, + "forks_url": { "type": "string" }, + "git_commits_url": { "type": "string" }, + "git_refs_url": { "type": "string" }, + "git_tags_url": { "type": "string" }, + "git_url": { "type": "string" }, + "issue_comment_url": { "type": "string" }, + "issue_events_url": { "type": "string" }, + "issues_url": { "type": "string" }, + "keys_url": { "type": "string" }, + "labels_url": { "type": "string" }, + "languages_url": { "type": "string" }, + "merges_url": { "type": "string" }, + "milestones_url": { "type": "string" }, + "notifications_url": { "type": "string" }, + "pulls_url": { "type": "string" }, + "releases_url": { "type": "string" }, + "ssh_url": { "type": "string" }, + "stargazers_url": { "type": "string" }, + "statuses_url": { "type": "string" }, + "subscribers_url": { "type": "string" }, + "subscription_url": { "type": "string" }, + "tags_url": { "type": "string" }, + "teams_url": { "type": "string" }, + "trees_url": { "type": "string" }, + "clone_url": { "type": "string" }, + "mirror_url": { "type": "string" }, + "hooks_url": { "type": "string" }, + "svn_url": { "type": "string" }, + "homepage": { "type": "string" }, + "language": { "type": "string" }, + "forks_count": { "type": "integer" }, + "stargazers_count": { "type": "integer" }, + "watchers_count": { "type": "integer" }, + "size": { "type": "integer" }, + "default_branch": { "type": "string" }, + "open_issues_count": { "type": "integer" }, + "is_template": { "type": "boolean" }, + "topics": { "type": "array", "items": { "type": "string" } }, + "has_issues": { "type": "boolean" }, + "has_projects": { "type": "boolean" }, + "has_wiki": { "type": "boolean" }, + "has_pages": { "type": "boolean" }, + "has_downloads": { "type": "boolean" }, + "archived": { "type": "boolean" }, + "disabled": { "type": "boolean" }, + "visibility": { "type": "string" }, + "pushed_at": { "type": "string" }, + "created_at": { "type": "string" }, + "updated_at": { "type": "string" }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "push": { "type": "boolean" }, + "pull": { "type": "boolean" } + } + }, + "allow_rebase_merge": { "type": "boolean" }, + "template_repository": { "type": "string" }, + "temp_clone_token": { "type": "string" }, + "allow_squash_merge": { "type": "boolean" }, + "delete_branch_on_merge": { "type": "boolean" }, + "allow_merge_commit": { "type": "boolean" }, + "subscribers_count": { "type": "integer" }, + "network_count": { "type": "integer" } + } + }, + "temp_clone_token": { "type": "string" }, + "allow_squash_merge": { + "description": "Whether to allow squash merges for pull requests.", + "default": true, + "type": "boolean", + "example": true + }, + "delete_branch_on_merge": { + "description": "Whether to delete head branches when pull requests are merged", + "default": false, + "type": "boolean", + "example": false + }, + "allow_merge_commit": { + "description": "Whether to allow merge commits for pull requests.", + "default": true, + "type": "boolean", + "example": true + }, + "subscribers_count": { "type": "integer" }, + "network_count": { "type": "integer" }, + "open_issues": { "type": "integer" }, + "watchers": { "type": "integer" }, + "master_branch": { "type": "string" } + }, + "required": [ + "archive_url", + "assignees_url", + "blobs_url", + "branches_url", + "collaborators_url", + "comments_url", + "commits_url", + "compare_url", + "contents_url", + "contributors_url", + "deployments_url", + "description", + "downloads_url", + "events_url", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", + "html_url", + "id", + "node_id", + "issue_comment_url", + "issue_events_url", + "issues_url", + "keys_url", + "labels_url", + "languages_url", + "merges_url", + "milestones_url", + "name", + "notifications_url", + "owner", + "private", + "pulls_url", + "releases_url", + "stargazers_url", + "statuses_url", + "subscribers_url", + "subscription_url", + "tags_url", + "teams_url", + "trees_url", + "url", + "clone_url", + "default_branch", + "forks", + "forks_count", + "git_url", + "has_downloads", + "has_issues", + "has_projects", + "has_wiki", + "has_pages", + "homepage", + "language", + "archived", + "disabled", + "mirror_url", + "open_issues", + "open_issues_count", + "license", + "pushed_at", + "size", + "ssh_url", + "stargazers_count", + "svn_url", + "watchers", + "watchers_count", + "created_at", + "updated_at" + ] + }, + "project-card": { + "title": "Project Card", + "description": "Project cards represent a scope of work.", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/projects/columns/cards/1478" + }, + "id": { + "description": "The project card's ID", + "example": 42, + "type": "integer" + }, + "node_id": { + "type": "string", + "example": "MDExOlByb2plY3RDYXJkMTQ3OA==" + }, + "note": { + "type": "string", + "example": "Add payload for delete Project column", + "nullable": true + }, + "creator": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2016-09-05T14:21:06Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2016-09-05T14:20:22Z" + }, + "archived": { + "description": "Whether or not the card is archived", + "example": false, + "type": "boolean" + }, + "column_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/projects/columns/367" + }, + "content_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/api-playground/projects-test/issues/3" + }, + "project_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/projects/120" + } + }, + "required": [ + "id", + "node_id", + "note", + "url", + "column_url", + "project_url", + "creator", + "created_at", + "updated_at" + ] + }, + "project-column": { + "title": "Project Column", + "description": "Project columns contain cards of work.", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/projects/columns/367" + }, + "project_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/projects/120" + }, + "cards_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/projects/columns/367/cards" + }, + "id": { + "description": "The unique identifier of the project column", + "example": 42, + "type": "integer" + }, + "node_id": { + "type": "string", + "example": "MDEzOlByb2plY3RDb2x1bW4zNjc=" + }, + "name": { + "description": "Name of the project column", + "example": "Remaining tasks", + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2016-09-05T14:18:44Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2016-09-05T14:22:28Z" + } + }, + "required": [ + "id", + "node_id", + "url", + "project_url", + "cards_url", + "name", + "created_at", + "updated_at" + ] + }, + "repository-collaborator-permission": { + "title": "Repository Collaborator Permission", + "description": "Repository Collaborator Permission", + "type": "object", + "properties": { + "permission": { "type": "string" }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + } + }, + "required": ["permission", "user"] + }, + "rate-limit": { + "title": "Rate Limit", + "type": "object", + "properties": { + "limit": { "type": "integer" }, + "remaining": { "type": "integer" }, + "reset": { "type": "integer" } + }, + "required": ["limit", "remaining", "reset"] + }, + "rate-limit-overview": { + "title": "Rate Limit Overview", + "description": "Rate Limit Overview", + "type": "object", + "properties": { + "resources": { + "type": "object", + "properties": { + "core": { "$ref": "#/components/schemas/rate-limit" }, + "graphql": { "$ref": "#/components/schemas/rate-limit" }, + "search": { "$ref": "#/components/schemas/rate-limit" }, + "source_import": { "$ref": "#/components/schemas/rate-limit" }, + "integration_manifest": { + "$ref": "#/components/schemas/rate-limit" + }, + "code_scanning_upload": { + "$ref": "#/components/schemas/rate-limit" + } + }, + "required": ["core", "search"] + }, + "rate": { "$ref": "#/components/schemas/rate-limit" } + }, + "required": ["rate", "resources"] + }, + "full-repository": { + "title": "Full Repository", + "description": "Full Repository", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 1296269 }, + "node_id": { + "type": "string", + "example": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + }, + "name": { "type": "string", "example": "Hello-World" }, + "full_name": { "type": "string", "example": "octocat/Hello-World" }, + "owner": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "private": { "type": "boolean" }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World" + }, + "description": { + "type": "string", + "example": "This your first repo!", + "nullable": true + }, + "fork": { "type": "boolean" }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World" + }, + "archive_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" + }, + "assignees_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" + }, + "blobs_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" + }, + "branches_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" + }, + "collaborators_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" + }, + "comments_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/comments{/number}" + }, + "commits_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" + }, + "compare_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" + }, + "contents_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" + }, + "contributors_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/contributors" + }, + "deployments_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/deployments" + }, + "downloads_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/downloads" + }, + "events_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/events" + }, + "forks_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/forks" + }, + "git_commits_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}" + }, + "git_refs_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}" + }, + "git_tags_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}" + }, + "git_url": { + "type": "string", + "example": "git:github.com/octocat/Hello-World.git" + }, + "issue_comment_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}" + }, + "issue_events_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}" + }, + "issues_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/issues{/number}" + }, + "keys_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}" + }, + "labels_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/labels{/name}" + }, + "languages_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/languages" + }, + "merges_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/merges" + }, + "milestones_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/milestones{/number}" + }, + "notifications_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}" + }, + "pulls_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/pulls{/number}" + }, + "releases_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/releases{/id}" + }, + "ssh_url": { + "type": "string", + "example": "git@github.com:octocat/Hello-World.git" + }, + "stargazers_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/stargazers" + }, + "statuses_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}" + }, + "subscribers_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/subscribers" + }, + "subscription_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/subscription" + }, + "tags_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/tags" + }, + "teams_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/teams" + }, + "trees_url": { + "type": "string", + "example": "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}" + }, + "clone_url": { + "type": "string", + "example": "https://github.com/octocat/Hello-World.git" + }, + "mirror_url": { + "type": "string", + "format": "uri", + "example": "git:git.example.com/octocat/Hello-World", + "nullable": true + }, + "hooks_url": { + "type": "string", + "format": "uri", + "example": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "svn_url": { + "type": "string", + "format": "uri", + "example": "https://svn.github.com/octocat/Hello-World" + }, + "homepage": { + "type": "string", + "format": "uri", + "example": "https://github.com", + "nullable": true + }, + "language": { "type": "string", "nullable": true }, + "forks_count": { "type": "integer", "example": 9 }, + "stargazers_count": { "type": "integer", "example": 80 }, + "watchers_count": { "type": "integer", "example": 80 }, + "size": { "type": "integer", "example": 108 }, + "default_branch": { "type": "string", "example": "master" }, + "open_issues_count": { "type": "integer", "example": 0 }, + "is_template": { "type": "boolean", "example": true }, + "topics": { + "type": "array", + "items": { "type": "string" }, + "example": ["octocat", "atom", "electron", "API"] + }, + "has_issues": { "type": "boolean", "example": true }, + "has_projects": { "type": "boolean", "example": true }, + "has_wiki": { "type": "boolean", "example": true }, + "has_pages": { "type": "boolean" }, + "has_downloads": { "type": "boolean", "example": true }, + "archived": { "type": "boolean" }, + "disabled": { + "type": "boolean", + "description": "Returns whether or not this repository disabled." + }, + "visibility": { + "description": "The repository visibility: public, private, or internal.", + "type": "string", + "example": "public" + }, + "pushed_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:06:43Z" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:14:43Z" + }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "pull": { "type": "boolean" }, + "push": { "type": "boolean" } + }, + "required": ["admin", "pull", "push"] + }, + "allow_rebase_merge": { "type": "boolean", "example": true }, + "template_repository": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/repository" }] + }, + "temp_clone_token": { "type": "string", "nullable": true }, + "allow_squash_merge": { "type": "boolean", "example": true }, + "delete_branch_on_merge": { "type": "boolean", "example": false }, + "allow_merge_commit": { "type": "boolean", "example": true }, + "subscribers_count": { "type": "integer", "example": 42 }, + "network_count": { "type": "integer", "example": 0 }, + "license": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/license-simple" }] + }, + "organization": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "parent": { "$ref": "#/components/schemas/repository" }, + "source": { "$ref": "#/components/schemas/repository" }, + "forks": { "type": "integer" }, + "master_branch": { "type": "string" }, + "open_issues": { "type": "integer" }, + "watchers": { "type": "integer" }, + "anonymous_access_enabled": { + "description": "Whether anonymous git access is allowed.", + "default": true, + "type": "boolean" + } + }, + "required": [ + "archive_url", + "assignees_url", + "blobs_url", + "branches_url", + "collaborators_url", + "comments_url", + "commits_url", + "compare_url", + "contents_url", + "contributors_url", + "deployments_url", + "description", + "downloads_url", + "events_url", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", + "html_url", + "id", + "node_id", + "issue_comment_url", + "issue_events_url", + "issues_url", + "keys_url", + "labels_url", + "languages_url", + "merges_url", + "milestones_url", + "name", + "notifications_url", + "owner", + "private", + "pulls_url", + "releases_url", + "stargazers_url", + "statuses_url", + "subscribers_url", + "subscription_url", + "tags_url", + "teams_url", + "trees_url", + "url", + "clone_url", + "default_branch", + "forks", + "forks_count", + "git_url", + "has_downloads", + "has_issues", + "has_projects", + "has_wiki", + "has_pages", + "homepage", + "language", + "archived", + "disabled", + "mirror_url", + "open_issues", + "open_issues_count", + "license", + "pushed_at", + "size", + "ssh_url", + "stargazers_count", + "svn_url", + "watchers", + "watchers_count", + "created_at", + "updated_at", + "network_count", + "subscribers_count" + ] + }, + "artifact": { + "title": "Artifact", + "description": "An artifact", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 5 }, + "node_id": { "type": "string", "example": "MDEwOkNoZWNrU3VpdGU1" }, + "name": { + "description": "The name of the artifact.", + "type": "string", + "example": "AdventureWorks.Framework" + }, + "size_in_bytes": { + "description": "The size in bytes of the artifact.", + "type": "integer", + "example": 12345 + }, + "url": { + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/actions/artifacts/5" + }, + "archive_download_url": { + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/actions/artifacts/5/zip" + }, + "expired": { + "description": "Whether or not the artifact has expired.", + "type": "boolean" + }, + "created_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "expires_at": { "type": "string", "format": "date-time" }, + "updated_at": { + "type": "string", + "format": "date-time", + "nullable": true + } + }, + "required": [ + "id", + "node_id", + "name", + "size_in_bytes", + "url", + "archive_download_url", + "expired", + "created_at", + "expires_at", + "updated_at" + ] + }, + "job": { + "title": "Job", + "description": "Information of a job execution in a workflow run", + "type": "object", + "properties": { + "id": { + "description": "The id of the job.", + "example": 21, + "type": "integer" + }, + "run_id": { + "description": "The id of the associated workflow run.", + "example": 5, + "type": "integer" + }, + "run_url": { + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/actions/runs/5" + }, + "node_id": { "type": "string", "example": "MDg6Q2hlY2tSdW40" }, + "head_sha": { + "description": "The SHA of the commit that is being run.", + "example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d", + "type": "string" + }, + "url": { + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/actions/jobs/21" + }, + "html_url": { + "type": "string", + "example": "https://github.com/github/hello-world/runs/4", + "nullable": true + }, + "status": { + "description": "The phase of the lifecycle that the job is currently in.", + "example": "queued", + "type": "string", + "enum": ["queued", "in_progress", "completed"] + }, + "conclusion": { + "description": "The outcome of the job.", + "example": "success", + "type": "string", + "nullable": true + }, + "started_at": { + "description": "The time that the job started, in ISO 8601 format.", + "example": "2019-08-08T08:00:00-07:00", + "format": "date-time", + "type": "string" + }, + "completed_at": { + "description": "The time that the job finished, in ISO 8601 format.", + "example": "2019-08-08T08:00:00-07:00", + "format": "date-time", + "type": "string", + "nullable": true + }, + "name": { + "description": "The name of the job.", + "example": "test-coverage", + "type": "string" + }, + "steps": { + "description": "Steps in this job.", + "type": "array", + "items": { + "type": "object", + "required": ["name", "status", "conclusion", "number"], + "properties": { + "status": { + "description": "The phase of the lifecycle that the job is currently in.", + "example": "queued", + "type": "string", + "enum": ["queued", "in_progress", "completed"] + }, + "conclusion": { + "description": "The outcome of the job.", + "example": "success", + "type": "string", + "nullable": true + }, + "name": { + "description": "The name of the job.", + "example": "test-coverage", + "type": "string" + }, + "number": { "type": "integer", "example": 1 }, + "started_at": { + "description": "The time that the step started, in ISO 8601 format.", + "example": "2019-08-08T08:00:00-07:00", + "format": "date-time", + "type": "string", + "nullable": true + }, + "completed_at": { + "description": "The time that the job finished, in ISO 8601 format.", + "example": "2019-08-08T08:00:00-07:00", + "format": "date-time", + "type": "string", + "nullable": true + } + } + } + }, + "check_run_url": { + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/check-runs/4" + } + }, + "required": [ + "id", + "node_id", + "run_id", + "run_url", + "head_sha", + "name", + "url", + "html_url", + "status", + "conclusion", + "started_at", + "completed_at", + "check_run_url" + ] + }, + "actions-enabled": { + "type": "boolean", + "description": "Whether GitHub Actions is enabled on the repository." + }, + "actions-repository-permissions": { + "type": "object", + "properties": { + "enabled": { "$ref": "#/components/schemas/actions-enabled" }, + "allowed_actions": { "$ref": "#/components/schemas/allowed-actions" }, + "selected_actions_url": { + "$ref": "#/components/schemas/selected-actions-url" + } + } + }, + "pull-request-minimal": { + "title": "Pull Request Minimal", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "number": { "type": "integer" }, + "url": { "type": "string" }, + "head": { + "type": "object", + "properties": { + "ref": { "type": "string" }, + "sha": { "type": "string" }, + "repo": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "url": { "type": "string" }, + "name": { "type": "string" } + }, + "required": ["id", "url", "name"] + } + }, + "required": ["ref", "sha", "repo"] + }, + "base": { + "type": "object", + "properties": { + "ref": { "type": "string" }, + "sha": { "type": "string" }, + "repo": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "url": { "type": "string" }, + "name": { "type": "string" } + }, + "required": ["id", "url", "name"] + } + }, + "required": ["ref", "sha", "repo"] + } + }, + "required": ["id", "number", "url", "head", "base"] + }, + "simple-commit": { + "title": "Simple Commit", + "description": "Simple Commit", + "type": "object", + "properties": { + "id": { "type": "string" }, + "tree_id": { "type": "string" }, + "message": { "type": "string" }, + "timestamp": { "type": "string", "format": "date-time" }, + "author": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "email": { "type": "string" } + }, + "required": ["name", "email"], + "nullable": true + }, + "committer": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "email": { "type": "string" } + }, + "required": ["name", "email"], + "nullable": true + } + }, + "required": [ + "id", + "tree_id", + "message", + "timestamp", + "author", + "committer" + ] + }, + "workflow-run": { + "title": "Workflow Run", + "description": "An invocation of a workflow", + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "The ID of the workflow run.", + "example": 5 + }, + "name": { + "type": "string", + "description": "The name of the workflow run.", + "example": "Build" + }, + "node_id": { "type": "string", "example": "MDEwOkNoZWNrU3VpdGU1" }, + "head_branch": { + "type": "string", + "nullable": true, + "example": "master" + }, + "head_sha": { + "description": "The SHA of the head commit that points to the version of the worflow being run.", + "example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d", + "type": "string" + }, + "run_number": { + "type": "integer", + "description": "The auto incrementing run number for the workflow run.", + "example": 106 + }, + "event": { "type": "string", "example": "push" }, + "status": { + "type": "string", + "nullable": true, + "example": "completed" + }, + "conclusion": { + "type": "string", + "nullable": true, + "example": "neutral" + }, + "workflow_id": { + "type": "integer", + "description": "The ID of the parent workflow.", + "example": 5 + }, + "url": { + "type": "string", + "description": "The URL to the workflow run.", + "example": "https://api.github.com/repos/github/hello-world/actions/runs/5" + }, + "html_url": { + "type": "string", + "example": "https://github.com/github/hello-world/suites/4" + }, + "pull_requests": { + "type": "array", + "nullable": true, + "items": { "$ref": "#/components/schemas/pull-request-minimal" } + }, + "created_at": { + "type": "string", + "nullable": true, + "format": "date-time" + }, + "updated_at": { + "type": "string", + "nullable": true, + "format": "date-time" + }, + "jobs_url": { + "description": "The URL to the jobs for the workflow run.", + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/actions/runs/5/jobs" + }, + "logs_url": { + "description": "The URL to download the logs for the workflow run.", + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/actions/runs/5/logs" + }, + "check_suite_url": { + "description": "The URL to the associated check suite.", + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/check-suites/12" + }, + "artifacts_url": { + "description": "The URL to the artifacts for the workflow run.", + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/actions/runs/5/rerun/artifacts" + }, + "cancel_url": { + "description": "The URL to cancel the workflow run.", + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/actions/runs/5/cancel" + }, + "rerun_url": { + "description": "The URL to rerun the workflow run.", + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/actions/runs/5/rerun" + }, + "workflow_url": { + "description": "The URL to the workflow.", + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/actions/workflows/main.yaml" + }, + "head_commit": { "$ref": "#/components/schemas/simple-commit" }, + "repository": { "$ref": "#/components/schemas/minimal-repository" }, + "head_repository": { + "$ref": "#/components/schemas/minimal-repository" + }, + "head_repository_id": { "type": "integer", "example": 5 } + }, + "required": [ + "id", + "node_id", + "head_branch", + "run_number", + "event", + "status", + "conclusion", + "head_sha", + "workflow_id", + "url", + "html_url", + "created_at", + "updated_at", + "head_commit", + "head_repository", + "repository", + "jobs_url", + "logs_url", + "check_suite_url", + "cancel_url", + "rerun_url", + "artifacts_url", + "workflow_url", + "pull_requests" + ] + }, + "workflow-run-usage": { + "title": "Workflow Run Usage", + "description": "Workflow Run Usage", + "type": "object", + "properties": { + "billable": { + "type": "object", + "properties": { + "UBUNTU": { + "type": "object", + "properties": { + "total_ms": { "type": "integer" }, + "jobs": { "type": "integer" } + } + }, + "MACOS": { + "type": "object", + "properties": { + "total_ms": { "type": "integer" }, + "jobs": { "type": "integer" } + } + }, + "WINDOWS": { + "type": "object", + "properties": { + "total_ms": { "type": "integer" }, + "jobs": { "type": "integer" } + } + } + } + }, + "run_duration_ms": { "type": "integer" } + } + }, + "actions-secret": { + "title": "Actions Secret", + "description": "Set secrets for GitHub Actions.", + "type": "object", + "properties": { + "name": { + "description": "The name of the secret.", + "example": "SECRET_TOKEN", + "type": "string" + }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" } + }, + "required": ["name", "created_at", "updated_at"] + }, + "workflow": { + "title": "Workflow", + "description": "A GitHub Actions workflow", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 5 }, + "node_id": { "type": "string", "example": "MDg6V29ya2Zsb3cxMg==" }, + "name": { "type": "string", "example": "CI" }, + "path": { "type": "string", "example": "ruby.yaml" }, + "state": { + "type": "string", + "example": "active", + "enum": ["active", "deleted"] + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2019-12-06T14:20:20.000Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2019-12-06T14:20:20.000Z" + }, + "url": { + "type": "string", + "example": "https://api.github.com/repos/actions/setup-ruby/workflows/5" + }, + "html_url": { + "type": "string", + "example": "https://github.com/actions/setup-ruby/blob/master/.github/workflows/ruby.yaml" + }, + "badge_url": { + "type": "string", + "example": "https://github.com/actions/setup-ruby/workflows/CI/badge.svg" + }, + "deleted_at": { + "type": "string", + "format": "date-time", + "example": "2019-12-06T14:20:20.000Z" + } + }, + "required": [ + "id", + "node_id", + "name", + "path", + "state", + "url", + "html_url", + "badge_url", + "created_at", + "updated_at" + ] + }, + "workflow-usage": { + "title": "Workflow Usage", + "description": "Workflow Usage", + "type": "object", + "properties": { + "billable": { + "type": "object", + "properties": { + "UBUNTU": { + "type": "object", + "properties": { "total_ms": { "type": "integer" } } + }, + "MACOS": { + "type": "object", + "properties": { "total_ms": { "type": "integer" } } + }, + "WINDOWS": { + "type": "object", + "properties": { "total_ms": { "type": "integer" } } + } + } + } + } + }, + "protected-branch-admin-enforced": { + "title": "Protected Branch Admin Enforced", + "description": "Protected Branch Admin Enforced", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins" + }, + "enabled": { "type": "boolean", "example": true } + }, + "required": ["url", "enabled"] + }, + "protected-branch-pull-request-review": { + "title": "Protected Branch Pull Request Review", + "description": "Protected Branch Pull Request Review", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions" + }, + "dismissal_restrictions": { + "type": "object", + "properties": { + "users": { + "description": "The list of users with review dismissal access.", + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "teams": { + "description": "The list of teams with review dismissal access.", + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + }, + "url": { + "type": "string", + "example": "\"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions\"" + }, + "users_url": { + "type": "string", + "example": "\"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions/users\"" + }, + "teams_url": { + "type": "string", + "example": "\"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions/teams\"" + } + } + }, + "dismiss_stale_reviews": { "type": "boolean", "example": true }, + "require_code_owner_reviews": { "type": "boolean", "example": true }, + "required_approving_review_count": { + "type": "integer", + "minimum": 1, + "maximum": 6, + "example": 2 + } + }, + "required": ["dismiss_stale_reviews", "require_code_owner_reviews"] + }, + "branch-restriction-policy": { + "title": "Branch Restriction Policy", + "description": "Branch Restriction Policy", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "users_url": { "type": "string", "format": "uri" }, + "teams_url": { "type": "string", "format": "uri" }, + "apps_url": { "type": "string", "format": "uri" }, + "users": { + "type": "array", + "items": { + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" } + } + } + }, + "teams": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "name": { "type": "string" }, + "slug": { "type": "string" }, + "description": { "type": "string", "nullable": true }, + "privacy": { "type": "string" }, + "permission": { "type": "string" }, + "members_url": { "type": "string" }, + "repositories_url": { "type": "string" }, + "parent": { "type": "string", "nullable": true } + } + } + }, + "apps": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "slug": { "type": "string" }, + "node_id": { "type": "string" }, + "owner": { + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "hooks_url": { "type": "string" }, + "issues_url": { "type": "string" }, + "members_url": { "type": "string" }, + "public_members_url": { "type": "string" }, + "avatar_url": { "type": "string" }, + "description": { "type": "string" }, + "gravatar_id": { "type": "string", "example": "\"\"" }, + "html_url": { + "type": "string", + "example": "\"https://github.com/testorg-ea8ec76d71c3af4b\"" + }, + "followers_url": { + "type": "string", + "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/followers\"" + }, + "following_url": { + "type": "string", + "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/following{/other_user}\"" + }, + "gists_url": { + "type": "string", + "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/gists{/gist_id}\"" + }, + "starred_url": { + "type": "string", + "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/starred{/owner}{/repo}\"" + }, + "subscriptions_url": { + "type": "string", + "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/subscriptions\"" + }, + "organizations_url": { + "type": "string", + "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/orgs\"" + }, + "received_events_url": { + "type": "string", + "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/received_events\"" + }, + "type": { "type": "string", "example": "\"Organization\"" } + } + }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "external_url": { "type": "string" }, + "html_url": { "type": "string" }, + "created_at": { "type": "string" }, + "updated_at": { "type": "string" }, + "permissions": { + "type": "object", + "properties": { + "metadata": { "type": "string" }, + "contents": { "type": "string" }, + "issues": { "type": "string" }, + "single_file": { "type": "string" } + } + }, + "events": { "type": "array", "items": { "type": "string" } } + } + } + } + }, + "required": [ + "url", + "users_url", + "teams_url", + "apps_url", + "users", + "teams", + "apps" + ] + }, + "branch-protection": { + "title": "Branch Protection", + "description": "Branch Protection", + "type": "object", + "properties": { + "url": { "type": "string" }, + "required_status_checks": { + "type": "object", + "properties": { + "url": { "type": "string" }, + "enforcement_level": { "type": "string" }, + "contexts": { "type": "array", "items": { "type": "string" } }, + "contexts_url": { "type": "string" } + }, + "required": ["enforcement_level", "contexts"] + }, + "enforce_admins": { + "$ref": "#/components/schemas/protected-branch-admin-enforced" + }, + "required_pull_request_reviews": { + "$ref": "#/components/schemas/protected-branch-pull-request-review" + }, + "restrictions": { + "$ref": "#/components/schemas/branch-restriction-policy" + }, + "required_linear_history": { + "type": "object", + "properties": { "enabled": { "type": "boolean" } } + }, + "allow_force_pushes": { + "type": "object", + "properties": { "enabled": { "type": "boolean" } } + }, + "allow_deletions": { + "type": "object", + "properties": { "enabled": { "type": "boolean" } } + }, + "enabled": { "type": "boolean" }, + "name": { "type": "string", "example": "\"branch/with/protection\"" }, + "protection_url": { + "type": "string", + "example": "\"https://api.github.com/repos/owner-79e94e2d36b3fd06a32bb213/AAA_Public_Repo/branches/branch/with/protection/protection\"" + } + }, + "required": ["enabled", "required_status_checks"] + }, + "short-branch": { + "title": "Short Branch", + "description": "Short Branch", + "type": "object", + "properties": { + "name": { "type": "string" }, + "commit": { + "type": "object", + "properties": { + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": ["sha", "url"] + }, + "protected": { "type": "boolean" }, + "protection": { "$ref": "#/components/schemas/branch-protection" }, + "protection_url": { "type": "string", "format": "uri" } + }, + "required": ["name", "commit", "protected"] + }, + "git-user": { + "title": "Git User", + "description": "Metaproperties for Git author/committer information.", + "type": "object", + "properties": { + "name": { "type": "string", "example": "\"Chris Wanstrath\"" }, + "email": { "type": "string", "example": "\"chris@ozmm.org\"" }, + "date": { + "type": "string", + "example": "\"2007-10-29T02:42:39.000-07:00\"" + } + } + }, + "verification": { + "title": "Verification", + "type": "object", + "properties": { + "verified": { "type": "boolean" }, + "reason": { "type": "string" }, + "payload": { "type": "string", "nullable": true }, + "signature": { "type": "string", "nullable": true } + }, + "required": ["verified", "reason", "payload", "signature"] + }, + "commit": { + "title": "Commit", + "description": "Commit", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "nullable": true + }, + "sha": { + "type": "string", + "example": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "nullable": true + }, + "node_id": { + "type": "string", + "example": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "comments_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments" + }, + "commit": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "author": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/git-user" }] + }, + "committer": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/git-user" }] + }, + "message": { "type": "string", "example": "Fix all the bugs" }, + "comment_count": { "type": "integer", "example": 0 }, + "tree": { + "type": "object", + "properties": { + "sha": { + "type": "string", + "example": "827efc6d56897b048c772eb4087f854f46256132" + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/tree/827efc6d56897b048c772eb4087f854f46256132" + } + }, + "required": ["sha", "url"] + }, + "verification": { "$ref": "#/components/schemas/verification" } + }, + "required": [ + "author", + "committer", + "comment_count", + "message", + "tree", + "url" + ] + }, + "author": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "committer": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "parents": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sha": { + "type": "string", + "example": "7638417db6d59f3c431d3e1f261cc637155684cd" + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/commits/7638417db6d59f3c431d3e1f261cc637155684cd" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/commit/7638417db6d59f3c431d3e1f261cc637155684cd" + } + }, + "required": ["sha", "url"] + } + }, + "stats": { + "type": "object", + "properties": { + "additions": { "type": "integer" }, + "deletions": { "type": "integer" }, + "total": { "type": "integer" } + } + }, + "files": { + "type": "array", + "items": { + "type": "object", + "properties": { + "filename": { "type": "string" }, + "additions": { "type": "integer" }, + "deletions": { "type": "integer" }, + "changes": { "type": "integer" }, + "status": { "type": "string" }, + "raw_url": { "type": "string" }, + "blob_url": { "type": "string" }, + "patch": { "type": "string" }, + "sha": { + "type": "string", + "example": "\"1e8e60ce9733d5283f7836fa602b6365a66b2567\"" + }, + "contents_url": { + "type": "string", + "example": "\"https://api.github.com/repos/owner-3d68404b07d25daeb2d4a6bf/AAA_Public_Repo/contents/geometry.js?ref=c3956841a7cb7e8ba4a6fd923568d86958f01573\"" + }, + "previous_filename": { + "type": "string", + "example": "\"subdir/before_name.txt\"" + } + } + } + } + }, + "required": [ + "url", + "sha", + "node_id", + "html_url", + "comments_url", + "commit", + "author", + "committer", + "parents" + ] + }, + "branch-with-protection": { + "title": "Branch With Protection", + "description": "Branch With Protection", + "type": "object", + "properties": { + "name": { "type": "string" }, + "commit": { "$ref": "#/components/schemas/commit" }, + "_links": { + "type": "object", + "properties": { + "html": { "type": "string" }, + "self": { "type": "string", "format": "uri" } + }, + "required": ["html", "self"] + }, + "protected": { "type": "boolean" }, + "protection": { "$ref": "#/components/schemas/branch-protection" }, + "protection_url": { "type": "string", "format": "uri" }, + "pattern": { "type": "string", "example": "\"mas*\"" }, + "required_approving_review_count": { + "type": "integer", + "example": "0" + } + }, + "required": [ + "name", + "commit", + "_links", + "protection", + "protected", + "protection_url" + ] + }, + "status-check-policy": { + "title": "Status Check Policy", + "description": "Status Check Policy", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks" + }, + "strict": { "type": "boolean", "example": true }, + "contexts": { + "type": "array", + "example": ["continuous-integration/travis-ci"], + "items": { "type": "string" } + }, + "contexts_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks/contexts" + } + }, + "required": ["url", "contexts_url", "strict", "contexts"] + }, + "protected-branch": { + "title": "Protected Branch", + "description": "Branch protections protect branches", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "required_status_checks": { + "$ref": "#/components/schemas/status-check-policy" + }, + "required_pull_request_reviews": { + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "dismiss_stale_reviews": { "type": "boolean" }, + "require_code_owner_reviews": { "type": "boolean" }, + "required_approving_review_count": { "type": "integer" }, + "dismissal_restrictions": { + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "users_url": { "type": "string", "format": "uri" }, + "teams_url": { "type": "string", "format": "uri" }, + "users": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" } + }, + "teams": { + "type": "array", + "items": { "$ref": "#/components/schemas/team" } + } + }, + "required": ["url", "users_url", "teams_url", "users", "teams"] + } + }, + "required": ["url"] + }, + "required_signatures": { + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures" + }, + "enabled": { "type": "boolean", "example": true } + }, + "required": ["url", "enabled"] + }, + "enforce_admins": { + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "enabled": { "type": "boolean" } + }, + "additionalProperties": false, + "required": ["url", "enabled"] + }, + "required_linear_history": { + "type": "object", + "properties": { "enabled": { "type": "boolean" } }, + "additionalProperties": false, + "required": ["enabled"] + }, + "allow_force_pushes": { + "type": "object", + "properties": { "enabled": { "type": "boolean" } }, + "additionalProperties": false, + "required": ["enabled"] + }, + "allow_deletions": { + "type": "object", + "properties": { "enabled": { "type": "boolean" } }, + "additionalProperties": false, + "required": ["enabled"] + }, + "restrictions": { + "$ref": "#/components/schemas/branch-restriction-policy" + } + }, + "required": ["url"] + }, + "check-run": { + "title": "CheckRun", + "description": "A check performed on the code of a given code change", + "type": "object", + "properties": { + "id": { + "description": "The id of the check.", + "example": 21, + "type": "integer" + }, + "head_sha": { + "description": "The SHA of the commit that is being checked.", + "example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d", + "type": "string" + }, + "node_id": { "type": "string", "example": "MDg6Q2hlY2tSdW40" }, + "external_id": { "type": "string", "example": "", "nullable": true }, + "url": { + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/check-runs/4" + }, + "html_url": { + "type": "string", + "example": "https://github.com/github/hello-world/runs/4", + "nullable": true + }, + "details_url": { + "type": "string", + "example": "https://example.com", + "nullable": true + }, + "status": { + "description": "The phase of the lifecycle that the check is currently in.", + "example": "queued", + "type": "string", + "enum": ["queued", "in_progress", "completed"] + }, + "conclusion": { + "type": "string", + "example": "neutral", + "nullable": true + }, + "started_at": { + "type": "string", + "format": "date-time", + "example": "2018-05-04T01:14:52Z", + "nullable": true + }, + "completed_at": { + "type": "string", + "format": "date-time", + "example": "2018-05-04T01:14:52Z", + "nullable": true + }, + "output": { + "type": "object", + "properties": { + "title": { "type": "string", "nullable": true }, + "summary": { "type": "string", "nullable": true }, + "text": { "type": "string", "nullable": true }, + "annotations_count": { "type": "integer" }, + "annotations_url": { "type": "string", "format": "uri" } + }, + "required": [ + "title", + "summary", + "text", + "annotations_count", + "annotations_url" + ] + }, + "name": { + "description": "The name of the check.", + "example": "test-coverage", + "type": "string" + }, + "check_suite": { + "type": "object", + "properties": { "id": { "type": "integer" } }, + "required": ["id"], + "nullable": true + }, + "app": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/integration" }] + }, + "pull_requests": { + "items": { "$ref": "#/components/schemas/pull-request-minimal" } + } + }, + "required": [ + "id", + "node_id", + "head_sha", + "name", + "url", + "html_url", + "details_url", + "status", + "conclusion", + "started_at", + "completed_at", + "external_id", + "check_suite", + "output", + "app", + "pull_requests" + ] + }, + "check-annotation": { + "title": "Check Annotation", + "description": "Check Annotation", + "type": "object", + "properties": { + "path": { "type": "string", "example": "README.md" }, + "start_line": { "type": "integer", "example": 2 }, + "end_line": { "type": "integer", "example": 2 }, + "start_column": { "type": "integer", "example": 5, "nullable": true }, + "end_column": { "type": "integer", "example": 10, "nullable": true }, + "annotation_level": { + "type": "string", + "example": "warning", + "nullable": true + }, + "title": { + "type": "string", + "example": "Spell Checker", + "nullable": true + }, + "message": { + "type": "string", + "example": "Check your spelling for 'banaas'.", + "nullable": true + }, + "raw_details": { + "type": "string", + "example": "Do you mean 'bananas' or 'banana'?", + "nullable": true + }, + "blob_href": { "type": "string" } + }, + "required": [ + "path", + "blob_href", + "start_line", + "end_line", + "start_column", + "end_column", + "annotation_level", + "title", + "message", + "raw_details" + ] + }, + "check-suite": { + "title": "CheckSuite", + "description": "A suite of checks performed on the code of a given code change", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 5 }, + "node_id": { "type": "string", "example": "MDEwOkNoZWNrU3VpdGU1" }, + "head_branch": { + "type": "string", + "example": "master", + "nullable": true + }, + "head_sha": { + "description": "The SHA of the head commit that is being checked.", + "example": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d", + "type": "string" + }, + "status": { + "type": "string", + "example": "completed", + "nullable": true + }, + "conclusion": { + "type": "string", + "example": "neutral", + "nullable": true + }, + "url": { + "type": "string", + "example": "https://api.github.com/repos/github/hello-world/check-suites/5", + "nullable": true + }, + "before": { + "type": "string", + "example": "146e867f55c26428e5f9fade55a9bbf5e95a7912", + "nullable": true + }, + "after": { + "type": "string", + "example": "d6fde92930d4715a2b49857d24b940956b26d2d3", + "nullable": true + }, + "pull_requests": { + "type": "array", + "items": { "$ref": "#/components/schemas/pull-request-minimal" }, + "nullable": true + }, + "app": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/integration" }] + }, + "repository": { "$ref": "#/components/schemas/minimal-repository" }, + "created_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "updated_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "head_commit": { "$ref": "#/components/schemas/simple-commit" }, + "latest_check_runs_count": { "type": "integer" }, + "check_runs_url": { "type": "string" } + }, + "required": [ + "id", + "node_id", + "head_branch", + "status", + "conclusion", + "head_sha", + "url", + "before", + "after", + "created_at", + "updated_at", + "app", + "head_commit", + "repository", + "latest_check_runs_count", + "check_runs_url", + "pull_requests" + ] + }, + "check-suite-preference": { + "title": "Check Suite Preference", + "description": "Check suite configuration preferences for a repository.", + "type": "object", + "properties": { + "preferences": { + "type": "object", + "properties": { + "auto_trigger_checks": { + "type": "array", + "items": { + "type": "object", + "properties": { + "app_id": { "type": "integer" }, + "setting": { "type": "boolean" } + }, + "required": ["app_id", "setting"] + } + } + } + }, + "repository": { "$ref": "#/components/schemas/repository" } + } + }, + "code-scanning-alert-state": { + "type": "string", + "description": "State of a code scanning alert.", + "enum": ["open", "dismissed", "fixed"] + }, + "code-scanning-alert-ref": { + "type": "string", + "description": "The full Git reference, formatted as `refs/heads/`." + }, + "code-scanning-alert-number": { + "type": "integer", + "description": "The code scanning alert number.", + "readOnly": true, + "nullable": false + }, + "code-scanning-alert-created-at": { + "type": "string", + "description": "The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + "format": "date-time", + "readOnly": true, + "nullable": false + }, + "code-scanning-alert-url": { + "type": "string", + "description": "The REST API URL of the alert resource.", + "format": "uri", + "readOnly": true, + "nullable": false + }, + "code-scanning-alert-html-url": { + "type": "string", + "description": "The GitHub URL of the alert resource.", + "format": "uri", + "readOnly": true, + "nullable": false + }, + "code-scanning-alert-dismissed-at": { + "type": "string", + "description": "The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + "format": "date-time", + "readOnly": true, + "nullable": true + }, + "code-scanning-alert-dismissed-reason": { + "type": "string", + "description": "**Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.", + "nullable": true, + "oneOf": [ + { "enum": ["false positive", "won't fix", "used in tests"] }, + { "enum": [null] } + ] + }, + "code-scanning-alert-rule": { + "type": "object", + "properties": { + "id": { + "nullable": true, + "type": "string", + "description": "A unique identifier for the rule used to detect the alert." + }, + "severity": { + "nullable": true, + "type": "string", + "description": "The severity of the alert.", + "enum": ["none", "note", "warning", "error"] + }, + "description": { + "type": "string", + "description": "A short description of the rule used to detect the alert." + } + } + }, + "code-scanning-analysis-tool-name": { + "type": "string", + "description": "The name of the tool used to generate the code scanning analysis alert." + }, + "code-scanning-analysis-tool": { + "type": "object", + "properties": { + "name": { + "$ref": "#/components/schemas/code-scanning-analysis-tool-name" + }, + "version": { + "nullable": true, + "type": "string", + "description": "The version of the tool used to detect the alert." + } + } + }, + "code-scanning-alert-code-scanning-alert-items": { + "type": "object", + "properties": { + "number": { + "$ref": "#/components/schemas/code-scanning-alert-number" + }, + "created_at": { + "$ref": "#/components/schemas/code-scanning-alert-created-at" + }, + "url": { "$ref": "#/components/schemas/code-scanning-alert-url" }, + "html_url": { + "$ref": "#/components/schemas/code-scanning-alert-html-url" + }, + "state": { "$ref": "#/components/schemas/code-scanning-alert-state" }, + "dismissed_by": { "$ref": "#/components/schemas/simple-user" }, + "dismissed_at": { + "$ref": "#/components/schemas/code-scanning-alert-dismissed-at" + }, + "dismissed_reason": { + "$ref": "#/components/schemas/code-scanning-alert-dismissed-reason" + }, + "rule": { "$ref": "#/components/schemas/code-scanning-alert-rule" }, + "tool": { "$ref": "#/components/schemas/code-scanning-analysis-tool" } + } + }, + "code-scanning-analysis-analysis-key": { + "type": "string", + "description": "Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name." + }, + "code-scanning-alert-environment": { + "type": "string", + "description": "Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed." + }, + "code-scanning-alert-instances": { + "nullable": true, + "type": "array", + "items": { + "properties": { + "ref": { "$ref": "#/components/schemas/code-scanning-alert-ref" }, + "analysis_key": { + "$ref": "#/components/schemas/code-scanning-analysis-analysis-key" + }, + "environment": { + "$ref": "#/components/schemas/code-scanning-alert-environment" + }, + "matrix_vars": { "nullable": true, "type": "string" }, + "state": { + "$ref": "#/components/schemas/code-scanning-alert-state" + } + } + } + }, + "code-scanning-alert-code-scanning-alert": { + "type": "object", + "properties": { + "number": { + "$ref": "#/components/schemas/code-scanning-alert-number" + }, + "created_at": { + "$ref": "#/components/schemas/code-scanning-alert-created-at" + }, + "url": { "$ref": "#/components/schemas/code-scanning-alert-url" }, + "html_url": { + "$ref": "#/components/schemas/code-scanning-alert-html-url" + }, + "instances": { + "$ref": "#/components/schemas/code-scanning-alert-instances" + }, + "state": { "$ref": "#/components/schemas/code-scanning-alert-state" }, + "dismissed_by": { "$ref": "#/components/schemas/simple-user" }, + "dismissed_at": { + "$ref": "#/components/schemas/code-scanning-alert-dismissed-at" + }, + "dismissed_reason": { + "$ref": "#/components/schemas/code-scanning-alert-dismissed-reason" + }, + "rule": { "$ref": "#/components/schemas/code-scanning-alert-rule" }, + "tool": { "$ref": "#/components/schemas/code-scanning-analysis-tool" } + } + }, + "code-scanning-alert-set-state": { + "description": "Sets the state of the code scanning alert. Can be one of `open` or `dismissed`. You must provide `dismissed_reason` when you set the state to `dismissed`.", + "type": "string", + "enum": ["open", "dismissed"] + }, + "code-scanning-analysis-ref": { + "type": "string", + "description": "The full Git reference of the code scanning analysis file, formatted as `refs/heads/`." + }, + "code-scanning-analysis-commit-sha": { + "description": "The commit SHA of the code scanning analysis file.", + "type": "string", + "minLength": 40, + "maxLength": 40, + "pattern": "^[0-9a-fA-F]+$" + }, + "code-scanning-analysis-created-at": { + "type": "string", + "description": "The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.", + "format": "date-time", + "readOnly": true, + "nullable": false + }, + "code-scanning-analysis-environment": { + "type": "string", + "description": "Identifies the variable values associated with the environment in which this analysis was performed." + }, + "code-scanning-analysis-code-scanning-analysis": { + "type": "object", + "properties": { + "commit_sha": { + "$ref": "#/components/schemas/code-scanning-analysis-commit-sha" + }, + "ref": { "$ref": "#/components/schemas/code-scanning-analysis-ref" }, + "analysis_key": { + "$ref": "#/components/schemas/code-scanning-analysis-analysis-key" + }, + "created_at": { + "$ref": "#/components/schemas/code-scanning-analysis-created-at" + }, + "tool_name": { + "$ref": "#/components/schemas/code-scanning-analysis-tool-name" + }, + "error": { "type": "string", "example": "error reading field xyz" }, + "environment": { + "$ref": "#/components/schemas/code-scanning-analysis-environment" + } + } + }, + "code-scanning-analysis-sarif-file": { + "description": "A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string.", + "type": "string" + }, + "collaborator": { + "title": "Collaborator", + "description": "Collaborator", + "type": "object", + "properties": { + "login": { "type": "string", "example": "octocat" }, + "id": { "type": "integer", "example": 1 }, + "node_id": { "type": "string", "example": "MDQ6VXNlcjE=" }, + "avatar_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/images/error/octocat_happy.gif" + }, + "gravatar_id": { "type": "string", "example": "", "nullable": true }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat" + }, + "followers_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/followers" + }, + "following_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/following{/other_user}" + }, + "gists_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/gists{/gist_id}" + }, + "starred_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/starred{/owner}{/repo}" + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/subscriptions" + }, + "organizations_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/orgs" + }, + "repos_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/repos" + }, + "events_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/events{/privacy}" + }, + "received_events_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/received_events" + }, + "type": { "type": "string", "example": "User" }, + "site_admin": { "type": "boolean" }, + "permissions": { + "type": "object", + "properties": { + "pull": { "type": "boolean" }, + "push": { "type": "boolean" }, + "admin": { "type": "boolean" } + }, + "required": ["pull", "push", "admin"] + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + }, + "repository-invitation": { + "title": "Repository Invitation", + "description": "Repository invitations let you manage who you collaborate with.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the repository invitation.", + "example": 42, + "type": "integer" + }, + "repository": { "$ref": "#/components/schemas/minimal-repository" }, + "invitee": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "inviter": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "permissions": { + "description": "The permission associated with the invitation.", + "example": "read", + "type": "string", + "enum": ["read", "write", "admin"] + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2016-06-13T14:52:50-05:00" + }, + "url": { + "description": "URL for the repository invitation", + "example": "https://api.github.com/user/repository-invitations/1", + "type": "string" + }, + "html_url": { + "type": "string", + "example": "https://github.com/octocat/Hello-World/invitations" + }, + "node_id": { "type": "string" } + }, + "required": [ + "id", + "node_id", + "permissions", + "inviter", + "invitee", + "repository", + "url", + "html_url", + "created_at" + ] + }, + "commit-comment": { + "title": "Commit Comment", + "description": "Commit Comment", + "type": "object", + "properties": { + "html_url": { "type": "string", "format": "uri" }, + "url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "body": { "type": "string" }, + "path": { "type": "string", "nullable": true }, + "position": { "type": "integer", "nullable": true }, + "line": { "type": "integer", "nullable": true }, + "commit_id": { "type": "string" }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "author_association": { "type": "string" }, + "reactions": { "$ref": "#/components/schemas/reaction-rollup" } + }, + "required": [ + "url", + "html_url", + "id", + "node_id", + "user", + "position", + "line", + "path", + "commit_id", + "body", + "author_association", + "created_at", + "updated_at" + ] + }, + "scim-error": { + "title": "Scim Error", + "description": "Scim Error", + "type": "object", + "properties": { + "message": { "type": "string", "nullable": true }, + "documentation_url": { "type": "string", "nullable": true }, + "detail": { "type": "string", "nullable": true }, + "status": { "type": "integer" }, + "scimType": { "type": "string", "nullable": true }, + "schemas": { "type": "array", "items": { "type": "string" } } + } + }, + "branch-short": { + "title": "Branch Short", + "description": "Branch Short", + "type": "object", + "properties": { + "name": { "type": "string" }, + "commit": { + "type": "object", + "properties": { + "sha": { "type": "string" }, + "url": { "type": "string" } + } + }, + "protected": { "type": "boolean" } + } + }, + "link": { + "title": "Link", + "description": "Hypermedia Link", + "type": "object", + "properties": { "href": { "type": "string" } }, + "required": ["href"] + }, + "pull-request-simple": { + "title": "Pull Request Simple", + "description": "Pull Request Simple", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347" + }, + "id": { "type": "integer", "example": 1 }, + "node_id": { + "type": "string", + "example": "MDExOlB1bGxSZXF1ZXN0MQ==" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/pull/1347" + }, + "diff_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/pull/1347.diff" + }, + "patch_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/pull/1347.patch" + }, + "issue_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/issues/1347" + }, + "commits_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits" + }, + "review_comments_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments" + }, + "review_comment_url": { + "type": "string", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}" + }, + "comments_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments" + }, + "statuses_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "number": { "type": "integer", "example": 1347 }, + "state": { "type": "string", "example": "open" }, + "locked": { "type": "boolean", "example": true }, + "title": { "type": "string", "example": "new-feature" }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "body": { + "type": "string", + "example": "Please pull these awesome changes", + "nullable": true + }, + "labels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "name": { "type": "string" }, + "description": { "type": "string" }, + "color": { "type": "string" }, + "default": { "type": "boolean" } + } + } + }, + "milestone": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/milestone" }] + }, + "active_lock_reason": { + "type": "string", + "example": "too heated", + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z" + }, + "closed_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z", + "nullable": true + }, + "merged_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z", + "nullable": true + }, + "merge_commit_sha": { + "type": "string", + "example": "e5bd3914e2e596debea16f433f57875b5b90bcd6", + "nullable": true + }, + "assignee": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "assignees": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" }, + "nullable": true + }, + "requested_reviewers": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" }, + "nullable": true + }, + "requested_teams": { + "type": "array", + "items": { "$ref": "#/components/schemas/team-simple" }, + "nullable": true + }, + "head": { + "type": "object", + "properties": { + "label": { "type": "string" }, + "ref": { "type": "string" }, + "repo": { "$ref": "#/components/schemas/repository" }, + "sha": { "type": "string" }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + } + }, + "required": ["label", "ref", "repo", "sha", "user"] + }, + "base": { + "type": "object", + "properties": { + "label": { "type": "string" }, + "ref": { "type": "string" }, + "repo": { "$ref": "#/components/schemas/repository" }, + "sha": { "type": "string" }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + } + }, + "required": ["label", "ref", "repo", "sha", "user"] + }, + "_links": { + "type": "object", + "properties": { + "comments": { "$ref": "#/components/schemas/link" }, + "commits": { "$ref": "#/components/schemas/link" }, + "statuses": { "$ref": "#/components/schemas/link" }, + "html": { "$ref": "#/components/schemas/link" }, + "issue": { "$ref": "#/components/schemas/link" }, + "review_comments": { "$ref": "#/components/schemas/link" }, + "review_comment": { "$ref": "#/components/schemas/link" }, + "self": { "$ref": "#/components/schemas/link" } + }, + "required": [ + "comments", + "commits", + "statuses", + "html", + "issue", + "review_comments", + "review_comment", + "self" + ] + }, + "author_association": { "type": "string", "example": "OWNER" }, + "draft": { + "description": "Indicates whether or not the pull request is a draft.", + "example": false, + "type": "boolean" + } + }, + "required": [ + "_links", + "assignee", + "labels", + "base", + "body", + "closed_at", + "comments_url", + "commits_url", + "created_at", + "diff_url", + "head", + "html_url", + "id", + "node_id", + "issue_url", + "merge_commit_sha", + "merged_at", + "milestone", + "number", + "patch_url", + "review_comment_url", + "review_comments_url", + "statuses_url", + "state", + "locked", + "title", + "updated_at", + "url", + "user", + "author_association" + ] + }, + "simple-commit-status": { + "title": "Simple Commit Status", + "type": "object", + "properties": { + "description": { "type": "string", "nullable": true }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "state": { "type": "string" }, + "context": { "type": "string" }, + "target_url": { "type": "string", "format": "uri" }, + "required": { "type": "boolean", "nullable": true }, + "avatar_url": { "type": "string", "nullable": true, "format": "uri" }, + "url": { "type": "string", "format": "uri" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" } + }, + "required": [ + "description", + "id", + "node_id", + "state", + "context", + "target_url", + "avatar_url", + "url", + "created_at", + "updated_at" + ] + }, + "combined-commit-status": { + "title": "Combined Commit Status", + "description": "Combined Commit Status", + "type": "object", + "properties": { + "state": { "type": "string" }, + "statuses": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-commit-status" } + }, + "sha": { "type": "string" }, + "total_count": { "type": "integer" }, + "repository": { "$ref": "#/components/schemas/minimal-repository" }, + "commit_url": { "type": "string", "format": "uri" }, + "url": { "type": "string", "format": "uri" } + }, + "required": [ + "state", + "sha", + "total_count", + "statuses", + "repository", + "commit_url", + "url" + ] + }, + "status": { + "title": "Status", + "description": "The status of a commit.", + "type": "object", + "properties": { + "url": { "type": "string" }, + "avatar_url": { "type": "string", "nullable": true }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "state": { "type": "string" }, + "description": { "type": "string" }, + "target_url": { "type": "string" }, + "context": { "type": "string" }, + "created_at": { "type": "string" }, + "updated_at": { "type": "string" }, + "creator": { "$ref": "#/components/schemas/simple-user" } + } + }, + "code-of-conduct-simple": { + "title": "Code Of Conduct Simple", + "description": "Code of Conduct Simple", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/codes_of_conduct/citizen_code_of_conduct" + }, + "key": { "type": "string", "example": "citizen_code_of_conduct" }, + "name": { "type": "string", "example": "Citizen Code of Conduct" }, + "html_url": { "type": "string", "nullable": true, "format": "uri" } + }, + "required": ["url", "key", "name", "html_url"] + }, + "community-health-file": { + "title": "Community Health File", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" } + }, + "required": ["url", "html_url"] + }, + "community-profile": { + "title": "Community Profile", + "description": "Community Profile", + "type": "object", + "properties": { + "health_percentage": { "type": "integer", "example": 100 }, + "description": { + "type": "string", + "example": "My first repository on GitHub!", + "nullable": true + }, + "documentation": { + "type": "string", + "example": "example.com", + "nullable": true + }, + "files": { + "type": "object", + "properties": { + "code_of_conduct": { + "nullable": true, + "allOf": [ + { "$ref": "#/components/schemas/code-of-conduct-simple" } + ] + }, + "license": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/license-simple" }] + }, + "contributing": { + "nullable": true, + "allOf": [ + { "$ref": "#/components/schemas/community-health-file" } + ] + }, + "readme": { + "nullable": true, + "allOf": [ + { "$ref": "#/components/schemas/community-health-file" } + ] + }, + "issue_template": { + "nullable": true, + "allOf": [ + { "$ref": "#/components/schemas/community-health-file" } + ] + }, + "pull_request_template": { + "nullable": true, + "allOf": [ + { "$ref": "#/components/schemas/community-health-file" } + ] + } + }, + "required": [ + "code_of_conduct", + "license", + "contributing", + "readme", + "issue_template", + "pull_request_template" + ] + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2017-02-28T19:09:29Z", + "nullable": true + }, + "content_reports_enabled": { "type": "boolean", "example": true } + }, + "required": [ + "health_percentage", + "description", + "documentation", + "files", + "updated_at" + ] + }, + "diff-entry": { + "title": "Diff Entry", + "description": "Diff Entry", + "type": "object", + "properties": { + "sha": { + "type": "string", + "example": "bbcd538c8e72b8c175046e27cc8f907076331401" + }, + "filename": { "type": "string", "example": "file1.txt" }, + "status": { "type": "string", "example": "added" }, + "additions": { "type": "integer", "example": 103 }, + "deletions": { "type": "integer", "example": 21 }, + "changes": { "type": "integer", "example": 124 }, + "blob_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt" + }, + "raw_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt" + }, + "contents_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "patch": { + "type": "string", + "example": "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test" + }, + "previous_filename": { "type": "string", "example": "file.txt" } + }, + "required": [ + "additions", + "blob_url", + "changes", + "contents_url", + "deletions", + "filename", + "raw_url", + "sha", + "status" + ] + }, + "commit-comparison": { + "title": "Commit Comparison", + "description": "Commit Comparison", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/compare/master...topic" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/compare/master...topic" + }, + "permalink_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/compare/octocat:bbcd538c8e72b8c175046e27cc8f907076331401...octocat:0328041d1152db8ae77652d1618a02e57f745f17" + }, + "diff_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/compare/master...topic.diff" + }, + "patch_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/compare/master...topic.patch" + }, + "base_commit": { "$ref": "#/components/schemas/commit" }, + "merge_base_commit": { "$ref": "#/components/schemas/commit" }, + "status": { + "type": "string", + "enum": ["diverged", "ahead", "behind", "identical"], + "example": "ahead" + }, + "ahead_by": { "type": "integer", "example": 4 }, + "behind_by": { "type": "integer", "example": 5 }, + "total_commits": { "type": "integer", "example": 6 }, + "commits": { + "type": "array", + "items": { "$ref": "#/components/schemas/commit" } + }, + "files": { + "type": "array", + "items": { "$ref": "#/components/schemas/diff-entry" } + } + }, + "required": [ + "url", + "html_url", + "permalink_url", + "diff_url", + "patch_url", + "base_commit", + "merge_base_commit", + "status", + "ahead_by", + "behind_by", + "total_commits", + "commits", + "files" + ] + }, + "content-tree": { + "title": "Content Tree", + "description": "Content Tree", + "type": "object", + "properties": { + "type": { "type": "string" }, + "size": { "type": "integer" }, + "name": { "type": "string" }, + "path": { "type": "string" }, + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "git_url": { "type": "string", "format": "uri", "nullable": true }, + "html_url": { "type": "string", "format": "uri", "nullable": true }, + "download_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "entries": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string" }, + "size": { "type": "integer" }, + "name": { "type": "string" }, + "path": { "type": "string" }, + "content": { "type": "string" }, + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "git_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "html_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "download_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "_links": { + "type": "object", + "properties": { + "git": { + "type": "string", + "format": "uri", + "nullable": true + }, + "html": { + "type": "string", + "format": "uri", + "nullable": true + }, + "self": { "type": "string", "format": "uri" } + }, + "required": ["git", "html", "self"] + } + }, + "required": [ + "_links", + "git_url", + "html_url", + "download_url", + "name", + "path", + "sha", + "size", + "type", + "url" + ] + } + }, + "_links": { + "type": "object", + "properties": { + "git": { "type": "string", "format": "uri", "nullable": true }, + "html": { "type": "string", "format": "uri", "nullable": true }, + "self": { "type": "string", "format": "uri" } + }, + "required": ["git", "html", "self"] + } + }, + "required": [ + "_links", + "git_url", + "html_url", + "download_url", + "name", + "path", + "sha", + "size", + "type", + "url", + "content", + "encoding" + ] + }, + "content-directory": { + "title": "Content Directory", + "description": "A list of directory items", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { "type": "string" }, + "size": { "type": "integer" }, + "name": { "type": "string" }, + "path": { "type": "string" }, + "content": { "type": "string" }, + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "git_url": { "type": "string", "format": "uri", "nullable": true }, + "html_url": { "type": "string", "format": "uri", "nullable": true }, + "download_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "_links": { + "type": "object", + "properties": { + "git": { "type": "string", "format": "uri", "nullable": true }, + "html": { "type": "string", "format": "uri", "nullable": true }, + "self": { "type": "string", "format": "uri" } + }, + "required": ["git", "html", "self"] + } + }, + "required": [ + "_links", + "git_url", + "html_url", + "download_url", + "name", + "path", + "sha", + "size", + "type", + "url" + ] + } + }, + "content-file": { + "title": "Content File", + "description": "Content File", + "type": "object", + "properties": { + "type": { "type": "string" }, + "encoding": { "type": "string" }, + "size": { "type": "integer" }, + "name": { "type": "string" }, + "path": { "type": "string" }, + "content": { "type": "string" }, + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "git_url": { "type": "string", "format": "uri", "nullable": true }, + "html_url": { "type": "string", "format": "uri", "nullable": true }, + "download_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "_links": { + "type": "object", + "properties": { + "git": { "type": "string", "format": "uri", "nullable": true }, + "html": { "type": "string", "format": "uri", "nullable": true }, + "self": { "type": "string", "format": "uri" } + }, + "required": ["git", "html", "self"] + }, + "target": { "type": "string", "example": "\"actual/actual.md\"" }, + "submodule_git_url": { + "type": "string", + "example": "\"git://example.com/defunkt/dotjs.git\"" + } + }, + "required": [ + "_links", + "git_url", + "html_url", + "download_url", + "name", + "path", + "sha", + "size", + "type", + "url", + "content", + "encoding" + ] + }, + "content-symlink": { + "title": "Symlink Content", + "description": "An object describing a symlink", + "type": "object", + "properties": { + "type": { "type": "string" }, + "target": { "type": "string" }, + "size": { "type": "integer" }, + "name": { "type": "string" }, + "path": { "type": "string" }, + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "git_url": { "type": "string", "format": "uri", "nullable": true }, + "html_url": { "type": "string", "format": "uri", "nullable": true }, + "download_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "_links": { + "type": "object", + "properties": { + "git": { "type": "string", "format": "uri", "nullable": true }, + "html": { "type": "string", "format": "uri", "nullable": true }, + "self": { "type": "string", "format": "uri" } + }, + "required": ["git", "html", "self"] + } + }, + "required": [ + "_links", + "git_url", + "html_url", + "download_url", + "name", + "path", + "sha", + "size", + "type", + "url", + "target" + ] + }, + "content-submodule": { + "title": "Symlink Content", + "description": "An object describing a symlink", + "type": "object", + "properties": { + "type": { "type": "string" }, + "submodule_git_url": { "type": "string", "format": "uri" }, + "size": { "type": "integer" }, + "name": { "type": "string" }, + "path": { "type": "string" }, + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "git_url": { "type": "string", "format": "uri", "nullable": true }, + "html_url": { "type": "string", "format": "uri", "nullable": true }, + "download_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "_links": { + "type": "object", + "properties": { + "git": { "type": "string", "format": "uri", "nullable": true }, + "html": { "type": "string", "format": "uri", "nullable": true }, + "self": { "type": "string", "format": "uri" } + }, + "required": ["git", "html", "self"] + } + }, + "required": [ + "_links", + "git_url", + "html_url", + "download_url", + "name", + "path", + "sha", + "size", + "type", + "url", + "submodule_git_url" + ] + }, + "file-commit": { + "title": "File Commit", + "description": "File Commit", + "type": "object", + "properties": { + "content": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "path": { "type": "string" }, + "sha": { "type": "string" }, + "size": { "type": "integer" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "git_url": { "type": "string" }, + "download_url": { "type": "string" }, + "type": { "type": "string" }, + "_links": { + "type": "object", + "properties": { + "self": { "type": "string" }, + "git": { "type": "string" }, + "html": { "type": "string" } + } + } + }, + "nullable": true + }, + "commit": { + "type": "object", + "properties": { + "sha": { "type": "string" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "author": { + "type": "object", + "properties": { + "date": { "type": "string" }, + "name": { "type": "string" }, + "email": { "type": "string" } + } + }, + "committer": { + "type": "object", + "properties": { + "date": { "type": "string" }, + "name": { "type": "string" }, + "email": { "type": "string" } + } + }, + "message": { "type": "string" }, + "tree": { + "type": "object", + "properties": { + "url": { "type": "string" }, + "sha": { "type": "string" } + } + }, + "parents": { + "type": "array", + "items": { + "type": "object", + "properties": { + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "sha": { "type": "string" } + } + } + }, + "verification": { + "type": "object", + "properties": { + "verified": { "type": "boolean" }, + "reason": { "type": "string" }, + "signature": { "type": "string", "nullable": true }, + "payload": { "type": "string", "nullable": true } + } + } + } + } + } + }, + "contributor": { + "title": "Contributor", + "description": "Contributor", + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string", "format": "uri" }, + "gravatar_id": { "type": "string", "nullable": true }, + "url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "followers_url": { "type": "string", "format": "uri" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string", "format": "uri" }, + "organizations_url": { "type": "string", "format": "uri" }, + "repos_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string", "format": "uri" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "contributions": { "type": "integer" }, + "email": { "type": "string" }, + "name": { "type": "string" } + }, + "required": ["contributions", "type"] + }, + "deployment": { + "title": "Deployment", + "description": "A request for a specific ref(branch,sha,tag) to be deployed", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/example/deployments/1" + }, + "id": { + "description": "Unique identifier of the deployment", + "example": 42, + "type": "integer" + }, + "node_id": { "type": "string", "example": "MDEwOkRlcGxveW1lbnQx" }, + "sha": { + "type": "string", + "example": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d" + }, + "ref": { + "description": "The ref to deploy. This can be a branch, tag, or sha.", + "example": "topic-branch", + "type": "string" + }, + "task": { + "description": "Parameter to specify a task to execute", + "example": "deploy", + "type": "string" + }, + "payload": { "type": "object", "properties": {} }, + "original_environment": { "type": "string", "example": "staging" }, + "environment": { + "description": "Name for the target deployment environment.", + "example": "production", + "type": "string" + }, + "description": { + "type": "string", + "example": "Deploy request from hubot", + "nullable": true + }, + "creator": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2012-07-20T01:19:13Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2012-07-20T01:19:13Z" + }, + "statuses_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/example/deployments/1/statuses" + }, + "repository_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/example" + }, + "transient_environment": { + "description": "Specifies if the given environment is will no longer exist at some point in the future. Default: false.", + "example": true, + "type": "boolean" + }, + "production_environment": { + "description": "Specifies if the given environment is one that end-users directly interact with. Default: false.", + "example": true, + "type": "boolean" + }, + "performed_via_github_app": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/integration" }] + } + }, + "required": [ + "id", + "node_id", + "sha", + "ref", + "task", + "environment", + "creator", + "payload", + "description", + "statuses_url", + "repository_url", + "url", + "created_at", + "updated_at" + ] + }, + "deployment-status": { + "title": "Deployment Status", + "description": "The status of a deployment.", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/example/deployments/42/statuses/1" + }, + "id": { "type": "integer", "example": 1 }, + "node_id": { + "type": "string", + "example": "MDE2OkRlcGxveW1lbnRTdGF0dXMx" + }, + "state": { + "description": "The state of the status.", + "enum": [ + "error", + "failure", + "inactive", + "pending", + "success", + "queued", + "in_progress" + ], + "example": "success", + "type": "string" + }, + "creator": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "description": { + "description": "A short description of the status.", + "default": "", + "type": "string", + "maxLength": 140, + "example": "Deployment finished successfully." + }, + "environment": { + "description": "The environment of the deployment that the status is for.", + "default": "", + "type": "string", + "example": "production" + }, + "target_url": { + "description": "Deprecated: the URL to associate with this status.", + "default": "", + "type": "string", + "format": "uri", + "example": "https://example.com/deployment/42/output" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2012-07-20T01:19:13Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2012-07-20T01:19:13Z" + }, + "deployment_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/example/deployments/42" + }, + "repository_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/example" + }, + "environment_url": { + "description": "The URL for accessing your environment.", + "default": "", + "type": "string", + "format": "uri", + "example": "" + }, + "log_url": { + "description": "The URL to associate with this status.", + "default": "", + "type": "string", + "format": "uri", + "example": "https://example.com/deployment/42/output" + }, + "performed_via_github_app": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/integration" }] + } + }, + "required": [ + "id", + "node_id", + "state", + "creator", + "description", + "deployment_url", + "target_url", + "repository_url", + "url", + "created_at", + "updated_at" + ] + }, + "short-blob": { + "title": "Short Blob", + "description": "Short Blob", + "type": "object", + "properties": { + "url": { "type": "string" }, + "sha": { "type": "string" } + } + }, + "blob": { + "title": "Blob", + "description": "Blob", + "type": "object", + "properties": { + "content": { "type": "string" }, + "encoding": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "sha": { "type": "string" }, + "size": { "type": "integer", "nullable": true }, + "node_id": { "type": "string" }, + "highlighted_content": { "type": "string" } + }, + "required": ["sha", "url", "node_id", "size", "content", "encoding"] + }, + "git-commit": { + "title": "Git Commit", + "description": "Low-level Git commit operations within a repository", + "type": "object", + "properties": { + "sha": { + "description": "SHA for the commit", + "example": "7638417db6d59f3c431d3e1f261cc637155684cd", + "type": "string" + }, + "node_id": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "author": { + "description": "Identifying information for the git-user", + "type": "object", + "properties": { + "date": { + "description": "Timestamp of the commit", + "example": "2014-08-09T08:02:04+12:00", + "format": "date-time", + "type": "string" + }, + "email": { + "type": "string", + "description": "Git email address of the user", + "example": "monalisa.octocat@example.com" + }, + "name": { + "description": "Name of the git user", + "example": "Monalisa Octocat", + "type": "string" + } + }, + "required": ["email", "name"] + }, + "committer": { + "description": "Identifying information for the git-user", + "type": "object", + "properties": { + "date": { + "description": "Timestamp of the commit", + "example": "2014-08-09T08:02:04+12:00", + "format": "date-time", + "type": "string" + }, + "email": { + "type": "string", + "description": "Git email address of the user", + "example": "monalisa.octocat@example.com" + }, + "name": { + "description": "Name of the git user", + "example": "Monalisa Octocat", + "type": "string" + } + }, + "required": ["email", "name"] + }, + "message": { + "description": "Message describing the purpose of the commit", + "example": "Fix #42", + "type": "string" + }, + "tree": { + "type": "object", + "properties": { + "sha": { + "description": "SHA for the commit", + "example": "7638417db6d59f3c431d3e1f261cc637155684cd", + "type": "string" + }, + "url": { "type": "string", "format": "uri" } + } + }, + "parents": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sha": { + "description": "SHA for the commit", + "example": "7638417db6d59f3c431d3e1f261cc637155684cd", + "type": "string" + }, + "url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" } + } + } + }, + "verification": { + "type": "object", + "properties": { + "verified": { "type": "boolean" }, + "reason": { "type": "string" }, + "signature": { "type": "string", "nullable": true }, + "payload": { "type": "string", "nullable": true } + } + }, + "html_url": { "type": "string", "format": "uri" } + } + }, + "git-ref": { + "title": "Git Reference", + "description": "Git references within a repository", + "type": "object", + "properties": { + "ref": { "type": "string" }, + "node_id": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "object": { + "type": "object", + "properties": { + "type": { "type": "string" }, + "sha": { + "description": "SHA for the reference", + "example": "7638417db6d59f3c431d3e1f261cc637155684cd", + "type": "string", + "minLength": 40, + "maxLength": 40 + }, + "url": { "type": "string", "format": "uri" } + } + } + } + }, + "git-tag": { + "title": "Git Tag", + "description": "Metadata for a Git tag", + "type": "object", + "properties": { + "node_id": { + "type": "string", + "example": "MDM6VGFnOTQwYmQzMzYyNDhlZmFlMGY5ZWU1YmM3YjJkNWM5ODU4ODdiMTZhYw==" + }, + "tag": { + "description": "Name of the tag", + "example": "v0.0.1", + "type": "string" + }, + "sha": { + "type": "string", + "example": "940bd336248efae0f9ee5bc7b2d5c985887b16ac" + }, + "url": { + "description": "URL for the tag", + "example": "https://api.github.com/repositories/42/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac", + "type": "string", + "format": "uri" + }, + "message": { + "description": "Message describing the purpose of the tag", + "example": "Initial public release", + "type": "string" + }, + "tagger": { + "type": "object", + "properties": { + "date": { "type": "string" }, + "email": { "type": "string" }, + "name": { "type": "string" } + }, + "required": ["date", "email", "name"] + }, + "object": { + "type": "object", + "properties": { + "sha": { "type": "string" }, + "type": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": ["sha", "type", "url"] + }, + "verification": { "$ref": "#/components/schemas/verification" } + }, + "required": [ + "sha", + "url", + "node_id", + "tagger", + "object", + "tag", + "message" + ] + }, + "git-tree": { + "title": "Git Tree", + "description": "The hierarchy between files in a Git repository.", + "type": "object", + "properties": { + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "truncated": { "type": "boolean" }, + "tree": { + "description": "Objects specifying a tree structure", + "type": "array", + "items": { + "type": "object", + "properties": { + "path": { "type": "string", "example": "\"test/file.rb\"" }, + "mode": { "type": "string", "example": "\"040000\"" }, + "type": { "type": "string", "example": "\"tree\"" }, + "sha": { + "type": "string", + "example": "\"23f6827669e43831def8a7ad935069c8bd418261\"" + }, + "size": { "type": "integer", "example": "12" }, + "url": { + "type": "string", + "example": "\"https://api.github.com/repos/owner-482f3203ecf01f67e9deb18e/BBB_Private_Repo/git/blobs/23f6827669e43831def8a7ad935069c8bd418261\"" + } + } + }, + "example": [ + { + "path": "file.rb", + "mode": "100644", + "type": "blob", + "size": 30, + "sha": "44b4fc6d56897b048c772eb4087f854f46256132", + "url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/44b4fc6d56897b048c772eb4087f854f46256132", + "properties": { + "path": { "type": "string" }, + "mode": { "type": "string" }, + "type": { "type": "string" }, + "size": { "type": "integer" }, + "sha": { "type": "string" }, + "url": { "type": "string" } + }, + "required": ["path", "mode", "type", "sha", "url", "size"] + } + ] + } + }, + "required": ["sha", "url", "tree", "truncated"] + }, + "hook-response": { + "title": "Hook Response", + "type": "object", + "properties": { + "code": { "type": "integer", "nullable": true }, + "status": { "type": "string", "nullable": true }, + "message": { "type": "string", "nullable": true } + }, + "required": ["code", "status", "message"] + }, + "hook": { + "title": "Webhook", + "description": "Webhooks for repositories.", + "type": "object", + "properties": { + "type": { "type": "string" }, + "id": { + "description": "Unique identifier of the webhook.", + "example": 42, + "type": "integer" + }, + "name": { + "description": "The name of a valid service, use 'web' for a webhook.", + "example": "web", + "type": "string" + }, + "active": { + "description": "Determines whether the hook is actually triggered on pushes.", + "type": "boolean", + "example": true + }, + "events": { + "description": "Determines what events the hook is triggered for. Default: ['push'].", + "type": "array", + "items": { "type": "string" }, + "example": ["push", "pull_request"] + }, + "config": { + "type": "object", + "properties": { + "email": { "type": "string", "example": "\"foo@bar.com\"" }, + "password": { "type": "string", "example": "\"foo\"" }, + "room": { "type": "string", "example": "\"roomer\"" }, + "subdomain": { "type": "string", "example": "\"foo\"" }, + "url": { "$ref": "#/components/schemas/webhook-config-url" }, + "insecure_ssl": { + "$ref": "#/components/schemas/webhook-config-insecure-ssl" + }, + "content_type": { + "$ref": "#/components/schemas/webhook-config-content-type" + }, + "digest": { "type": "string", "example": "\"md5\"" }, + "secret": { + "$ref": "#/components/schemas/webhook-config-secret" + }, + "token": { "type": "string", "example": "\"abc\"" } + } + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-09-06T20:39:23Z" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-09-06T17:26:27Z" + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1" + }, + "test_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/test" + }, + "ping_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings" + }, + "last_response": { "$ref": "#/components/schemas/hook-response" } + }, + "required": [ + "id", + "url", + "type", + "name", + "active", + "events", + "config", + "ping_url", + "created_at", + "updated_at", + "last_response", + "test_url" + ] + }, + "import": { + "title": "Import", + "description": "A repository import from an external source.", + "type": "object", + "properties": { + "vcs": { "type": "string", "nullable": true }, + "use_lfs": { "type": "string" }, + "vcs_url": { + "description": "The URL of the originating repository.", + "type": "string" + }, + "svc_root": { "type": "string" }, + "tfvc_project": { "type": "string" }, + "status": { + "type": "string", + "enum": [ + "auth", + "error", + "none", + "detecting", + "choose", + "auth_failed", + "importing", + "mapping", + "waiting_to_push", + "pushing", + "complete", + "setup", + "unknown", + "detection_found_multiple", + "detection_found_nothing", + "detection_needs_auth" + ] + }, + "status_text": { "type": "string", "nullable": true }, + "failed_step": { "type": "string", "nullable": true }, + "error_message": { "type": "string", "nullable": true }, + "import_percent": { "type": "integer", "nullable": true }, + "commit_count": { "type": "integer", "nullable": true }, + "push_percent": { "type": "integer", "nullable": true }, + "has_large_files": { "type": "boolean" }, + "large_files_size": { "type": "integer" }, + "large_files_count": { "type": "integer" }, + "project_choices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "vcs": { "type": "string" }, + "tfvc_project": { "type": "string" }, + "human_name": { "type": "string" } + } + } + }, + "message": { "type": "string" }, + "authors_count": { "type": "integer", "nullable": true }, + "url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "authors_url": { "type": "string", "format": "uri" }, + "repository_url": { "type": "string", "format": "uri" }, + "svn_root": { "type": "string" } + }, + "required": [ + "vcs", + "vcs_url", + "status", + "url", + "repository_url", + "html_url", + "authors_url" + ] + }, + "porter-author": { + "title": "Porter Author", + "description": "Porter Author", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "remote_id": { "type": "string" }, + "remote_name": { "type": "string" }, + "email": { "type": "string" }, + "name": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "import_url": { "type": "string", "format": "uri" } + }, + "required": [ + "id", + "remote_id", + "remote_name", + "email", + "name", + "url", + "import_url" + ] + }, + "porter-large-file": { + "title": "Porter Large File", + "description": "Porter Large File", + "type": "object", + "properties": { + "ref_name": { "type": "string" }, + "path": { "type": "string" }, + "oid": { "type": "string" }, + "size": { "type": "integer" } + }, + "required": ["oid", "path", "ref_name", "size"] + }, + "issue-event-label": { + "title": "Issue Event Label", + "description": "Issue Event Label", + "type": "object", + "properties": { + "name": { "type": "string", "nullable": true }, + "color": { "type": "string", "nullable": true } + }, + "required": ["name", "color"] + }, + "issue-event-dismissed-review": { + "title": "Issue Event Dismissed Review", + "type": "object", + "properties": { + "state": { "type": "string" }, + "review_id": { "type": "integer" }, + "dismissal_message": { "type": "string", "nullable": true }, + "dismissal_commit_id": { "type": "string", "nullable": true } + }, + "required": ["state", "review_id", "dismissal_message"] + }, + "issue-event-milestone": { + "title": "Issue Event Milestone", + "description": "Issue Event Milestone", + "type": "object", + "properties": { "title": { "type": "string" } }, + "required": ["title"] + }, + "issue-event-project-card": { + "title": "Issue Event Project Card", + "description": "Issue Event Project Card", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "project_url": { "type": "string", "format": "uri" }, + "project_id": { "type": "integer" }, + "column_name": { "type": "string" }, + "previous_column_name": { "type": "string" } + }, + "required": ["url", "id", "project_url", "project_id", "column_name"] + }, + "issue-event-rename": { + "title": "Issue Event Rename", + "description": "Issue Event Rename", + "type": "object", + "properties": { + "from": { "type": "string" }, + "to": { "type": "string" } + }, + "required": ["from", "to"] + }, + "issue-event": { + "title": "Issue Event", + "description": "Issue Event", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 1 }, + "node_id": { "type": "string", "example": "MDEwOklzc3VlRXZlbnQx" }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/issues/events/1" + }, + "actor": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "event": { "type": "string", "example": "closed" }, + "commit_id": { + "type": "string", + "example": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "nullable": true + }, + "commit_url": { + "type": "string", + "example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-14T16:00:49Z" + }, + "issue": { "$ref": "#/components/schemas/issue-simple" }, + "label": { "$ref": "#/components/schemas/issue-event-label" }, + "assignee": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "assigner": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "review_requester": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "requested_reviewer": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "requested_team": { "$ref": "#/components/schemas/team" }, + "dismissed_review": { + "$ref": "#/components/schemas/issue-event-dismissed-review" + }, + "milestone": { "$ref": "#/components/schemas/issue-event-milestone" }, + "project_card": { + "$ref": "#/components/schemas/issue-event-project-card" + }, + "rename": { "$ref": "#/components/schemas/issue-event-rename" }, + "author_association": { "type": "string" }, + "lock_reason": { "type": "string", "nullable": true } + }, + "required": [ + "id", + "node_id", + "url", + "actor", + "event", + "commit_id", + "commit_url", + "created_at" + ] + }, + "issue-event-for-issue": { + "title": "Issue Event for Issue", + "description": "Issue Event for Issue", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "actor": { "$ref": "#/components/schemas/simple-user" }, + "event": { "type": "string" }, + "commit_id": { "type": "string", "nullable": true }, + "commit_url": { "type": "string", "nullable": true }, + "created_at": { "type": "string" }, + "sha": { + "type": "string", + "example": "\"480d4f47447129f015cb327536c522ca683939a1\"" + }, + "html_url": { + "type": "string", + "example": "\"https://github.com/owner-3906e11a33a3d55ba449d63f/BBB_Private_Repo/commit/480d4f47447129f015cb327536c522ca683939a1\"" + }, + "message": { + "type": "string", + "example": "\"add a bunch of files\"" + }, + "issue_url": { + "type": "string", + "example": "\"https://api.github.com/repos/owner-3906e11a33a3d55ba449d63f/AAA_Public_Repo/issues/1\"" + }, + "updated_at": { + "type": "string", + "example": "\"2020-07-09T00:17:36Z\"" + }, + "author_association": { + "type": "string", + "example": "\"COLLABORATOR\"" + }, + "body": { "type": "string", "example": "\":+1:\"" }, + "lock_reason": { "type": "string", "example": "\"off-topic\"" }, + "submitted_at": { + "type": "string", + "example": "\"2020-07-09T00:17:51Z\"" + }, + "state": { "type": "string", "example": "\"commented\"" }, + "pull_request_url": { + "type": "string", + "example": "\"https://api.github.com/repos/owner-3906e11a33a3d55ba449d63f/AAA_Public_Repo/pulls/2\"" + }, + "body_html": { + "type": "string", + "example": "\"

Accusantium fugiat cumque. Autem qui nostrum. Atque quae ullam.

\"" + }, + "body_text": { + "type": "string", + "example": "\"Accusantium fugiat cumque. Autem qui nostrum. Atque quae ullam.\"" + } + } + }, + "label": { + "title": "Label", + "description": "Color-coded labels help you categorize and filter your issues (just like labels in Gmail).", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 208045946 }, + "node_id": { + "type": "string", + "example": "MDU6TGFiZWwyMDgwNDU5NDY=" + }, + "url": { + "description": "URL for the label", + "example": "https://api.github.com/repositories/42/labels/bug", + "type": "string", + "format": "uri" + }, + "name": { + "description": "The name of the label.", + "example": "bug", + "type": "string" + }, + "description": { + "type": "string", + "example": "Something isn't working", + "nullable": true + }, + "color": { + "description": "6-character hex code, without the leading #, identifying the color", + "example": "FFFFFF", + "type": "string" + }, + "default": { "type": "boolean", "example": true } + }, + "required": ["color", "name", "id", "node_id", "default", "url"] + }, + "deploy-key": { + "title": "Deploy Key", + "description": "An SSH key granting access to a single repository.", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "key": { "type": "string" }, + "url": { "type": "string" }, + "title": { "type": "string" }, + "verified": { "type": "boolean" }, + "created_at": { "type": "string" }, + "read_only": { "type": "boolean" } + } + }, + "language": { + "title": "Language", + "description": "Language", + "type": "object", + "additionalProperties": { "type": "integer" } + }, + "license-content": { + "title": "License Content", + "description": "License Content", + "type": "object", + "properties": { + "name": { "type": "string" }, + "path": { "type": "string" }, + "sha": { "type": "string" }, + "size": { "type": "integer" }, + "url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri", "nullable": true }, + "git_url": { "type": "string", "format": "uri", "nullable": true }, + "download_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "type": { "type": "string" }, + "content": { "type": "string" }, + "encoding": { "type": "string" }, + "_links": { + "type": "object", + "properties": { + "git": { "type": "string", "format": "uri", "nullable": true }, + "html": { "type": "string", "format": "uri", "nullable": true }, + "self": { "type": "string", "format": "uri" } + }, + "required": ["git", "html", "self"] + }, + "license": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/license-simple" }] + } + }, + "required": [ + "_links", + "git_url", + "html_url", + "download_url", + "name", + "path", + "sha", + "size", + "type", + "url", + "content", + "encoding", + "license" + ] + }, + "pages-source-hash": { + "title": "Pages Source Hash", + "type": "object", + "properties": { + "branch": { "type": "string" }, + "path": { "type": "string" } + }, + "required": ["branch", "path"] + }, + "page": { + "title": "GitHub Pages", + "description": "The configuration for GitHub Pages for a repository.", + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "The API address for accessing this Page resource.", + "format": "uri", + "example": "https://api.github.com/repos/github/hello-world/pages" + }, + "status": { + "type": "string", + "description": "The status of the most recent build of the Page.", + "example": "built", + "enum": ["built", "building", "errored"], + "nullable": true + }, + "cname": { + "description": "The Pages site's custom domain", + "example": "example.com", + "type": "string", + "nullable": true + }, + "custom_404": { + "type": "boolean", + "description": "Whether the Page has a custom 404 page.", + "example": false, + "default": false + }, + "html_url": { + "type": "string", + "description": "The web address the Page can be accessed from.", + "format": "uri", + "example": "https://example.com" + }, + "source": { "$ref": "#/components/schemas/pages-source-hash" } + }, + "required": ["url", "status", "cname", "custom_404"] + }, + "page-build": { + "title": "Page Build", + "description": "Page Build", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "status": { "type": "string" }, + "error": { + "type": "object", + "properties": { "message": { "type": "string", "nullable": true } }, + "required": ["message"] + }, + "pusher": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "commit": { "type": "string" }, + "duration": { "type": "integer" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" } + }, + "required": [ + "url", + "status", + "error", + "pusher", + "commit", + "duration", + "created_at", + "updated_at" + ] + }, + "page-build-status": { + "title": "Page Build Status", + "description": "Page Build Status", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/github/hello-world/pages/builds/latest" + }, + "status": { "type": "string", "example": "queued" } + }, + "required": ["url", "status"] + }, + "pull-request": { + "type": "object", + "title": "Pull Request", + "description": "Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary.", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347" + }, + "id": { "type": "integer", "example": 1 }, + "node_id": { + "type": "string", + "example": "MDExOlB1bGxSZXF1ZXN0MQ==" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/pull/1347" + }, + "diff_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/pull/1347.diff" + }, + "patch_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/pull/1347.patch" + }, + "issue_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/issues/1347" + }, + "commits_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits" + }, + "review_comments_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments" + }, + "review_comment_url": { + "type": "string", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}" + }, + "comments_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments" + }, + "statuses_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "number": { + "description": "Number uniquely identifying the pull request within its repository.", + "example": 42, + "type": "integer" + }, + "state": { + "description": "State of this Pull Request. Either `open` or `closed`.", + "enum": ["open", "closed"], + "example": "open", + "type": "string" + }, + "locked": { "type": "boolean", "example": true }, + "title": { + "description": "The title of the pull request.", + "example": "Amazing new feature", + "type": "string" + }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "body": { + "type": "string", + "example": "Please pull these awesome changes", + "nullable": true + }, + "labels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "name": { "type": "string" }, + "description": { "type": "string", "nullable": true }, + "color": { "type": "string" }, + "default": { "type": "boolean" } + } + } + }, + "milestone": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/milestone" }] + }, + "active_lock_reason": { + "type": "string", + "example": "too heated", + "nullable": true + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z" + }, + "closed_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z", + "nullable": true + }, + "merged_at": { + "type": "string", + "format": "date-time", + "example": "2011-01-26T19:01:12Z", + "nullable": true + }, + "merge_commit_sha": { + "type": "string", + "example": "e5bd3914e2e596debea16f433f57875b5b90bcd6", + "nullable": true + }, + "assignee": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "assignees": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" }, + "nullable": true + }, + "requested_reviewers": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" }, + "nullable": true + }, + "requested_teams": { + "type": "array", + "items": { "$ref": "#/components/schemas/team-simple" }, + "nullable": true + }, + "head": { + "type": "object", + "properties": { + "label": { "type": "string" }, + "ref": { "type": "string" }, + "repo": { + "type": "object", + "properties": { + "archive_url": { "type": "string" }, + "assignees_url": { "type": "string" }, + "blobs_url": { "type": "string" }, + "branches_url": { "type": "string" }, + "collaborators_url": { "type": "string" }, + "comments_url": { "type": "string" }, + "commits_url": { "type": "string" }, + "compare_url": { "type": "string" }, + "contents_url": { "type": "string" }, + "contributors_url": { "type": "string", "format": "uri" }, + "deployments_url": { "type": "string", "format": "uri" }, + "description": { "type": "string", "nullable": true }, + "downloads_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string", "format": "uri" }, + "fork": { "type": "boolean" }, + "forks_url": { "type": "string", "format": "uri" }, + "full_name": { "type": "string" }, + "git_commits_url": { "type": "string" }, + "git_refs_url": { "type": "string" }, + "git_tags_url": { "type": "string" }, + "hooks_url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "issue_comment_url": { "type": "string" }, + "issue_events_url": { "type": "string" }, + "issues_url": { "type": "string" }, + "keys_url": { "type": "string" }, + "labels_url": { "type": "string" }, + "languages_url": { "type": "string", "format": "uri" }, + "merges_url": { "type": "string", "format": "uri" }, + "milestones_url": { "type": "string" }, + "name": { "type": "string" }, + "notifications_url": { "type": "string" }, + "owner": { + "type": "object", + "properties": { + "avatar_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string" }, + "followers_url": { "type": "string", "format": "uri" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "gravatar_id": { "type": "string", "nullable": true }, + "html_url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "login": { "type": "string" }, + "organizations_url": { + "type": "string", + "format": "uri" + }, + "received_events_url": { + "type": "string", + "format": "uri" + }, + "repos_url": { "type": "string", "format": "uri" }, + "site_admin": { "type": "boolean" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { + "type": "string", + "format": "uri" + }, + "type": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + }, + "private": { "type": "boolean" }, + "pulls_url": { "type": "string" }, + "releases_url": { "type": "string" }, + "stargazers_url": { "type": "string", "format": "uri" }, + "statuses_url": { "type": "string" }, + "subscribers_url": { "type": "string", "format": "uri" }, + "subscription_url": { "type": "string", "format": "uri" }, + "tags_url": { "type": "string", "format": "uri" }, + "teams_url": { "type": "string", "format": "uri" }, + "trees_url": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "clone_url": { "type": "string" }, + "default_branch": { "type": "string" }, + "forks": { "type": "integer" }, + "forks_count": { "type": "integer" }, + "git_url": { "type": "string" }, + "has_downloads": { "type": "boolean" }, + "has_issues": { "type": "boolean" }, + "has_projects": { "type": "boolean" }, + "has_wiki": { "type": "boolean" }, + "has_pages": { "type": "boolean" }, + "homepage": { + "type": "string", + "format": "uri", + "nullable": true + }, + "language": { "type": "string", "nullable": true }, + "master_branch": { "type": "string" }, + "archived": { "type": "boolean" }, + "disabled": { "type": "boolean" }, + "mirror_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "open_issues": { "type": "integer" }, + "open_issues_count": { "type": "integer" }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "pull": { "type": "boolean" }, + "push": { "type": "boolean" } + }, + "required": ["admin", "pull", "push"] + }, + "temp_clone_token": { "type": "string" }, + "allow_merge_commit": { "type": "boolean" }, + "allow_squash_merge": { "type": "boolean" }, + "allow_rebase_merge": { "type": "boolean" }, + "license": { + "type": "object", + "properties": { + "key": { "type": "string" }, + "name": { "type": "string" }, + "url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "spdx_id": { "type": "string", "nullable": true }, + "node_id": { "type": "string" } + }, + "required": ["key", "name", "url", "spdx_id", "node_id"], + "nullable": true + }, + "pushed_at": { "type": "string", "format": "date-time" }, + "size": { "type": "integer" }, + "ssh_url": { "type": "string" }, + "stargazers_count": { "type": "integer" }, + "svn_url": { "type": "string", "format": "uri" }, + "topics": { "type": "array", "items": { "type": "string" } }, + "watchers": { "type": "integer" }, + "watchers_count": { "type": "integer" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" } + }, + "required": [ + "archive_url", + "assignees_url", + "blobs_url", + "branches_url", + "collaborators_url", + "comments_url", + "commits_url", + "compare_url", + "contents_url", + "contributors_url", + "deployments_url", + "description", + "downloads_url", + "events_url", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", + "html_url", + "id", + "node_id", + "issue_comment_url", + "issue_events_url", + "issues_url", + "keys_url", + "labels_url", + "languages_url", + "merges_url", + "milestones_url", + "name", + "notifications_url", + "owner", + "private", + "pulls_url", + "releases_url", + "stargazers_url", + "statuses_url", + "subscribers_url", + "subscription_url", + "tags_url", + "teams_url", + "trees_url", + "url", + "clone_url", + "default_branch", + "forks", + "forks_count", + "git_url", + "has_downloads", + "has_issues", + "has_projects", + "has_wiki", + "has_pages", + "homepage", + "language", + "archived", + "disabled", + "mirror_url", + "open_issues", + "open_issues_count", + "license", + "pushed_at", + "size", + "ssh_url", + "stargazers_count", + "svn_url", + "watchers", + "watchers_count", + "created_at", + "updated_at" + ] + }, + "sha": { "type": "string" }, + "user": { + "type": "object", + "properties": { + "avatar_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string" }, + "followers_url": { "type": "string", "format": "uri" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "gravatar_id": { "type": "string", "nullable": true }, + "html_url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "login": { "type": "string" }, + "organizations_url": { "type": "string", "format": "uri" }, + "received_events_url": { "type": "string", "format": "uri" }, + "repos_url": { "type": "string", "format": "uri" }, + "site_admin": { "type": "boolean" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string", "format": "uri" }, + "type": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + } + }, + "required": ["label", "ref", "repo", "sha", "user"] + }, + "base": { + "type": "object", + "properties": { + "label": { "type": "string" }, + "ref": { "type": "string" }, + "repo": { + "type": "object", + "properties": { + "archive_url": { "type": "string" }, + "assignees_url": { "type": "string" }, + "blobs_url": { "type": "string" }, + "branches_url": { "type": "string" }, + "collaborators_url": { "type": "string" }, + "comments_url": { "type": "string" }, + "commits_url": { "type": "string" }, + "compare_url": { "type": "string" }, + "contents_url": { "type": "string" }, + "contributors_url": { "type": "string", "format": "uri" }, + "deployments_url": { "type": "string", "format": "uri" }, + "description": { "type": "string", "nullable": true }, + "downloads_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string", "format": "uri" }, + "fork": { "type": "boolean" }, + "forks_url": { "type": "string", "format": "uri" }, + "full_name": { "type": "string" }, + "git_commits_url": { "type": "string" }, + "git_refs_url": { "type": "string" }, + "git_tags_url": { "type": "string" }, + "hooks_url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "issue_comment_url": { "type": "string" }, + "issue_events_url": { "type": "string" }, + "issues_url": { "type": "string" }, + "keys_url": { "type": "string" }, + "labels_url": { "type": "string" }, + "languages_url": { "type": "string", "format": "uri" }, + "merges_url": { "type": "string", "format": "uri" }, + "milestones_url": { "type": "string" }, + "name": { "type": "string" }, + "notifications_url": { "type": "string" }, + "owner": { + "type": "object", + "properties": { + "avatar_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string" }, + "followers_url": { "type": "string", "format": "uri" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "gravatar_id": { "type": "string", "nullable": true }, + "html_url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "login": { "type": "string" }, + "organizations_url": { + "type": "string", + "format": "uri" + }, + "received_events_url": { + "type": "string", + "format": "uri" + }, + "repos_url": { "type": "string", "format": "uri" }, + "site_admin": { "type": "boolean" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { + "type": "string", + "format": "uri" + }, + "type": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + }, + "private": { "type": "boolean" }, + "pulls_url": { "type": "string" }, + "releases_url": { "type": "string" }, + "stargazers_url": { "type": "string", "format": "uri" }, + "statuses_url": { "type": "string" }, + "subscribers_url": { "type": "string", "format": "uri" }, + "subscription_url": { "type": "string", "format": "uri" }, + "tags_url": { "type": "string", "format": "uri" }, + "teams_url": { "type": "string", "format": "uri" }, + "trees_url": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "clone_url": { "type": "string" }, + "default_branch": { "type": "string" }, + "forks": { "type": "integer" }, + "forks_count": { "type": "integer" }, + "git_url": { "type": "string" }, + "has_downloads": { "type": "boolean" }, + "has_issues": { "type": "boolean" }, + "has_projects": { "type": "boolean" }, + "has_wiki": { "type": "boolean" }, + "has_pages": { "type": "boolean" }, + "homepage": { + "type": "string", + "format": "uri", + "nullable": true + }, + "language": { "type": "string", "nullable": true }, + "master_branch": { "type": "string" }, + "archived": { "type": "boolean" }, + "disabled": { "type": "boolean" }, + "mirror_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "open_issues": { "type": "integer" }, + "open_issues_count": { "type": "integer" }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "pull": { "type": "boolean" }, + "push": { "type": "boolean" } + }, + "required": ["admin", "pull", "push"] + }, + "temp_clone_token": { "type": "string" }, + "allow_merge_commit": { "type": "boolean" }, + "allow_squash_merge": { "type": "boolean" }, + "allow_rebase_merge": { "type": "boolean" }, + "license": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/license-simple" }] + }, + "pushed_at": { "type": "string", "format": "date-time" }, + "size": { "type": "integer" }, + "ssh_url": { "type": "string" }, + "stargazers_count": { "type": "integer" }, + "svn_url": { "type": "string", "format": "uri" }, + "topics": { "type": "array", "items": { "type": "string" } }, + "watchers": { "type": "integer" }, + "watchers_count": { "type": "integer" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" } + }, + "required": [ + "archive_url", + "assignees_url", + "blobs_url", + "branches_url", + "collaborators_url", + "comments_url", + "commits_url", + "compare_url", + "contents_url", + "contributors_url", + "deployments_url", + "description", + "downloads_url", + "events_url", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", + "html_url", + "id", + "node_id", + "issue_comment_url", + "issue_events_url", + "issues_url", + "keys_url", + "labels_url", + "languages_url", + "merges_url", + "milestones_url", + "name", + "notifications_url", + "owner", + "private", + "pulls_url", + "releases_url", + "stargazers_url", + "statuses_url", + "subscribers_url", + "subscription_url", + "tags_url", + "teams_url", + "trees_url", + "url", + "clone_url", + "default_branch", + "forks", + "forks_count", + "git_url", + "has_downloads", + "has_issues", + "has_projects", + "has_wiki", + "has_pages", + "homepage", + "language", + "archived", + "disabled", + "mirror_url", + "open_issues", + "open_issues_count", + "license", + "pushed_at", + "size", + "ssh_url", + "stargazers_count", + "svn_url", + "watchers", + "watchers_count", + "created_at", + "updated_at" + ] + }, + "sha": { "type": "string" }, + "user": { + "type": "object", + "properties": { + "avatar_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string" }, + "followers_url": { "type": "string", "format": "uri" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "gravatar_id": { "type": "string", "nullable": true }, + "html_url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "login": { "type": "string" }, + "organizations_url": { "type": "string", "format": "uri" }, + "received_events_url": { "type": "string", "format": "uri" }, + "repos_url": { "type": "string", "format": "uri" }, + "site_admin": { "type": "boolean" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string", "format": "uri" }, + "type": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url" + ] + } + }, + "required": ["label", "ref", "repo", "sha", "user"] + }, + "_links": { + "type": "object", + "properties": { + "comments": { "$ref": "#/components/schemas/link" }, + "commits": { "$ref": "#/components/schemas/link" }, + "statuses": { "$ref": "#/components/schemas/link" }, + "html": { "$ref": "#/components/schemas/link" }, + "issue": { "$ref": "#/components/schemas/link" }, + "review_comments": { "$ref": "#/components/schemas/link" }, + "review_comment": { "$ref": "#/components/schemas/link" }, + "self": { "$ref": "#/components/schemas/link" } + }, + "required": [ + "comments", + "commits", + "statuses", + "html", + "issue", + "review_comments", + "review_comment", + "self" + ] + }, + "author_association": { "type": "string", "example": "OWNER" }, + "draft": { + "description": "Indicates whether or not the pull request is a draft.", + "example": false, + "type": "boolean" + }, + "merged": { "type": "boolean" }, + "mergeable": { "type": "boolean", "example": true, "nullable": true }, + "rebaseable": { + "type": "boolean", + "example": true, + "nullable": true + }, + "mergeable_state": { "type": "string", "example": "clean" }, + "merged_by": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "comments": { "type": "integer", "example": 10 }, + "review_comments": { "type": "integer", "example": 0 }, + "maintainer_can_modify": { + "description": "Indicates whether maintainers can modify the pull request.", + "example": true, + "type": "boolean" + }, + "commits": { "type": "integer", "example": 3 }, + "additions": { "type": "integer", "example": 100 }, + "deletions": { "type": "integer", "example": 3 }, + "changed_files": { "type": "integer", "example": 5 } + }, + "required": [ + "_links", + "assignee", + "labels", + "base", + "body", + "closed_at", + "comments_url", + "commits_url", + "created_at", + "diff_url", + "head", + "html_url", + "id", + "node_id", + "issue_url", + "merge_commit_sha", + "merged_at", + "milestone", + "number", + "patch_url", + "review_comment_url", + "review_comments_url", + "statuses_url", + "state", + "locked", + "title", + "updated_at", + "url", + "user", + "author_association", + "additions", + "changed_files", + "comments", + "commits", + "deletions", + "mergeable", + "mergeable_state", + "merged", + "maintainer_can_modify", + "merged_by", + "review_comments" + ] + }, + "pull-request-review-comment": { + "title": "Pull Request Review Comment", + "description": "Pull Request Review Comments are comments on a portion of the Pull Request's diff.", + "type": "object", + "properties": { + "url": { + "description": "URL for the pull request review comment", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", + "type": "string" + }, + "pull_request_review_id": { + "description": "The ID of the pull request review to which the comment belongs.", + "example": 42, + "type": "integer", + "nullable": true + }, + "id": { + "description": "The ID of the pull request review comment.", + "example": 1, + "type": "integer" + }, + "node_id": { + "description": "The node ID of the pull request review comment.", + "type": "string", + "example": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw" + }, + "diff_hunk": { + "description": "The diff of the line that the comment refers to.", + "type": "string", + "example": "@@ -16,33 +16,40 @@ public class Connection : IConnection..." + }, + "path": { + "description": "The relative path of the file to which the comment applies.", + "example": "config/database.yaml", + "type": "string" + }, + "position": { + "description": "The line index in the diff to which the comment applies.", + "example": 1, + "type": "integer" + }, + "original_position": { + "description": "The index of the original line in the diff to which the comment applies.", + "example": 4, + "type": "integer" + }, + "commit_id": { + "description": "The SHA of the commit to which the comment applies.", + "example": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "type": "string" + }, + "original_commit_id": { + "description": "The SHA of the original commit to which the comment applies.", + "example": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840", + "type": "string" + }, + "in_reply_to_id": { + "description": "The comment ID to reply to.", + "example": 8, + "type": "integer" + }, + "user": { "$ref": "#/components/schemas/simple-user" }, + "body": { + "description": "The text of the comment.", + "example": "We should probably include a check for null values here.", + "type": "string" + }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-14T16:00:49Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-14T16:00:49Z" + }, + "html_url": { + "description": "HTML URL for the pull request review comment.", + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1" + }, + "pull_request_url": { + "description": "URL for the pull request that the review comment belongs to.", + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" + }, + "author_association": { + "description": "How the author of the comment is associated with the pull request.", + "type": "string", + "example": "" + }, + "_links": { + "type": "object", + "properties": { + "self": { + "type": "object", + "properties": { + "href": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1" + } + }, + "required": ["href"] + }, + "html": { + "type": "object", + "properties": { + "href": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1" + } + }, + "required": ["href"] + }, + "pull_request": { + "type": "object", + "properties": { + "href": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" + } + }, + "required": ["href"] + } + }, + "required": ["self", "html", "pull_request"] + }, + "start_line": { + "type": "integer", + "description": "The first line of the range for a multi-line comment.", + "example": 2, + "nullable": true + }, + "original_start_line": { + "type": "integer", + "description": "The first line of the range for a multi-line comment.", + "example": 2, + "nullable": true + }, + "start_side": { + "type": "string", + "description": "The side of the first line of the range for a multi-line comment.", + "enum": ["LEFT", "RIGHT"], + "default": "RIGHT", + "nullable": true + }, + "line": { + "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + "example": 2, + "type": "integer" + }, + "original_line": { + "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + "example": 2, + "type": "integer" + }, + "side": { + "description": "The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment", + "enum": ["LEFT", "RIGHT"], + "default": "RIGHT", + "type": "string" + }, + "reactions": { "$ref": "#/components/schemas/reaction-rollup" }, + "body_html": { + "type": "string", + "example": "\"

comment body

\"" + }, + "body_text": { "type": "string", "example": "\"comment body\"" } + }, + "required": [ + "url", + "id", + "node_id", + "pull_request_review_id", + "diff_hunk", + "path", + "position", + "original_position", + "commit_id", + "original_commit_id", + "user", + "body", + "created_at", + "updated_at", + "html_url", + "pull_request_url", + "author_association", + "_links" + ] + }, + "pull-request-merge-result": { + "title": "Pull Request Merge Result", + "description": "Pull Request Merge Result", + "type": "object", + "properties": { + "sha": { "type": "string" }, + "merged": { "type": "boolean" }, + "message": { "type": "string" } + }, + "required": ["merged", "message", "sha"] + }, + "pull-request-review-request": { + "title": "Pull Request Review Request", + "description": "Pull Request Review Request", + "type": "object", + "properties": { + "users": { + "type": "array", + "items": { + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string" }, + "gravatar_id": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "followers_url": { "type": "string" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string" }, + "organizations_url": { "type": "string" }, + "repos_url": { "type": "string" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" } + } + } + }, + "teams": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "name": { "type": "string" }, + "slug": { "type": "string" }, + "description": { "type": "string", "nullable": true }, + "privacy": { "type": "string" }, + "permission": { "type": "string" }, + "members_url": { "type": "string" }, + "repositories_url": { "type": "string" }, + "parent": { "type": "string", "nullable": true } + } + } + } + } + }, + "pull-request-review": { + "title": "Pull Request Review", + "description": "Pull Request Reviews are reviews on pull requests.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the review", + "example": 42, + "type": "integer" + }, + "node_id": { + "type": "string", + "example": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=" + }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "body": { + "description": "The text of the review.", + "example": "This looks great.", + "type": "string" + }, + "state": { "type": "string", "example": "CHANGES_REQUESTED" }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80" + }, + "pull_request_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/12" + }, + "_links": { + "type": "object", + "properties": { + "html": { + "type": "object", + "properties": { "href": { "type": "string" } }, + "required": ["href"] + }, + "pull_request": { + "type": "object", + "properties": { "href": { "type": "string" } }, + "required": ["href"] + } + }, + "required": ["html", "pull_request"] + }, + "submitted_at": { "type": "string", "format": "date-time" }, + "commit_id": { + "description": "A commit SHA for the review.", + "example": "54bb654c9e6025347f57900a4a5c2313a96b8035", + "type": "string" + }, + "body_html": { "type": "string" }, + "body_text": { "type": "string" }, + "author_association": { "type": "string" } + }, + "required": [ + "id", + "node_id", + "user", + "body", + "state", + "commit_id", + "html_url", + "pull_request_url", + "_links", + "author_association" + ] + }, + "review-comment": { + "title": "Legacy Review Comment", + "description": "Legacy Review Comment", + "type": "object", + "properties": { + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1" + }, + "pull_request_review_id": { + "type": "integer", + "example": 42, + "nullable": true + }, + "id": { "type": "integer", "example": 10 }, + "node_id": { + "type": "string", + "example": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw" + }, + "diff_hunk": { + "type": "string", + "example": "@@ -16,33 +16,40 @@ public class Connection : IConnection..." + }, + "path": { "type": "string", "example": "file1.txt" }, + "position": { "type": "integer", "example": 1, "nullable": true }, + "original_position": { "type": "integer", "example": 4 }, + "commit_id": { + "type": "string", + "example": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "original_commit_id": { + "type": "string", + "example": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840" + }, + "in_reply_to_id": { "type": "integer", "example": 8 }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "body": { "type": "string", "example": "Great stuff" }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-14T16:00:49Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2011-04-14T16:00:49Z" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1" + }, + "pull_request_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/Hello-World/pulls/1" + }, + "author_association": { "type": "string" }, + "_links": { + "type": "object", + "properties": { + "self": { "$ref": "#/components/schemas/link" }, + "html": { "$ref": "#/components/schemas/link" }, + "pull_request": { "$ref": "#/components/schemas/link" } + }, + "required": ["self", "html", "pull_request"] + }, + "body_text": { "type": "string" }, + "body_html": { "type": "string" }, + "side": { + "description": "The side of the first line of the range for a multi-line comment.", + "enum": ["LEFT", "RIGHT"], + "default": "RIGHT", + "type": "string" + }, + "start_side": { + "type": "string", + "description": "The side of the first line of the range for a multi-line comment.", + "enum": ["LEFT", "RIGHT"], + "default": "RIGHT", + "nullable": true + }, + "line": { + "description": "The line of the blob to which the comment applies. The last line of the range for a multi-line comment", + "example": 2, + "type": "integer" + }, + "original_line": { + "description": "The original line of the blob to which the comment applies. The last line of the range for a multi-line comment", + "example": 2, + "type": "integer" + }, + "start_line": { + "description": "The first line of the range for a multi-line comment.", + "example": 2, + "type": "integer", + "nullable": true + }, + "original_start_line": { + "description": "The original first line of the range for a multi-line comment.", + "example": 2, + "type": "integer", + "nullable": true + } + }, + "required": [ + "id", + "node_id", + "url", + "body", + "diff_hunk", + "path", + "position", + "original_position", + "commit_id", + "original_commit_id", + "user", + "pull_request_review_id", + "html_url", + "pull_request_url", + "_links", + "author_association", + "created_at", + "updated_at" + ] + }, + "release-asset": { + "title": "Release Asset", + "description": "Data related to a release.", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "browser_download_url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "name": { + "description": "The file name of the asset.", + "type": "string", + "example": "Team Environment" + }, + "label": { "type": "string", "nullable": true }, + "state": { + "description": "State of the release asset.", + "type": "string", + "enum": ["uploaded"], + "example": "open" + }, + "content_type": { "type": "string" }, + "size": { "type": "integer" }, + "download_count": { "type": "integer" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "uploader": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + } + }, + "required": [ + "id", + "name", + "content_type", + "size", + "state", + "url", + "node_id", + "download_count", + "label", + "uploader", + "browser_download_url", + "created_at", + "updated_at" + ] + }, + "release": { + "title": "Release", + "description": "A release.", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "assets_url": { "type": "string", "format": "uri" }, + "upload_url": { "type": "string" }, + "tarball_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "zipball_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "tag_name": { + "description": "The name of the tag.", + "example": "v1.0.0", + "type": "string" + }, + "target_commitish": { + "description": "Specifies the commitish value that determines where the Git tag is created from.", + "example": "master", + "type": "string" + }, + "name": { "type": "string", "nullable": true }, + "body": { "type": "string", "nullable": true }, + "draft": { + "description": "true to create a draft (unpublished) release, false to create a published one.", + "example": false, + "type": "boolean" + }, + "prerelease": { + "description": "Whether to identify the release as a prerelease or a full release.", + "example": false, + "type": "boolean" + }, + "created_at": { "type": "string", "format": "date-time" }, + "published_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "author": { "$ref": "#/components/schemas/simple-user" }, + "assets": { + "type": "array", + "items": { "$ref": "#/components/schemas/release-asset" } + }, + "body_html": { "type": "string" }, + "body_text": { "type": "string" } + }, + "required": [ + "assets_url", + "upload_url", + "tarball_url", + "zipball_url", + "created_at", + "published_at", + "draft", + "id", + "node_id", + "author", + "html_url", + "name", + "prerelease", + "tag_name", + "target_commitish", + "assets", + "url" + ] + }, + "stargazer": { + "title": "Stargazer", + "description": "Stargazer", + "type": "object", + "properties": { + "starred_at": { "type": "string", "format": "date-time" }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + } + }, + "required": ["starred_at", "user"] + }, + "code-frequency-stat": { + "title": "Code Frequency Stat", + "description": "Code Frequency Stat", + "type": "array", + "items": { "type": "integer" } + }, + "commit-activity": { + "title": "Commit Activity", + "description": "Commit Activity", + "type": "object", + "properties": { + "days": { + "type": "array", + "example": [0, 3, 26, 20, 39, 1, 0], + "items": { "type": "integer" } + }, + "total": { "type": "integer", "example": 89 }, + "week": { "type": "integer", "example": 1336280400 } + }, + "required": ["days", "total", "week"] + }, + "contributor-activity": { + "title": "Contributor Activity", + "description": "Contributor Activity", + "type": "object", + "properties": { + "author": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "total": { "type": "integer", "example": 135 }, + "weeks": { + "type": "array", + "example": [{ "w": "1367712000", "a": 6898, "d": 77, "c": 10 }], + "items": { + "type": "object", + "properties": { + "w": { "type": "string" }, + "a": { "type": "integer" }, + "d": { "type": "integer" }, + "c": { "type": "integer" } + } + } + } + }, + "required": ["author", "total", "weeks"] + }, + "participation-stats": { + "title": "Participation Stats", + "type": "object", + "properties": { + "all": { "type": "array", "items": { "type": "integer" } }, + "owner": { "type": "array", "items": { "type": "integer" } } + } + }, + "repository-subscription": { + "title": "Repository Invitation", + "description": "Repository invitations let you manage who you collaborate with.", + "type": "object", + "properties": { + "subscribed": { + "description": "Determines if notifications should be received from this repository.", + "type": "boolean", + "example": true + }, + "ignored": { + "description": "Determines if all notifications should be blocked from this repository.", + "type": "boolean" + }, + "reason": { "type": "string", "nullable": true }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2012-10-06T21:34:12Z" + }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/example/subscription" + }, + "repository_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/repos/octocat/example" + } + }, + "required": [ + "created_at", + "ignored", + "reason", + "subscribed", + "url", + "repository_url" + ] + }, + "tag": { + "title": "Tag", + "description": "Tag", + "type": "object", + "properties": { + "name": { "type": "string", "example": "v0.1" }, + "commit": { + "type": "object", + "properties": { + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": ["sha", "url"] + }, + "zipball_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/zipball/v0.1" + }, + "tarball_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat/Hello-World/tarball/v0.1" + }, + "node_id": { "type": "string" } + }, + "required": ["name", "node_id", "commit", "zipball_url", "tarball_url"] + }, + "topic": { + "title": "Topic", + "description": "A topic aggregates entities that are related to a subject.", + "type": "object", + "properties": { + "names": { "type": "array", "items": { "type": "string" } } + } + }, + "traffic": { + "title": "Traffic", + "type": "object", + "properties": { + "timestamp": { "type": "string", "format": "date-time" }, + "uniques": { "type": "integer" }, + "count": { "type": "integer" } + }, + "required": ["timestamp", "uniques", "count"] + }, + "clone-traffic": { + "title": "Clone Traffic", + "description": "Clone Traffic", + "type": "object", + "properties": { + "count": { "type": "integer", "example": 173 }, + "uniques": { "type": "integer", "example": 128 }, + "clones": { + "type": "array", + "items": { "$ref": "#/components/schemas/traffic" } + } + }, + "required": ["uniques", "count", "clones"] + }, + "content-traffic": { + "title": "Content Traffic", + "description": "Content Traffic", + "type": "object", + "properties": { + "path": { "type": "string", "example": "/github/hubot" }, + "title": { + "type": "string", + "example": "github/hubot: A customizable life embetterment robot." + }, + "count": { "type": "integer", "example": 3542 }, + "uniques": { "type": "integer", "example": 2225 } + }, + "required": ["path", "title", "uniques", "count"] + }, + "referrer-traffic": { + "title": "Referrer Traffic", + "description": "Referrer Traffic", + "type": "object", + "properties": { + "referrer": { "type": "string", "example": "Google" }, + "count": { "type": "integer", "example": 4 }, + "uniques": { "type": "integer", "example": 3 } + }, + "required": ["referrer", "uniques", "count"] + }, + "view-traffic": { + "title": "View Traffic", + "description": "View Traffic", + "type": "object", + "properties": { + "count": { "type": "integer", "example": 14850 }, + "uniques": { "type": "integer", "example": 3782 }, + "views": { + "type": "array", + "items": { "$ref": "#/components/schemas/traffic" } + } + }, + "required": ["uniques", "count", "views"] + }, + "scim-group-list-enterprise": { + "type": "object", + "properties": { + "schemas": { "type": "array", "items": { "type": "string" } }, + "totalResults": { "type": "number" }, + "itemsPerPage": { "type": "number" }, + "startIndex": { "type": "number" }, + "Resources": { + "type": "array", + "items": { + "type": "object", + "properties": { + "schemas": { "type": "array", "items": { "type": "string" } }, + "id": { "type": "string" }, + "externalId": { "type": "string", "nullable": true }, + "displayName": { "type": "string" }, + "members": { + "type": "array", + "items": { + "type": "object", + "properties": { + "value": { "type": "string" }, + "$ref": { "type": "string" }, + "display": { "type": "string" } + } + } + }, + "meta": { + "type": "object", + "properties": { + "resourceType": { "type": "string" }, + "created": { "type": "string" }, + "lastModified": { "type": "string" }, + "location": { "type": "string" } + } + } + } + } + } + } + }, + "scim-enterprise-group": { + "type": "object", + "properties": { + "schemas": { "type": "array", "items": { "type": "string" } }, + "id": { "type": "string" }, + "externalId": { "type": "string", "nullable": true }, + "displayName": { "type": "string" }, + "members": { + "type": "array", + "items": { + "type": "object", + "properties": { + "value": { "type": "string" }, + "$ref": { "type": "string" }, + "display": { "type": "string" } + } + } + }, + "meta": { + "type": "object", + "properties": { + "resourceType": { "type": "string" }, + "created": { "type": "string" }, + "lastModified": { "type": "string" }, + "location": { "type": "string" } + } + } + } + }, + "scim-user-list-enterprise": { + "type": "object", + "properties": { + "schemas": { "type": "array", "items": { "type": "string" } }, + "totalResults": { "type": "number" }, + "itemsPerPage": { "type": "number" }, + "startIndex": { "type": "number" }, + "Resources": { + "type": "array", + "items": { + "type": "object", + "properties": { + "schemas": { "type": "array", "items": { "type": "string" } }, + "id": { "type": "string" }, + "externalId": { "type": "string" }, + "userName": { "type": "string" }, + "name": { + "type": "object", + "properties": { + "givenName": { "type": "string" }, + "familyName": { "type": "string" } + } + }, + "emails": { + "type": "array", + "items": { + "type": "object", + "properties": { + "value": { "type": "string" }, + "primary": { "type": "boolean" }, + "type": { "type": "string" } + } + } + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { "value": { "type": "string" } } + } + }, + "active": { "type": "boolean" }, + "meta": { + "type": "object", + "properties": { + "resourceType": { "type": "string" }, + "created": { "type": "string" }, + "lastModified": { "type": "string" }, + "location": { "type": "string" } + } + } + } + } + } + } + }, + "scim-enterprise-user": { + "type": "object", + "properties": { + "schemas": { "type": "array", "items": { "type": "string" } }, + "id": { "type": "string" }, + "externalId": { "type": "string" }, + "userName": { "type": "string" }, + "name": { + "type": "object", + "properties": { + "givenName": { "type": "string" }, + "familyName": { "type": "string" } + } + }, + "emails": { + "type": "array", + "items": { + "type": "object", + "properties": { + "value": { "type": "string" }, + "type": { "type": "string" }, + "primary": { "type": "boolean" } + } + } + }, + "groups": { + "type": "array", + "items": { + "type": "object", + "properties": { "value": { "type": "string" } } + } + }, + "active": { "type": "boolean" }, + "meta": { + "type": "object", + "properties": { + "resourceType": { "type": "string" }, + "created": { "type": "string" }, + "lastModified": { "type": "string" }, + "location": { "type": "string" } + } + } + } + }, + "scim-user": { + "title": "SCIM /Users", + "description": "SCIM /Users provisioning endpoints", + "type": "object", + "properties": { + "schemas": { + "description": "SCIM schema used.", + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "example": "urn:ietf:params:scim:schemas:core:2.0:User" + } + }, + "id": { + "description": "Unique identifier of an external identity", + "example": "1b78eada-9baa-11e6-9eb6-a431576d590e", + "type": "string" + }, + "externalId": { + "description": "The ID of the User.", + "type": "string", + "example": "a7b0f98395", + "nullable": true + }, + "userName": { + "description": "Configured by the admin. Could be an email, login, or username", + "example": "someone@example.com", + "type": "string", + "nullable": true + }, + "displayName": { + "description": "The name of the user, suitable for display to end-users", + "example": "Jon Doe", + "type": "string", + "nullable": true + }, + "name": { + "type": "object", + "properties": { + "givenName": { "type": "string", "nullable": true }, + "familyName": { "type": "string", "nullable": true }, + "formatted": { "type": "string", "nullable": true } + }, + "required": ["givenName", "familyName"], + "example": "Jane User" + }, + "emails": { + "description": "user emails", + "example": ["someone@example.com", "another@example.com"], + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "properties": { + "value": { "type": "string" }, + "primary": { "type": "boolean" } + }, + "required": ["value"] + } + }, + "active": { + "description": "The active status of the User.", + "type": "boolean", + "example": true + }, + "meta": { + "type": "object", + "properties": { + "resourceType": { "type": "string", "example": "User" }, + "created": { + "type": "string", + "format": "date-time", + "example": "2019-01-24T22:45:36.000Z" + }, + "lastModified": { + "type": "string", + "format": "date-time", + "example": "2019-01-24T22:45:36.000Z" + }, + "location": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/scim/v2/organizations/myorg-123abc55141bfd8f/Users/c42772b5-2029-11e9-8543-9264a97dec8d" + } + } + }, + "organization_id": { + "description": "The ID of the organization.", + "type": "integer" + }, + "operations": { + "description": "Set of operations to be performed", + "example": [{ "op": "replace", "value": { "active": false } }], + "type": "array", + "minItems": 1, + "items": { + "properties": { + "op": { + "type": "string", + "enum": ["add", "remove", "replace"] + }, + "path": { "type": "string" }, + "value": { + "oneOf": [ + { "type": "string" }, + { "type": "object" }, + { "type": "array", "items": {} } + ] + } + }, + "required": ["op"], + "type": "object" + } + }, + "groups": { + "description": "associated groups", + "type": "array", + "items": { + "properties": { + "value": { "type": "string" }, + "display": { "type": "string" } + } + } + } + }, + "required": [ + "id", + "schemas", + "externalId", + "userName", + "name", + "emails", + "active", + "meta" + ] + }, + "scim-user-list": { + "title": "SCIM User List", + "description": "SCIM User List", + "type": "object", + "properties": { + "schemas": { + "description": "SCIM schema used.", + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "example": "urn:ietf:params:scim:api:messages:2.0:ListResponse" + } + }, + "totalResults": { "type": "integer", "example": 3 }, + "itemsPerPage": { "type": "integer", "example": 10 }, + "startIndex": { "type": "integer", "example": 1 }, + "Resources": { + "type": "array", + "items": { "$ref": "#/components/schemas/scim-user" } + } + }, + "required": [ + "schemas", + "totalResults", + "itemsPerPage", + "startIndex", + "Resources" + ] + }, + "search-result-text-matches": { + "title": "Search Result Text Matches", + "type": "array", + "items": { + "type": "object", + "properties": { + "object_url": { "type": "string" }, + "object_type": { "nullable": true, "type": "string" }, + "property": { "type": "string" }, + "fragment": { "type": "string" }, + "matches": { + "type": "array", + "items": { + "type": "object", + "properties": { + "text": { "type": "string" }, + "indices": { "type": "array", "items": { "type": "integer" } } + } + } + } + } + } + }, + "code-search-result-item": { + "title": "Code Search Result Item", + "description": "Code Search Result Item", + "type": "object", + "properties": { + "name": { "type": "string" }, + "path": { "type": "string" }, + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "git_url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "repository": { "$ref": "#/components/schemas/minimal-repository" }, + "score": { "type": "integer" }, + "file_size": { "type": "integer" }, + "language": { "type": "string", "nullable": true }, + "last_modified_at": { "type": "string", "format": "date-time" }, + "line_numbers": { + "type": "array", + "items": { "type": "string", "example": ["73..77", "77..78"] } + }, + "text_matches": { + "$ref": "#/components/schemas/search-result-text-matches" + } + }, + "required": [ + "score", + "name", + "path", + "sha", + "git_url", + "html_url", + "url", + "repository" + ] + }, + "commit-search-result-item": { + "title": "Commit Search Result Item", + "description": "Commit Search Result Item", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "sha": { "type": "string" }, + "html_url": { "type": "string", "format": "uri" }, + "comments_url": { "type": "string", "format": "uri" }, + "commit": { + "type": "object", + "properties": { + "author": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "email": { "type": "string" }, + "date": { "type": "string", "format": "date-time" } + }, + "required": ["name", "email", "date"] + }, + "committer": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/git-user" }] + }, + "comment_count": { "type": "integer" }, + "message": { "type": "string" }, + "tree": { + "type": "object", + "properties": { + "sha": { "type": "string" }, + "url": { "type": "string", "format": "uri" } + }, + "required": ["sha", "url"] + }, + "url": { "type": "string", "format": "uri" }, + "verification": { "$ref": "#/components/schemas/verification" } + }, + "required": [ + "author", + "committer", + "comment_count", + "message", + "tree", + "url" + ] + }, + "author": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "committer": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/git-user" }] + }, + "parents": { + "type": "array", + "items": { + "type": "object", + "properties": { + "url": { "type": "string" }, + "html_url": { "type": "string" }, + "sha": { "type": "string" } + } + } + }, + "repository": { "$ref": "#/components/schemas/minimal-repository" }, + "score": { "type": "integer" }, + "node_id": { "type": "string" }, + "text_matches": { + "$ref": "#/components/schemas/search-result-text-matches" + } + }, + "required": [ + "sha", + "node_id", + "url", + "html_url", + "author", + "committer", + "parents", + "comments_url", + "commit", + "repository", + "score" + ] + }, + "issue-search-result-item": { + "title": "Issue Search Result Item", + "description": "Issue Search Result Item", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "repository_url": { "type": "string", "format": "uri" }, + "labels_url": { "type": "string" }, + "comments_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "number": { "type": "integer" }, + "title": { "type": "string" }, + "locked": { "type": "boolean" }, + "active_lock_reason": { "type": "string", "nullable": true }, + "assignees": { + "type": "array", + "items": { "$ref": "#/components/schemas/simple-user" }, + "nullable": true + }, + "user": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "labels": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string" }, + "name": { "type": "string" }, + "color": { "type": "string" }, + "default": { "type": "boolean" }, + "description": { "type": "string", "nullable": true } + } + } + }, + "state": { "type": "string" }, + "assignee": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "milestone": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/milestone" }] + }, + "comments": { "type": "integer" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "closed_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "text_matches": { + "$ref": "#/components/schemas/search-result-text-matches" + }, + "pull_request": { + "type": "object", + "properties": { + "merged_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "diff_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "html_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "patch_url": { + "type": "string", + "format": "uri", + "nullable": true + }, + "url": { "type": "string", "format": "uri", "nullable": true } + }, + "required": ["diff_url", "html_url", "patch_url", "url"] + }, + "body": { "type": "string" }, + "score": { "type": "integer" }, + "author_association": { "type": "string" }, + "draft": { "type": "boolean" }, + "repository": { "$ref": "#/components/schemas/repository" }, + "body_html": { "type": "string" }, + "body_text": { "type": "string" }, + "timeline_url": { "type": "string", "format": "uri" }, + "performed_via_github_app": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/integration" }] + } + }, + "required": [ + "assignee", + "closed_at", + "comments", + "comments_url", + "events_url", + "html_url", + "id", + "node_id", + "labels", + "labels_url", + "milestone", + "number", + "repository_url", + "state", + "locked", + "title", + "url", + "user", + "author_association", + "created_at", + "updated_at", + "score" + ] + }, + "label-search-result-item": { + "title": "Label Search Result Item", + "description": "Label Search Result Item", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "url": { "type": "string", "format": "uri" }, + "name": { "type": "string" }, + "color": { "type": "string" }, + "default": { "type": "boolean" }, + "description": { "type": "string", "nullable": true }, + "score": { "type": "integer" }, + "text_matches": { + "$ref": "#/components/schemas/search-result-text-matches" + } + }, + "required": [ + "id", + "node_id", + "url", + "name", + "color", + "default", + "description", + "score" + ] + }, + "repo-search-result-item": { + "title": "Repo Search Result Item", + "description": "Repo Search Result Item", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "name": { "type": "string" }, + "full_name": { "type": "string" }, + "owner": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/simple-user" }] + }, + "private": { "type": "boolean" }, + "html_url": { "type": "string", "format": "uri" }, + "description": { "type": "string", "nullable": true }, + "fork": { "type": "boolean" }, + "url": { "type": "string", "format": "uri" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "pushed_at": { "type": "string", "format": "date-time" }, + "homepage": { "type": "string", "format": "uri", "nullable": true }, + "size": { "type": "integer" }, + "stargazers_count": { "type": "integer" }, + "watchers_count": { "type": "integer" }, + "language": { "type": "string", "nullable": true }, + "forks_count": { "type": "integer" }, + "open_issues_count": { "type": "integer" }, + "master_branch": { "type": "string" }, + "default_branch": { "type": "string" }, + "score": { "type": "integer" }, + "forks_url": { "type": "string", "format": "uri" }, + "keys_url": { "type": "string" }, + "collaborators_url": { "type": "string" }, + "teams_url": { "type": "string", "format": "uri" }, + "hooks_url": { "type": "string", "format": "uri" }, + "issue_events_url": { "type": "string" }, + "events_url": { "type": "string", "format": "uri" }, + "assignees_url": { "type": "string" }, + "branches_url": { "type": "string" }, + "tags_url": { "type": "string", "format": "uri" }, + "blobs_url": { "type": "string" }, + "git_tags_url": { "type": "string" }, + "git_refs_url": { "type": "string" }, + "trees_url": { "type": "string" }, + "statuses_url": { "type": "string" }, + "languages_url": { "type": "string", "format": "uri" }, + "stargazers_url": { "type": "string", "format": "uri" }, + "contributors_url": { "type": "string", "format": "uri" }, + "subscribers_url": { "type": "string", "format": "uri" }, + "subscription_url": { "type": "string", "format": "uri" }, + "commits_url": { "type": "string" }, + "git_commits_url": { "type": "string" }, + "comments_url": { "type": "string" }, + "issue_comment_url": { "type": "string" }, + "contents_url": { "type": "string" }, + "compare_url": { "type": "string" }, + "merges_url": { "type": "string", "format": "uri" }, + "archive_url": { "type": "string" }, + "downloads_url": { "type": "string", "format": "uri" }, + "issues_url": { "type": "string" }, + "pulls_url": { "type": "string" }, + "milestones_url": { "type": "string" }, + "notifications_url": { "type": "string" }, + "labels_url": { "type": "string" }, + "releases_url": { "type": "string" }, + "deployments_url": { "type": "string", "format": "uri" }, + "git_url": { "type": "string" }, + "ssh_url": { "type": "string" }, + "clone_url": { "type": "string" }, + "svn_url": { "type": "string", "format": "uri" }, + "forks": { "type": "integer" }, + "open_issues": { "type": "integer" }, + "watchers": { "type": "integer" }, + "topics": { "type": "array", "items": { "type": "string" } }, + "mirror_url": { "type": "string", "format": "uri", "nullable": true }, + "has_issues": { "type": "boolean" }, + "has_projects": { "type": "boolean" }, + "has_pages": { "type": "boolean" }, + "has_wiki": { "type": "boolean" }, + "has_downloads": { "type": "boolean" }, + "archived": { "type": "boolean" }, + "disabled": { + "type": "boolean", + "description": "Returns whether or not this repository disabled." + }, + "license": { + "nullable": true, + "allOf": [{ "$ref": "#/components/schemas/license-simple" }] + }, + "permissions": { + "type": "object", + "properties": { + "admin": { "type": "boolean" }, + "pull": { "type": "boolean" }, + "push": { "type": "boolean" } + }, + "required": ["admin", "pull", "push"] + }, + "text_matches": { + "$ref": "#/components/schemas/search-result-text-matches" + }, + "temp_clone_token": { "type": "string" }, + "allow_merge_commit": { "type": "boolean" }, + "allow_squash_merge": { "type": "boolean" }, + "allow_rebase_merge": { "type": "boolean" }, + "delete_branch_on_merge": { "type": "boolean" } + }, + "required": [ + "archive_url", + "assignees_url", + "blobs_url", + "branches_url", + "collaborators_url", + "comments_url", + "commits_url", + "compare_url", + "contents_url", + "contributors_url", + "deployments_url", + "description", + "downloads_url", + "events_url", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", + "html_url", + "id", + "node_id", + "issue_comment_url", + "issue_events_url", + "issues_url", + "keys_url", + "labels_url", + "languages_url", + "merges_url", + "milestones_url", + "name", + "notifications_url", + "owner", + "private", + "pulls_url", + "releases_url", + "stargazers_url", + "statuses_url", + "subscribers_url", + "subscription_url", + "tags_url", + "teams_url", + "trees_url", + "url", + "clone_url", + "default_branch", + "forks", + "forks_count", + "git_url", + "has_downloads", + "has_issues", + "has_projects", + "has_wiki", + "has_pages", + "homepage", + "language", + "archived", + "disabled", + "mirror_url", + "open_issues", + "open_issues_count", + "license", + "pushed_at", + "size", + "ssh_url", + "stargazers_count", + "svn_url", + "watchers", + "watchers_count", + "created_at", + "updated_at", + "score" + ] + }, + "topic-search-result-item": { + "title": "Topic Search Result Item", + "description": "Topic Search Result Item", + "type": "object", + "properties": { + "name": { "type": "string" }, + "display_name": { "type": "string", "nullable": true }, + "short_description": { "type": "string", "nullable": true }, + "description": { "type": "string", "nullable": true }, + "created_by": { "type": "string", "nullable": true }, + "released": { "type": "string", "nullable": true }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "featured": { "type": "boolean" }, + "curated": { "type": "boolean" }, + "score": { "type": "integer" }, + "repository_count": { "type": "integer", "nullable": true }, + "logo_url": { "type": "string", "format": "uri", "nullable": true }, + "text_matches": { + "$ref": "#/components/schemas/search-result-text-matches" + }, + "related": { + "type": "array", + "nullable": true, + "items": { + "type": "object", + "properties": { + "topic_relation": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "name": { "type": "string" }, + "topic_id": { "type": "integer" }, + "relation_type": { "type": "string" } + } + } + } + } + }, + "aliases": { + "type": "array", + "nullable": true, + "items": { + "type": "object", + "properties": { + "topic_relation": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "name": { "type": "string" }, + "topic_id": { "type": "integer" }, + "relation_type": { "type": "string" } + } + } + } + } + } + }, + "required": [ + "name", + "display_name", + "short_description", + "description", + "created_by", + "released", + "created_at", + "updated_at", + "featured", + "curated", + "score" + ] + }, + "user-search-result-item": { + "title": "User Search Result Item", + "description": "User Search Result Item", + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string", "format": "uri" }, + "gravatar_id": { "type": "string", "nullable": true }, + "url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "followers_url": { "type": "string", "format": "uri" }, + "subscriptions_url": { "type": "string", "format": "uri" }, + "organizations_url": { "type": "string", "format": "uri" }, + "repos_url": { "type": "string", "format": "uri" }, + "received_events_url": { "type": "string", "format": "uri" }, + "type": { "type": "string" }, + "score": { "type": "integer" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "events_url": { "type": "string" }, + "public_repos": { "type": "integer" }, + "public_gists": { "type": "integer" }, + "followers": { "type": "integer" }, + "following": { "type": "integer" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "name": { "type": "string", "nullable": true }, + "bio": { "type": "string", "nullable": true }, + "email": { "type": "string", "format": "email", "nullable": true }, + "location": { "type": "string", "nullable": true }, + "site_admin": { "type": "boolean" }, + "hireable": { "type": "boolean", "nullable": true }, + "text_matches": { + "$ref": "#/components/schemas/search-result-text-matches" + }, + "blog": { "type": "string", "nullable": true }, + "company": { "type": "string", "nullable": true }, + "suspended_at": { + "type": "string", + "format": "date-time", + "nullable": true + } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url", + "score" + ] + }, + "private-user": { + "title": "Private User", + "description": "Private User", + "type": "object", + "properties": { + "login": { "type": "string", "example": "octocat" }, + "id": { "type": "integer", "example": 1 }, + "node_id": { "type": "string", "example": "MDQ6VXNlcjE=" }, + "avatar_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/images/error/octocat_happy.gif" + }, + "gravatar_id": { "type": "string", "example": "", "nullable": true }, + "url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat" + }, + "html_url": { + "type": "string", + "format": "uri", + "example": "https://github.com/octocat" + }, + "followers_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/followers" + }, + "following_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/following{/other_user}" + }, + "gists_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/gists{/gist_id}" + }, + "starred_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/starred{/owner}{/repo}" + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/subscriptions" + }, + "organizations_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/orgs" + }, + "repos_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/repos" + }, + "events_url": { + "type": "string", + "example": "https://api.github.com/users/octocat/events{/privacy}" + }, + "received_events_url": { + "type": "string", + "format": "uri", + "example": "https://api.github.com/users/octocat/received_events" + }, + "type": { "type": "string", "example": "User" }, + "site_admin": { "type": "boolean" }, + "name": { + "type": "string", + "example": "monalisa octocat", + "nullable": true + }, + "company": { + "type": "string", + "example": "GitHub", + "nullable": true + }, + "blog": { + "type": "string", + "example": "https://github.com/blog", + "nullable": true + }, + "location": { + "type": "string", + "example": "San Francisco", + "nullable": true + }, + "email": { + "type": "string", + "format": "email", + "example": "octocat@github.com", + "nullable": true + }, + "hireable": { "type": "boolean", "nullable": true }, + "bio": { + "type": "string", + "example": "There once was...", + "nullable": true + }, + "twitter_username": { + "type": "string", + "example": "monalisa", + "nullable": true + }, + "public_repos": { "type": "integer", "example": 2 }, + "public_gists": { "type": "integer", "example": 1 }, + "followers": { "type": "integer", "example": 20 }, + "following": { "type": "integer", "example": 0 }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2008-01-14T04:33:35Z" + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2008-01-14T04:33:35Z" + }, + "private_gists": { "type": "integer", "example": 81 }, + "total_private_repos": { "type": "integer", "example": 100 }, + "owned_private_repos": { "type": "integer", "example": 100 }, + "disk_usage": { "type": "integer", "example": 10000 }, + "collaborators": { "type": "integer", "example": 8 }, + "two_factor_authentication": { "type": "boolean", "example": true }, + "plan": { + "type": "object", + "properties": { + "collaborators": { "type": "integer" }, + "name": { "type": "string" }, + "space": { "type": "integer" }, + "private_repos": { "type": "integer" } + }, + "required": ["collaborators", "name", "space", "private_repos"] + }, + "suspended_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "business_plus": { "type": "boolean" }, + "ldap_dn": { "type": "string" } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url", + "bio", + "blog", + "company", + "email", + "followers", + "following", + "hireable", + "location", + "name", + "public_gists", + "public_repos", + "created_at", + "updated_at", + "collaborators", + "disk_usage", + "owned_private_repos", + "private_gists", + "total_private_repos", + "two_factor_authentication" + ] + }, + "public-user": { + "title": "Public User", + "description": "Public User", + "type": "object", + "properties": { + "login": { "type": "string" }, + "id": { "type": "integer" }, + "node_id": { "type": "string" }, + "avatar_url": { "type": "string", "format": "uri" }, + "gravatar_id": { "type": "string", "nullable": true }, + "url": { "type": "string", "format": "uri" }, + "html_url": { "type": "string", "format": "uri" }, + "followers_url": { "type": "string", "format": "uri" }, + "following_url": { "type": "string" }, + "gists_url": { "type": "string" }, + "starred_url": { "type": "string" }, + "subscriptions_url": { "type": "string", "format": "uri" }, + "organizations_url": { "type": "string", "format": "uri" }, + "repos_url": { "type": "string", "format": "uri" }, + "events_url": { "type": "string" }, + "received_events_url": { "type": "string", "format": "uri" }, + "type": { "type": "string" }, + "site_admin": { "type": "boolean" }, + "name": { "type": "string", "nullable": true }, + "company": { "type": "string", "nullable": true }, + "blog": { "type": "string", "nullable": true }, + "location": { "type": "string", "nullable": true }, + "email": { "type": "string", "format": "email", "nullable": true }, + "hireable": { "type": "boolean", "nullable": true }, + "bio": { "type": "string", "nullable": true }, + "twitter_username": { "type": "string", "nullable": true }, + "public_repos": { "type": "integer" }, + "public_gists": { "type": "integer" }, + "followers": { "type": "integer" }, + "following": { "type": "integer" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "plan": { + "type": "object", + "properties": { + "collaborators": { "type": "integer" }, + "name": { "type": "string" }, + "space": { "type": "integer" }, + "private_repos": { "type": "integer" } + }, + "required": ["collaborators", "name", "space", "private_repos"] + }, + "suspended_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "private_gists": { "type": "integer", "example": "0" }, + "total_private_repos": { "type": "integer", "example": "0" }, + "owned_private_repos": { "type": "integer", "example": "0" }, + "disk_usage": { "type": "integer", "example": "0" }, + "collaborators": { "type": "integer", "example": "0" } + }, + "required": [ + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", + "html_url", + "id", + "node_id", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", + "url", + "bio", + "blog", + "company", + "email", + "followers", + "following", + "hireable", + "location", + "name", + "public_gists", + "public_repos", + "created_at", + "updated_at" + ], + "additionalProperties": false + }, + "email": { + "title": "Email", + "description": "Email", + "oneOf": [ + { + "type": "object", + "properties": { + "email": { + "type": "string", + "format": "email", + "example": "octocat@github.com" + }, + "primary": { "type": "boolean", "example": true }, + "verified": { "type": "boolean", "example": true }, + "visibility": { + "type": "string", + "example": "public", + "nullable": true + } + }, + "required": ["email", "primary", "verified", "visibility"] + }, + { "type": "string" } + ] + }, + "gpg-key": { + "title": "GPG Key", + "description": "A unique encryption key", + "type": "object", + "properties": { + "id": { "type": "integer", "example": 3 }, + "primary_key_id": { "type": "integer", "nullable": true }, + "key_id": { "type": "string", "example": "3262EFF25BA0D270" }, + "public_key": { "type": "string", "example": "xsBNBFayYZ..." }, + "emails": { + "type": "array", + "example": [ + { + "email": "mastahyeti@users.noreply.github.com", + "verified": true + } + ], + "items": { + "type": "object", + "properties": { + "email": { "type": "string" }, + "verified": { "type": "boolean" } + } + } + }, + "subkeys": { + "type": "array", + "example": [ + { + "id": 4, + "primary_key_id": 3, + "key_id": "4A595D4C72EE49C7", + "public_key": "zsBNBFayYZ...", + "emails": [], + "subkeys": [], + "can_sign": false, + "can_encrypt_comms": true, + "can_encrypt_storage": true, + "can_certify": false, + "created_at": "2016-03-24T11:31:04-06:00", + "expires_at": null + } + ], + "items": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "primary_key_id": { "type": "integer" }, + "key_id": { "type": "string" }, + "public_key": { "type": "string" }, + "emails": { "type": "array", "items": {} }, + "subkeys": { "type": "array", "items": {} }, + "can_sign": { "type": "boolean" }, + "can_encrypt_comms": { "type": "boolean" }, + "can_encrypt_storage": { "type": "boolean" }, + "can_certify": { "type": "boolean" }, + "created_at": { "type": "string" }, + "expires_at": { "type": "string", "nullable": true }, + "raw_key": { "type": "string", "nullable": true } + } + } + }, + "can_sign": { "type": "boolean", "example": true }, + "can_encrypt_comms": { "type": "boolean" }, + "can_encrypt_storage": { "type": "boolean" }, + "can_certify": { "type": "boolean", "example": true }, + "created_at": { + "type": "string", + "format": "date-time", + "example": "2016-03-24T11:31:04-06:00" + }, + "expires_at": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "raw_key": { "type": "string", "nullable": true } + }, + "required": [ + "id", + "primary_key_id", + "key_id", + "raw_key", + "public_key", + "created_at", + "expires_at", + "can_sign", + "can_encrypt_comms", + "can_encrypt_storage", + "can_certify", + "emails", + "subkeys" + ] + }, + "key": { + "title": "Key", + "description": "Key", + "type": "object", + "properties": { + "key_id": { "type": "string" }, + "key": { "type": "string" }, + "id": { "type": "integer" }, + "url": { "type": "string" }, + "title": { "type": "string" }, + "created_at": { "type": "string", "format": "date-time" }, + "verified": { "type": "boolean" }, + "read_only": { "type": "boolean" } + } + }, + "marketplace-account": { + "title": "Marketplace Account", + "type": "object", + "properties": { + "url": { "type": "string", "format": "uri" }, + "id": { "type": "integer" }, + "type": { "type": "string" }, + "node_id": { "type": "string" }, + "login": { "type": "string" }, + "email": { "type": "string", "nullable": true, "format": "email" }, + "organization_billing_email": { + "type": "string", + "nullable": true, + "format": "email" + } + }, + "required": ["url", "id", "type", "login"] + }, + "user-marketplace-purchase": { + "title": "User Marketplace Purchase", + "description": "User Marketplace Purchase", + "type": "object", + "properties": { + "billing_cycle": { "type": "string", "example": "monthly" }, + "next_billing_date": { + "type": "string", + "format": "date-time", + "example": "2017-11-11T00:00:00Z", + "nullable": true + }, + "unit_count": { "type": "integer", "nullable": true }, + "on_free_trial": { "type": "boolean", "example": true }, + "free_trial_ends_on": { + "type": "string", + "format": "date-time", + "example": "2017-11-11T00:00:00Z", + "nullable": true + }, + "updated_at": { + "type": "string", + "format": "date-time", + "example": "2017-11-02T01:12:12Z", + "nullable": true + }, + "account": { "$ref": "#/components/schemas/marketplace-account" }, + "plan": { "$ref": "#/components/schemas/marketplace-listing-plan" } + }, + "required": [ + "billing_cycle", + "next_billing_date", + "unit_count", + "updated_at", + "on_free_trial", + "free_trial_ends_on", + "account", + "plan" + ] + }, + "starred-repository": { + "title": "Starred Repository", + "description": "Starred Repository", + "type": "object", + "properties": { + "starred_at": { "type": "string", "format": "date-time" }, + "repo": { "$ref": "#/components/schemas/repository" } + }, + "required": ["starred_at", "repo"] + }, + "hovercard": { + "title": "Hovercard", + "description": "Hovercard", + "type": "object", + "properties": { + "contexts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "message": { "type": "string" }, + "octicon": { "type": "string" } + }, + "required": ["message", "octicon"] + } + } + }, + "required": ["contexts"] + }, + "key-simple": { + "title": "Key Simple", + "description": "Key Simple", + "type": "object", + "properties": { + "id": { "type": "integer" }, + "key": { "type": "string" } + }, + "required": ["key", "id"] + } + }, + "examples": { + "integration": { + "value": { + "id": 1, + "slug": "octoapp", + "node_id": "MDExOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"] + } + }, + "integration-from-manifest": { + "value": { + "id": 1, + "slug": "octoapp", + "node_id": "MDxOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"], + "client_id": "Iv1.8a61f9b3a7aba766", + "client_secret": "1726be1638095a19edd134c77bde3aa2ece1e5d8", + "webhook_secret": "e340154128314309424b7c8e90325147d99fdafa", + "pem": "-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAuEPzOUE+kiEH1WLiMeBytTEF856j0hOVcSUSUkZxKvqczkWM\n9vo1gDyC7ZXhdH9fKh32aapba3RSsp4ke+giSmYTk2mGR538ShSDxh0OgpJmjiKP\nX0Bj4j5sFqfXuCtl9SkH4iueivv4R53ktqM+n6hk98l6hRwC39GVIblAh2lEM4L/\n6WvYwuQXPMM5OG2Ryh2tDZ1WS5RKfgq+9ksNJ5Q9UtqtqHkO+E63N5OK9sbzpUUm\noNaOl3udTlZD3A8iqwMPVxH4SxgATBPAc+bmjk6BMJ0qIzDcVGTrqrzUiywCTLma\nszdk8GjzXtPDmuBgNn+o6s02qVGpyydgEuqmTQIDAQABAoIBACL6AvkjQVVLn8kJ\ndBYznJJ4M8ECo+YEgaFwgAHODT0zRQCCgzd+Vxl4YwHmKV2Lr+y2s0drZt8GvYva\nKOK8NYYZyi15IlwFyRXmvvykF1UBpSXluYFDH7KaVroWMgRreHcIys5LqVSIb6Bo\ngDmK0yBLPp8qR29s2b7ScZRtLaqGJiX+j55rNzrZwxHkxFHyG9OG+u9IsBElcKCP\nkYCVE8ZdYexfnKOZbgn2kZB9qu0T/Mdvki8yk3I2bI6xYO24oQmhnT36qnqWoCBX\nNuCNsBQgpYZeZET8mEAUmo9d+ABmIHIvSs005agK8xRaP4+6jYgy6WwoejJRF5yd\nNBuF7aECgYEA50nZ4FiZYV0vcJDxFYeY3kYOvVuKn8OyW+2rg7JIQTremIjv8FkE\nZnwuF9ZRxgqLxUIfKKfzp/5l5LrycNoj2YKfHKnRejxRWXqG+ZETfxxlmlRns0QG\nJ4+BYL0CoanDSeA4fuyn4Bv7cy/03TDhfg/Uq0Aeg+hhcPE/vx3ebPsCgYEAy/Pv\neDLssOSdeyIxf0Brtocg6aPXIVaLdus+bXmLg77rJIFytAZmTTW8SkkSczWtucI3\nFI1I6sei/8FdPzAl62/JDdlf7Wd9K7JIotY4TzT7Tm7QU7xpfLLYIP1bOFjN81rk\n77oOD4LsXcosB/U6s1blPJMZ6AlO2EKs10UuR1cCgYBipzuJ2ADEaOz9RLWwi0AH\nPza2Sj+c2epQD9ZivD7Zo/Sid3ZwvGeGF13JyR7kLEdmAkgsHUdu1rI7mAolXMaB\n1pdrsHureeLxGbRM6za3tzMXWv1Il7FQWoPC8ZwXvMOR1VQDv4nzq7vbbA8z8c+c\n57+8tALQHOTDOgQIzwK61QKBgERGVc0EJy4Uag+VY8J4m1ZQKBluqo7TfP6DQ7O8\nM5MX73maB/7yAX8pVO39RjrhJlYACRZNMbK+v/ckEQYdJSSKmGCVe0JrGYDuPtic\nI9+IGfSorf7KHPoMmMN6bPYQ7Gjh7a++tgRFTMEc8956Hnt4xGahy9NcglNtBpVN\n6G8jAoGBAMCh028pdzJa/xeBHLLaVB2sc0Fe7993WlsPmnVE779dAz7qMscOtXJK\nfgtriltLSSD6rTA9hUAsL/X62rY0wdXuNdijjBb/qvrx7CAV6i37NK1CjABNjsfG\nZM372Ac6zc1EqSrid2IjET1YqyIW2KGLI1R2xbQc98UGlt48OdWu\n-----END RSA PRIVATE KEY-----\n" + } + }, + "webhook-config": { + "value": { + "content_type": "json", + "insecure_ssl": "0", + "secret": "********", + "url": "https://example.com/webhook" + } + }, + "base-installation-items": { + "value": [ + { + "id": 1, + "account": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "access_tokens_url": "https://api.github.com/installations/1/access_tokens", + "repositories_url": "https://api.github.com/installation/repositories", + "html_url": "https://github.com/organizations/github/settings/installations/1", + "app_id": 1, + "target_id": 1, + "target_type": "Organization", + "permissions": { + "checks": "write", + "metadata": "read", + "contents": "read" + }, + "events": ["push", "pull_request"], + "single_file_name": "config.yaml", + "has_multiple_single_files": true, + "single_file_paths": ["config.yml", ".github/issue_TEMPLATE.md"], + "repository_selection": "selected", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "app_slug": "github-actions" + } + ] + }, + "base-installation": { + "value": { + "id": 1, + "account": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "access_tokens_url": "https://api.github.com/installations/1/access_tokens", + "repositories_url": "https://api.github.com/installation/repositories", + "html_url": "https://github.com/organizations/github/settings/installations/1", + "app_id": 1, + "target_id": 1, + "target_type": "Organization", + "permissions": { + "checks": "write", + "metadata": "read", + "contents": "read" + }, + "events": ["push", "pull_request"], + "single_file_name": "config.yaml", + "has_multiple_single_files": true, + "single_file_paths": ["config.yml", ".github/issue_TEMPLATE.md"], + "repository_selection": "selected", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "app_slug": "github-actions" + } + }, + "installation-token": { + "value": { + "token": "v1.1f699f1069f60xxx", + "expires_at": "2016-07-11T22:14:10Z", + "permissions": { "issues": "write", "contents": "read" }, + "repository_selection": "selected", + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ] + } + }, + "application-grant-items": { + "value": [ + { + "id": 1, + "url": "https://api.github.com/applications/grants/1", + "app": { + "url": "http://my-github-app.com", + "name": "my github app", + "client_id": "abcde12345fghij67890" + }, + "created_at": "2011-09-06T17:26:27Z", + "updated_at": "2011-09-06T20:39:23Z", + "scopes": ["public_repo"] + } + ] + }, + "application-grant": { + "value": { + "id": 1, + "url": "https://api.github.com/applications/grants/1", + "app": { + "url": "http://my-github-app.com", + "name": "my github app", + "client_id": "abcde12345fghij67890" + }, + "created_at": "2011-09-06T17:26:27Z", + "updated_at": "2011-09-06T20:39:23Z", + "scopes": ["public_repo"] + } + }, + "authorization-with-user": { + "value": { + "id": 1, + "url": "https://api.github.com/authorizations/1", + "scopes": ["public_repo"], + "token": "abcdefgh12345678", + "token_last_eight": "12345678", + "hashed_token": "25f94a2a5c7fbaf499c665bc73d67c1c87e496da8985131633ee0a95819db2e8", + "app": { + "url": "http://my-github-app.com", + "name": "my github app", + "client_id": "abcde12345fghij67890" + }, + "note": "optional note", + "note_url": "http://optional/note/url", + "updated_at": "2011-09-06T20:39:23Z", + "created_at": "2011-09-06T17:26:27Z", + "fingerprint": "jklmnop12345678", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "authorization-items": { + "value": [ + { + "id": 1, + "url": "https://api.github.com/authorizations/1", + "scopes": ["public_repo"], + "token": "", + "token_last_eight": "12345678", + "hashed_token": "25f94a2a5c7fbaf499c665bc73d67c1c87e496da8985131633ee0a95819db2e8", + "app": { + "url": "http://my-github-app.com", + "name": "my github app", + "client_id": "abcde12345fghij67890" + }, + "note": "optional note", + "note_url": "http://optional/note/url", + "updated_at": "2011-09-06T20:39:23Z", + "created_at": "2011-09-06T17:26:27Z", + "fingerprint": "jklmnop12345678" + } + ] + }, + "authorization": { + "value": { + "id": 1, + "url": "https://api.github.com/authorizations/1", + "scopes": ["public_repo"], + "token": "abcdefgh12345678", + "token_last_eight": "12345678", + "hashed_token": "25f94a2a5c7fbaf499c665bc73d67c1c87e496da8985131633ee0a95819db2e8", + "app": { + "url": "http://my-github-app.com", + "name": "my github app", + "client_id": "abcde12345fghij67890" + }, + "note": "optional note", + "note_url": "http://optional/note/url", + "updated_at": "2011-09-06T20:39:23Z", + "created_at": "2011-09-06T17:26:27Z", + "fingerprint": "" + } + }, + "authorization-response-if-returning-an-existing-token-2": { + "value": { + "id": 1, + "url": "https://api.github.com/authorizations/1", + "scopes": ["public_repo"], + "token": "", + "token_last_eight": "12345678", + "hashed_token": "25f94a2a5c7fbaf499c665bc73d67c1c87e496da8985131633ee0a95819db2e8", + "app": { + "url": "http://my-github-app.com", + "name": "my github app", + "client_id": "abcde12345fghij67890" + }, + "note": "optional note", + "note_url": "http://optional/note/url", + "updated_at": "2011-09-06T20:39:23Z", + "created_at": "2011-09-06T17:26:27Z", + "fingerprint": "" + } + }, + "authorization-response-if-returning-an-existing-token": { + "value": { + "id": 1, + "url": "https://api.github.com/authorizations/1", + "scopes": ["public_repo"], + "token": "", + "token_last_eight": "12345678", + "hashed_token": "25f94a2a5c7fbaf499c665bc73d67c1c87e496da8985131633ee0a95819db2e8", + "app": { + "url": "http://my-github-app.com", + "name": "my github app", + "client_id": "abcde12345fghij67890" + }, + "note": "optional note", + "note_url": "http://optional/note/url", + "updated_at": "2011-09-06T20:39:23Z", + "created_at": "2011-09-06T17:26:27Z", + "fingerprint": "jklmnop12345678" + } + }, + "authorization-3": { + "value": { + "id": 1, + "url": "https://api.github.com/authorizations/1", + "scopes": ["public_repo"], + "token": "abcdefgh12345678", + "token_last_eight": "12345678", + "hashed_token": "25f94a2a5c7fbaf499c665bc73d67c1c87e496da8985131633ee0a95819db2e8", + "app": { + "url": "http://my-github-app.com", + "name": "my github app", + "client_id": "abcde12345fghij67890" + }, + "note": "optional note", + "note_url": "http://optional/note/url", + "updated_at": "2011-09-06T20:39:23Z", + "created_at": "2011-09-06T17:26:27Z", + "fingerprint": "jklmnop12345678" + } + }, + "authorization-2": { + "value": { + "id": 1, + "url": "https://api.github.com/authorizations/1", + "scopes": ["public_repo"], + "token": "", + "token_last_eight": "12345678", + "hashed_token": "25f94a2a5c7fbaf499c665bc73d67c1c87e496da8985131633ee0a95819db2e8", + "app": { + "url": "http://my-github-app.com", + "name": "my github app", + "client_id": "abcde12345fghij67890" + }, + "note": "optional note", + "note_url": "http://optional/note/url", + "updated_at": "2011-09-06T20:39:23Z", + "created_at": "2011-09-06T17:26:27Z", + "fingerprint": "jklmnop12345678" + } + }, + "code-of-conduct-simple-items": { + "value": [ + { + "key": "citizen_code_of_conduct", + "name": "Citizen Code of Conduct", + "url": "https://api.github.com/codes_of_conduct/citizen_code_of_conduct", + "html_url": "http://citizencodeofconduct.org/" + }, + { + "key": "contributor_covenant", + "name": "Contributor Covenant", + "url": "https://api.github.com/codes_of_conduct/contributor_covenant", + "html_url": "https://www.contributor-covenant.org/version/2/0/code_of_conduct/" + } + ] + }, + "code-of-conduct": { + "value": { + "key": "contributor_covenant", + "name": "Contributor Covenant", + "url": "https://api.github.com/codes_of_conduct/contributor_covenant", + "body": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include:\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include:\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\n to any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\n posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [EMAIL]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]\n\n[homepage]: http://contributor-covenant.org\n[version]: http://contributor-covenant.org/version/1/4/\n", + "html_url": "http://contributor-covenant.org/version/1/4/" + } + }, + "content-reference-attachment": { + "value": { + "id": 101, + "title": "[A-1234] Error found in core/models.py file'", + "body": "You have used an email that already exists for the user_email_uniq field.\n ## DETAILS:\n\nThe (email)=(Octocat@github.com) already exists.\n\n The error was found in core/models.py in get_or_create_user at line 62.\n\n self.save()" + } + }, + "actions-enterprise-permissions": { + "value": { + "enabled_organizations": "all", + "allowed_actions": "selected", + "selected_actions_url": "https://api.github.com/enterprises/2/actions/permissions/selected-actions" + } + }, + "organization-targets": { + "value": { + "total_count": 1, + "organizations": [ + { + "login": "octocat", + "id": 161335, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "url": "https://api.github.com/orgs/octo-org", + "repos_url": "https://api.github.com/orgs/octo-org/repos", + "events_url": "https://api.github.com/orgs/octo-org/events", + "hooks_url": "https://api.github.com/orgs/octo-org/hooks", + "issues_url": "https://api.github.com/orgs/octo-org/issues", + "members_url": "https://api.github.com/orgs/octo-org/members{/member}", + "public_members_url": "https://api.github.com/orgs/octo-org/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + } + ] + } + }, + "selected-actions": { + "value": { + "github_owned_allowed": true, + "verified_allowed": false, + "patterns_allowed": ["monalisa/octocat@*", "docker/*"] + } + }, + "runner-groups-enterprise": { + "value": { + "total_count": 3, + "runner_groups": [ + { + "id": 1, + "name": "Default", + "visibility": "all", + "default": true, + "runners_url": "https://api.github.com/enterprises/octo-corp/actions/runner_groups/1/runners" + }, + { + "id": 2, + "name": "octo-runner-group", + "visibility": "selected", + "default": false, + "selected_organizations_url": "https://api.github.com/enterprises/octo-corp/actions/runner_groups/2/organizations", + "runners_url": "https://api.github.com/enterprises/octo-corp/actions/runner_groups/2/runners" + }, + { + "id": 3, + "name": "expensive-hardware", + "visibility": "private", + "default": false, + "runners_url": "https://api.github.com/enterprises/octo-corp/actions/runner_groups/3/runners" + } + ] + } + }, + "runner-group-enterprise": { + "value": { + "id": 2, + "name": "octo-runner-group", + "visibility": "selected", + "default": false, + "selected_organizations_url": "https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/organizations", + "runners_url": "https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/runners" + } + }, + "runner-group-update-enterprise": { + "value": { + "id": 2, + "name": "Expensive hardware runners", + "visibility": "selected", + "default": false, + "selected_organizations_url": "https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/organizations", + "runners_url": "https://api.github.com/enterprises/octo-corp/actions/runner-groups/2/runners" + } + }, + "runner-paginated": { + "value": { + "total_count": 2, + "runners": [ + { + "id": 23, + "name": "linux_runner", + "os": "linux", + "status": "online", + "busy": true, + "labels": [ + { "id": 5, "name": "self-hosted", "type": "read-only" }, + { "id": 7, "name": "X64", "type": "read-only" }, + { "id": 11, "name": "Linux", "type": "read-only" } + ] + }, + { + "id": 24, + "name": "mac_runner", + "os": "macos", + "status": "offline", + "busy": false, + "labels": [ + { "id": 5, "name": "self-hosted", "type": "read-only" }, + { "id": 7, "name": "X64", "type": "read-only" }, + { "id": 20, "name": "macOS", "type": "read-only" }, + { "id": 21, "name": "no-gpu", "type": "custom" } + ] + } + ] + } + }, + "runner-application-items": { + "value": [ + { + "os": "osx", + "architecture": "x64", + "download_url": "https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-osx-x64-2.164.0.tar.gz", + "filename": "actions-runner-osx-x64-2.164.0.tar.gz" + }, + { + "os": "linux", + "architecture": "x64", + "download_url": "https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-x64-2.164.0.tar.gz", + "filename": "actions-runner-linux-x64-2.164.0.tar.gz" + }, + { + "os": "linux", + "architecture": "arm", + "download_url": "https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm-2.164.0.tar.gz", + "filename": "actions-runner-linux-arm-2.164.0.tar.gz" + }, + { + "os": "win", + "architecture": "x64", + "download_url": "https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-win-x64-2.164.0.zip", + "filename": "actions-runner-win-x64-2.164.0.zip" + }, + { + "os": "linux", + "architecture": "arm64", + "download_url": "https://github.com/actions/runner/releases/download/v2.164.0/actions-runner-linux-arm64-2.164.0.tar.gz", + "filename": "actions-runner-linux-arm64-2.164.0.tar.gz" + } + ] + }, + "authentication-token": { + "value": { + "token": "LLBF3JGZDX3P5PMEXLND6TS6FCWO6", + "expires_at": "2020-01-22T12:13:35.123-08:00" + } + }, + "authentication-token-2": { + "value": { + "token": "AABF3JGZDX3P5PMEXLND6TS6FCWO6", + "expires_at": "2020-01-29T12:13:35.123-08:00" + } + }, + "runner": { + "value": { + "id": 23, + "name": "MBP", + "os": "macos", + "status": "online", + "busy": true, + "labels": [ + { "id": 5, "name": "self-hosted", "type": "read-only" }, + { "id": 7, "name": "X64", "type": "read-only" }, + { "id": 20, "name": "macOS", "type": "read-only" }, + { "id": 21, "name": "no-gpu", "type": "custom" } + ] + } + }, + "actions-billing-usage": { + "value": { + "total_minutes_used": 305, + "total_paid_minutes_used": 0, + "included_minutes": 3000, + "minutes_used_breakdown": { + "UBUNTU": 205, + "MACOS": 10, + "WINDOWS": 90 + } + } + }, + "packages-billing-usage": { + "value": { + "total_gigabytes_bandwidth_used": 50, + "total_paid_gigabytes_bandwidth_used": 40, + "included_gigabytes_bandwidth": 10 + } + }, + "combined-billing-usage": { + "value": { + "days_left_in_billing_cycle": 20, + "estimated_paid_storage_for_month": 15, + "estimated_storage_for_month": 40 + } + }, + "feed": { + "value": { + "timeline_url": "https://github.com/timeline", + "user_url": "https://github.com/{user}", + "current_user_public_url": "https://github.com/octocat", + "current_user_url": "https://github.com/octocat.private?token=abc123", + "current_user_actor_url": "https://github.com/octocat.private.actor?token=abc123", + "current_user_organization_url": "", + "current_user_organization_urls": [ + "https://github.com/organizations/github/octocat.private.atom?token=abc123" + ], + "security_advisories_url": "https://github.com/security-advisories", + "_links": { + "timeline": { + "href": "https://github.com/timeline", + "type": "application/atom+xml" + }, + "user": { + "href": "https://github.com/{user}", + "type": "application/atom+xml" + }, + "current_user_public": { + "href": "https://github.com/octocat", + "type": "application/atom+xml" + }, + "current_user": { + "href": "https://github.com/octocat.private?token=abc123", + "type": "application/atom+xml" + }, + "current_user_actor": { + "href": "https://github.com/octocat.private.actor?token=abc123", + "type": "application/atom+xml" + }, + "current_user_organization": { "href": "", "type": "" }, + "current_user_organizations": [ + { + "href": "https://github.com/organizations/github/octocat.private.atom?token=abc123", + "type": "application/atom+xml" + } + ], + "security_advisories": { + "href": "https://github.com/security-advisories", + "type": "application/atom+xml" + } + } + } + }, + "base-gist-items": { + "value": [ + { + "url": "https://api.github.com/gists/aa5a315d61ae9438b18d", + "forks_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/forks", + "commits_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/commits", + "id": "aa5a315d61ae9438b18d", + "node_id": "MDQ6R2lzdGFhNWEzMTVkNjFhZTk0MzhiMThk", + "git_pull_url": "https://gist.github.com/aa5a315d61ae9438b18d.git", + "git_push_url": "https://gist.github.com/aa5a315d61ae9438b18d.git", + "html_url": "https://gist.github.com/aa5a315d61ae9438b18d", + "files": { + "hello_world.rb": { + "filename": "hello_world.rb", + "type": "application/x-ruby", + "language": "Ruby", + "raw_url": "https://gist.githubusercontent.com/octocat/6cad326836d38bd3a7ae/raw/db9c55113504e46fa076e7df3a04ce592e2e86d8/hello_world.rb", + "size": 167 + } + }, + "public": true, + "created_at": "2010-04-14T02:15:15Z", + "updated_at": "2011-06-20T11:34:15Z", + "description": "Hello World Examples", + "comments": 0, + "user": null, + "comments_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/comments/", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "truncated": false + } + ] + }, + "gist": { + "value": { + "url": "https://api.github.com/gists/aa5a315d61ae9438b18d", + "forks_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/forks", + "commits_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/commits", + "id": "aa5a315d61ae9438b18d", + "node_id": "MDQ6R2lzdGFhNWEzMTVkNjFhZTk0MzhiMThk", + "git_pull_url": "https://gist.github.com/aa5a315d61ae9438b18d.git", + "git_push_url": "https://gist.github.com/aa5a315d61ae9438b18d.git", + "html_url": "https://gist.github.com/aa5a315d61ae9438b18d", + "created_at": "2010-04-14T02:15:15Z", + "updated_at": "2011-06-20T11:34:15Z", + "description": "Hello World Examples", + "comments": 0, + "comments_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/comments/" + } + }, + "gist-3": { + "value": { + "url": "https://api.github.com/gists/aa5a315d61ae9438b18d", + "forks_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/forks", + "commits_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/commits", + "id": "aa5a315d61ae9438b18d", + "node_id": "MDQ6R2lzdGFhNWEzMTVkNjFhZTk0MzhiMThk", + "git_pull_url": "https://gist.github.com/aa5a315d61ae9438b18d.git", + "git_push_url": "https://gist.github.com/aa5a315d61ae9438b18d.git", + "html_url": "https://gist.github.com/aa5a315d61ae9438b18d", + "created_at": "2010-04-14T02:15:15Z", + "updated_at": "2011-06-20T11:34:15Z", + "description": "Hello World Examples", + "comments": 0, + "comments_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/comments/" + } + }, + "gist-comment-items": { + "value": [ + { + "id": 1, + "node_id": "MDExOkdpc3RDb21tZW50MQ==", + "url": "https://api.github.com/gists/a6db0bec360bb87e9418/comments/1", + "body": "Just commenting for the sake of commenting", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-18T23:23:56Z", + "updated_at": "2011-04-18T23:23:56Z", + "author_association": "collaborator" + } + ] + }, + "gist-comment": { + "value": { + "id": 1, + "node_id": "MDExOkdpc3RDb21tZW50MQ==", + "url": "https://api.github.com/gists/a6db0bec360bb87e9418/comments/1", + "body": "Just commenting for the sake of commenting", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-18T23:23:56Z", + "updated_at": "2011-04-18T23:23:56Z", + "author_association": "collaborator" + } + }, + "gist-commit-items": { + "value": [ + { + "url": "https://api.github.com/gists/aa5a315d61ae9438b18d/57a7f021a713b1c5a6a199b54cc514735d2d462f", + "version": "57a7f021a713b1c5a6a199b54cc514735d2d462f", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "change_status": { "deletions": 0, "additions": 180, "total": 180 }, + "committed_at": "2010-04-14T02:15:15Z" + } + ] + }, + "gist-fork-items": { + "value": [ + { + "url": "https://api.github.com/gists/dee9c42e4998ce2ea439", + "id": "dee9c42e4998ce2ea439", + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z" + } + ] + }, + "base-gist": { + "value": { + "url": "https://api.github.com/gists/aa5a315d61ae9438b18d", + "forks_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/forks", + "commits_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/commits", + "id": "aa5a315d61ae9438b18d", + "node_id": "MDQ6R2lzdGFhNWEzMTVkNjFhZTk0MzhiMThk", + "git_pull_url": "https://gist.github.com/aa5a315d61ae9438b18d.git", + "git_push_url": "https://gist.github.com/aa5a315d61ae9438b18d.git", + "html_url": "https://gist.github.com/aa5a315d61ae9438b18d", + "files": { + "hello_world.rb": { + "filename": "hello_world.rb", + "type": "application/x-ruby", + "language": "Ruby", + "raw_url": "https://gist.githubusercontent.com/octocat/6cad326836d38bd3a7ae/raw/db9c55113504e46fa076e7df3a04ce592e2e86d8/hello_world.rb", + "size": 167 + } + }, + "public": true, + "created_at": "2010-04-14T02:15:15Z", + "updated_at": "2011-06-20T11:34:15Z", + "description": "Hello World Examples", + "comments": 0, + "user": null, + "comments_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/comments/", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "truncated": false + } + }, + "gist-2": { + "value": { + "url": "https://api.github.com/gists/aa5a315d61ae9438b18d/57a7f021a713b1c5a6a199b54cc514735d2d462f", + "forks_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/forks", + "commits_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/commits", + "id": "aa5a315d61ae9438b18d", + "node_id": "MDQ6R2lzdGFhNWEzMTVkNjFhZTk0MzhiMThk", + "git_pull_url": "https://gist.github.com/aa5a315d61ae9438b18d.git", + "git_push_url": "https://gist.github.com/aa5a315d61ae9438b18d.git", + "html_url": "https://gist.github.com/aa5a315d61ae9438b18d", + "created_at": "2010-04-14T02:15:15Z", + "updated_at": "2011-06-20T11:34:15Z", + "description": "Hello World Examples", + "comments": 0, + "comments_url": "https://api.github.com/gists/aa5a315d61ae9438b18d/comments/" + } + }, + "gitignore-template": { + "value": { + "name": "C", + "source": "# Object files\n*.o\n\n# Libraries\n*.lib\n*.a\n\n# Shared objects (inc. Windows DLLs)\n*.dll\n*.so\n*.so.*\n*.dylib\n\n# Executables\n*.exe\n*.out\n*.app\n" + } + }, + "repository-paginated-2": { + "value": { + "total_count": 1, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ] + } + }, + "issue-with-repo-items": { + "value": [ + { + "id": 1, + "node_id": "MDU6SXNzdWUx", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "repository_url": "https://api.github.com/repos/octocat/Hello-World", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/labels{/name}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments", + "events_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/events", + "html_url": "https://github.com/octocat/Hello-World/issues/1347", + "number": 1347, + "state": "open", + "title": "Found a bug", + "body": "I'm having a problem with this.", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + ], + "assignee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + }, + "locked": true, + "active_lock_reason": "too heated", + "comments": 0, + "pull_request": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", + "html_url": "https://github.com/octocat/Hello-World/pull/1347", + "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", + "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch" + }, + "closed_at": null, + "created_at": "2011-04-22T13:33:48Z", + "updated_at": "2011-04-22T13:33:48Z", + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + }, + "author_association": "collaborator" + } + ] + }, + "license-simple-items": { + "value": [ + { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZW1pdA==" + }, + { + "key": "lgpl-3.0", + "name": "GNU Lesser General Public License v3.0", + "spdx_id": "LGPL-3.0", + "url": "https://api.github.com/licenses/lgpl-3.0", + "node_id": "MDc6TGljZW5zZW1pdA==" + }, + { + "key": "mpl-2.0", + "name": "Mozilla Public License 2.0", + "spdx_id": "MPL-2.0", + "url": "https://api.github.com/licenses/mpl-2.0", + "node_id": "MDc6TGljZW5zZW1pdA==" + }, + { + "key": "agpl-3.0", + "name": "GNU Affero General Public License v3.0", + "spdx_id": "AGPL-3.0", + "url": "https://api.github.com/licenses/agpl-3.0", + "node_id": "MDc6TGljZW5zZW1pdA==" + }, + { + "key": "unlicense", + "name": "The Unlicense", + "spdx_id": "Unlicense", + "url": "https://api.github.com/licenses/unlicense", + "node_id": "MDc6TGljZW5zZW1pdA==" + }, + { + "key": "apache-2.0", + "name": "Apache License 2.0", + "spdx_id": "Apache-2.0", + "url": "https://api.github.com/licenses/apache-2.0", + "node_id": "MDc6TGljZW5zZW1pdA==" + }, + { + "key": "gpl-3.0", + "name": "GNU General Public License v3.0", + "spdx_id": "GPL-3.0", + "url": "https://api.github.com/licenses/gpl-3.0", + "node_id": "MDc6TGljZW5zZW1pdA==" + } + ] + }, + "license": { + "value": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "http://choosealicense.com/licenses/mit/", + "description": "A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty.", + "implementation": "Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.", + "permissions": [ + "commercial-use", + "modifications", + "distribution", + "sublicense", + "private-use" + ], + "conditions": ["include-copyright"], + "limitations": ["no-liability"], + "body": "\n\nThe MIT License (MIT)\n\nCopyright (c) [year] [fullname]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n", + "featured": true + } + }, + "marketplace-purchase": { + "value": { + "url": "https://api.github.com/orgs/github", + "type": "Organization", + "id": 4, + "login": "github", + "organization_billing_email": "billing@github.com", + "marketplace_pending_change": { + "effective_date": "2017-11-11T00:00:00Z", + "unit_count": null, + "id": 77, + "plan": { + "url": "https://api.github.com/marketplace_listing/plans/1111", + "accounts_url": "https://api.github.com/marketplace_listing/plans/1111/accounts", + "id": 1111, + "number": 2, + "name": "Startup", + "description": "A professional-grade CI solution", + "monthly_price_in_cents": 699, + "yearly_price_in_cents": 7870, + "price_model": "flat-rate", + "has_free_trial": true, + "state": "published", + "unit_name": null, + "bullets": [ + "Up to 10 private repositories", + "3 concurrent builds" + ] + } + }, + "marketplace_purchase": { + "billing_cycle": "monthly", + "next_billing_date": "2017-11-11T00:00:00Z", + "unit_count": null, + "on_free_trial": true, + "free_trial_ends_on": "2017-11-11T00:00:00Z", + "updated_at": "2017-11-02T01:12:12Z", + "plan": { + "url": "https://api.github.com/marketplace_listing/plans/1313", + "accounts_url": "https://api.github.com/marketplace_listing/plans/1313/accounts", + "id": 1313, + "number": 3, + "name": "Pro", + "description": "A professional-grade CI solution", + "monthly_price_in_cents": 1099, + "yearly_price_in_cents": 11870, + "price_model": "flat-rate", + "has_free_trial": true, + "unit_name": null, + "state": "published", + "bullets": [ + "Up to 25 private repositories", + "11 concurrent builds" + ] + } + } + } + }, + "marketplace-listing-plan-items": { + "value": [ + { + "url": "https://api.github.com/marketplace_listing/plans/1313", + "accounts_url": "https://api.github.com/marketplace_listing/plans/1313/accounts", + "id": 1313, + "number": 3, + "name": "Pro", + "description": "A professional-grade CI solution", + "monthly_price_in_cents": 1099, + "yearly_price_in_cents": 11870, + "price_model": "flat-rate", + "has_free_trial": true, + "unit_name": null, + "state": "published", + "bullets": ["Up to 25 private repositories", "11 concurrent builds"] + } + ] + }, + "marketplace-purchase-items": { + "value": [ + { + "url": "https://api.github.com/orgs/github", + "type": "Organization", + "id": 4, + "login": "github", + "organization_billing_email": "billing@github.com", + "marketplace_pending_change": { + "effective_date": "2017-11-11T00:00:00Z", + "unit_count": null, + "id": 77, + "plan": { + "url": "https://api.github.com/marketplace_listing/plans/1111", + "accounts_url": "https://api.github.com/marketplace_listing/plans/1111/accounts", + "id": 1111, + "number": 2, + "name": "Startup", + "description": "A professional-grade CI solution", + "monthly_price_in_cents": 699, + "yearly_price_in_cents": 7870, + "price_model": "flat-rate", + "has_free_trial": true, + "state": "published", + "unit_name": null, + "bullets": [ + "Up to 10 private repositories", + "3 concurrent builds" + ] + } + }, + "marketplace_purchase": { + "billing_cycle": "monthly", + "next_billing_date": "2017-11-11T00:00:00Z", + "unit_count": null, + "on_free_trial": true, + "free_trial_ends_on": "2017-11-11T00:00:00Z", + "updated_at": "2017-11-02T01:12:12Z", + "plan": { + "url": "https://api.github.com/marketplace_listing/plans/1313", + "accounts_url": "https://api.github.com/marketplace_listing/plans/1313/accounts", + "id": 1313, + "number": 3, + "name": "Pro", + "description": "A professional-grade CI solution", + "monthly_price_in_cents": 1099, + "yearly_price_in_cents": 11870, + "price_model": "flat-rate", + "has_free_trial": true, + "unit_name": null, + "state": "published", + "bullets": [ + "Up to 25 private repositories", + "11 concurrent builds" + ] + } + } + } + ] + }, + "api-overview": { + "value": { + "verifiable_password_authentication": true, + "ssh_key_fingerprints": { + "MD5_RSA": "16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48", + "MD5_DSA": "ad:1c:08:a4:40:e3:6f:9c:f5:66:26:5d:4b:33:5d:8c", + "SHA256_RSA": "nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8", + "SHA256_DSA": "br9IjFspm1vxR3iA35FWE+4VTyz1hYVLIE2t1/CeyWQ" + }, + "hooks": ["192.30.252.0/22"], + "web": ["192.30.252.0/22", "185.199.108.0/22"], + "api": ["192.30.252.0/22", "185.199.108.0/22"], + "git": ["192.30.252.0/22"], + "pages": ["192.30.252.153/32", "192.30.252.154/32"], + "importer": ["54.158.161.132", "54.226.70.38"] + } + }, + "thread-items": { + "value": [ + { + "id": "1", + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "subject": { + "title": "Greetings", + "url": "https://api.github.com/repos/octokit/octokit.rb/issues/123", + "latest_comment_url": "https://api.github.com/repos/octokit/octokit.rb/issues/comments/123", + "type": "Issue" + }, + "reason": "subscribed", + "unread": true, + "updated_at": "2014-11-07T22:01:45Z", + "last_read_at": "2014-11-07T22:01:45Z", + "url": "https://api.github.com/notifications/threads/1" + } + ] + }, + "thread": { + "value": { + "id": "1", + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "subject": { + "title": "Greetings", + "url": "https://api.github.com/repos/octokit/octokit.rb/issues/123", + "latest_comment_url": "https://api.github.com/repos/octokit/octokit.rb/issues/comments/123", + "type": "Issue" + }, + "reason": "subscribed", + "unread": true, + "updated_at": "2014-11-07T22:01:45Z", + "last_read_at": "2014-11-07T22:01:45Z", + "url": "https://api.github.com/notifications/threads/1" + } + }, + "thread-subscription": { + "value": { + "subscribed": true, + "ignored": false, + "reason": null, + "created_at": "2012-10-06T21:34:12Z", + "url": "https://api.github.com/notifications/threads/1/subscription", + "thread_url": "https://api.github.com/notifications/threads/1" + } + }, + "organization-simple-items": { + "value": [ + { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + } + ] + }, + "organization-full-default-response": { + "summary": "Default response", + "value": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization", + "name": "github", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "twitter_username": "github", + "is_verified": true, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "html_url": "https://github.com/octocat", + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2014-03-03T18:58:10Z", + "type": "Organization", + "total_private_repos": 100, + "owned_private_repos": 100, + "private_gists": 81, + "disk_usage": 10000, + "collaborators": 8, + "billing_email": "mona@github.com", + "plan": { "name": "Medium", "space": 400, "private_repos": 20 }, + "default_repository_permission": "read", + "members_can_create_repositories": true, + "two_factor_requirement_enabled": true, + "members_allowed_repository_creation_type": "all", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true + } + }, + "organization-full-response-with-git-hub-plan-information": { + "summary": "Response with GitHub plan information", + "value": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization", + "name": "github", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "twitter_username": "github", + "is_verified": true, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "html_url": "https://github.com/octocat", + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2014-03-03T18:58:10Z", + "type": "Organization", + "plan": { + "name": "team", + "space": 976562499, + "private_repos": 999999, + "filled_seats": 4, + "seats": 5 + } + } + }, + "organization-full": { + "value": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization", + "name": "github", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "twitter_username": "github", + "is_verified": true, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "html_url": "https://github.com/octocat", + "created_at": "2008-01-14T04:33:35Z", + "type": "Organization", + "total_private_repos": 100, + "owned_private_repos": 100, + "private_gists": 81, + "disk_usage": 10000, + "collaborators": 8, + "billing_email": "mona@github.com", + "plan": { "name": "Medium", "space": 400, "private_repos": 20 }, + "default_repository_permission": "read", + "members_can_create_repositories": true, + "two_factor_requirement_enabled": true, + "members_allowed_repository_creation_type": "all", + "members_can_create_public_repositories": false, + "members_can_create_private_repositories": false, + "members_can_create_internal_repositories": false, + "members_can_create_pages": true, + "updated_at": "2014-03-03T18:58:10Z" + } + }, + "actions-organization-permissions": { + "value": { + "enabled_repositories": "all", + "allowed_actions": "selected", + "selected_actions_url": "https://api.github.com/organizations/42/actions/permissions/selected-actions" + } + }, + "repository-paginated": { + "value": { + "total_count": 1, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ] + } + }, + "runner-groups-org": { + "value": { + "total_count": 3, + "runner_groups": [ + { + "id": 1, + "name": "Default", + "visibility": "all", + "default": true, + "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/1/runners", + "inherited": false + }, + { + "id": 2, + "name": "octo-runner-group", + "visibility": "selected", + "default": false, + "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/repositories", + "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners", + "inherited": true + }, + { + "id": 3, + "name": "expensive-hardware", + "visibility": "private", + "default": false, + "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/3/runners", + "inherited": false + } + ] + } + }, + "runner-group": { + "value": { + "id": 2, + "name": "octo-runner-group", + "visibility": "selected", + "default": false, + "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/runner-groups/2/repositories", + "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners", + "inherited": false + } + }, + "runner-group-item": { + "value": { + "id": 2, + "name": "octo-runner-group", + "visibility": "selected", + "default": false, + "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/repositories", + "runners_url": "https://api.github.com/orgs/octo-org/actions/runner_groups/2/runners", + "inherited": false + } + }, + "organization-actions-secret-paginated": { + "value": { + "total_count": 3, + "secrets": [ + { + "name": "GIST_ID", + "created_at": "2019-08-10T14:59:22Z", + "updated_at": "2020-01-10T14:59:22Z", + "visibility": "private" + }, + { + "name": "DEPLOY_TOKEN", + "created_at": "2019-08-10T14:59:22Z", + "updated_at": "2020-01-10T14:59:22Z", + "visibility": "all" + }, + { + "name": "GH_TOKEN", + "created_at": "2019-08-10T14:59:22Z", + "updated_at": "2020-01-10T14:59:22Z", + "visibility": "selected", + "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/secrets/SUPER_SECRET/repositories" + } + ] + } + }, + "actions-public-key": { + "value": { + "key_id": "012345678912345678", + "key": "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234" + } + }, + "organization-actions-secret": { + "value": { + "name": "GH_TOKEN", + "created_at": "2019-08-10T14:59:22Z", + "updated_at": "2020-01-10T14:59:22Z", + "visibility": "selected", + "selected_repositories_url": "https://api.github.com/orgs/octo-org/actions/secrets/SUPER_SECRET/repositories" + } + }, + "public-repository-paginated": { + "value": { + "total_count": 1, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + } + ] + } + }, + "simple-user-items": { + "value": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ] + }, + "credential-authorization-items": { + "value": [ + { + "login": "octocat", + "credential_id": 161195, + "credential_type": "personal access token", + "token_last_eight": "71c3fc11", + "credential_authorized_at": "2011-01-26T19:06:43Z", + "scopes": ["user", "repo"] + }, + { + "login": "hubot", + "credential_id": 161196, + "credential_type": "personal access token", + "token_last_eight": "12345678", + "credential_authorized_at": "2019-03-29T19:06:43Z", + "scopes": ["repo"] + } + ] + }, + "org-hook-items": { + "value": [ + { + "id": 1, + "url": "https://api.github.com/orgs/octocat/hooks/1", + "ping_url": "https://api.github.com/orgs/octocat/hooks/1/pings", + "name": "web", + "events": ["push", "pull_request"], + "active": true, + "config": { "url": "http://example.com", "content_type": "json" }, + "updated_at": "2011-09-06T20:39:23Z", + "created_at": "2011-09-06T17:26:27Z", + "type": "Organization" + } + ] + }, + "org-hook": { + "value": { + "id": 1, + "url": "https://api.github.com/orgs/octocat/hooks/1", + "ping_url": "https://api.github.com/orgs/octocat/hooks/1/pings", + "name": "web", + "events": ["push", "pull_request"], + "active": true, + "config": { "url": "http://example.com", "content_type": "json" }, + "updated_at": "2011-09-06T20:39:23Z", + "created_at": "2011-09-06T17:26:27Z", + "type": "Organization" + } + }, + "org-hook-2": { + "value": { + "id": 1, + "url": "https://api.github.com/orgs/octocat/hooks/1", + "ping_url": "https://api.github.com/orgs/octocat/hooks/1/pings", + "name": "web", + "events": ["pull_request"], + "active": true, + "config": { "url": "http://example.com", "content_type": "json" }, + "updated_at": "2011-09-06T20:39:23Z", + "created_at": "2011-09-06T17:26:27Z", + "type": "Organization" + } + }, + "installation": { + "value": { + "id": 1, + "account": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "avatar_url": "https://github.com/images/error/hubot_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/orgs/github", + "html_url": "https://github.com/github", + "followers_url": "https://api.github.com/users/github/followers", + "following_url": "https://api.github.com/users/github/following{/other_user}", + "gists_url": "https://api.github.com/users/github/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github/subscriptions", + "organizations_url": "https://api.github.com/users/github/orgs", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "received_events_url": "https://api.github.com/users/github/received_events", + "type": "Organization", + "site_admin": false + }, + "repository_selection": "all", + "access_tokens_url": "https://api.github.com/installations/1/access_tokens", + "repositories_url": "https://api.github.com/installation/repositories", + "html_url": "https://github.com/organizations/github/settings/installations/1", + "app_id": 1, + "target_id": 1, + "target_type": "Organization", + "permissions": { + "checks": "write", + "metadata": "read", + "contents": "read" + }, + "events": ["push", "pull_request"], + "created_at": "2018-02-09T20:51:14Z", + "updated_at": "2018-02-09T20:51:14Z", + "single_file_name": "config.yml", + "has_multiple_single_files": true, + "single_file_paths": ["config.yml", ".github/issue_TEMPLATE.md"], + "app_slug": "github-actions" + } + }, + "installation-paginated": { + "value": { + "total_count": 1, + "installations": [ + { + "id": 25381, + "account": { + "login": "octo-org", + "id": 6811672, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjY4MTE2NzI=", + "avatar_url": "https://avatars3.githubusercontent.com/u/6811672?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/octo-org", + "html_url": "https://github.com/octo-org", + "followers_url": "https://api.github.com/users/octo-org/followers", + "following_url": "https://api.github.com/users/octo-org/following{/other_user}", + "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions", + "organizations_url": "https://api.github.com/users/octo-org/orgs", + "repos_url": "https://api.github.com/users/octo-org/repos", + "events_url": "https://api.github.com/users/octo-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/octo-org/received_events", + "type": "Organization", + "site_admin": false + }, + "repository_selection": "selected", + "access_tokens_url": "https://api.github.com/app/installations/25381/access_tokens", + "repositories_url": "https://api.github.com/installation/repositories", + "html_url": "https://github.com/organizations/octo-org/settings/installations/25381", + "app_id": 2218, + "target_id": 6811672, + "target_type": "Organization", + "permissions": { + "deployments": "write", + "metadata": "read", + "pull_requests": "read", + "statuses": "read" + }, + "events": ["deployment", "deployment_status"], + "created_at": "2017-05-16T08:47:09.000-07:00", + "updated_at": "2017-06-06T11:23:23.000-07:00", + "single_file_name": "config.yml", + "has_multiple_single_files": true, + "single_file_paths": ["config.yml", ".github/issue_TEMPLATE.md"], + "app_slug": "github-actions" + } + ] + } + }, + "interaction-limit-response": { + "value": { + "limit": "collaborators_only", + "origin": "organization", + "expires_at": "2018-08-17T04:18:39Z" + } + }, + "organization-invitation-items": { + "value": [ + { + "id": 1, + "login": "monalisa", + "email": "octocat@github.com", + "role": "direct_member", + "created_at": "2016-11-30T06:46:10-08:00", + "inviter": { + "login": "other_user", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/other_user_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/other_user", + "html_url": "https://github.com/other_user", + "followers_url": "https://api.github.com/users/other_user/followers", + "following_url": "https://api.github.com/users/other_user/following{/other_user}", + "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}", + "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/other_user/subscriptions", + "organizations_url": "https://api.github.com/users/other_user/orgs", + "repos_url": "https://api.github.com/users/other_user/repos", + "events_url": "https://api.github.com/users/other_user/events{/privacy}", + "received_events_url": "https://api.github.com/users/other_user/received_events", + "type": "User", + "site_admin": false + }, + "team_count": 2, + "invitation_team_url": "https://api.github.com/organizations/2/invitations/1/teams" + } + ] + }, + "organization-invitation": { + "value": { + "id": 1, + "login": "monalisa", + "email": "octocat@github.com", + "role": "direct_member", + "created_at": "2016-11-30T06:46:10-08:00", + "inviter": { + "login": "other_user", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/other_user_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/other_user", + "html_url": "https://github.com/other_user", + "followers_url": "https://api.github.com/users/other_user/followers", + "following_url": "https://api.github.com/users/other_user/following{/other_user}", + "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}", + "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/other_user/subscriptions", + "organizations_url": "https://api.github.com/users/other_user/orgs", + "repos_url": "https://api.github.com/users/other_user/repos", + "events_url": "https://api.github.com/users/other_user/events{/privacy}", + "received_events_url": "https://api.github.com/users/other_user/received_events", + "type": "User", + "site_admin": false + }, + "team_count": 2, + "invitation_team_url": "https://api.github.com/organizations/2/invitations/1/teams" + } + }, + "team-items": { + "value": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "parent": null + } + ] + }, + "org-membership-response-if-user-has-an-active-admin-membership-with-organization": { + "summary": "Response if user has an active admin membership with organization", + "value": { + "url": "https://api.github.com/orgs/octocat/memberships/defunkt", + "state": "active", + "role": "admin", + "organization_url": "https://api.github.com/orgs/octocat", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "org-membership-response-if-user-has-an-active-membership-with-organization": { + "summary": "Response if user has an active membership with organization", + "value": { + "url": "https://api.github.com/orgs/octocat/memberships/defunkt", + "state": "active", + "role": "member", + "organization_url": "https://api.github.com/orgs/octocat", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "org-membership-response-if-user-has-a-pending-membership-with-organization": { + "summary": "Response if user has a pending membership with organization", + "value": { + "url": "https://api.github.com/orgs/invitocat/memberships/defunkt", + "state": "pending", + "role": "member", + "organization_url": "https://api.github.com/orgs/invitocat", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "org-membership-response-if-user-was-previously-unaffiliated-with-organization": { + "summary": "Response if user was previously unaffiliated with organization", + "value": { + "url": "https://api.github.com/orgs/invitocat/memberships/defunkt", + "state": "pending", + "role": "admin", + "organization_url": "https://api.github.com/orgs/invitocat", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "org-membership-response-if-user-already-had-membership-with-organization": { + "summary": "Response if user already had membership with organization", + "value": { + "url": "https://api.github.com/orgs/octocat/memberships/defunkt", + "state": "active", + "role": "admin", + "organization_url": "https://api.github.com/orgs/octocat", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "migration-with-short-org-items": { + "value": [ + { + "id": 79, + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "state": "pending", + "lock_repositories": true, + "exclude_attachments": false, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ], + "url": "https://api.github.com/orgs/octo-org/migrations/79", + "created_at": "2015-07-06T15:33:38-07:00", + "updated_at": "2015-07-06T15:33:38-07:00", + "node_id": "MDQ6VXNlcjE=" + } + ] + }, + "migration-with-short-org-2": { + "value": { + "id": 79, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "state": "pending", + "lock_repositories": true, + "exclude_attachments": false, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ], + "url": "https://api.github.com/orgs/octo-org/migrations/79", + "created_at": "2015-07-06T15:33:38-07:00", + "updated_at": "2015-07-06T15:33:38-07:00" + } + }, + "migration-with-short-org": { + "value": { + "id": 79, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "state": "exported", + "lock_repositories": true, + "exclude_attachments": false, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ], + "url": "https://api.github.com/orgs/octo-org/migrations/79", + "created_at": "2015-07-06T15:33:38-07:00", + "updated_at": "2015-07-06T15:33:38-07:00" + } + }, + "minimal-repository-items": { + "value": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "template_repository": "octocat/template", + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "delete_branch_on_merge": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZW1pdA==" + } + } + ] + }, + "project-items": { + "value": [ + { + "owner_url": "https://api.github.com/orgs/octocat", + "url": "https://api.github.com/projects/1002605", + "html_url": "https://github.com/orgs/api-playground/projects/1", + "columns_url": "https://api.github.com/projects/1002605/columns", + "id": 1002605, + "node_id": "MDc6UHJvamVjdDEwMDI2MDU=", + "name": "Organization Roadmap", + "body": "High-level roadmap for the upcoming year.", + "number": 1, + "state": "open", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-11T20:09:31Z", + "updated_at": "2014-03-04T18:58:10Z" + } + ] + }, + "project-2": { + "value": { + "owner_url": "https://api.github.com/orgs/octocat", + "url": "https://api.github.com/projects/1002605", + "html_url": "https://github.com/orgs/api-playground/projects/1", + "columns_url": "https://api.github.com/projects/1002605/columns", + "id": 1002605, + "node_id": "MDc6UHJvamVjdDEwMDI2MDU=", + "name": "Organization Roadmap", + "body": "High-level roadmap for the upcoming year.", + "number": 1, + "state": "open", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-11T20:09:31Z", + "updated_at": "2014-03-04T18:58:10Z" + } + }, + "repository": { + "value": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks": 9, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "watchers": 80, + "size": 108, + "default_branch": "master", + "open_issues": 0, + "open_issues_count": 0, + "is_template": true, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0 + } + }, + "group-mapping-3": { + "value": { + "groups": [ + { + "group_id": "123", + "group_name": "Octocat admins", + "group_description": "The people who configure your octoworld." + }, + { + "group_id": "456", + "group_name": "Octocat docs members", + "group_description": "The people who make your octoworld come to life." + } + ] + } + }, + "team-full": { + "value": { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "parent": null, + "members_count": 3, + "repos_count": 10, + "created_at": "2017-07-14T16:53:42Z", + "updated_at": "2017-08-17T12:37:15Z", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization", + "name": "github", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "is_verified": true, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "html_url": "https://github.com/octocat", + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" + } + } + }, + "team-discussion-items": { + "value": [ + { + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Hi! This is an area for us to collaborate as a team.", + "body_html": "

Hi! This is an area for us to collaborate as a team

", + "body_version": "0d495416a700fb06133c612575d92bfb", + "comments_count": 0, + "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments", + "created_at": "2018-01-25T18:56:31Z", + "last_edited_at": null, + "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1", + "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==", + "number": 1, + "pinned": false, + "private": false, + "team_url": "https://api.github.com/teams/2343027", + "title": "Our first team post", + "updated_at": "2018-01-25T18:56:31Z", + "url": "https://api.github.com/teams/2343027/discussions/1", + "reactions": { + "url": "https://api.github.com/teams/2343027/discussions/1/reactions", + "total_count": 5, + "+1": 3, + "-1": 1, + "laugh": 0, + "confused": 0, + "heart": 1, + "hooray": 0, + "eyes": 1, + "rocket": 1 + } + } + ] + }, + "team-discussion": { + "value": { + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Hi! This is an area for us to collaborate as a team.", + "body_html": "

Hi! This is an area for us to collaborate as a team

", + "body_version": "0d495416a700fb06133c612575d92bfb", + "comments_count": 0, + "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments", + "created_at": "2018-01-25T18:56:31Z", + "last_edited_at": null, + "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1", + "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==", + "number": 1, + "pinned": false, + "private": false, + "team_url": "https://api.github.com/teams/2343027", + "title": "Our first team post", + "updated_at": "2018-01-25T18:56:31Z", + "url": "https://api.github.com/teams/2343027/discussions/1", + "reactions": { + "url": "https://api.github.com/teams/2343027/discussions/1/reactions", + "total_count": 5, + "+1": 3, + "-1": 1, + "laugh": 0, + "confused": 0, + "heart": 1, + "hooray": 0, + "eyes": 1, + "rocket": 1 + } + } + }, + "team-discussion-2": { + "value": { + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Hi! This is an area for us to collaborate as a team.", + "body_html": "

Hi! This is an area for us to collaborate as a team

", + "body_version": "0d495416a700fb06133c612575d92bfb", + "comments_count": 1, + "comments_url": "https://api.github.com/teams/2343027/discussions/1/comments", + "created_at": "2018-01-25T18:56:31Z", + "last_edited_at": "2018-01-26T18:22:20Z", + "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1", + "node_id": "MDE0OlRlYW1EaXNjdXNzaW9uMQ==", + "number": 1, + "pinned": false, + "private": false, + "team_url": "https://api.github.com/teams/2343027", + "title": "Welcome to our first team post", + "updated_at": "2018-01-26T18:22:20Z", + "url": "https://api.github.com/teams/2343027/discussions/1", + "reactions": { + "url": "https://api.github.com/teams/2343027/discussions/1/reactions", + "total_count": 5, + "+1": 3, + "-1": 1, + "laugh": 0, + "confused": 0, + "heart": 1, + "hooray": 0, + "eyes": 1, + "rocket": 1 + } + } + }, + "team-discussion-comment-items": { + "value": [ + { + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Do you like apples?", + "body_html": "

Do you like apples?

", + "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51", + "created_at": "2018-01-15T23:53:58Z", + "last_edited_at": null, + "discussion_url": "https://api.github.com/teams/2403582/discussions/1", + "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1", + "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=", + "number": 1, + "updated_at": "2018-01-15T23:53:58Z", + "url": "https://api.github.com/teams/2403582/discussions/1/comments/1", + "reactions": { + "url": "https://api.github.com/teams/2403582/discussions/1/reactions", + "total_count": 5, + "+1": 3, + "-1": 1, + "laugh": 0, + "confused": 0, + "heart": 1, + "hooray": 0, + "eyes": 1, + "rocket": 1 + } + } + ] + }, + "team-discussion-comment": { + "value": { + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Do you like apples?", + "body_html": "

Do you like apples?

", + "body_version": "5eb32b219cdc6a5a9b29ba5d6caa9c51", + "created_at": "2018-01-15T23:53:58Z", + "last_edited_at": null, + "discussion_url": "https://api.github.com/teams/2403582/discussions/1", + "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1", + "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=", + "number": 1, + "updated_at": "2018-01-15T23:53:58Z", + "url": "https://api.github.com/teams/2403582/discussions/1/comments/1", + "reactions": { + "url": "https://api.github.com/teams/2403582/discussions/1/reactions", + "total_count": 5, + "+1": 3, + "-1": 1, + "laugh": 0, + "confused": 0, + "heart": 1, + "hooray": 0, + "eyes": 1, + "rocket": 1 + } + } + }, + "team-discussion-comment-2": { + "value": { + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Do you like pineapples?", + "body_html": "

Do you like pineapples?

", + "body_version": "e6907b24d9c93cc0c5024a7af5888116", + "created_at": "2018-01-15T23:53:58Z", + "last_edited_at": "2018-01-26T18:22:20Z", + "discussion_url": "https://api.github.com/teams/2403582/discussions/1", + "html_url": "https://github.com/orgs/github/teams/justice-league/discussions/1/comments/1", + "node_id": "MDIxOlRlYW1EaXNjdXNzaW9uQ29tbWVudDE=", + "number": 1, + "updated_at": "2018-01-26T18:22:20Z", + "url": "https://api.github.com/teams/2403582/discussions/1/comments/1", + "reactions": { + "url": "https://api.github.com/teams/2403582/discussions/1/reactions", + "total_count": 5, + "+1": 3, + "-1": 1, + "laugh": 0, + "confused": 0, + "heart": 1, + "hooray": 0, + "eyes": 1, + "rocket": 1 + } + } + }, + "reaction-items": { + "value": [ + { + "id": 1, + "node_id": "MDg6UmVhY3Rpb24x", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2016-05-20T20:09:31Z" + } + ] + }, + "reaction": { + "value": { + "id": 1, + "node_id": "MDg6UmVhY3Rpb24x", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "content": "heart", + "created_at": "2016-05-20T20:09:31Z" + } + }, + "team-membership-response-if-user-has-an-active-membership-with-team": { + "summary": "Response if user has an active membership with team", + "value": { + "url": "https://api.github.com/teams/1/memberships/octocat", + "role": "member", + "state": "active" + } + }, + "team-membership-response-if-user-is-a-team-maintainer": { + "summary": "Response if user is a team maintainer", + "value": { + "url": "https://api.github.com/teams/1/memberships/octocat", + "role": "maintainer", + "state": "active" + } + }, + "team-membership-response-if-user-has-a-pending-membership-with-team": { + "summary": "Response if user has a pending membership with team", + "value": { + "url": "https://api.github.com/teams/1/memberships/octocat", + "role": "member", + "state": "pending" + } + }, + "team-membership-response-if-users-membership-with-team-is-now-active": { + "summary": "Response if user's membership with team is now active", + "value": { + "url": "https://api.github.com/teams/1/memberships/octocat", + "role": "member", + "state": "active" + } + }, + "team-membership-response-if-users-membership-with-team-is-now-pending": { + "summary": "Response if user's membership with team is now pending", + "value": { + "url": "https://api.github.com/teams/1/memberships/octocat", + "role": "member", + "state": "pending" + } + }, + "team-project-items": { + "value": [ + { + "owner_url": "https://api.github.com/orgs/octocat", + "url": "https://api.github.com/projects/1002605", + "html_url": "https://github.com/orgs/api-playground/projects/1", + "columns_url": "https://api.github.com/projects/1002605/columns", + "id": 1002605, + "node_id": "MDc6UHJvamVjdDEwMDI2MDU=", + "name": "Organization Roadmap", + "body": "High-level roadmap for the upcoming year.", + "number": 1, + "state": "open", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-11T20:09:31Z", + "updated_at": "2014-03-04T18:58:10Z", + "organization_permission": "write", + "private": false, + "permissions": { "read": true, "write": true, "admin": false } + } + ] + }, + "team-project": { + "value": { + "owner_url": "https://api.github.com/orgs/octocat", + "url": "https://api.github.com/projects/1002605", + "html_url": "https://github.com/orgs/api-playground/projects/1", + "columns_url": "https://api.github.com/projects/1002605/columns", + "id": 1002605, + "node_id": "MDc6UHJvamVjdDEwMDI2MDU=", + "name": "Organization Roadmap", + "body": "High-level roadmap for the upcoming year.", + "number": 1, + "state": "open", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-11T20:09:31Z", + "updated_at": "2014-03-04T18:58:10Z", + "organization_permission": "write", + "private": false, + "permissions": { "read": true, "write": true, "admin": false } + } + }, + "team-repository-alternative-response-with-repository-permissions": { + "value": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + }, + "group-mapping": { + "value": { + "groups": [ + { + "group_id": "123", + "group_name": "Octocat admins", + "group_description": "The people who configure your octoworld." + }, + { + "group_id": "456", + "group_name": "Octocat docs members", + "group_description": "The people who make your octoworld come to life." + } + ] + } + }, + "team-items-response-if-child-teams-exist": { + "value": [ + { + "id": 2, + "node_id": "MDQ6VGVhbTI=", + "url": "https://api.github.com/teams/2", + "name": "Original Roster", + "slug": "original-roster", + "description": "Started it all.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/2/members{/member}", + "repositories_url": "https://api.github.com/teams/2/repos", + "parent": { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos" + }, + "html_url": "https://github.com/orgs/rails/teams/core" + } + ] + }, + "project-card": { + "value": { + "url": "https://api.github.com/projects/columns/cards/1478", + "id": 1478, + "node_id": "MDExOlByb2plY3RDYXJkMTQ3OA==", + "note": "Add payload for delete Project column", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2016-09-05T14:21:06Z", + "updated_at": "2016-09-05T14:20:22Z", + "archived": false, + "column_url": "https://api.github.com/projects/columns/367", + "content_url": "https://api.github.com/repos/api-playground/projects-test/issues/3", + "project_url": "https://api.github.com/projects/120" + } + }, + "project-column": { + "value": { + "url": "https://api.github.com/projects/columns/367", + "project_url": "https://api.github.com/projects/120", + "cards_url": "https://api.github.com/projects/columns/367/cards", + "id": 367, + "node_id": "MDEzOlByb2plY3RDb2x1bW4zNjc=", + "name": "To Do", + "created_at": "2016-09-05T14:18:44Z", + "updated_at": "2016-09-05T14:22:28Z" + } + }, + "project-card-items": { + "value": [ + { + "url": "https://api.github.com/projects/columns/cards/1478", + "id": 1478, + "node_id": "MDExOlByb2plY3RDYXJkMTQ3OA==", + "note": "Add payload for delete Project column", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2016-09-05T14:21:06Z", + "updated_at": "2016-09-05T14:20:22Z", + "archived": false, + "column_url": "https://api.github.com/projects/columns/367", + "content_url": "https://api.github.com/repos/api-playground/projects-test/issues/3", + "project_url": "https://api.github.com/projects/120" + } + ] + }, + "project-3": { + "value": { + "owner_url": "https://api.github.com/repos/api-playground/projects-test", + "url": "https://api.github.com/projects/1002604", + "html_url": "https://github.com/api-playground/projects-test/projects/1", + "columns_url": "https://api.github.com/projects/1002604/columns", + "id": 1002604, + "node_id": "MDc6UHJvamVjdDEwMDI2MDQ=", + "name": "Projects Documentation", + "body": "Developer documentation project for the developer site.", + "number": 1, + "state": "open", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z" + } + }, + "repository-collaborator-permission": { + "value": { + "permission": "admin", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "project-column-items": { + "value": [ + { + "url": "https://api.github.com/projects/columns/367", + "project_url": "https://api.github.com/projects/120", + "cards_url": "https://api.github.com/projects/columns/367/cards", + "id": 367, + "node_id": "MDEzOlByb2plY3RDb2x1bW4zNjc=", + "name": "To Do", + "created_at": "2016-09-05T14:18:44Z", + "updated_at": "2016-09-05T14:22:28Z" + } + ] + }, + "rate-limit-overview": { + "value": { + "resources": { + "core": { "limit": 5000, "remaining": 4999, "reset": 1372700873 }, + "search": { "limit": 30, "remaining": 18, "reset": 1372697452 }, + "graphql": { + "limit": 5000, + "remaining": 4993, + "reset": 1372700389 + }, + "integration_manifest": { + "limit": 5000, + "remaining": 4999, + "reset": 1551806725 + }, + "code_scanning_upload": { + "limit": 500, + "remaining": 499, + "reset": 1551806725 + } + }, + "rate": { "limit": 5000, "remaining": 4999, "reset": 1372700873 } + } + }, + "full-repository-default-response": { + "summary": "Default response", + "value": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "forks": 9, + "stargazers_count": 80, + "watchers_count": 80, + "watchers": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "open_issues": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "pull": true, "push": false, "admin": false }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZW1pdA==" + }, + "organization": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + }, + "source": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + } + }, + "full-repository-response-with-scarlet-witch-preview-media-type": { + "summary": "Response with scarlet-witch-preview media type", + "value": { + "id": 88760408, + "node_id": "MDEwOlJlcG9zaXRvcnk4ODc2MDQwOA==", + "name": "cosee", + "full_name": "LindseyB/cosee", + "disabled": false, + "archived": false, + "owner": { + "login": "LindseyB", + "id": 33750, + "node_id": "MDQ6VXNlcjMzNzUw", + "avatar_url": "https://avatars2.githubusercontent.com/u/33750?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/LindseyB", + "html_url": "https://github.com/LindseyB", + "followers_url": "https://api.github.com/users/LindseyB/followers", + "following_url": "https://api.github.com/users/LindseyB/following{/other_user}", + "gists_url": "https://api.github.com/users/LindseyB/gists{/gist_id}", + "starred_url": "https://api.github.com/users/LindseyB/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/LindseyB/subscriptions", + "organizations_url": "https://api.github.com/users/LindseyB/orgs", + "repos_url": "https://api.github.com/users/LindseyB/repos", + "events_url": "https://api.github.com/users/LindseyB/events{/privacy}", + "received_events_url": "https://api.github.com/users/LindseyB/received_events", + "type": "User", + "site_admin": true + }, + "private": false, + "html_url": "https://github.com/LindseyB/cosee", + "description": null, + "fork": false, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "url": "https://api.github.com/repos/LindseyB/cosee", + "forks_url": "https://api.github.com/repos/LindseyB/cosee/forks", + "keys_url": "https://api.github.com/repos/LindseyB/cosee/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/LindseyB/cosee/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/LindseyB/cosee/teams", + "hooks_url": "https://api.github.com/repos/LindseyB/cosee/hooks", + "issue_events_url": "https://api.github.com/repos/LindseyB/cosee/issues/events{/number}", + "events_url": "https://api.github.com/repos/LindseyB/cosee/events", + "assignees_url": "https://api.github.com/repos/LindseyB/cosee/assignees{/user}", + "branches_url": "https://api.github.com/repos/LindseyB/cosee/branches{/branch}", + "tags_url": "https://api.github.com/repos/LindseyB/cosee/tags", + "blobs_url": "https://api.github.com/repos/LindseyB/cosee/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/LindseyB/cosee/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/LindseyB/cosee/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/LindseyB/cosee/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/LindseyB/cosee/statuses/{sha}", + "languages_url": "https://api.github.com/repos/LindseyB/cosee/languages", + "stargazers_url": "https://api.github.com/repos/LindseyB/cosee/stargazers", + "contributors_url": "https://api.github.com/repos/LindseyB/cosee/contributors", + "subscribers_url": "https://api.github.com/repos/LindseyB/cosee/subscribers", + "subscription_url": "https://api.github.com/repos/LindseyB/cosee/subscription", + "commits_url": "https://api.github.com/repos/LindseyB/cosee/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/LindseyB/cosee/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/LindseyB/cosee/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/LindseyB/cosee/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/LindseyB/cosee/contents/{+path}", + "compare_url": "https://api.github.com/repos/LindseyB/cosee/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/LindseyB/cosee/merges", + "archive_url": "https://api.github.com/repos/LindseyB/cosee/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/LindseyB/cosee/downloads", + "issues_url": "https://api.github.com/repos/LindseyB/cosee/issues{/number}", + "pulls_url": "https://api.github.com/repos/LindseyB/cosee/pulls{/number}", + "milestones_url": "https://api.github.com/repos/LindseyB/cosee/milestones{/number}", + "notifications_url": "https://api.github.com/repos/LindseyB/cosee/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/LindseyB/cosee/labels{/name}", + "releases_url": "https://api.github.com/repos/LindseyB/cosee/releases{/id}", + "deployments_url": "https://api.github.com/repos/LindseyB/cosee/deployments", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "git_url": "git://github.com/LindseyB/cosee.git", + "ssh_url": "git@github.com=>LindseyB/cosee.git", + "clone_url": "https://github.com/LindseyB/cosee.git", + "svn_url": "https://github.com/LindseyB/cosee", + "homepage": null, + "size": 1, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "open_issues_count": 0, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "network_count": 0, + "subscribers_count": 0 + } + }, + "full-repository": { + "value": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "language": null, + "forks_count": 9, + "forks": 9, + "stargazers_count": 80, + "watchers_count": 80, + "watchers": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "open_issues": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "pull": true, "push": false, "admin": false }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "organization": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "Organization", + "site_admin": false + }, + "parent": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + }, + "source": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + } + }, + "artifact-paginated": { + "value": { + "total_count": 2, + "artifacts": [ + { + "id": 11, + "node_id": "MDg6QXJ0aWZhY3QxMQ==", + "name": "Rails", + "size_in_bytes": 556, + "url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/11", + "archive_download_url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/11/zip", + "expired": false, + "created_at": "2020-01-10T14:59:22Z", + "expires_at": "2020-03-21T14:59:22Z", + "updated_at": "2020-02-21T14:59:22Z" + }, + { + "id": 13, + "node_id": "MDg6QXJ0aWZhY3QxMw==", + "name": "", + "size_in_bytes": 453, + "url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/13", + "archive_download_url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/13/zip", + "expired": false, + "created_at": "2020-01-10T14:59:22Z", + "expires_at": "2020-03-21T14:59:22Z", + "updated_at": "2020-02-21T14:59:22Z" + } + ] + } + }, + "artifact": { + "value": { + "id": 11, + "node_id": "MDg6QXJ0aWZhY3QxMQ==", + "name": "Rails", + "size_in_bytes": 556, + "url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/11", + "archive_download_url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/11/zip", + "expired": false, + "created_at": "2020-01-10T14:59:22Z", + "expires_at": "2020-01-21T14:59:22Z", + "updated_at": "2020-01-21T14:59:22Z" + } + }, + "job": { + "value": { + "id": 399444496, + "run_id": 29679449, + "run_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/29679449", + "node_id": "MDEyOldvcmtmbG93IEpvYjM5OTQ0NDQ5Ng==", + "head_sha": "f83a356604ae3c5d03e1b46ef4d1ca77d64a90b0", + "url": "https://api.github.com/repos/octo-org/octo-repo/actions/jobs/399444496", + "html_url": "https://github.com/octo-org/octo-repo/runs/399444496", + "status": "completed", + "conclusion": "success", + "started_at": "2020-01-20T17:42:40Z", + "completed_at": "2020-01-20T17:44:39Z", + "name": "build", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2020-01-20T09:42:40.000-08:00", + "completed_at": "2020-01-20T09:42:41.000-08:00" + }, + { + "name": "Run actions/checkout@v2", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2020-01-20T09:42:41.000-08:00", + "completed_at": "2020-01-20T09:42:45.000-08:00" + }, + { + "name": "Set up Ruby", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2020-01-20T09:42:45.000-08:00", + "completed_at": "2020-01-20T09:42:45.000-08:00" + }, + { + "name": "Run actions/cache@v2", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2020-01-20T09:42:45.000-08:00", + "completed_at": "2020-01-20T09:42:48.000-08:00" + }, + { + "name": "Install Bundler", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2020-01-20T09:42:48.000-08:00", + "completed_at": "2020-01-20T09:42:52.000-08:00" + }, + { + "name": "Install Gems", + "status": "completed", + "conclusion": "success", + "number": 6, + "started_at": "2020-01-20T09:42:52.000-08:00", + "completed_at": "2020-01-20T09:42:53.000-08:00" + }, + { + "name": "Run Tests", + "status": "completed", + "conclusion": "success", + "number": 7, + "started_at": "2020-01-20T09:42:53.000-08:00", + "completed_at": "2020-01-20T09:42:59.000-08:00" + }, + { + "name": "Deploy to Heroku", + "status": "completed", + "conclusion": "success", + "number": 8, + "started_at": "2020-01-20T09:42:59.000-08:00", + "completed_at": "2020-01-20T09:44:39.000-08:00" + }, + { + "name": "Post actions/cache@v2", + "status": "completed", + "conclusion": "success", + "number": 16, + "started_at": "2020-01-20T09:44:39.000-08:00", + "completed_at": "2020-01-20T09:44:39.000-08:00" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 17, + "started_at": "2020-01-20T09:44:39.000-08:00", + "completed_at": "2020-01-20T09:44:39.000-08:00" + } + ], + "check_run_url": "https://api.github.com/repos/octo-org/octo-repo/check-runs/399444496" + } + }, + "actions-repository-permissions": { + "value": { + "enabled": true, + "allowed_actions": "selected", + "selected_actions_url": "https://api.github.com/repositories/42/actions/permissions/selected-actions" + } + }, + "workflow-run-paginated": { + "value": { + "total_count": 1, + "workflow_runs": [ + { + "id": 30433642, + "name": "Build", + "node_id": "MDEyOldvcmtmbG93IFJ1bjI2OTI4OQ==", + "head_branch": "master", + "head_sha": "acb5820ced9479c074f688cc328bf03f341a511d", + "run_number": 562, + "event": "push", + "status": "queued", + "conclusion": null, + "workflow_id": 159038, + "url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642", + "html_url": "https://github.com/octo-org/octo-repo/actions/runs/30433642", + "pull_requests": [], + "created_at": "2020-01-22T19:33:08Z", + "updated_at": "2020-01-22T19:33:08Z", + "jobs_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/jobs", + "logs_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/logs", + "check_suite_url": "https://api.github.com/repos/octo-org/octo-repo/check-suites/414944374", + "artifacts_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/artifacts", + "cancel_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/cancel", + "rerun_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/rerun", + "workflow_url": "https://api.github.com/repos/octo-org/octo-repo/actions/workflows/159038", + "head_commit": { + "id": "acb5820ced9479c074f688cc328bf03f341a511d", + "tree_id": "d23f6eedb1e1b9610bbc754ddb5197bfe7271223", + "message": "Create linter.yaml", + "timestamp": "2020-01-22T19:33:05Z", + "author": { "name": "Octo Cat", "email": "octocat@github.com" }, + "committer": { "name": "GitHub", "email": "noreply@github.com" } + }, + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "head_repository": { + "id": 217723378, + "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=", + "name": "octo-repo", + "full_name": "octo-org/octo-repo", + "private": true, + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/octo-org/octo-repo", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/octo-org/octo-repo", + "forks_url": "https://api.github.com/repos/octo-org/octo-repo/forks", + "keys_url": "https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/octo-org/octo-repo/teams", + "hooks_url": "https://api.github.com/repos/octo-org/octo-repo/hooks", + "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}", + "events_url": "https://api.github.com/repos/octo-org/octo-repo/events", + "assignees_url": "https://api.github.com/repos/octo-org/octo-repo/assignees{/user}", + "branches_url": "https://api.github.com/repos/octo-org/octo-repo/branches{/branch}", + "tags_url": "https://api.github.com/repos/octo-org/octo-repo/tags", + "blobs_url": "https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}", + "languages_url": "https://api.github.com/repos/octo-org/octo-repo/languages", + "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo/stargazers", + "contributors_url": "https://api.github.com/repos/octo-org/octo-repo/contributors", + "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo/subscribers", + "subscription_url": "https://api.github.com/repos/octo-org/octo-repo/subscription", + "commits_url": "https://api.github.com/repos/octo-org/octo-repo/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/octo-org/octo-repo/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/octo-org/octo-repo/contents/{+path}", + "compare_url": "https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/octo-org/octo-repo/merges", + "archive_url": "https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/octo-org/octo-repo/downloads", + "issues_url": "https://api.github.com/repos/octo-org/octo-repo/issues{/number}", + "pulls_url": "https://api.github.com/repos/octo-org/octo-repo/pulls{/number}", + "milestones_url": "https://api.github.com/repos/octo-org/octo-repo/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/octo-org/octo-repo/labels{/name}", + "releases_url": "https://api.github.com/repos/octo-org/octo-repo/releases{/id}", + "deployments_url": "https://api.github.com/repos/octo-org/octo-repo/deployments" + } + } + ] + } + }, + "workflow-run": { + "value": { + "id": 30433642, + "name": "Build", + "node_id": "MDEyOldvcmtmbG93IFJ1bjI2OTI4OQ==", + "head_branch": "master", + "head_sha": "acb5820ced9479c074f688cc328bf03f341a511d", + "run_number": 562, + "event": "push", + "status": "queued", + "conclusion": null, + "workflow_id": 159038, + "url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642", + "html_url": "https://github.com/octo-org/octo-repo/actions/runs/30433642", + "pull_requests": [], + "created_at": "2020-01-22T19:33:08Z", + "updated_at": "2020-01-22T19:33:08Z", + "jobs_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/jobs", + "logs_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/logs", + "check_suite_url": "https://api.github.com/repos/octo-org/octo-repo/check-suites/414944374", + "artifacts_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/artifacts", + "cancel_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/cancel", + "rerun_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/30433642/rerun", + "workflow_url": "https://api.github.com/repos/octo-org/octo-repo/actions/workflows/159038", + "head_commit": { + "id": "acb5820ced9479c074f688cc328bf03f341a511d", + "tree_id": "d23f6eedb1e1b9610bbc754ddb5197bfe7271223", + "message": "Create linter.yaml", + "timestamp": "2020-01-22T19:33:05Z", + "author": { "name": "Octo Cat", "email": "octocat@github.com" }, + "committer": { "name": "GitHub", "email": "noreply@github.com" } + }, + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "head_repository": { + "id": 217723378, + "node_id": "MDEwOlJlcG9zaXRvcnkyMTc3MjMzNzg=", + "name": "octo-repo", + "full_name": "octo-org/octo-repo", + "private": true, + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "html_url": "https://github.com/octo-org/octo-repo", + "description": null, + "fork": false, + "url": "https://api.github.com/repos/octo-org/octo-repo", + "forks_url": "https://api.github.com/repos/octo-org/octo-repo/forks", + "keys_url": "https://api.github.com/repos/octo-org/octo-repo/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/octo-org/octo-repo/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/octo-org/octo-repo/teams", + "hooks_url": "https://api.github.com/repos/octo-org/octo-repo/hooks", + "issue_events_url": "https://api.github.com/repos/octo-org/octo-repo/issues/events{/number}", + "events_url": "https://api.github.com/repos/octo-org/octo-repo/events", + "assignees_url": "https://api.github.com/repos/octo-org/octo-repo/assignees{/user}", + "branches_url": "https://api.github.com/repos/octo-org/octo-repo/branches{/branch}", + "tags_url": "https://api.github.com/repos/octo-org/octo-repo/tags", + "blobs_url": "https://api.github.com/repos/octo-org/octo-repo/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/octo-org/octo-repo/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/octo-org/octo-repo/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/octo-org/octo-repo/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/octo-org/octo-repo/statuses/{sha}", + "languages_url": "https://api.github.com/repos/octo-org/octo-repo/languages", + "stargazers_url": "https://api.github.com/repos/octo-org/octo-repo/stargazers", + "contributors_url": "https://api.github.com/repos/octo-org/octo-repo/contributors", + "subscribers_url": "https://api.github.com/repos/octo-org/octo-repo/subscribers", + "subscription_url": "https://api.github.com/repos/octo-org/octo-repo/subscription", + "commits_url": "https://api.github.com/repos/octo-org/octo-repo/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/octo-org/octo-repo/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/octo-org/octo-repo/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/octo-org/octo-repo/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/octo-org/octo-repo/contents/{+path}", + "compare_url": "https://api.github.com/repos/octo-org/octo-repo/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/octo-org/octo-repo/merges", + "archive_url": "https://api.github.com/repos/octo-org/octo-repo/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/octo-org/octo-repo/downloads", + "issues_url": "https://api.github.com/repos/octo-org/octo-repo/issues{/number}", + "pulls_url": "https://api.github.com/repos/octo-org/octo-repo/pulls{/number}", + "milestones_url": "https://api.github.com/repos/octo-org/octo-repo/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octo-org/octo-repo/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/octo-org/octo-repo/labels{/name}", + "releases_url": "https://api.github.com/repos/octo-org/octo-repo/releases{/id}", + "deployments_url": "https://api.github.com/repos/octo-org/octo-repo/deployments" + } + } + }, + "job-paginated": { + "value": { + "total_count": 1, + "jobs": [ + { + "id": 399444496, + "run_id": 29679449, + "run_url": "https://api.github.com/repos/octo-org/octo-repo/actions/runs/29679449", + "node_id": "MDEyOldvcmtmbG93IEpvYjM5OTQ0NDQ5Ng==", + "head_sha": "f83a356604ae3c5d03e1b46ef4d1ca77d64a90b0", + "url": "https://api.github.com/repos/octo-org/octo-repo/actions/jobs/399444496", + "html_url": "https://github.com/octo-org/octo-repo/runs/399444496", + "status": "completed", + "conclusion": "success", + "started_at": "2020-01-20T17:42:40Z", + "completed_at": "2020-01-20T17:44:39Z", + "name": "build", + "steps": [ + { + "name": "Set up job", + "status": "completed", + "conclusion": "success", + "number": 1, + "started_at": "2020-01-20T09:42:40.000-08:00", + "completed_at": "2020-01-20T09:42:41.000-08:00" + }, + { + "name": "Run actions/checkout@v2", + "status": "completed", + "conclusion": "success", + "number": 2, + "started_at": "2020-01-20T09:42:41.000-08:00", + "completed_at": "2020-01-20T09:42:45.000-08:00" + }, + { + "name": "Set up Ruby", + "status": "completed", + "conclusion": "success", + "number": 3, + "started_at": "2020-01-20T09:42:45.000-08:00", + "completed_at": "2020-01-20T09:42:45.000-08:00" + }, + { + "name": "Run actions/cache@v2", + "status": "completed", + "conclusion": "success", + "number": 4, + "started_at": "2020-01-20T09:42:45.000-08:00", + "completed_at": "2020-01-20T09:42:48.000-08:00" + }, + { + "name": "Install Bundler", + "status": "completed", + "conclusion": "success", + "number": 5, + "started_at": "2020-01-20T09:42:48.000-08:00", + "completed_at": "2020-01-20T09:42:52.000-08:00" + }, + { + "name": "Install Gems", + "status": "completed", + "conclusion": "success", + "number": 6, + "started_at": "2020-01-20T09:42:52.000-08:00", + "completed_at": "2020-01-20T09:42:53.000-08:00" + }, + { + "name": "Run Tests", + "status": "completed", + "conclusion": "success", + "number": 7, + "started_at": "2020-01-20T09:42:53.000-08:00", + "completed_at": "2020-01-20T09:42:59.000-08:00" + }, + { + "name": "Deploy to Heroku", + "status": "completed", + "conclusion": "success", + "number": 8, + "started_at": "2020-01-20T09:42:59.000-08:00", + "completed_at": "2020-01-20T09:44:39.000-08:00" + }, + { + "name": "Post actions/cache@v2", + "status": "completed", + "conclusion": "success", + "number": 16, + "started_at": "2020-01-20T09:44:39.000-08:00", + "completed_at": "2020-01-20T09:44:39.000-08:00" + }, + { + "name": "Complete job", + "status": "completed", + "conclusion": "success", + "number": 17, + "started_at": "2020-01-20T09:44:39.000-08:00", + "completed_at": "2020-01-20T09:44:39.000-08:00" + } + ], + "check_run_url": "https://api.github.com/repos/octo-org/octo-repo/check-runs/399444496" + } + ] + } + }, + "workflow-run-usage": { + "value": { + "billable": { + "UBUNTU": { "total_ms": 180000, "jobs": 1 }, + "MACOS": { "total_ms": 240000, "jobs": 4 }, + "WINDOWS": { "total_ms": 300000, "jobs": 2 } + }, + "run_duration_ms": 500000 + } + }, + "actions-secret-paginated": { + "value": { + "total_count": 2, + "secrets": [ + { + "name": "GH_TOKEN", + "created_at": "2019-08-10T14:59:22Z", + "updated_at": "2020-01-10T14:59:22Z" + }, + { + "name": "GIST_ID", + "created_at": "2020-01-10T10:59:22Z", + "updated_at": "2020-01-11T11:59:22Z" + } + ] + } + }, + "actions-secret": { + "value": { + "name": "GH_TOKEN", + "created_at": "2019-08-10T14:59:22Z", + "updated_at": "2020-01-10T14:59:22Z" + } + }, + "workflow-paginated": { + "value": { + "total_count": 2, + "workflows": [ + { + "id": 161335, + "node_id": "MDg6V29ya2Zsb3cxNjEzMzU=", + "name": "CI", + "path": ".github/workflows/blank.yaml", + "state": "active", + "created_at": "2020-01-08T23:48:37.000-08:00", + "updated_at": "2020-01-08T23:50:21.000-08:00", + "url": "https://api.github.com/repos/octo-org/octo-repo/actions/workflows/161335", + "html_url": "https://github.com/octo-org/octo-repo/blob/master/.github/workflows/161335", + "badge_url": "https://github.com/octo-org/octo-repo/workflows/CI/badge.svg" + }, + { + "id": 269289, + "node_id": "MDE4OldvcmtmbG93IFNlY29uZGFyeTI2OTI4OQ==", + "name": "Linter", + "path": ".github/workflows/linter.yaml", + "state": "active", + "created_at": "2020-01-08T23:48:37.000-08:00", + "updated_at": "2020-01-08T23:50:21.000-08:00", + "url": "https://api.github.com/repos/octo-org/octo-repo/actions/workflows/269289", + "html_url": "https://github.com/octo-org/octo-repo/blob/master/.github/workflows/269289", + "badge_url": "https://github.com/octo-org/octo-repo/workflows/Linter/badge.svg" + } + ] + } + }, + "workflow": { + "value": { + "id": 161335, + "node_id": "MDg6V29ya2Zsb3cxNjEzMzU=", + "name": "CI", + "path": ".github/workflows/blank.yaml", + "state": "active", + "created_at": "2020-01-08T23:48:37.000-08:00", + "updated_at": "2020-01-08T23:50:21.000-08:00", + "url": "https://api.github.com/repos/octo-org/octo-repo/actions/workflows/161335", + "html_url": "https://github.com/octo-org/octo-repo/blob/master/.github/workflows/161335", + "badge_url": "https://github.com/octo-org/octo-repo/workflows/CI/badge.svg" + } + }, + "workflow-usage": { + "value": { + "billable": { + "UBUNTU": { "total_ms": 180000 }, + "MACOS": { "total_ms": 240000 }, + "WINDOWS": { "total_ms": 300000 } + } + } + }, + "short-branch-items": { + "value": [ + { + "name": "master", + "commit": { + "sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc", + "url": "https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc" + }, + "protected": true + } + ] + }, + "short-branch-with-protection-items": { + "value": [ + { + "name": "master", + "commit": { + "sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc", + "url": "https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc" + }, + "protected": true, + "protection": { + "enabled": true, + "required_status_checks": { + "enforcement_level": "non_admins", + "contexts": ["ci-test", "linter"] + } + }, + "protection_url": "https://api.github.com/repos/octocat/hello-world/branches/master/protection" + } + ] + }, + "branch-with-protection": { + "value": { + "name": "master", + "commit": { + "sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d", + "node_id": "MDY6Q29tbWl0N2ZkMWE2MGIwMWY5MWIzMTRmNTk5NTVhNGU0ZDRlODBkOGVkZjExZA==", + "commit": { + "author": { + "name": "The Octocat", + "date": "2012-03-06T15:06:50-08:00", + "email": "octocat@nowhere.com" + }, + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d", + "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.", + "tree": { + "sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608", + "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608" + }, + "committer": { + "name": "The Octocat", + "date": "2012-03-06T15:06:50-08:00", + "email": "octocat@nowhere.com" + }, + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + }, + "comment_count": 0 + }, + "author": { + "gravatar_id": "", + "avatar_url": "https://secure.gravatar.com/avatar/7ad39074b0584bc555d0417ae3e7d974?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png", + "url": "https://api.github.com/users/octocat", + "id": 583231, + "login": "octocat", + "node_id": "MDQ6VXNlcjE=", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "parents": [ + { + "sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e", + "url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e" + }, + { + "sha": "762941318ee16e59dabbacb1b4049eec22f0d303", + "url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303" + } + ], + "url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d", + "committer": { + "gravatar_id": "", + "avatar_url": "https://secure.gravatar.com/avatar/7ad39074b0584bc555d0417ae3e7d974?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png", + "url": "https://api.github.com/users/octocat", + "id": 583231, + "login": "octocat", + "node_id": "MDQ6VXNlcjE=", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments" + }, + "_links": { + "html": "https://github.com/octocat/Hello-World/tree/master", + "self": "https://api.github.com/repos/octocat/Hello-World/branches/master" + }, + "protected": true, + "protection": { + "enabled": true, + "required_status_checks": { + "enforcement_level": "non_admins", + "contexts": ["ci-test", "linter"] + } + }, + "protection_url": "https://api.github.com/repos/octocat/hello-world/branches/master/protection" + } + }, + "branch-protection": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection", + "enabled": true, + "required_status_checks": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks", + "contexts": ["continuous-integration/travis-ci"], + "contexts_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks/contexts", + "enforcement_level": "non_admins" + }, + "enforce_admins": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins", + "enabled": true + }, + "required_pull_request_reviews": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_pull_request_reviews", + "dismissal_restrictions": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions", + "users_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions/users", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions/teams", + "users": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ], + "teams": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "parent": null + } + ] + }, + "dismiss_stale_reviews": true, + "require_code_owner_reviews": true, + "required_approving_review_count": 2 + }, + "restrictions": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/restrictions", + "users_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/restrictions/users", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/restrictions/teams", + "apps_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/restrictions/teams", + "users": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ], + "teams": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "parent": null + } + ], + "apps": [ + { + "id": 1, + "slug": "octoapp", + "node_id": "MDExOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"] + } + ] + }, + "required_linear_history": { "enabled": true }, + "allow_force_pushes": { "enabled": true }, + "allow_deletions": { "enabled": true } + } + }, + "protected-branch-admin-enforced-2": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins", + "enabled": true + } + }, + "protected-branch-pull-request-review": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_pull_request_reviews", + "dismissal_restrictions": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions", + "users_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions/users", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions/teams", + "users": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ], + "teams": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "parent": null + } + ] + }, + "dismiss_stale_reviews": true, + "require_code_owner_reviews": true, + "required_approving_review_count": 2 + } + }, + "protected-branch-admin-enforced": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures", + "enabled": true + } + }, + "status-check-policy": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks", + "strict": true, + "contexts": ["continuous-integration/travis-ci"], + "contexts_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks/contexts" + } + }, + "branch-restriction-policy": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/restrictions", + "users_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/restrictions/users", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/restrictions/teams", + "apps_url": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/restrictions/teams", + "users": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ], + "teams": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "parent": null + } + ], + "apps": [ + { + "id": 1, + "slug": "octoapp", + "node_id": "MDExOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"] + } + ] + } + }, + "integration-items": { + "value": [ + { + "id": 1, + "slug": "octoapp", + "node_id": "MDExOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"] + } + ] + }, + "check-run-example-of-in-progress-conclusion": { + "summary": "Example of in_progress conclusion", + "value": { + "id": 4, + "head_sha": "ce587453ced02b1526dfb4cb910479d431683101", + "node_id": "MDg6Q2hlY2tSdW40", + "external_id": "42", + "url": "https://api.github.com/repos/github/hello-world/check-runs/4", + "html_url": "https://github.com/github/hello-world/runs/4", + "details_url": "https://example.com", + "status": "in_progress", + "conclusion": null, + "started_at": "2018-05-04T01:14:52Z", + "completed_at": null, + "output": { + "title": "Mighty Readme Report", + "summary": "", + "text": "", + "annotations_count": 1, + "annotations_url": "https://api.github.com/repos/github/hello-world/check-runs/4/annotations" + }, + "name": "mighty_readme", + "check_suite": { "id": 5 }, + "app": { + "id": 1, + "slug": "octoapp", + "node_id": "MDExOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"] + }, + "pull_requests": [ + { + "url": "https://api.github.com/repos/github/hello-world/pulls/1", + "id": 1934, + "number": 3956, + "head": { + "ref": "say-hello", + "sha": "3dca65fa3e8d4b3da3f3d056c59aee1c50f41390", + "repo": { + "id": 526, + "url": "https://api.github.com/repos/github/hello-world", + "name": "hello-world" + } + }, + "base": { + "ref": "master", + "sha": "e7fdf7640066d71ad16a86fbcbb9c6a10a18af4f", + "repo": { + "id": 526, + "url": "https://api.github.com/repos/github/hello-world", + "name": "hello-world" + } + } + } + ] + } + }, + "check-run-example-of-completed-conclusion": { + "summary": "Example of completed conclusion", + "value": { + "id": 4, + "head_sha": "ce587453ced02b1526dfb4cb910479d431683101", + "node_id": "MDg6Q2hlY2tSdW40", + "external_id": "", + "url": "https://api.github.com/repos/github/hello-world/check-runs/4", + "html_url": "https://github.com/github/hello-world/runs/4", + "details_url": "https://example.com", + "status": "completed", + "conclusion": "neutral", + "started_at": "2018-05-04T01:14:52Z", + "completed_at": "2018-05-04T01:14:52Z", + "output": { + "title": "Mighty Readme report", + "summary": "There are 0 failures, 2 warnings, and 1 notice.", + "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_count": 2, + "annotations_url": "https://api.github.com/repos/github/hello-world/check-runs/4/annotations" + }, + "name": "mighty_readme", + "check_suite": { "id": 5 }, + "app": { + "id": 1, + "slug": "octoapp", + "node_id": "MDExOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"] + }, + "pull_requests": [ + { + "url": "https://api.github.com/repos/github/hello-world/pulls/1", + "id": 1934, + "number": 3956, + "head": { + "ref": "say-hello", + "sha": "3dca65fa3e8d4b3da3f3d056c59aee1c50f41390", + "repo": { + "id": 526, + "url": "https://api.github.com/repos/github/hello-world", + "name": "hello-world" + } + }, + "base": { + "ref": "master", + "sha": "e7fdf7640066d71ad16a86fbcbb9c6a10a18af4f", + "repo": { + "id": 526, + "url": "https://api.github.com/repos/github/hello-world", + "name": "hello-world" + } + } + } + ] + } + }, + "check-run": { + "value": { + "id": 4, + "head_sha": "ce587453ced02b1526dfb4cb910479d431683101", + "node_id": "MDg6Q2hlY2tSdW40", + "external_id": "", + "url": "https://api.github.com/repos/github/hello-world/check-runs/4", + "html_url": "https://github.com/github/hello-world/runs/4", + "details_url": "https://example.com", + "status": "completed", + "conclusion": "neutral", + "started_at": "2018-05-04T01:14:52Z", + "completed_at": "2018-05-04T01:14:52Z", + "output": { + "title": "Mighty Readme report", + "summary": "There are 0 failures, 2 warnings, and 1 notice.", + "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_count": 2, + "annotations_url": "https://api.github.com/repos/github/hello-world/check-runs/4/annotations" + }, + "name": "mighty_readme", + "check_suite": { "id": 5 }, + "app": { + "id": 1, + "slug": "octoapp", + "node_id": "MDExOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"] + }, + "pull_requests": [ + { + "url": "https://api.github.com/repos/github/hello-world/pulls/1", + "id": 1934, + "number": 3956, + "head": { + "ref": "say-hello", + "sha": "3dca65fa3e8d4b3da3f3d056c59aee1c50f41390", + "repo": { + "id": 526, + "url": "https://api.github.com/repos/github/hello-world", + "name": "hello-world" + } + }, + "base": { + "ref": "master", + "sha": "e7fdf7640066d71ad16a86fbcbb9c6a10a18af4f", + "repo": { + "id": 526, + "url": "https://api.github.com/repos/github/hello-world", + "name": "hello-world" + } + } + } + ] + } + }, + "check-annotation-items": { + "value": [ + { + "path": "README.md", + "start_line": 2, + "end_line": 2, + "start_column": 5, + "end_column": 10, + "annotation_level": "warning", + "title": "Spell Checker", + "message": "Check your spelling for 'banaas'.", + "raw_details": "Do you mean 'bananas' or 'banana'?", + "blob_href": "https://api.github.com/repos/github/rest-api-description/git/blobs/abc" + } + ] + }, + "check-suite": { + "value": { + "id": 5, + "node_id": "MDEwOkNoZWNrU3VpdGU1", + "head_branch": "master", + "head_sha": "d6fde92930d4715a2b49857d24b940956b26d2d3", + "status": "completed", + "conclusion": "neutral", + "url": "https://api.github.com/repos/github/hello-world/check-suites/5", + "before": "146e867f55c26428e5f9fade55a9bbf5e95a7912", + "after": "d6fde92930d4715a2b49857d24b940956b26d2d3", + "pull_requests": [], + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "app": { + "id": 1, + "slug": "octoapp", + "node_id": "MDExOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"] + }, + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "template_repository": "octocat/template-repo", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "delete_branch_on_merge": true, + "subscribers_count": 42, + "network_count": 0 + }, + "head_commit": { + "id": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d", + "tree_id": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d", + "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.", + "timestamp": "2016-10-10T00:00:00Z", + "author": { "name": "The Octocat", "email": "octocat@nowhere.com" }, + "committer": { + "name": "The Octocat", + "email": "octocat@nowhere.com" + } + }, + "latest_check_runs_count": 1, + "check_runs_url": "https://api.github.com/repos/octocat/Hello-World/check-suites/5/check-runs" + } + }, + "check-suite-preference": { + "value": { + "preferences": { + "auto_trigger_checks": [ + { "app_id": 2, "setting": true }, + { "app_id": 4, "setting": false } + ] + }, + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "http://choosealicense.com/licenses/mit/" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + } + }, + "check-run-paginated": { + "value": { + "total_count": 1, + "check_runs": [ + { + "id": 4, + "head_sha": "ce587453ced02b1526dfb4cb910479d431683101", + "node_id": "MDg6Q2hlY2tSdW40", + "external_id": "", + "url": "https://api.github.com/repos/github/hello-world/check-runs/4", + "html_url": "https://github.com/github/hello-world/runs/4", + "details_url": "https://example.com", + "status": "completed", + "conclusion": "neutral", + "started_at": "2018-05-04T01:14:52Z", + "completed_at": "2018-05-04T01:14:52Z", + "output": { + "title": "Mighty Readme report", + "summary": "There are 0 failures, 2 warnings, and 1 notice.", + "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_count": 2, + "annotations_url": "https://api.github.com/repos/github/hello-world/check-runs/4/annotations" + }, + "name": "mighty_readme", + "check_suite": { "id": 5 }, + "app": { + "id": 1, + "slug": "octoapp", + "node_id": "MDExOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"] + }, + "pull_requests": [ + { + "url": "https://api.github.com/repos/github/hello-world/pulls/1", + "id": 1934, + "number": 3956, + "head": { + "ref": "say-hello", + "sha": "3dca65fa3e8d4b3da3f3d056c59aee1c50f41390", + "repo": { + "id": 526, + "url": "https://api.github.com/repos/github/hello-world", + "name": "hello-world" + } + }, + "base": { + "ref": "master", + "sha": "e7fdf7640066d71ad16a86fbcbb9c6a10a18af4f", + "repo": { + "id": 526, + "url": "https://api.github.com/repos/github/hello-world", + "name": "hello-world" + } + } + } + ] + } + ] + } + }, + "code-scanning-alert-code-scanning-alert-items": { + "value": [ + { + "number": 4, + "created_at": "2020-02-13T12:29:18Z", + "url": "https://api.github.com/repos/github/hello-world/code-scanning/alerts/4", + "html_url": "https://github.com/github/hello-world/code-scanning/4", + "state": "open", + "dismissed_by": null, + "dismissed_at": null, + "dismissed_reason": null, + "rule": { + "id": "js/zipslip", + "severity": "error", + "description": "Arbitrary file write during zip extraction" + }, + "tool": { "name": "CodeQL command-line toolchain", "version": null } + }, + { + "number": 3, + "created_at": "2020-02-13T12:29:18Z", + "url": "https://api.github.com/repos/github/hello-world/code-scanning/alerts/3", + "html_url": "https://github.com/github/hello-world/code-scanning/3", + "state": "dismissed", + "dismissed_by": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "dismissed_at": "2020-02-14T12:29:18Z", + "dismissed_reason": "false positive", + "rule": { + "id": "js/zipslip", + "severity": "error", + "description": "Arbitrary file write during zip extraction" + }, + "tool": { "name": "CodeQL command-line toolchain", "version": null } + } + ] + }, + "code-scanning-alert-code-scanning-alert": { + "value": { + "number": 42, + "created_at": "2020-06-19T11:21:34Z", + "url": "https://api.github.com/repos/github/hello-world/code-scanning/alerts/42", + "html_url": "https://github.com/github/hello-world/code-scanning/42", + "instances": [ + { + "ref": "refs/heads/main", + "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build", + "environment": "", + "state": "fixed" + }, + { + "ref": "refs/pull/3740/head", + "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build", + "environment": "", + "state": "dismissed" + } + ], + "state": "dismissed", + "dismissed_by": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "dismissed_at": "2020-02-14T12:29:18Z", + "dismissed_reason": "false positive", + "rule": { + "id": "js/polynomial-redos", + "severity": "warning", + "description": "Polynomial regular expression used on uncontrolled data" + }, + "tool": { "name": "CodeQL command-line toolchain", "version": null } + } + }, + "code-scanning-alert-code-scanning-alert-dismissed": { + "value": { + "number": 42, + "created_at": "2020-08-25T21:28:36Z", + "url": "https://api.github.com/repos/github/hello-world/code-scanning/alerts/42", + "html_url": "https://github.com/github/hello-world/code-scanning/42", + "instances": [ + { + "ref": "refs/heads/codeql-analysis-yml", + "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build", + "environment": "", + "state": "dismissed" + }, + { + "ref": "refs/pull/3740/head", + "analysis_key": ".github/workflows/codeql-analysis.yml:CodeQL-Build", + "environment": "", + "state": "dismissed" + } + ], + "state": "dismissed", + "dismissed_by": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "dismissed_at": "2020-09-02T22:34:56Z", + "dismissed_reason": "false positive", + "rule": { + "id": "js/polynomial-redos", + "severity": "warning", + "description": "Polynomial regular expression used on uncontrolled data" + }, + "tool": { "name": "CodeQL command-line toolchain", "version": null } + } + }, + "code-scanning-analysis-code-scanning-analysis-items": { + "value": [ + { + "ref": "refs/heads/master", + "commit_sha": "d99612c3e1f2970085cfbaeadf8f010ef69bad83", + "analysis_key": ".github/workflows/codeql-analysis.yml:analyze", + "tool_name": "CodeQL command-line toolchain", + "environment": "{}", + "error": "", + "created_at": "2020-08-27T15:05:21Z" + }, + { + "ref": "refs/heads/my-branch", + "commit_sha": "c8cff6510d4d084fb1b4aa13b64b97ca12b07321", + "analysis_key": ".github/workflows/shiftleft.yml:build", + "tool_name": "Python Security Analysis", + "environment": "{}", + "error": "", + "created_at": "2020-08-31T22:46:44Z" + } + ] + }, + "collaborator-items": { + "value": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false, + "permissions": { "pull": true, "push": true, "admin": false } + } + ] + }, + "repository-invitation-response-when-a-new-invitation-is-created": { + "value": { + "id": 1, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "invitee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "inviter": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "permissions": "write", + "created_at": "2016-06-13T14:52:50-05:00", + "url": "https://api.github.com/user/repository_invitations/1296269", + "html_url": "https://github.com/octocat/Hello-World/invitations" + } + }, + "repository-collaborator-permission-response-if-user-has-admin-permissions": { + "value": { + "permission": "admin", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "commit-comment-items": { + "value": [ + { + "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1", + "url": "https://api.github.com/repos/octocat/Hello-World/comments/1", + "id": 1, + "node_id": "MDEzOkNvbW1pdENvbW1lbnQx", + "body": "Great stuff", + "path": "file1.txt", + "position": 4, + "line": 14, + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z", + "author_association": "collaborator" + } + ] + }, + "commit-comment": { + "value": { + "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1", + "url": "https://api.github.com/repos/octocat/Hello-World/comments/1", + "id": 1, + "node_id": "MDEzOkNvbW1pdENvbW1lbnQx", + "body": "Great stuff", + "path": "file1.txt", + "position": 4, + "line": 14, + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "author_association": "collaborator", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z" + } + }, + "commit-comment-2": { + "value": { + "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1", + "url": "https://api.github.com/repos/octocat/Hello-World/comments/1", + "id": 1, + "node_id": "MDEzOkNvbW1pdENvbW1lbnQx", + "body": "Nice change", + "path": "file1.txt", + "position": 4, + "line": 14, + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "author_association": "collaborator", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z" + } + }, + "commit-items": { + "value": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "node_id": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==", + "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments", + "commit": { + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "author": { + "name": "Monalisa Octocat", + "email": "support@github.com", + "date": "2011-04-14T16:00:49Z" + }, + "committer": { + "name": "Monalisa Octocat", + "email": "support@github.com", + "date": "2011-04-14T16:00:49Z" + }, + "message": "Fix all the bugs", + "tree": { + "url": "https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "comment_count": 0, + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + }, + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "committer": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + } + ] + } + ] + }, + "branch-short-items": { + "value": [ + { + "name": "branch_5", + "commit": { + "sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc", + "url": "https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc" + }, + "protected": false + } + ] + }, + "pull-request-simple-items": { + "value": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", + "id": 1, + "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==", + "html_url": "https://github.com/octocat/Hello-World/pull/1347", + "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", + "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch", + "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits", + "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments", + "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "number": 1347, + "state": "open", + "locked": true, + "title": "Amazing new feature", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Please pull these awesome changes in!", + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + ], + "milestone": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + }, + "active_lock_reason": "too heated", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:01:12Z", + "closed_at": "2011-01-26T19:01:12Z", + "merged_at": "2011-01-26T19:01:12Z", + "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6", + "assignee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "hubot", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/hubot_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/hubot", + "html_url": "https://github.com/hubot", + "followers_url": "https://api.github.com/users/hubot/followers", + "following_url": "https://api.github.com/users/hubot/following{/other_user}", + "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hubot/subscriptions", + "organizations_url": "https://api.github.com/users/hubot/orgs", + "repos_url": "https://api.github.com/users/hubot/repos", + "events_url": "https://api.github.com/users/hubot/events{/privacy}", + "received_events_url": "https://api.github.com/users/hubot/received_events", + "type": "User", + "site_admin": true + } + ], + "requested_reviewers": [ + { + "login": "other_user", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/other_user_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/other_user", + "html_url": "https://github.com/other_user", + "followers_url": "https://api.github.com/users/other_user/followers", + "following_url": "https://api.github.com/users/other_user/following{/other_user}", + "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}", + "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/other_user/subscriptions", + "organizations_url": "https://api.github.com/users/other_user/orgs", + "repos_url": "https://api.github.com/users/other_user/repos", + "events_url": "https://api.github.com/users/other_user/events{/privacy}", + "received_events_url": "https://api.github.com/users/other_user/received_events", + "type": "User", + "site_admin": false + } + ], + "requested_teams": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos" + } + ], + "head": { + "label": "octocat:new-topic", + "ref": "new-topic", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + }, + "base": { + "label": "octocat:master", + "ref": "master", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347" + }, + "html": { + "href": "https://github.com/octocat/Hello-World/pull/1347" + }, + "issue": { + "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347" + }, + "comments": { + "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e" + } + }, + "author_association": "OWNER", + "draft": false + } + ] + }, + "commit": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "node_id": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==", + "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments", + "commit": { + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "author": { + "name": "Monalisa Octocat", + "email": "mona@github.com", + "date": "2011-04-14T16:00:49Z" + }, + "committer": { + "name": "Monalisa Octocat", + "email": "mona@github.com", + "date": "2011-04-14T16:00:49Z" + }, + "message": "Fix all the bugs", + "tree": { + "url": "https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "comment_count": 0, + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + }, + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "committer": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + } + ], + "stats": { "additions": 104, "deletions": 4, "total": 108 }, + "files": [ + { + "filename": "file1.txt", + "additions": 10, + "deletions": 2, + "changes": 12, + "status": "modified", + "raw_url": "https://github.com/octocat/Hello-World/raw/7ca483543807a51b6079e54ac4cc392bc29ae284/file1.txt", + "blob_url": "https://github.com/octocat/Hello-World/blob/7ca483543807a51b6079e54ac4cc392bc29ae284/file1.txt", + "patch": "@@ -29,7 +29,7 @@\n....." + } + ] + } + }, + "check-suite-paginated": { + "value": { + "total_count": 1, + "check_suites": [ + { + "id": 5, + "node_id": "MDEwOkNoZWNrU3VpdGU1", + "head_branch": "master", + "head_sha": "d6fde92930d4715a2b49857d24b940956b26d2d3", + "status": "completed", + "conclusion": "neutral", + "url": "https://api.github.com/repos/github/hello-world/check-suites/5", + "before": "146e867f55c26428e5f9fade55a9bbf5e95a7912", + "after": "d6fde92930d4715a2b49857d24b940956b26d2d3", + "pull_requests": [], + "app": { + "id": 1, + "slug": "octoapp", + "node_id": "MDExOkludGVncmF0aW9uMQ==", + "owner": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": true + }, + "name": "Octocat App", + "description": "", + "external_url": "https://example.com", + "html_url": "https://github.com/apps/octoapp", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "permissions": { + "metadata": "read", + "contents": "read", + "issues": "write", + "single_file": "write" + }, + "events": ["push", "pull_request"] + }, + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "delete_branch_on_merge": true, + "subscribers_count": 42, + "network_count": 0 + }, + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "head_commit": { + "id": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d", + "tree_id": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d", + "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.", + "timestamp": "2016-10-10T00:00:00Z", + "author": { + "name": "The Octocat", + "email": "octocat@nowhere.com" + }, + "committer": { + "name": "The Octocat", + "email": "octocat@nowhere.com" + } + }, + "latest_check_runs_count": 1, + "check_runs_url": "https://api.github.com/repos/octocat/Hello-World/check-suites/5/check-runs" + } + ] + } + }, + "combined-commit-status": { + "value": { + "state": "success", + "statuses": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "avatar_url": "https://github.com/images/error/hubot_happy.gif", + "id": 1, + "node_id": "MDY6U3RhdHVzMQ==", + "state": "success", + "description": "Build has completed successfully", + "target_url": "https://ci.example.com/1000/output", + "context": "continuous-integration/jenkins", + "created_at": "2012-07-20T01:19:13Z", + "updated_at": "2012-07-20T01:19:13Z" + }, + { + "url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "avatar_url": "https://github.com/images/error/other_user_happy.gif", + "id": 2, + "node_id": "MDY6U3RhdHVzMg==", + "state": "success", + "description": "Testing has completed successfully", + "target_url": "https://ci.example.com/2000/output", + "context": "security/brakeman", + "created_at": "2012-08-20T01:19:13Z", + "updated_at": "2012-08-20T01:19:13Z" + } + ], + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "total_count": 2, + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "commit_url": "https://api.github.com/repos/octocat/Hello-World/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "url": "https://api.github.com/repos/octocat/Hello-World/6dcb09b5b57875f334f61aebed695e2e4193db5e/status" + } + }, + "status-items": { + "value": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "avatar_url": "https://github.com/images/error/hubot_happy.gif", + "id": 1, + "node_id": "MDY6U3RhdHVzMQ==", + "state": "success", + "description": "Build has completed successfully", + "target_url": "https://ci.example.com/1000/output", + "context": "continuous-integration/jenkins", + "created_at": "2012-07-20T01:19:13Z", + "updated_at": "2012-07-20T01:19:13Z", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + ] + }, + "code-of-conduct-2": { + "value": { + "key": "contributor_covenant", + "name": "Contributor Covenant", + "url": "https://github.com/LindseyB/cosee/blob/master/CODE_OF_CONDUCT.md", + "body": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nIn the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.\n\n## Our Standards\n\nExamples of behavior that contributes to creating a positive environment include=>\n\n* Using welcoming and inclusive language\n* Being respectful of differing viewpoints and experiences\n* Gracefully accepting constructive criticism\n* Focusing on what is best for the community\n* Showing empathy towards other community members\n\nExamples of unacceptable behavior by participants include=>\n\n* The use of sexualized language or imagery and unwelcome sexual attention or advances\n* Trolling, insulting/derogatory comments, and personal or political attacks\n* Public or private harassment\n* Publishing others' private information, such as a physical or electronic address, without explicit permission\n* Other conduct which could reasonably be considered inappropriate in a professional setting\n\n## Our Responsibilities\n\nProject maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response\nto any instances of unacceptable behavior.\n\nProject maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.\n\n## Scope\n\nThis Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address,\nposting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.\n\n## Enforcement\n\nInstances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at lindseyb@github.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.\n\nProject maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.\n\n## Attribution\n\nThis Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]\n\n[homepage]: http://contributor-covenant.org\n[version]: http://contributor-covenant.org/version/1/4/\n", + "html_url": "https://github.com/LindseyB/cosee/blob/master/CODE_OF_CONDUCT.md" + } + }, + "community-profile": { + "value": { + "health_percentage": 100, + "description": "My first repository on GitHub!", + "documentation": null, + "files": { + "code_of_conduct": { + "name": "Contributor Covenant", + "key": "contributor_covenant", + "url": "https://api.github.com/codes_of_conduct/contributor_covenant", + "html_url": "https://github.com/octocat/Hello-World/blob/master/CODE_OF_CONDUCT.md" + }, + "contributing": { + "url": "https://api.github.com/repos/octocat/Hello-World/contents/CONTRIBUTING", + "html_url": "https://github.com/octocat/Hello-World/blob/master/CONTRIBUTING" + }, + "issue_template": { + "url": "https://api.github.com/repos/octocat/Hello-World/contents/ISSUE_TEMPLATE", + "html_url": "https://github.com/octocat/Hello-World/blob/master/ISSUE_TEMPLATE" + }, + "pull_request_template": { + "url": "https://api.github.com/repos/octocat/Hello-World/contents/PULL_REQUEST_TEMPLATE", + "html_url": "https://github.com/octocat/Hello-World/blob/master/PULL_REQUEST_TEMPLATE" + }, + "license": { + "name": "MIT License", + "key": "mit", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "html_url": "https://github.com/octocat/Hello-World/blob/master/LICENSE", + "node_id": "MDc6TGljZW5zZW1pdA==" + }, + "readme": { + "url": "https://api.github.com/repos/octocat/Hello-World/contents/README.md", + "html_url": "https://github.com/octocat/Hello-World/blob/master/README.md" + } + }, + "updated_at": "2017-02-28T19:09:29Z", + "content_reports_enabled": true + } + }, + "commit-comparison": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/compare/master...topic", + "html_url": "https://github.com/octocat/Hello-World/compare/master...topic", + "permalink_url": "https://github.com/octocat/Hello-World/compare/octocat:bbcd538c8e72b8c175046e27cc8f907076331401...octocat:0328041d1152db8ae77652d1618a02e57f745f17", + "diff_url": "https://github.com/octocat/Hello-World/compare/master...topic.diff", + "patch_url": "https://github.com/octocat/Hello-World/compare/master...topic.patch", + "base_commit": { + "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "node_id": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==", + "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments", + "commit": { + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "author": { + "name": "Monalisa Octocat", + "email": "mona@github.com", + "date": "2011-04-14T16:00:49Z" + }, + "committer": { + "name": "Monalisa Octocat", + "email": "mona@github.com", + "date": "2011-04-14T16:00:49Z" + }, + "message": "Fix all the bugs", + "tree": { + "url": "https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "comment_count": 0, + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + }, + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "committer": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + } + ] + }, + "merge_base_commit": { + "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "node_id": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==", + "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments", + "commit": { + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "author": { + "name": "Monalisa Octocat", + "email": "mona@github.com", + "date": "2011-04-14T16:00:49Z" + }, + "committer": { + "name": "Monalisa Octocat", + "email": "mona@github.com", + "date": "2011-04-14T16:00:49Z" + }, + "message": "Fix all the bugs", + "tree": { + "url": "https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "comment_count": 0, + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + }, + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "committer": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + } + ] + }, + "status": "behind", + "ahead_by": 1, + "behind_by": 2, + "total_commits": 1, + "commits": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "node_id": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==", + "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments", + "commit": { + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "author": { + "name": "Monalisa Octocat", + "email": "mona@github.com", + "date": "2011-04-14T16:00:49Z" + }, + "committer": { + "name": "Monalisa Octocat", + "email": "mona@github.com", + "date": "2011-04-14T16:00:49Z" + }, + "message": "Fix all the bugs", + "tree": { + "url": "https://api.github.com/repos/octocat/Hello-World/tree/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + }, + "comment_count": 0, + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + }, + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "committer": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e" + } + ] + } + ], + "files": [ + { + "sha": "bbcd538c8e72b8c175046e27cc8f907076331401", + "filename": "file1.txt", + "status": "added", + "additions": 103, + "deletions": 21, + "changes": 124, + "blob_url": "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt", + "raw_url": "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e", + "patch": "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test" + } + ] + } + }, + "content-file-response-if-content-is-a-file": { + "summary": "Response if content is a file", + "value": { + "type": "file", + "encoding": "base64", + "size": 5362, + "name": "README.md", + "path": "README.md", + "content": "encoded content ...", + "sha": "3d21ec53a331a6f037a91c368710b99387d012c1", + "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md", + "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1", + "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md", + "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md", + "_links": { + "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1", + "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md", + "html": "https://github.com/octokit/octokit.rb/blob/master/README.md" + } + } + }, + "content-file-response-if-content-is-a-directory": { + "summary": "Response if content is a directory", + "value": [ + { + "type": "file", + "size": 625, + "name": "octokit.rb", + "path": "lib/octokit.rb", + "sha": "fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b", + "url": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit.rb", + "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b", + "html_url": "https://github.com/octokit/octokit.rb/blob/master/lib/octokit.rb", + "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/lib/octokit.rb", + "_links": { + "self": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit.rb", + "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/fff6fe3a23bf1c8ea0692b4a883af99bee26fd3b", + "html": "https://github.com/octokit/octokit.rb/blob/master/lib/octokit.rb" + } + }, + { + "type": "dir", + "size": 0, + "name": "octokit", + "path": "lib/octokit", + "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d", + "url": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit", + "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d", + "html_url": "https://github.com/octokit/octokit.rb/tree/master/lib/octokit", + "download_url": null, + "_links": { + "self": "https://api.github.com/repos/octokit/octokit.rb/contents/lib/octokit", + "git": "https://api.github.com/repos/octokit/octokit.rb/git/trees/a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d", + "html": "https://github.com/octokit/octokit.rb/tree/master/lib/octokit" + } + } + ] + }, + "content-file-response-if-content-is-a-symlink": { + "summary": "Response if content is a symlink", + "value": { + "type": "symlink", + "target": "/path/to/symlink/target", + "size": 23, + "name": "some-symlink", + "path": "bin/some-symlink", + "sha": "452a98979c88e093d682cab404a3ec82babebb48", + "url": "https://api.github.com/repos/octokit/octokit.rb/contents/bin/some-symlink", + "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/452a98979c88e093d682cab404a3ec82babebb48", + "html_url": "https://github.com/octokit/octokit.rb/blob/master/bin/some-symlink", + "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/bin/some-symlink", + "_links": { + "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/452a98979c88e093d682cab404a3ec82babebb48", + "self": "https://api.github.com/repos/octokit/octokit.rb/contents/bin/some-symlink", + "html": "https://github.com/octokit/octokit.rb/blob/master/bin/some-symlink" + } + } + }, + "content-file-response-if-content-is-a-submodule": { + "summary": "Response if content is a submodule", + "value": { + "type": "submodule", + "submodule_git_url": "git://github.com/jquery/qunit.git", + "size": 0, + "name": "qunit", + "path": "test/qunit", + "sha": "6ca3721222109997540bd6d9ccd396902e0ad2f9", + "url": "https://api.github.com/repos/jquery/jquery/contents/test/qunit?ref=master", + "git_url": "https://api.github.com/repos/jquery/qunit/git/trees/6ca3721222109997540bd6d9ccd396902e0ad2f9", + "html_url": "https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9", + "download_url": null, + "_links": { + "git": "https://api.github.com/repos/jquery/qunit/git/trees/6ca3721222109997540bd6d9ccd396902e0ad2f9", + "self": "https://api.github.com/repos/jquery/jquery/contents/test/qunit?ref=master", + "html": "https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9" + } + } + }, + "file-commit-example-for-updating-a-file": { + "value": { + "content": { + "name": "hello.txt", + "path": "notes/hello.txt", + "sha": "a56507ed892d05a37c6d6128c260937ea4d287bd", + "size": 9, + "url": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt", + "html_url": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt", + "git_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/a56507ed892d05a37c6d6128c260937ea4d287bd", + "download_url": "https://raw.githubusercontent.com/octocat/HelloWorld/master/notes/hello.txt", + "type": "file", + "_links": { + "self": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt", + "git": "https://api.github.com/repos/octocat/Hello-World/git/blobs/a56507ed892d05a37c6d6128c260937ea4d287bd", + "html": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt" + } + }, + "commit": { + "sha": "18a43cd8e1e3a79c786e3d808a73d23b6d212b16", + "node_id": "MDY6Q29tbWl0MThhNDNjZDhlMWUzYTc5Yzc4NmUzZDgwOGE3M2QyM2I2ZDIxMmIxNg==", + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/18a43cd8e1e3a79c786e3d808a73d23b6d212b16", + "html_url": "https://github.com/octocat/Hello-World/git/commit/18a43cd8e1e3a79c786e3d808a73d23b6d212b16", + "author": { + "date": "2014-11-07T22:01:45Z", + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "committer": { + "date": "2014-11-07T22:01:45Z", + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "message": "my commit message", + "tree": { + "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/9a21f8e2018f42ffcf369b24d2cd20bc25c9e66f", + "sha": "9a21f8e2018f42ffcf369b24d2cd20bc25c9e66f" + }, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/da5a433788da5c255edad7979b328b67d79f53f6", + "html_url": "https://github.com/octocat/Hello-World/git/commit/da5a433788da5c255edad7979b328b67d79f53f6", + "sha": "da5a433788da5c255edad7979b328b67d79f53f6" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } + } + }, + "file-commit-example-for-creating-a-file": { + "value": { + "content": { + "name": "hello.txt", + "path": "notes/hello.txt", + "sha": "95b966ae1c166bd92f8ae7d1c313e738c731dfc3", + "size": 9, + "url": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt", + "html_url": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt", + "git_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/95b966ae1c166bd92f8ae7d1c313e738c731dfc3", + "download_url": "https://raw.githubusercontent.com/octocat/HelloWorld/master/notes/hello.txt", + "type": "file", + "_links": { + "self": "https://api.github.com/repos/octocat/Hello-World/contents/notes/hello.txt", + "git": "https://api.github.com/repos/octocat/Hello-World/git/blobs/95b966ae1c166bd92f8ae7d1c313e738c731dfc3", + "html": "https://github.com/octocat/Hello-World/blob/master/notes/hello.txt" + } + }, + "commit": { + "sha": "7638417db6d59f3c431d3e1f261cc637155684cd", + "node_id": "MDY6Q29tbWl0NzYzODQxN2RiNmQ1OWYzYzQzMWQzZTFmMjYxY2M2MzcxNTU2ODRjZA==", + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd", + "html_url": "https://github.com/octocat/Hello-World/git/commit/7638417db6d59f3c431d3e1f261cc637155684cd", + "author": { + "date": "2014-11-07T22:01:45Z", + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "committer": { + "date": "2014-11-07T22:01:45Z", + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "message": "my commit message", + "tree": { + "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb", + "sha": "691272480426f78a0138979dd3ce63b77f706feb" + }, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5", + "html_url": "https://github.com/octocat/Hello-World/git/commit/1acc419d4d6a9ce985db7be48c6349a0475975b5", + "sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } + } + }, + "file-commit": { + "value": { + "content": null, + "commit": { + "sha": "7638417db6d59f3c431d3e1f261cc637155684cd", + "node_id": "MDY6Q29tbWl0NzYzODQxN2RiNmQ1OWYzYzQzMWQzZTFmMjYxY2M2MzcxNTU2ODRjZA==", + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd", + "html_url": "https://github.com/octocat/Hello-World/git/commit/7638417db6d59f3c431d3e1f261cc637155684cd", + "author": { + "date": "2014-11-07T22:01:45Z", + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "committer": { + "date": "2014-11-07T22:01:45Z", + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "message": "my commit message", + "tree": { + "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb", + "sha": "691272480426f78a0138979dd3ce63b77f706feb" + }, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5", + "html_url": "https://github.com/octocat/Hello-World/git/commit/1acc419d4d6a9ce985db7be48c6349a0475975b5", + "sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } + } + }, + "contributor-items-response-if-repository-contains-content": { + "value": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false, + "contributions": 32 + } + ] + }, + "deployment-items": { + "value": [ + { + "url": "https://api.github.com/repos/octocat/example/deployments/1", + "id": 1, + "node_id": "MDEwOkRlcGxveW1lbnQx", + "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d", + "ref": "topic-branch", + "task": "deploy", + "payload": {}, + "original_environment": "staging", + "environment": "production", + "description": "Deploy request from hubot", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2012-07-20T01:19:13Z", + "updated_at": "2012-07-20T01:19:13Z", + "statuses_url": "https://api.github.com/repos/octocat/example/deployments/1/statuses", + "repository_url": "https://api.github.com/repos/octocat/example", + "transient_environment": false, + "production_environment": true + } + ] + }, + "deployment-simple-example": { + "summary": "Simple example", + "value": { + "url": "https://api.github.com/repos/octocat/example/deployments/1", + "id": 1, + "node_id": "MDEwOkRlcGxveW1lbnQx", + "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d", + "ref": "topic-branch", + "task": "deploy", + "payload": {}, + "original_environment": "staging", + "environment": "production", + "description": "Deploy request from hubot", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2012-07-20T01:19:13Z", + "updated_at": "2012-07-20T01:19:13Z", + "statuses_url": "https://api.github.com/repos/octocat/example/deployments/1/statuses", + "repository_url": "https://api.github.com/repos/octocat/example", + "transient_environment": false, + "production_environment": true + } + }, + "deployment-advanced-example": { + "summary": "Advanced example", + "value": { + "url": "https://api.github.com/repos/octocat/example/deployments/1", + "id": 1, + "node_id": "MDEwOkRlcGxveW1lbnQx", + "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d", + "ref": "topic-branch", + "task": "deploy", + "payload": {}, + "original_environment": "staging", + "environment": "production", + "description": "Deploy request from hubot", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2012-07-20T01:19:13Z", + "updated_at": "2012-07-20T01:19:13Z", + "statuses_url": "https://api.github.com/repos/octocat/example/deployments/1/statuses", + "repository_url": "https://api.github.com/repos/octocat/example", + "transient_environment": false, + "production_environment": true + } + }, + "deployment": { + "value": { + "url": "https://api.github.com/repos/octocat/example/deployments/1", + "id": 1, + "node_id": "MDEwOkRlcGxveW1lbnQx", + "sha": "a84d88e7554fc1fa21bcbc4efae3c782a70d2b9d", + "ref": "topic-branch", + "task": "deploy", + "payload": {}, + "original_environment": "staging", + "environment": "production", + "description": "Deploy request from hubot", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2012-07-20T01:19:13Z", + "updated_at": "2012-07-20T01:19:13Z", + "statuses_url": "https://api.github.com/repos/octocat/example/deployments/1/statuses", + "repository_url": "https://api.github.com/repos/octocat/example", + "transient_environment": false, + "production_environment": true + } + }, + "deployment-status-items": { + "value": [ + { + "url": "https://api.github.com/repos/octocat/example/deployments/42/statuses/1", + "id": 1, + "node_id": "MDE2OkRlcGxveW1lbnRTdGF0dXMx", + "state": "success", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "description": "Deployment finished successfully.", + "environment": "production", + "target_url": "https://example.com/deployment/42/output", + "created_at": "2012-07-20T01:19:13Z", + "updated_at": "2012-07-20T01:19:13Z", + "deployment_url": "https://api.github.com/repos/octocat/example/deployments/42", + "repository_url": "https://api.github.com/repos/octocat/example", + "environment_url": "https://test-branch.lab.acme.com", + "log_url": "https://example.com/deployment/42/output" + } + ] + }, + "deployment-status": { + "value": { + "url": "https://api.github.com/repos/octocat/example/deployments/42/statuses/1", + "id": 1, + "node_id": "MDE2OkRlcGxveW1lbnRTdGF0dXMx", + "state": "success", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "description": "Deployment finished successfully.", + "environment": "production", + "target_url": "https://example.com/deployment/42/output", + "created_at": "2012-07-20T01:19:13Z", + "updated_at": "2012-07-20T01:19:13Z", + "deployment_url": "https://api.github.com/repos/octocat/example/deployments/42", + "repository_url": "https://api.github.com/repos/octocat/example", + "environment_url": "https://test-branch.lab.acme.com", + "log_url": "https://example.com/deployment/42/output" + } + }, + "minimal-repository-items-2": { + "value": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": true, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "delete_branch_on_merge": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZW1pdA==" + } + } + ] + }, + "short-blob": { + "value": { + "url": "https://api.github.com/repos/octocat/example/git/blobs/3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15", + "sha": "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15" + } + }, + "blob": { + "value": { + "content": "Q29udGVudCBvZiB0aGUgYmxvYg==", + "encoding": "base64", + "url": "https://api.github.com/repos/octocat/example/git/blobs/3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15", + "sha": "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15", + "size": 19, + "node_id": "Q29udGVudCBvZiB0aGUgYmxvYg==" + } + }, + "git-commit": { + "value": { + "sha": "7638417db6d59f3c431d3e1f261cc637155684cd", + "node_id": "MDY6Q29tbWl0NzYzODQxN2RiNmQ1OWYzYzQzMWQzZTFmMjYxY2M2MzcxNTU2ODRjZA==", + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd", + "author": { + "date": "2014-11-07T22:01:45Z", + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "committer": { + "date": "2014-11-07T22:01:45Z", + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "message": "my commit message", + "tree": { + "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/827efc6d56897b048c772eb4087f854f46256132", + "sha": "827efc6d56897b048c772eb4087f854f46256132" + }, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7d1b31e74ee336d15cbd21741bc88a537ed063a0", + "sha": "7d1b31e74ee336d15cbd21741bc88a537ed063a0" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } + }, + "git-commit-2": { + "value": { + "sha": "7638417db6d59f3c431d3e1f261cc637155684cd", + "node_id": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ==", + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7638417db6d59f3c431d3e1f261cc637155684cd", + "author": { + "date": "2014-11-07T22:01:45Z", + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "committer": { + "date": "2014-11-07T22:01:45Z", + "name": "Monalisa Octocat", + "email": "octocat@github.com" + }, + "message": "added readme, because im a good github citizen", + "tree": { + "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/691272480426f78a0138979dd3ce63b77f706feb", + "sha": "691272480426f78a0138979dd3ce63b77f706feb" + }, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/1acc419d4d6a9ce985db7be48c6349a0475975b5", + "sha": "1acc419d4d6a9ce985db7be48c6349a0475975b5" + } + ], + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } + }, + "git-ref-items": { + "value": [ + { + "ref": "refs/heads/feature-a", + "node_id": "MDM6UmVmcmVmcy9oZWFkcy9mZWF0dXJlLWE=", + "url": "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/feature-a", + "object": { + "type": "commit", + "sha": "aa218f56b14c9653891f9e74264a383fa43fefbd", + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd" + } + }, + { + "ref": "refs/heads/feature-b", + "node_id": "MDM6UmVmcmVmcy9oZWFkcy9mZWF0dXJlLWI=", + "url": "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/feature-b", + "object": { + "type": "commit", + "sha": "612077ae6dffb4d2fbd8ce0cccaa58893b07b5ac", + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/612077ae6dffb4d2fbd8ce0cccaa58893b07b5ac" + } + } + ] + }, + "git-ref": { + "value": { + "ref": "refs/heads/featureA", + "node_id": "MDM6UmVmcmVmcy9oZWFkcy9mZWF0dXJlQQ==", + "url": "https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA", + "object": { + "type": "commit", + "sha": "aa218f56b14c9653891f9e74264a383fa43fefbd", + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/aa218f56b14c9653891f9e74264a383fa43fefbd" + } + } + }, + "git-tag": { + "value": { + "node_id": "MDM6VGFnOTQwYmQzMzYyNDhlZmFlMGY5ZWU1YmM3YjJkNWM5ODU4ODdiMTZhYw==", + "tag": "v0.0.1", + "sha": "940bd336248efae0f9ee5bc7b2d5c985887b16ac", + "url": "https://api.github.com/repos/octocat/Hello-World/git/tags/940bd336248efae0f9ee5bc7b2d5c985887b16ac", + "message": "initial version", + "tagger": { + "name": "Monalisa Octocat", + "email": "octocat@github.com", + "date": "2014-11-07T22:01:45Z" + }, + "object": { + "type": "commit", + "sha": "c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c", + "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/c3d0be41ecbe669545ee3e94d31ed9a4bc91ee3c" + }, + "verification": { + "verified": false, + "reason": "unsigned", + "signature": null, + "payload": null + } + } + }, + "git-tree": { + "value": { + "sha": "cd8274d15fa3ae2ab983129fb037999f264ba9a7", + "url": "https://api.github.com/repos/octocat/Hello-World/trees/cd8274d15fa3ae2ab983129fb037999f264ba9a7", + "tree": [ + { + "path": "file.rb", + "mode": "100644", + "type": "blob", + "size": 132, + "sha": "7c258a9869f33c1e1e1f74fbb32f07c86cb5a75b", + "url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/7c258a9869f33c1e1e1f74fbb32f07c86cb5a75b" + } + ], + "truncated": true + } + }, + "git-tree-default-response": { + "summary": "Default response", + "value": { + "sha": "9fb037999f264ba9a7fc6274d15fa3ae2ab98312", + "url": "https://api.github.com/repos/octocat/Hello-World/trees/9fb037999f264ba9a7fc6274d15fa3ae2ab98312", + "tree": [ + { + "path": "file.rb", + "mode": "100644", + "type": "blob", + "size": 30, + "sha": "44b4fc6d56897b048c772eb4087f854f46256132", + "url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/44b4fc6d56897b048c772eb4087f854f46256132" + }, + { + "path": "subdir", + "mode": "040000", + "type": "tree", + "sha": "f484d249c660418515fb01c2b9662073663c242e", + "url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/f484d249c660418515fb01c2b9662073663c242e" + }, + { + "path": "exec_file", + "mode": "100755", + "type": "blob", + "size": 75, + "sha": "45b983be36b73c0788dc9cbcb76cbb80fc7bb057", + "url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/45b983be36b73c0788dc9cbcb76cbb80fc7bb057" + } + ], + "truncated": false + } + }, + "git-tree-response-recursively-retrieving-a-tree": { + "summary": "Response recursively retrieving a tree", + "value": { + "sha": "fc6274d15fa3ae2ab983129fb037999f264ba9a7", + "url": "https://api.github.com/repos/octocat/Hello-World/trees/fc6274d15fa3ae2ab983129fb037999f264ba9a7", + "tree": [ + { + "path": "subdir/file.txt", + "mode": "100644", + "type": "blob", + "size": 132, + "sha": "7c258a9869f33c1e1e1f74fbb32f07c86cb5a75b", + "url": "https://api.github.com/repos/octocat/Hello-World/git/7c258a9869f33c1e1e1f74fbb32f07c86cb5a75b" + } + ], + "truncated": false + } + }, + "hook-items": { + "value": [ + { + "type": "Repository", + "id": 12345678, + "name": "web", + "active": true, + "events": ["push", "pull_request"], + "config": { + "content_type": "json", + "insecure_ssl": "0", + "url": "https://example.com/webhook" + }, + "updated_at": "2019-06-03T00:57:16Z", + "created_at": "2019-06-03T00:57:16Z", + "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678", + "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test", + "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings", + "last_response": { + "code": null, + "status": "unused", + "message": null + } + } + ] + }, + "hook": { + "value": { + "type": "Repository", + "id": 12345678, + "name": "web", + "active": true, + "events": ["push", "pull_request"], + "config": { + "content_type": "json", + "insecure_ssl": "0", + "url": "https://example.com/webhook" + }, + "updated_at": "2019-06-03T00:57:16Z", + "created_at": "2019-06-03T00:57:16Z", + "url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678", + "test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/test", + "ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/12345678/pings", + "last_response": { "code": null, "status": "unused", "message": null } + } + }, + "import": { + "value": { + "vcs": "subversion", + "use_lfs": "opt_in", + "vcs_url": "http://svn.mycompany.com/svn/myproject", + "status": "complete", + "status_text": "Done", + "has_large_files": true, + "large_files_size": 132331036, + "large_files_count": 1, + "authors_count": 4, + "url": "https://api.github.com/repos/octocat/socm/import", + "html_url": "https://import.github.com/octocat/socm/import", + "authors_url": "https://api.github.com/repos/octocat/socm/import/authors", + "repository_url": "https://api.github.com/repos/octocat/socm" + } + }, + "import-2": { + "value": { + "vcs": "subversion", + "use_lfs": "undecided", + "vcs_url": "http://svn.mycompany.com/svn/myproject", + "status": "importing", + "status_text": "Importing...", + "has_large_files": false, + "large_files_size": 0, + "large_files_count": 0, + "authors_count": 0, + "commit_count": 1042, + "url": "https://api.github.com/repos/octocat/socm/import", + "html_url": "https://import.github.com/octocat/socm/import", + "authors_url": "https://api.github.com/repos/octocat/socm/import/authors", + "repository_url": "https://api.github.com/repos/octocat/socm" + } + }, + "import-example-1": { + "summary": "Example 1", + "value": { + "vcs": "subversion", + "use_lfs": "undecided", + "vcs_url": "http://svn.mycompany.com/svn/myproject", + "status": "detecting", + "url": "https://api.github.com/repos/octocat/socm/import", + "html_url": "https://import.github.com/octocat/socm/import", + "authors_url": "https://api.github.com/repos/octocat/socm/import/authors", + "repository_url": "https://api.github.com/repos/octocat/socm" + } + }, + "import-example-2": { + "summary": "Example 2", + "value": { + "vcs": "tfvc", + "use_lfs": "undecided", + "vcs_url": "http://tfs.mycompany.com/tfs/myproject", + "tfvc_project": "project1", + "status": "importing", + "status_text": "Importing...", + "has_large_files": false, + "large_files_size": 0, + "large_files_count": 0, + "authors_count": 0, + "commit_count": 1042, + "url": "https://api.github.com/repos/octocat/socm/import", + "html_url": "https://import.github.com/octocat/socm/import", + "authors_url": "https://api.github.com/repos/octocat/socm/import/authors", + "repository_url": "https://api.github.com/repos/octocat/socm" + } + }, + "import-response": { + "summary": "Response", + "value": { + "vcs": "subversion", + "use_lfs": "undecided", + "vcs_url": "http://svn.mycompany.com/svn/myproject", + "status": "importing", + "status_text": "Importing...", + "has_large_files": false, + "large_files_size": 0, + "large_files_count": 0, + "authors_count": 0, + "commit_count": 1042, + "url": "https://api.github.com/repos/octocat/socm/import", + "html_url": "https://import.github.com/octocat/socm/import", + "authors_url": "https://api.github.com/repos/octocat/socm/import/authors", + "repository_url": "https://api.github.com/repos/octocat/socm" + } + }, + "porter-author-items": { + "value": [ + { + "id": 2268557, + "remote_id": "nobody@fc7da526-431c-80fe-3c8c-c148ff18d7ef", + "remote_name": "nobody", + "email": "hubot@github.com", + "name": "Hubot", + "url": "https://api.github.com/repos/octocat/socm/import/authors/2268557", + "import_url": "https://api.github.com/repos/octocat/socm/import" + }, + { + "id": 2268558, + "remote_id": "svner@fc7da526-431c-80fe-3c8c-c148ff18d7ef", + "remote_name": "svner", + "email": "svner@fc7da526-431c-80fe-3c8c-c148ff18d7ef", + "name": "svner", + "url": "https://api.github.com/repos/octocat/socm/import/authors/2268558", + "import_url": "https://api.github.com/repos/octocat/socm/import" + }, + { + "id": 2268559, + "remote_id": "svner@example.com@fc7da526-431c-80fe-3c8c-c148ff18d7ef", + "remote_name": "svner@example.com", + "email": "svner@example.com@fc7da526-431c-80fe-3c8c-c148ff18d7ef", + "name": "svner@example.com", + "url": "https://api.github.com/repos/octocat/socm/import/authors/2268559", + "import_url": "https://api.github.com/repos/octocat/socm/import" + } + ] + }, + "porter-author": { + "value": { + "id": 2268557, + "remote_id": "nobody@fc7da526-431c-80fe-3c8c-c148ff18d7ef", + "remote_name": "nobody", + "email": "hubot@github.com", + "name": "Hubot", + "url": "https://api.github.com/repos/octocat/socm/import/authors/2268557", + "import_url": "https://api.github.com/repos/octocat/socm/import" + } + }, + "porter-large-file-items": { + "value": [ + { + "ref_name": "refs/heads/master", + "path": "foo/bar/1", + "oid": "d3d9446802a44259755d38e6d163e820", + "size": 10485760 + }, + { + "ref_name": "refs/heads/master", + "path": "foo/bar/2", + "oid": "6512bd43d9caa6e02c990b0a82652dca", + "size": 11534336 + }, + { + "ref_name": "refs/heads/master", + "path": "foo/bar/3", + "oid": "c20ad4d76fe97759aa27a0c99bff6710", + "size": 12582912 + } + ] + }, + "interaction-limit-2": { + "value": { + "limit": "collaborators_only", + "origin": "repository", + "expires_at": "2018-08-17T04:18:39Z" + } + }, + "repository-invitation-items": { + "value": [ + { + "id": 1, + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "invitee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "inviter": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "permissions": "write", + "created_at": "2016-06-13T14:52:50-05:00", + "url": "https://api.github.com/user/repository_invitations/1296269", + "html_url": "https://github.com/octocat/Hello-World/invitations", + "node_id": "MDQ6VXNlcjE=" + } + ] + }, + "repository-invitation": { + "value": { + "id": 1, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "repository": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + }, + "invitee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "inviter": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "permissions": "write", + "created_at": "2016-06-13T14:52:50-05:00", + "url": "https://api.github.com/user/repository_invitations/1296269", + "html_url": "https://github.com/octocat/Hello-World/invitations" + } + }, + "issue-simple-items": { + "value": [ + { + "id": 1, + "node_id": "MDU6SXNzdWUx", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "repository_url": "https://api.github.com/repos/octocat/Hello-World", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/labels{/name}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments", + "events_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/events", + "html_url": "https://github.com/octocat/Hello-World/issues/1347", + "number": 1347, + "state": "open", + "title": "Found a bug", + "body": "I'm having a problem with this.", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + ], + "assignee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + }, + "locked": true, + "active_lock_reason": "too heated", + "comments": 0, + "pull_request": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", + "html_url": "https://github.com/octocat/Hello-World/pull/1347", + "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", + "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch" + }, + "closed_at": null, + "created_at": "2011-04-22T13:33:48Z", + "updated_at": "2011-04-22T13:33:48Z", + "author_association": "collaborator" + } + ] + }, + "issue": { + "value": { + "id": 1, + "node_id": "MDU6SXNzdWUx", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "repository_url": "https://api.github.com/repos/octocat/Hello-World", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/labels{/name}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments", + "events_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/events", + "html_url": "https://github.com/octocat/Hello-World/issues/1347", + "number": 1347, + "state": "open", + "title": "Found a bug", + "body": "I'm having a problem with this.", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + ], + "assignee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + }, + "locked": true, + "active_lock_reason": "too heated", + "comments": 0, + "pull_request": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", + "html_url": "https://github.com/octocat/Hello-World/pull/1347", + "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", + "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch" + }, + "closed_at": null, + "created_at": "2011-04-22T13:33:48Z", + "updated_at": "2011-04-22T13:33:48Z", + "closed_by": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "author_association": "collaborator" + } + }, + "issue-comment-items": { + "value": [ + { + "id": 1, + "node_id": "MDEyOklzc3VlQ29tbWVudDE=", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1", + "html_url": "https://github.com/octocat/Hello-World/issues/1347#issuecomment-1", + "body": "Me too", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z", + "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "author_association": "collaborator" + } + ] + }, + "issue-comment": { + "value": { + "id": 1, + "node_id": "MDEyOklzc3VlQ29tbWVudDE=", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1", + "html_url": "https://github.com/octocat/Hello-World/issues/1347#issuecomment-1", + "body": "Me too", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z", + "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "author_association": "collaborator" + } + }, + "issue-event-items": { + "value": [ + { + "id": 1, + "node_id": "MDEwOklzc3VlRXZlbnQx", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/events/1", + "actor": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "event": "closed", + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "commit_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "created_at": "2011-04-14T16:00:49Z", + "issue": { + "id": 1, + "node_id": "MDU6SXNzdWUx", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "repository_url": "https://api.github.com/repos/octocat/Hello-World", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/labels{/name}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments", + "events_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/events", + "html_url": "https://github.com/octocat/Hello-World/issues/1347", + "number": 1347, + "state": "open", + "title": "Found a bug", + "body": "I'm having a problem with this.", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + ], + "assignee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + }, + "locked": true, + "active_lock_reason": "too heated", + "comments": 0, + "pull_request": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", + "html_url": "https://github.com/octocat/Hello-World/pull/1347", + "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", + "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch" + }, + "closed_at": null, + "created_at": "2011-04-22T13:33:48Z", + "updated_at": "2011-04-22T13:33:48Z", + "author_association": "collaborator" + } + } + ] + }, + "issue-event": { + "value": { + "id": 1, + "node_id": "MDEwOklzc3VlRXZlbnQx", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/events/1", + "actor": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "event": "closed", + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "commit_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "created_at": "2011-04-14T16:00:49Z", + "issue": { + "id": 1, + "node_id": "MDU6SXNzdWUx", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "repository_url": "https://api.github.com/repos/octocat/Hello-World", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/labels{/name}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments", + "events_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/events", + "html_url": "https://github.com/octocat/Hello-World/issues/1347", + "number": 1347, + "state": "open", + "title": "Found a bug", + "body": "I'm having a problem with this.", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + ], + "assignee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + }, + "locked": true, + "active_lock_reason": "too heated", + "comments": 0, + "pull_request": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", + "html_url": "https://github.com/octocat/Hello-World/pull/1347", + "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", + "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch" + }, + "closed_at": null, + "created_at": "2011-04-22T13:33:48Z", + "updated_at": "2011-04-22T13:33:48Z", + "author_association": "collaborator" + } + } + }, + "issue-simple": { + "value": { + "id": 1, + "node_id": "MDU6SXNzdWUx", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "repository_url": "https://api.github.com/repos/octocat/Hello-World", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/labels{/name}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments", + "events_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/events", + "html_url": "https://github.com/octocat/Hello-World/issues/1347", + "number": 1347, + "state": "open", + "title": "Found a bug", + "body": "I'm having a problem with this.", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + ], + "assignee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "hubot", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/hubot_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/hubot", + "html_url": "https://github.com/hubot", + "followers_url": "https://api.github.com/users/hubot/followers", + "following_url": "https://api.github.com/users/hubot/following{/other_user}", + "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hubot/subscriptions", + "organizations_url": "https://api.github.com/users/hubot/orgs", + "repos_url": "https://api.github.com/users/hubot/repos", + "events_url": "https://api.github.com/users/hubot/events{/privacy}", + "received_events_url": "https://api.github.com/users/hubot/received_events", + "type": "User", + "site_admin": true + }, + { + "login": "other_user", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/other_user_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/other_user", + "html_url": "https://github.com/other_user", + "followers_url": "https://api.github.com/users/other_user/followers", + "following_url": "https://api.github.com/users/other_user/following{/other_user}", + "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}", + "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/other_user/subscriptions", + "organizations_url": "https://api.github.com/users/other_user/orgs", + "repos_url": "https://api.github.com/users/other_user/repos", + "events_url": "https://api.github.com/users/other_user/events{/privacy}", + "received_events_url": "https://api.github.com/users/other_user/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + }, + "locked": true, + "active_lock_reason": "too heated", + "comments": 0, + "pull_request": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", + "html_url": "https://github.com/octocat/Hello-World/pull/1347", + "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", + "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch" + }, + "closed_at": null, + "created_at": "2011-04-22T13:33:48Z", + "updated_at": "2011-04-22T13:33:48Z", + "author_association": "collaborator" + } + }, + "issue-event-for-issue-items": { + "value": [ + { + "id": 1, + "node_id": "MDEwOklzc3VlRXZlbnQx", + "url": "https://api.github.com/repos/octocat/Hello-World/issues/events/1", + "actor": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "event": "closed", + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "commit_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "created_at": "2011-04-14T16:00:49Z" + } + ] + }, + "label-items": { + "value": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + }, + { + "id": 208045947, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDc=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/enhancement", + "name": "enhancement", + "description": "New feature or request", + "color": "a2eeef", + "default": false + } + ] + }, + "label-items-2": { + "value": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + ] + }, + "deploy-key-items": { + "value": [ + { + "id": 1, + "key": "ssh-rsa AAA...", + "url": "https://api.github.com/repos/octocat/Hello-World/keys/1", + "title": "octocat@octomac", + "verified": true, + "created_at": "2014-12-10T15:53:42Z", + "read_only": true + } + ] + }, + "deploy-key": { + "value": { + "id": 1, + "key": "ssh-rsa AAA...", + "url": "https://api.github.com/repos/octocat/Hello-World/keys/1", + "title": "octocat@octomac", + "verified": true, + "created_at": "2014-12-10T15:53:42Z", + "read_only": true + } + }, + "label": { + "value": { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + }, + "label-2": { + "value": { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug%20:bug:", + "name": "bug :bug:", + "description": "Small bug fix required", + "color": "b01f26", + "default": true + } + }, + "language": { "value": { "C": 78769, "Python": 7769 } }, + "license-content": { + "value": { + "name": "LICENSE", + "path": "LICENSE", + "sha": "401c59dcc4570b954dd6d345e76199e1f4e76266", + "size": 1077, + "url": "https://api.github.com/repos/benbalter/gman/contents/LICENSE?ref=master", + "html_url": "https://github.com/benbalter/gman/blob/master/LICENSE", + "git_url": "https://api.github.com/repos/benbalter/gman/git/blobs/401c59dcc4570b954dd6d345e76199e1f4e76266", + "download_url": "https://raw.githubusercontent.com/benbalter/gman/master/LICENSE?lab=true", + "type": "file", + "content": "VGhlIE1JVCBMaWNlbnNlIChNSVQpCgpDb3B5cmlnaHQgKGMpIDIwMTMgQmVu\nIEJhbHRlcgoKUGVybWlzc2lvbiBpcyBoZXJlYnkgZ3JhbnRlZCwgZnJlZSBv\nZiBjaGFyZ2UsIHRvIGFueSBwZXJzb24gb2J0YWluaW5nIGEgY29weSBvZgp0\naGlzIHNvZnR3YXJlIGFuZCBhc3NvY2lhdGVkIGRvY3VtZW50YXRpb24gZmls\nZXMgKHRoZSAiU29mdHdhcmUiKSwgdG8gZGVhbCBpbgp0aGUgU29mdHdhcmUg\nd2l0aG91dCByZXN0cmljdGlvbiwgaW5jbHVkaW5nIHdpdGhvdXQgbGltaXRh\ndGlvbiB0aGUgcmlnaHRzIHRvCnVzZSwgY29weSwgbW9kaWZ5LCBtZXJnZSwg\ncHVibGlzaCwgZGlzdHJpYnV0ZSwgc3VibGljZW5zZSwgYW5kL29yIHNlbGwg\nY29waWVzIG9mCnRoZSBTb2Z0d2FyZSwgYW5kIHRvIHBlcm1pdCBwZXJzb25z\nIHRvIHdob20gdGhlIFNvZnR3YXJlIGlzIGZ1cm5pc2hlZCB0byBkbyBzbywK\nc3ViamVjdCB0byB0aGUgZm9sbG93aW5nIGNvbmRpdGlvbnM6CgpUaGUgYWJv\ndmUgY29weXJpZ2h0IG5vdGljZSBhbmQgdGhpcyBwZXJtaXNzaW9uIG5vdGlj\nZSBzaGFsbCBiZSBpbmNsdWRlZCBpbiBhbGwKY29waWVzIG9yIHN1YnN0YW50\naWFsIHBvcnRpb25zIG9mIHRoZSBTb2Z0d2FyZS4KClRIRSBTT0ZUV0FSRSBJ\nUyBQUk9WSURFRCAiQVMgSVMiLCBXSVRIT1VUIFdBUlJBTlRZIE9GIEFOWSBL\nSU5ELCBFWFBSRVNTIE9SCklNUExJRUQsIElOQ0xVRElORyBCVVQgTk9UIExJ\nTUlURUQgVE8gVEhFIFdBUlJBTlRJRVMgT0YgTUVSQ0hBTlRBQklMSVRZLCBG\nSVRORVNTCkZPUiBBIFBBUlRJQ1VMQVIgUFVSUE9TRSBBTkQgTk9OSU5GUklO\nR0VNRU5ULiBJTiBOTyBFVkVOVCBTSEFMTCBUSEUgQVVUSE9SUyBPUgpDT1BZ\nUklHSFQgSE9MREVSUyBCRSBMSUFCTEUgRk9SIEFOWSBDTEFJTSwgREFNQUdF\nUyBPUiBPVEhFUiBMSUFCSUxJVFksIFdIRVRIRVIKSU4gQU4gQUNUSU9OIE9G\nIENPTlRSQUNULCBUT1JUIE9SIE9USEVSV0lTRSwgQVJJU0lORyBGUk9NLCBP\nVVQgT0YgT1IgSU4KQ09OTkVDVElPTiBXSVRIIFRIRSBTT0ZUV0FSRSBPUiBU\nSEUgVVNFIE9SIE9USEVSIERFQUxJTkdTIElOIFRIRSBTT0ZUV0FSRS4K\n", + "encoding": "base64", + "_links": { + "self": "https://api.github.com/repos/benbalter/gman/contents/LICENSE?ref=master", + "git": "https://api.github.com/repos/benbalter/gman/git/blobs/401c59dcc4570b954dd6d345e76199e1f4e76266", + "html": "https://github.com/benbalter/gman/blob/master/LICENSE" + }, + "license": { + "key": "mit", + "name": "MIT License", + "spdx_id": "MIT", + "url": "https://api.github.com/licenses/mit", + "node_id": "MDc6TGljZW5zZW1pdA==" + } + } + }, + "milestone-items": { + "value": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + } + ] + }, + "milestone": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + } + }, + "page": { + "value": { + "url": "https://api.github.com/repos/github/developer.github.com/pages", + "status": "built", + "cname": "developer.github.com", + "custom_404": false, + "html_url": "https://developer.github.com", + "source": { "branch": "master", "path": "/" } + } + }, + "page-build-items": { + "value": [ + { + "url": "https://api.github.com/repos/github/developer.github.com/pages/builds/5472601", + "status": "built", + "error": { "message": null }, + "pusher": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "commit": "351391cdcb88ffae71ec3028c91f375a8036a26b", + "duration": 2104, + "created_at": "2014-02-10T19:00:49Z", + "updated_at": "2014-02-10T19:00:51Z" + } + ] + }, + "page-build-status": { + "value": { + "url": "https://api.github.com/repos/github/developer.github.com/pages/builds/latest", + "status": "queued" + } + }, + "page-build": { + "value": { + "url": "https://api.github.com/repos/github/developer.github.com/pages/builds/5472601", + "status": "built", + "error": { "message": null }, + "pusher": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "commit": "351391cdcb88ffae71ec3028c91f375a8036a26b", + "duration": 2104, + "created_at": "2014-02-10T19:00:49Z", + "updated_at": "2014-02-10T19:00:51Z" + } + }, + "project-items-2": { + "value": [ + { + "owner_url": "https://api.github.com/repos/api-playground/projects-test", + "url": "https://api.github.com/projects/1002604", + "html_url": "https://github.com/api-playground/projects-test/projects/1", + "columns_url": "https://api.github.com/projects/1002604/columns", + "id": 1002604, + "node_id": "MDc6UHJvamVjdDEwMDI2MDQ=", + "name": "Projects Documentation", + "body": "Developer documentation project for the developer site.", + "number": 1, + "state": "open", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z" + } + ] + }, + "pull-request": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", + "id": 1, + "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==", + "html_url": "https://github.com/octocat/Hello-World/pull/1347", + "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", + "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch", + "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits", + "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments", + "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "number": 1347, + "state": "open", + "locked": true, + "title": "Amazing new feature", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Please pull these awesome changes in!", + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + ], + "milestone": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + }, + "active_lock_reason": "too heated", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:01:12Z", + "closed_at": "2011-01-26T19:01:12Z", + "merged_at": "2011-01-26T19:01:12Z", + "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6", + "assignee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "hubot", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/hubot_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/hubot", + "html_url": "https://github.com/hubot", + "followers_url": "https://api.github.com/users/hubot/followers", + "following_url": "https://api.github.com/users/hubot/following{/other_user}", + "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hubot/subscriptions", + "organizations_url": "https://api.github.com/users/hubot/orgs", + "repos_url": "https://api.github.com/users/hubot/repos", + "events_url": "https://api.github.com/users/hubot/events{/privacy}", + "received_events_url": "https://api.github.com/users/hubot/received_events", + "type": "User", + "site_admin": true + } + ], + "requested_reviewers": [ + { + "login": "other_user", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/other_user_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/other_user", + "html_url": "https://github.com/other_user", + "followers_url": "https://api.github.com/users/other_user/followers", + "following_url": "https://api.github.com/users/other_user/following{/other_user}", + "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}", + "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/other_user/subscriptions", + "organizations_url": "https://api.github.com/users/other_user/orgs", + "repos_url": "https://api.github.com/users/other_user/repos", + "events_url": "https://api.github.com/users/other_user/events{/privacy}", + "received_events_url": "https://api.github.com/users/other_user/received_events", + "type": "User", + "site_admin": false + } + ], + "requested_teams": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos" + } + ], + "head": { + "label": "octocat:new-topic", + "ref": "new-topic", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "allow_merge_commit": true, + "forks": 123, + "open_issues": 123, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==" + }, + "watchers": 123 + } + }, + "base": { + "label": "octocat:master", + "ref": "master", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "allow_merge_commit": true, + "forks": 123, + "open_issues": 123, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==" + }, + "watchers": 123 + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347" + }, + "html": { + "href": "https://github.com/octocat/Hello-World/pull/1347" + }, + "issue": { + "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347" + }, + "comments": { + "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e" + } + }, + "author_association": "OWNER", + "draft": false, + "merged": false, + "mergeable": true, + "rebaseable": true, + "mergeable_state": "clean", + "merged_by": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "comments": 10, + "review_comments": 0, + "maintainer_can_modify": true, + "commits": 3, + "additions": 100, + "deletions": 3, + "changed_files": 5 + } + }, + "pull-request-review-comment-items": { + "value": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", + "pull_request_review_id": 42, + "id": 10, + "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw", + "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...", + "path": "file1.txt", + "position": 1, + "original_position": 4, + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840", + "in_reply_to_id": 8, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Great stuff!", + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z", + "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1", + "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1", + "author_association": "NONE", + "_links": { + "self": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1" + }, + "html": { + "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1" + }, + "pull_request": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1" + } + }, + "start_line": 1, + "original_start_line": 1, + "start_side": "RIGHT", + "line": 2, + "original_line": 2, + "side": "RIGHT" + } + ] + }, + "pull-request-review-comment-2": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", + "pull_request_review_id": 42, + "id": 10, + "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw", + "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...", + "path": "file1.txt", + "position": 1, + "original_position": 4, + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840", + "in_reply_to_id": 8, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Great stuff!", + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z", + "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1", + "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1", + "author_association": "NONE", + "_links": { + "self": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1" + }, + "html": { + "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1" + }, + "pull_request": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1" + } + }, + "start_line": 1, + "original_start_line": 1, + "start_side": "RIGHT", + "line": 2, + "original_line": 2, + "side": "RIGHT" + } + }, + "pull-request-review-comment-example-for-a-multi-line-comment": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", + "pull_request_review_id": 42, + "id": 10, + "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw", + "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...", + "path": "file1.txt", + "position": 1, + "original_position": 4, + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840", + "in_reply_to_id": 8, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Great stuff!", + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z", + "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1", + "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1", + "author_association": "NONE", + "_links": { + "self": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1" + }, + "html": { + "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1" + }, + "pull_request": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1" + } + }, + "start_line": 1, + "original_start_line": 1, + "start_side": "RIGHT", + "line": 2, + "original_line": 2, + "side": "RIGHT" + } + }, + "pull-request-review-comment": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", + "pull_request_review_id": 42, + "id": 10, + "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw", + "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...", + "path": "file1.txt", + "position": 1, + "original_position": 4, + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840", + "in_reply_to_id": 426899381, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Great stuff!", + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z", + "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1", + "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1", + "author_association": "NONE", + "_links": { + "self": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1" + }, + "html": { + "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1" + }, + "pull_request": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1" + } + }, + "start_line": 1, + "original_start_line": 1, + "start_side": "RIGHT", + "line": 2, + "original_line": 2, + "side": "RIGHT" + } + }, + "diff-entry-items": { + "value": [ + { + "sha": "bbcd538c8e72b8c175046e27cc8f907076331401", + "filename": "file1.txt", + "status": "added", + "additions": 103, + "deletions": 21, + "changes": 124, + "blob_url": "https://github.com/octocat/Hello-World/blob/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt", + "raw_url": "https://github.com/octocat/Hello-World/raw/6dcb09b5b57875f334f61aebed695e2e4193db5e/file1.txt", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/file1.txt?ref=6dcb09b5b57875f334f61aebed695e2e4193db5e", + "patch": "@@ -132,7 +132,7 @@ module Test @@ -1000,7 +1000,7 @@ module Test" + } + ] + }, + "pull-request-merge-result-response-if-merge-was-successful": { + "value": { + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "merged": true, + "message": "Pull Request successfully merged" + } + }, + "simple-pull-request-review-request": { + "value": { + "users": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ], + "teams": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "parent": null + } + ] + } + }, + "pull-request-review-request": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347", + "id": 1, + "node_id": "MDExOlB1bGxSZXF1ZXN0MQ==", + "html_url": "https://github.com/octocat/Hello-World/pull/1347", + "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", + "patch_url": "https://github.com/octocat/Hello-World/pull/1347.patch", + "issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits", + "review_comments_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments", + "review_comment_url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "number": 1347, + "state": "open", + "locked": true, + "title": "Amazing new feature", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Please pull these awesome changes in!", + "labels": [ + { + "id": 208045946, + "node_id": "MDU6TGFiZWwyMDgwNDU5NDY=", + "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug", + "name": "bug", + "description": "Something isn't working", + "color": "f29513", + "default": true + } + ], + "milestone": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + }, + "active_lock_reason": "too heated", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:01:12Z", + "closed_at": "2011-01-26T19:01:12Z", + "merged_at": "2011-01-26T19:01:12Z", + "merge_commit_sha": "e5bd3914e2e596debea16f433f57875b5b90bcd6", + "assignee": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "hubot", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/hubot_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/hubot", + "html_url": "https://github.com/hubot", + "followers_url": "https://api.github.com/users/hubot/followers", + "following_url": "https://api.github.com/users/hubot/following{/other_user}", + "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hubot/subscriptions", + "organizations_url": "https://api.github.com/users/hubot/orgs", + "repos_url": "https://api.github.com/users/hubot/repos", + "events_url": "https://api.github.com/users/hubot/events{/privacy}", + "received_events_url": "https://api.github.com/users/hubot/received_events", + "type": "User", + "site_admin": true + } + ], + "requested_reviewers": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + { + "login": "hubot", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/hubot_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/hubot", + "html_url": "https://github.com/hubot", + "followers_url": "https://api.github.com/users/hubot/followers", + "following_url": "https://api.github.com/users/hubot/following{/other_user}", + "gists_url": "https://api.github.com/users/hubot/gists{/gist_id}", + "starred_url": "https://api.github.com/users/hubot/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/hubot/subscriptions", + "organizations_url": "https://api.github.com/users/hubot/orgs", + "repos_url": "https://api.github.com/users/hubot/repos", + "events_url": "https://api.github.com/users/hubot/events{/privacy}", + "received_events_url": "https://api.github.com/users/hubot/received_events", + "type": "User", + "site_admin": true + }, + { + "login": "other_user", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/other_user_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/other_user", + "html_url": "https://github.com/other_user", + "followers_url": "https://api.github.com/users/other_user/followers", + "following_url": "https://api.github.com/users/other_user/following{/other_user}", + "gists_url": "https://api.github.com/users/other_user/gists{/gist_id}", + "starred_url": "https://api.github.com/users/other_user/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/other_user/subscriptions", + "organizations_url": "https://api.github.com/users/other_user/orgs", + "repos_url": "https://api.github.com/users/other_user/repos", + "events_url": "https://api.github.com/users/other_user/events{/privacy}", + "received_events_url": "https://api.github.com/users/other_user/received_events", + "type": "User", + "site_admin": false + } + ], + "requested_teams": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos" + } + ], + "head": { + "label": "octocat:new-topic", + "ref": "new-topic", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + }, + "base": { + "label": "octocat:master", + "ref": "master", + "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "repo": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + }, + "_links": { + "self": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347" + }, + "html": { + "href": "https://github.com/octocat/Hello-World/pull/1347" + }, + "issue": { + "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347" + }, + "comments": { + "href": "https://api.github.com/repos/octocat/Hello-World/issues/1347/comments" + }, + "review_comments": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/comments" + }, + "review_comment": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments{/number}" + }, + "commits": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1347/commits" + }, + "statuses": { + "href": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e" + } + }, + "author_association": "OWNER", + "draft": false + } + }, + "pull-request-review-items": { + "value": [ + { + "id": 80, + "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Here is the body for the review.", + "state": "APPROVED", + "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80", + "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12", + "_links": { + "html": { + "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80" + }, + "pull_request": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12" + } + }, + "submitted_at": "2019-11-17T17:43:43Z", + "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091", + "author_association": "collaborator" + } + ] + }, + "pull-request-review": { + "value": { + "id": 80, + "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is close to perfect! Please address the suggested inline change.", + "state": "CHANGES_REQUESTED", + "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80", + "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12", + "_links": { + "html": { + "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80" + }, + "pull_request": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12" + } + }, + "submitted_at": "2019-11-17T17:43:43Z", + "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091", + "author_association": "collaborator" + } + }, + "pull-request-review-4": { + "value": { + "id": 80, + "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Here is the body for the review.", + "state": "APPROVED", + "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80", + "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12", + "_links": { + "html": { + "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80" + }, + "pull_request": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12" + } + }, + "submitted_at": "2019-11-17T17:43:43Z", + "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091", + "author_association": "collaborator" + } + }, + "pull-request-review-5": { + "value": { + "id": 80, + "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "This is close to perfect! Please address the suggested inline change. And add more about this.", + "state": "CHANGES_REQUESTED", + "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80", + "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12", + "_links": { + "html": { + "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80" + }, + "pull_request": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12" + } + }, + "submitted_at": "2019-11-17T17:43:43Z", + "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091", + "author_association": "collaborator" + } + }, + "review-comment-items": { + "value": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1", + "pull_request_review_id": 42, + "id": 10, + "node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw", + "diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...", + "path": "file1.txt", + "position": 1, + "original_position": 4, + "commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e", + "original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840", + "in_reply_to_id": 8, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Great stuff!", + "created_at": "2011-04-14T16:00:49Z", + "updated_at": "2011-04-14T16:00:49Z", + "html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1", + "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1", + "author_association": "NONE", + "_links": { + "self": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1" + }, + "html": { + "href": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1" + }, + "pull_request": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/1" + } + } + } + ] + }, + "pull-request-review-3": { + "value": { + "id": 80, + "node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "body": "Here is the body for the review.", + "state": "DISMISSED", + "html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80", + "pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12", + "_links": { + "html": { + "href": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80" + }, + "pull_request": { + "href": "https://api.github.com/repos/octocat/Hello-World/pulls/12" + } + }, + "submitted_at": "2019-11-17T17:43:43Z", + "commit_id": "ecdd80bb57125d7ba9641ffaa4d7d2c19d3f3091", + "author_association": "collaborator" + } + }, + "content-file": { + "value": { + "type": "file", + "encoding": "base64", + "size": 5362, + "name": "README.md", + "path": "README.md", + "content": "encoded content ...", + "sha": "3d21ec53a331a6f037a91c368710b99387d012c1", + "url": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md", + "git_url": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1", + "html_url": "https://github.com/octokit/octokit.rb/blob/master/README.md", + "download_url": "https://raw.githubusercontent.com/octokit/octokit.rb/master/README.md", + "_links": { + "git": "https://api.github.com/repos/octokit/octokit.rb/git/blobs/3d21ec53a331a6f037a91c368710b99387d012c1", + "self": "https://api.github.com/repos/octokit/octokit.rb/contents/README.md", + "html": "https://github.com/octokit/octokit.rb/blob/master/README.md" + } + } + }, + "release-items": { + "value": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/releases/1", + "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0", + "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets", + "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}", + "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0", + "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0", + "id": 1, + "node_id": "MDc6UmVsZWFzZTE=", + "tag_name": "v1.0.0", + "target_commitish": "master", + "name": "v1.0.0", + "body": "Description of the release", + "draft": false, + "prerelease": false, + "created_at": "2013-02-27T19:35:32Z", + "published_at": "2013-02-27T19:35:32Z", + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assets": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1", + "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip", + "id": 1, + "node_id": "MDEyOlJlbGVhc2VBc3NldDE=", + "name": "example.zip", + "label": "short description", + "state": "uploaded", + "content_type": "application/zip", + "size": 1024, + "download_count": 42, + "created_at": "2013-02-27T19:35:32Z", + "updated_at": "2013-02-27T19:35:32Z", + "uploader": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + ] + } + ] + }, + "release": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/releases/1", + "html_url": "https://github.com/octocat/Hello-World/releases/v1.0.0", + "assets_url": "https://api.github.com/repos/octocat/Hello-World/releases/1/assets", + "upload_url": "https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}", + "tarball_url": "https://api.github.com/repos/octocat/Hello-World/tarball/v1.0.0", + "zipball_url": "https://api.github.com/repos/octocat/Hello-World/zipball/v1.0.0", + "id": 1, + "node_id": "MDc6UmVsZWFzZTE=", + "tag_name": "v1.0.0", + "target_commitish": "master", + "name": "v1.0.0", + "body": "Description of the release", + "draft": false, + "prerelease": false, + "created_at": "2013-02-27T19:35:32Z", + "published_at": "2013-02-27T19:35:32Z", + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "assets": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1", + "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip", + "id": 1, + "node_id": "MDEyOlJlbGVhc2VBc3NldDE=", + "name": "example.zip", + "label": "short description", + "state": "uploaded", + "content_type": "application/zip", + "size": 1024, + "download_count": 42, + "created_at": "2013-02-27T19:35:32Z", + "updated_at": "2013-02-27T19:35:32Z", + "uploader": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + ] + } + }, + "release-asset": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1", + "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip", + "id": 1, + "node_id": "MDEyOlJlbGVhc2VBc3NldDE=", + "name": "example.zip", + "label": "short description", + "state": "uploaded", + "content_type": "application/zip", + "size": 1024, + "download_count": 42, + "created_at": "2013-02-27T19:35:32Z", + "updated_at": "2013-02-27T19:35:32Z", + "uploader": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "release-asset-items": { + "value": [ + { + "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1", + "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip", + "id": 1, + "node_id": "MDEyOlJlbGVhc2VBc3NldDE=", + "name": "example.zip", + "label": "short description", + "state": "uploaded", + "content_type": "application/zip", + "size": 1024, + "download_count": 42, + "created_at": "2013-02-27T19:35:32Z", + "updated_at": "2013-02-27T19:35:32Z", + "uploader": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + ] + }, + "release-asset-response-for-successful-upload": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/releases/assets/1", + "browser_download_url": "https://github.com/octocat/Hello-World/releases/download/v1.0.0/example.zip", + "id": 1, + "node_id": "MDEyOlJlbGVhc2VBc3NldDE=", + "name": "example.zip", + "label": "short description", + "state": "uploaded", + "content_type": "application/zip", + "size": 1024, + "download_count": 42, + "created_at": "2013-02-27T19:35:32Z", + "updated_at": "2013-02-27T19:35:32Z", + "uploader": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "simple-user-items-default-response": { + "summary": "Default response", + "value": [ + { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + ] + }, + "stargazer-items-alternative-response-with-star-creation-timestamps": { + "summary": "Alternative response with star creation timestamps", + "value": [ + { + "starred_at": "2011-01-16T19:06:43Z", + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + ] + }, + "code-frequency-stat-items": { "value": [[1302998400, 1124, -435]] }, + "commit-activity-items": { + "value": [ + { "days": [0, 3, 26, 20, 39, 1, 0], "total": 89, "week": 1336280400 } + ] + }, + "contributor-activity-items": { + "value": [ + { + "author": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "total": 135, + "weeks": [{ "w": "1367712000", "a": 6898, "d": 77, "c": 10 }] + } + ] + }, + "participation-stats": { + "value": { + "all": [ + 11, + 21, + 15, + 2, + 8, + 1, + 8, + 23, + 17, + 21, + 11, + 10, + 33, + 91, + 38, + 34, + 22, + 23, + 32, + 3, + 43, + 87, + 71, + 18, + 13, + 5, + 13, + 16, + 66, + 27, + 12, + 45, + 110, + 117, + 13, + 8, + 18, + 9, + 19, + 26, + 39, + 12, + 20, + 31, + 46, + 91, + 45, + 10, + 24, + 9, + 29, + 7 + ], + "owner": [ + 3, + 2, + 3, + 0, + 2, + 0, + 5, + 14, + 7, + 9, + 1, + 5, + 0, + 48, + 19, + 2, + 0, + 1, + 10, + 2, + 23, + 40, + 35, + 8, + 8, + 2, + 10, + 6, + 30, + 0, + 2, + 9, + 53, + 104, + 3, + 3, + 10, + 4, + 7, + 11, + 21, + 4, + 4, + 22, + 26, + 63, + 11, + 2, + 14, + 1, + 10, + 3 + ] + } + }, + "code-frequency-stat-items-2": { + "value": [ + [0, 0, 5], + [0, 1, 43], + [0, 2, 21] + ] + }, + "status": { + "value": { + "url": "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e", + "avatar_url": "https://github.com/images/error/hubot_happy.gif", + "id": 1, + "node_id": "MDY6U3RhdHVzMQ==", + "state": "success", + "description": "Build has completed successfully", + "target_url": "https://ci.example.com/1000/output", + "context": "continuous-integration/jenkins", + "created_at": "2012-07-20T01:19:13Z", + "updated_at": "2012-07-20T01:19:13Z", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "repository-subscription-response-if-you-subscribe-to-the-repository": { + "value": { + "subscribed": true, + "ignored": false, + "reason": null, + "created_at": "2012-10-06T21:34:12Z", + "url": "https://api.github.com/repos/octocat/example/subscription", + "repository_url": "https://api.github.com/repos/octocat/example" + } + }, + "repository-subscription": { + "value": { + "subscribed": true, + "ignored": false, + "reason": null, + "created_at": "2012-10-06T21:34:12Z", + "url": "https://api.github.com/repos/octocat/example/subscription", + "repository_url": "https://api.github.com/repos/octocat/example" + } + }, + "tag-items": { + "value": [ + { + "name": "v0.1", + "commit": { + "sha": "c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc", + "url": "https://api.github.com/repos/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc" + }, + "zipball_url": "https://github.com/octocat/Hello-World/zipball/v0.1", + "tarball_url": "https://github.com/octocat/Hello-World/tarball/v0.1", + "node_id": "MDQ6VXNlcjE=" + } + ] + }, + "topic": { "value": { "names": ["octocat", "atom", "electron", "api"] } }, + "clone-traffic": { + "value": { + "count": 173, + "uniques": 128, + "clones": [ + { "timestamp": "2016-10-10T00:00:00Z", "count": 2, "uniques": 1 }, + { "timestamp": "2016-10-11T00:00:00Z", "count": 17, "uniques": 16 }, + { "timestamp": "2016-10-12T00:00:00Z", "count": 21, "uniques": 15 }, + { "timestamp": "2016-10-13T00:00:00Z", "count": 8, "uniques": 7 }, + { "timestamp": "2016-10-14T00:00:00Z", "count": 5, "uniques": 5 }, + { "timestamp": "2016-10-15T00:00:00Z", "count": 2, "uniques": 2 }, + { "timestamp": "2016-10-16T00:00:00Z", "count": 8, "uniques": 7 }, + { "timestamp": "2016-10-17T00:00:00Z", "count": 26, "uniques": 15 }, + { "timestamp": "2016-10-18T00:00:00Z", "count": 19, "uniques": 17 }, + { "timestamp": "2016-10-19T00:00:00Z", "count": 19, "uniques": 14 }, + { "timestamp": "2016-10-20T00:00:00Z", "count": 19, "uniques": 15 }, + { "timestamp": "2016-10-21T00:00:00Z", "count": 9, "uniques": 7 }, + { "timestamp": "2016-10-22T00:00:00Z", "count": 5, "uniques": 5 }, + { "timestamp": "2016-10-23T00:00:00Z", "count": 6, "uniques": 5 }, + { "timestamp": "2016-10-24T00:00:00Z", "count": 7, "uniques": 5 } + ] + } + }, + "content-traffic-items": { + "value": [ + { + "path": "/github/hubot", + "title": "github/hubot: A customizable life embetterment robot.", + "count": 3542, + "uniques": 2225 + }, + { + "path": "/github/hubot/blob/master/docs/scripting.md", + "title": "hubot/scripting.md at master · github/hubot · GitHub", + "count": 1707, + "uniques": 804 + }, + { + "path": "/github/hubot/tree/master/docs", + "title": "hubot/docs at master · github/hubot · GitHub", + "count": 685, + "uniques": 435 + }, + { + "path": "/github/hubot/tree/master/src", + "title": "hubot/src at master · github/hubot · GitHub", + "count": 577, + "uniques": 347 + }, + { + "path": "/github/hubot/blob/master/docs/index.md", + "title": "hubot/index.md at master · github/hubot · GitHub", + "count": 379, + "uniques": 259 + }, + { + "path": "/github/hubot/blob/master/docs/adapters.md", + "title": "hubot/adapters.md at master · github/hubot · GitHub", + "count": 354, + "uniques": 201 + }, + { + "path": "/github/hubot/tree/master/examples", + "title": "hubot/examples at master · github/hubot · GitHub", + "count": 340, + "uniques": 260 + }, + { + "path": "/github/hubot/blob/master/docs/deploying/heroku.md", + "title": "hubot/heroku.md at master · github/hubot · GitHub", + "count": 324, + "uniques": 217 + }, + { + "path": "/github/hubot/blob/master/src/robot.coffee", + "title": "hubot/robot.coffee at master · github/hubot · GitHub", + "count": 293, + "uniques": 191 + }, + { + "path": "/github/hubot/blob/master/LICENSE.md", + "title": "hubot/LICENSE.md at master · github/hubot · GitHub", + "count": 281, + "uniques": 222 + } + ] + }, + "referrer-traffic-items": { + "value": [ + { "referrer": "Google", "count": 4, "uniques": 3 }, + { "referrer": "stackoverflow.com", "count": 2, "uniques": 2 }, + { "referrer": "eggsonbread.com", "count": 1, "uniques": 1 }, + { "referrer": "yandex.ru", "count": 1, "uniques": 1 } + ] + }, + "view-traffic": { + "value": { + "count": 14850, + "uniques": 3782, + "views": [ + { + "timestamp": "2016-10-10T00:00:00Z", + "count": 440, + "uniques": 143 + }, + { + "timestamp": "2016-10-11T00:00:00Z", + "count": 1308, + "uniques": 414 + }, + { + "timestamp": "2016-10-12T00:00:00Z", + "count": 1486, + "uniques": 452 + }, + { + "timestamp": "2016-10-13T00:00:00Z", + "count": 1170, + "uniques": 401 + }, + { + "timestamp": "2016-10-14T00:00:00Z", + "count": 868, + "uniques": 266 + }, + { + "timestamp": "2016-10-15T00:00:00Z", + "count": 495, + "uniques": 157 + }, + { + "timestamp": "2016-10-16T00:00:00Z", + "count": 524, + "uniques": 175 + }, + { + "timestamp": "2016-10-17T00:00:00Z", + "count": 1263, + "uniques": 412 + }, + { + "timestamp": "2016-10-18T00:00:00Z", + "count": 1402, + "uniques": 417 + }, + { + "timestamp": "2016-10-19T00:00:00Z", + "count": 1394, + "uniques": 424 + }, + { + "timestamp": "2016-10-20T00:00:00Z", + "count": 1492, + "uniques": 448 + }, + { + "timestamp": "2016-10-21T00:00:00Z", + "count": 1153, + "uniques": 332 + }, + { + "timestamp": "2016-10-22T00:00:00Z", + "count": 566, + "uniques": 168 + }, + { + "timestamp": "2016-10-23T00:00:00Z", + "count": 675, + "uniques": 184 + }, + { + "timestamp": "2016-10-24T00:00:00Z", + "count": 614, + "uniques": 237 + } + ] + } + }, + "repository-3": { + "value": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "forks": 9, + "stargazers_count": 80, + "watchers_count": 80, + "watchers": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "open_issues": 0, + "is_template": false, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + } + } + }, + "public-repository-items": { + "value": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "hooks_url": "http://api.github.com/repos/octocat/Hello-World/hooks" + } + ] + }, + "scim-enterprise-group-list": { + "value": { + "schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"], + "totalResults": 2, + "itemsPerPage": 2, + "startIndex": 1, + "Resources": [ + { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"], + "id": "abcd27f8-a9aa-11ea-8221-f59b2be9cccc", + "externalId": null, + "displayName": "octo-org", + "members": [ + { + "value": "92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "$ref": "https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "display": "octocat@github.com" + }, + { + "value": "aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5", + "$ref": "https://api.github.com/scim/v2/enterprises/octo-corp/Users/aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5", + "display": "hubot@example.com" + } + ], + "meta": { + "resourceType": "Group", + "created": "2020-06-09T03:10:17.000+10:00", + "lastModified": "2020-06-09T03:10:17.000+10:00", + "location": "https://api.github.com/scim/v2/enterprises/octo-corp/Groups/abcd27f8-a9aa-11ea-8221-f59b2be9cccc" + } + }, + { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"], + "id": "5e75bbbb-aa1a-11ea-8644-75ff655cdddd", + "externalId": null, + "displayName": "octo-docs-org", + "members": [ + { + "value": "92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "$ref": "https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "display": "octocat@github.com" + } + ], + "meta": { + "resourceType": "Group", + "created": "2020-06-09T16:28:01.000+10:00", + "lastModified": "2020-06-09T16:28:01.000+10:00", + "location": "https://api.github.com/scim/v2/enterprises/octo-corp/Groups/5e75bbbb-aa1a-11ea-8644-75ff655cdddd" + } + } + ] + } + }, + "scim-enterprise-group": { + "value": { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"], + "id": "abcd27f8-a9aa-11ea-8221-f59b2be9cccc", + "externalId": null, + "displayName": "octo-org", + "members": [ + { + "value": "92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "$ref": "https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "display": "octocat@github.com" + }, + { + "value": "aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5", + "$ref": "https://api.github.com/scim/v2/enterprises/octo-corp/Users/aaaa8c34-a6b2-11ea-9d70-bbbbbd1c8fd5", + "display": "hubot@example.com" + } + ], + "meta": { + "resourceType": "Group", + "created": "2020-06-09T03:10:17.000+10:0", + "lastModified": "2020-06-09T03:10:17.000+10:00", + "location": "https://api.github.com/scim/v2/enterprises/octo-corp/Groups/abcd27f8-a9aa-11ea-8221-f59b2be9cccc" + } + } + }, + "scim-enterprise-group-2": { + "value": { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"], + "id": "abcd27f8-a9aa-11ea-8221-f59b2be9cccc", + "externalId": null, + "displayName": "octo-org", + "members": [ + { + "value": "92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "$ref": "https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "display": "octocat@github.com" + } + ], + "meta": { + "resourceType": "Group", + "created": "2020-06-09T03:10:17.000+10:00", + "lastModified": "2020-06-09T03:10:17.000+10:00", + "location": "https://api.github.com/scim/v2/enterprises/octo-corp/Groups/abcd27f8-a9aa-11ea-8221-f59b2be9cccc" + } + } + }, + "scim-enterprise-user-list": { + "value": { + "schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"], + "totalResults": 2, + "itemsPerPage": 2, + "startIndex": 1, + "Resources": [ + { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], + "id": "92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "externalId": "00dowz5dr9oSfDFRA0h7", + "userName": "octocat@github.com", + "name": { "givenName": "Mona", "familyName": "Octocat" }, + "emails": [ + { + "value": "octocat@github.com", + "primary": true, + "type": "work" + } + ], + "groups": [{ "value": "468dd3fa-a1d6-11ea-9031-15a1f0d7811d" }], + "active": true, + "meta": { + "resourceType": "User", + "created": "2020-05-30T04:02:34.000+10:00", + "lastModified": "2020-05-30T04:05:04.000+10:00", + "location": "https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc" + } + }, + { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], + "id": "e18b8c34-a6b2-11ea-9d70-54abbd1c8fd5", + "externalId": "sdfoiausdofiua", + "userName": "hubot@example.com", + "name": { "givenName": "hu", "familyName": "bot" }, + "emails": [ + { + "value": "hubot@example.com", + "type": "work", + "primary": true + } + ], + "groups": [], + "active": true, + "meta": { + "resourceType": "User", + "created": "2020-06-05T08:29:40.000+10:00", + "lastModified": "2020-06-05T08:30:19.000+10:00", + "location": "https://api.github.com/scim/v2/enterprises/octo-corp/Users/e18b8c34-a6b2-11ea-9d70-54abbd1c8fd5" + } + } + ] + } + }, + "scim-enterprise-user": { + "value": { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], + "id": "92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "externalId": "00dowz5dr9oSfDFRA0h7", + "userName": "mona.octocat@okta.example.com", + "name": { "givenName": "Mona", "familyName": "Octocat" }, + "emails": [ + { + "value": "mona.octocat@okta.example.com", + "type": "work", + "primary": true + } + ], + "groups": [{ "value": "468dd3fa-a1d6-11ea-9031-15a1f0d7811d" }], + "active": true, + "meta": { + "resourceType": "User", + "created": "2017-03-09T16:11:13-05:00", + "lastModified": "2017-03-09T16:11:13-05:00", + "location": "https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc" + } + } + }, + "scim-enterprise-user-2": { + "value": { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], + "id": "92b58aaa-a1d6-11ea-8227-b9ce9e023ccc", + "externalId": "00dowz5dr9oSfDFRA0h7", + "userName": "mona.octocat@okta.example.com", + "name": { "givenName": "Monalisa", "familyName": "Octocat" }, + "emails": [ + { + "value": "mona.octocat@okta.example.com", + "type": "work", + "primary": true + }, + { "value": "monalisa@octocat.github.com", "type": "home" } + ], + "groups": [{ "value": "468dd3fa-a1d6-11ea-9031-15a1f0d7811d" }], + "active": true, + "meta": { + "resourceType": "User", + "created": "2017-03-09T16:11:13-05:00", + "lastModified": "2017-03-09T16:11:13-05:00", + "location": "https://api.github.com/scim/v2/enterprises/octo-corp/Users/92b58aaa-a1d6-11ea-8227-b9ce9e023ccc" + } + } + }, + "scim-user-list-response-with-filter": { + "summary": "Response with filter", + "value": { + "schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"], + "totalResults": 1, + "itemsPerPage": 1, + "startIndex": 1, + "Resources": [ + { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], + "id": "5fc0c238-1112-11e8-8e45-920c87bdbd75", + "externalId": "00u1dhhb1fkIGP7RL1d8", + "userName": "octocat@github.com", + "displayName": "Mona Octocat", + "name": { + "givenName": "Mona", + "familyName": "Octocat", + "formatted": "Mona Octocat" + }, + "emails": [{ "value": "octocat@github.com", "primary": true }], + "active": true, + "meta": { + "resourceType": "User", + "created": "2018-02-13T15:05:24.000-08:00", + "lastModified": "2018-02-13T15:05:55.000-08:00", + "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/5fc0c238-1112-11e8-8e45-920c87bdbd75" + } + } + ] + } + }, + "scim-user-list-response-without-filter": { + "summary": "Response without filter", + "value": { + "schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"], + "totalResults": 2, + "itemsPerPage": 2, + "startIndex": 1, + "Resources": [ + { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], + "id": "edefdfedf-050c-11e7-8d32", + "externalId": "a7d0f98382", + "userName": "mona.octocat@okta.example.com", + "displayName": "Mona Octocat", + "name": { + "givenName": "Mona", + "familyName": "Octocat", + "formatted": "Mona Octocat" + }, + "emails": [ + { "value": "mona.octocat@okta.example.com", "primary": true } + ], + "active": true, + "meta": { + "resourceType": "User", + "created": "2017-03-09T16:11:13-05:00", + "lastModified": "2017-03-09T16:11:13-05:00", + "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32" + } + }, + { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], + "id": "77563764-eb6-24-0598234-958243", + "externalId": "sdfoiausdofiua", + "userName": "hubot@example.com", + "displayName": "hu bot", + "name": { + "givenName": "hu", + "familyName": "bot", + "formatted": "hu bot" + }, + "emails": [{ "value": "hubot@example.com", "primary": true }], + "active": true, + "meta": { + "resourceType": "User", + "created": "2017-03-09T16:11:13-05:00", + "lastModified": "2017-03-09T16:11:13-05:00", + "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/77563764-eb6-24-0598234-958243" + } + } + ] + } + }, + "scim-user": { + "value": { + "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"], + "id": "edefdfedf-050c-11e7-8d32", + "externalId": "a7d0f98382", + "userName": "mona.octocat@okta.example.com", + "displayName": "Monalisa Octocat", + "name": { + "givenName": "Monalisa", + "familyName": "Octocat", + "formatted": "Monalisa Octocat" + }, + "emails": [ + { "value": "mona.octocat@okta.example.com", "primary": true }, + { "value": "monalisa@octocat.github.com" } + ], + "active": true, + "meta": { + "resourceType": "User", + "created": "2017-03-09T16:11:13-05:00", + "lastModified": "2017-03-09T16:11:13-05:00", + "location": "https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32" + } + } + }, + "code-search-result-item-paginated": { + "value": { + "total_count": 7, + "incomplete_results": false, + "items": [ + { + "name": "classes.js", + "path": "src/attributes/classes.js", + "sha": "d7212f9dee2dcc18f084d7df8f417b80846ded5a", + "url": "https://api.github.com/repositories/167174/contents/src/attributes/classes.js?ref=825ac3773694e0cd23ee74895fd5aeb535b27da4", + "git_url": "https://api.github.com/repositories/167174/git/blobs/d7212f9dee2dcc18f084d7df8f417b80846ded5a", + "html_url": "https://github.com/jquery/jquery/blob/825ac3773694e0cd23ee74895fd5aeb535b27da4/src/attributes/classes.js", + "repository": { + "id": 167174, + "node_id": "MDEwOlJlcG9zaXRvcnkxNjcxNzQ=", + "name": "jquery", + "full_name": "jquery/jquery", + "owner": { + "login": "jquery", + "id": 70142, + "node_id": "MDQ6VXNlcjcwMTQy", + "avatar_url": "https://0.gravatar.com/avatar/6906f317a4733f4379b06c32229ef02f?d=https%3A%2F%2Fidenticons.github.com%2Ff426f04f2f9813718fb806b30e0093de.png", + "gravatar_id": "", + "url": "https://api.github.com/users/jquery", + "html_url": "https://github.com/jquery", + "followers_url": "https://api.github.com/users/jquery/followers", + "following_url": "https://api.github.com/users/jquery/following{/other_user}", + "gists_url": "https://api.github.com/users/jquery/gists{/gist_id}", + "starred_url": "https://api.github.com/users/jquery/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/jquery/subscriptions", + "organizations_url": "https://api.github.com/users/jquery/orgs", + "repos_url": "https://api.github.com/users/jquery/repos", + "events_url": "https://api.github.com/users/jquery/events{/privacy}", + "received_events_url": "https://api.github.com/users/jquery/received_events", + "type": "Organization", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/jquery/jquery", + "description": "jQuery JavaScript Library", + "fork": false, + "url": "https://api.github.com/repos/jquery/jquery", + "forks_url": "https://api.github.com/repos/jquery/jquery/forks", + "keys_url": "https://api.github.com/repos/jquery/jquery/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/jquery/jquery/teams", + "hooks_url": "https://api.github.com/repos/jquery/jquery/hooks", + "issue_events_url": "https://api.github.com/repos/jquery/jquery/issues/events{/number}", + "events_url": "https://api.github.com/repos/jquery/jquery/events", + "assignees_url": "https://api.github.com/repos/jquery/jquery/assignees{/user}", + "branches_url": "https://api.github.com/repos/jquery/jquery/branches{/branch}", + "tags_url": "https://api.github.com/repos/jquery/jquery/tags", + "blobs_url": "https://api.github.com/repos/jquery/jquery/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/jquery/jquery/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/jquery/jquery/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/jquery/jquery/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/jquery/jquery/statuses/{sha}", + "languages_url": "https://api.github.com/repos/jquery/jquery/languages", + "stargazers_url": "https://api.github.com/repos/jquery/jquery/stargazers", + "contributors_url": "https://api.github.com/repos/jquery/jquery/contributors", + "subscribers_url": "https://api.github.com/repos/jquery/jquery/subscribers", + "subscription_url": "https://api.github.com/repos/jquery/jquery/subscription", + "commits_url": "https://api.github.com/repos/jquery/jquery/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/jquery/jquery/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/jquery/jquery/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/jquery/jquery/issues/comments/{number}", + "contents_url": "https://api.github.com/repos/jquery/jquery/contents/{+path}", + "compare_url": "https://api.github.com/repos/jquery/jquery/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/jquery/jquery/merges", + "archive_url": "https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/jquery/jquery/downloads", + "issues_url": "https://api.github.com/repos/jquery/jquery/issues{/number}", + "pulls_url": "https://api.github.com/repos/jquery/jquery/pulls{/number}", + "milestones_url": "https://api.github.com/repos/jquery/jquery/milestones{/number}", + "notifications_url": "https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/jquery/jquery/labels{/name}", + "deployments_url": "http://api.github.com/repos/octocat/Hello-World/deployments", + "releases_url": "http://api.github.com/repos/octocat/Hello-World/releases{/id}" + }, + "score": 1 + } + ] + } + }, + "commit-search-result-item-paginated": { + "value": { + "total_count": 1, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f", + "sha": "bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f", + "html_url": "https://github.com/octocat/Spoon-Knife/commit/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f", + "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f/comments", + "commit": { + "url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits/bb4cc8d3b2e14b3af5df699876dd4ff3acd00b7f", + "author": { + "date": "2014-02-04T14:38:36-08:00", + "name": "The Octocat", + "email": "octocat@nowhere.com" + }, + "committer": { + "date": "2014-02-12T15:18:55-08:00", + "name": "The Octocat", + "email": "octocat@nowhere.com" + }, + "message": "Create styles.css and updated README", + "tree": { + "url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees/a639e96f9038797fba6e0469f94a4b0cc459fa68", + "sha": "a639e96f9038797fba6e0469f94a4b0cc459fa68" + }, + "comment_count": 8 + }, + "author": { + "login": "octocat", + "id": 583231, + "node_id": "MDQ6VXNlcjU4MzIzMQ==", + "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "committer": {}, + "parents": [ + { + "url": "https://api.github.com/repos/octocat/Spoon-Knife/commits/a30c19e3f13765a3b48829788bc1cb8b4e95cee4", + "html_url": "https://github.com/octocat/Spoon-Knife/commit/a30c19e3f13765a3b48829788bc1cb8b4e95cee4", + "sha": "a30c19e3f13765a3b48829788bc1cb8b4e95cee4" + } + ], + "repository": { + "id": 1300192, + "node_id": "MDEwOlJlcG9zaXRvcnkxMzAwMTky", + "name": "Spoon-Knife", + "full_name": "octocat/Spoon-Knife", + "owner": { + "login": "octocat", + "id": 583231, + "node_id": "MDQ6VXNlcjU4MzIzMQ==", + "avatar_url": "https://avatars.githubusercontent.com/u/583231?v=3", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Spoon-Knife", + "description": "This repo is for demonstration purposes only.", + "fork": false, + "url": "https://api.github.com/repos/octocat/Spoon-Knife", + "forks_url": "https://api.github.com/repos/octocat/Spoon-Knife/forks", + "keys_url": "https://api.github.com/repos/octocat/Spoon-Knife/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/octocat/Spoon-Knife/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/octocat/Spoon-Knife/teams", + "hooks_url": "https://api.github.com/repos/octocat/Spoon-Knife/hooks", + "issue_events_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/events{/number}", + "events_url": "https://api.github.com/repos/octocat/Spoon-Knife/events", + "assignees_url": "https://api.github.com/repos/octocat/Spoon-Knife/assignees{/user}", + "branches_url": "https://api.github.com/repos/octocat/Spoon-Knife/branches{/branch}", + "tags_url": "https://api.github.com/repos/octocat/Spoon-Knife/tags", + "blobs_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/octocat/Spoon-Knife/statuses/{sha}", + "languages_url": "https://api.github.com/repos/octocat/Spoon-Knife/languages", + "stargazers_url": "https://api.github.com/repos/octocat/Spoon-Knife/stargazers", + "contributors_url": "https://api.github.com/repos/octocat/Spoon-Knife/contributors", + "subscribers_url": "https://api.github.com/repos/octocat/Spoon-Knife/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Spoon-Knife/subscription", + "commits_url": "https://api.github.com/repos/octocat/Spoon-Knife/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/octocat/Spoon-Knife/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/octocat/Spoon-Knife/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/octocat/Spoon-Knife/contents/{+path}", + "compare_url": "https://api.github.com/repos/octocat/Spoon-Knife/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/octocat/Spoon-Knife/merges", + "archive_url": "https://api.github.com/repos/octocat/Spoon-Knife/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/octocat/Spoon-Knife/downloads", + "issues_url": "https://api.github.com/repos/octocat/Spoon-Knife/issues{/number}", + "pulls_url": "https://api.github.com/repos/octocat/Spoon-Knife/pulls{/number}", + "milestones_url": "https://api.github.com/repos/octocat/Spoon-Knife/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Spoon-Knife/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/octocat/Spoon-Knife/labels{/name}", + "releases_url": "https://api.github.com/repos/octocat/Spoon-Knife/releases{/id}", + "deployments_url": "https://api.github.com/repos/octocat/Spoon-Knife/deployments" + }, + "score": 1, + "node_id": "MDQ6VXNlcjU4MzIzMQ==" + } + ] + } + }, + "issue-search-result-item-paginated": { + "value": { + "total_count": 280, + "incomplete_results": false, + "items": [ + { + "url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132", + "repository_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit", + "labels_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/labels{/name}", + "comments_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/comments", + "events_url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/issues/132/events", + "html_url": "https://github.com/batterseapower/pinyin-toolkit/issues/132", + "id": 35802, + "node_id": "MDU6SXNzdWUzNTgwMg==", + "number": 132, + "title": "Line Number Indexes Beyond 20 Not Displayed", + "user": { + "login": "Nick3C", + "id": 90254, + "node_id": "MDQ6VXNlcjkwMjU0", + "avatar_url": "https://secure.gravatar.com/avatar/934442aadfe3b2f4630510de416c5718?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png", + "gravatar_id": "", + "url": "https://api.github.com/users/Nick3C", + "html_url": "https://github.com/Nick3C", + "followers_url": "https://api.github.com/users/Nick3C/followers", + "following_url": "https://api.github.com/users/Nick3C/following{/other_user}", + "gists_url": "https://api.github.com/users/Nick3C/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Nick3C/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Nick3C/subscriptions", + "organizations_url": "https://api.github.com/users/Nick3C/orgs", + "repos_url": "https://api.github.com/users/Nick3C/repos", + "events_url": "https://api.github.com/users/Nick3C/events{/privacy}", + "received_events_url": "https://api.github.com/users/Nick3C/received_events", + "type": "User", + "site_admin": true + }, + "labels": [ + { + "id": 4, + "node_id": "MDU6TGFiZWw0", + "url": "https://api.github.com/repos/batterseapower/pinyin-toolkit/labels/bug", + "name": "bug", + "color": "ff0000" + } + ], + "state": "open", + "assignee": null, + "milestone": { + "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1", + "html_url": "https://github.com/octocat/Hello-World/milestones/v1.0", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/milestones/1/labels", + "id": 1002604, + "node_id": "MDk6TWlsZXN0b25lMTAwMjYwNA==", + "number": 1, + "state": "open", + "title": "v1.0", + "description": "Tracking milestone for version 1.0", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 4, + "closed_issues": 8, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z", + "closed_at": "2013-02-12T13:22:01Z", + "due_on": "2012-10-09T23:39:01Z" + }, + "comments": 15, + "created_at": "2009-07-12T20:10:41Z", + "updated_at": "2009-07-19T09:23:43Z", + "closed_at": null, + "pull_request": { + "url": "https://api/github.com/repos/octocat/Hello-World/pull/1347", + "html_url": "https://github.com/octocat/Hello-World/pull/1347", + "diff_url": "https://github.com/octocat/Hello-World/pull/1347.diff", + "patch_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1347" + }, + "body": "...", + "score": 1, + "locked": true, + "author_association": "collaborator" + } + ] + } + }, + "label-search-result-item-paginated": { + "value": { + "total_count": 2, + "incomplete_results": false, + "items": [ + { + "id": 418327088, + "node_id": "MDU6TGFiZWw0MTgzMjcwODg=", + "url": "https://api.github.com/repos/octocat/linguist/labels/enhancement", + "name": "enhancement", + "color": "84b6eb", + "default": true, + "description": "New feature or request.", + "score": 1 + }, + { + "id": 418327086, + "node_id": "MDU6TGFiZWw0MTgzMjcwODY=", + "url": "https://api.github.com/repos/octocat/linguist/labels/bug", + "name": "bug", + "color": "ee0701", + "default": true, + "description": "Something isn't working.", + "score": 1 + } + ] + } + }, + "repo-search-result-item-paginated": { + "value": { + "total_count": 40, + "incomplete_results": false, + "items": [ + { + "id": 3081286, + "node_id": "MDEwOlJlcG9zaXRvcnkzMDgxMjg2", + "name": "Tetris", + "full_name": "dtrupenn/Tetris", + "owner": { + "login": "dtrupenn", + "id": 872147, + "node_id": "MDQ6VXNlcjg3MjE0Nw==", + "avatar_url": "https://secure.gravatar.com/avatar/e7956084e75f239de85d3a31bc172ace?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png", + "gravatar_id": "", + "url": "https://api.github.com/users/dtrupenn", + "received_events_url": "https://api.github.com/users/dtrupenn/received_events", + "type": "User", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "site_admin": true + }, + "private": false, + "html_url": "https://github.com/dtrupenn/Tetris", + "description": "A C implementation of Tetris using Pennsim through LC4", + "fork": false, + "url": "https://api.github.com/repos/dtrupenn/Tetris", + "created_at": "2012-01-01T00:31:50Z", + "updated_at": "2013-01-05T17:58:47Z", + "pushed_at": "2012-01-01T00:37:02Z", + "homepage": "https://github.com", + "size": 524, + "stargazers_count": 1, + "watchers_count": 1, + "language": "Assembly", + "forks_count": 0, + "open_issues_count": 0, + "master_branch": "master", + "default_branch": "master", + "score": 1, + "archive_url": "https://api.github.com/repos/dtrupenn/Tetris/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/dtrupenn/Tetris/assignees{/user}", + "blobs_url": "https://api.github.com/repos/dtrupenn/Tetris/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/dtrupenn/Tetris/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/dtrupenn/Tetris/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/dtrupenn/Tetris/comments{/number}", + "commits_url": "https://api.github.com/repos/dtrupenn/Tetris/commits{/sha}", + "compare_url": "https://api.github.com/repos/dtrupenn/Tetris/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/dtrupenn/Tetris/contents/{+path}", + "contributors_url": "https://api.github.com/repos/dtrupenn/Tetris/contributors", + "deployments_url": "https://api.github.com/repos/dtrupenn/Tetris/deployments", + "downloads_url": "https://api.github.com/repos/dtrupenn/Tetris/downloads", + "events_url": "https://api.github.com/repos/dtrupenn/Tetris/events", + "forks_url": "https://api.github.com/repos/dtrupenn/Tetris/forks", + "git_commits_url": "https://api.github.com/repos/dtrupenn/Tetris/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/dtrupenn/Tetris/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/dtrupenn/Tetris/git/tags{/sha}", + "git_url": "git:github.com/dtrupenn/Tetris.git", + "issue_comment_url": "https://api.github.com/repos/dtrupenn/Tetris/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/dtrupenn/Tetris/issues/events{/number}", + "issues_url": "https://api.github.com/repos/dtrupenn/Tetris/issues{/number}", + "keys_url": "https://api.github.com/repos/dtrupenn/Tetris/keys{/key_id}", + "labels_url": "https://api.github.com/repos/dtrupenn/Tetris/labels{/name}", + "languages_url": "https://api.github.com/repos/dtrupenn/Tetris/languages", + "merges_url": "https://api.github.com/repos/dtrupenn/Tetris/merges", + "milestones_url": "https://api.github.com/repos/dtrupenn/Tetris/milestones{/number}", + "notifications_url": "https://api.github.com/repos/dtrupenn/Tetris/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/dtrupenn/Tetris/pulls{/number}", + "releases_url": "https://api.github.com/repos/dtrupenn/Tetris/releases{/id}", + "ssh_url": "git@github.com:dtrupenn/Tetris.git", + "stargazers_url": "https://api.github.com/repos/dtrupenn/Tetris/stargazers", + "statuses_url": "https://api.github.com/repos/dtrupenn/Tetris/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/dtrupenn/Tetris/subscribers", + "subscription_url": "https://api.github.com/repos/dtrupenn/Tetris/subscription", + "tags_url": "https://api.github.com/repos/dtrupenn/Tetris/tags", + "teams_url": "https://api.github.com/repos/dtrupenn/Tetris/teams", + "trees_url": "https://api.github.com/repos/dtrupenn/Tetris/git/trees{/sha}", + "clone_url": "https://github.com/dtrupenn/Tetris.git", + "mirror_url": "git:git.example.com/dtrupenn/Tetris", + "hooks_url": "https://api.github.com/repos/dtrupenn/Tetris/hooks", + "svn_url": "https://svn.github.com/dtrupenn/Tetris", + "forks": 1, + "open_issues": 1, + "watchers": 1, + "has_issues": true, + "has_projects": true, + "has_pages": true, + "has_wiki": true, + "has_downloads": true, + "archived": true, + "disabled": true, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + } + } + ] + } + }, + "topic-search-result-item-paginated": { + "value": { + "total_count": 6, + "incomplete_results": false, + "items": [ + { + "name": "ruby", + "display_name": "Ruby", + "short_description": "Ruby is a scripting language designed for simplified object-oriented programming.", + "description": "Ruby was developed by Yukihiro \"Matz\" Matsumoto in 1995 with the intent of having an easily readable programming language. It is integrated with the Rails framework to create dynamic web-applications. Ruby's syntax is similar to that of Perl and Python.", + "created_by": "Yukihiro Matsumoto", + "released": "December 21, 1995", + "created_at": "2016-11-28T22:03:59Z", + "updated_at": "2017-10-30T18:16:32Z", + "featured": true, + "curated": true, + "score": 1 + }, + { + "name": "rails", + "display_name": "Rails", + "short_description": "Ruby on Rails (Rails) is a web application framework written in Ruby.", + "description": "Ruby on Rails (Rails) is a web application framework written in Ruby. It is meant to help simplify the building of complex websites.", + "created_by": "David Heinemeier Hansson", + "released": "December 13 2005", + "created_at": "2016-12-09T17:03:50Z", + "updated_at": "2017-10-30T16:20:19Z", + "featured": true, + "curated": true, + "score": 1 + }, + { + "name": "python", + "display_name": "Python", + "short_description": "Python is a dynamically typed programming language.", + "description": "Python is a dynamically typed programming language designed by Guido Van Rossum. Much like the programming language Ruby, Python was designed to be easily read by programmers. Because of its large following and many libraries, Python can be implemented and used to do anything from webpages to scientific research.", + "created_by": "Guido van Rossum", + "released": "February 20, 1991", + "created_at": "2016-12-07T00:07:02Z", + "updated_at": "2017-10-27T22:45:43Z", + "featured": true, + "curated": true, + "score": 1 + }, + { + "name": "jekyll", + "display_name": "Jekyll", + "short_description": "Jekyll is a simple, blog-aware static site generator.", + "description": "Jekyll is a blog-aware, site generator written in Ruby. It takes raw text files, runs it through a renderer and produces a publishable static website.", + "created_by": "Tom Preston-Werner", + "released": "2008", + "created_at": "2016-12-16T21:53:08Z", + "updated_at": "2017-10-27T19:00:24Z", + "featured": true, + "curated": true, + "score": 1 + }, + { + "name": "sass", + "display_name": "Sass", + "short_description": "Sass is a stable extension to classic CSS.", + "description": "Sass is a stylesheet language with a main implementation in Ruby. It is an extension of CSS that makes improvements to the old stylesheet format, such as being able to declare variables and using a cleaner nesting syntax.", + "created_by": "Hampton Catlin, Natalie Weizenbaum, Chris Eppstein", + "released": "November 28, 2006", + "created_at": "2016-12-16T21:53:45Z", + "updated_at": "2018-01-16T16:30:40Z", + "featured": true, + "curated": true, + "score": 1 + }, + { + "name": "homebrew", + "display_name": "Homebrew", + "short_description": "Homebrew is a package manager for macOS.", + "description": "Homebrew is a package manager for Apple's macOS operating system. It simplifies the installation of software and is popular in the Ruby on Rails community.", + "created_by": "Max Howell", + "released": "2009", + "created_at": "2016-12-17T20:30:44Z", + "updated_at": "2018-02-06T16:14:56Z", + "featured": true, + "curated": true, + "score": 1 + } + ] + } + }, + "user-search-result-item-paginated": { + "value": { + "total_count": 12, + "incomplete_results": false, + "items": [ + { + "login": "mojombo", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png", + "gravatar_id": "", + "url": "https://api.github.com/users/mojombo", + "html_url": "https://github.com/mojombo", + "followers_url": "https://api.github.com/users/mojombo/followers", + "subscriptions_url": "https://api.github.com/users/mojombo/subscriptions", + "organizations_url": "https://api.github.com/users/mojombo/orgs", + "repos_url": "https://api.github.com/users/mojombo/repos", + "received_events_url": "https://api.github.com/users/mojombo/received_events", + "type": "User", + "score": 1, + "following_url": "https://api.github.com/users/mojombo/following{/other_user}", + "gists_url": "https://api.github.com/users/mojombo/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mojombo/starred{/owner}{/repo}", + "events_url": "https://api.github.com/users/mojombo/events{/privacy}", + "site_admin": true + } + ] + } + }, + "team-repository-alternative-response-with-extra-repository-information": { + "value": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + }, + "group-mapping-2": { + "value": { + "groups": [ + { + "group_id": "123", + "group_name": "Octocat admins", + "group_description": "The people who configure your octoworld." + } + ] + } + }, + "private-user-response-with-public-and-private-profile-information": { + "summary": "Response with public and private profile information", + "value": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false, + "name": "monalisa octocat", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "hireable": false, + "bio": "There once was...", + "twitter_username": "monatheoctocat", + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2008-01-14T04:33:35Z", + "private_gists": 81, + "total_private_repos": 100, + "owned_private_repos": 100, + "disk_usage": 10000, + "collaborators": 8, + "two_factor_authentication": true, + "plan": { + "name": "Medium", + "space": 400, + "private_repos": 20, + "collaborators": 0 + } + } + }, + "private-user-response-with-public-profile-information": { + "summary": "Response with public profile information", + "value": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false, + "name": "monalisa octocat", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "hireable": false, + "bio": "There once was...", + "twitter_username": "monatheoctocat", + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2008-01-14T04:33:35Z" + } + }, + "private-user": { + "value": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false, + "name": "monalisa octocat", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "hireable": false, + "bio": "There once was...", + "twitter_username": "monatheoctocat", + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2008-01-14T04:33:35Z", + "private_gists": 81, + "total_private_repos": 100, + "owned_private_repos": 100, + "disk_usage": 10000, + "collaborators": 8, + "two_factor_authentication": true, + "plan": { + "name": "Medium", + "space": 400, + "private_repos": 20, + "collaborators": 0 + } + } + }, + "email-items-3": { + "value": [ + { + "email": "octocat@github.com", + "primary": true, + "verified": true, + "visibility": "private" + } + ] + }, + "email-items-2": { + "value": [ + { + "email": "octocat@github.com", + "verified": true, + "primary": true, + "visibility": "public" + } + ] + }, + "email-items": { + "value": [ + { + "email": "octocat@octocat.org", + "primary": false, + "verified": false, + "visibility": "public" + }, + { + "email": "octocat@github.com", + "primary": false, + "verified": false, + "visibility": null + }, + { + "email": "mona@github.com", + "primary": false, + "verified": false, + "visibility": null + } + ] + }, + "gpg-key-items": { + "value": [ + { + "id": 3, + "primary_key_id": 2, + "key_id": "3262EFF25BA0D270", + "public_key": "xsBNBFayYZ...", + "emails": [ + { + "email": "mastahyeti@users.noreply.github.com", + "verified": true + } + ], + "subkeys": [ + { + "id": 4, + "primary_key_id": 3, + "key_id": "4A595D4C72EE49C7", + "public_key": "zsBNBFayYZ...", + "emails": [], + "subkeys": [], + "can_sign": false, + "can_encrypt_comms": true, + "can_encrypt_storage": true, + "can_certify": false, + "created_at": "2016-03-24T11:31:04-06:00", + "expires_at": "2016-03-24T11:31:04-07:00" + } + ], + "can_sign": true, + "can_encrypt_comms": false, + "can_encrypt_storage": false, + "can_certify": true, + "created_at": "2016-03-24T11:31:04-06:00", + "expires_at": "2016-03-24T11:31:04-07:00", + "raw_key": "string" + } + ] + }, + "gpg-key": { + "value": { + "id": 3, + "primary_key_id": 2, + "key_id": "3262EFF25BA0D270", + "public_key": "xsBNBFayYZ...", + "emails": [ + { "email": "mastahyeti@users.noreply.github.com", "verified": true } + ], + "subkeys": [ + { + "id": 4, + "primary_key_id": 3, + "key_id": "4A595D4C72EE49C7", + "public_key": "zsBNBFayYZ...", + "emails": [], + "subkeys": [], + "can_sign": false, + "can_encrypt_comms": true, + "can_encrypt_storage": true, + "can_certify": false, + "created_at": "2016-03-24T11:31:04-06:00", + "expires_at": "2016-03-24T11:31:04-07:00" + } + ], + "can_sign": true, + "can_encrypt_comms": false, + "can_encrypt_storage": false, + "can_certify": true, + "created_at": "2016-03-24T11:31:04-06:00", + "expires_at": "2016-03-24T11:31:04-07:00", + "raw_key": "\"-----BEGIN PGP PUBLIC KEY BLOCK-----\\nVersion: GnuPG v2\\n\\n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\\nIts/HFYRLiFgDLmTlxo=\\n=+OzK\\n-----END PGP PUBLIC KEY BLOCK-----\"" + } + }, + "base-installation-for-auth-user-paginated": { + "value": { + "total_count": 2, + "installations": [ + { + "id": 1, + "account": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "access_tokens_url": "https://api.github.com/installations/1/access_tokens", + "repositories_url": "https://api.github.com/installation/repositories", + "html_url": "https://github.com/organizations/github/settings/installations/1", + "app_id": 1, + "target_id": 1, + "target_type": "Organization", + "permissions": { + "checks": "write", + "metadata": "read", + "contents": "read" + }, + "events": ["push", "pull_request"], + "single_file_name": "config.yaml", + "has_multiple_single_files": true, + "single_file_paths": ["config.yml", ".github/issue_TEMPLATE.md"], + "repository_selection": "all", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "app_slug": "github-actions" + }, + { + "id": 3, + "account": { + "login": "octocat", + "id": 2, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "access_tokens_url": "https://api.github.com/installations/1/access_tokens", + "repositories_url": "https://api.github.com/installation/repositories", + "html_url": "https://github.com/organizations/github/settings/installations/1", + "app_id": 1, + "target_id": 1, + "target_type": "Organization", + "permissions": { + "checks": "write", + "metadata": "read", + "contents": "read" + }, + "events": ["push", "pull_request"], + "single_file_name": "config.yaml", + "has_multiple_single_files": true, + "single_file_paths": ["config.yml", ".github/issue_TEMPLATE.md"], + "repository_selection": "all", + "created_at": "2017-07-08T16:18:44-04:00", + "updated_at": "2017-07-08T16:18:44-04:00", + "app_slug": "github-actions" + } + ] + } + }, + "interaction-limit-user": { + "value": { + "limit": "collaborators_only", + "origin": "user", + "expires_at": "2018-08-17T04:18:39Z" + } + }, + "key-items": { + "value": [ + { + "key_id": "012345678912345678", + "key": "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234", + "id": 2, + "url": "https://api.github.com/user/keys/2", + "title": "ssh-rsa AAAAB3NzaC1yc2EAAA", + "created_at": "2020-06-11T21:31:57Z", + "verified": false, + "read_only": false + }, + { + "key_id": "012345678912345608", + "key": "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJy931234", + "id": 3, + "url": "https://api.github.com/user/keys/3", + "title": "ssh-rsa AAAAB3NzaC1yc2EAAB", + "created_at": "2020-07-11T21:31:57Z", + "verified": false, + "read_only": false + } + ] + }, + "key": { + "value": { + "key_id": "012345678912345678", + "key": "2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234", + "id": 2, + "url": "https://api.github.com/user/keys/2", + "title": "ssh-rsa AAAAB3NzaC1yc2EAAA", + "created_at": "2020-06-11T21:31:57Z", + "verified": false, + "read_only": false + } + }, + "user-marketplace-purchase-items": { + "value": [ + { + "billing_cycle": "monthly", + "next_billing_date": "2017-11-11T00:00:00Z", + "unit_count": null, + "on_free_trial": true, + "free_trial_ends_on": "2017-11-11T00:00:00Z", + "updated_at": "2017-11-02T01:12:12Z", + "account": { + "login": "github", + "id": 4, + "url": "https://api.github.com/orgs/github", + "email": null, + "organization_billing_email": "billing@github.com", + "type": "Organization" + }, + "plan": { + "url": "https://api.github.com/marketplace_listing/plans/1313", + "accounts_url": "https://api.github.com/marketplace_listing/plans/1313/accounts", + "id": 1313, + "number": 3, + "name": "Pro", + "description": "A professional-grade CI solution", + "monthly_price_in_cents": 1099, + "yearly_price_in_cents": 11870, + "price_model": "flat-rate", + "has_free_trial": true, + "unit_name": null, + "state": "published", + "bullets": [ + "Up to 25 private repositories", + "11 concurrent builds" + ] + } + } + ] + }, + "org-membership-items": { + "value": [ + { + "url": "https://api.github.com/orgs/octocat/memberships/defunkt", + "state": "active", + "role": "admin", + "organization_url": "https://api.github.com/orgs/octocat", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + }, + { + "url": "https://api.github.com/orgs/invitocat/memberships/defunkt", + "state": "pending", + "role": "admin", + "organization_url": "https://api.github.com/orgs/invitocat", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + ] + }, + "org-membership": { + "value": { + "url": "https://api.github.com/orgs/invitocat/memberships/defunkt", + "state": "pending", + "role": "admin", + "organization_url": "https://api.github.com/orgs/invitocat", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "org-membership-2": { + "value": { + "url": "https://api.github.com/orgs/octocat/memberships/defunkt", + "state": "active", + "role": "admin", + "organization_url": "https://api.github.com/orgs/octocat", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization" + }, + "user": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + } + } + }, + "migration-items": { + "value": [ + { + "id": 79, + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "state": "pending", + "lock_repositories": true, + "exclude_attachments": false, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ], + "url": "https://api.github.com/orgs/octo-org/migrations/79", + "created_at": "2015-07-06T15:33:38-07:00", + "updated_at": "2015-07-06T15:33:38-07:00", + "node_id": "MDQ6VXNlcjE=" + } + ] + }, + "migration-2": { + "value": { + "id": 79, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "state": "pending", + "lock_repositories": true, + "exclude_attachments": false, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ], + "url": "https://api.github.com/orgs/octo-org/migrations/79", + "created_at": "2015-07-06T15:33:38-07:00", + "updated_at": "2015-07-06T15:33:38-07:00" + } + }, + "migration": { + "value": { + "id": 79, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "guid": "0b989ba4-242f-11e5-81e1-c7b6966d2516", + "state": "exported", + "lock_repositories": true, + "exclude_attachments": false, + "repositories": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://api.github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ], + "url": "https://api.github.com/orgs/octo-org/migrations/79", + "created_at": "2015-07-06T15:33:38-07:00", + "updated_at": "2015-07-06T15:33:38-07:00" + } + }, + "project": { + "value": { + "owner_url": "https://api.github.com/users/octocat", + "url": "https://api.github.com/projects/1002603", + "html_url": "https://github.com/users/octocat/projects/1", + "columns_url": "https://api.github.com/projects/1002603/columns", + "id": 1002603, + "node_id": "MDc6UHJvamVjdDEwMDI2MDM=", + "name": "My Projects", + "body": "A board to manage my personal projects.", + "number": 1, + "state": "open", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z" + } + }, + "repository-items-default-response": { + "summary": "Default response", + "value": [ + { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + ] + }, + "starred-repository-items-alternative-response-with-star-creation-timestamps": { + "summary": "Alternative response with star creation timestamps", + "value": [ + { + "starred_at": "2011-01-16T19:06:43Z", + "repo": { + "id": 1296269, + "node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", + "name": "Hello-World", + "full_name": "octocat/Hello-World", + "owner": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "private": false, + "html_url": "https://github.com/octocat/Hello-World", + "description": "This your first repo!", + "fork": false, + "url": "https://api.github.com/repos/octocat/Hello-World", + "archive_url": "https://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}", + "assignees_url": "https://api.github.com/repos/octocat/Hello-World/assignees{/user}", + "blobs_url": "https://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/octocat/Hello-World/branches{/branch}", + "collaborators_url": "https://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/octocat/Hello-World/comments{/number}", + "commits_url": "https://api.github.com/repos/octocat/Hello-World/commits{/sha}", + "compare_url": "https://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/octocat/Hello-World/contents/{+path}", + "contributors_url": "https://api.github.com/repos/octocat/Hello-World/contributors", + "deployments_url": "https://api.github.com/repos/octocat/Hello-World/deployments", + "downloads_url": "https://api.github.com/repos/octocat/Hello-World/downloads", + "events_url": "https://api.github.com/repos/octocat/Hello-World/events", + "forks_url": "https://api.github.com/repos/octocat/Hello-World/forks", + "git_commits_url": "https://api.github.com/repos/octocat/Hello-World/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/octocat/Hello-World/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/octocat/Hello-World/git/tags{/sha}", + "git_url": "git:github.com/octocat/Hello-World.git", + "issue_comment_url": "https://api.github.com/repos/octocat/Hello-World/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/octocat/Hello-World/issues/events{/number}", + "issues_url": "https://api.github.com/repos/octocat/Hello-World/issues{/number}", + "keys_url": "https://api.github.com/repos/octocat/Hello-World/keys{/key_id}", + "labels_url": "https://api.github.com/repos/octocat/Hello-World/labels{/name}", + "languages_url": "https://api.github.com/repos/octocat/Hello-World/languages", + "merges_url": "https://api.github.com/repos/octocat/Hello-World/merges", + "milestones_url": "https://api.github.com/repos/octocat/Hello-World/milestones{/number}", + "notifications_url": "https://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}", + "pulls_url": "https://api.github.com/repos/octocat/Hello-World/pulls{/number}", + "releases_url": "https://api.github.com/repos/octocat/Hello-World/releases{/id}", + "ssh_url": "git@github.com:octocat/Hello-World.git", + "stargazers_url": "https://api.github.com/repos/octocat/Hello-World/stargazers", + "statuses_url": "https://api.github.com/repos/octocat/Hello-World/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/octocat/Hello-World/subscribers", + "subscription_url": "https://api.github.com/repos/octocat/Hello-World/subscription", + "tags_url": "https://api.github.com/repos/octocat/Hello-World/tags", + "teams_url": "https://api.github.com/repos/octocat/Hello-World/teams", + "trees_url": "https://api.github.com/repos/octocat/Hello-World/git/trees{/sha}", + "clone_url": "https://github.com/octocat/Hello-World.git", + "mirror_url": "git:git.example.com/octocat/Hello-World", + "hooks_url": "https://api.github.com/repos/octocat/Hello-World/hooks", + "svn_url": "https://svn.github.com/octocat/Hello-World", + "homepage": "https://github.com", + "language": null, + "forks_count": 9, + "stargazers_count": 80, + "watchers_count": 80, + "size": 108, + "default_branch": "master", + "open_issues_count": 0, + "is_template": true, + "topics": ["octocat", "atom", "electron", "api"], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "archived": false, + "disabled": false, + "visibility": "public", + "pushed_at": "2011-01-26T19:06:43Z", + "created_at": "2011-01-26T19:01:12Z", + "updated_at": "2011-01-26T19:14:43Z", + "permissions": { "admin": false, "push": false, "pull": true }, + "allow_rebase_merge": true, + "template_repository": null, + "temp_clone_token": "ABTLWHOULUVAXGTRYU7OC2876QJ2O", + "allow_squash_merge": true, + "delete_branch_on_merge": true, + "allow_merge_commit": true, + "subscribers_count": 42, + "network_count": 0, + "license": { + "key": "mit", + "name": "MIT License", + "url": "https://api.github.com/licenses/mit", + "spdx_id": "MIT", + "node_id": "MDc6TGljZW5zZW1pdA==", + "html_url": "https://github.com/licenses/mit" + }, + "forks": 1, + "open_issues": 1, + "watchers": 1 + } + } + ] + }, + "team-full-items": { + "value": [ + { + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://api.github.com/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "permission": "admin", + "members_url": "https://api.github.com/teams/1/members{/member}", + "repositories_url": "https://api.github.com/teams/1/repos", + "parent": null, + "members_count": 3, + "repos_count": 10, + "created_at": "2017-07-14T16:53:42Z", + "updated_at": "2017-08-17T12:37:15Z", + "organization": { + "login": "github", + "id": 1, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=", + "url": "https://api.github.com/orgs/github", + "repos_url": "https://api.github.com/orgs/github/repos", + "events_url": "https://api.github.com/orgs/github/events", + "hooks_url": "https://api.github.com/orgs/github/hooks", + "issues_url": "https://api.github.com/orgs/github/issues", + "members_url": "https://api.github.com/orgs/github/members{/member}", + "public_members_url": "https://api.github.com/orgs/github/public_members{/member}", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "description": "A great organization", + "name": "github", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "is_verified": true, + "has_organization_projects": true, + "has_repository_projects": true, + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "html_url": "https://github.com/octocat", + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" + } + } + ] + }, + "public-user-default-response": { + "summary": "Default response", + "value": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false, + "name": "monalisa octocat", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "hireable": false, + "bio": "There once was...", + "twitter_username": "monatheoctocat", + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2008-01-14T04:33:35Z" + } + }, + "public-user-response-with-git-hub-plan-information": { + "summary": "Response with GitHub plan information", + "value": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false, + "name": "monalisa octocat", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "hireable": false, + "bio": "There once was...", + "twitter_username": "monatheoctocat", + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2008-01-14T04:33:35Z", + "plan": { + "name": "pro", + "space": 976562499, + "collaborators": 0, + "private_repos": 9999 + } + } + }, + "hovercard": { + "value": { + "contexts": [{ "message": "Owns this repository", "octicon": "repo" }] + } + }, + "key-simple-items": { "value": [{ "id": 1, "key": "ssh-rsa AAA..." }] }, + "project-items-3": { + "value": [ + { + "owner_url": "https://api.github.com/users/octocat", + "url": "https://api.github.com/projects/1002603", + "html_url": "https://github.com/users/octocat/projects/1", + "columns_url": "https://api.github.com/projects/1002603/columns", + "id": 1002603, + "node_id": "MDc6UHJvamVjdDEwMDI2MDM=", + "name": "My Projects", + "body": "A board to manage my personal projects.", + "number": 1, + "state": "open", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-10T20:09:31Z", + "updated_at": "2014-03-03T18:58:10Z" + } + ] + } + }, + "responses": { + "not_found": { + "description": "Resource Not Found", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + }, + "validation_failed_simple": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/validation-error-simple" } + } + } + }, + "preview_header_missing": { + "description": "Preview Header Missing", + "content": { + "application/json": { + "schema": { + "type": "object", + "required": ["message", "documentation_url"], + "properties": { + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + } + } + } + }, + "forbidden": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + }, + "requires_authentication": { + "description": "Requires Authentication", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + }, + "validation_failed": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/validation-error" } + } + } + }, + "not_modified": { "description": "Not Modified" }, + "gone": { + "description": "Gone", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + }, + "service_unavailable": { + "description": "Service Unavailable", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "code": { "type": "string" }, + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + } + } + } + }, + "forbidden_gist": { + "description": "Forbidden Gist", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "block": { + "type": "object", + "properties": { + "reason": { "type": "string" }, + "created_at": { "type": "string" }, + "html_url": { "type": "string", "nullable": true } + } + }, + "message": { "type": "string" }, + "documentation_url": { "type": "string" } + } + } + } + } + }, + "moved_permanently": { "description": "Moved Permanently" }, + "conflict": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + }, + "internal_error": { + "description": "Internal Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + } + } + }, + "bad_request": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/basic-error" } + }, + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + } + } + }, + "found": { "description": "Found" }, + "scim_not_found": { + "description": "Resource Not Found", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + }, + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + } + } + }, + "scim_forbidden": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + }, + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + } + } + }, + "scim_bad_request": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + }, + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + } + } + }, + "scim_internal_error": { + "description": "Internal Error", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + }, + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + } + } + }, + "scim_conflict": { + "description": "Conflict", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + }, + "application/scim+json": { + "schema": { "$ref": "#/components/schemas/scim-error" } + } + } + } + }, + "parameters": { + "per_page": { + "name": "per_page", + "description": "Results per page (max 100)", + "in": "query", + "schema": { "type": "integer", "default": 30 } + }, + "page": { + "name": "page", + "description": "Page number of the results to fetch.", + "in": "query", + "schema": { "type": "integer", "default": 1 } + }, + "since": { + "name": "since", + "description": "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`.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + "installation_id": { + "name": "installation_id", + "description": "installation_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "grant_id": { + "name": "grant_id", + "description": "grant_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "client-id": { + "name": "client_id", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "access-token": { + "name": "access_token", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "app_slug": { + "name": "app_slug", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "authorization_id": { + "name": "authorization_id", + "description": "authorization_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "enterprise": { + "name": "enterprise", + "description": "The slug version of the enterprise name. You can also substitute this value with the enterprise id.", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "org_id": { + "name": "org_id", + "description": "Unique identifier of an organization.", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "runner_group_id": { + "name": "runner_group_id", + "description": "Unique identifier of the self-hosted runner group.", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "runner_id": { + "name": "runner_id", + "description": "Unique identifier of the self-hosted runner.", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "gist_id": { + "name": "gist_id", + "description": "gist_id parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "comment_id": { + "name": "comment_id", + "description": "comment_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "labels": { + "name": "labels", + "description": "A list of comma separated label names. Example: `bug,ui,@high`", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + "direction": { + "name": "direction", + "description": "One of `asc` (ascending) or `desc` (descending).", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["asc", "desc"], + "default": "desc" + } + }, + "account_id": { + "name": "account_id", + "description": "account_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "plan_id": { + "name": "plan_id", + "description": "plan_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "sort": { + "name": "sort", + "description": "One of `created` (when the repository was starred) or `updated` (when it was last pushed to).", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["created", "updated"], + "default": "created" + } + }, + "owner": { + "name": "owner", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "repo": { + "name": "repo", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "all": { + "name": "all", + "description": "If `true`, show notifications marked as read.", + "in": "query", + "required": false, + "schema": { "type": "boolean", "default": false } + }, + "participating": { + "name": "participating", + "description": "If `true`, only shows notifications in which the user is directly participating or mentioned.", + "in": "query", + "required": false, + "schema": { "type": "boolean", "default": false } + }, + "before": { + "name": "before", + "description": "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`.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + "thread_id": { + "name": "thread_id", + "description": "thread_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "since-org": { + "name": "since", + "description": "An organization ID. Only return organizations with an ID greater than this ID.", + "in": "query", + "required": false, + "schema": { "type": "integer" } + }, + "org": { + "name": "org", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "repository_id": { + "name": "repository_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "secret_name": { + "name": "secret_name", + "description": "secret_name parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "username": { + "name": "username", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "hook-id": { + "name": "hook_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "invitation_id": { + "name": "invitation_id", + "description": "invitation_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "migration_id": { + "name": "migration_id", + "description": "migration_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "repo_name": { + "name": "repo_name", + "description": "repo_name parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "team_slug": { + "name": "team_slug", + "description": "team_slug parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "discussion-number": { + "name": "discussion_number", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "comment-number": { + "name": "comment_number", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "reaction-id": { + "name": "reaction_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "project-id": { + "name": "project_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "card_id": { + "name": "card_id", + "description": "card_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "column_id": { + "name": "column_id", + "description": "column_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "artifact_id": { + "name": "artifact_id", + "description": "artifact_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "job_id": { + "name": "job_id", + "description": "job_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "actor": { + "name": "actor", + "description": "Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + "workflow-run-branch": { + "name": "branch", + "description": "Returns workflow runs associated with a branch. Use the name of the branch of the `push`.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + "event": { + "name": "event", + "description": "Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see \"[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows).\"", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + "workflow-run-status": { + "name": "status", + "description": "Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in \"[Create a check run](https://docs.github.com/rest/reference/checks#create-a-check-run).\"", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["completed", "status", "conclusion"] + } + }, + "run-id": { + "name": "run_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "workflow-id": { + "name": "workflow_id", + "in": "path", + "description": "The ID of the workflow. You can also pass the workflow file name as a string.", + "required": true, + "schema": { "oneOf": [{ "type": "integer" }, { "type": "string" }] } + }, + "branch": { + "name": "branch", + "description": "branch+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "check_run_id": { + "name": "check_run_id", + "description": "check_run_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "check_suite_id": { + "name": "check_suite_id", + "description": "check_suite_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "check_name": { + "name": "check_name", + "description": "Returns check runs with the specified `name`.", + "in": "query", + "required": false, + "schema": { "type": "string" } + }, + "status": { + "name": "status", + "description": "Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["queued", "in_progress", "completed"] + } + }, + "alert_number": { + "name": "alert_number", + "in": "path", + "description": "The code scanning alert number.", + "required": true, + "schema": { "$ref": "#/components/schemas/code-scanning-alert-number" } + }, + "commit_sha": { + "name": "commit_sha", + "description": "commit_sha+ parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "deployment_id": { + "name": "deployment_id", + "description": "deployment_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "since-user": { + "name": "since", + "description": "A user ID. Only return users with an ID greater than this ID.", + "in": "query", + "required": false, + "schema": { "type": "integer" } + }, + "issue_number": { + "name": "issue_number", + "description": "issue_number parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "key_id": { + "name": "key_id", + "description": "key_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "milestone_number": { + "name": "milestone_number", + "description": "milestone_number parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "pull-number": { + "name": "pull_number", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "review_id": { + "name": "review_id", + "description": "review_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "asset_id": { + "name": "asset_id", + "description": "asset_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "release_id": { + "name": "release_id", + "description": "release_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "per": { + "name": "per", + "description": "Must be one of: `day`, `week`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["day", "week"], + "default": "day" + } + }, + "since-repo": { + "name": "since", + "description": "A repository ID. Only return repositories with an ID greater than this ID.", + "in": "query", + "required": false, + "schema": { "type": "integer" } + }, + "start_index": { + "name": "startIndex", + "description": "Used for pagination: the index of the first result to return.", + "in": "query", + "required": false, + "schema": { "type": "integer" } + }, + "count": { + "name": "count", + "description": "Used for pagination: the number of results to return.", + "in": "query", + "required": false, + "schema": { "type": "integer" } + }, + "scim_group_id": { + "name": "scim_group_id", + "description": "Identifier generated by the GitHub SCIM endpoint.", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "scim_user_id": { + "name": "scim_user_id", + "description": "scim_user_id parameter", + "in": "path", + "required": true, + "schema": { "type": "string" } + }, + "order": { + "name": "order", + "description": "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`.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": ["desc", "asc"], + "default": "desc" + } + }, + "team-id": { + "name": "team_id", + "in": "path", + "required": true, + "schema": { "type": "integer" } + }, + "gpg_key_id": { + "name": "gpg_key_id", + "description": "gpg_key_id parameter", + "in": "path", + "required": true, + "schema": { "type": "integer" } + } + }, + "headers": { + "link": { + "example": "; rel=\"next\", ; rel=\"last\"", + "schema": { "type": "string" } + }, + "content-type": { + "example": "text/html", + "schema": { "type": "string" } + }, + "x-common-marker-version": { + "example": "0.17.4", + "schema": { "type": "string" } + }, + "x-rate-limit-limit": { + "example": "5000", + "schema": { "type": "integer" } + }, + "x-rate-limit-remaining": { + "example": "4999", + "schema": { "type": "integer" } + }, + "x-rate-limit-reset": { + "example": "1590701888", + "schema": { "type": "integer", "format": "timestamp" } + }, + "location": { + "example": "https://pipelines.actions.githubusercontent.com/OhgS4QRKqmgx7bKC27GKU83jnQjyeqG8oIMTge8eqtheppcmw8/_apis/pipelines/1/runs/176/signedlogcontent?urlExpires=2020-01-24T18%3A10%3A31.5729946Z&urlSigningMethod=HMACV1&urlSignature=agG73JakPYkHrh06seAkvmH7rBR4Ji4c2%2B6a2ejYh3E%3D", + "schema": { "type": "string" } + } + } + } +} diff --git a/node_modules/@octokit/openapi-types/generated/types.ts b/node_modules/@octokit/openapi-types/generated/types.ts new file mode 100644 index 000000000..d2e73ac78 --- /dev/null +++ b/node_modules/@octokit/openapi-types/generated/types.ts @@ -0,0 +1,27768 @@ +/** + * This file was auto-generated by openapi-typescript. + * Do not make direct changes to the file. + */ + +export interface paths { + "/": { + get: operations["meta/root"]; + }; + "/app": { + get: operations["apps/get-authenticated"]; + }; + "/app-manifests/{code}/conversions": { + post: operations["apps/create-from-manifest"]; + }; + "/app/hook/config": { + get: operations["apps/get-webhook-config-for-app"]; + patch: operations["apps/update-webhook-config-for-app"]; + }; + "/app/installations": { + get: operations["apps/list-installations"]; + }; + "/app/installations/{installation_id}": { + get: operations["apps/get-installation"]; + delete: operations["apps/delete-installation"]; + }; + "/app/installations/{installation_id}/access_tokens": { + post: operations["apps/create-installation-access-token"]; + }; + "/app/installations/{installation_id}/suspended": { + put: operations["apps/suspend-installation"]; + delete: operations["apps/unsuspend-installation"]; + }; + "/applications/grants": { + get: operations["oauth-authorizations/list-grants"]; + }; + "/applications/grants/{grant_id}": { + get: operations["oauth-authorizations/get-grant"]; + delete: operations["oauth-authorizations/delete-grant"]; + }; + "/applications/{client_id}/grant": { + delete: operations["apps/delete-authorization"]; + }; + "/applications/{client_id}/grants/{access_token}": { + delete: operations["apps/revoke-grant-for-application"]; + }; + "/applications/{client_id}/token": { + post: operations["apps/check-token"]; + patch: operations["apps/reset-token"]; + delete: operations["apps/delete-token"]; + }; + "/applications/{client_id}/tokens/{access_token}": { + get: operations["apps/check-authorization"]; + post: operations["apps/reset-authorization"]; + delete: operations["apps/revoke-authorization-for-application"]; + }; + "/apps/{app_slug}": { + get: operations["apps/get-by-slug"]; + }; + "/authorizations": { + get: operations["oauth-authorizations/list-authorizations"]; + post: operations["oauth-authorizations/create-authorization"]; + }; + "/authorizations/clients/{client_id}": { + put: operations["oauth-authorizations/get-or-create-authorization-for-app"]; + }; + "/authorizations/clients/{client_id}/{fingerprint}": { + put: operations["oauth-authorizations/get-or-create-authorization-for-app-and-fingerprint"]; + }; + "/authorizations/{authorization_id}": { + get: operations["oauth-authorizations/get-authorization"]; + patch: operations["oauth-authorizations/update-authorization"]; + delete: operations["oauth-authorizations/delete-authorization"]; + }; + "/codes_of_conduct": { + get: operations["codes-of-conduct/get-all-codes-of-conduct"]; + }; + "/codes_of_conduct/{key}": { + get: operations["codes-of-conduct/get-conduct-code"]; + }; + "/content_references/{content_reference_id}/attachments": { + post: operations["apps/create-content-attachment"]; + }; + "/emojis": { + get: operations["emojis/get"]; + }; + "/enterprises/{enterprise}/actions/permissions": { + get: operations["enterprise-admin/get-github-actions-permissions-enterprise"]; + put: operations["enterprise-admin/set-github-actions-permissions-enterprise"]; + }; + "/enterprises/{enterprise}/actions/permissions/organizations": { + get: operations["enterprise-admin/list-selected-organizations-enabled-github-actions-enterprise"]; + put: operations["enterprise-admin/set-selected-organizations-enabled-github-actions-enterprise"]; + }; + "/enterprises/{enterprise}/actions/permissions/organizations/{org_id}": { + put: operations["enterprise-admin/enable-selected-organization-github-actions-enterprise"]; + delete: operations["enterprise-admin/disable-selected-organization-github-actions-enterprise"]; + }; + "/enterprises/{enterprise}/actions/permissions/selected-actions": { + get: operations["enterprise-admin/get-allowed-actions-enterprise"]; + put: operations["enterprise-admin/set-allowed-actions-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runner-groups": { + get: operations["enterprise-admin/list-self-hosted-runner-groups-for-enterprise"]; + post: operations["enterprise-admin/create-self-hosted-runner-group-for-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": { + get: operations["enterprise-admin/get-self-hosted-runner-group-for-enterprise"]; + patch: operations["enterprise-admin/update-self-hosted-runner-group-for-enterprise"]; + delete: operations["enterprise-admin/delete-self-hosted-runner-group-from-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": { + get: operations["enterprise-admin/list-org-access-to-self-hosted-runner-group-in-enterprise"]; + put: operations["enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": { + put: operations["enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise"]; + delete: operations["enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": { + get: operations["enterprise-admin/list-self-hosted-runners-in-group-for-enterprise"]; + put: operations["enterprise-admin/set-self-hosted-runners-in-group-for-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": { + put: operations["enterprise-admin/add-self-hosted-runner-to-group-for-enterprise"]; + delete: operations["enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runners": { + get: operations["enterprise-admin/list-self-hosted-runners-for-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runners/downloads": { + get: operations["enterprise-admin/list-runner-applications-for-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runners/registration-token": { + post: operations["enterprise-admin/create-registration-token-for-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runners/remove-token": { + post: operations["enterprise-admin/create-remove-token-for-enterprise"]; + }; + "/enterprises/{enterprise}/actions/runners/{runner_id}": { + get: operations["enterprise-admin/get-self-hosted-runner-for-enterprise"]; + delete: operations["enterprise-admin/delete-self-hosted-runner-from-enterprise"]; + }; + "/enterprises/{enterprise}/settings/billing/actions": { + get: operations["billing/get-github-actions-billing-ghe"]; + }; + "/enterprises/{enterprise}/settings/billing/packages": { + get: operations["billing/get-github-packages-billing-ghe"]; + }; + "/enterprises/{enterprise}/settings/billing/shared-storage": { + get: operations["billing/get-shared-storage-billing-ghe"]; + }; + "/events": { + get: operations["activity/list-public-events"]; + }; + "/feeds": { + get: operations["activity/get-feeds"]; + }; + "/gists": { + get: operations["gists/list"]; + post: operations["gists/create"]; + }; + "/gists/public": { + get: operations["gists/list-public"]; + }; + "/gists/starred": { + get: operations["gists/list-starred"]; + }; + "/gists/{gist_id}": { + get: operations["gists/get"]; + patch: operations["gists/update"]; + delete: operations["gists/delete"]; + }; + "/gists/{gist_id}/comments": { + get: operations["gists/list-comments"]; + post: operations["gists/create-comment"]; + }; + "/gists/{gist_id}/comments/{comment_id}": { + get: operations["gists/get-comment"]; + patch: operations["gists/update-comment"]; + delete: operations["gists/delete-comment"]; + }; + "/gists/{gist_id}/commits": { + get: operations["gists/list-commits"]; + }; + "/gists/{gist_id}/forks": { + get: operations["gists/list-forks"]; + post: operations["gists/fork"]; + }; + "/gists/{gist_id}/star": { + get: operations["gists/check-is-starred"]; + put: operations["gists/star"]; + delete: operations["gists/unstar"]; + }; + "/gists/{gist_id}/{sha}": { + get: operations["gists/get-revision"]; + }; + "/gitignore/templates": { + get: operations["gitignore/get-all-templates"]; + }; + "/gitignore/templates/{name}": { + get: operations["gitignore/get-template"]; + }; + "/installation/repositories": { + get: operations["apps/list-repos-accessible-to-installation"]; + }; + "/installation/token": { + delete: operations["apps/revoke-installation-access-token"]; + }; + "/issues": { + get: operations["issues/list"]; + }; + "/licenses": { + get: operations["licenses/get-all-commonly-used"]; + }; + "/licenses/{license}": { + get: operations["licenses/get"]; + }; + "/markdown": { + post: operations["markdown/render"]; + }; + "/markdown/raw": { + post: operations["markdown/render-raw"]; + }; + "/marketplace_listing/accounts/{account_id}": { + get: operations["apps/get-subscription-plan-for-account"]; + }; + "/marketplace_listing/plans": { + get: operations["apps/list-plans"]; + }; + "/marketplace_listing/plans/{plan_id}/accounts": { + get: operations["apps/list-accounts-for-plan"]; + }; + "/marketplace_listing/stubbed/accounts/{account_id}": { + get: operations["apps/get-subscription-plan-for-account-stubbed"]; + }; + "/marketplace_listing/stubbed/plans": { + get: operations["apps/list-plans-stubbed"]; + }; + "/marketplace_listing/stubbed/plans/{plan_id}/accounts": { + get: operations["apps/list-accounts-for-plan-stubbed"]; + }; + "/meta": { + get: operations["meta/get"]; + }; + "/networks/{owner}/{repo}/events": { + get: operations["activity/list-public-events-for-repo-network"]; + }; + "/notifications": { + get: operations["activity/list-notifications-for-authenticated-user"]; + put: operations["activity/mark-notifications-as-read"]; + }; + "/notifications/threads/{thread_id}": { + get: operations["activity/get-thread"]; + patch: operations["activity/mark-thread-as-read"]; + }; + "/notifications/threads/{thread_id}/subscription": { + get: operations["activity/get-thread-subscription-for-authenticated-user"]; + put: operations["activity/set-thread-subscription"]; + delete: operations["activity/delete-thread-subscription"]; + }; + "/octocat": { + get: operations["meta/get-octocat"]; + }; + "/organizations": { + get: operations["orgs/list"]; + }; + "/orgs/{org}": { + get: operations["orgs/get"]; + patch: operations["orgs/update"]; + }; + "/orgs/{org}/actions/permissions": { + get: operations["actions/get-github-actions-permissions-organization"]; + put: operations["actions/set-github-actions-permissions-organization"]; + }; + "/orgs/{org}/actions/permissions/repositories": { + get: operations["actions/list-selected-repositories-enabled-github-actions-organization"]; + put: operations["actions/set-selected-repositories-enabled-github-actions-organization"]; + }; + "/orgs/{org}/actions/permissions/repositories/{repository_id}": { + put: operations["actions/enable-selected-repository-github-actions-organization"]; + delete: operations["actions/disable-selected-repository-github-actions-organization"]; + }; + "/orgs/{org}/actions/permissions/selected-actions": { + get: operations["actions/get-allowed-actions-organization"]; + put: operations["actions/set-allowed-actions-organization"]; + }; + "/orgs/{org}/actions/runner-groups": { + get: operations["actions/list-self-hosted-runner-groups-for-org"]; + post: operations["actions/create-self-hosted-runner-group-for-org"]; + }; + "/orgs/{org}/actions/runner-groups/{runner_group_id}": { + get: operations["actions/get-self-hosted-runner-group-for-org"]; + patch: operations["actions/update-self-hosted-runner-group-for-org"]; + delete: operations["actions/delete-self-hosted-runner-group-from-org"]; + }; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": { + get: operations["actions/list-repo-access-to-self-hosted-runner-group-in-org"]; + put: operations["actions/set-repo-access-to-self-hosted-runner-group-in-org"]; + }; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": { + put: operations["actions/add-repo-access-to-self-hosted-runner-group-in-org"]; + delete: operations["actions/remove-repo-access-to-self-hosted-runner-group-in-org"]; + }; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners": { + get: operations["actions/list-self-hosted-runners-in-group-for-org"]; + put: operations["actions/set-self-hosted-runners-in-group-for-org"]; + }; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": { + put: operations["actions/add-self-hosted-runner-to-group-for-org"]; + delete: operations["actions/remove-self-hosted-runner-from-group-for-org"]; + }; + "/orgs/{org}/actions/runners": { + get: operations["actions/list-self-hosted-runners-for-org"]; + }; + "/orgs/{org}/actions/runners/downloads": { + get: operations["actions/list-runner-applications-for-org"]; + }; + "/orgs/{org}/actions/runners/registration-token": { + post: operations["actions/create-registration-token-for-org"]; + }; + "/orgs/{org}/actions/runners/remove-token": { + post: operations["actions/create-remove-token-for-org"]; + }; + "/orgs/{org}/actions/runners/{runner_id}": { + get: operations["actions/get-self-hosted-runner-for-org"]; + delete: operations["actions/delete-self-hosted-runner-from-org"]; + }; + "/orgs/{org}/actions/secrets": { + get: operations["actions/list-org-secrets"]; + }; + "/orgs/{org}/actions/secrets/public-key": { + get: operations["actions/get-org-public-key"]; + }; + "/orgs/{org}/actions/secrets/{secret_name}": { + get: operations["actions/get-org-secret"]; + put: operations["actions/create-or-update-org-secret"]; + delete: operations["actions/delete-org-secret"]; + }; + "/orgs/{org}/actions/secrets/{secret_name}/repositories": { + get: operations["actions/list-selected-repos-for-org-secret"]; + put: operations["actions/set-selected-repos-for-org-secret"]; + }; + "/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": { + put: operations["actions/add-selected-repo-to-org-secret"]; + delete: operations["actions/remove-selected-repo-from-org-secret"]; + }; + "/orgs/{org}/blocks": { + get: operations["orgs/list-blocked-users"]; + }; + "/orgs/{org}/blocks/{username}": { + get: operations["orgs/check-blocked-user"]; + put: operations["orgs/block-user"]; + delete: operations["orgs/unblock-user"]; + }; + "/orgs/{org}/credential-authorizations": { + get: operations["orgs/list-saml-sso-authorizations"]; + }; + "/orgs/{org}/credential-authorizations/{credential_id}": { + delete: operations["orgs/remove-saml-sso-authorization"]; + }; + "/orgs/{org}/events": { + get: operations["activity/list-public-org-events"]; + }; + "/orgs/{org}/hooks": { + get: operations["orgs/list-webhooks"]; + post: operations["orgs/create-webhook"]; + }; + "/orgs/{org}/hooks/{hook_id}": { + get: operations["orgs/get-webhook"]; + patch: operations["orgs/update-webhook"]; + delete: operations["orgs/delete-webhook"]; + }; + "/orgs/{org}/hooks/{hook_id}/config": { + get: operations["orgs/get-webhook-config-for-org"]; + patch: operations["orgs/update-webhook-config-for-org"]; + }; + "/orgs/{org}/hooks/{hook_id}/pings": { + post: operations["orgs/ping-webhook"]; + }; + "/orgs/{org}/installation": { + get: operations["apps/get-org-installation"]; + }; + "/orgs/{org}/installations": { + get: operations["orgs/list-app-installations"]; + }; + "/orgs/{org}/interaction-limits": { + get: operations["interactions/get-restrictions-for-org"]; + put: operations["interactions/set-restrictions-for-org"]; + delete: operations["interactions/remove-restrictions-for-org"]; + }; + "/orgs/{org}/invitations": { + get: operations["orgs/list-pending-invitations"]; + post: operations["orgs/create-invitation"]; + }; + "/orgs/{org}/invitations/{invitation_id}/teams": { + get: operations["orgs/list-invitation-teams"]; + }; + "/orgs/{org}/issues": { + get: operations["issues/list-for-org"]; + }; + "/orgs/{org}/members": { + get: operations["orgs/list-members"]; + }; + "/orgs/{org}/members/{username}": { + get: operations["orgs/check-membership-for-user"]; + delete: operations["orgs/remove-member"]; + }; + "/orgs/{org}/memberships/{username}": { + get: operations["orgs/get-membership-for-user"]; + put: operations["orgs/set-membership-for-user"]; + delete: operations["orgs/remove-membership-for-user"]; + }; + "/orgs/{org}/migrations": { + get: operations["migrations/list-for-org"]; + post: operations["migrations/start-for-org"]; + }; + "/orgs/{org}/migrations/{migration_id}": { + get: operations["migrations/get-status-for-org"]; + }; + "/orgs/{org}/migrations/{migration_id}/archive": { + get: operations["migrations/download-archive-for-org"]; + delete: operations["migrations/delete-archive-for-org"]; + }; + "/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock": { + delete: operations["migrations/unlock-repo-for-org"]; + }; + "/orgs/{org}/migrations/{migration_id}/repositories": { + get: operations["migrations/list-repos-for-org"]; + }; + "/orgs/{org}/outside_collaborators": { + get: operations["orgs/list-outside-collaborators"]; + }; + "/orgs/{org}/outside_collaborators/{username}": { + put: operations["orgs/convert-member-to-outside-collaborator"]; + delete: operations["orgs/remove-outside-collaborator"]; + }; + "/orgs/{org}/projects": { + get: operations["projects/list-for-org"]; + post: operations["projects/create-for-org"]; + }; + "/orgs/{org}/public_members": { + get: operations["orgs/list-public-members"]; + }; + "/orgs/{org}/public_members/{username}": { + get: operations["orgs/check-public-membership-for-user"]; + put: operations["orgs/set-public-membership-for-authenticated-user"]; + delete: operations["orgs/remove-public-membership-for-authenticated-user"]; + }; + "/orgs/{org}/repos": { + get: operations["repos/list-for-org"]; + post: operations["repos/create-in-org"]; + }; + "/orgs/{org}/settings/billing/actions": { + get: operations["billing/get-github-actions-billing-org"]; + }; + "/orgs/{org}/settings/billing/packages": { + get: operations["billing/get-github-packages-billing-org"]; + }; + "/orgs/{org}/settings/billing/shared-storage": { + get: operations["billing/get-shared-storage-billing-org"]; + }; + "/orgs/{org}/team-sync/groups": { + get: operations["teams/list-idp-groups-for-org"]; + }; + "/orgs/{org}/teams": { + get: operations["teams/list"]; + post: operations["teams/create"]; + }; + "/orgs/{org}/teams/{team_slug}": { + get: operations["teams/get-by-name"]; + patch: operations["teams/update-in-org"]; + delete: operations["teams/delete-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/discussions": { + get: operations["teams/list-discussions-in-org"]; + post: operations["teams/create-discussion-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": { + get: operations["teams/get-discussion-in-org"]; + patch: operations["teams/update-discussion-in-org"]; + delete: operations["teams/delete-discussion-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": { + get: operations["teams/list-discussion-comments-in-org"]; + post: operations["teams/create-discussion-comment-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": { + get: operations["teams/get-discussion-comment-in-org"]; + patch: operations["teams/update-discussion-comment-in-org"]; + delete: operations["teams/delete-discussion-comment-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": { + get: operations["reactions/list-for-team-discussion-comment-in-org"]; + post: operations["reactions/create-for-team-discussion-comment-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}": { + delete: operations["reactions/delete-for-team-discussion-comment"]; + }; + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": { + get: operations["reactions/list-for-team-discussion-in-org"]; + post: operations["reactions/create-for-team-discussion-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}": { + delete: operations["reactions/delete-for-team-discussion"]; + }; + "/orgs/{org}/teams/{team_slug}/invitations": { + get: operations["teams/list-pending-invitations-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/members": { + get: operations["teams/list-members-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/memberships/{username}": { + get: operations["teams/get-membership-for-user-in-org"]; + put: operations["teams/add-or-update-membership-for-user-in-org"]; + delete: operations["teams/remove-membership-for-user-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/projects": { + get: operations["teams/list-projects-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/projects/{project_id}": { + get: operations["teams/check-permissions-for-project-in-org"]; + put: operations["teams/add-or-update-project-permissions-in-org"]; + delete: operations["teams/remove-project-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/repos": { + get: operations["teams/list-repos-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": { + get: operations["teams/check-permissions-for-repo-in-org"]; + put: operations["teams/add-or-update-repo-permissions-in-org"]; + delete: operations["teams/remove-repo-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings": { + get: operations["teams/list-idp-groups-in-org"]; + patch: operations["teams/create-or-update-idp-group-connections-in-org"]; + }; + "/orgs/{org}/teams/{team_slug}/teams": { + get: operations["teams/list-child-in-org"]; + }; + "/projects/columns/cards/{card_id}": { + get: operations["projects/get-card"]; + patch: operations["projects/update-card"]; + delete: operations["projects/delete-card"]; + }; + "/projects/columns/cards/{card_id}/moves": { + post: operations["projects/move-card"]; + }; + "/projects/columns/{column_id}": { + get: operations["projects/get-column"]; + patch: operations["projects/update-column"]; + delete: operations["projects/delete-column"]; + }; + "/projects/columns/{column_id}/cards": { + get: operations["projects/list-cards"]; + post: operations["projects/create-card"]; + }; + "/projects/columns/{column_id}/moves": { + post: operations["projects/move-column"]; + }; + "/projects/{project_id}": { + get: operations["projects/get"]; + patch: operations["projects/update"]; + delete: operations["projects/delete"]; + }; + "/projects/{project_id}/collaborators": { + get: operations["projects/list-collaborators"]; + }; + "/projects/{project_id}/collaborators/{username}": { + put: operations["projects/add-collaborator"]; + delete: operations["projects/remove-collaborator"]; + }; + "/projects/{project_id}/collaborators/{username}/permission": { + get: operations["projects/get-permission-for-user"]; + }; + "/projects/{project_id}/columns": { + get: operations["projects/list-columns"]; + post: operations["projects/create-column"]; + }; + "/rate_limit": { + get: operations["rate-limit/get"]; + }; + "/reactions/{reaction_id}": { + delete: operations["reactions/delete-legacy"]; + }; + "/repos/{owner}/{repo}": { + get: operations["repos/get"]; + patch: operations["repos/update"]; + delete: operations["repos/delete"]; + }; + "/repos/{owner}/{repo}/actions/artifacts": { + get: operations["actions/list-artifacts-for-repo"]; + }; + "/repos/{owner}/{repo}/actions/artifacts/{artifact_id}": { + get: operations["actions/get-artifact"]; + delete: operations["actions/delete-artifact"]; + }; + "/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}": { + get: operations["actions/download-artifact"]; + }; + "/repos/{owner}/{repo}/actions/jobs/{job_id}": { + get: operations["actions/get-job-for-workflow-run"]; + }; + "/repos/{owner}/{repo}/actions/jobs/{job_id}/logs": { + get: operations["actions/download-job-logs-for-workflow-run"]; + }; + "/repos/{owner}/{repo}/actions/permissions": { + get: operations["actions/get-github-actions-permissions-repository"]; + put: operations["actions/set-github-actions-permissions-repository"]; + }; + "/repos/{owner}/{repo}/actions/permissions/selected-actions": { + get: operations["actions/get-allowed-actions-repository"]; + put: operations["actions/set-allowed-actions-repository"]; + }; + "/repos/{owner}/{repo}/actions/runners": { + get: operations["actions/list-self-hosted-runners-for-repo"]; + }; + "/repos/{owner}/{repo}/actions/runners/downloads": { + get: operations["actions/list-runner-applications-for-repo"]; + }; + "/repos/{owner}/{repo}/actions/runners/registration-token": { + post: operations["actions/create-registration-token-for-repo"]; + }; + "/repos/{owner}/{repo}/actions/runners/remove-token": { + post: operations["actions/create-remove-token-for-repo"]; + }; + "/repos/{owner}/{repo}/actions/runners/{runner_id}": { + get: operations["actions/get-self-hosted-runner-for-repo"]; + delete: operations["actions/delete-self-hosted-runner-from-repo"]; + }; + "/repos/{owner}/{repo}/actions/runs": { + get: operations["actions/list-workflow-runs-for-repo"]; + }; + "/repos/{owner}/{repo}/actions/runs/{run_id}": { + get: operations["actions/get-workflow-run"]; + delete: operations["actions/delete-workflow-run"]; + }; + "/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": { + get: operations["actions/list-workflow-run-artifacts"]; + }; + "/repos/{owner}/{repo}/actions/runs/{run_id}/cancel": { + post: operations["actions/cancel-workflow-run"]; + }; + "/repos/{owner}/{repo}/actions/runs/{run_id}/jobs": { + get: operations["actions/list-jobs-for-workflow-run"]; + }; + "/repos/{owner}/{repo}/actions/runs/{run_id}/logs": { + get: operations["actions/download-workflow-run-logs"]; + delete: operations["actions/delete-workflow-run-logs"]; + }; + "/repos/{owner}/{repo}/actions/runs/{run_id}/rerun": { + post: operations["actions/re-run-workflow"]; + }; + "/repos/{owner}/{repo}/actions/runs/{run_id}/timing": { + get: operations["actions/get-workflow-run-usage"]; + }; + "/repos/{owner}/{repo}/actions/secrets": { + get: operations["actions/list-repo-secrets"]; + }; + "/repos/{owner}/{repo}/actions/secrets/public-key": { + get: operations["actions/get-repo-public-key"]; + }; + "/repos/{owner}/{repo}/actions/secrets/{secret_name}": { + get: operations["actions/get-repo-secret"]; + put: operations["actions/create-or-update-repo-secret"]; + delete: operations["actions/delete-repo-secret"]; + }; + "/repos/{owner}/{repo}/actions/workflows": { + get: operations["actions/list-repo-workflows"]; + }; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}": { + get: operations["actions/get-workflow"]; + }; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable": { + put: operations["actions/disable-workflow"]; + }; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches": { + post: operations["actions/create-workflow-dispatch"]; + }; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable": { + put: operations["actions/enable-workflow"]; + }; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": { + get: operations["actions/list-workflow-runs"]; + }; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": { + get: operations["actions/get-workflow-usage"]; + }; + "/repos/{owner}/{repo}/assignees": { + get: operations["issues/list-assignees"]; + }; + "/repos/{owner}/{repo}/assignees/{assignee}": { + get: operations["issues/check-user-can-be-assigned"]; + }; + "/repos/{owner}/{repo}/automated-security-fixes": { + put: operations["repos/enable-automated-security-fixes"]; + delete: operations["repos/disable-automated-security-fixes"]; + }; + "/repos/{owner}/{repo}/branches": { + get: operations["repos/list-branches"]; + }; + "/repos/{owner}/{repo}/branches/{branch}": { + get: operations["repos/get-branch"]; + }; + "/repos/{owner}/{repo}/branches/{branch}/protection": { + get: operations["repos/get-branch-protection"]; + put: operations["repos/update-branch-protection"]; + delete: operations["repos/delete-branch-protection"]; + }; + "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": { + get: operations["repos/get-admin-branch-protection"]; + post: operations["repos/set-admin-branch-protection"]; + delete: operations["repos/delete-admin-branch-protection"]; + }; + "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": { + get: operations["repos/get-pull-request-review-protection"]; + patch: operations["repos/update-pull-request-review-protection"]; + delete: operations["repos/delete-pull-request-review-protection"]; + }; + "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": { + get: operations["repos/get-commit-signature-protection"]; + post: operations["repos/create-commit-signature-protection"]; + delete: operations["repos/delete-commit-signature-protection"]; + }; + "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": { + get: operations["repos/get-status-checks-protection"]; + patch: operations["repos/update-status-check-protection"]; + delete: operations["repos/remove-status-check-protection"]; + }; + "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": { + get: operations["repos/get-all-status-check-contexts"]; + post: operations["repos/add-status-check-contexts"]; + put: operations["repos/set-status-check-contexts"]; + delete: operations["repos/remove-status-check-contexts"]; + }; + "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions": { + get: operations["repos/get-access-restrictions"]; + delete: operations["repos/delete-access-restrictions"]; + }; + "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": { + get: operations["repos/get-apps-with-access-to-protected-branch"]; + post: operations["repos/add-app-access-restrictions"]; + put: operations["repos/set-app-access-restrictions"]; + delete: operations["repos/remove-app-access-restrictions"]; + }; + "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": { + get: operations["repos/get-teams-with-access-to-protected-branch"]; + post: operations["repos/add-team-access-restrictions"]; + put: operations["repos/set-team-access-restrictions"]; + delete: operations["repos/remove-team-access-restrictions"]; + }; + "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": { + get: operations["repos/get-users-with-access-to-protected-branch"]; + post: operations["repos/add-user-access-restrictions"]; + put: operations["repos/set-user-access-restrictions"]; + delete: operations["repos/remove-user-access-restrictions"]; + }; + "/repos/{owner}/{repo}/check-runs": { + post: operations["checks/create"]; + }; + "/repos/{owner}/{repo}/check-runs/{check_run_id}": { + get: operations["checks/get"]; + patch: operations["checks/update"]; + }; + "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": { + get: operations["checks/list-annotations"]; + }; + "/repos/{owner}/{repo}/check-suites": { + post: operations["checks/create-suite"]; + }; + "/repos/{owner}/{repo}/check-suites/preferences": { + patch: operations["checks/set-suites-preferences"]; + }; + "/repos/{owner}/{repo}/check-suites/{check_suite_id}": { + get: operations["checks/get-suite"]; + }; + "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": { + get: operations["checks/list-for-suite"]; + }; + "/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest": { + post: operations["checks/rerequest-suite"]; + }; + "/repos/{owner}/{repo}/code-scanning/alerts": { + get: operations["code-scanning/list-alerts-for-repo"]; + }; + "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": { + get: operations["code-scanning/get-alert"]; + patch: operations["code-scanning/update-alert"]; + }; + "/repos/{owner}/{repo}/code-scanning/analyses": { + get: operations["code-scanning/list-recent-analyses"]; + }; + "/repos/{owner}/{repo}/code-scanning/sarifs": { + post: operations["code-scanning/upload-sarif"]; + }; + "/repos/{owner}/{repo}/collaborators": { + get: operations["repos/list-collaborators"]; + }; + "/repos/{owner}/{repo}/collaborators/{username}": { + get: operations["repos/check-collaborator"]; + put: operations["repos/add-collaborator"]; + delete: operations["repos/remove-collaborator"]; + }; + "/repos/{owner}/{repo}/collaborators/{username}/permission": { + get: operations["repos/get-collaborator-permission-level"]; + }; + "/repos/{owner}/{repo}/comments": { + get: operations["repos/list-commit-comments-for-repo"]; + }; + "/repos/{owner}/{repo}/comments/{comment_id}": { + get: operations["repos/get-commit-comment"]; + patch: operations["repos/update-commit-comment"]; + delete: operations["repos/delete-commit-comment"]; + }; + "/repos/{owner}/{repo}/comments/{comment_id}/reactions": { + get: operations["reactions/list-for-commit-comment"]; + post: operations["reactions/create-for-commit-comment"]; + }; + "/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}": { + delete: operations["reactions/delete-for-commit-comment"]; + }; + "/repos/{owner}/{repo}/commits": { + get: operations["repos/list-commits"]; + }; + "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": { + get: operations["repos/list-branches-for-head-commit"]; + }; + "/repos/{owner}/{repo}/commits/{commit_sha}/comments": { + get: operations["repos/list-comments-for-commit"]; + post: operations["repos/create-commit-comment"]; + }; + "/repos/{owner}/{repo}/commits/{commit_sha}/pulls": { + get: operations["repos/list-pull-requests-associated-with-commit"]; + }; + "/repos/{owner}/{repo}/commits/{ref}": { + get: operations["repos/get-commit"]; + }; + "/repos/{owner}/{repo}/commits/{ref}/check-runs": { + get: operations["checks/list-for-ref"]; + }; + "/repos/{owner}/{repo}/commits/{ref}/check-suites": { + get: operations["checks/list-suites-for-ref"]; + }; + "/repos/{owner}/{repo}/commits/{ref}/status": { + get: operations["repos/get-combined-status-for-ref"]; + }; + "/repos/{owner}/{repo}/commits/{ref}/statuses": { + get: operations["repos/list-commit-statuses-for-ref"]; + }; + "/repos/{owner}/{repo}/community/code_of_conduct": { + get: operations["codes-of-conduct/get-for-repo"]; + }; + "/repos/{owner}/{repo}/community/profile": { + get: operations["repos/get-community-profile-metrics"]; + }; + "/repos/{owner}/{repo}/compare/{base}...{head}": { + get: operations["repos/compare-commits"]; + }; + "/repos/{owner}/{repo}/contents/{path}": { + get: operations["repos/get-content"]; + put: operations["repos/create-or-update-file-contents"]; + delete: operations["repos/delete-file"]; + }; + "/repos/{owner}/{repo}/contributors": { + get: operations["repos/list-contributors"]; + }; + "/repos/{owner}/{repo}/deployments": { + get: operations["repos/list-deployments"]; + post: operations["repos/create-deployment"]; + }; + "/repos/{owner}/{repo}/deployments/{deployment_id}": { + get: operations["repos/get-deployment"]; + delete: operations["repos/delete-deployment"]; + }; + "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses": { + get: operations["repos/list-deployment-statuses"]; + post: operations["repos/create-deployment-status"]; + }; + "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": { + get: operations["repos/get-deployment-status"]; + }; + "/repos/{owner}/{repo}/dispatches": { + post: operations["repos/create-dispatch-event"]; + }; + "/repos/{owner}/{repo}/events": { + get: operations["activity/list-repo-events"]; + }; + "/repos/{owner}/{repo}/forks": { + get: operations["repos/list-forks"]; + post: operations["repos/create-fork"]; + }; + "/repos/{owner}/{repo}/git/blobs": { + post: operations["git/create-blob"]; + }; + "/repos/{owner}/{repo}/git/blobs/{file_sha}": { + get: operations["git/get-blob"]; + }; + "/repos/{owner}/{repo}/git/commits": { + post: operations["git/create-commit"]; + }; + "/repos/{owner}/{repo}/git/commits/{commit_sha}": { + get: operations["git/get-commit"]; + }; + "/repos/{owner}/{repo}/git/matching-refs/{ref}": { + get: operations["git/list-matching-refs"]; + }; + "/repos/{owner}/{repo}/git/ref/{ref}": { + get: operations["git/get-ref"]; + }; + "/repos/{owner}/{repo}/git/refs": { + post: operations["git/create-ref"]; + }; + "/repos/{owner}/{repo}/git/refs/{ref}": { + patch: operations["git/update-ref"]; + delete: operations["git/delete-ref"]; + }; + "/repos/{owner}/{repo}/git/tags": { + post: operations["git/create-tag"]; + }; + "/repos/{owner}/{repo}/git/tags/{tag_sha}": { + get: operations["git/get-tag"]; + }; + "/repos/{owner}/{repo}/git/trees": { + post: operations["git/create-tree"]; + }; + "/repos/{owner}/{repo}/git/trees/{tree_sha}": { + get: operations["git/get-tree"]; + }; + "/repos/{owner}/{repo}/hooks": { + get: operations["repos/list-webhooks"]; + post: operations["repos/create-webhook"]; + }; + "/repos/{owner}/{repo}/hooks/{hook_id}": { + get: operations["repos/get-webhook"]; + patch: operations["repos/update-webhook"]; + delete: operations["repos/delete-webhook"]; + }; + "/repos/{owner}/{repo}/hooks/{hook_id}/config": { + get: operations["repos/get-webhook-config-for-repo"]; + patch: operations["repos/update-webhook-config-for-repo"]; + }; + "/repos/{owner}/{repo}/hooks/{hook_id}/pings": { + post: operations["repos/ping-webhook"]; + }; + "/repos/{owner}/{repo}/hooks/{hook_id}/tests": { + post: operations["repos/test-push-webhook"]; + }; + "/repos/{owner}/{repo}/import": { + get: operations["migrations/get-import-status"]; + put: operations["migrations/start-import"]; + patch: operations["migrations/update-import"]; + delete: operations["migrations/cancel-import"]; + }; + "/repos/{owner}/{repo}/import/authors": { + get: operations["migrations/get-commit-authors"]; + }; + "/repos/{owner}/{repo}/import/authors/{author_id}": { + patch: operations["migrations/map-commit-author"]; + }; + "/repos/{owner}/{repo}/import/large_files": { + get: operations["migrations/get-large-files"]; + }; + "/repos/{owner}/{repo}/import/lfs": { + patch: operations["migrations/set-lfs-preference"]; + }; + "/repos/{owner}/{repo}/installation": { + get: operations["apps/get-repo-installation"]; + }; + "/repos/{owner}/{repo}/interaction-limits": { + get: operations["interactions/get-restrictions-for-repo"]; + put: operations["interactions/set-restrictions-for-repo"]; + delete: operations["interactions/remove-restrictions-for-repo"]; + }; + "/repos/{owner}/{repo}/invitations": { + get: operations["repos/list-invitations"]; + }; + "/repos/{owner}/{repo}/invitations/{invitation_id}": { + patch: operations["repos/update-invitation"]; + delete: operations["repos/delete-invitation"]; + }; + "/repos/{owner}/{repo}/issues": { + get: operations["issues/list-for-repo"]; + post: operations["issues/create"]; + }; + "/repos/{owner}/{repo}/issues/comments": { + get: operations["issues/list-comments-for-repo"]; + }; + "/repos/{owner}/{repo}/issues/comments/{comment_id}": { + get: operations["issues/get-comment"]; + patch: operations["issues/update-comment"]; + delete: operations["issues/delete-comment"]; + }; + "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": { + get: operations["reactions/list-for-issue-comment"]; + post: operations["reactions/create-for-issue-comment"]; + }; + "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}": { + delete: operations["reactions/delete-for-issue-comment"]; + }; + "/repos/{owner}/{repo}/issues/events": { + get: operations["issues/list-events-for-repo"]; + }; + "/repos/{owner}/{repo}/issues/events/{event_id}": { + get: operations["issues/get-event"]; + }; + "/repos/{owner}/{repo}/issues/{issue_number}": { + get: operations["issues/get"]; + patch: operations["issues/update"]; + }; + "/repos/{owner}/{repo}/issues/{issue_number}/assignees": { + post: operations["issues/add-assignees"]; + delete: operations["issues/remove-assignees"]; + }; + "/repos/{owner}/{repo}/issues/{issue_number}/comments": { + get: operations["issues/list-comments"]; + post: operations["issues/create-comment"]; + }; + "/repos/{owner}/{repo}/issues/{issue_number}/events": { + get: operations["issues/list-events"]; + }; + "/repos/{owner}/{repo}/issues/{issue_number}/labels": { + get: operations["issues/list-labels-on-issue"]; + post: operations["issues/add-labels"]; + put: operations["issues/set-labels"]; + delete: operations["issues/remove-all-labels"]; + }; + "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": { + delete: operations["issues/remove-label"]; + }; + "/repos/{owner}/{repo}/issues/{issue_number}/lock": { + put: operations["issues/lock"]; + delete: operations["issues/unlock"]; + }; + "/repos/{owner}/{repo}/issues/{issue_number}/reactions": { + get: operations["reactions/list-for-issue"]; + post: operations["reactions/create-for-issue"]; + }; + "/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": { + delete: operations["reactions/delete-for-issue"]; + }; + "/repos/{owner}/{repo}/issues/{issue_number}/timeline": { + get: operations["issues/list-events-for-timeline"]; + }; + "/repos/{owner}/{repo}/keys": { + get: operations["repos/list-deploy-keys"]; + post: operations["repos/create-deploy-key"]; + }; + "/repos/{owner}/{repo}/keys/{key_id}": { + get: operations["repos/get-deploy-key"]; + delete: operations["repos/delete-deploy-key"]; + }; + "/repos/{owner}/{repo}/labels": { + get: operations["issues/list-labels-for-repo"]; + post: operations["issues/create-label"]; + }; + "/repos/{owner}/{repo}/labels/{name}": { + get: operations["issues/get-label"]; + patch: operations["issues/update-label"]; + delete: operations["issues/delete-label"]; + }; + "/repos/{owner}/{repo}/languages": { + get: operations["repos/list-languages"]; + }; + "/repos/{owner}/{repo}/license": { + get: operations["licenses/get-for-repo"]; + }; + "/repos/{owner}/{repo}/merges": { + post: operations["repos/merge"]; + }; + "/repos/{owner}/{repo}/milestones": { + get: operations["issues/list-milestones"]; + post: operations["issues/create-milestone"]; + }; + "/repos/{owner}/{repo}/milestones/{milestone_number}": { + get: operations["issues/get-milestone"]; + patch: operations["issues/update-milestone"]; + delete: operations["issues/delete-milestone"]; + }; + "/repos/{owner}/{repo}/milestones/{milestone_number}/labels": { + get: operations["issues/list-labels-for-milestone"]; + }; + "/repos/{owner}/{repo}/notifications": { + get: operations["activity/list-repo-notifications-for-authenticated-user"]; + put: operations["activity/mark-repo-notifications-as-read"]; + }; + "/repos/{owner}/{repo}/pages": { + get: operations["repos/get-pages"]; + post: operations["repos/create-pages-site"]; + put: operations["repos/update-information-about-pages-site"]; + delete: operations["repos/delete-pages-site"]; + }; + "/repos/{owner}/{repo}/pages/builds": { + get: operations["repos/list-pages-builds"]; + post: operations["repos/request-pages-build"]; + }; + "/repos/{owner}/{repo}/pages/builds/latest": { + get: operations["repos/get-latest-pages-build"]; + }; + "/repos/{owner}/{repo}/pages/builds/{build_id}": { + get: operations["repos/get-pages-build"]; + }; + "/repos/{owner}/{repo}/projects": { + get: operations["projects/list-for-repo"]; + post: operations["projects/create-for-repo"]; + }; + "/repos/{owner}/{repo}/pulls": { + get: operations["pulls/list"]; + post: operations["pulls/create"]; + }; + "/repos/{owner}/{repo}/pulls/comments": { + get: operations["pulls/list-review-comments-for-repo"]; + }; + "/repos/{owner}/{repo}/pulls/comments/{comment_id}": { + get: operations["pulls/get-review-comment"]; + patch: operations["pulls/update-review-comment"]; + delete: operations["pulls/delete-review-comment"]; + }; + "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": { + get: operations["reactions/list-for-pull-request-review-comment"]; + post: operations["reactions/create-for-pull-request-review-comment"]; + }; + "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}": { + delete: operations["reactions/delete-for-pull-request-comment"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}": { + get: operations["pulls/get"]; + patch: operations["pulls/update"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/comments": { + get: operations["pulls/list-review-comments"]; + post: operations["pulls/create-review-comment"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies": { + post: operations["pulls/create-reply-for-review-comment"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/commits": { + get: operations["pulls/list-commits"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/files": { + get: operations["pulls/list-files"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/merge": { + get: operations["pulls/check-if-merged"]; + put: operations["pulls/merge"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": { + get: operations["pulls/list-requested-reviewers"]; + post: operations["pulls/request-reviewers"]; + delete: operations["pulls/remove-requested-reviewers"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/reviews": { + get: operations["pulls/list-reviews"]; + post: operations["pulls/create-review"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": { + get: operations["pulls/get-review"]; + put: operations["pulls/update-review"]; + delete: operations["pulls/delete-pending-review"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": { + get: operations["pulls/list-comments-for-review"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": { + put: operations["pulls/dismiss-review"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": { + post: operations["pulls/submit-review"]; + }; + "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch": { + put: operations["pulls/update-branch"]; + }; + "/repos/{owner}/{repo}/readme": { + get: operations["repos/get-readme"]; + }; + "/repos/{owner}/{repo}/releases": { + get: operations["repos/list-releases"]; + post: operations["repos/create-release"]; + }; + "/repos/{owner}/{repo}/releases/assets/{asset_id}": { + get: operations["repos/get-release-asset"]; + patch: operations["repos/update-release-asset"]; + delete: operations["repos/delete-release-asset"]; + }; + "/repos/{owner}/{repo}/releases/latest": { + get: operations["repos/get-latest-release"]; + }; + "/repos/{owner}/{repo}/releases/tags/{tag}": { + get: operations["repos/get-release-by-tag"]; + }; + "/repos/{owner}/{repo}/releases/{release_id}": { + get: operations["repos/get-release"]; + patch: operations["repos/update-release"]; + delete: operations["repos/delete-release"]; + }; + "/repos/{owner}/{repo}/releases/{release_id}/assets": { + get: operations["repos/list-release-assets"]; + post: operations["repos/upload-release-asset"]; + }; + "/repos/{owner}/{repo}/stargazers": { + get: operations["activity/list-stargazers-for-repo"]; + }; + "/repos/{owner}/{repo}/stats/code_frequency": { + get: operations["repos/get-code-frequency-stats"]; + }; + "/repos/{owner}/{repo}/stats/commit_activity": { + get: operations["repos/get-commit-activity-stats"]; + }; + "/repos/{owner}/{repo}/stats/contributors": { + get: operations["repos/get-contributors-stats"]; + }; + "/repos/{owner}/{repo}/stats/participation": { + get: operations["repos/get-participation-stats"]; + }; + "/repos/{owner}/{repo}/stats/punch_card": { + get: operations["repos/get-punch-card-stats"]; + }; + "/repos/{owner}/{repo}/statuses/{sha}": { + post: operations["repos/create-commit-status"]; + }; + "/repos/{owner}/{repo}/subscribers": { + get: operations["activity/list-watchers-for-repo"]; + }; + "/repos/{owner}/{repo}/subscription": { + get: operations["activity/get-repo-subscription"]; + put: operations["activity/set-repo-subscription"]; + delete: operations["activity/delete-repo-subscription"]; + }; + "/repos/{owner}/{repo}/tags": { + get: operations["repos/list-tags"]; + }; + "/repos/{owner}/{repo}/tarball/{ref}": { + get: operations["repos/download-tarball-archive"]; + }; + "/repos/{owner}/{repo}/teams": { + get: operations["repos/list-teams"]; + }; + "/repos/{owner}/{repo}/topics": { + get: operations["repos/get-all-topics"]; + put: operations["repos/replace-all-topics"]; + }; + "/repos/{owner}/{repo}/traffic/clones": { + get: operations["repos/get-clones"]; + }; + "/repos/{owner}/{repo}/traffic/popular/paths": { + get: operations["repos/get-top-paths"]; + }; + "/repos/{owner}/{repo}/traffic/popular/referrers": { + get: operations["repos/get-top-referrers"]; + }; + "/repos/{owner}/{repo}/traffic/views": { + get: operations["repos/get-views"]; + }; + "/repos/{owner}/{repo}/transfer": { + post: operations["repos/transfer"]; + }; + "/repos/{owner}/{repo}/vulnerability-alerts": { + get: operations["repos/check-vulnerability-alerts"]; + put: operations["repos/enable-vulnerability-alerts"]; + delete: operations["repos/disable-vulnerability-alerts"]; + }; + "/repos/{owner}/{repo}/zipball/{ref}": { + get: operations["repos/download-zipball-archive"]; + }; + "/repos/{template_owner}/{template_repo}/generate": { + post: operations["repos/create-using-template"]; + }; + "/repositories": { + get: operations["repos/list-public"]; + }; + "/scim/v2/enterprises/{enterprise}/Groups": { + get: operations["enterprise-admin/list-provisioned-groups-enterprise"]; + post: operations["enterprise-admin/provision-and-invite-enterprise-group"]; + }; + "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": { + get: operations["enterprise-admin/get-provisioning-information-for-enterprise-group"]; + put: operations["enterprise-admin/set-information-for-provisioned-enterprise-group"]; + patch: operations["enterprise-admin/update-attribute-for-enterprise-group"]; + delete: operations["enterprise-admin/delete-scim-group-from-enterprise"]; + }; + "/scim/v2/enterprises/{enterprise}/Users": { + get: operations["enterprise-admin/list-provisioned-identities-enterprise"]; + post: operations["enterprise-admin/provision-and-invite-enterprise-user"]; + }; + "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": { + get: operations["enterprise-admin/get-provisioning-information-for-enterprise-user"]; + put: operations["enterprise-admin/set-information-for-provisioned-enterprise-user"]; + patch: operations["enterprise-admin/update-attribute-for-enterprise-user"]; + delete: operations["enterprise-admin/delete-user-from-enterprise"]; + }; + "/scim/v2/organizations/{org}/Users": { + get: operations["scim/list-provisioned-identities"]; + post: operations["scim/provision-and-invite-user"]; + }; + "/scim/v2/organizations/{org}/Users/{scim_user_id}": { + get: operations["scim/get-provisioning-information-for-user"]; + put: operations["scim/set-information-for-provisioned-user"]; + patch: operations["scim/update-attribute-for-user"]; + delete: operations["scim/delete-user-from-org"]; + }; + "/search/code": { + get: operations["search/code"]; + }; + "/search/commits": { + get: operations["search/commits"]; + }; + "/search/issues": { + get: operations["search/issues-and-pull-requests"]; + }; + "/search/labels": { + get: operations["search/labels"]; + }; + "/search/repositories": { + get: operations["search/repos"]; + }; + "/search/topics": { + get: operations["search/topics"]; + }; + "/search/users": { + get: operations["search/users"]; + }; + "/teams/{team_id}": { + get: operations["teams/get-legacy"]; + patch: operations["teams/update-legacy"]; + delete: operations["teams/delete-legacy"]; + }; + "/teams/{team_id}/discussions": { + get: operations["teams/list-discussions-legacy"]; + post: operations["teams/create-discussion-legacy"]; + }; + "/teams/{team_id}/discussions/{discussion_number}": { + get: operations["teams/get-discussion-legacy"]; + patch: operations["teams/update-discussion-legacy"]; + delete: operations["teams/delete-discussion-legacy"]; + }; + "/teams/{team_id}/discussions/{discussion_number}/comments": { + get: operations["teams/list-discussion-comments-legacy"]; + post: operations["teams/create-discussion-comment-legacy"]; + }; + "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": { + get: operations["teams/get-discussion-comment-legacy"]; + patch: operations["teams/update-discussion-comment-legacy"]; + delete: operations["teams/delete-discussion-comment-legacy"]; + }; + "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": { + get: operations["reactions/list-for-team-discussion-comment-legacy"]; + post: operations["reactions/create-for-team-discussion-comment-legacy"]; + }; + "/teams/{team_id}/discussions/{discussion_number}/reactions": { + get: operations["reactions/list-for-team-discussion-legacy"]; + post: operations["reactions/create-for-team-discussion-legacy"]; + }; + "/teams/{team_id}/invitations": { + get: operations["teams/list-pending-invitations-legacy"]; + }; + "/teams/{team_id}/members": { + get: operations["teams/list-members-legacy"]; + }; + "/teams/{team_id}/members/{username}": { + get: operations["teams/get-member-legacy"]; + put: operations["teams/add-member-legacy"]; + delete: operations["teams/remove-member-legacy"]; + }; + "/teams/{team_id}/memberships/{username}": { + get: operations["teams/get-membership-for-user-legacy"]; + put: operations["teams/add-or-update-membership-for-user-legacy"]; + delete: operations["teams/remove-membership-for-user-legacy"]; + }; + "/teams/{team_id}/projects": { + get: operations["teams/list-projects-legacy"]; + }; + "/teams/{team_id}/projects/{project_id}": { + get: operations["teams/check-permissions-for-project-legacy"]; + put: operations["teams/add-or-update-project-permissions-legacy"]; + delete: operations["teams/remove-project-legacy"]; + }; + "/teams/{team_id}/repos": { + get: operations["teams/list-repos-legacy"]; + }; + "/teams/{team_id}/repos/{owner}/{repo}": { + get: operations["teams/check-permissions-for-repo-legacy"]; + put: operations["teams/add-or-update-repo-permissions-legacy"]; + delete: operations["teams/remove-repo-legacy"]; + }; + "/teams/{team_id}/team-sync/group-mappings": { + get: operations["teams/list-idp-groups-for-legacy"]; + patch: operations["teams/create-or-update-idp-group-connections-legacy"]; + }; + "/teams/{team_id}/teams": { + get: operations["teams/list-child-legacy"]; + }; + "/user": { + get: operations["users/get-authenticated"]; + patch: operations["users/update-authenticated"]; + }; + "/user/blocks": { + get: operations["users/list-blocked-by-authenticated"]; + }; + "/user/blocks/{username}": { + get: operations["users/check-blocked"]; + put: operations["users/block"]; + delete: operations["users/unblock"]; + }; + "/user/email/visibility": { + patch: operations["users/set-primary-email-visibility-for-authenticated"]; + }; + "/user/emails": { + get: operations["users/list-emails-for-authenticated"]; + post: operations["users/add-email-for-authenticated"]; + delete: operations["users/delete-email-for-authenticated"]; + }; + "/user/followers": { + get: operations["users/list-followers-for-authenticated-user"]; + }; + "/user/following": { + get: operations["users/list-followed-by-authenticated"]; + }; + "/user/following/{username}": { + get: operations["users/check-person-is-followed-by-authenticated"]; + put: operations["users/follow"]; + delete: operations["users/unfollow"]; + }; + "/user/gpg_keys": { + get: operations["users/list-gpg-keys-for-authenticated"]; + post: operations["users/create-gpg-key-for-authenticated"]; + }; + "/user/gpg_keys/{gpg_key_id}": { + get: operations["users/get-gpg-key-for-authenticated"]; + delete: operations["users/delete-gpg-key-for-authenticated"]; + }; + "/user/installations": { + get: operations["apps/list-installations-for-authenticated-user"]; + }; + "/user/installations/{installation_id}/repositories": { + get: operations["apps/list-installation-repos-for-authenticated-user"]; + }; + "/user/installations/{installation_id}/repositories/{repository_id}": { + put: operations["apps/add-repo-to-installation"]; + delete: operations["apps/remove-repo-from-installation"]; + }; + "/user/interaction-limits": { + get: operations["interactions/get-restrictions-for-your-public-repos"]; + put: operations["interactions/set-restrictions-for-your-public-repos"]; + delete: operations["interactions/remove-restrictions-for-your-public-repos"]; + }; + "/user/issues": { + get: operations["issues/list-for-authenticated-user"]; + }; + "/user/keys": { + get: operations["users/list-public-ssh-keys-for-authenticated"]; + post: operations["users/create-public-ssh-key-for-authenticated"]; + }; + "/user/keys/{key_id}": { + get: operations["users/get-public-ssh-key-for-authenticated"]; + delete: operations["users/delete-public-ssh-key-for-authenticated"]; + }; + "/user/marketplace_purchases": { + get: operations["apps/list-subscriptions-for-authenticated-user"]; + }; + "/user/marketplace_purchases/stubbed": { + get: operations["apps/list-subscriptions-for-authenticated-user-stubbed"]; + }; + "/user/memberships/orgs": { + get: operations["orgs/list-memberships-for-authenticated-user"]; + }; + "/user/memberships/orgs/{org}": { + get: operations["orgs/get-membership-for-authenticated-user"]; + patch: operations["orgs/update-membership-for-authenticated-user"]; + }; + "/user/migrations": { + get: operations["migrations/list-for-authenticated-user"]; + post: operations["migrations/start-for-authenticated-user"]; + }; + "/user/migrations/{migration_id}": { + get: operations["migrations/get-status-for-authenticated-user"]; + }; + "/user/migrations/{migration_id}/archive": { + get: operations["migrations/get-archive-for-authenticated-user"]; + delete: operations["migrations/delete-archive-for-authenticated-user"]; + }; + "/user/migrations/{migration_id}/repos/{repo_name}/lock": { + delete: operations["migrations/unlock-repo-for-authenticated-user"]; + }; + "/user/migrations/{migration_id}/repositories": { + get: operations["migrations/list-repos-for-user"]; + }; + "/user/orgs": { + get: operations["orgs/list-for-authenticated-user"]; + }; + "/user/projects": { + post: operations["projects/create-for-authenticated-user"]; + }; + "/user/public_emails": { + get: operations["users/list-public-emails-for-authenticated"]; + }; + "/user/repos": { + get: operations["repos/list-for-authenticated-user"]; + post: operations["repos/create-for-authenticated-user"]; + }; + "/user/repository_invitations": { + get: operations["repos/list-invitations-for-authenticated-user"]; + }; + "/user/repository_invitations/{invitation_id}": { + patch: operations["repos/accept-invitation"]; + delete: operations["repos/decline-invitation"]; + }; + "/user/starred": { + get: operations["activity/list-repos-starred-by-authenticated-user"]; + }; + "/user/starred/{owner}/{repo}": { + get: operations["activity/check-repo-is-starred-by-authenticated-user"]; + put: operations["activity/star-repo-for-authenticated-user"]; + delete: operations["activity/unstar-repo-for-authenticated-user"]; + }; + "/user/subscriptions": { + get: operations["activity/list-watched-repos-for-authenticated-user"]; + }; + "/user/teams": { + get: operations["teams/list-for-authenticated-user"]; + }; + "/users": { + get: operations["users/list"]; + }; + "/users/{username}": { + get: operations["users/get-by-username"]; + }; + "/users/{username}/events": { + get: operations["activity/list-events-for-authenticated-user"]; + }; + "/users/{username}/events/orgs/{org}": { + get: operations["activity/list-org-events-for-authenticated-user"]; + }; + "/users/{username}/events/public": { + get: operations["activity/list-public-events-for-user"]; + }; + "/users/{username}/followers": { + get: operations["users/list-followers-for-user"]; + }; + "/users/{username}/following": { + get: operations["users/list-following-for-user"]; + }; + "/users/{username}/following/{target_user}": { + get: operations["users/check-following-for-user"]; + }; + "/users/{username}/gists": { + get: operations["gists/list-for-user"]; + }; + "/users/{username}/gpg_keys": { + get: operations["users/list-gpg-keys-for-user"]; + }; + "/users/{username}/hovercard": { + get: operations["users/get-context-for-user"]; + }; + "/users/{username}/installation": { + get: operations["apps/get-user-installation"]; + }; + "/users/{username}/keys": { + get: operations["users/list-public-keys-for-user"]; + }; + "/users/{username}/orgs": { + get: operations["orgs/list-for-user"]; + }; + "/users/{username}/projects": { + get: operations["projects/list-for-user"]; + }; + "/users/{username}/received_events": { + get: operations["activity/list-received-events-for-user"]; + }; + "/users/{username}/received_events/public": { + get: operations["activity/list-received-public-events-for-user"]; + }; + "/users/{username}/repos": { + get: operations["repos/list-for-user"]; + }; + "/users/{username}/settings/billing/actions": { + get: operations["billing/get-github-actions-billing-user"]; + }; + "/users/{username}/settings/billing/packages": { + get: operations["billing/get-github-packages-billing-user"]; + }; + "/users/{username}/settings/billing/shared-storage": { + get: operations["billing/get-shared-storage-billing-user"]; + }; + "/users/{username}/starred": { + get: operations["activity/list-repos-starred-by-user"]; + }; + "/users/{username}/subscriptions": { + get: operations["activity/list-repos-watched-by-user"]; + }; + "/zen": { + get: operations["meta/get-zen"]; + }; +} + +export interface operations { + /** + * Get Hypermedia links to resources accessible in GitHub's REST API + */ + "meta/root": { + responses: { + /** + * response + */ + "200": { + "application/json": { + current_user_url: string; + current_user_authorizations_html_url: string; + authorizations_url: string; + code_search_url: string; + commit_search_url: string; + emails_url: string; + emojis_url: string; + events_url: string; + feeds_url: string; + followers_url: string; + following_url: string; + gists_url: string; + hub_url: string; + issue_search_url: string; + issues_url: string; + keys_url: string; + label_search_url: string; + notifications_url: string; + organization_url: string; + organization_repositories_url: string; + organization_teams_url: string; + public_gists_url: string; + rate_limit_url: string; + repository_url: string; + repository_search_url: string; + current_user_repositories_url: string; + starred_url: string; + starred_gists_url: string; + topic_search_url?: string; + user_url: string; + user_organizations_url: string; + user_repositories_url: string; + user_search_url: string; + }; + }; + }; + }; + /** + * Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the "[List installations for the authenticated app](https://docs.github.com/rest/reference/apps#list-installations-for-the-authenticated-app)" endpoint. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/get-authenticated": { + parameters: {}; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["integration"]; + }; + }; + }; + /** + * Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://docs.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`. + */ + "apps/create-from-manifest": { + parameters: { + path: { + code: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["integration"] & + ({ + client_id: string; + client_secret: string; + webhook_secret: string; + pem: string; + } & { [key: string]: any }); + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * Returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)." + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/get-webhook-config-for-app": { + responses: { + /** + * Default response + */ + "200": { + "application/json": components["schemas"]["webhook-config"]; + }; + }; + }; + /** + * Updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)." + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/update-webhook-config-for-app": { + requestBody: { + "application/json": { + url?: components["schemas"]["webhook-config-url"]; + content_type?: components["schemas"]["webhook-config-content-type"]; + secret?: components["schemas"]["webhook-config-secret"]; + insecure_ssl?: components["schemas"]["webhook-config-insecure-ssl"]; + }; + }; + responses: { + /** + * Default response + */ + "200": { + "application/json": components["schemas"]["webhook-config"]; + }; + }; + }; + /** + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + * + * The permissions the installation has are included under the `permissions` key. + */ + "apps/list-installations": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + since?: components["parameters"]["since"]; + outdated?: string; + }; + }; + responses: { + /** + * The permissions the installation has are included under the `permissions` key. + */ + "200": { + "application/json": components["schemas"]["installation"][]; + }; + }; + }; + /** + * Enables an authenticated GitHub App to find an installation's information using the installation id. The installation's account type (`target_type`) will be either an organization or a user account, depending which account the repository belongs to. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/get-installation": { + parameters: { + path: { + installation_id: components["parameters"]["installation_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["installation"]; + }; + "404": unknown; + "415": unknown; + }; + }; + /** + * Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/v3/apps/#suspend-an-app-installation)" endpoint. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/delete-installation": { + parameters: { + path: { + installation_id: components["parameters"]["installation_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access. To restrict the access to specific repositories, you can provide the `repository_ids` when creating the token. When you omit `repository_ids`, the response does not contain the `repositories` key. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/create-installation-access-token": { + parameters: { + path: { + installation_id: components["parameters"]["installation_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * List of repository names that the token should have access to + */ + repositories?: string[]; + /** + * List of repository IDs that the token should have access to + */ + repository_ids?: number[]; + permissions?: { + contents?: string; + issues?: string; + deployments?: string; + single_file?: string; + def_not_a_repo?: string; + }; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["installation-token"]; + }; + "401": unknown; + "403": unknown; + "404": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * **Note:** Suspending a GitHub App installation is currently in beta and subject to change. Before you can suspend a GitHub App, the app owner must enable suspending installations for the app by opting-in to the beta. For more information, see "[Suspending a GitHub App installation](https://docs.github.com/apps/managing-github-apps/suspending-a-github-app-installation/)." + * + * Suspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account. + * + * To suspend a GitHub App, you must be an account owner or have admin permissions in the repository or organization where the app is installed. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/suspend-installation": { + parameters: { + path: { + installation_id: components["parameters"]["installation_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * **Note:** Suspending a GitHub App installation is currently in beta and subject to change. Before you can suspend a GitHub App, the app owner must enable suspending installations for the app by opting-in to the beta. For more information, see "[Suspending a GitHub App installation](https://docs.github.com/apps/managing-github-apps/suspending-a-github-app-installation/)." + * + * Removes a GitHub App installation suspension. + * + * To unsuspend a GitHub App, you must be an account owner or have admin permissions in the repository or organization where the app is installed and suspended. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/unsuspend-installation": { + parameters: { + path: { + installation_id: components["parameters"]["installation_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + * + * You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://docs.github.com/rest/reference/oauth-authorizations#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `["repo", "user"]`. + */ + "oauth-authorizations/list-grants": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["application-grant"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + */ + "oauth-authorizations/get-grant": { + parameters: { + path: { + grant_id: components["parameters"]["grant_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["application-grant"]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + * + * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). + */ + "oauth-authorizations/delete-grant": { + parameters: { + path: { + grant_id: components["parameters"]["grant_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid OAuth `access_token` as an input parameter and the grant for the token's owner will be deleted. + * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). + */ + "apps/delete-authorization": { + parameters: { + path: { + client_id: components["parameters"]["client-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The OAuth access token used to authenticate to the GitHub API. + */ + access_token?: string; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. The OAuth Application API will be removed on May 5, 2021. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/). + * + * OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid token as `:access_token` and the grant for the token's owner will be deleted. + * + * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the Applications settings page under "Authorized OAuth Apps" on GitHub](https://github.com/settings/applications#authorized). + */ + "apps/revoke-grant-for-application": { + parameters: { + path: { + client_id: components["parameters"]["client-id"]; + access_token: components["parameters"]["access-token"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) to use this endpoint, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`. + */ + "apps/check-token": { + parameters: { + path: { + client_id: components["parameters"]["client-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The access_token of the OAuth application. + */ + access_token: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["authorization"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. + */ + "apps/reset-token": { + parameters: { + path: { + client_id: components["parameters"]["client-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The access_token of the OAuth application. + */ + access_token: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["authorization"]; + }; + "422": unknown; + }; + }; + /** + * OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. + */ + "apps/delete-token": { + parameters: { + path: { + client_id: components["parameters"]["client-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The OAuth access token used to authenticate to the GitHub API. + */ + access_token?: string; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. The OAuth Application API will be removed on May 5, 2021. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/). + * + * OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. + */ + "apps/check-authorization": { + parameters: { + path: { + client_id: components["parameters"]["client-id"]; + access_token: components["parameters"]["access-token"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["authorization"]; + }; + "404": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. The OAuth Application API will be removed on May 5, 2021. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/). + * + * OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. + */ + "apps/reset-authorization": { + parameters: { + path: { + client_id: components["parameters"]["client-id"]; + access_token: components["parameters"]["access-token"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["authorization"]; + }; + }; + }; + /** + * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. The OAuth Application API will be removed on May 5, 2021. For more information, including scheduled brownouts, see the [blog post](https://developer.github.com/changes/2020-02-14-deprecating-oauth-app-endpoint/). + * + * OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. + */ + "apps/revoke-authorization-for-application": { + parameters: { + path: { + client_id: components["parameters"]["client-id"]; + access_token: components["parameters"]["access-token"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * **Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`). + * + * If the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. + */ + "apps/get-by-slug": { + parameters: { + path: { + app_slug: components["parameters"]["app_slug"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["integration"]; + }; + "403": unknown; + "404": unknown; + "415": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + */ + "oauth-authorizations/list-authorizations": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["authorization"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + * + * **Warning:** Apps must use the [web application flow](https://docs.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). + * + * Creates OAuth tokens using [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication). If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://docs.github.com/rest/overview/other-authentication-methods#working-with-two-factor-authentication)." + * + * To create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them. + * + * You can also create tokens on GitHub from the [personal access tokens settings](https://github.com/settings/tokens) page. Read more about these tokens in [the GitHub Help documentation](https://help.github.com/articles/creating-an-access-token-for-command-line-use). + * + * Organizations that enforce SAML SSO require personal access tokens to be allowed. Read more about allowing tokens in [the GitHub Help documentation](https://help.github.com/articles/about-identity-and-access-management-with-saml-single-sign-on). + */ + "oauth-authorizations/create-authorization": { + parameters: {}; + requestBody: { + "application/json": { + /** + * A list of scopes that this authorization is in. + */ + scopes?: string[] | null; + /** + * A note to remind you what the OAuth token is for. + */ + note?: string; + /** + * A URL to remind you what app the OAuth token is for. + */ + note_url?: string; + /** + * The OAuth app client key for which to create the token. + */ + client_id?: string; + /** + * The OAuth app client secret for which to create the token. + */ + client_secret?: string; + /** + * A unique string to distinguish an authorization from others created for the same client ID and user. + */ + fingerprint?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["authorization"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "410": unknown; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + * + * **Warning:** Apps must use the [web application flow](https://docs.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). + * + * Creates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one. + * + * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://docs.github.com/rest/overview/other-authentication-methods#working-with-two-factor-authentication)." + * + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + */ + "oauth-authorizations/get-or-create-authorization-for-app": { + parameters: { + path: { + client_id: components["parameters"]["client-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The OAuth app client secret for which to create the token. + */ + client_secret: string; + /** + * A list of scopes that this authorization is in. + */ + scopes?: string[] | null; + /** + * A note to remind you what the OAuth token is for. + */ + note?: string; + /** + * A URL to remind you what app the OAuth token is for. + */ + note_url?: string; + /** + * A unique string to distinguish an authorization from others created for the same client ID and user. + */ + fingerprint?: string; + }; + }; + responses: { + /** + * Response if returning an existing token + */ + "200": { + "application/json": components["schemas"]["authorization"]; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + */ + "201": { + "application/json": components["schemas"]["authorization"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + * + * **Warning:** Apps must use the [web application flow](https://docs.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). + * + * This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one. + * + * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://docs.github.com/rest/overview/other-authentication-methods#working-with-two-factor-authentication)." + */ + "oauth-authorizations/get-or-create-authorization-for-app-and-fingerprint": { + parameters: { + path: { + client_id: components["parameters"]["client-id"]; + fingerprint: string; + }; + }; + requestBody: { + "application/json": { + /** + * The OAuth app client secret for which to create the token. + */ + client_secret: string; + /** + * A list of scopes that this authorization is in. + */ + scopes?: string[] | null; + /** + * A note to remind you what the OAuth token is for. + */ + note?: string; + /** + * A URL to remind you what app the OAuth token is for. + */ + note_url?: string; + }; + }; + responses: { + /** + * Response if returning an existing token + */ + "200": { + "application/json": components["schemas"]["authorization"]; + }; + /** + * Response if returning a new token + */ + "201": { + "application/json": components["schemas"]["authorization"]; + }; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + */ + "oauth-authorizations/get-authorization": { + parameters: { + path: { + authorization_id: components["parameters"]["authorization_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["authorization"]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/developers/apps/authorizing-oauth-apps#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + * + * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://docs.github.com/rest/overview/other-authentication-methods#working-with-two-factor-authentication)." + * + * You can only send one of these scope keys at a time. + */ + "oauth-authorizations/update-authorization": { + parameters: { + path: { + authorization_id: components["parameters"]["authorization_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * A list of scopes that this authorization is in. + */ + scopes?: string[] | null; + /** + * A list of scopes to add to this authorization. + */ + add_scopes?: string[]; + /** + * A list of scopes to remove from this authorization. + */ + remove_scopes?: string[]; + /** + * A note to remind you what the OAuth token is for. + */ + note?: string; + /** + * A URL to remind you what app the OAuth token is for. + */ + note_url?: string; + /** + * A unique string to distinguish an authorization from others created for the same client ID and user. + */ + fingerprint?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["authorization"]; + }; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://docs.github.com/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/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). The [OAuth Authorizations API](https://docs.github.com/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/). + */ + "oauth-authorizations/delete-authorization": { + parameters: { + path: { + authorization_id: components["parameters"]["authorization_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + "codes-of-conduct/get-all-codes-of-conduct": { + parameters: {}; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["code-of-conduct"][]; + }; + "304": never; + "415": unknown; + }; + }; + "codes-of-conduct/get-conduct-code": { + parameters: { + path: { + key: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["code-of-conduct"]; + }; + "304": never; + "404": unknown; + "415": unknown; + }; + }; + /** + * Creates an attachment under a content reference URL in the body or comment of an issue or pull request. Use the `id` of the content reference from the [`content_reference` event](https://docs.github.com/webhooks/event-payloads/#content_reference) to create an attachment. + * + * The app must create a content attachment within six hours of the content reference URL being posted. See "[Using content attachments](https://docs.github.com/apps/using-content-attachments/)" for details about content attachments. + * + * You must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. + */ + "apps/create-content-attachment": { + parameters: { + path: { + content_reference_id: number; + }; + }; + requestBody: { + "application/json": { + /** + * The title of the attachment + */ + title: string; + /** + * The body of the attachment + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["content-reference-attachment"]; + }; + "304": never; + "403": unknown; + "404": unknown; + "410": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * Lists all the emojis available to use on GitHub. + */ + "emojis/get": { + parameters: {}; + responses: { + /** + * response + */ + "200": { + "application/json": { [key: string]: string }; + }; + "304": never; + }; + }; + /** + * Gets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/get-github-actions-permissions-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["actions-enterprise-permissions"]; + }; + }; + }; + /** + * Sets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/set-github-actions-permissions-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + requestBody: { + "application/json": { + enabled_organizations: components["schemas"]["enabled-organizations"]; + allowed_actions?: components["schemas"]["allowed-actions"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/list-selected-organizations-enabled-github-actions-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + organizations?: components["schemas"]["organization-simple"][]; + }; + }; + }; + }; + /** + * Replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/set-selected-organizations-enabled-github-actions-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + requestBody: { + "application/json": { + /** + * List of organization IDs to enable for GitHub Actions. + */ + selected_organization_ids: number[]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Adds an organization to the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/enable-selected-organization-github-actions-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + org_id: components["parameters"]["org_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Removes an organization from the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/disable-selected-organization-github-actions-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + org_id: components["parameters"]["org_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Gets the selected actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/get-allowed-actions-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["selected-actions"]; + }; + }; + }; + /** + * Sets the actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/set-allowed-actions-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + requestBody: { + "application/json": components["schemas"]["selected-actions"]; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists all self-hosted runner groups for an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/list-self-hosted-runner-groups-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + runner_groups?: components["schemas"]["runner-groups-enterprise"][]; + }; + }; + }; + }; + /** + * Creates a new self-hosted runner group for an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/create-self-hosted-runner-group-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + requestBody: { + "application/json": { + /** + * Name of the runner group. + */ + name: string; + /** + * Visibility of a runner group. You can select all organizations or select individual organization. Can be one of: `all` or `selected` + */ + visibility?: "selected" | "all"; + /** + * List of organization IDs that can access the runner group. + */ + selected_organization_ids?: number[]; + /** + * List of runner IDs to add to the runner group. + */ + runners?: number[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["runner-groups-enterprise"]; + }; + }; + }; + /** + * Gets a specific self-hosted runner group for an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/get-self-hosted-runner-group-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["runner-groups-enterprise"]; + }; + }; + }; + /** + * Updates the `name` and `visibility` of a self-hosted runner group in an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/update-self-hosted-runner-group-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * Name of the runner group. + */ + name?: string; + /** + * Visibility of a runner group. You can select all organizations or select individual organizations. Can be one of: `all` or `selected` + */ + visibility?: "selected" | "all"; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["runner-groups-enterprise"]; + }; + }; + }; + /** + * Deletes a self-hosted runner group for an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/delete-self-hosted-runner-group-from-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists the organizations with access to a self-hosted runner group. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/list-org-access-to-self-hosted-runner-group-in-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + organizations?: components["schemas"]["organization-simple"][]; + }; + }; + }; + }; + /** + * Replaces the list of organizations that have access to a self-hosted runner configured in an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * List of organization IDs that can access the runner group. + */ + selected_organization_ids: number[]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Adds an organization to the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + org_id: components["parameters"]["org_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Removes an organization from the list of selected organizations that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an enterprise](#create-a-self-hosted-runner-group-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + org_id: components["parameters"]["org_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists the self-hosted runners that are in a specific enterprise group. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/list-self-hosted-runners-in-group-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + runners?: components["schemas"]["runner"][]; + }; + }; + }; + }; + /** + * Replaces the list of self-hosted runners that that are part of an enterprise runner group. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/set-self-hosted-runners-in-group-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * List of runner IDs to add to the runner group. + */ + runners: number[]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Adds a self-hosted runner to a runner group configured in an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` + * scope to use this endpoint. + */ + "enterprise-admin/add-self-hosted-runner-to-group-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + runner_id: components["parameters"]["runner_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Removes a self-hosted runner from a group configured in an enterprise. The runner is then returned to the default group. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_group_id: components["parameters"]["runner_group_id"]; + runner_id: components["parameters"]["runner_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists all self-hosted runners configured for an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/list-self-hosted-runners-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + runners?: components["schemas"]["runner"][]; + }; + }; + }; + }; + /** + * Lists binaries for the runner application that you can download and run. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/list-runner-applications-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["runner-application"][]; + }; + }; + }; + /** + * Returns a token that you can pass to the `config` script. The token expires after one hour. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + * + * #### Example using registration token + * + * Configure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint. + * + * ``` + * ./config.sh --url https://github.com/enterpises/octo-enterprise --token TOKEN + * ``` + */ + "enterprise-admin/create-registration-token-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["authentication-token"]; + }; + }; + }; + /** + * Returns a token that you can pass to the `config` script to remove a self-hosted runner from an enterprise. The token expires after one hour. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + * + * #### Example using remove token + * + * To remove your self-hosted runner from an enterprise, replace `TOKEN` with the remove token provided by this + * endpoint. + * + * ``` + * ./config.sh remove --token TOKEN + * ``` + */ + "enterprise-admin/create-remove-token-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["authentication-token"]; + }; + }; + }; + /** + * Gets a specific self-hosted runner configured in an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/get-self-hosted-runner-for-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_id: components["parameters"]["runner_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["runner"]; + }; + }; + }; + /** + * Forces the removal of a self-hosted runner from an enterprise. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + "enterprise-admin/delete-self-hosted-runner-from-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + runner_id: components["parameters"]["runner_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Gets the summary of the free and paid GitHub Actions minutes used. + * + * Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". + * + * The authenticated user must be an enterprise admin. + */ + "billing/get-github-actions-billing-ghe": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["actions-billing-usage"]; + }; + }; + }; + /** + * Gets the free and paid storage used for GitHub Packages in gigabytes. + * + * Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." + * + * The authenticated user must be an enterprise admin. + */ + "billing/get-github-packages-billing-ghe": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["packages-billing-usage"]; + }; + }; + }; + /** + * Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages. + * + * Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." + * + * The authenticated user must be an enterprise admin. + */ + "billing/get-shared-storage-billing-ghe": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["combined-billing-usage"]; + }; + }; + }; + /** + * We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago. + */ + "activity/list-public-events": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["event"][]; + }; + "304": never; + "403": unknown; + "503": unknown; + }; + }; + /** + * GitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user: + * + * * **Timeline**: The GitHub global public timeline + * * **User**: The public timeline for any user, using [URI template](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia) + * * **Current user public**: The public timeline for the authenticated user + * * **Current user**: The private timeline for the authenticated user + * * **Current user actor**: The private timeline for activity created by the authenticated user + * * **Current user organizations**: The private timeline for the organizations the authenticated user is a member of. + * * **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub. + * + * **Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens. + */ + "activity/get-feeds": { + parameters: {}; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["feed"]; + }; + }; + }; + /** + * Lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists: + */ + "gists/list": { + parameters: { + query: { + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["base-gist"][]; + }; + "304": never; + "403": unknown; + }; + }; + /** + * Allows you to add a new gist with one or more files. + * + * **Note:** Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally. + */ + "gists/create": { + parameters: {}; + requestBody: { + "application/json": { + /** + * Description of the gist + */ + description?: string; + /** + * Names and content for the files that make up the gist + */ + files: { + [key: string]: { + /** + * Content of the file + */ + content: string; + }; + }; + public?: boolean | ("true" | "false"); + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["gist-full"]; + }; + "304": never; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * List public gists sorted by most recently updated to least recently updated. + * + * Note: With [pagination](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. + */ + "gists/list-public": { + parameters: { + query: { + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["base-gist"][]; + }; + "304": never; + "403": unknown; + "422": unknown; + }; + }; + /** + * List the authenticated user's starred gists: + */ + "gists/list-starred": { + parameters: { + query: { + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["base-gist"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + "gists/get": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gist-full"]; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged. + */ + "gists/update": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + }; + requestBody: { + "application/json": Partial<{ [key: string]: any }> & + Partial<{ [key: string]: any }>; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gist-full"]; + }; + "404": unknown; + "422": unknown; + }; + }; + "gists/delete": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + "gists/list-comments": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gist-comment"][]; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + "gists/create-comment": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The comment text. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["gist-comment"]; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + "gists/get-comment": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gist-comment"]; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + "gists/update-comment": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The comment text. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gist-comment"]; + }; + "404": unknown; + }; + }; + "gists/delete-comment": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + "gists/list-commits": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gist-commit"][]; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + "gists/list-forks": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gist-full"][]; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * **Note**: This was previously `/gists/:gist_id/fork`. + */ + "gists/fork": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["base-gist"]; + }; + "304": never; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + "gists/check-is-starred": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + }; + responses: { + /** + * Response if gist is starred + */ + "204": never; + "304": never; + "403": unknown; + /** + * Response if gist is not starred + */ + "404": { + "application/json": { [key: string]: any }; + }; + }; + }; + /** + * Note that 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + "gists/star": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + "gists/unstar": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + "gists/get-revision": { + parameters: { + path: { + gist_id: components["parameters"]["gist_id"]; + sha: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gist-full"]; + }; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * List all templates available to pass as an option when [creating a repository](https://docs.github.com/rest/reference/repos#create-a-repository-for-the-authenticated-user). + */ + "gitignore/get-all-templates": { + parameters: {}; + responses: { + /** + * response + */ + "200": { + "application/json": string[]; + }; + "304": never; + }; + }; + /** + * The API also allows fetching the source of a single template. + * Use the raw [media type](https://docs.github.com/rest/overview/media-types/) to get the raw contents. + */ + "gitignore/get-template": { + parameters: { + path: { + name: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gitignore-template"]; + }; + "304": never; + }; + }; + /** + * List repositories that an app installation can access. + * + * You must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. + */ + "apps/list-repos-accessible-to-installation": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + repositories?: components["schemas"]["repository"][]; + repository_selection?: string; + }; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * Revokes the installation token you're using to authenticate as an installation and access this endpoint. + * + * Once an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the "[Create an installation access token for an app](https://docs.github.com/rest/reference/apps#create-an-installation-access-token-for-an-app)" endpoint. + * + * You must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. + */ + "apps/revoke-installation-access-token": { + parameters: {}; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * List issues assigned to the authenticated user across all visible repositories including owned repositories, member + * repositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are not + * necessarily assigned to you. + * + * + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this + * reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by + * the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull + * request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + "issues/list": { + parameters: { + query: { + /** + * 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`: All issues the authenticated user can see, regardless of participation or creation + */ + filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + /** + * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + labels?: components["parameters"]["labels"]; + /** + * What to sort results by. Can be either `created`, `updated`, `comments`. + */ + sort?: "created" | "updated" | "comments"; + direction?: components["parameters"]["direction"]; + since?: components["parameters"]["since"]; + collab?: boolean; + orgs?: boolean; + owned?: boolean; + pulls?: boolean; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue"][]; + }; + "304": never; + "404": unknown; + "422": unknown; + }; + }; + "licenses/get-all-commonly-used": { + parameters: { + query: { + featured?: boolean; + per_page?: components["parameters"]["per_page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["license-simple"][]; + }; + "304": never; + }; + }; + "licenses/get": { + parameters: { + path: { + license: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["license"]; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + "markdown/render": { + parameters: {}; + requestBody: { + "application/json": { + /** + * The Markdown text to render in HTML. + */ + text: string; + /** + * The rendering mode. + */ + mode?: "markdown" | "gfm"; + /** + * The repository context to use when creating references in `gfm` mode. + */ + context?: string; + }; + }; + responses: { + /** + * response + */ + "200": unknown; + "304": never; + }; + }; + /** + * You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less. + */ + "markdown/render-raw": { + parameters: {}; + requestBody: { + "text/plain": string; + "text/x-markdown": string; + }; + responses: { + /** + * response + */ + "200": { + "text/html": string; + }; + "304": never; + }; + }; + /** + * Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + "apps/get-subscription-plan-for-account": { + parameters: { + path: { + account_id: components["parameters"]["account_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["marketplace-purchase"]; + }; + "401": unknown; + /** + * Response when the account has not purchased the listing + */ + "404": { + "application/json": components["schemas"]["basic-error"]; + }; + }; + }; + /** + * Lists all plans that are part of your GitHub Marketplace listing. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + "apps/list-plans": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["marketplace-listing-plan"][]; + }; + "401": unknown; + "404": unknown; + }; + }; + /** + * Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + "apps/list-accounts-for-plan": { + parameters: { + path: { + plan_id: components["parameters"]["plan_id"]; + }; + query: { + sort?: components["parameters"]["sort"]; + /** + * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. + */ + direction?: "asc" | "desc"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["marketplace-purchase"][]; + }; + "401": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + "apps/get-subscription-plan-for-account-stubbed": { + parameters: { + path: { + account_id: components["parameters"]["account_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["marketplace-purchase"]; + }; + "401": unknown; + /** + * Response when the account has not purchased the listing + */ + "404": unknown; + }; + }; + /** + * Lists all plans that are part of your GitHub Marketplace listing. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + "apps/list-plans-stubbed": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["marketplace-listing-plan"][]; + }; + "401": unknown; + }; + }; + /** + * Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + "apps/list-accounts-for-plan-stubbed": { + parameters: { + path: { + plan_id: components["parameters"]["plan_id"]; + }; + query: { + sort?: components["parameters"]["sort"]; + /** + * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. + */ + direction?: "asc" | "desc"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["marketplace-purchase"][]; + }; + "401": unknown; + }; + }; + /** + * This endpoint provides a list of GitHub's IP addresses. For more information, see "[About GitHub's IP addresses](https://help.github.com/articles/about-github-s-ip-addresses/)." + */ + "meta/get": { + parameters: {}; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["api-overview"]; + }; + "304": never; + }; + }; + "activity/list-public-events-for-repo-network": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["event"][]; + }; + "301": never; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * List all notifications for the current user, sorted by most recently updated. + */ + "activity/list-notifications-for-authenticated-user": { + parameters: { + query: { + all?: components["parameters"]["all"]; + participating?: components["parameters"]["participating"]; + since?: components["parameters"]["since"]; + before?: components["parameters"]["before"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["thread"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "422": unknown; + }; + }; + /** + * Marks all notifications as "read" removes it from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`. + */ + "activity/mark-notifications-as-read": { + parameters: {}; + requestBody: { + "application/json": { + /** + * Describes the last point that notifications were checked. + */ + last_read_at?: string; + /** + * Whether the notification has been read. + */ + read?: boolean; + }; + }; + responses: { + /** + * response + */ + "202": { + "application/json": { message?: string }; + }; + /** + * response + */ + "205": unknown; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + "activity/get-thread": { + parameters: { + path: { + thread_id: components["parameters"]["thread_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["thread"]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + "activity/mark-thread-as-read": { + parameters: { + path: { + thread_id: components["parameters"]["thread_id"]; + }; + }; + responses: { + /** + * response + */ + "205": unknown; + "304": never; + "403": unknown; + }; + }; + /** + * This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://docs.github.com/rest/reference/activity#get-a-repository-subscription). + * + * Note that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread. + */ + "activity/get-thread-subscription-for-authenticated-user": { + parameters: { + path: { + thread_id: components["parameters"]["thread_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["thread-subscription"]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an **@mention**. + * + * You can also use this endpoint to subscribe to threads that you are currently not receiving notifications for or to subscribed to threads that you have previously ignored. + * + * Unsubscribing from a conversation in a repository that you are not watching is functionally equivalent to the [Delete a thread subscription](https://docs.github.com/rest/reference/activity#delete-a-thread-subscription) endpoint. + */ + "activity/set-thread-subscription": { + parameters: { + path: { + thread_id: components["parameters"]["thread_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * Whether to block all notifications from a thread. + */ + ignored?: boolean; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["thread-subscription"]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * Mutes all future notifications for a conversation until you comment on the thread or get an **@mention**. If you are watching the repository of the thread, you will still receive notifications. To ignore future notifications for a repository you are watching, use the [Set a thread subscription](https://docs.github.com/rest/reference/activity#set-a-thread-subscription) endpoint and set `ignore` to `true`. + */ + "activity/delete-thread-subscription": { + parameters: { + path: { + thread_id: components["parameters"]["thread_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * Get the octocat as ASCII art + */ + "meta/get-octocat": { + parameters: { + query: { + /** + * The words to show in Octocat's speech bubble + */ + s?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/octocat-stream": string; + }; + }; + }; + /** + * Lists all organizations, in the order that they were created on GitHub. + * + * **Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of organizations. + */ + "orgs/list": { + parameters: { + query: { + since?: components["parameters"]["since-org"]; + per_page?: components["parameters"]["per_page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["organization-simple"][]; + }; + "304": never; + }; + }; + /** + * To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/). + * + * GitHub Apps with the `Organization plan` permission can use this endpoint to retrieve information about an organization's GitHub plan. See "[Authenticating with GitHub Apps](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/)" for details. For an example response, see 'Response with GitHub plan information' below." + */ + "orgs/get": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["organization-full"]; + }; + "404": unknown; + }; + }; + /** + * **Parameter Deprecation Notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). + * + * Enables an authenticated organization owner with the `admin:org` scope to update the organization's profile and member privileges. + */ + "orgs/update": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * Billing email address. This address is not publicized. + */ + billing_email?: string; + /** + * The company name. + */ + company?: string; + /** + * The publicly visible email address. + */ + email?: string; + /** + * The Twitter username of the company. + */ + twitter_username?: string; + /** + * The location. + */ + location?: string; + /** + * The shorthand name of the company. + */ + name?: string; + /** + * The description of the company. + */ + description?: string; + /** + * Toggles whether an organization can use organization projects. + */ + has_organization_projects?: boolean; + /** + * Toggles whether repositories that belong to the organization can use repository projects. + */ + has_repository_projects?: boolean; + /** + * 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. + */ + default_repository_permission?: "read" | "write" | "admin" | "none"; + /** + * 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_repositories?: boolean; + /** + * 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_internal_repositories?: boolean; + /** + * 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_private_repositories?: boolean; + /** + * 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_can_create_public_repositories?: boolean; + /** + * 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. + */ + members_allowed_repository_creation_type?: "all" | "private" | "none"; + /** + * Toggles whether organization members can create GitHub Pages sites. Can be one of: + * \* `true` - all organization members can create GitHub Pages sites. + * \* `false` - no organization members can create GitHub Pages sites. Existing published sites will not be impacted. + * Default: `true`. + */ + members_can_create_pages?: boolean; + blog?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["organization-full"]; + }; + "409": unknown; + "415": unknown; + /** + * Validation Failed + */ + "422": { + "application/json": + | components["schemas"]["validation-error"] + | components["schemas"]["validation-error-simple"]; + }; + }; + }; + /** + * Gets the GitHub Actions permissions policy for repositories and allowed actions in an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + "actions/get-github-actions-permissions-organization": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["actions-organization-permissions"]; + }; + }; + }; + /** + * Sets the GitHub Actions permissions policy for repositories and allowed actions in an organization. + * + * If the organization belongs to an enterprise that has set restrictive permissions at the enterprise level, such as `allowed_actions` to `selected` actions, then you cannot override them for the organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + "actions/set-github-actions-permissions-organization": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + enabled_repositories: components["schemas"]["enabled-repositories"]; + allowed_actions?: components["schemas"]["allowed-actions"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + "actions/list-selected-repositories-enabled-github-actions-organization": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + repositories?: components["schemas"]["repository"][]; + }; + }; + }; + }; + /** + * Replaces the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + "actions/set-selected-repositories-enabled-github-actions-organization": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * List of repository IDs to enable for GitHub Actions. + */ + selected_repository_ids: number[]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + "actions/enable-selected-repository-github-actions-organization": { + parameters: { + path: { + org: components["parameters"]["org"]; + repository_id: components["parameters"]["repository_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Removes a repository from the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + "actions/disable-selected-repository-github-actions-organization": { + parameters: { + path: { + org: components["parameters"]["org"]; + repository_id: components["parameters"]["repository_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Gets the selected actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."" + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + "actions/get-allowed-actions-organization": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["selected-actions"]; + }; + }; + }; + /** + * Sets the actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." + * + * If the organization belongs to an enterprise that has `selected` actions set at the enterprise level, then you cannot override any of the enterprise's allowed actions settings. + * + * To use the `patterns_allowed` setting for private repositories, the organization must belong to an enterprise. If the organization does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories in the organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + "actions/set-allowed-actions-organization": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": components["schemas"]["selected-actions"]; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * Lists all self-hosted runner groups configured in an organization and inherited from an enterprise. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/list-self-hosted-runner-groups-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + runner_groups?: components["schemas"]["runner-groups-org"][]; + }; + }; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud and GitHub Enterprise Server. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * Creates a new self-hosted runner group for an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/create-self-hosted-runner-group-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * Name of the runner group. + */ + name: string; + /** + * Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. Can be one of: `all`, `selected`, or `private`. + */ + visibility?: "selected" | "all" | "private"; + /** + * List of repository IDs that can access the runner group. + */ + selected_repository_ids?: number[]; + /** + * List of runner IDs to add to the runner group. + */ + runners?: number[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["runner-groups-org"]; + }; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * Gets a specific self-hosted runner group for an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/get-self-hosted-runner-group-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["runner-groups-org"]; + }; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * Updates the `name` and `visibility` of a self-hosted runner group in an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/update-self-hosted-runner-group-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * Name of the runner group. + */ + name?: string; + /** + * Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. Can be one of: `all`, `selected`, or `private`. + */ + visibility?: "selected" | "all" | "private"; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["runner-groups-org"]; + }; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * Deletes a self-hosted runner group for an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/delete-self-hosted-runner-group-from-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud and GitHub Enterprise Server. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * Lists the repositories with access to a self-hosted runner group configured in an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/list-repo-access-to-self-hosted-runner-group-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + repositories?: components["schemas"]["repository"][]; + }; + }; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * Replaces the list of repositories that have access to a self-hosted runner group configured in an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/set-repo-access-to-self-hosted-runner-group-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * List of repository IDs that can access the runner group. + */ + selected_repository_ids: number[]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * + * Adds a repository to the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + * + * You must authenticate using an access token with the `admin:org` + * scope to use this endpoint. + */ + "actions/add-repo-access-to-self-hosted-runner-group-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + repository_id: components["parameters"]["repository_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * + * Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/remove-repo-access-to-self-hosted-runner-group-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + repository_id: components["parameters"]["repository_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * Lists self-hosted runners that are in a specific organization group. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/list-self-hosted-runners-in-group-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + runners?: components["schemas"]["runner"][]; + }; + }; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * Replaces the list of self-hosted runners that are part of an organization runner group. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/set-self-hosted-runners-in-group-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * List of runner IDs to add to the runner group. + */ + runners: number[]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * + * Adds a self-hosted runner to a runner group configured in an organization. + * + * You must authenticate using an access token with the `admin:org` + * scope to use this endpoint. + */ + "actions/add-self-hosted-runner-to-group-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + runner_id: components["parameters"]["runner_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * The self-hosted runner groups REST API is available with GitHub Enterprise Cloud. For more information, see "[GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products)." + * + * + * Removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/remove-self-hosted-runner-from-group-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_group_id: components["parameters"]["runner_group_id"]; + runner_id: components["parameters"]["runner_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists all self-hosted runners configured in an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/list-self-hosted-runners-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + runners?: components["schemas"]["runner"][]; + }; + }; + }; + }; + /** + * Lists binaries for the runner application that you can download and run. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/list-runner-applications-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["runner-application"][]; + }; + }; + }; + /** + * Returns a token that you can pass to the `config` script. The token expires after one hour. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * #### Example using registration token + * + * Configure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint. + * + * ``` + * ./config.sh --url https://github.com/octo-org --token TOKEN + * ``` + */ + "actions/create-registration-token-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["authentication-token"]; + }; + }; + }; + /** + * Returns a token that you can pass to the `config` script to remove a self-hosted runner from an organization. The token expires after one hour. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * #### Example using remove token + * + * To remove your self-hosted runner from an organization, replace `TOKEN` with the remove token provided by this + * endpoint. + * + * ``` + * ./config.sh remove --token TOKEN + * ``` + */ + "actions/create-remove-token-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["authentication-token"]; + }; + }; + }; + /** + * Gets a specific self-hosted runner configured in an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/get-self-hosted-runner-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_id: components["parameters"]["runner_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["runner"]; + }; + }; + }; + /** + * Forces the removal of a self-hosted runner from an organization. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + "actions/delete-self-hosted-runner-from-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + runner_id: components["parameters"]["runner_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists all secrets available in an organization without revealing their encrypted values. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + "actions/list-org-secrets": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + secrets?: components["schemas"]["organization-actions-secret"][]; + }; + }; + }; + }; + /** + * Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + "actions/get-org-public-key": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["actions-public-key"]; + }; + }; + }; + /** + * Gets a single organization secret without revealing its encrypted value. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + "actions/get-org-secret": { + parameters: { + path: { + org: components["parameters"]["org"]; + secret_name: components["parameters"]["secret_name"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["organization-actions-secret"]; + }; + }; + }; + /** + * Creates or updates an organization secret with an encrypted value. Encrypt your secret using + * [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate using an access + * token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to + * use this endpoint. + * + * #### Example encrypting a secret using Node.js + * + * Encrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library. + * + * ``` + * const sodium = require('tweetsodium'); + * + * const key = "base64-encoded-public-key"; + * const value = "plain-text-secret"; + * + * // Convert the message and key to Uint8Array's (Buffer implements that interface) + * const messageBytes = Buffer.from(value); + * const keyBytes = Buffer.from(key, 'base64'); + * + * // Encrypt using LibSodium. + * const encryptedBytes = sodium.seal(messageBytes, keyBytes); + * + * // Base64 the encrypted secret + * const encrypted = Buffer.from(encryptedBytes).toString('base64'); + * + * console.log(encrypted); + * ``` + * + * + * #### Example encrypting a secret using Python + * + * Encrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/stable/public/#nacl-public-sealedbox) with Python 3. + * + * ``` + * from base64 import b64encode + * from nacl import encoding, public + * + * def encrypt(public_key: str, secret_value: str) -> str: + * """Encrypt a Unicode string using the public key.""" + * public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder()) + * sealed_box = public.SealedBox(public_key) + * encrypted = sealed_box.encrypt(secret_value.encode("utf-8")) + * return b64encode(encrypted).decode("utf-8") + * ``` + * + * #### Example encrypting a secret using C# + * + * Encrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package. + * + * ``` + * var secretValue = System.Text.Encoding.UTF8.GetBytes("mySecret"); + * var publicKey = Convert.FromBase64String("2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU="); + * + * var sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey); + * + * Console.WriteLine(Convert.ToBase64String(sealedPublicKeyBox)); + * ``` + * + * #### Example encrypting a secret using Ruby + * + * Encrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem. + * + * ```ruby + * require "rbnacl" + * require "base64" + * + * key = Base64.decode64("+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=") + * public_key = RbNaCl::PublicKey.new(key) + * + * box = RbNaCl::Boxes::Sealed.from_public_key(public_key) + * encrypted_secret = box.encrypt("my_secret") + * + * # Print the base64 encoded secret + * puts Base64.strict_encode64(encrypted_secret) + * ``` + */ + "actions/create-or-update-org-secret": { + parameters: { + path: { + org: components["parameters"]["org"]; + secret_name: components["parameters"]["secret_name"]; + }; + }; + requestBody: { + "application/json": { + /** + * Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get an organization public key](https://docs.github.com/rest/reference/actions#get-an-organization-public-key) endpoint. + */ + encrypted_value?: string; + /** + * ID of the key you used to encrypt the secret. + */ + key_id?: string; + /** + * Configures the access that repositories have to the organization secret. Can be one of: + * \- `all` - All repositories in an organization can access the secret. + * \- `private` - Private repositories in an organization can access the secret. + * \- `selected` - Only specific repositories can access the secret. + */ + visibility?: "all" | "private" | "selected"; + /** + * An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can manage the list of selected repositories using the [List selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret), [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret), and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. + */ + selected_repository_ids?: string[]; + }; + }; + responses: { + /** + * Response when creating a secret + */ + "201": unknown; + /** + * Response when updating a secret + */ + "204": never; + }; + }; + /** + * Deletes a secret in an organization using the secret name. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + "actions/delete-org-secret": { + parameters: { + path: { + org: components["parameters"]["org"]; + secret_name: components["parameters"]["secret_name"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists all repositories that have been selected when the `visibility` for repository access to a secret is set to `selected`. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + "actions/list-selected-repos-for-org-secret": { + parameters: { + path: { + org: components["parameters"]["org"]; + secret_name: components["parameters"]["secret_name"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + repositories?: components["schemas"]["minimal-repository"][]; + }; + }; + }; + }; + /** + * Replaces all repositories for an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + "actions/set-selected-repos-for-org-secret": { + parameters: { + path: { + org: components["parameters"]["org"]; + secret_name: components["parameters"]["secret_name"]; + }; + }; + requestBody: { + "application/json": { + /** + * An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the `visibility` is set to `selected`. You can add and remove individual repositories using the [Set selected repositories for an organization secret](https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret) and [Remove selected repository from an organization secret](https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret) endpoints. + */ + selected_repository_ids?: number[]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Adds a repository to an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + "actions/add-selected-repo-to-org-secret": { + parameters: { + path: { + org: components["parameters"]["org"]; + secret_name: components["parameters"]["secret_name"]; + repository_id: number; + }; + }; + responses: { + /** + * Response when repository was added to the selected list + */ + "204": never; + /** + * Response when visibility type is not set to selected + */ + "409": unknown; + }; + }; + /** + * Removes a repository from an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + "actions/remove-selected-repo-from-org-secret": { + parameters: { + path: { + org: components["parameters"]["org"]; + secret_name: components["parameters"]["secret_name"]; + repository_id: number; + }; + }; + responses: { + /** + * Response when repository was removed from the selected list + */ + "204": never; + /** + * Response when visibility type not set to selected + */ + "409": unknown; + }; + }; + /** + * List the users blocked by an organization. + */ + "orgs/list-blocked-users": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "415": unknown; + }; + }; + "orgs/check-blocked-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * If the user is blocked: + */ + "204": never; + /** + * If the user is not blocked: + */ + "404": { + "application/json": components["schemas"]["basic-error"]; + }; + }; + }; + "orgs/block-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "422": unknown; + }; + }; + "orgs/unblock-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Listing and deleting credential authorizations is available to organizations with GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products). + * + * An authenticated organization owner with the `read:org` scope can list all credential authorizations for an organization that uses SAML single sign-on (SSO). The credentials are either personal access tokens or SSH keys that organization members have authorized for the organization. For more information, see [About authentication with SAML single sign-on](https://help.github.com/en/articles/about-authentication-with-saml-single-sign-on). + */ + "orgs/list-saml-sso-authorizations": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["credential-authorization"][]; + }; + }; + }; + /** + * Listing and deleting credential authorizations is available to organizations with GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products). + * + * An authenticated organization owner with the `admin:org` scope can remove a credential authorization for an organization that uses SAML SSO. Once you remove someone's credential authorization, they will need to create a new personal access token or SSH key and authorize it for the organization they want to access. + */ + "orgs/remove-saml-sso-authorization": { + parameters: { + path: { + org: components["parameters"]["org"]; + credential_id: number; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + "activity/list-public-org-events": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["event"][]; + }; + }; + }; + "orgs/list-webhooks": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["org-hook"][]; + }; + "404": unknown; + }; + }; + /** + * Here's how you can create a hook that posts payloads in JSON format: + */ + "orgs/create-webhook": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * Must be passed as "web". + */ + name: string; + /** + * Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/rest/reference/orgs#create-hook-config-params). + */ + config: { + url: components["schemas"]["webhook-config-url"]; + content_type?: components["schemas"]["webhook-config-content-type"]; + secret?: components["schemas"]["webhook-config-secret"]; + insecure_ssl?: components["schemas"]["webhook-config-insecure-ssl"]; + username?: string; + password?: string; + }; + /** + * Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. + */ + events?: string[]; + /** + * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + */ + active?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["org-hook"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * Returns a webhook configured in an organization. To get only the webhook `config` properties, see "[Get a webhook configuration for an organization](/rest/reference/orgs#get-a-webhook-configuration-for-an-organization)." + */ + "orgs/get-webhook": { + parameters: { + path: { + org: components["parameters"]["org"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["org-hook"]; + }; + "404": unknown; + }; + }; + /** + * Updates a webhook configured in an organization. When you update a webhook, the `secret` will be overwritten. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. If you are only updating individual webhook `config` properties, use "[Update a webhook configuration for an organization](/rest/reference/orgs#update-a-webhook-configuration-for-an-organization)." + */ + "orgs/update-webhook": { + parameters: { + path: { + org: components["parameters"]["org"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/rest/reference/orgs#update-hook-config-params). + */ + config?: { + url: components["schemas"]["webhook-config-url"]; + content_type?: components["schemas"]["webhook-config-content-type"]; + secret?: components["schemas"]["webhook-config-secret"]; + insecure_ssl?: components["schemas"]["webhook-config-insecure-ssl"]; + }; + /** + * Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. + */ + events?: string[]; + /** + * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + */ + active?: boolean; + name?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["org-hook"]; + }; + "404": unknown; + "422": unknown; + }; + }; + "orgs/delete-webhook": { + parameters: { + path: { + org: components["parameters"]["org"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * Returns the webhook configuration for an organization. To get more information about the webhook, including the `active` state and `events`, use "[Get an organization webhook ](/rest/reference/orgs#get-an-organization-webhook)." + * + * Access tokens must have the `admin:org_hook` scope, and GitHub Apps must have the `organization_hooks:read` permission. + */ + "orgs/get-webhook-config-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + responses: { + /** + * Default response + */ + "200": { + "application/json": components["schemas"]["webhook-config"]; + }; + }; + }; + /** + * Updates the webhook configuration for an organization. To update more information about the webhook, including the `active` state and `events`, use "[Update an organization webhook ](/rest/reference/orgs#update-an-organization-webhook)." + * + * Access tokens must have the `admin:org_hook` scope, and GitHub Apps must have the `organization_hooks:write` permission. + */ + "orgs/update-webhook-config-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + requestBody: { + "application/json": { + url?: components["schemas"]["webhook-config-url"]; + content_type?: components["schemas"]["webhook-config-content-type"]; + secret?: components["schemas"]["webhook-config-secret"]; + insecure_ssl?: components["schemas"]["webhook-config-insecure-ssl"]; + }; + }; + responses: { + /** + * Default response + */ + "200": { + "application/json": components["schemas"]["webhook-config"]; + }; + }; + }; + /** + * This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the hook. + */ + "orgs/ping-webhook": { + parameters: { + path: { + org: components["parameters"]["org"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * Enables an authenticated GitHub App to find the organization's installation information. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/get-org-installation": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["installation"]; + }; + }; + }; + /** + * Lists all GitHub Apps in an organization. The installation count includes all GitHub Apps installed on repositories in the organization. You must be an organization owner with `admin:read` scope to use this endpoint. + */ + "orgs/list-app-installations": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + installations?: components["schemas"]["installation"][]; + }; + }; + }; + }; + /** + * Shows which type of GitHub user can interact with this organization and when the restriction expires. If there is no restrictions, you will see an empty response. + */ + "interactions/get-restrictions-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["interaction-limit-response"]; + }; + }; + }; + /** + * Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization. + */ + "interactions/set-restrictions-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": components["schemas"]["interaction-limit"]; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["interaction-limit-response"]; + }; + "422": unknown; + }; + }; + /** + * Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions. + */ + "interactions/remove-restrictions-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. + */ + "orgs/list-pending-invitations": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["organization-invitation"][]; + }; + "404": unknown; + }; + }; + /** + * Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + "orgs/create-invitation": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * **Required unless you provide `email`**. GitHub user ID for the person you are inviting. + */ + invitee_id?: number; + /** + * **Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user. + */ + email?: string; + /** + * Specify role for new member. Can be one of: + * \* `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. + * \* `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. + * \* `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. + */ + role?: "admin" | "direct_member" | "billing_manager"; + /** + * Specify IDs for the teams you want to invite new members to. + */ + team_ids?: number[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["organization-invitation"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * List all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner. + */ + "orgs/list-invitation-teams": { + parameters: { + path: { + org: components["parameters"]["org"]; + invitation_id: components["parameters"]["invitation_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team"][]; + }; + "404": unknown; + }; + }; + /** + * List issues in an organization assigned to the authenticated user. + * + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this + * reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by + * the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull + * request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + "issues/list-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + /** + * 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`: All issues the authenticated user can see, regardless of participation or creation + */ + filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + /** + * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + labels?: components["parameters"]["labels"]; + /** + * What to sort results by. Can be either `created`, `updated`, `comments`. + */ + sort?: "created" | "updated" | "comments"; + direction?: components["parameters"]["direction"]; + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue"][]; + }; + "404": unknown; + }; + }; + /** + * List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. + */ + "orgs/list-members": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + /** + * 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. + */ + filter?: "2fa_disabled" | "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. + */ + role?: "all" | "admin" | "member"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + /** + * Response if requester is not an organization member + */ + "302": never; + "422": unknown; + }; + }; + /** + * Check if a user is, publicly or privately, a member of the organization. + */ + "orgs/check-membership-for-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Response if requester is an organization member and user is a member + */ + "204": never; + /** + * Response if requester is not an organization member + */ + "302": never; + /** + * Response if requester is an organization member and user is not a member + */ + "404": unknown; + }; + }; + /** + * Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. + */ + "orgs/remove-member": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "403": unknown; + }; + }; + /** + * In order to get a user's membership with an organization, the authenticated user must be an organization member. + */ + "orgs/get-membership-for-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["org-membership"]; + }; + "403": unknown; + "404": unknown; + }; + }; + /** + * Only authenticated organization owners can add a member to the organization or update the member's role. + * + * * If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/rest/reference/orgs#get-organization-membership-for-a-user) will be `pending` until they accept the invitation. + * + * * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent. + * + * **Rate limits** + * + * To prevent abuse, the authenticated user is limited to 50 organization invitations per 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period. + */ + "orgs/set-membership-for-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + role?: "admin" | "member"; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["org-membership"]; + }; + "403": unknown; + "422": unknown; + }; + }; + /** + * In order to remove a user's membership with an organization, the authenticated user must be an organization owner. + * + * If the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases. + */ + "orgs/remove-membership-for-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Lists the most recent migrations. + */ + "migrations/list-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["migration"][]; + }; + }; + }; + /** + * Initiates the generation of a migration archive. + */ + "migrations/start-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * A list of arrays indicating which repositories should be migrated. + */ + repositories: string[]; + /** + * Indicates whether repositories should be locked (to prevent manipulation) while migrating data. + */ + lock_repositories?: boolean; + /** + * Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). + */ + exclude_attachments?: boolean; + exclude?: string[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["migration"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * Fetches the status of a migration. + * + * The `state` of a migration can be one of the following values: + * + * * `pending`, which means the migration hasn't started yet. + * * `exporting`, which means the migration is in progress. + * * `exported`, which means the migration finished successfully. + * * `failed`, which means the migration failed. + */ + "migrations/get-status-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + migration_id: components["parameters"]["migration_id"]; + }; + }; + responses: { + /** + * * `pending`, which means the migration hasn't started yet. + * * `exporting`, which means the migration is in progress. + * * `exported`, which means the migration finished successfully. + * * `failed`, which means the migration failed. + */ + "200": { + "application/json": components["schemas"]["migration"]; + }; + "404": unknown; + }; + }; + /** + * Fetches the URL to a migration archive. + */ + "migrations/download-archive-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + migration_id: components["parameters"]["migration_id"]; + }; + }; + responses: { + /** + * response + */ + "302": never; + "404": unknown; + }; + }; + /** + * Deletes a previous migration archive. Migration archives are automatically deleted after seven days. + */ + "migrations/delete-archive-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + migration_id: components["parameters"]["migration_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * Unlocks a repository that was locked for migration. You should unlock each migrated repository and [delete them](https://docs.github.com/rest/reference/repos#delete-a-repository) when the migration is complete and you no longer need the source data. + */ + "migrations/unlock-repo-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + migration_id: components["parameters"]["migration_id"]; + repo_name: components["parameters"]["repo_name"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * List all the repositories for this organization migration. + */ + "migrations/list-repos-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + migration_id: components["parameters"]["migration_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["minimal-repository"][]; + }; + "404": unknown; + }; + }; + /** + * List all users who are outside collaborators of an organization. + */ + "orgs/list-outside-collaborators": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + /** + * 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. + */ + filter?: "2fa_disabled" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + }; + }; + /** + * When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see "[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)". + */ + "orgs/convert-member-to-outside-collaborator": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * User is getting converted asynchronously + */ + "202": unknown; + /** + * User was converted + */ + "204": never; + /** + * response + */ + "403": { + "application/json": { message?: string; documentation_url?: string }; + }; + "404": unknown; + }; + }; + /** + * Removing a user from this list will remove them from all the organization's repositories. + */ + "orgs/remove-outside-collaborator": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + /** + * Response if user is a member of the organization + */ + "422": { + "application/json": { message?: string; documentation_url?: string }; + }; + }; + }; + /** + * Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + "projects/list-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + /** + * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project"][]; + }; + "422": unknown; + }; + }; + /** + * Creates an organization project board. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + "projects/create-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the project. + */ + name: string; + /** + * The description of the project. + */ + body?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["project"]; + }; + "401": unknown; + "403": unknown; + "404": unknown; + "410": unknown; + "422": unknown; + }; + }; + /** + * Members of an organization can choose to have their membership publicized or not. + */ + "orgs/list-public-members": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + }; + }; + "orgs/check-public-membership-for-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Response if user is a public member + */ + "204": never; + /** + * Response if user is not a public member + */ + "404": unknown; + }; + }; + /** + * The user can publicize their own membership. (A user cannot publicize the membership for another user.) + * + * Note that 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + "orgs/set-public-membership-for-authenticated-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "403": unknown; + }; + }; + "orgs/remove-public-membership-for-authenticated-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists repositories for the specified organization. + */ + "repos/list-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + /** + * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `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`. + */ + type?: + | "all" + | "public" + | "private" + | "forks" + | "sources" + | "member" + | "internal"; + /** + * Can be one of `created`, `updated`, `pushed`, `full_name`. + */ + sort?: "created" | "updated" | "pushed" | "full_name"; + /** + * Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc` + */ + direction?: "asc" | "desc"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["minimal-repository"][]; + }; + }; + }; + /** + * Creates a new repository in the specified organization. The authenticated user must be a member of the organization. + * + * **OAuth scope requirements** + * + * When using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: + * + * * `public_repo` scope or `repo` scope to create a public repository + * * `repo` scope to create a private repository + */ + "repos/create-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the repository. + */ + name: string; + /** + * A short description of the repository. + */ + description?: string; + /** + * A URL with more information about the repository. + */ + homepage?: string; + /** + * Either `true` to create a private repository or `false` to create a public one. + */ + private?: boolean; + /** + * 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`. 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. + */ + visibility?: "public" | "private" | "visibility" | "internal"; + /** + * Either `true` to enable issues for this repository or `false` to disable them. + */ + has_issues?: boolean; + /** + * 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_projects?: boolean; + /** + * Either `true` to enable the wiki for this repository or `false` to disable it. + */ + has_wiki?: boolean; + /** + * Either `true` to make this repo available as a template repository or `false` to prevent it. + */ + is_template?: boolean; + /** + * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. + */ + team_id?: number; + /** + * Pass `true` to create an initial commit with empty README. + */ + auto_init?: boolean; + /** + * 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". + */ + gitignore_template?: string; + /** + * 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". + */ + license_template?: string; + /** + * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. + */ + allow_squash_merge?: boolean; + /** + * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. + */ + allow_merge_commit?: boolean; + /** + * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. + */ + allow_rebase_merge?: boolean; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["repository"]; + }; + "403": unknown; + "422": unknown; + }; + }; + /** + * Gets the summary of the free and paid GitHub Actions minutes used. + * + * Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". + * + * Access tokens must have the `read:org` scope. + */ + "billing/get-github-actions-billing-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["actions-billing-usage"]; + }; + }; + }; + /** + * Gets the free and paid storage usued for GitHub Packages in gigabytes. + * + * Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." + * + * Access tokens must have the `read:org` scope. + */ + "billing/get-github-packages-billing-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["packages-billing-usage"]; + }; + }; + }; + /** + * Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages. + * + * Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." + * + * Access tokens must have the `read:org` scope. + */ + "billing/get-shared-storage-billing-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["combined-billing-usage"]; + }; + }; + }; + /** + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * List IdP groups available in an organization. You can limit your page results using the `per_page` parameter. GitHub generates a url-encoded `page` token using a cursor value for where the next page begins. For more information on cursor pagination, see "[Offset and Cursor Pagination explained](https://dev.to/jackmarchant/offset-and-cursor-pagination-explained-b89)." + * + * The `per_page` parameter provides pagination for a list of IdP groups the authenticated user can access in an organization. For example, if the user `octocat` wants to see two groups per page in `octo-org` via cURL, it would look like this: + */ + "teams/list-idp-groups-for-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["group-mapping"]; + }; + }; + }; + /** + * Lists all teams in an organization that are visible to the authenticated user. + */ + "teams/list": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team"][]; + }; + "403": unknown; + }; + }; + /** + * To create a team, the authenticated user must be a member or owner of `{org}`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see "[Setting team creation permissions](https://help.github.com/en/articles/setting-team-creation-permissions-in-your-organization)." + * + * When you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of `maintainers`. For more information, see "[About teams](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-teams)". + */ + "teams/create": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the team. + */ + name: string; + /** + * The description of the team. + */ + description?: string; + /** + * List GitHub IDs for organization members who will become team maintainers. + */ + maintainers?: string[]; + /** + * The full name (e.g., "organization-name/repository-name") of repositories to add the team to. + */ + repo_names?: string[]; + /** + * 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` + */ + privacy?: "secret" | "closed"; + /** + * **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. + */ + permission?: "pull" | "push" | "admin"; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["team-full"]; + }; + "403": unknown; + "422": unknown; + }; + }; + /** + * Gets a team using the team's `slug`. GitHub generates the `slug` from the team `name`. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}`. + */ + "teams/get-by-name": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-full"]; + }; + "404": unknown; + }; + }; + /** + * To edit a team, the authenticated user must either be an organization owner or a team maintainer. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}`. + */ + "teams/update-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the team. + */ + name: string; + /** + * The description of the team. + */ + description?: string; + /** + * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. 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. + */ + privacy?: "secret" | "closed"; + /** + * **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. + */ + permission?: "pull" | "push" | "admin"; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["team-full"]; + }; + }; + }; + /** + * To delete a team, the authenticated user must be an organization owner or team maintainer. + * + * If you are an organization owner, deleting a parent team will delete all of its child teams as well. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}`. + */ + "teams/delete-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`. + */ + "teams/list-discussions-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + query: { + direction?: components["parameters"]["direction"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion"][]; + }; + }; + }; + /** + * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`. + */ + "teams/create-discussion-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + }; + requestBody: { + "application/json": { + /** + * The discussion post's title. + */ + title: string; + /** + * The discussion post's body text. + */ + body: string; + /** + * 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. + */ + private?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["team-discussion"]; + }; + }; + }; + /** + * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`. + */ + "teams/get-discussion-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion"]; + }; + }; + }; + /** + * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`. + */ + "teams/update-discussion-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The discussion post's title. + */ + title?: string; + /** + * The discussion post's body text. + */ + body?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion"]; + }; + }; + }; + /** + * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`. + */ + "teams/delete-discussion-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`. + */ + "teams/list-discussion-comments-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + query: { + direction?: components["parameters"]["direction"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion-comment"][]; + }; + }; + }; + /** + * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`. + */ + "teams/create-discussion-comment-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The discussion comment's body text. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["team-discussion-comment"]; + }; + }; + }; + /** + * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. + */ + "teams/get-discussion-comment-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion-comment"]; + }; + }; + }; + /** + * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. + */ + "teams/update-discussion-comment-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The discussion comment's body text. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion-comment"]; + }; + }; + }; + /** + * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. + */ + "teams/delete-discussion-comment-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * List the reactions to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments/). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. + */ + "reactions/list-for-team-discussion-comment-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + }; + query: { + /** + * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["reaction"][]; + }; + }; + }; + /** + * Create a reaction to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. + */ + "reactions/create-for-team-discussion-comment-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion comment. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["reaction"]; + }; + }; + }; + /** + * **Note:** You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id`. + * + * Delete a reaction to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "reactions/delete-for-team-discussion-comment": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + reaction_id: components["parameters"]["reaction-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * List the reactions to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. + */ + "reactions/list-for-team-discussion-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + query: { + /** + * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["reaction"][]; + }; + }; + }; + /** + * Create a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. + */ + "reactions/create-for-team-discussion-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["reaction"]; + }; + }; + }; + /** + * **Note:** You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id`. + * + * Delete a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "reactions/delete-for-team-discussion": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + discussion_number: components["parameters"]["discussion-number"]; + reaction_id: components["parameters"]["reaction-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/invitations`. + */ + "teams/list-pending-invitations-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["organization-invitation"][]; + }; + }; + }; + /** + * Team members will include the members of child teams. + * + * To list members in a team, the team must be visible to the authenticated user. + */ + "teams/list-members-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + query: { + /** + * 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. + */ + role?: "member" | "maintainer" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + }; + }; + /** + * Team members will include the members of child teams. + * + * To get a user's membership with a team, the team must be visible to the authenticated user. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/memberships/{username}`. + * + * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/rest/reference/teams#create-a-team). + */ + "teams/get-membership-for-user-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-membership"]; + }; + /** + * Response if user has no team membership + */ + "404": unknown; + }; + }; + /** + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * An organization owner can add someone who is not part of the team's organization to a team. When an organization owner adds someone to a team who is not an organization member, this endpoint will send an invitation to the person via email. This newly-created membership will be in the "pending" state until the person accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. + * + * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/memberships/{username}`. + */ + "teams/add-or-update-membership-for-user-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + username: components["parameters"]["username"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + role?: "member" | "maintainer"; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-membership"]; + }; + /** + * Response if team synchronization is set up + */ + "403": unknown; + /** + * Response if you attempt to add an organization to a team + */ + "422": { + "application/json": { + message?: string; + errors?: { code?: string; field?: string; resource?: string }[]; + }; + }; + }; + }; + /** + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/memberships/{username}`. + */ + "teams/remove-membership-for-user-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + /** + * Response if team synchronization is set up + */ + "403": unknown; + }; + }; + /** + * Lists the organization projects for a team. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects`. + */ + "teams/list-projects-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-project"][]; + }; + }; + }; + /** + * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects/{project_id}`. + */ + "teams/check-permissions-for-project-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + project_id: components["parameters"]["project-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-project"]; + }; + /** + * Response if project is not managed by this team + */ + "404": unknown; + }; + }; + /** + * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/projects/{project_id}`. + */ + "teams/add-or-update-project-permissions-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + project_id: components["parameters"]["project-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + permission?: "read" | "write" | "admin"; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + /** + * Response if the project is not owned by the organization + */ + "403": { + "application/json": { message?: string; documentation_url?: string }; + }; + }; + }; + /** + * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. This endpoint removes the project from the team, but does not delete the project. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/projects/{project_id}`. + */ + "teams/remove-project-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + project_id: components["parameters"]["project-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists a team's repositories visible to the authenticated user. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos`. + */ + "teams/list-repos-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["minimal-repository"][]; + }; + }; + }; + /** + * Checks whether a team has `admin`, `push`, `maintain`, `triage`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked. + * + * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `application/vnd.github.v3.repository+json` accept header. + * + * If a team doesn't have permission for the repository, you will receive a `404 Not Found` response status. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`. + */ + "teams/check-permissions-for-repo-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Alternative response with repository permissions + */ + "200": { + "application/vnd.github.v3.repository+json": components["schemas"]["team-repository"]; + }; + /** + * Response if team has permission for the repository + */ + "204": never; + /** + * Response if team does not have permission for the repository + */ + "404": unknown; + }; + }; + /** + * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. 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/rest/overview/resources-in-the-rest-api#http-verbs)." + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`. + * + * For more information about the permission levels, see "[Repository permission levels for an organization](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)". + */ + "teams/add-or-update-repo-permissions-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + * \* `maintain` - team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations. + * \* `triage` - team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations. + * + * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. + */ + permission?: "pull" | "push" | "admin" | "maintain" | "triage"; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. This does not delete the repository, it just removes it from the team. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`. + */ + "teams/remove-repo-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * List IdP groups connected to a team on GitHub. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/team-sync/group-mappings`. + */ + "teams/list-idp-groups-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["group-mapping"]; + }; + }; + }; + /** + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Creates, updates, or removes a connection between a team and an IdP group. When adding groups to a team, you must include all new and existing groups to avoid replacing existing groups with the new ones. Specifying an empty `groups` array will remove all connections for a team. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/team-sync/group-mappings`. + */ + "teams/create-or-update-idp-group-connections-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + }; + requestBody: { + "application/json": { + /** + * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. + */ + groups: { + /** + * ID of the IdP group. + */ + group_id: string; + /** + * Name of the IdP group. + */ + group_name: string; + /** + * Description of the IdP group. + */ + group_description: string; + }[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["group-mapping"]; + }; + }; + }; + /** + * Lists the child teams of the team specified by `{team_slug}`. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/teams`. + */ + "teams/list-child-in-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + team_slug: components["parameters"]["team_slug"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * Response if child teams exist + */ + "200": { + "application/json": components["schemas"]["team"][]; + }; + }; + }; + "projects/get-card": { + parameters: { + path: { + card_id: components["parameters"]["card_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project-card"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + "projects/update-card": { + parameters: { + path: { + card_id: components["parameters"]["card_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The project card's note + */ + note?: string | null; + /** + * Whether or not the card is archived + */ + archived?: boolean; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project-card"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + "projects/delete-card": { + parameters: { + path: { + card_id: components["parameters"]["card_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + /** + * Forbidden + */ + "403": { + "application/json": { + message?: string; + documentation_url?: string; + errors?: string[]; + }; + }; + "404": unknown; + }; + }; + "projects/move-card": { + parameters: { + path: { + card_id: components["parameters"]["card_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The position of the card in a column + */ + position: string; + /** + * The unique identifier of the column the card should be moved to + */ + column_id?: number; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": { [key: string]: any }; + }; + "304": never; + "401": unknown; + /** + * Forbidden + */ + "403": { + "application/json": { + message?: string; + documentation_url?: string; + errors?: { + code?: string; + message?: string; + resource?: string; + field?: string; + }[]; + }; + }; + "422": unknown; + /** + * Service Unavailable + */ + "503": { + "application/json": { + code?: string; + message?: string; + documentation_url?: string; + errors?: { code?: string; message?: string }[]; + }; + }; + }; + }; + "projects/get-column": { + parameters: { + path: { + column_id: components["parameters"]["column_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project-column"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + "projects/update-column": { + parameters: { + path: { + column_id: components["parameters"]["column_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * Name of the project column + */ + name: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project-column"]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + "projects/delete-column": { + parameters: { + path: { + column_id: components["parameters"]["column_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + "projects/list-cards": { + parameters: { + path: { + column_id: components["parameters"]["column_id"]; + }; + query: { + /** + * Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`. + */ + archived_state?: "all" | "archived" | "not_archived"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project-card"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. + * + * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + "projects/create-card": { + parameters: { + path: { + column_id: components["parameters"]["column_id"]; + }; + }; + requestBody: { + "application/json": + | { + /** + * The project card's note + */ + note: string | null; + } + | { + /** + * The unique identifier of the content associated with the card + */ + content_id: number; + /** + * The piece of content associated with the card + */ + content_type: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["project-card"]; + }; + "304": never; + "401": unknown; + "403": unknown; + /** + * Validation Failed + */ + "422": { + "application/json": + | components["schemas"]["validation-error"] + | components["schemas"]["validation-error-simple"]; + }; + /** + * Service Unavailable + */ + "503": { + "application/json": { + code?: string; + message?: string; + documentation_url?: string; + errors?: { code?: string; message?: string }[]; + }; + }; + }; + }; + "projects/move-column": { + parameters: { + path: { + column_id: components["parameters"]["column_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The position of the column in a project + */ + position: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": { [key: string]: any }; + }; + "304": never; + "401": unknown; + "403": unknown; + "422": unknown; + }; + }; + /** + * Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + "projects/get": { + parameters: { + path: { + project_id: components["parameters"]["project-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project"]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + "projects/update": { + parameters: { + path: { + project_id: components["parameters"]["project-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * Name of the project + */ + name?: string; + /** + * Body of the project + */ + body?: string | null; + /** + * State of the project; either 'open' or 'closed' + */ + state?: string; + /** + * The baseline permission that all organization members have on this project + */ + organization_permission?: "read" | "write" | "admin" | "none"; + /** + * Whether or not this project can be seen by everyone. + */ + private?: boolean; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project"]; + }; + "304": never; + "401": unknown; + /** + * Forbidden + */ + "403": { + "application/json": { + message?: string; + documentation_url?: string; + errors?: string[]; + }; + }; + /** + * Response if the authenticated user does not have access to the project + */ + "404": unknown; + "410": unknown; + "422": unknown; + }; + }; + /** + * Deletes a project board. Returns a `404 Not Found` status if projects are disabled. + */ + "projects/delete": { + parameters: { + path: { + project_id: components["parameters"]["project-id"]; + }; + }; + responses: { + /** + * Delete Success + */ + "204": never; + "304": never; + "401": unknown; + /** + * Forbidden + */ + "403": { + "application/json": { + message?: string; + documentation_url?: string; + errors?: string[]; + }; + }; + "404": unknown; + "410": unknown; + }; + }; + /** + * Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators. + */ + "projects/list-collaborators": { + parameters: { + path: { + project_id: components["parameters"]["project-id"]; + }; + query: { + /** + * 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. + */ + affiliation?: "outside" | "direct" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * Adds a collaborator to an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator. + */ + "projects/add-collaborator": { + parameters: { + path: { + project_id: components["parameters"]["project-id"]; + username: components["parameters"]["username"]; + }; + }; + requestBody: { + "application/json": { + /** + * The permission to grant the collaborator. + */ + permission?: "read" | "write" | "admin"; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator. + */ + "projects/remove-collaborator": { + parameters: { + path: { + project_id: components["parameters"]["project-id"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level. + */ + "projects/get-permission-for-user": { + parameters: { + path: { + project_id: components["parameters"]["project-id"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["repository-collaborator-permission"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "415": unknown; + "422": unknown; + }; + }; + "projects/list-columns": { + parameters: { + path: { + project_id: components["parameters"]["project-id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project-column"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + "projects/create-column": { + parameters: { + path: { + project_id: components["parameters"]["project-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * Name of the project column + */ + name: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["project-column"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "422": unknown; + }; + }; + /** + * **Note:** Accessing this endpoint does not count against your REST API rate limit. + * + * **Note:** The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. + */ + "rate-limit/get": { + parameters: {}; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["rate-limit-overview"]; + }; + "304": never; + "404": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Reactions API. We recommend migrating your existing code to use the new delete reactions endpoints. For more information, see this [blog post](https://developer.github.com/changes/2020-02-26-new-delete-reactions-endpoints/). + * + * OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://docs.github.com/rest/reference/teams#discussions) or [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). + */ + "reactions/delete-legacy": { + parameters: { + path: { + reaction_id: components["parameters"]["reaction-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "410": unknown; + "415": unknown; + }; + }; + /** + * When you pass the `scarlet-witch-preview` media type, requests to get a repository will also return the repository's code of conduct if it can be detected from the repository's code of conduct file. + * + * The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network. + */ + "repos/get": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["full-repository"]; + }; + "301": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/reference/repos#replace-all-repository-topics) endpoint. + */ + "repos/update": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the repository. + */ + name?: string; + /** + * A short description of the repository. + */ + description?: string; + /** + * A URL with more information about the repository. + */ + homepage?: string; + /** + * 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. + */ + private?: boolean; + /** + * 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. + */ + visibility?: "public" | "private" | "visibility" | "internal"; + /** + * Either `true` to enable issues for this repository or `false` to disable them. + */ + has_issues?: boolean; + /** + * 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_projects?: boolean; + /** + * Either `true` to enable the wiki for this repository or `false` to disable it. + */ + has_wiki?: boolean; + /** + * Either `true` to make this repo available as a template repository or `false` to prevent it. + */ + is_template?: boolean; + /** + * Updates the default branch for this repository. + */ + default_branch?: string; + /** + * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. + */ + allow_squash_merge?: boolean; + /** + * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. + */ + allow_merge_commit?: boolean; + /** + * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. + */ + allow_rebase_merge?: boolean; + /** + * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. + */ + delete_branch_on_merge?: boolean; + /** + * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API. + */ + archived?: boolean; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["full-repository"]; + }; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required. + * + * If an organization owner has configured the organization to prevent members from deleting organization-owned + * repositories, you will get a `403 Forbidden` response. + */ + "repos/delete": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + /** + * If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response: + */ + "403": { + "application/json": { message?: string; documentation_url?: string }; + }; + "404": unknown; + }; + }; + /** + * Lists all artifacts for a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/list-artifacts-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + artifacts?: components["schemas"]["artifact"][]; + }; + }; + }; + }; + /** + * Gets a specific artifact for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/get-artifact": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + artifact_id: components["parameters"]["artifact_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["artifact"]; + }; + }; + }; + /** + * Deletes an artifact for a workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + "actions/delete-artifact": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + artifact_id: components["parameters"]["artifact_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for `Location:` in + * the response header to find the URL for the download. The `:archive_format` must be `zip`. Anyone with read access to + * the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. + * GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/download-artifact": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + artifact_id: components["parameters"]["artifact_id"]; + archive_format: string; + }; + }; + responses: { + /** + * response + */ + "302": never; + }; + }; + /** + * Gets a specific job in a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/get-job-for-workflow-run": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + job_id: components["parameters"]["job_id"]; + }; + }; + responses: { + /** + * response + */ + "202": { + "application/json": components["schemas"]["job"]; + }; + }; + }; + /** + * Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look + * for `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can + * use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must + * have the `actions:read` permission to use this endpoint. + */ + "actions/download-job-logs-for-workflow-run": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + job_id: components["parameters"]["job_id"]; + }; + }; + responses: { + /** + * response + */ + "302": never; + }; + }; + /** + * Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions allowed to run in the repository. + * + * You must authenticate using an access token with the `repo` scope to use this + * endpoint. GitHub Apps must have the `administration` repository permission to use this API. + */ + "actions/get-github-actions-permissions-repository": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["actions-repository-permissions"]; + }; + }; + }; + /** + * Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions in the repository. + * + * If the repository belongs to an organization or enterprise that has set restrictive permissions at the organization or enterprise levels, such as `allowed_actions` to `selected` actions, then you cannot override them for the repository. + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API. + */ + "actions/set-github-actions-permissions-repository": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + enabled: components["schemas"]["actions-enabled"]; + allowed_actions?: components["schemas"]["allowed-actions"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Gets the settings for selected actions that are allowed in a repository. To use this endpoint, the repository policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)." + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API. + */ + "actions/get-allowed-actions-repository": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["selected-actions"]; + }; + }; + }; + /** + * Sets the actions that are allowed in a repository. To use this endpoint, the repository permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)." + * + * If the repository belongs to an organization or enterprise that has `selected` actions set at the organization or enterprise levels, then you cannot override any of the allowed actions settings. + * + * To use the `patterns_allowed` setting for private repositories, the repository must belong to an enterprise. If the repository does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories. + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API. + */ + "actions/set-allowed-actions-repository": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": components["schemas"]["selected-actions"]; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists all self-hosted runners configured in a repository. You must authenticate using an access token with the `repo` scope to use this endpoint. + */ + "actions/list-self-hosted-runners-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + runners?: components["schemas"]["runner"][]; + }; + }; + }; + }; + /** + * Lists binaries for the runner application that you can download and run. + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. + */ + "actions/list-runner-applications-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["runner-application"][]; + }; + }; + }; + /** + * Returns a token that you can pass to the `config` script. The token expires after one hour. You must authenticate + * using an access token with the `repo` scope to use this endpoint. + * + * #### Example using registration token + * + * Configure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint. + * + * ``` + * ./config.sh --url https://github.com/octo-org/octo-repo-artifacts --token TOKEN + * ``` + */ + "actions/create-registration-token-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["authentication-token"]; + }; + }; + }; + /** + * Returns a token that you can pass to remove a self-hosted runner from a repository. The token expires after one hour. + * You must authenticate using an access token with the `repo` scope to use this endpoint. + * + * #### Example using remove token + * + * To remove your self-hosted runner from a repository, replace TOKEN with the remove token provided by this endpoint. + * + * ``` + * ./config.sh remove --token TOKEN + * ``` + */ + "actions/create-remove-token-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["authentication-token"]; + }; + }; + }; + /** + * Gets a specific self-hosted runner configured in a repository. + * + * You must authenticate using an access token with the `repo` scope to use this + * endpoint. + */ + "actions/get-self-hosted-runner-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + runner_id: components["parameters"]["runner_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["runner"]; + }; + }; + }; + /** + * Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. + * + * You must authenticate using an access token with the `repo` + * scope to use this endpoint. + */ + "actions/delete-self-hosted-runner-from-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + runner_id: components["parameters"]["runner_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). + * + * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/list-workflow-runs-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + actor?: components["parameters"]["actor"]; + branch?: components["parameters"]["workflow-run-branch"]; + event?: components["parameters"]["event"]; + status?: components["parameters"]["workflow-run-status"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + workflow_runs?: components["schemas"]["workflow-run"][]; + }; + }; + }; + }; + /** + * Gets a specific workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/get-workflow-run": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + run_id: components["parameters"]["run-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["workflow-run"]; + }; + }; + }; + /** + * Delete a specific workflow run. Anyone with write access to the repository can use this endpoint. If the repository is + * private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:write` permission to use + * this endpoint. + */ + "actions/delete-workflow-run": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + run_id: components["parameters"]["run-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists artifacts for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/list-workflow-run-artifacts": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + run_id: components["parameters"]["run-id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + artifacts?: components["schemas"]["artifact"][]; + }; + }; + }; + }; + /** + * Cancels a workflow run using its `id`. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + "actions/cancel-workflow-run": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + run_id: components["parameters"]["run-id"]; + }; + }; + responses: { + /** + * response + */ + "202": unknown; + }; + }; + /** + * Lists jobs for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). + */ + "actions/list-jobs-for-workflow-run": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + run_id: components["parameters"]["run-id"]; + }; + query: { + /** + * Filters jobs by their `completed_at` timestamp. Can be one of: + * \* `latest`: Returns jobs from the most recent execution of the workflow run. + * \* `all`: Returns all jobs for a workflow run, including from old executions of the workflow run. + */ + filter?: "latest" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + jobs?: components["schemas"]["job"][]; + }; + }; + }; + }; + /** + * Gets a redirect URL to download an archive of log files for a workflow run. This link expires after 1 minute. Look for + * `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can use + * this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have + * the `actions:read` permission to use this endpoint. + */ + "actions/download-workflow-run-logs": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + run_id: components["parameters"]["run-id"]; + }; + }; + responses: { + /** + * response + */ + "302": never; + }; + }; + /** + * Deletes all logs for a workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + "actions/delete-workflow-run-logs": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + run_id: components["parameters"]["run-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Re-runs your workflow run using its `id`. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + "actions/re-run-workflow": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + run_id: components["parameters"]["run-id"]; + }; + }; + responses: { + /** + * response + */ + "201": unknown; + }; + }; + /** + * **Warning:** This GitHub Actions usage endpoint is currently in public beta and subject to change. For more information, see "[GitHub Actions API workflow usage](https://developer.github.com/changes/2020-05-15-actions-api-workflow-usage)." + * + * Gets the number of billable minutes and total run time for a specific workflow run. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". + * + * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/get-workflow-run-usage": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + run_id: components["parameters"]["run-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["workflow-run-usage"]; + }; + }; + }; + /** + * Lists all secrets available in a repository without revealing their encrypted values. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use this endpoint. + */ + "actions/list-repo-secrets": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + secrets?: components["schemas"]["actions-secret"][]; + }; + }; + }; + }; + /** + * Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `secrets` repository permission to use this endpoint. + */ + "actions/get-repo-public-key": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["actions-public-key"]; + }; + }; + }; + /** + * Gets a single repository secret without revealing its encrypted value. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use this endpoint. + */ + "actions/get-repo-secret": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + secret_name: components["parameters"]["secret_name"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["actions-secret"]; + }; + }; + }; + /** + * Creates or updates a repository secret with an encrypted value. Encrypt your secret using + * [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate using an access + * token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use + * this endpoint. + * + * #### Example encrypting a secret using Node.js + * + * Encrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library. + * + * ``` + * const sodium = require('tweetsodium'); + * + * const key = "base64-encoded-public-key"; + * const value = "plain-text-secret"; + * + * // Convert the message and key to Uint8Array's (Buffer implements that interface) + * const messageBytes = Buffer.from(value); + * const keyBytes = Buffer.from(key, 'base64'); + * + * // Encrypt using LibSodium. + * const encryptedBytes = sodium.seal(messageBytes, keyBytes); + * + * // Base64 the encrypted secret + * const encrypted = Buffer.from(encryptedBytes).toString('base64'); + * + * console.log(encrypted); + * ``` + * + * + * #### Example encrypting a secret using Python + * + * Encrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/stable/public/#nacl-public-sealedbox) with Python 3. + * + * ``` + * from base64 import b64encode + * from nacl import encoding, public + * + * def encrypt(public_key: str, secret_value: str) -> str: + * """Encrypt a Unicode string using the public key.""" + * public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder()) + * sealed_box = public.SealedBox(public_key) + * encrypted = sealed_box.encrypt(secret_value.encode("utf-8")) + * return b64encode(encrypted).decode("utf-8") + * ``` + * + * #### Example encrypting a secret using C# + * + * Encrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package. + * + * ``` + * var secretValue = System.Text.Encoding.UTF8.GetBytes("mySecret"); + * var publicKey = Convert.FromBase64String("2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU="); + * + * var sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey); + * + * Console.WriteLine(Convert.ToBase64String(sealedPublicKeyBox)); + * ``` + * + * #### Example encrypting a secret using Ruby + * + * Encrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem. + * + * ```ruby + * require "rbnacl" + * require "base64" + * + * key = Base64.decode64("+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=") + * public_key = RbNaCl::PublicKey.new(key) + * + * box = RbNaCl::Boxes::Sealed.from_public_key(public_key) + * encrypted_secret = box.encrypt("my_secret") + * + * # Print the base64 encoded secret + * puts Base64.strict_encode64(encrypted_secret) + * ``` + */ + "actions/create-or-update-repo-secret": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + secret_name: components["parameters"]["secret_name"]; + }; + }; + requestBody: { + "application/json": { + /** + * Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get a repository public key](https://docs.github.com/rest/reference/actions#get-a-repository-public-key) endpoint. + */ + encrypted_value?: string; + /** + * ID of the key you used to encrypt the secret. + */ + key_id?: string; + }; + }; + responses: { + /** + * Response when creating a secret + */ + "201": unknown; + /** + * Response when updating a secret + */ + "204": never; + }; + }; + /** + * Deletes a secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use this endpoint. + */ + "actions/delete-repo-secret": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + secret_name: components["parameters"]["secret_name"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists the workflows in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/list-repo-workflows": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + workflows?: components["schemas"]["workflow"][]; + }; + }; + }; + }; + /** + * Gets a specific workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/get-workflow": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + workflow_id: components["parameters"]["workflow-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["workflow"]; + }; + }; + }; + /** + * Disables a workflow and sets the `state` of the workflow to `disabled_manually`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + "actions/disable-workflow": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + workflow_id: components["parameters"]["workflow-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. + * + * You must configure your GitHub Actions workflow to run when the [`workflow_dispatch` webhook](/developers/webhooks-and-events/webhook-events-and-payloads#workflow_dispatch) event occurs. The `inputs` are configured in the workflow file. For more information about how to configure the `workflow_dispatch` event in the workflow file, see "[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#workflow_dispatch)." + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. For more information, see "[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line)." + */ + "actions/create-workflow-dispatch": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + workflow_id: components["parameters"]["workflow-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The git reference for the workflow. The reference can be a branch or tag name. + */ + ref: string; + /** + * Input keys and values configured in the workflow file. The maximum number of properties is 10. Any default properties configured in the workflow file will be used when `inputs` are omitted. + */ + inputs?: { [key: string]: string }; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Enables a workflow and sets the `state` of the workflow to `active`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + "actions/enable-workflow": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + workflow_id: components["parameters"]["workflow-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). + * + * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. + */ + "actions/list-workflow-runs": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + workflow_id: components["parameters"]["workflow-id"]; + }; + query: { + actor?: components["parameters"]["actor"]; + branch?: components["parameters"]["workflow-run-branch"]; + event?: components["parameters"]["event"]; + status?: components["parameters"]["workflow-run-status"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + workflow_runs?: components["schemas"]["workflow-run"][]; + }; + }; + }; + }; + /** + * **Warning:** This GitHub Actions usage endpoint is currently in public beta and subject to change. For more information, see "[GitHub Actions API workflow usage](https://developer.github.com/changes/2020-05-15-actions-api-workflow-usage)." + * + * Gets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". + * + * You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + "actions/get-workflow-usage": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + workflow_id: components["parameters"]["workflow-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["workflow-usage"]; + }; + }; + }; + /** + * Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. + */ + "issues/list-assignees": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "404": unknown; + }; + }; + /** + * Checks if a user has permission to be assigned to an issue in this repository. + * + * If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned. + * + * Otherwise a `404` status code is returned. + */ + "issues/check-user-can-be-assigned": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + assignee: string; + }; + }; + responses: { + /** + * If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned. + */ + "204": never; + /** + * Otherwise a `404` status code is returned. + */ + "404": { + "application/json": components["schemas"]["basic-error"]; + }; + }; + }; + /** + * Enables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)". + */ + "repos/enable-automated-security-fixes": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Disables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)". + */ + "repos/disable-automated-security-fixes": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + "repos/list-branches": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. + */ + protected?: boolean; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["short-branch"][]; + }; + "404": unknown; + }; + }; + "repos/get-branch": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["branch-with-protection"]; + }; + "404": unknown; + "415": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/get-branch-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["branch-protection"]; + }; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Protecting a branch requires admin or owner permissions to the repository. + * + * **Note**: Passing new arrays of `users` and `teams` replaces their previous values. + * + * **Note**: The list of users, apps, and teams in total is limited to 100 items. + */ + "repos/update-branch-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * Require status checks to pass before merging. Set to `null` to disable. + */ + required_status_checks: { + /** + * Require branches to be up to date before merging. + */ + strict: boolean; + /** + * The list of status checks to require in order to merge into this branch + */ + contexts: string[]; + } | null; + /** + * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. + */ + enforce_admins: boolean | null; + /** + * Require at least one approving review on a pull request, before merging. Set to `null` to disable. + */ + required_pull_request_reviews: { + /** + * 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. + */ + dismissal_restrictions?: { + /** + * The list of user `login`s with dismissal access + */ + users?: string[]; + /** + * The list of team `slug`s with dismissal access + */ + teams?: string[]; + }; + /** + * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. + */ + dismiss_stale_reviews?: boolean; + /** + * Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) review them. + */ + require_code_owner_reviews?: boolean; + /** + * Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6. + */ + required_approving_review_count?: number; + } | null; + /** + * 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. + */ + restrictions: { + /** + * The list of user `login`s with push access + */ + users: string[]; + /** + * The list of team `slug`s with push access + */ + teams: string[]; + /** + * The list of app `slug`s with push access + */ + apps?: string[]; + } | null; + /** + * 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. + */ + required_linear_history?: boolean; + /** + * 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_force_pushes?: boolean | null; + /** + * 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. + */ + allow_deletions?: boolean; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["protected-branch"]; + }; + "403": unknown; + "404": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/delete-branch-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "403": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/get-admin-branch-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["protected-branch-admin-enforced"]; + }; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. + */ + "repos/set-admin-branch-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["protected-branch-admin-enforced"]; + }; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. + */ + "repos/delete-admin-branch-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * No Content + */ + "204": never; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/get-pull-request-review-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/vnd.github.luke-cage-preview+json": components["schemas"]["protected-branch-pull-request-review"]; + }; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled. + * + * **Note**: Passing new arrays of `users` and `teams` replaces their previous values. + */ + "repos/update-pull-request-review-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + dismissal_restrictions?: { + /** + * The list of user `login`s with dismissal access + */ + users?: string[]; + /** + * The list of team `slug`s with dismissal access + */ + teams?: string[]; + }; + /** + * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. + */ + dismiss_stale_reviews?: boolean; + /** + * Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed. + */ + require_code_owner_reviews?: boolean; + /** + * Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6. + */ + required_approving_review_count?: number; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["protected-branch-pull-request-review"]; + }; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/delete-pull-request-review-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * No Content + */ + "204": never; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help. + * + * **Note**: You must enable branch protection to require signed commits. + */ + "repos/get-commit-signature-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["protected-branch-admin-enforced"]; + }; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits. + */ + "repos/create-commit-signature-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["protected-branch-admin-enforced"]; + }; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits. + */ + "repos/delete-commit-signature-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * No Content + */ + "204": never; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/get-status-checks-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["status-check-policy"]; + }; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled. + */ + "repos/update-status-check-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * Require branches to be up to date before merging. + */ + strict?: boolean; + /** + * The list of status checks to require in order to merge into this branch + */ + contexts?: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["status-check-policy"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/remove-status-check-protection": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * No Content + */ + "204": never; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/get-all-status-check-contexts": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": string[]; + }; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/add-status-check-contexts": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * contexts parameter + */ + contexts: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": string[]; + }; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/set-status-check-contexts": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * contexts parameter + */ + contexts: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": string[]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "repos/remove-status-check-contexts": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * contexts parameter + */ + contexts: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": string[]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Lists who has access to this protected branch. + * + * **Note**: Users, apps, and teams `restrictions` are only available for organization-owned repositories. + */ + "repos/get-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["branch-restriction-policy"]; + }; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Disables the ability to restrict who can push to this branch. + */ + "repos/delete-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * No Content + */ + "204": never; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Lists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. + */ + "repos/get-apps-with-access-to-protected-branch": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["integration"][]; + }; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Grants the specified apps push access for this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. + * + * | Type | Description | + * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | + * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + "repos/add-app-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * apps parameter + */ + apps: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["integration"][]; + }; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Replaces the list of apps that have push access to this branch. This removes all apps that previously had push access and grants push access to the new list of apps. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. + * + * | Type | Description | + * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | + * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + "repos/set-app-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * apps parameter + */ + apps: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["integration"][]; + }; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Removes the ability of an app to push to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. + * + * | Type | Description | + * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | + * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + "repos/remove-app-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * apps parameter + */ + apps: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["integration"][]; + }; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Lists the teams who have push access to this branch. The list includes child teams. + */ + "repos/get-teams-with-access-to-protected-branch": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team"][]; + }; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Grants the specified teams push access for this branch. You can also give push access to child teams. + * + * | Type | Description | + * | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | + * | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + "repos/add-team-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * teams parameter + */ + teams: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team"][]; + }; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. Team restrictions include child teams. + * + * | Type | Description | + * | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | + * | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + "repos/set-team-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * teams parameter + */ + teams: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team"][]; + }; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Removes the ability of a team to push to this branch. You can also remove push access for child teams. + * + * | Type | Description | + * | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | + * | `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + "repos/remove-team-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * teams parameter + */ + teams: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team"][]; + }; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Lists the people who have push access to this branch. + */ + "repos/get-users-with-access-to-protected-branch": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "404": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Grants the specified people push access for this branch. + * + * | Type | Description | + * | ------- | ----------------------------------------------------------------------------------------------------------------------------- | + * | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + "repos/add-user-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * users parameter + */ + users: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people. + * + * | Type | Description | + * | ------- | ----------------------------------------------------------------------------------------------------------------------------- | + * | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + "repos/set-user-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * users parameter + */ + users: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "422": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Removes the ability of a user to push to this branch. + * + * | Type | Description | + * | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- | + * | `array` | Usernames of the people who should no longer have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + "repos/remove-user-access-restrictions": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + branch: components["parameters"]["branch"]; + }; + }; + requestBody: { + "application/json": { + /** + * users parameter + */ + users: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "422": unknown; + }; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. + * + * Creates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs. + * + * In a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs. + */ + "checks/create": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the check. For example, "code-coverage". + */ + name: string; + /** + * The SHA of the commit. + */ + head_sha: string; + /** + * 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. + */ + details_url?: string; + /** + * A reference for the run on the integrator's system. + */ + external_id?: string; + /** + * The current status. Can be one of `queued`, `in_progress`, or `completed`. + */ + status?: "queued" | "in_progress" | "completed"; + /** + * 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`. + */ + started_at?: string; + /** + * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. 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`. Only GitHub can change a check run conclusion to `stale`. + */ + conclusion?: + | "success" + | "failure" + | "neutral" + | "cancelled" + | "skipped" + | "timed_out" + | "action_required"; + /** + * 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`. + */ + completed_at?: string; + /** + * 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/rest/reference/checks#output-object) description. + */ + output?: { + /** + * The title of the check run. + */ + title: string; + /** + * The summary of the check run. This parameter supports Markdown. + */ + summary: string; + /** + * The details of the check run. This parameter supports Markdown. + */ + text?: string; + /** + * Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see "[About status checks](https://help.github.com/articles/about-status-checks#checks)". See the [`annotations` object](https://docs.github.com/rest/reference/checks#annotations-object) description for details about how to use this parameter. + */ + annotations?: { + /** + * The path of the file to add an annotation to. For example, `assets/css/main.css`. + */ + path: string; + /** + * The start line of the annotation. + */ + start_line: number; + /** + * The end line of the annotation. + */ + end_line: number; + /** + * The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. + */ + start_column?: number; + /** + * The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. + */ + end_column?: number; + /** + * The level of the annotation. Can be one of `notice`, `warning`, or `failure`. + */ + annotation_level: "notice" | "warning" | "failure"; + /** + * A short description of the feedback for these lines of code. The maximum size is 64 KB. + */ + message: string; + /** + * The title that represents the annotation. The maximum size is 255 characters. + */ + title?: string; + /** + * Details about this annotation. The maximum size is 64 KB. + */ + raw_details?: string; + }[]; + /** + * Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/rest/reference/checks#images-object) description for details. + */ + images?: { + /** + * The alternative text for the image. + */ + alt: string; + /** + * The full URL of the image. + */ + image_url: string; + /** + * A short image description. + */ + caption?: string; + }[]; + }; + /** + * 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/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/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/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/rest/reference/checks#check-runs-and-requested-actions)." + */ + actions?: { + /** + * The text to be displayed on a button in the web UI. The maximum size is 20 characters. + */ + label: string; + /** + * A short explanation of what this action would do. The maximum size is 40 characters. + */ + description: string; + /** + * A reference for the action on the integrator's system. The maximum size is 20 characters. + */ + identifier: string; + }[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["check-run"]; + }; + }; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. + * + * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + */ + "checks/get": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + check_run_id: components["parameters"]["check_run_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["check-run"]; + }; + }; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. + * + * Updates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs. + */ + "checks/update": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + check_run_id: components["parameters"]["check_run_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the check. For example, "code-coverage". + */ + name?: string; + /** + * The URL of the integrator's site that has the full details of the check. + */ + details_url?: string; + /** + * A reference for the run on the integrator's system. + */ + external_id?: string; + /** + * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + started_at?: string; + /** + * The current status. Can be one of `queued`, `in_progress`, or `completed`. + */ + status?: "queued" | "in_progress" | "completed"; + /** + * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. + * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. Only GitHub can change a check run conclusion to `stale`. + */ + conclusion?: + | "success" + | "failure" + | "neutral" + | "cancelled" + | "skipped" + | "timed_out" + | "action_required"; + /** + * 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`. + */ + completed_at?: string; + /** + * 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/rest/reference/checks#output-object-1) description. + */ + output?: { + /** + * **Required**. + */ + title?: string; + /** + * Can contain Markdown. + */ + summary: string; + /** + * Can contain Markdown. + */ + text?: string; + /** + * Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://docs.github.com/rest/reference/checks#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see "[About status checks](https://help.github.com/articles/about-status-checks#checks)". See the [`annotations` object](https://docs.github.com/rest/reference/checks#annotations-object-1) description for details. + */ + annotations?: { + /** + * The path of the file to add an annotation to. For example, `assets/css/main.css`. + */ + path: string; + /** + * The start line of the annotation. + */ + start_line: number; + /** + * The end line of the annotation. + */ + end_line: number; + /** + * The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. + */ + start_column?: number; + /** + * The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. + */ + end_column?: number; + /** + * The level of the annotation. Can be one of `notice`, `warning`, or `failure`. + */ + annotation_level: "notice" | "warning" | "failure"; + /** + * A short description of the feedback for these lines of code. The maximum size is 64 KB. + */ + message: string; + /** + * The title that represents the annotation. The maximum size is 255 characters. + */ + title?: string; + /** + * Details about this annotation. The maximum size is 64 KB. + */ + raw_details?: string; + }[]; + /** + * Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://docs.github.com/rest/reference/checks#annotations-object-1) description for details. + */ + images?: { + /** + * The alternative text for the image. + */ + alt: string; + /** + * The full URL of the image. + */ + image_url: string; + /** + * A short image description. + */ + caption?: string; + }[]; + }; + /** + * 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/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/rest/reference/checks#check-runs-and-requested-actions)." + */ + actions?: { + /** + * The text to be displayed on a button in the web UI. The maximum size is 20 characters. + */ + label: string; + /** + * A short explanation of what this action would do. The maximum size is 40 characters. + */ + description: string; + /** + * A reference for the action on the integrator's system. The maximum size is 20 characters. + */ + identifier: string; + }[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["check-run"]; + }; + }; + }; + /** + * Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. + */ + "checks/list-annotations": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + check_run_id: components["parameters"]["check_run_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["check-annotation"][]; + }; + }; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. + * + * By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/reference/checks#check-runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/rest/reference/checks#update-repository-preferences-for-check-suites)". Your GitHub App must have the `checks:write` permission to create check suites. + */ + "checks/create-suite": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The sha of the head commit. + */ + head_sha: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["check-suite"]; + }; + }; + }; + /** + * Changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/reference/checks#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites. + */ + "checks/set-suites-preferences": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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/rest/reference/checks#auto_trigger_checks-object) description for details. + */ + auto_trigger_checks?: { + /** + * The `id` of the GitHub App. + */ + app_id: number; + /** + * Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them. + */ + setting: boolean; + }[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["check-suite-preference"]; + }; + }; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. + * + * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + */ + "checks/get-suite": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + check_suite_id: components["parameters"]["check_suite_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["check-suite"]; + }; + }; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. + * + * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + */ + "checks/list-for-suite": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + check_suite_id: components["parameters"]["check_suite_id"]; + }; + query: { + check_name?: components["parameters"]["check_name"]; + status?: components["parameters"]["status"]; + /** + * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. + */ + filter?: "latest" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + check_runs?: components["schemas"]["check-run"][]; + }; + }; + }; + }; + /** + * Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. + * + * To rerequest a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository. + */ + "checks/rerequest-suite": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + check_suite_id: components["parameters"]["check_suite_id"]; + }; + }; + responses: { + /** + * response + */ + "201": unknown; + }; + }; + /** + * Lists all open code scanning alerts for the default branch (usually `main` or `master`). For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` read permission to use this endpoint. + */ + "code-scanning/list-alerts-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * Set to `open`, `fixed`, or `dismissed` to list code scanning alerts in a specific state. + */ + state?: components["schemas"]["code-scanning-alert-state"]; + /** + * Set a full Git reference to list alerts for a specific branch. The `ref` must be formatted as `refs/heads/`. + */ + ref?: components["schemas"]["code-scanning-alert-ref"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["code-scanning-alert-code-scanning-alert-items"][]; + }; + /** + * Response if the ref does not match an existing ref + */ + "404": unknown; + "503": unknown; + }; + }; + /** + * Gets a single code scanning alert. You must use an access token with the `security_events` scope to use this endpoint. GitHub Apps must have the `security_events` read permission to use this endpoint. + * + * The security `alert_number` is found at the end of the security alert's URL. For example, the security alert ID for `https://github.com/Octo-org/octo-repo/security/code-scanning/88` is `88`. + */ + "code-scanning/get-alert": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + alert_number: number; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["code-scanning-alert-code-scanning-alert"]; + }; + "404": unknown; + "503": unknown; + }; + }; + /** + * Updates the status of a single code scanning alert. For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. + * GitHub Apps must have the `security_events` write permission to use this endpoint. + */ + "code-scanning/update-alert": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + alert_number: components["parameters"]["alert_number"]; + }; + }; + requestBody: { + "application/json": { + state: components["schemas"]["code-scanning-alert-set-state"]; + dismissed_reason?: components["schemas"]["code-scanning-alert-dismissed-reason"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["code-scanning-alert-code-scanning-alert"]; + }; + /** + * Response if the repository is archived + */ + "403": unknown; + /** + * Response when code scanning is not available and you should try again at a later time + */ + "503": unknown; + }; + }; + /** + * List the details of recent code scanning analyses for a repository. For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` read permission to use this endpoint. + */ + "code-scanning/list-recent-analyses": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * Set a full Git reference to list alerts for a specific branch. The `ref` must be formatted as `refs/heads/`. + */ + ref?: components["schemas"]["code-scanning-analysis-ref"]; + /** + * Set a single code scanning tool name to filter alerts by tool. + */ + tool_name?: components["schemas"]["code-scanning-analysis-tool-name"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["code-scanning-analysis-code-scanning-analysis"][]; + }; + }; + }; + /** + * Upload a SARIF file containing the results of a code scanning analysis to make the results available in a repository. + * For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` write permission to use this endpoint. + */ + "code-scanning/upload-sarif": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + commit_sha: components["schemas"]["code-scanning-analysis-commit-sha"]; + ref: components["schemas"]["code-scanning-analysis-ref"]; + sarif: components["schemas"]["code-scanning-analysis-sarif-file"]; + /** + * The base directory used in the analysis, as it appears in the SARIF file. + * This property is used to convert file paths from absolute to relative, so that alerts can be mapped to their correct location in the repository. + */ + checkout_uri?: string; + /** + * The time that the analysis run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + started_at?: string; + tool_name: components["schemas"]["code-scanning-analysis-tool-name"]; + }; + }; + responses: { + /** + * response + */ + "202": unknown; + /** + * Response if the repository is archived + */ + "403": unknown; + /** + * Response if `commit_sha` or `ref` cannot be found + */ + "404": unknown; + }; + }; + /** + * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. + * + * Team members will include the members of child teams. + */ + "repos/list-collaborators": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * 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. + */ + affiliation?: "outside" | "direct" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["collaborator"][]; + }; + "404": unknown; + }; + }; + /** + * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. + * + * Team members will include the members of child teams. + */ + "repos/check-collaborator": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Response if user is a collaborator + */ + "204": never; + /** + * Response if user is not a collaborator + */ + "404": unknown; + }; + }; + /** + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + * + * For more information the permission levels, see "[Repository permission levels for an organization](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)". + * + * 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/rest/overview/resources-in-the-rest-api#http-verbs)." + * + * The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the [repository invitations API endpoints](https://docs.github.com/rest/reference/repos#invitations). + * + * **Rate limits** + * + * To prevent abuse, you are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository. + */ + "repos/add-collaborator": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + username: components["parameters"]["username"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + permission?: "pull" | "push" | "admin" | "maintain" | "triage"; + permissions?: string; + }; + }; + responses: { + /** + * Response when a new invitation is created + */ + "201": { + "application/json": components["schemas"]["repository-invitation"]; + }; + /** + * Response when person is already a collaborator + */ + "204": never; + "403": unknown; + "422": unknown; + }; + }; + "repos/remove-collaborator": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Checks the repository permission of a collaborator. The possible repository permissions are `admin`, `write`, `read`, and `none`. + */ + "repos/get-collaborator-permission-level": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Response if user has admin permissions + */ + "200": { + "application/json": components["schemas"]["repository-collaborator-permission"]; + }; + "404": unknown; + }; + }; + /** + * Commit Comments use [these custom media types](https://docs.github.com/rest/reference/repos#custom-media-types). You can read more about the use of media types in the API [here](https://docs.github.com/rest/overview/media-types/). + * + * Comments are ordered by ascending ID. + */ + "repos/list-commit-comments-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["commit-comment"][]; + }; + }; + }; + "repos/get-commit-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["commit-comment"]; + }; + "404": unknown; + }; + }; + "repos/update-commit-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The contents of the comment + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["commit-comment"]; + }; + "404": unknown; + }; + }; + "repos/delete-commit-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * List the reactions to a [commit comment](https://docs.github.com/rest/reference/repos#comments). + */ + "reactions/list-for-commit-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + query: { + /** + * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a commit comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["reaction"][]; + }; + "404": unknown; + "415": unknown; + }; + }; + /** + * Create a reaction to a [commit comment](https://docs.github.com/rest/reference/repos#comments). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment. + */ + "reactions/create-for-commit-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the commit comment. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + }; + }; + responses: { + /** + * Reaction exists + */ + "200": { + "application/json": components["schemas"]["reaction"]; + }; + /** + * Reaction created + */ + "201": { + "application/json": components["schemas"]["reaction"]; + }; + "415": unknown; + "422": unknown; + }; + }; + /** + * **Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id`. + * + * Delete a reaction to a [commit comment](https://docs.github.com/rest/reference/repos#comments). + */ + "reactions/delete-for-commit-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + reaction_id: components["parameters"]["reaction-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + "repos/list-commits": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`). + */ + sha?: string; + /** + * Only commits containing this file path will be returned. + */ + path?: string; + /** + * GitHub login or email address by which to filter by commit author. + */ + author?: string; + since?: components["parameters"]["since"]; + /** + * 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`. + */ + until?: string; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["commit"][]; + }; + "400": unknown; + "404": unknown; + "409": unknown; + "500": unknown; + }; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Returns all branches where the given commit SHA is the HEAD, or latest commit for the branch. + */ + "repos/list-branches-for-head-commit": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + commit_sha: components["parameters"]["commit_sha"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["branch-short"][]; + }; + "415": unknown; + "422": unknown; + }; + }; + /** + * Use the `:commit_sha` to specify the commit that will have its comments listed. + */ + "repos/list-comments-for-commit": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + commit_sha: components["parameters"]["commit_sha"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["commit-comment"][]; + }; + }; + }; + /** + * Create a comment for a commit using its `:commit_sha`. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + "repos/create-commit-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + commit_sha: components["parameters"]["commit_sha"]; + }; + }; + requestBody: { + "application/json": { + /** + * The contents of the comment. + */ + body: string; + /** + * Relative path of the file to comment on. + */ + path?: string; + /** + * Line index in the diff to comment on. + */ + position?: number; + /** + * **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. + */ + line?: number; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["commit-comment"]; + }; + "403": unknown; + "422": unknown; + }; + }; + /** + * Lists all pull requests containing the provided commit SHA, which can be from any point in the commit history. The results will include open and closed pull requests. Additional preview headers may be required to see certain details for associated pull requests, such as whether a pull request is in a draft state. For more information about previews that might affect this endpoint, see the [List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests) endpoint. + */ + "repos/list-pull-requests-associated-with-commit": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + commit_sha: components["parameters"]["commit_sha"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-simple"][]; + }; + "415": unknown; + }; + }; + /** + * Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint. + * + * **Note:** If there are more than 300 files in the commit diff, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing. + * + * You can pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property. + * + * To return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag. + * + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + "repos/get-commit": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * ref+ parameter + */ + ref: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["commit"]; + }; + "404": unknown; + "422": unknown; + "500": unknown; + }; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. + * + * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + */ + "checks/list-for-ref": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * ref+ parameter + */ + ref: string; + }; + query: { + check_name?: components["parameters"]["check_name"]; + status?: components["parameters"]["status"]; + /** + * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. + */ + filter?: "latest" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + check_runs?: components["schemas"]["check-run"][]; + }; + }; + }; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. + * + * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + */ + "checks/list-suites-for-ref": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * ref+ parameter + */ + ref: string; + }; + query: { + /** + * Filters check suites by GitHub App `id`. + */ + app_id?: number; + check_name?: components["parameters"]["check_name"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + check_suites?: components["schemas"]["check-suite"][]; + }; + }; + }; + }; + /** + * Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. + * + * The most recent status for each context is returned, up to 100. This field [paginates](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination) if there are over 100 contexts. + * + * Additionally, a combined `state` is returned. The `state` is one of: + * + * * **failure** if any of the contexts report as `error` or `failure` + * * **pending** if there are no statuses or a context is `pending` + * * **success** if the latest status for all contexts is `success` + */ + "repos/get-combined-status-for-ref": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * ref+ parameter + */ + ref: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["combined-commit-status"]; + }; + "404": unknown; + }; + }; + /** + * Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one. + * + * This resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`. + */ + "repos/list-commit-statuses-for-ref": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * ref+ parameter + */ + ref: string; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["status"][]; + }; + "301": never; + }; + }; + /** + * This method returns the contents of the repository's code of conduct file, if one is detected. + */ + "codes-of-conduct/get-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["code-of-conduct"]; + }; + }; + }; + /** + * This endpoint will return all community profile metrics, including an + * overall health score, repository description, the presence of documentation, detected + * code of conduct, detected license, and the presence of ISSUE\_TEMPLATE, PULL\_REQUEST\_TEMPLATE, + * README, and CONTRIBUTING files. + * + * `content_reports_enabled` is only returned for organization-owned repositories. + */ + "repos/get-community-profile-metrics": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["community-profile"]; + }; + }; + }; + /** + * Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `:branch`. + * + * The response from the API is equivalent to running the `git log base..head` command; however, commits are returned in chronological order. Pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. + * + * The response also includes details on the files that were changed between the two commits. This includes the status of the change (for example, if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file. + * + * **Working with large comparisons** + * + * The response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [List commits](https://docs.github.com/rest/reference/repos#list-commits) to enumerate all commits in the range. + * + * For comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long + * to generate. You can typically resolve this error by using a smaller commit range. + * + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + "repos/compare-commits": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + base: string; + head: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["commit-comparison"]; + }; + "404": unknown; + "500": unknown; + }; + }; + /** + * Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit + * `:path`, you will receive the contents of all files in the repository. + * + * Files and symlinks support [a custom media type](https://docs.github.com/rest/reference/repos#custom-media-types) for + * retrieving the raw content or rendered HTML (when supported). All content types support [a custom media + * type](https://docs.github.com/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistent + * object format. + * + * **Note**: + * * To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/rest/reference/git#trees). + * * This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees + * API](https://docs.github.com/rest/reference/git#get-a-tree). + * * This API supports files up to 1 megabyte in size. + * + * #### If the content is a directory + * The response will be an array of objects, one object for each item in the directory. + * When listing the contents of a directory, submodules have their "type" specified as "file". Logically, the value + * _should_ be "submodule". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW). + * In the next major version of the API, the type will be returned as "submodule". + * + * #### If the content is a symlink + * If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the + * API responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object + * describing the symlink itself. + * + * #### If the content is a submodule + * The `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific + * commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out + * the submodule at that specific commit. + * + * If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and the + * github.com URLs (`html_url` and `_links["html"]`) will have null values. + */ + "repos/get-content": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * path+ parameter + */ + path: string; + }; + query: { + /** + * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) + */ + ref?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/vnd.github.v3.object": components["schemas"]["content-tree"]; + "application/json": + | components["schemas"]["content-directory"] + | components["schemas"]["content-file"] + | components["schemas"]["content-symlink"] + | components["schemas"]["content-submodule"]; + }; + "302": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Creates a new file or replaces an existing file in a repository. + */ + "repos/create-or-update-file-contents": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * path+ parameter + */ + path: string; + }; + }; + requestBody: { + "application/json": { + /** + * The commit message. + */ + message: string; + /** + * The new file content, using Base64 encoding. + */ + content: string; + /** + * **Required if you are updating a file**. The blob SHA of the file being replaced. + */ + sha?: string; + /** + * The branch name. Default: the repository’s default branch (usually `master`) + */ + branch?: string; + /** + * The person that committed the file. Default: the authenticated user. + */ + committer?: { + /** + * The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. + */ + name: string; + /** + * The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted. + */ + email: string; + date?: string; + }; + /** + * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. + */ + author?: { + /** + * The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. + */ + name: string; + /** + * The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted. + */ + email: string; + date?: string; + }; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["file-commit"]; + }; + /** + * response + */ + "201": { + "application/json": components["schemas"]["file-commit"]; + }; + "404": unknown; + "409": unknown; + "422": unknown; + }; + }; + /** + * Deletes a file in a repository. + * + * You can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author. + * + * The `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used. + * + * You must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code. + */ + "repos/delete-file": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * path+ parameter + */ + path: string; + }; + }; + requestBody: { + "application/json": { + /** + * The commit message. + */ + message: string; + /** + * The blob SHA of the file being replaced. + */ + sha: string; + /** + * The branch name. Default: the repository’s default branch (usually `master`) + */ + branch?: string; + /** + * object containing information about the committer. + */ + committer?: { + /** + * The name of the author (or committer) of the commit + */ + name?: string; + /** + * The email of the author (or committer) of the commit + */ + email?: string; + }; + /** + * object containing information about the author. + */ + author?: { + /** + * The name of the author (or committer) of the commit + */ + name?: string; + /** + * The email of the author (or committer) of the commit + */ + email?: string; + }; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["file-commit"]; + }; + "404": unknown; + "409": unknown; + "422": unknown; + "503": unknown; + }; + }; + /** + * Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance. + * + * GitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information. + */ + "repos/list-contributors": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * Set to `1` or `true` to include anonymous contributors in results. + */ + anon?: string; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * Response if repository contains content + */ + "200": { + "application/json": components["schemas"]["contributor"][]; + }; + /** + * Response if repository is empty + */ + "204": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Simple filtering of deployments is available via query parameters: + */ + "repos/list-deployments": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * The SHA recorded at creation time. + */ + sha?: string; + /** + * The name of the ref. This can be a branch, tag, or SHA. + */ + ref?: string; + /** + * The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). + */ + task?: string; + /** + * The name of the environment that was deployed to (e.g., `staging` or `production`). + */ + environment?: string; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["deployment"][]; + }; + }; + }; + /** + * Deployments offer a few configurable parameters with certain defaults. + * + * The `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them + * before we merge a pull request. + * + * The `environment` parameter allows deployments to be issued to different runtime environments. Teams often have + * multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parameter + * makes it easier to track which environments have requested deployments. The default environment is `production`. + * + * The `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If + * the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds, + * the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will + * return a failure response. + * + * By default, [commit statuses](https://docs.github.com/rest/reference/repos#statuses) for every submitted context must be in a `success` + * state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to + * specify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do + * not require any contexts or create any commit statuses, the deployment will always succeed. + * + * The `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text + * field that will be passed on when a deployment event is dispatched. + * + * The `task` parameter is used by the deployment system to allow different execution paths. In the web world this might + * be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an + * application with debugging enabled. + * + * Users with `repo` or `repo_deployment` scopes can create a deployment for a given ref. + * + * #### Merged branch response + * You will see this response when GitHub automatically merges the base branch into the topic branch instead of creating + * a deployment. This auto-merge happens when: + * * Auto-merge option is enabled in the repository + * * Topic branch does not include the latest changes on the base branch, which is `master` in the response example + * * There are no merge conflicts + * + * If there are no new commits in the base branch, a new request to create a deployment should give a successful + * response. + * + * #### Merge conflict response + * This error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't + * be merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts. + * + * #### Failed commit status checks + * This error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success` + * status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`. + */ + "repos/create-deployment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The ref to deploy. This can be a branch, tag, or SHA. + */ + ref: string; + /** + * Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). + */ + task?: string; + /** + * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. + */ + auto_merge?: boolean; + /** + * The [status](https://docs.github.com/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. + */ + required_contexts?: string[]; + /** + * JSON payload with extra information about the deployment. + */ + payload?: string; + /** + * Name for the target deployment environment (e.g., `production`, `staging`, `qa`). + */ + environment?: string; + /** + * Short description of the deployment. + */ + description?: string | null; + /** + * 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/rest/overview/api-previews#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type. + */ + transient_environment?: boolean; + /** + * 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/rest/overview/api-previews#enhanced-deployments) custom media type. + */ + production_environment?: boolean; + created_at?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["deployment"]; + }; + /** + * Merged branch response + */ + "202": { + "application/json": { message?: string }; + }; + /** + * response + */ + "409": { + "application/json": { message?: string; documentation_url?: string }; + }; + "422": unknown; + }; + }; + "repos/get-deployment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + deployment_id: components["parameters"]["deployment_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["deployment"]; + }; + "404": unknown; + }; + }; + /** + * To ensure there can always be an active deployment, you can only delete an _inactive_ deployment. Anyone with `repo` or `repo_deployment` scopes can delete an inactive deployment. + * + * To set a deployment as inactive, you must: + * + * * Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment. + * * Mark the active deployment as inactive by adding any non-successful deployment status. + * + * For more information, see "[Create a deployment](https://docs.github.com/rest/reference/repos/deployments/#create-a-deployment)" and "[Create a deployment status](https://docs.github.com/rest/reference/repos#create-a-deployment-status)." + */ + "repos/delete-deployment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + deployment_id: components["parameters"]["deployment_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + "422": unknown; + }; + }; + /** + * Users with pull access can view deployment statuses for a deployment: + */ + "repos/list-deployment-statuses": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + deployment_id: components["parameters"]["deployment_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["deployment-status"][]; + }; + "404": unknown; + }; + }; + /** + * Users with `push` access can create deployment statuses for a given deployment. + * + * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. + */ + "repos/create-deployment-status": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + deployment_id: components["parameters"]["deployment_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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/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/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. + */ + state: + | "error" + | "failure" + | "inactive" + | "in_progress" + | "queued" + | "pending" + | "success"; + /** + * 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`. + */ + target_url?: string; + /** + * 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/rest/overview/api-previews#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type. + */ + log_url?: string; + /** + * A short description of the status. The maximum description length is 140 characters. + */ + description?: string; + /** + * 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/rest/overview/api-previews#deployment-statuses) custom media type. + */ + environment?: "production" | "staging" | "qa"; + /** + * 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/rest/overview/api-previews#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://docs.github.com/rest/overview/api-previews#enhanced-deployments) custom media type. + */ + environment_url?: string; + /** + * 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/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/rest/overview/api-previews#enhanced-deployments) custom media type. + */ + auto_inactive?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["deployment-status"]; + }; + "422": unknown; + }; + }; + /** + * Users with pull access can view a deployment status for a deployment: + */ + "repos/get-deployment-status": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + deployment_id: components["parameters"]["deployment_id"]; + status_id: number; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["deployment-status"]; + }; + "404": unknown; + "415": unknown; + }; + }; + /** + * You can use this endpoint to trigger a webhook event called `repository_dispatch` when you want activity that happens outside of GitHub to trigger a GitHub Actions workflow or GitHub App webhook. You must configure your GitHub Actions workflow or GitHub App to run when the `repository_dispatch` event occurs. For an example `repository_dispatch` webhook payload, see "[RepositoryDispatchEvent](https://docs.github.com/webhooks/event-payloads/#repository_dispatch)." + * + * The `client_payload` parameter is available for any extra information that your workflow might need. This parameter is a JSON payload that will be passed on when the webhook event is dispatched. For example, the `client_payload` can include a message that a user would like to send using a GitHub Actions workflow. Or the `client_payload` can be used as a test to debug your workflow. + * + * To give you write access to the repository, you must use a personal access token with the `repo` scope. For more information, see "[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line)" in the GitHub Help documentation. + * + * This input example shows how you can use the `client_payload` as a test to debug your workflow. + */ + "repos/create-dispatch-event": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * A custom webhook event name. + */ + event_type: string; + /** + * JSON payload with extra information about the webhook event that your action or worklow may use. + */ + client_payload?: { [key: string]: any }; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "422": unknown; + }; + }; + "activity/list-repo-events": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["event"][]; + }; + }; + }; + "repos/list-forks": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * The sort order. Can be either `newest`, `oldest`, or `stargazers`. + */ + sort?: "newest" | "oldest" | "stargazers"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["minimal-repository"][]; + }; + "400": unknown; + }; + }; + /** + * Create a fork for the authenticated user. + * + * **Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Support](https://github.com/contact) or [GitHub Premium Support](https://premium.githubsupport.com). + */ + "repos/create-fork": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * Optional parameter to specify the organization name if forking into an organization. + */ + organization?: string; + }; + }; + responses: { + /** + * response + */ + "202": { + "application/json": components["schemas"]["repository"]; + }; + "400": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + "git/create-blob": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The new blob's content. + */ + content: string; + /** + * The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. + */ + encoding?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["short-blob"]; + }; + "403": unknown; + "404": unknown; + "409": unknown; + "422": unknown; + }; + }; + /** + * The `content` in the response will always be Base64 encoded. + * + * _Note_: This API supports blobs up to 100 megabytes in size. + */ + "git/get-blob": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + file_sha: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["blob"]; + }; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). + * + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + "git/create-commit": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The commit message + */ + message: string; + /** + * The SHA of the tree object this commit points to + */ + tree: string; + /** + * 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. + */ + parents?: string[]; + /** + * 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. + */ + author?: { + /** + * The name of the author (or committer) of the commit + */ + name?: string; + /** + * The email of the author (or committer) of the commit + */ + email?: string; + /** + * Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + date?: string; + }; + /** + * 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. + */ + committer?: { + /** + * The name of the author (or committer) of the commit + */ + name?: string; + /** + * The email of the author (or committer) of the commit + */ + email?: string; + /** + * Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + date?: string; + }; + /** + * 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. + */ + signature?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["git-commit"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). + * + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + "git/get-commit": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + commit_sha: components["parameters"]["commit_sha"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["git-commit"]; + }; + "404": unknown; + }; + }; + /** + * Returns an array of references from your Git database that match the supplied name. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be returned as an array. + * + * When you use this endpoint without providing a `:ref`, it will return an array of all the references from your Git database, including notes and stashes if they exist on the server. Anything in the namespace is returned, not just `heads` and `tags`. + * + * **Note:** You need to explicitly [request a pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". + * + * If you request matching references for a branch named `feature` but the branch `feature` doesn't exist, the response can still include other matching head refs that start with the word `feature`, such as `featureA` and `featureB`. + */ + "git/list-matching-refs": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * ref+ parameter + */ + ref: string; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["git-ref"][]; + }; + }; + }; + /** + * Returns a single reference from your Git database. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't match an existing ref, a `404` is returned. + * + * **Note:** You need to explicitly [request a pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". + */ + "git/get-ref": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * ref+ parameter + */ + ref: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["git-ref"]; + }; + "404": unknown; + }; + }; + /** + * Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches. + */ + "git/create-ref": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + ref: string; + /** + * The SHA1 value for this reference. + */ + sha: string; + key?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["git-ref"]; + }; + "422": unknown; + }; + }; + "git/update-ref": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * ref+ parameter + */ + ref: string; + }; + }; + requestBody: { + "application/json": { + /** + * The SHA1 value to set this reference to + */ + sha: string; + /** + * 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. + */ + force?: boolean; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["git-ref"]; + }; + "422": unknown; + }; + }; + "git/delete-ref": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * ref+ parameter + */ + ref: string; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "422": unknown; + }; + }; + /** + * Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/rest/reference/git#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/rest/reference/git#create-a-reference) the tag reference - this call would be unnecessary. + * + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + "git/create-tag": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The tag's name. This is typically a version (e.g., "v0.0.1"). + */ + tag: string; + /** + * The tag message. + */ + message: string; + /** + * The SHA of the git object this is tagging. + */ + object: string; + /** + * The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. + */ + type: "commit" | "tree" | "blob"; + /** + * An object with information about the individual creating the tag. + */ + tagger?: { + /** + * The name of the author of the tag + */ + name?: string; + /** + * The email of the author of the tag + */ + email?: string; + /** + * When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + date?: string; + }; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["git-tag"]; + }; + "422": unknown; + }; + }; + /** + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + "git/get-tag": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + tag_sha: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["git-tag"]; + }; + "404": unknown; + }; + }; + /** + * The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure. + * + * If you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see "[Create a commit](https://docs.github.com/rest/reference/git#create-a-commit)" and "[Update a reference](https://docs.github.com/rest/reference/git#update-a-reference)." + */ + "git/create-tree": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. + */ + tree: { + /** + * The file referenced in the tree. + */ + path?: string; + /** + * The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink. + */ + mode?: "100644" | "100755" | "040000" | "160000" | "120000"; + /** + * Either `blob`, `tree`, or `commit`. + */ + type?: "blob" | "tree" | "commit"; + /** + * The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. + * + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ + sha?: string | null; + /** + * The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. + * + * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. + */ + content?: string; + }[]; + /** + * The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted. + */ + base_tree?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["git-tree"]; + }; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Returns a single tree using the SHA1 value for that tree. + * + * If `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time. + */ + "git/get-tree": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + tree_sha: string; + }; + query: { + /** + * 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. + */ + recursive?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["git-tree"]; + }; + "404": unknown; + "422": unknown; + }; + }; + "repos/list-webhooks": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["hook"][]; + }; + "404": unknown; + }; + }; + /** + * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can + * share the same `config` as long as those webhooks do not have any `events` that overlap. + */ + "repos/create-webhook": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. + */ + name?: string; + /** + * Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/rest/reference/repos#create-hook-config-params). + */ + config: { + url: components["schemas"]["webhook-config-url"]; + content_type?: components["schemas"]["webhook-config-content-type"]; + secret?: components["schemas"]["webhook-config-secret"]; + insecure_ssl?: components["schemas"]["webhook-config-insecure-ssl"]; + token?: string; + digest?: string; + }; + /** + * Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. + */ + events?: string[]; + /** + * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + */ + active?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["hook"]; + }; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Returns a webhook configured in a repository. To get only the webhook `config` properties, see "[Get a webhook configuration for a repository](/rest/reference/repos#get-a-webhook-configuration-for-a-repository)." + */ + "repos/get-webhook": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["hook"]; + }; + "404": unknown; + }; + }; + /** + * Updates a webhook configured in a repository. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. If you are only updating individual webhook `config` properties, use "[Update a webhook configuration for a repository](/rest/reference/repos#update-a-webhook-configuration-for-a-repository)." + */ + "repos/update-webhook": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * Key/value pairs to provide settings for this webhook. [These are defined below](https://docs.github.com/rest/reference/repos#create-hook-config-params). + */ + config?: { + url: components["schemas"]["webhook-config-url"]; + content_type?: components["schemas"]["webhook-config-content-type"]; + secret?: components["schemas"]["webhook-config-secret"]; + insecure_ssl?: components["schemas"]["webhook-config-insecure-ssl"]; + address?: string; + room?: string; + }; + /** + * Determines what [events](https://docs.github.com/webhooks/event-payloads) the hook is triggered for. This replaces the entire array of events. + */ + events?: string[]; + /** + * Determines a list of events to be added to the list of events that the Hook triggers for. + */ + add_events?: string[]; + /** + * Determines a list of events to be removed from the list of events that the Hook triggers for. + */ + remove_events?: string[]; + /** + * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. + */ + active?: boolean; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["hook"]; + }; + "404": unknown; + "422": unknown; + }; + }; + "repos/delete-webhook": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * Returns the webhook configuration for a repository. To get more information about the webhook, including the `active` state and `events`, use "[Get a repository webhook](/rest/reference/orgs#get-a-repository-webhook)." + * + * Access tokens must have the `read:repo_hook` or `repo` scope, and GitHub Apps must have the `repository_hooks:read` permission. + */ + "repos/get-webhook-config-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + responses: { + /** + * Default response + */ + "200": { + "application/json": components["schemas"]["webhook-config"]; + }; + }; + }; + /** + * Updates the webhook configuration for a repository. To update more information about the webhook, including the `active` state and `events`, use "[Update a repository webhook](/rest/reference/orgs#update-a-repository-webhook)." + * + * Access tokens must have the `write:repo_hook` or `repo` scope, and GitHub Apps must have the `repository_hooks:write` permission. + */ + "repos/update-webhook-config-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + requestBody: { + "application/json": { + url?: components["schemas"]["webhook-config-url"]; + content_type?: components["schemas"]["webhook-config-content-type"]; + secret?: components["schemas"]["webhook-config-secret"]; + insecure_ssl?: components["schemas"]["webhook-config-insecure-ssl"]; + }; + }; + responses: { + /** + * Default response + */ + "200": { + "application/json": components["schemas"]["webhook-config"]; + }; + }; + }; + /** + * This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the hook. + */ + "repos/ping-webhook": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * This will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated. + * + * **Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test` + */ + "repos/test-push-webhook": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + hook_id: components["parameters"]["hook-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * View the progress of an import. + * + * **Import status** + * + * This section includes details about the possible values of the `status` field of the Import Progress response. + * + * An import that does not have errors will progress through these steps: + * + * * `detecting` - the "detection" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL. + * * `importing` - the "raw" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import). + * * `mapping` - the "rewrite" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information. + * * `pushing` - the "push" step of the import is in progress. This is where the importer updates the repository on GitHub. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is "Writing objects". + * * `complete` - the import is complete, and the repository is ready on GitHub. + * + * If there are problems, you will see one of these in the `status` field: + * + * * `auth_failed` - the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update an import](https://docs.github.com/rest/reference/migrations#update-an-import) section. + * * `error` - the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub Support](https://github.com/contact) or [GitHub Premium Support](https://premium.githubsupport.com) for more information. + * * `detection_needs_auth` - the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update an import](https://docs.github.com/rest/reference/migrations#update-an-import) section. + * * `detection_found_nothing` - the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](https://docs.github.com/rest/reference/migrations#cancel-an-import) and [retry](https://docs.github.com/rest/reference/migrations#start-an-import) with the correct URL. + * * `detection_found_multiple` - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update an import](https://docs.github.com/rest/reference/migrations#update-an-import) section. + * + * **The project_choices field** + * + * When multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type. + * + * **Git LFS related fields** + * + * This section includes details about Git LFS related fields that may be present in the Import Progress response. + * + * * `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken. + * * `has_large_files` - the boolean value describing whether files larger than 100MB were found during the `importing` step. + * * `large_files_size` - the total size in gigabytes of files larger than 100MB found in the originating repository. + * * `large_files_count` - the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a "Get Large Files" request. + */ + "migrations/get-import-status": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["import"]; + }; + "404": unknown; + }; + }; + /** + * Start a source import to a GitHub repository using GitHub Importer. + */ + "migrations/start-import": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The URL of the originating repository. + */ + vcs_url: string; + /** + * The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. + */ + vcs?: "subversion" | "git" | "mercurial" | "tfvc"; + /** + * If authentication is required, the username to provide to `vcs_url`. + */ + vcs_username?: string; + /** + * If authentication is required, the password to provide to `vcs_url`. + */ + vcs_password?: string; + /** + * For a tfvc import, the name of the project that is being imported. + */ + tfvc_project?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["import"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * An import can be updated with credentials or a project choice by passing in the appropriate parameters in this API + * request. If no parameters are provided, the import will be restarted. + */ + "migrations/update-import": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The username to provide to the originating repository. + */ + vcs_username?: string; + /** + * The password to provide to the originating repository. + */ + vcs_password?: string; + vcs?: string; + tfvc_project?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["import"]; + }; + }; + }; + /** + * Stop an import for a repository. + */ + "migrations/cancel-import": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot `. + * + * This endpoint and the [Map a commit author](https://docs.github.com/rest/reference/migrations#map-a-commit-author) endpoint allow you to provide correct Git author information. + */ + "migrations/get-commit-authors": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + since?: components["parameters"]["since-user"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["porter-author"][]; + }; + "404": unknown; + }; + }; + /** + * Update an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository. + */ + "migrations/map-commit-author": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + author_id: number; + }; + }; + requestBody: { + "application/json": { + /** + * The new Git author email. + */ + email?: string; + /** + * The new Git author name. + */ + name?: string; + remote_id?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["porter-author"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * List files larger than 100MB found during the import + */ + "migrations/get-large-files": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["porter-large-file"][]; + }; + }; + }; + /** + * You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability is powered by [Git LFS](https://git-lfs.github.com). You can learn more about our LFS feature and working with large files [on our help site](https://help.github.com/articles/versioning-large-files/). + */ + "migrations/set-lfs-preference": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). + */ + use_lfs: "opt_in" | "opt_out"; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["import"]; + }; + "422": unknown; + }; + }; + /** + * Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/get-repo-installation": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["installation"]; + }; + "301": never; + "404": unknown; + }; + }; + /** + * Shows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response. + */ + "interactions/get-restrictions-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["interaction-limit-response"]; + }; + }; + }; + /** + * Temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository. + */ + "interactions/set-restrictions-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": components["schemas"]["interaction-limit"]; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["interaction-limit-response"]; + }; + /** + * Conflict + */ + "409": unknown; + }; + }; + /** + * Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. If the interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository. + */ + "interactions/remove-restrictions-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + /** + * Conflict + */ + "409": unknown; + }; + }; + /** + * When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations. + */ + "repos/list-invitations": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["repository-invitation"][]; + }; + }; + }; + "repos/update-invitation": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + invitation_id: components["parameters"]["invitation_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`. + */ + permissions?: "read" | "write" | "maintain" | "triage" | "admin"; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["repository-invitation"]; + }; + }; + }; + "repos/delete-invitation": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + invitation_id: components["parameters"]["invitation_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * List issues in a repository. + * + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this + * reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by + * the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull + * request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + "issues/list-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * 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. + */ + milestone?: string; + /** + * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + /** + * Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. + */ + assignee?: string; + /** + * The user that created the issue. + */ + creator?: string; + /** + * A user that's mentioned in the issue. + */ + mentioned?: string; + labels?: components["parameters"]["labels"]; + /** + * What to sort results by. Can be either `created`, `updated`, `comments`. + */ + sort?: "created" | "updated" | "comments"; + direction?: components["parameters"]["direction"]; + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue-simple"][]; + }; + "301": never; + "404": unknown; + "422": unknown; + }; + }; + /** + * Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://help.github.com/articles/disabling-issues/), the API returns a `410 Gone` status. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)" for details. + */ + "issues/create": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The title of the issue. + */ + title: string; + /** + * The contents of the issue. + */ + body?: string; + /** + * 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.**_ + */ + assignee?: string | null; + /** + * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ + */ + milestone?: number | null; + /** + * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ + */ + labels?: ( + | string + | { id?: number; name?: string; description?: string; color?: string } + )[]; + /** + * 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._ + */ + assignees?: string[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["issue"]; + }; + "403": unknown; + "404": unknown; + "410": unknown; + "422": unknown; + "503": unknown; + }; + }; + /** + * By default, Issue Comments are ordered by ascending ID. + */ + "issues/list-comments-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + sort?: components["parameters"]["sort"]; + /** + * Either `asc` or `desc`. Ignored without the `sort` parameter. + */ + direction?: "asc" | "desc"; + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue-comment"][]; + }; + "404": unknown; + "422": unknown; + }; + }; + "issues/get-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue-comment"]; + }; + "404": unknown; + }; + }; + "issues/update-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The contents of the comment. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue-comment"]; + }; + "422": unknown; + }; + }; + "issues/delete-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * List the reactions to an [issue comment](https://docs.github.com/rest/reference/issues#comments). + */ + "reactions/list-for-issue-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + query: { + /** + * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["reaction"][]; + }; + "404": unknown; + "415": unknown; + }; + }; + /** + * Create a reaction to an [issue comment](https://docs.github.com/rest/reference/issues#comments). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment. + */ + "reactions/create-for-issue-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the issue comment. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + }; + }; + responses: { + /** + * Reaction exists + */ + "200": { + "application/json": components["schemas"]["reaction"]; + }; + /** + * Reaction created + */ + "201": { + "application/json": components["schemas"]["reaction"]; + }; + "415": unknown; + "422": unknown; + }; + }; + /** + * **Note:** You can also specify a repository by `repository_id` using the route `DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id`. + * + * Delete a reaction to an [issue comment](https://docs.github.com/rest/reference/issues#comments). + */ + "reactions/delete-for-issue-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + reaction_id: components["parameters"]["reaction-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + "issues/list-events-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue-event"][]; + }; + "422": unknown; + }; + }; + "issues/get-event": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + event_id: number; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue-event"]; + }; + "403": unknown; + "404": unknown; + "410": unknown; + }; + }; + /** + * The API returns a [`301 Moved Permanently` status](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-redirects-redirects) if the issue was + * [transferred](https://help.github.com/articles/transferring-an-issue-to-another-repository/) to another repository. If + * the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API + * returns a `404 Not Found` status. If the issue was deleted from a repository where the authenticated user has read + * access, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted issues, subscribe + * to the [`issues`](https://docs.github.com/webhooks/event-payloads/#issues) webhook. + * + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this + * reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by + * the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull + * request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + "issues/get": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue"]; + }; + "301": never; + "304": never; + "404": unknown; + "410": unknown; + }; + }; + /** + * Issue owners and users with push access can edit an issue. + */ + "issues/update": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The title of the issue. + */ + title?: string; + /** + * The contents of the issue. + */ + body?: string; + /** + * Login for the user that this issue should be assigned to. **This field is deprecated.** + */ + assignee?: string; + /** + * State of the issue. Either `open` or `closed`. + */ + state?: "open" | "closed"; + /** + * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ + */ + milestone?: number | null; + /** + * 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._ + */ + labels?: ( + | string + | { id?: number; name?: string; description?: string; color?: string } + )[]; + /** + * 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._ + */ + assignees?: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue"]; + }; + "301": never; + "403": unknown; + "404": unknown; + "410": unknown; + "422": unknown; + "503": unknown; + }; + }; + /** + * Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced. + */ + "issues/add-assignees": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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._ + */ + assignees?: string[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["issue-simple"]; + }; + }; + }; + /** + * Removes one or more assignees from an issue. + */ + "issues/remove-assignees": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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._ + */ + assignees?: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue-simple"]; + }; + }; + }; + /** + * Issue Comments are ordered by ascending ID. + */ + "issues/list-comments": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + query: { + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue-comment"][]; + }; + "404": unknown; + "410": unknown; + }; + }; + /** + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)" for details. + */ + "issues/create-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The contents of the comment. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["issue-comment"]; + }; + "403": unknown; + "404": unknown; + "410": unknown; + "422": unknown; + }; + }; + "issues/list-events": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue-event-for-issue"][]; + }; + "410": unknown; + }; + }; + "issues/list-labels-on-issue": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["label"][]; + }; + "410": unknown; + }; + }; + "issues/add-labels": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. + */ + labels: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["label"][]; + }; + "410": unknown; + "422": unknown; + }; + }; + /** + * Removes any previous labels and sets the new labels for an issue. + */ + "issues/set-labels": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. + */ + labels?: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["label"][]; + }; + "410": unknown; + "422": unknown; + }; + }; + "issues/remove-all-labels": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "410": unknown; + }; + }; + /** + * Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist. + */ + "issues/remove-label": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + name: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["label"][]; + }; + "404": unknown; + "410": unknown; + }; + }; + /** + * Users with push access can lock an issue or pull request's conversation. + * + * 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + "issues/lock": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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` + */ + lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "403": unknown; + "404": unknown; + "410": unknown; + "422": unknown; + }; + }; + /** + * Users with push access can unlock an issue's conversation. + */ + "issues/unlock": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * List the reactions to an [issue](https://docs.github.com/rest/reference/issues). + */ + "reactions/list-for-issue": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + query: { + /** + * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["reaction"][]; + }; + "404": unknown; + "410": unknown; + "415": unknown; + }; + }; + /** + * Create a reaction to an [issue](https://docs.github.com/rest/reference/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue. + */ + "reactions/create-for-issue": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the issue. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["reaction"]; + }; + "415": unknown; + "422": unknown; + }; + }; + /** + * **Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id`. + * + * Delete a reaction to an [issue](https://docs.github.com/rest/reference/issues/). + */ + "reactions/delete-for-issue": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + reaction_id: components["parameters"]["reaction-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + "issues/list-events-for-timeline": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + issue_number: components["parameters"]["issue_number"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue-event-for-issue"][]; + }; + "404": unknown; + "410": unknown; + "415": unknown; + }; + }; + "repos/list-deploy-keys": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["deploy-key"][]; + }; + }; + }; + /** + * You can create a read-only deploy key. + */ + "repos/create-deploy-key": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * A name for the key. + */ + title?: string; + /** + * The contents of the key. + */ + key: string; + /** + * 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/)." + */ + read_only?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["deploy-key"]; + }; + "422": unknown; + }; + }; + "repos/get-deploy-key": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + key_id: components["parameters"]["key_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["deploy-key"]; + }; + "404": unknown; + }; + }; + /** + * Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead. + */ + "repos/delete-deploy-key": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + key_id: components["parameters"]["key_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + "issues/list-labels-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["label"][]; + }; + "404": unknown; + }; + }; + "issues/create-label": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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.com](http://emoji-cheat-sheet.com/). + */ + name: string; + /** + * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. + */ + color?: string; + /** + * A short description of the label. + */ + description?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["label"]; + }; + "404": unknown; + "422": unknown; + }; + }; + "issues/get-label": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + name: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["label"]; + }; + "404": unknown; + }; + }; + "issues/update-label": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + name: string; + }; + }; + requestBody: { + "application/json": { + /** + * 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.com](http://emoji-cheat-sheet.com/). + */ + new_name?: string; + /** + * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. + */ + color?: string; + /** + * A short description of the label. + */ + description?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["label"]; + }; + }; + }; + "issues/delete-label": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + name: string; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language. + */ + "repos/list-languages": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["language"]; + }; + }; + }; + /** + * This method returns the contents of the repository's license file, if one is detected. + * + * Similar to [Get repository content](https://docs.github.com/rest/reference/repos/contents#get-repository-content), this method also supports [custom media types](https://docs.github.com/rest/overview/media-types) for retrieving the raw license content or rendered license HTML. + */ + "licenses/get-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["license-content"]; + }; + }; + }; + "repos/merge": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the base branch that the head will be merged into. + */ + base: string; + /** + * The head to merge. This can be a branch name or a commit SHA1. + */ + head: string; + /** + * Commit message to use for the merge commit. If omitted, a default message will be used. + */ + commit_message?: string; + }; + }; + responses: { + /** + * Successful Response (The resulting merge commit) + */ + "201": { + "application/json": components["schemas"]["commit"]; + }; + "403": unknown; + /** + * response + */ + "404": { + "application/json": { message?: string; documentation_url?: string }; + }; + /** + * Merge conflict response + */ + "409": { + "application/json": { message?: string; documentation_url?: string }; + }; + "422": unknown; + }; + }; + "issues/list-milestones": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * The state of the milestone. Either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + /** + * What to sort results by. Either `due_on` or `completeness`. + */ + sort?: "due_on" | "completeness"; + /** + * The direction of the sort. Either `asc` or `desc`. + */ + direction?: "asc" | "desc"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["milestone"][]; + }; + "404": unknown; + }; + }; + "issues/create-milestone": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The title of the milestone. + */ + title: string; + /** + * The state of the milestone. Either `open` or `closed`. + */ + state?: "open" | "closed"; + /** + * A description of the milestone. + */ + description?: string; + /** + * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + due_on?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["milestone"]; + }; + "404": unknown; + "422": unknown; + }; + }; + "issues/get-milestone": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + milestone_number: components["parameters"]["milestone_number"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["milestone"]; + }; + "404": unknown; + }; + }; + "issues/update-milestone": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + milestone_number: components["parameters"]["milestone_number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The title of the milestone. + */ + title?: string; + /** + * The state of the milestone. Either `open` or `closed`. + */ + state?: "open" | "closed"; + /** + * A description of the milestone. + */ + description?: string; + /** + * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + due_on?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["milestone"]; + }; + }; + }; + "issues/delete-milestone": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + milestone_number: components["parameters"]["milestone_number"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + "issues/list-labels-for-milestone": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + milestone_number: components["parameters"]["milestone_number"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["label"][]; + }; + }; + }; + /** + * List all notifications for the current user. + */ + "activity/list-repo-notifications-for-authenticated-user": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + all?: components["parameters"]["all"]; + participating?: components["parameters"]["participating"]; + since?: components["parameters"]["since"]; + before?: components["parameters"]["before"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["thread"][]; + }; + }; + }; + /** + * Marks all notifications in a repository as "read" removes them from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`. + */ + "activity/mark-repo-notifications-as-read": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + last_read_at?: string; + }; + }; + responses: { + /** + * response + */ + "202": unknown; + }; + }; + "repos/get-pages": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["page"]; + }; + "404": unknown; + }; + }; + /** + * Configures a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages)." + */ + "repos/create-pages-site": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The source branch and directory used to publish your Pages site. + */ + source: { + /** + * The repository branch used to publish your site's source files. + */ + branch: string; + /** + * The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. Default: `/` + */ + path?: "/" | "/docs"; + }; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["page"]; + }; + "409": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * Updates information for a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages). + */ + "repos/update-information-about-pages-site": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/)." + */ + cname?: string | null; + source: Partial<"gh-pages" | "master" | "master /docs"> & + Partial<{ + /** + * The repository branch used to publish your site's source files. + */ + branch: string; + /** + * The repository directory that includes the source files for the Pages site. Allowed paths are `/` or `/docs`. + */ + path: "/" | "/docs"; + }>; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "400": unknown; + "422": unknown; + }; + }; + "repos/delete-pages-site": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + "415": unknown; + "422": unknown; + }; + }; + "repos/list-pages-builds": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["page-build"][]; + }; + }; + }; + /** + * You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures. + * + * Build requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes. + */ + "repos/request-pages-build": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["page-build-status"]; + }; + }; + }; + "repos/get-latest-pages-build": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["page-build"]; + }; + }; + }; + "repos/get-pages-build": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + build_id: number; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["page-build"]; + }; + }; + }; + /** + * Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + "projects/list-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project"][]; + }; + "401": unknown; + "403": unknown; + "404": unknown; + "410": unknown; + "422": unknown; + }; + }; + /** + * Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + "projects/create-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the project. + */ + name: string; + /** + * The description of the project. + */ + body?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["project"]; + }; + "401": unknown; + "403": unknown; + "404": unknown; + "410": unknown; + "422": unknown; + }; + }; + /** + * Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + "pulls/list": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * Either `open`, `closed`, or `all` to filter by state. + */ + state?: "open" | "closed" | "all"; + /** + * 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`. + */ + head?: string; + /** + * Filter pulls by base branch name. Example: `gh-pages`. + */ + base?: string; + /** + * 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). + */ + sort?: "created" | "updated" | "popularity" | "long-running"; + /** + * The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. + */ + direction?: "asc" | "desc"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-simple"][]; + }; + "304": never; + "422": unknown; + }; + }; + /** + * Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request. + * + * You can create a new pull request. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + "pulls/create": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The title of the new pull request. + */ + title?: string; + /** + * 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`. + */ + head: string; + /** + * 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. + */ + base: string; + /** + * The contents of the pull request. + */ + body?: string; + /** + * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. + */ + maintainer_can_modify?: boolean; + /** + * 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. + */ + draft?: boolean; + issue?: number; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["pull-request"]; + }; + "403": unknown; + "422": unknown; + }; + }; + /** + * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. + * + * Lists review comments for all pull requests in a repository. By default, review comments are in ascending order by ID. + * + * **Multi-line comment summary** + * + * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. + * + * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. + * + * If you use the `comfort-fade` preview header, your response will show: + * + * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. + * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. + * + * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: + * + * * For multi-line comments, the last line of the comment range for the `position` attribute. + * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table. + * + * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions. + */ + "pulls/list-review-comments-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + sort?: components["parameters"]["sort"]; + /** + * Can be either `asc` or `desc`. Ignored without `sort` parameter. + */ + direction?: "asc" | "desc"; + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review-comment"][]; + }; + }; + }; + /** + * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. + * + * Provides details for a review comment. + * + * **Multi-line comment summary** + * + * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. + * + * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. + * + * If you use the `comfort-fade` preview header, your response will show: + * + * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. + * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. + * + * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: + * + * * For multi-line comments, the last line of the comment range for the `position` attribute. + * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table. + * + * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions. + */ + "pulls/get-review-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review-comment"]; + }; + "404": unknown; + }; + }; + /** + * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. + * + * Enables you to edit a review comment. + * + * **Multi-line comment summary** + * + * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. + * + * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. + * + * If you use the `comfort-fade` preview header, your response will show: + * + * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. + * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. + * + * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: + * + * * For multi-line comments, the last line of the comment range for the `position` attribute. + * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table. + */ + "pulls/update-review-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The text of the reply to the review comment. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review-comment"]; + }; + }; + }; + /** + * Deletes a review comment. + */ + "pulls/delete-review-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + }; + }; + /** + * List the reactions to a [pull request review comment](https://docs.github.com/rest/reference/pulls#review-comments). + */ + "reactions/list-for-pull-request-review-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + query: { + /** + * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a pull request review comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["reaction"][]; + }; + "404": unknown; + "415": unknown; + }; + }; + /** + * Create a reaction to a [pull request review comment](https://docs.github.com/rest/reference/pulls#comments). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment. + */ + "reactions/create-for-pull-request-review-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the pull request review comment. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + }; + }; + responses: { + /** + * Reaction exists + */ + "200": { + "application/json": components["schemas"]["reaction"]; + }; + /** + * Reaction created + */ + "201": { + "application/json": components["schemas"]["reaction"]; + }; + "415": unknown; + "422": unknown; + }; + }; + /** + * **Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.` + * + * Delete a reaction to a [pull request review comment](https://docs.github.com/rest/reference/pulls#review-comments). + */ + "reactions/delete-for-pull-request-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + comment_id: components["parameters"]["comment_id"]; + reaction_id: components["parameters"]["reaction-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Lists details of a pull request by providing its number. + * + * When you get, [create](https://docs.github.com/rest/reference/pulls/#create-a-pull-request), or [edit](https://docs.github.com/rest/reference/pulls#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". + * + * The value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit. + * + * The value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request: + * + * * If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit. + * * If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch. + * * If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to. + * + * Pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. + */ + "pulls/get": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + }; + responses: { + /** + * Pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. + */ + "200": { + "application/json": components["schemas"]["pull-request"]; + }; + "304": never; + "404": unknown; + "500": unknown; + }; + }; + /** + * Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request. + */ + "pulls/update": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The title of the pull request. + */ + title?: string; + /** + * The contents of the pull request. + */ + body?: string; + /** + * State of this Pull Request. Either `open` or `closed`. + */ + state?: "open" | "closed"; + /** + * 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. + */ + base?: string; + /** + * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. + */ + maintainer_can_modify?: boolean; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request"]; + }; + "403": unknown; + "422": unknown; + }; + }; + /** + * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. + * + * Lists all review comments for a pull request. By default, review comments are in ascending order by ID. + * + * **Multi-line comment summary** + * + * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. + * + * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. + * + * If you use the `comfort-fade` preview header, your response will show: + * + * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. + * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. + * + * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: + * + * * For multi-line comments, the last line of the comment range for the `position` attribute. + * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table. + * + * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions. + */ + "pulls/list-review-comments": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + query: { + sort?: components["parameters"]["sort"]; + /** + * Can be either `asc` or `desc`. Ignored without `sort` parameter. + */ + direction?: "asc" | "desc"; + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review-comment"][]; + }; + }; + }; + /** + * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. + * + * Creates a review comment in the pull request diff. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/rest/reference/issues#create-an-issue-comment)." We recommend creating a review comment using `line`, `side`, and optionally `start_line` and `start_side` if your comment applies to more than one line in the pull request diff. + * + * You can still create a review comment using the `position` parameter. When you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. For more information, see [Multi-line comment summary](https://docs.github.com/rest/reference/pulls#multi-line-comment-summary-3). + * + * **Note:** The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + * + * **Multi-line comment summary** + * + * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. + * + * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. + * + * If you use the `comfort-fade` preview header, your response will show: + * + * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. + * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. + * + * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: + * + * * For multi-line comments, the last line of the comment range for the `position` attribute. + * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table. + */ + "pulls/create-review-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The text of the review comment. + */ + body: string; + /** + * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. + */ + commit_id?: string; + /** + * The relative path to the file that necessitates a comment. + */ + path: string; + /** + * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. + */ + position?: number; + /** + * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. + */ + side?: "LEFT" | "RIGHT"; + /** + * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. + */ + line?: number; + /** + * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. + */ + start_line?: number; + /** + * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. + */ + start_side?: "LEFT" | "RIGHT" | "side"; + in_reply_to?: number; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["pull-request-review-comment"]; + }; + "403": unknown; + "422": unknown; + }; + }; + /** + * Creates a reply to a review comment for a pull request. For the `comment_id`, provide the ID of the review comment you are replying to. This must be the ID of a _top-level review comment_, not a reply to that comment. Replies to replies are not supported. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + "pulls/create-reply-for-review-comment": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + comment_id: components["parameters"]["comment_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The text of the review comment. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["pull-request-review-comment"]; + }; + "404": unknown; + }; + }; + /** + * Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [List commits](https://docs.github.com/rest/reference/repos#list-commits) endpoint. + */ + "pulls/list-commits": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["commit"][]; + }; + }; + }; + /** + * **Note:** Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default. + */ + "pulls/list-files": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["diff-entry"][]; + }; + "422": unknown; + "500": unknown; + }; + }; + "pulls/check-if-merged": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + }; + responses: { + /** + * Response if pull request has been merged + */ + "204": never; + /** + * Response if pull request has not been merged + */ + "404": unknown; + }; + }; + /** + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/reference/guides#dealing-with-abuse-rate-limits)" for details. + */ + "pulls/merge": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * Title for the automatic commit message. + */ + commit_title?: string; + /** + * Extra detail to append to automatic commit message. + */ + commit_message?: string; + /** + * SHA that pull request head must match to allow merge. + */ + sha?: string; + /** + * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. + */ + merge_method?: "merge" | "squash" | "rebase"; + }; + }; + responses: { + /** + * Response if merge was successful + */ + "200": { + "application/json": components["schemas"]["pull-request-merge-result"]; + }; + "403": unknown; + "404": unknown; + /** + * Response if merge cannot be performed + */ + "405": { + "application/json": { message?: string; documentation_url?: string }; + }; + /** + * Response if sha was provided and pull request head did not match + */ + "409": { + "application/json": { message?: string; documentation_url?: string }; + }; + "422": unknown; + }; + }; + "pulls/list-requested-reviewers": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review-request"]; + }; + }; + }; + /** + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/reference/guides#dealing-with-abuse-rate-limits)" for details. + */ + "pulls/request-reviewers": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * An array of user `login`s that will be requested. + */ + reviewers?: string[]; + /** + * An array of team `slug`s that will be requested. + */ + team_reviewers?: string[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["pull-request-simple"]; + }; + "403": unknown; + /** + * Response if user is not a collaborator + */ + "422": unknown; + }; + }; + "pulls/remove-requested-reviewers": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * An array of user `login`s that will be removed. + */ + reviewers?: string[]; + /** + * An array of team `slug`s that will be removed. + */ + team_reviewers?: string[]; + }; + }; + responses: { + /** + * response + */ + "200": unknown; + "422": unknown; + }; + }; + /** + * The list of reviews returns in chronological order. + */ + "pulls/list-reviews": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * The list of reviews returns in chronological order. + */ + "200": { + "application/json": components["schemas"]["pull-request-review"][]; + }; + }; + }; + /** + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + * + * Pull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response. + * + * **Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/rest/reference/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) endpoint. + * + * The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. + */ + "pulls/create-review": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + commit_id?: string; + /** + * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. + */ + body?: string; + /** + * 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/rest/reference/pulls#submit-a-review-for-a-pull-request) when you are ready. + */ + event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; + /** + * Use the following table to specify the location, destination, and contents of the draft review comment. + */ + comments?: { + /** + * The relative path to the file that necessitates a review comment. + */ + path: string; + /** + * The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below. + */ + position?: number; + /** + * Text of the review comment. + */ + body: string; + line?: number; + side?: string; + start_line?: number; + start_side?: string; + }[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review"]; + }; + "403": unknown; + "422": unknown; + }; + }; + "pulls/get-review": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + review_id: components["parameters"]["review_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review"]; + }; + "404": unknown; + }; + }; + /** + * Update the review summary comment with new text. + */ + "pulls/update-review": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + review_id: components["parameters"]["review_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The body text of the pull request review. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review"]; + }; + "422": unknown; + }; + }; + "pulls/delete-pending-review": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + review_id: components["parameters"]["review_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * List comments for a specific pull request review. + */ + "pulls/list-comments-for-review": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + review_id: components["parameters"]["review_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["review-comment"][]; + }; + "404": unknown; + }; + }; + /** + * **Note:** To dismiss a pull request review on a [protected branch](https://docs.github.com/rest/reference/repos#branches), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews. + */ + "pulls/dismiss-review": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + review_id: components["parameters"]["review_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The message for the pull request review dismissal + */ + message: string; + event?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review"]; + }; + "404": unknown; + "422": unknown; + }; + }; + "pulls/submit-review": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + review_id: components["parameters"]["review_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The body text of the pull request review + */ + body?: string; + /** + * 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. + */ + event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["pull-request-review"]; + }; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch. + */ + "pulls/update-branch": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + pull_number: components["parameters"]["pull-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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/rest/reference/repos#list-commits)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. + */ + expected_head_sha?: string; + }; + }; + responses: { + /** + * response + */ + "202": { + "application/json": { message?: string; url?: string }; + }; + "403": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * Gets the preferred README for a repository. + * + * READMEs support [custom media types](https://docs.github.com/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML. + */ + "repos/get-readme": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + /** + * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) + */ + ref?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["content-file"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs.github.com/rest/reference/repos#list-repository-tags). + * + * Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. + */ + "repos/list-releases": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["release"][]; + }; + "404": unknown; + }; + }; + /** + * Users with push access to the repository can create a release. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + "repos/create-release": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the tag. + */ + tag_name: string; + /** + * 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`). + */ + target_commitish?: string; + /** + * The name of the release. + */ + name?: string; + /** + * Text describing the contents of the tag. + */ + body?: string; + /** + * `true` to create a draft (unpublished) release, `false` to create a published one. + */ + draft?: boolean; + /** + * `true` to identify the release as a prerelease. `false` to identify the release as a full release. + */ + prerelease?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["release"]; + }; + "422": unknown; + }; + }; + /** + * To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/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. + */ + "repos/get-release-asset": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + asset_id: components["parameters"]["asset_id"]; + }; + }; + responses: { + /** + * To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/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. + */ + "200": { + "application/json": components["schemas"]["release-asset"]; + }; + "302": never; + "404": unknown; + "415": unknown; + }; + }; + /** + * Users with push access to the repository can edit a release asset. + */ + "repos/update-release-asset": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + asset_id: components["parameters"]["asset_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The file name of the asset. + */ + name?: string; + /** + * An alternate short description of the asset. Used in place of the filename. + */ + label?: string; + state?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["release-asset"]; + }; + }; + }; + "repos/delete-release-asset": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + asset_id: components["parameters"]["asset_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * View the latest published full release for the repository. + * + * The latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published. + */ + "repos/get-latest-release": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["release"]; + }; + }; + }; + /** + * Get a published release with the specified tag. + */ + "repos/get-release-by-tag": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + /** + * tag+ parameter + */ + tag: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["release"]; + }; + "404": unknown; + }; + }; + /** + * **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/rest/overview/resources-in-the-rest-api#hypermedia). + */ + "repos/get-release": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + release_id: components["parameters"]["release_id"]; + }; + }; + responses: { + /** + * **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/rest/overview/resources-in-the-rest-api#hypermedia). + */ + "200": { + "application/json": components["schemas"]["release"]; + }; + "404": unknown; + }; + }; + /** + * Users with push access to the repository can edit a release. + */ + "repos/update-release": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + release_id: components["parameters"]["release_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the tag. + */ + tag_name?: string; + /** + * 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`). + */ + target_commitish?: string; + /** + * The name of the release. + */ + name?: string; + /** + * Text describing the contents of the tag. + */ + body?: string; + /** + * `true` makes the release a draft, and `false` publishes the release. + */ + draft?: boolean; + /** + * `true` to identify the release as a prerelease, `false` to identify the release as a full release. + */ + prerelease?: boolean; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["release"]; + }; + }; + }; + /** + * Users with push access to the repository can delete a release. + */ + "repos/delete-release": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + release_id: components["parameters"]["release_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + "repos/list-release-assets": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + release_id: components["parameters"]["release_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["release-asset"][]; + }; + }; + }; + /** + * This endpoint makes use of [a Hypermedia relation](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned in + * the response of the [Create a release endpoint](https://docs.github.com/rest/reference/repos#create-a-release) to upload a release asset. + * + * You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint. + * + * Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: + * + * `application/zip` + * + * GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example, + * you'll still need to pass your authentication to be able to upload an asset. + * + * When an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted. + * + * **Notes:** + * * GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List assets for a release](https://docs.github.com/rest/reference/repos#list-assets-for-a-release)" + * endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://github.com/contact). + * * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset. + */ + "repos/upload-release-asset": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + release_id: components["parameters"]["release_id"]; + }; + query: { + name?: string; + label?: string; + }; + }; + requestBody: { + "*/*": string; + }; + responses: { + /** + * Response for successful upload + */ + "201": { + "application/json": components["schemas"]["release-asset"]; + }; + }; + }; + /** + * Lists the people that have starred the repository. + * + * You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: + */ + "activity/list-stargazers-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + "application/vnd.github.v3.star+json": components["schemas"]["stargazer"][]; + }; + "422": unknown; + }; + }; + /** + * Returns a weekly aggregate of the number of additions and deletions pushed to a repository. + */ + "repos/get-code-frequency-stats": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Returns a weekly aggregate of the number of additions and deletions pushed to a repository. + */ + "200": { + "application/json": components["schemas"]["code-frequency-stat"][]; + }; + }; + }; + /** + * Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`. + */ + "repos/get-commit-activity-stats": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["commit-activity"][]; + }; + }; + }; + /** + * Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: + * + * * `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 + */ + "repos/get-contributors-stats": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * * `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 + */ + "200": { + "application/json": components["schemas"]["contributor-activity"][]; + }; + }; + }; + /** + * Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`. + * + * The array order is oldest week (index 0) to most recent week. + */ + "repos/get-participation-stats": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * The array order is oldest week (index 0) to most recent week. + */ + "200": { + "application/json": components["schemas"]["participation-stats"]; + }; + "404": unknown; + }; + }; + /** + * Each array contains the day number, hour number, and number of commits: + * + * * `0-6`: Sunday - Saturday + * * `0-23`: Hour of day + * * Number of commits + * + * 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. + */ + "repos/get-punch-card-stats": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * 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. + */ + "200": { + "application/json": components["schemas"]["code-frequency-stat"][]; + }; + }; + }; + /** + * Users with push access in a repository can create commit statuses for a given SHA. + * + * Note: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error. + */ + "repos/create-commit-status": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + sha: string; + }; + }; + requestBody: { + "application/json": { + /** + * The state of the status. Can be one of `error`, `failure`, `pending`, or `success`. + */ + state: "error" | "failure" | "pending" | "success"; + /** + * 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` + */ + target_url?: string; + /** + * A short description of the status. + */ + description?: string; + /** + * A string label to differentiate this status from the status of other systems. + */ + context?: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["status"]; + }; + }; + }; + /** + * Lists the people watching the specified repository. + */ + "activity/list-watchers-for-repo": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + }; + }; + "activity/get-repo-subscription": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Response if you subscribe to the repository + */ + "200": { + "application/json": components["schemas"]["repository-subscription"]; + }; + "403": unknown; + /** + * Response if you don't subscribe to the repository + */ + "404": unknown; + }; + }; + /** + * If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://docs.github.com/rest/reference/activity#delete-a-repository-subscription) completely. + */ + "activity/set-repo-subscription": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * Determines if notifications should be received from this repository. + */ + subscribed?: boolean; + /** + * Determines if all notifications should be blocked from this repository. + */ + ignored?: boolean; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["repository-subscription"]; + }; + }; + }; + /** + * This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://docs.github.com/rest/reference/activity#set-a-repository-subscription). + */ + "activity/delete-repo-subscription": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + "repos/list-tags": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["tag"][]; + }; + }; + }; + /** + * Gets a redirect URL to download a tar archive for a repository. If you omit `:ref`, the repository’s default branch (usually + * `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use + * the `Location` header to make a second `GET` request. + * **Note**: For private repositories, these links are temporary and expire after five minutes. + */ + "repos/download-tarball-archive": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + ref: string; + }; + }; + responses: { + /** + * response + */ + "302": never; + }; + }; + "repos/list-teams": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team"][]; + }; + }; + }; + "repos/get-all-topics": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["topic"]; + }; + "404": unknown; + "415": unknown; + }; + }; + "repos/replace-all-topics": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + names: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["topic"]; + }; + "404": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. + */ + "repos/get-clones": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per?: components["parameters"]["per"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["clone-traffic"]; + }; + "403": unknown; + }; + }; + /** + * Get the top 10 popular contents over the last 14 days. + */ + "repos/get-top-paths": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["content-traffic"][]; + }; + "403": unknown; + }; + }; + /** + * Get the top 10 referrers over the last 14 days. + */ + "repos/get-top-referrers": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["referrer-traffic"][]; + }; + "403": unknown; + }; + }; + /** + * Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. + */ + "repos/get-views": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + query: { + per?: components["parameters"]["per"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["view-traffic"]; + }; + "403": unknown; + }; + }; + /** + * A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/). + */ + "repos/transfer": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * **Required:** The username or organization name the repository will be transferred to. + */ + new_owner?: string; + /** + * ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. + */ + team_ids?: number[]; + }; + }; + responses: { + /** + * response + */ + "202": { + "application/json": components["schemas"]["repository"]; + }; + }; + }; + /** + * Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)". + */ + "repos/check-vulnerability-alerts": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Response if repository is enabled with vulnerability alerts + */ + "204": never; + /** + * Response if repository is not enabled with vulnerability alerts + */ + "404": unknown; + }; + }; + /** + * Enables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)". + */ + "repos/enable-vulnerability-alerts": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Disables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)". + */ + "repos/disable-vulnerability-alerts": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Gets a redirect URL to download a zip archive for a repository. If you omit `:ref`, the repository’s default branch (usually + * `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use + * the `Location` header to make a second `GET` request. + * **Note**: For private repositories, these links are temporary and expire after five minutes. + */ + "repos/download-zipball-archive": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + ref: string; + }; + }; + responses: { + /** + * response + */ + "302": never; + }; + }; + /** + * Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. The authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [Get a repository](https://docs.github.com/rest/reference/repos#get-a-repository) endpoint and check that the `is_template` key is `true`. + * + * **OAuth scope requirements** + * + * When using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: + * + * * `public_repo` scope or `repo` scope to create a public repository + * * `repo` scope to create a private repository + */ + "repos/create-using-template": { + parameters: { + path: { + template_owner: string; + template_repo: string; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + owner?: string; + /** + * The name of the new repository. + */ + name: string; + /** + * A short description of the new repository. + */ + description?: string; + /** + * 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`. + */ + include_all_branches?: boolean; + /** + * Either `true` to create a new private repository or `false` to create a new public one. + */ + private?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["repository"]; + }; + }; + }; + /** + * Lists all public repositories in the order that they were created. + * + * Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of repositories. + */ + "repos/list-public": { + parameters: { + query: { + since?: components["parameters"]["since-repo"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["minimal-repository"][]; + }; + "304": never; + "422": unknown; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + */ + "enterprise-admin/list-provisioned-groups-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + query: { + startIndex?: components["parameters"]["start_index"]; + count?: components["parameters"]["count"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["scim-group-list-enterprise"]; + }; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + * + * Provision an enterprise group, and invite users to the group. This sends invitation emails to the email address of the invited users to join the GitHub organization that the SCIM group corresponds to. + */ + "enterprise-admin/provision-and-invite-enterprise-group": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + requestBody: { + "application/json": { + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * The name of the SCIM group. This must match the GitHub organization that the group maps to. + */ + displayName: string; + members?: { + /** + * The SCIM user ID for a user. + */ + value: string; + }[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["scim-enterprise-group"]; + }; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + */ + "enterprise-admin/get-provisioning-information-for-enterprise-group": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + scim_group_id: components["parameters"]["scim_group_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["scim-enterprise-group"]; + }; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + * + * Replaces an existing provisioned group’s information. You must provide all the information required for the group as if you were provisioning it for the first time. Any existing group information that you don't provide will be removed, including group membership. If you want to only update a specific attribute, use the [Update an attribute for a SCIM enterprise group](#update-an-attribute-for-a-scim-enterprise-group) endpoint instead. + */ + "enterprise-admin/set-information-for-provisioned-enterprise-group": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + scim_group_id: components["parameters"]["scim_group_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * The name of the SCIM group. This must match the GitHub organization that the group maps to. + */ + displayName: string; + members?: { + /** + * The SCIM user ID for a user. + */ + value: string; + }[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["scim-enterprise-group"]; + }; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + * + * Allows you to change a provisioned group’s individual attributes. To change a group’s values, you must provide a specific Operations JSON format that contains at least one of the add, remove, or replace operations. For examples and more information on the SCIM operations format, see the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2). + */ + "enterprise-admin/update-attribute-for-enterprise-group": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + scim_group_id: components["parameters"]["scim_group_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * Array of [SCIM operations](https://tools.ietf.org/html/rfc7644#section-3.5.2). + */ + Operations: { [key: string]: any }[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["scim-enterprise-group"]; + }; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + */ + "enterprise-admin/delete-scim-group-from-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + scim_group_id: components["parameters"]["scim_group_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + * + * Retrieves a paginated list of all provisioned enterprise members, including pending invitations. + * + * When a user with a SAML-provisioned external identity leaves (or is removed from) an enterprise, the account's metadata is immediately removed. However, the returned list of user accounts might not always match the organization or enterprise member list you see on GitHub. This can happen in certain cases where an external identity associated with an organization will not match an organization member: + * - When a user with a SCIM-provisioned external identity is removed from an enterprise, the account's metadata is preserved to allow the user to re-join the organization in the future. + * - When inviting a user to join an organization, you can expect to see their external identity in the results before they accept the invitation, or if the invitation is cancelled (or never accepted). + * - When a user is invited over SCIM, an external identity is created that matches with the invitee's email address. However, this identity is only linked to a user account when the user accepts the invitation by going through SAML SSO. + * + * The returned list of external identities can include an entry for a `null` user. These are unlinked SAML identities that are created when a user goes through the following Single Sign-On (SSO) process but does not sign in to their GitHub account after completing SSO: + * + * 1. The user is granted access by the IdP and is not a member of the GitHub enterprise. + * + * 1. The user attempts to access the GitHub enterprise and initiates the SAML SSO process, and is not currently signed in to their GitHub account. + * + * 1. After successfully authenticating with the SAML SSO IdP, the `null` external identity entry is created and the user is prompted to sign in to their GitHub account: + * - If the user signs in, their GitHub account is linked to this entry. + * - If the user does not sign in (or does not create a new account when prompted), they are not added to the GitHub enterprise, and the external identity `null` entry remains in place. + */ + "enterprise-admin/list-provisioned-identities-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + query: { + startIndex?: components["parameters"]["start_index"]; + count?: components["parameters"]["count"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["scim-user-list-enterprise"]; + }; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + * + * Provision enterprise membership for a user, and send organization invitation emails to the email address. + * + * You can optionally include the groups a user will be invited to join. If you do not provide a list of `groups`, the user is provisioned for the enterprise, but no organization invitation emails will be sent. + */ + "enterprise-admin/provision-and-invite-enterprise-user": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + }; + }; + requestBody: { + "application/json": { + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * The username for the user. + */ + userName: string; + name: { + /** + * The first name of the user. + */ + givenName: string; + /** + * The last name of the user. + */ + familyName: string; + }; + /** + * List of user emails. + */ + emails: { + /** + * The email address. + */ + value: string; + /** + * The type of email address. + */ + type: string; + /** + * Whether this email address is the primary address. + */ + primary: boolean; + }[]; + /** + * List of SCIM group IDs the user is a member of. + */ + groups?: { value?: string }[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["scim-enterprise-user"]; + }; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + */ + "enterprise-admin/get-provisioning-information-for-enterprise-user": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + scim_user_id: components["parameters"]["scim_user_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["scim-enterprise-user"]; + }; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + * + * Replaces an existing provisioned user's information. You must provide all the information required for the user as if you were provisioning them for the first time. Any existing user information that you don't provide will be removed. If you want to only update a specific attribute, use the [Update an attribute for a SCIM user](#update-an-attribute-for-an-enterprise-scim-user) endpoint instead. + * + * You must at least provide the required values for the user: `userName`, `name`, and `emails`. + * + * **Warning:** Setting `active: false` removes the user from the enterprise, deletes the external identity, and deletes the associated `{scim_user_id}`. + */ + "enterprise-admin/set-information-for-provisioned-enterprise-user": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + scim_user_id: components["parameters"]["scim_user_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * The username for the user. + */ + userName: string; + name: { + /** + * The first name of the user. + */ + givenName: string; + /** + * The last name of the user. + */ + familyName: string; + }; + /** + * List of user emails. + */ + emails: { + /** + * The email address. + */ + value: string; + /** + * The type of email address. + */ + type: string; + /** + * Whether this email address is the primary address. + */ + primary: boolean; + }[]; + /** + * List of SCIM group IDs the user is a member of. + */ + groups?: { value?: string }[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["scim-enterprise-user"]; + }; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + * + * Allows you to change a provisioned user's individual attributes. To change a user's values, you must provide a specific `Operations` JSON format that contains at least one of the `add`, `remove`, or `replace` operations. For examples and more information on the SCIM operations format, see the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2). + * + * **Note:** Complicated SCIM `path` selectors that include filters are not supported. For example, a `path` selector defined as `"path": "emails[type eq \"work\"]"` will not work. + * + * **Warning:** If you set `active:false` using the `replace` operation (as shown in the JSON example below), it removes the user from the enterprise, deletes the external identity, and deletes the associated `:scim_user_id`. + * + * ``` + * { + * "Operations":[{ + * "op":"replace", + * "value":{ + * "active":false + * } + * }] + * } + * ``` + */ + "enterprise-admin/update-attribute-for-enterprise-user": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + scim_user_id: components["parameters"]["scim_user_id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The SCIM schema URIs. + */ + schemas: string[]; + /** + * Array of [SCIM operations](https://tools.ietf.org/html/rfc7644#section-3.5.2). + */ + Operations: { [key: string]: any }[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["scim-enterprise-user"]; + }; + }; + }; + /** + * **Note:** The SCIM API endpoints for enterprise accounts are currently in beta and are subject to change. + */ + "enterprise-admin/delete-user-from-enterprise": { + parameters: { + path: { + enterprise: components["parameters"]["enterprise"]; + scim_user_id: components["parameters"]["scim_user_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * Retrieves a paginated list of all provisioned organization members, including pending invitations. If you provide the `filter` parameter, the resources for all matching provisions members are returned. + * + * When a user with a SAML-provisioned external identity leaves (or is removed from) an organization, the account's metadata is immediately removed. However, the returned list of user accounts might not always match the organization or enterprise member list you see on GitHub. This can happen in certain cases where an external identity associated with an organization will not match an organization member: + * - When a user with a SCIM-provisioned external identity is removed from an organization, the account's metadata is preserved to allow the user to re-join the organization in the future. + * - When inviting a user to join an organization, you can expect to see their external identity in the results before they accept the invitation, or if the invitation is cancelled (or never accepted). + * - When a user is invited over SCIM, an external identity is created that matches with the invitee's email address. However, this identity is only linked to a user account when the user accepts the invitation by going through SAML SSO. + * + * The returned list of external identities can include an entry for a `null` user. These are unlinked SAML identities that are created when a user goes through the following Single Sign-On (SSO) process but does not sign in to their GitHub account after completing SSO: + * + * 1. The user is granted access by the IdP and is not a member of the GitHub organization. + * + * 1. The user attempts to access the GitHub organization and initiates the SAML SSO process, and is not currently signed in to their GitHub account. + * + * 1. After successfully authenticating with the SAML SSO IdP, the `null` external identity entry is created and the user is prompted to sign in to their GitHub account: + * - If the user signs in, their GitHub account is linked to this entry. + * - If the user does not sign in (or does not create a new account when prompted), they are not added to the GitHub organization, and the external identity `null` entry remains in place. + */ + "scim/list-provisioned-identities": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + query: { + /** + * Used for pagination: the index of the first result to return. + */ + startIndex?: number; + /** + * Used for pagination: the number of results to return. + */ + count?: number; + /** + * Filters results using the equals query parameter operator (`eq`). You can filter results that are equal to `id`, `userName`, `emails`, and `external_id`. For example, to search for an identity with the `userName` Octocat, you would use this query: + * + * `?filter=userName%20eq%20\"Octocat\"`. + * + * To filter results for for the identity with the email `octocat@github.com`, you would use this query: + * + * `?filter=emails%20eq%20\"octocat@github.com\"`. + */ + filter?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/scim+json": components["schemas"]["scim-user-list"]; + }; + "304": never; + "400": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Provision organization membership for a user, and send an activation email to the email address. + */ + "scim/provision-and-invite-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * Configured by the admin. Could be an email, login, or username + */ + userName: string; + /** + * The name of the user, suitable for display to end-users + */ + displayName?: string; + name: { givenName: string; familyName: string; formatted?: string }; + /** + * user emails + */ + emails: { value: string; primary?: boolean; type?: string }[]; + schemas?: string[]; + externalId?: string; + groups?: string[]; + active?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/scim+json": components["schemas"]["scim-user"]; + }; + "304": never; + "400": unknown; + "403": unknown; + "404": unknown; + "409": unknown; + "500": unknown; + }; + }; + "scim/get-provisioning-information-for-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + scim_user_id: components["parameters"]["scim_user_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/scim+json": components["schemas"]["scim-user"]; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Replaces an existing provisioned user's information. You must provide all the information required for the user as if you were provisioning them for the first time. Any existing user information that you don't provide will be removed. If you want to only update a specific attribute, use the [Update an attribute for a SCIM user](https://docs.github.com/rest/reference/scim#update-an-attribute-for-a-scim-user) endpoint instead. + * + * You must at least provide the required values for the user: `userName`, `name`, and `emails`. + * + * **Warning:** Setting `active: false` removes the user from the organization, deletes the external identity, and deletes the associated `{scim_user_id}`. + */ + "scim/set-information-for-provisioned-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + scim_user_id: components["parameters"]["scim_user_id"]; + }; + }; + requestBody: { + "application/json": { + schemas?: string[]; + /** + * The name of the user, suitable for display to end-users + */ + displayName?: string; + externalId?: string; + groups?: string[]; + active?: boolean; + /** + * Configured by the admin. Could be an email, login, or username + */ + userName: string; + name: { givenName: string; familyName: string; formatted?: string }; + /** + * user emails + */ + emails: { type?: string; value: string; primary?: boolean }[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/scim+json": components["schemas"]["scim-user"]; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Allows you to change a provisioned user's individual attributes. To change a user's values, you must provide a specific `Operations` JSON format that contains at least one of the `add`, `remove`, or `replace` operations. For examples and more information on the SCIM operations format, see the [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.5.2). + * + * **Note:** Complicated SCIM `path` selectors that include filters are not supported. For example, a `path` selector defined as `"path": "emails[type eq \"work\"]"` will not work. + * + * **Warning:** If you set `active:false` using the `replace` operation (as shown in the JSON example below), it removes the user from the organization, deletes the external identity, and deletes the associated `:scim_user_id`. + * + * ``` + * { + * "Operations":[{ + * "op":"replace", + * "value":{ + * "active":false + * } + * }] + * } + * ``` + */ + "scim/update-attribute-for-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + scim_user_id: components["parameters"]["scim_user_id"]; + }; + }; + requestBody: { + "application/json": { + schemas?: string[]; + /** + * Set of operations to be performed + */ + Operations: { + op: "add" | "remove" | "replace"; + path?: string; + value?: + | { + active?: boolean | null; + userName?: string | null; + externalId?: string | null; + givenName?: string | null; + familyName?: string | null; + } + | { value?: string; primary?: boolean }[] + | string; + }[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/scim+json": components["schemas"]["scim-user"]; + }; + "304": never; + "400": unknown; + "403": unknown; + "404": unknown; + /** + * Too many requests + */ + "429": { + "application/json": components["schemas"]["basic-error"]; + }; + }; + }; + "scim/delete-user-from-org": { + parameters: { + path: { + org: components["parameters"]["org"]; + scim_user_id: components["parameters"]["scim_user_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Searches for query terms inside of a file. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery) repository, your query would look something like this: + * + * `q=addClass+in:file+language:js+repo:jquery/jquery` + * + * This query searches for the keyword `addClass` within a file's contents. The query limits the search to files where the language is JavaScript in the `jquery/jquery` repository. + * + * #### Considerations for code search + * + * Due to the complexity of searching code, there are a few restrictions on how searches are performed: + * + * * Only the _default branch_ is considered. In most cases, this will be the `master` branch. + * * Only files smaller than 384 KB are searchable. + * * You must always include at least one search term when searching source code. For example, searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) is not valid, while [`amazing + * language:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is. + */ + "search/code": { + parameters: { + query: { + /** + * 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/rest/reference/search#constructing-a-search-query). See "[Searching code](https://help.github.com/articles/searching-code/)" for a detailed list of qualifiers. + */ + q: string; + /** + * Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/reference/search#ranking-search-results) + */ + sort?: "indexed"; + order?: components["parameters"]["order"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + incomplete_results?: boolean; + items?: components["schemas"]["code-search-result-item"][]; + }; + }; + "304": never; + "403": unknown; + "422": unknown; + "503": unknown; + }; + }; + /** + * Find commits via various criteria on the default branch (usually `master`). This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text match + * metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this: + * + * `q=repo:octocat/Spoon-Knife+css` + */ + "search/commits": { + parameters: { + query: { + /** + * 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/rest/reference/search#constructing-a-search-query). See "[Searching commits](https://help.github.com/articles/searching-commits/)" for a detailed list of qualifiers. + */ + q: string; + /** + * Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://docs.github.com/rest/reference/search#ranking-search-results) + */ + sort?: "author-date" | "committer-date"; + order?: components["parameters"]["order"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + incomplete_results?: boolean; + items?: components["schemas"]["commit-search-result-item"][]; + }; + }; + "304": never; + "415": unknown; + }; + }; + /** + * Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted + * search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this. + * + * `q=windows+label:bug+language:python+state:open&sort=created&order=asc` + * + * This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. + * + * **Note:** For [user-to-server](https://docs.github.com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) GitHub App requests, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." + */ + "search/issues-and-pull-requests": { + parameters: { + query: { + /** + * 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/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. + */ + q: string; + /** + * 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/rest/reference/search#ranking-search-results) + */ + sort?: + | "comments" + | "reactions" + | "reactions-+1" + | "reactions--1" + | "reactions-smile" + | "reactions-thinking_face" + | "reactions-heart" + | "reactions-tada" + | "interactions" + | "created" + | "updated"; + order?: components["parameters"]["order"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + incomplete_results?: boolean; + items?: components["schemas"]["issue-search-result-item"][]; + }; + }; + "304": never; + "403": unknown; + "422": unknown; + "503": unknown; + }; + }; + /** + * Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this: + * + * `q=bug+defect+enhancement&repository_id=64778136` + * + * The labels that best match the query appear first in the search results. + */ + "search/labels": { + parameters: { + query: { + /** + * The id of the repository. + */ + repository_id: number; + /** + * 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/rest/reference/search#constructing-a-search-query). + */ + q: string; + /** + * Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://docs.github.com/rest/reference/search#ranking-search-results) + */ + sort?: "created" | "updated"; + order?: components["parameters"]["order"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + incomplete_results?: boolean; + items?: components["schemas"]["label-search-result-item"][]; + }; + }; + "304": never; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this: + * + * `q=tetris+language:assembly&sort=stars&order=desc` + * + * This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results. + * + * When you include the `mercy` preview header, you can also search for multiple topics by adding more `topic:` instances. For example, your query might look like this: + * + * `q=topic:ruby+topic:rails` + */ + "search/repos": { + parameters: { + query: { + /** + * 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/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. + */ + q: string; + /** + * 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/rest/reference/search#ranking-search-results) + */ + sort?: "stars" | "forks" | "help-wanted-issues" | "updated"; + order?: components["parameters"]["order"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + incomplete_results?: boolean; + items?: components["schemas"]["repo-search-result-item"][]; + }; + }; + "304": never; + "422": unknown; + "503": unknown; + }; + }; + /** + * Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). See "[Searching topics](https://help.github.com/articles/searching-topics/)" for a detailed list of qualifiers. + * + * When searching for topics, you can get text match metadata for the topic's **short\_description**, **description**, **name**, or **display\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this: + * + * `q=ruby+is:featured` + * + * This query searches for topics with the keyword `ruby` and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results. + */ + "search/topics": { + parameters: { + query: { + /** + * 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/rest/reference/search#constructing-a-search-query). + */ + q: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + incomplete_results?: boolean; + items?: components["schemas"]["topic-search-result-item"][]; + }; + }; + "304": never; + "415": unknown; + }; + }; + /** + * Find users via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you're looking for a list of popular users, you might try this query: + * + * `q=tom+repos:%3E42+followers:%3E1000` + * + * This query searches for users with the name `tom`. The results are restricted to users with more than 42 repositories and over 1,000 followers. + */ + "search/users": { + parameters: { + query: { + /** + * 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/rest/reference/search#constructing-a-search-query). See "[Searching users](https://help.github.com/articles/searching-users/)" for a detailed list of qualifiers. + */ + q: string; + /** + * Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://docs.github.com/rest/reference/search#ranking-search-results) + */ + sort?: "followers" | "repositories" | "joined"; + order?: components["parameters"]["order"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": { + total_count?: number; + incomplete_results?: boolean; + items?: components["schemas"]["user-search-result-item"][]; + }; + }; + "304": never; + "422": unknown; + "503": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/rest/reference/teams#get-a-team-by-name) endpoint. + */ + "teams/get-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-full"]; + }; + "404": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/reference/teams#update-a-team) endpoint. + * + * To edit a team, the authenticated user must either be an organization owner or a team maintainer. + * + * **Note:** With nested teams, the `privacy` for parent teams cannot be `secret`. + */ + "teams/update-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The name of the team. + */ + name: string; + /** + * The description of the team. + */ + description?: string; + /** + * 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. + */ + privacy?: "secret" | "closed"; + /** + * **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. + */ + permission?: "pull" | "push" | "admin"; + /** + * The ID of a team to set as the parent team. + */ + parent_team_id?: number | null; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["team-full"]; + }; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/rest/reference/teams#delete-a-team) endpoint. + * + * To delete a team, the authenticated user must be an organization owner or team maintainer. + * + * If you are an organization owner, deleting a parent team will delete all of its child teams as well. + */ + "teams/delete-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/reference/teams#list-discussions) endpoint. + * + * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "teams/list-discussions-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + query: { + direction?: components["parameters"]["direction"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion"][]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/reference/teams#create-a-discussion) endpoint. + * + * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + "teams/create-discussion-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The discussion post's title. + */ + title: string; + /** + * The discussion post's body text. + */ + body: string; + /** + * 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. + */ + private?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["team-discussion"]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/reference/teams#get-a-discussion) endpoint. + * + * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "teams/get-discussion-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion"]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/reference/teams#update-a-discussion) endpoint. + * + * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "teams/update-discussion-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The discussion post's title. + */ + title?: string; + /** + * The discussion post's body text. + */ + body?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion"]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/reference/teams#delete-a-discussion) endpoint. + * + * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "teams/delete-discussion-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/reference/teams#list-discussion-comments) endpoint. + * + * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "teams/list-discussion-comments-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + query: { + direction?: components["parameters"]["direction"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion-comment"][]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/reference/teams#create-a-discussion-comment) endpoint. + * + * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + "teams/create-discussion-comment-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The discussion comment's body text. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["team-discussion-comment"]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/reference/teams#get-a-discussion-comment) endpoint. + * + * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "teams/get-discussion-comment-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion-comment"]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/reference/teams#update-a-discussion-comment) endpoint. + * + * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "teams/update-discussion-comment-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The discussion comment's body text. + */ + body: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-discussion-comment"]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/reference/teams#delete-a-discussion-comment) endpoint. + * + * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "teams/delete-discussion-comment-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reference/reactions#list-reactions-for-a-team-discussion-comment) endpoint. + * + * List the reactions to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "reactions/list-for-team-discussion-comment-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + }; + query: { + /** + * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion comment. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["reaction"][]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion comment`](https://docs.github.comt/rest/reference/reactions#create-reaction-for-a-team-discussion-comment) endpoint. + * + * Create a reaction to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. + */ + "reactions/create-for-team-discussion-comment-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + comment_number: components["parameters"]["comment-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion comment. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["reaction"]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reference/reactions#list-reactions-for-a-team-discussion) endpoint. + * + * List the reactions to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "reactions/list-for-team-discussion-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + query: { + /** + * Returns a single [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion. + */ + content?: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["reaction"][]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reference/reactions#create-reaction-for-a-team-discussion) endpoint. + * + * Create a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. + */ + "reactions/create-for-team-discussion-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + discussion_number: components["parameters"]["discussion-number"]; + }; + }; + requestBody: { + "application/json": { + /** + * The [reaction type](https://docs.github.com/rest/reference/reactions#reaction-types) to add to the team discussion. + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["reaction"]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/rest/reference/teams#list-pending-team-invitations) endpoint. + * + * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. + */ + "teams/list-pending-invitations-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["organization-invitation"][]; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/rest/reference/teams#list-team-members) endpoint. + * + * Team members will include the members of child teams. + */ + "teams/list-members-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + query: { + /** + * 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. + */ + role?: "member" | "maintainer" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "404": unknown; + }; + }; + /** + * The "Get team member" endpoint (described below) is deprecated. + * + * We recommend using the [Get team membership for a user](https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships. + * + * To list members in a team, the team must be visible to the authenticated user. + */ + "teams/get-member-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Response if user is a member + */ + "204": never; + /** + * Response if user is not a member + */ + "404": unknown; + }; + }; + /** + * The "Add team member" endpoint (described below) is deprecated. + * + * We recommend using the [Add or update team membership for a user](https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * Note that 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + "teams/add-member-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "403": unknown; + /** + * Response if team synchronization is set up + */ + "404": unknown; + /** + * response + */ + "422": { + "application/json": { + message?: string; + errors?: { code?: string; field?: string; resource?: string }[]; + documentation_url?: string; + }; + }; + }; + }; + /** + * The "Remove team member" endpoint (described below) is deprecated. + * + * We recommend using the [Remove team membership for a user](https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + */ + "teams/remove-member-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + /** + * Response if team synchronization is setup + */ + "404": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user) endpoint. + * + * Team members will include the members of child teams. + * + * To get a user's membership with a team, the team must be visible to the authenticated user. + * + * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/rest/reference/teams#create-a-team). + */ + "teams/get-membership-for-user-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-membership"]; + }; + "404": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user) endpoint. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner. + * + * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. + */ + "teams/add-or-update-membership-for-user-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + username: components["parameters"]["username"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + role?: "member" | "maintainer"; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-membership"]; + }; + /** + * Response if team synchronization is set up + */ + "403": unknown; + "404": unknown; + /** + * Response if you attempt to add an organization to a team + */ + "422": { + "application/json": { + message?: string; + errors?: { code?: string; field?: string; resource?: string }[]; + documentation_url?: string; + }; + }; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user) endpoint. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + */ + "teams/remove-membership-for-user-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + /** + * Response if team synchronization is set up + */ + "403": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/reference/teams#list-team-projects) endpoint. + * + * Lists the organization projects for a team. + */ + "teams/list-projects-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-project"][]; + }; + "404": unknown; + "415": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/reference/teams#check-team-permissions-for-a-project) endpoint. + * + * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. + */ + "teams/check-permissions-for-project-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + project_id: components["parameters"]["project-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-project"]; + }; + /** + * Response if project is not managed by this team + */ + "404": unknown; + "415": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/reference/teams#add-or-update-team-project-permissions) endpoint. + * + * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. + */ + "teams/add-or-update-project-permissions-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + project_id: components["parameters"]["project-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + permission?: "read" | "write" | "admin"; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + /** + * Response if the project is not owned by the organization + */ + "403": { + "application/json": { message?: string; documentation_url?: string }; + }; + "404": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/reference/teams#remove-a-project-from-a-team) endpoint. + * + * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. + */ + "teams/remove-project-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + project_id: components["parameters"]["project-id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "404": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/rest/reference/teams#list-team-repositories) endpoint. + */ + "teams/list-repos-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["minimal-repository"][]; + }; + "404": unknown; + }; + }; + /** + * **Note**: Repositories inherited through a parent team will also be checked. + * + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/rest/reference/teams#check-team-permissions-for-a-repository) endpoint. + * + * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: + */ + "teams/check-permissions-for-repo-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Alternative response with extra repository information + */ + "200": { + "application/vnd.github.v3.repository+json": components["schemas"]["team-repository"]; + }; + /** + * Response if repository is managed by this team + */ + "204": never; + /** + * Response if repository is not managed by this team + */ + "404": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team repository permissions](https://docs.github.comt/rest/reference/teams#add-or-update-team-project-permissions) endpoint. + * + * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. + * + * 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + "teams/add-or-update-repo-permissions-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + requestBody: { + "application/json": { + /** + * 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. + */ + permission?: "pull" | "push" | "admin"; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "403": unknown; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/rest/reference/teams#remove-a-repository-from-a-team) endpoint. + * + * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. + */ + "teams/remove-repo-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List IdP groups for a team`](https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team) endpoint. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * List IdP groups connected to a team on GitHub. + */ + "teams/list-idp-groups-for-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["group-mapping"]; + }; + "403": unknown; + "404": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create or update IdP group connections`](https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections) endpoint. + * + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Creates, updates, or removes a connection between a team and an IdP group. When adding groups to a team, you must include all new and existing groups to avoid replacing existing groups with the new ones. Specifying an empty `groups` array will remove all connections for a team. + */ + "teams/create-or-update-idp-group-connections-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + }; + requestBody: { + "application/json": { + /** + * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. + */ + groups: { + /** + * ID of the IdP group. + */ + group_id: string; + /** + * Name of the IdP group. + */ + group_name: string; + /** + * Description of the IdP group. + */ + group_description: string; + id?: string; + name?: string; + description?: string; + }[]; + synced_at?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["group-mapping"]; + }; + "403": unknown; + "422": unknown; + }; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/rest/reference/teams#list-child-teams) endpoint. + */ + "teams/list-child-legacy": { + parameters: { + path: { + team_id: components["parameters"]["team-id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * Response if child teams exist + */ + "200": { + "application/json": components["schemas"]["team"][]; + }; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * If the authenticated user is authenticated through basic authentication or OAuth with the `user` scope, then the response lists public and private profile information. + * + * If the authenticated user is authenticated through OAuth without the `user` scope, then the response lists only public profile information. + */ + "users/get-authenticated": { + parameters: {}; + responses: { + /** + * response + */ + "200": { + "application/json": + | components["schemas"]["private-user"] + | components["schemas"]["public-user"]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * **Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API. + */ + "users/update-authenticated": { + parameters: {}; + requestBody: { + "application/json": { + /** + * The new name of the user. + */ + name?: string; + /** + * The publicly visible email address of the user. + */ + email?: string; + /** + * The new blog URL of the user. + */ + blog?: string; + /** + * The new Twitter username of the user. + */ + twitter_username?: string | null; + /** + * The new company of the user. + */ + company?: string; + /** + * The new location of the user. + */ + location?: string; + /** + * The new hiring availability of the user. + */ + hireable?: boolean; + /** + * The new short biography of the user. + */ + bio?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["private-user"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * List the users you've blocked on your personal account. + */ + "users/list-blocked-by-authenticated": { + parameters: {}; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "415": unknown; + }; + }; + /** + * If the user is blocked: + * + * If the user is not blocked: + */ + "users/check-blocked": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * If the user is blocked: + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + /** + * If the user is not blocked: + */ + "404": { + "application/json": components["schemas"]["basic-error"]; + }; + }; + }; + "users/block": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + "users/unblock": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Sets the visibility for your primary email addresses. + */ + "users/set-primary-email-visibility-for-authenticated": { + parameters: {}; + requestBody: { + "application/json": { + /** + * An email address associated with the GitHub user account to manage. + */ + email: string; + /** + * Denotes whether an email is publically visible. + */ + visibility: "public" | "private"; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["email"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope. + */ + "users/list-emails-for-authenticated": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["email"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * This endpoint is accessible with the `user` scope. + */ + "users/add-email-for-authenticated": { + parameters: {}; + requestBody: { + "application/json": + | { + /** + * Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. + */ + emails: string[]; + } + | string[] + | string; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["email"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * This endpoint is accessible with the `user` scope. + */ + "users/delete-email-for-authenticated": { + parameters: {}; + requestBody: { + "application/json": + | { + /** + * Email addresses associated with the GitHub user account. + */ + emails: string[]; + } + | string[] + | string; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Lists the people following the authenticated user. + */ + "users/list-followers-for-authenticated-user": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * Lists the people who the authenticated user follows. + */ + "users/list-followed-by-authenticated": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + "users/check-person-is-followed-by-authenticated": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Response if the person is followed by the authenticated user + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + /** + * Response if the person is not followed by the authenticated user + */ + "404": { + "application/json": components["schemas"]["basic-error"]; + }; + }; + }; + /** + * Note that 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/rest/overview/resources-in-the-rest-api#http-verbs)." + * + * Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope. + */ + "users/follow": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope. + */ + "users/unfollow": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "users/list-gpg-keys-for-authenticated": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gpg-key"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "users/create-gpg-key-for-authenticated": { + parameters: {}; + requestBody: { + "application/json": { + /** + * A GPG key in ASCII-armored format. + */ + armored_public_key: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["gpg-key"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "users/get-gpg-key-for-authenticated": { + parameters: { + path: { + gpg_key_id: components["parameters"]["gpg_key_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gpg-key"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Removes a GPG key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "users/delete-gpg-key-for-authenticated": { + parameters: { + path: { + gpg_key_id: components["parameters"]["gpg_key_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. + * + * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * + * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. + * + * You can find the permissions for the installation under the `permissions` key. + */ + "apps/list-installations-for-authenticated-user": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * You can find the permissions for the installation under the `permissions` key. + */ + "200": { + "application/json": { + total_count?: number; + installations?: components["schemas"]["installation"][]; + }; + }; + "304": never; + "401": unknown; + "403": unknown; + "415": unknown; + }; + }; + /** + * List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation. + * + * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. + * + * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * + * The access the user has to each repository is included in the hash under the `permissions` key. + */ + "apps/list-installation-repos-for-authenticated-user": { + parameters: { + path: { + installation_id: components["parameters"]["installation_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * The access the user has to each repository is included in the hash under the `permissions` key. + */ + "200": { + "application/json": { + total_count?: number; + repository_selection?: string; + repositories?: components["schemas"]["repository"][]; + }; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Add a single repository to an installation. The authenticated user must have admin access to the repository. + * + * You must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization) or [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) to access this endpoint. + */ + "apps/add-repo-to-installation": { + parameters: { + path: { + installation_id: components["parameters"]["installation_id"]; + repository_id: components["parameters"]["repository_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Remove a single repository from an installation. The authenticated user must have admin access to the repository. + * + * You must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization) or [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) to access this endpoint. + */ + "apps/remove-repo-from-installation": { + parameters: { + path: { + installation_id: components["parameters"]["installation_id"]; + repository_id: components["parameters"]["repository_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Shows which type of GitHub user can interact with your public repositories and when the restriction expires. If there are no restrictions, you will see an empty response. + */ + "interactions/get-restrictions-for-your-public-repos": { + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["interaction-limit-response"]; + }; + }; + }; + /** + * Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user. + */ + "interactions/set-restrictions-for-your-public-repos": { + requestBody: { + "application/json": components["schemas"]["interaction-limit"]; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["interaction-limit-response"]; + }; + "422": unknown; + }; + }; + /** + * Removes any interaction restrictions from your public repositories. + */ + "interactions/remove-restrictions-for-your-public-repos": { + responses: { + /** + * Empty response + */ + "204": never; + }; + }; + /** + * List issues across owned and member repositories assigned to the authenticated user. + * + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this + * reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by + * the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull + * request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + "issues/list-for-authenticated-user": { + parameters: { + query: { + /** + * 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`: All issues the authenticated user can see, regardless of participation or creation + */ + filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + /** + * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + labels?: components["parameters"]["labels"]; + /** + * What to sort results by. Can be either `created`, `updated`, `comments`. + */ + sort?: "created" | "updated" | "comments"; + direction?: components["parameters"]["direction"]; + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["issue"][]; + }; + "304": never; + "404": unknown; + }; + }; + /** + * Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "users/list-public-ssh-keys-for-authenticated": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["key"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "users/create-public-ssh-key-for-authenticated": { + parameters: {}; + requestBody: { + "application/json": { + /** + * A descriptive name for the new key. + */ + title?: string; + /** + * The public SSH key to add to your GitHub account. + */ + key: string; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["key"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "users/get-public-ssh-key-for-authenticated": { + parameters: { + path: { + key_id: components["parameters"]["key_id"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["key"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Removes a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + "users/delete-public-ssh-key-for-authenticated": { + parameters: { + path: { + key_id: components["parameters"]["key_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + */ + "apps/list-subscriptions-for-authenticated-user": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["user-marketplace-purchase"][]; + }; + "304": never; + "401": unknown; + "404": unknown; + }; + }; + /** + * Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + */ + "apps/list-subscriptions-for-authenticated-user-stubbed": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["user-marketplace-purchase"][]; + }; + "304": never; + "401": unknown; + }; + }; + "orgs/list-memberships-for-authenticated-user": { + parameters: { + query: { + /** + * 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. + */ + state?: "active" | "pending"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["org-membership"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "422": unknown; + }; + }; + "orgs/get-membership-for-authenticated-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["org-membership"]; + }; + "403": unknown; + "404": unknown; + }; + }; + "orgs/update-membership-for-authenticated-user": { + parameters: { + path: { + org: components["parameters"]["org"]; + }; + }; + requestBody: { + "application/json": { + /** + * The state that the membership should be in. Only `"active"` will be accepted. + */ + state: "active"; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["org-membership"]; + }; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * Lists all migrations a user has started. + */ + "migrations/list-for-authenticated-user": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["migration"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * Initiates the generation of a user migration archive. + */ + "migrations/start-for-authenticated-user": { + parameters: {}; + requestBody: { + "application/json": { + /** + * Lock the repositories being migrated at the start of the migration + */ + lock_repositories?: boolean; + /** + * Do not include attachments in the migration + */ + exclude_attachments?: boolean; + /** + * Exclude attributes from the API response to improve performance + */ + exclude?: "repositories"[]; + repositories: string[]; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["migration"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "422": unknown; + }; + }; + /** + * Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values: + * + * * `pending` - the migration hasn't started yet. + * * `exporting` - the migration is in progress. + * * `exported` - the migration finished successfully. + * * `failed` - the migration failed. + * + * Once the migration has been `exported` you can [download the migration archive](https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive). + */ + "migrations/get-status-for-authenticated-user": { + parameters: { + path: { + migration_id: components["parameters"]["migration_id"]; + }; + query: { + exclude?: string[]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["migration"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects: + * + * * attachments + * * bases + * * commit\_comments + * * issue\_comments + * * issue\_events + * * issues + * * milestones + * * organizations + * * projects + * * protected\_branches + * * pull\_request\_reviews + * * pull\_requests + * * releases + * * repositories + * * review\_comments + * * schema + * * users + * + * The archive will also contain an `attachments` directory that includes all attachment files uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data. + */ + "migrations/get-archive-for-authenticated-user": { + parameters: { + path: { + migration_id: components["parameters"]["migration_id"]; + }; + }; + responses: { + /** + * response + */ + "302": never; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://docs.github.com/rest/reference/migrations#list-user-migrations) and [Get a user migration status](https://docs.github.com/rest/reference/migrations#get-a-user-migration-status) endpoints, will continue to be available even after an archive is deleted. + */ + "migrations/delete-archive-for-authenticated-user": { + parameters: { + path: { + migration_id: components["parameters"]["migration_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Unlocks a repository. You can lock repositories when you [start a user migration](https://docs.github.com/rest/reference/migrations#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://docs.github.com/rest/reference/repos#delete-a-repository) if you no longer need the source data. Returns a status of `404 Not Found` if the repository is not locked. + */ + "migrations/unlock-repo-for-authenticated-user": { + parameters: { + path: { + migration_id: components["parameters"]["migration_id"]; + repo_name: components["parameters"]["repo_name"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Lists all the repositories for this user migration. + */ + "migrations/list-repos-for-user": { + parameters: { + path: { + migration_id: components["parameters"]["migration_id"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["minimal-repository"][]; + }; + "404": unknown; + }; + }; + /** + * List organizations for the authenticated user. + * + * **OAuth scope requirements** + * + * This only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response. + */ + "orgs/list-for-authenticated-user": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["organization-simple"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + "projects/create-for-authenticated-user": { + parameters: {}; + requestBody: { + "application/json": { + /** + * Name of the project + */ + name: string; + /** + * Body of the project + */ + body?: string | null; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["project"]; + }; + "304": never; + "401": unknown; + "403": unknown; + "415": unknown; + "422": unknown; + }; + }; + /** + * Lists your publicly visible email address, which you can set with the [Set primary email visibility for the authenticated user](https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user) endpoint. This endpoint is accessible with the `user:email` scope. + */ + "users/list-public-emails-for-authenticated": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["email"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. + * + * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. + */ + "repos/list-for-authenticated-user": { + parameters: { + query: { + /** + * Can be one of `all`, `public`, or `private`. + */ + visibility?: "all" | "public" | "private"; + /** + * 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. + */ + affiliation?: string; + /** + * Can be one of `all`, `owner`, `public`, `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**. + */ + type?: "all" | "owner" | "public" | "private" | "member"; + /** + * Can be one of `created`, `updated`, `pushed`, `full_name`. + */ + sort?: "created" | "updated" | "pushed" | "full_name"; + /** + * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` + */ + direction?: "asc" | "desc"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + since?: components["parameters"]["since"]; + before?: components["parameters"]["before"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["repository"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + /** + * Response definition missing + */ + "418": unknown; + "422": unknown; + }; + }; + /** + * Creates a new repository for the authenticated user. + * + * **OAuth scope requirements** + * + * When using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: + * + * * `public_repo` scope or `repo` scope to create a public repository + * * `repo` scope to create a private repository + */ + "repos/create-for-authenticated-user": { + parameters: {}; + requestBody: { + "application/json": { + /** + * The name of the repository. + */ + name: string; + /** + * A short description of the repository. + */ + description?: string; + /** + * A URL with more information about the repository. + */ + homepage?: string; + /** + * Whether the repository is private or public. + */ + private?: boolean; + /** + * Whether issues are enabled. + */ + has_issues?: boolean; + /** + * Whether projects are enabled. + */ + has_projects?: boolean; + /** + * Whether the wiki is enabled. + */ + has_wiki?: boolean; + /** + * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. + */ + team_id?: number; + /** + * Whether the repository is initialized with a minimal README. + */ + auto_init?: boolean; + /** + * The desired language or platform to apply to the .gitignore. + */ + gitignore_template?: string; + /** + * The license keyword of the open source license for this repository. + */ + license_template?: string; + /** + * Whether to allow squash merges for pull requests. + */ + allow_squash_merge?: boolean; + /** + * Whether to allow merge commits for pull requests. + */ + allow_merge_commit?: boolean; + /** + * Whether to allow rebase merges for pull requests. + */ + allow_rebase_merge?: boolean; + /** + * Whether to delete head branches when pull requests are merged + */ + delete_branch_on_merge?: boolean; + /** + * Whether downloads are enabled. + */ + has_downloads?: boolean; + /** + * Whether this repository acts as a template that can be used to generate new repositories. + */ + is_template?: boolean; + }; + }; + responses: { + /** + * response + */ + "201": { + "application/json": components["schemas"]["repository"]; + }; + "304": never; + "400": unknown; + "401": unknown; + "403": unknown; + "404": unknown; + "422": unknown; + }; + }; + /** + * When authenticating as a user, this endpoint will list all currently open repository invitations for that user. + */ + "repos/list-invitations-for-authenticated-user": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["repository-invitation"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + "repos/accept-invitation": { + parameters: { + path: { + invitation_id: components["parameters"]["invitation_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "403": unknown; + "404": unknown; + "409": unknown; + }; + }; + "repos/decline-invitation": { + parameters: { + path: { + invitation_id: components["parameters"]["invitation_id"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "403": unknown; + "404": unknown; + "409": unknown; + }; + }; + /** + * Lists repositories the authenticated user has starred. + * + * You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: + */ + "activity/list-repos-starred-by-authenticated-user": { + parameters: { + query: { + sort?: components["parameters"]["sort"]; + direction?: components["parameters"]["direction"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["repository"][]; + "application/vnd.github.v3.star+json": components["schemas"]["starred-repository"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + "activity/check-repo-is-starred-by-authenticated-user": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Response if this repository is starred by you + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + /** + * Response if this repository is not starred by you + */ + "404": { + "application/json": components["schemas"]["basic-error"]; + }; + }; + }; + /** + * Note that 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + "activity/star-repo-for-authenticated-user": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + "activity/unstar-repo-for-authenticated-user": { + parameters: { + path: { + owner: components["parameters"]["owner"]; + repo: components["parameters"]["repo"]; + }; + }; + responses: { + /** + * Empty response + */ + "204": never; + "304": never; + "401": unknown; + "403": unknown; + "404": unknown; + }; + }; + /** + * Lists repositories the authenticated user is watching. + */ + "activity/list-watched-repos-for-authenticated-user": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["minimal-repository"][]; + }; + "304": never; + "401": unknown; + "403": unknown; + }; + }; + /** + * List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://docs.github.com/apps/building-oauth-apps/). + */ + "teams/list-for-authenticated-user": { + parameters: { + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["team-full"][]; + }; + "304": never; + "403": unknown; + "404": unknown; + }; + }; + /** + * Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts. + * + * Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of users. + */ + "users/list": { + parameters: { + query: { + since?: components["parameters"]["since-user"]; + per_page?: components["parameters"]["per_page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + "304": never; + }; + }; + /** + * Provides publicly available information about someone with a GitHub account. + * + * GitHub Apps with the `Plan` user permission can use this endpoint to retrieve information about a user's GitHub plan. The GitHub App must be authenticated as a user. See "[Identifying and authorizing users for GitHub Apps](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)" for details about authentication. For an example response, see 'Response with GitHub plan information' below" + * + * The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://docs.github.com/rest/overview/resources-in-the-rest-api#authentication). + * + * The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/rest/reference/users#emails)". + */ + "users/get-by-username": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": + | components["schemas"]["private-user"] + | components["schemas"]["public-user"]; + }; + "404": unknown; + }; + }; + /** + * If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. + */ + "activity/list-events-for-authenticated-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["event"][]; + }; + }; + }; + /** + * This is the user's organization dashboard. You must be authenticated as the user to view this. + */ + "activity/list-org-events-for-authenticated-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + org: components["parameters"]["org"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["event"][]; + }; + }; + }; + "activity/list-public-events-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["event"][]; + }; + }; + }; + /** + * Lists the people following the specified user. + */ + "users/list-followers-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + }; + }; + /** + * Lists the people who the specified user follows. + */ + "users/list-following-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["simple-user"][]; + }; + }; + }; + "users/check-following-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + target_user: string; + }; + }; + responses: { + /** + * Response if the user follows the target user + */ + "204": never; + /** + * Response if the user does not follow the target user + */ + "404": unknown; + }; + }; + /** + * Lists public gists for the specified user: + */ + "gists/list-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + since?: components["parameters"]["since"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["base-gist"][]; + }; + "422": unknown; + }; + }; + /** + * Lists the GPG keys for a user. This information is accessible by anyone. + */ + "users/list-gpg-keys-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["gpg-key"][]; + }; + }; + }; + /** + * Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations. + * + * The `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this: + * + * ```shell + * curl -u username:token + * https://api.github.com/users/octocat/hovercard?subject_type=repository&subject_id=1300192 + * ``` + */ + "users/get-context-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + /** + * 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_type?: "organization" | "repository" | "issue" | "pull_request"; + /** + * Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. + */ + subject_id?: string; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["hovercard"]; + }; + "404": unknown; + "422": unknown; + }; + }; + /** + * Enables an authenticated GitHub App to find the user’s installation information. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + "apps/get-user-installation": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["installation"]; + }; + }; + }; + /** + * Lists the _verified_ public SSH keys for a user. This is accessible by anyone. + */ + "users/list-public-keys-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["key-simple"][]; + }; + }; + }; + /** + * List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user. + * + * This method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List organizations for the authenticated user](https://docs.github.com/rest/reference/orgs#list-organizations-for-the-authenticated-user) API instead. + */ + "orgs/list-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["organization-simple"][]; + }; + }; + }; + "projects/list-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + /** + * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. + */ + state?: "open" | "closed" | "all"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["project"][]; + }; + "415": unknown; + "422": unknown; + }; + }; + /** + * These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events. + */ + "activity/list-received-events-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["event"][]; + }; + }; + }; + "activity/list-received-public-events-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["event"][]; + }; + }; + }; + /** + * Lists public repositories for the specified user. + */ + "repos/list-for-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + /** + * Can be one of `all`, `owner`, `member`. + */ + type?: "all" | "owner" | "member"; + /** + * Can be one of `created`, `updated`, `pushed`, `full_name`. + */ + sort?: "created" | "updated" | "pushed" | "full_name"; + /** + * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` + */ + direction?: "asc" | "desc"; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["minimal-repository"][]; + }; + }; + }; + /** + * Gets the summary of the free and paid GitHub Actions minutes used. + * + * Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". + * + * Access tokens must have the `user` scope. + */ + "billing/get-github-actions-billing-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["actions-billing-usage"]; + }; + }; + }; + /** + * Gets the free and paid storage used for GitHub Packages in gigabytes. + * + * Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." + * + * Access tokens must have the `user` scope. + */ + "billing/get-github-packages-billing-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["packages-billing-usage"]; + }; + }; + }; + /** + * Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages. + * + * Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." + * + * Access tokens must have the `user` scope. + */ + "billing/get-shared-storage-billing-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["combined-billing-usage"]; + }; + }; + }; + /** + * Lists repositories a user has starred. + * + * You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: + */ + "activity/list-repos-starred-by-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + sort?: components["parameters"]["sort"]; + direction?: components["parameters"]["direction"]; + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["repository"][]; + "application/vnd.github.v3.star+json": components["schemas"]["starred-repository"][]; + }; + }; + }; + /** + * Lists repositories a user is watching. + */ + "activity/list-repos-watched-by-user": { + parameters: { + path: { + username: components["parameters"]["username"]; + }; + query: { + per_page?: components["parameters"]["per_page"]; + page?: components["parameters"]["page"]; + }; + }; + responses: { + /** + * response + */ + "200": { + "application/json": components["schemas"]["minimal-repository"][]; + }; + }; + }; + /** + * Get a random sentence from the Zen of GitHub + */ + "meta/get-zen": { + responses: { + /** + * response + */ + "200": { + "text/plain": string; + }; + }; + }; +} + +export interface components { + parameters: { + /** + * Results per page (max 100) + */ + per_page: number; + /** + * Page number of the results to fetch. + */ + page: number; + /** + * 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`. + */ + since: string; + /** + * installation_id parameter + */ + installation_id: number; + /** + * grant_id parameter + */ + grant_id: number; + "client-id": string; + "access-token": string; + app_slug: string; + /** + * authorization_id parameter + */ + authorization_id: number; + /** + * The slug version of the enterprise name. You can also substitute this value with the enterprise id. + */ + enterprise: string; + /** + * Unique identifier of an organization. + */ + org_id: number; + /** + * Unique identifier of the self-hosted runner group. + */ + runner_group_id: number; + /** + * Unique identifier of the self-hosted runner. + */ + runner_id: number; + /** + * gist_id parameter + */ + gist_id: string; + /** + * comment_id parameter + */ + comment_id: number; + /** + * A list of comma separated label names. Example: `bug,ui,@high` + */ + labels: string; + /** + * One of `asc` (ascending) or `desc` (descending). + */ + direction: "asc" | "desc"; + /** + * account_id parameter + */ + account_id: number; + /** + * plan_id parameter + */ + plan_id: number; + /** + * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). + */ + sort: "created" | "updated"; + owner: string; + repo: string; + /** + * If `true`, show notifications marked as read. + */ + all: boolean; + /** + * If `true`, only shows notifications in which the user is directly participating or mentioned. + */ + participating: boolean; + /** + * 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`. + */ + before: string; + /** + * thread_id parameter + */ + thread_id: number; + /** + * An organization ID. Only return organizations with an ID greater than this ID. + */ + "since-org": number; + org: string; + repository_id: number; + /** + * secret_name parameter + */ + secret_name: string; + username: string; + "hook-id": number; + /** + * invitation_id parameter + */ + invitation_id: number; + /** + * migration_id parameter + */ + migration_id: number; + /** + * repo_name parameter + */ + repo_name: string; + /** + * team_slug parameter + */ + team_slug: string; + "discussion-number": number; + "comment-number": number; + "reaction-id": number; + "project-id": number; + /** + * card_id parameter + */ + card_id: number; + /** + * column_id parameter + */ + column_id: number; + /** + * artifact_id parameter + */ + artifact_id: number; + /** + * job_id parameter + */ + job_id: number; + /** + * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. + */ + actor: string; + /** + * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. + */ + "workflow-run-branch": string; + /** + * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)." + */ + event: string; + /** + * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://docs.github.com/rest/reference/checks#create-a-check-run)." + */ + "workflow-run-status": "completed" | "status" | "conclusion"; + "run-id": number; + /** + * The ID of the workflow. You can also pass the workflow file name as a string. + */ + "workflow-id": number | string; + /** + * branch+ parameter + */ + branch: string; + /** + * check_run_id parameter + */ + check_run_id: number; + /** + * check_suite_id parameter + */ + check_suite_id: number; + /** + * Returns check runs with the specified `name`. + */ + check_name: string; + /** + * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. + */ + status: "queued" | "in_progress" | "completed"; + /** + * The code scanning alert number. + */ + alert_number: components["schemas"]["code-scanning-alert-number"]; + /** + * commit_sha+ parameter + */ + commit_sha: string; + /** + * deployment_id parameter + */ + deployment_id: number; + /** + * A user ID. Only return users with an ID greater than this ID. + */ + "since-user": number; + /** + * issue_number parameter + */ + issue_number: number; + /** + * key_id parameter + */ + key_id: number; + /** + * milestone_number parameter + */ + milestone_number: number; + "pull-number": number; + /** + * review_id parameter + */ + review_id: number; + /** + * asset_id parameter + */ + asset_id: number; + /** + * release_id parameter + */ + release_id: number; + /** + * Must be one of: `day`, `week`. + */ + per: "day" | "week"; + /** + * A repository ID. Only return repositories with an ID greater than this ID. + */ + "since-repo": number; + /** + * Used for pagination: the index of the first result to return. + */ + start_index: number; + /** + * Used for pagination: the number of results to return. + */ + count: number; + /** + * Identifier generated by the GitHub SCIM endpoint. + */ + scim_group_id: string; + /** + * scim_user_id parameter + */ + scim_user_id: string; + /** + * 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`. + */ + order: "desc" | "asc"; + "team-id": number; + /** + * gpg_key_id parameter + */ + gpg_key_id: number; + }; + schemas: { + /** + * Simple User + */ + "simple-user": { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string | null; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + starred_at?: string; + } | null; + /** + * GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + */ + integration: { + /** + * Unique identifier of the GitHub app + */ + id: number; + /** + * The slug name of the GitHub app + */ + slug?: string; + node_id: string; + owner: components["schemas"]["simple-user"] | null; + /** + * The name of the GitHub app + */ + name: string; + description: string | null; + external_url: string; + html_url: string; + created_at: string; + updated_at: string; + /** + * The set of permissions for the GitHub app + */ + permissions: { + issues?: string; + checks?: string; + metadata?: string; + contents?: string; + deployments?: string; + } & { [key: string]: string }; + /** + * The list of events for the GitHub app + */ + events: string[]; + /** + * The number of installations associated with the GitHub app + */ + installations_count?: number; + client_id?: string; + client_secret?: string; + webhook_secret?: string; + pem?: string; + } & { [key: string]: any }; + /** + * Basic Error + */ + "basic-error": { message?: string; documentation_url?: string }; + /** + * Validation Error Simple + */ + "validation-error-simple": { + message: string; + documentation_url: string; + errors?: string[]; + }; + /** + * The URL to which the payloads will be delivered. + */ + "webhook-config-url": string; + /** + * The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. + */ + "webhook-config-content-type": string; + /** + * If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value for [delivery signature headers](https://docs.github.com/webhooks/event-payloads/#delivery-headers). + */ + "webhook-config-secret": string; + /** + * Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** + */ + "webhook-config-insecure-ssl": string; + /** + * Configuration object of the webhook + */ + "webhook-config": { + url?: components["schemas"]["webhook-config-url"]; + content_type?: components["schemas"]["webhook-config-content-type"]; + secret?: components["schemas"]["webhook-config-secret"]; + insecure_ssl?: components["schemas"]["webhook-config-insecure-ssl"]; + }; + /** + * An enterprise account + */ + enterprise: { + /** + * A short description of the enterprise. + */ + description?: string | null; + html_url: string; + /** + * The enterprise's website URL. + */ + website_url?: string | null; + /** + * Unique identifier of the enterprise + */ + id: number; + node_id: string; + /** + * The name of the enterprise. + */ + name: string; + /** + * The slug url identifier for the enterprise. + */ + slug: string; + created_at: string | null; + updated_at: string | null; + avatar_url: string; + }; + /** + * Installation + */ + installation: { + /** + * The ID of the installation. + */ + id: number; + account: + | (Partial & + Partial) + | null; + /** + * Describe whether all repositories have been selected or there's a selection involved + */ + repository_selection: "all" | "selected"; + access_tokens_url: string; + repositories_url: string; + html_url: string; + app_id: number; + /** + * The ID of the user or organization this token is being scoped to. + */ + target_id: number; + target_type: string; + permissions: { + deployments?: string; + checks?: string; + metadata?: string; + contents?: string; + pull_requests?: string; + statuses?: string; + issues?: string; + organization_administration?: string; + }; + events: string[]; + created_at: string; + updated_at: string; + single_file_name: string | null; + has_multiple_single_files?: boolean; + single_file_paths?: string[]; + app_slug: string; + suspended_by?: components["schemas"]["simple-user"] | null; + suspended_at?: string | null; + contact_email?: string | null; + }; + /** + * License Simple + */ + "license-simple": { + key: string; + name: string; + url: string | null; + spdx_id: string | null; + node_id: string; + html_url?: string; + }; + /** + * A git repository + */ + repository: { + /** + * Unique identifier of the repository + */ + id: number; + node_id: string; + /** + * The name of the repository. + */ + name: string; + full_name: string; + license: components["schemas"]["license-simple"] | null; + forks: number; + permissions?: { + admin: boolean; + pull: boolean; + triage?: boolean; + push: boolean; + maintain?: boolean; + }; + owner: components["schemas"]["simple-user"] | null; + /** + * Whether the repository is private or public. + */ + private: boolean; + html_url: string; + description: string | null; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string | null; + hooks_url: string; + svn_url: string; + homepage: string | null; + language: string | null; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + /** + * The default branch of the repository. + */ + default_branch: string; + open_issues_count: number; + /** + * Whether this repository acts as a template that can be used to generate new repositories. + */ + is_template?: boolean; + topics?: string[]; + /** + * Whether issues are enabled. + */ + has_issues: boolean; + /** + * Whether projects are enabled. + */ + has_projects: boolean; + /** + * Whether the wiki is enabled. + */ + has_wiki: boolean; + has_pages: boolean; + /** + * Whether downloads are enabled. + */ + has_downloads: boolean; + /** + * Whether the repository is archived. + */ + archived: boolean; + /** + * Returns whether or not this repository disabled. + */ + disabled: boolean; + /** + * The repository visibility: public, private, or internal. + */ + visibility?: string; + pushed_at: string | null; + created_at: string | null; + updated_at: string | null; + /** + * Whether to allow rebase merges for pull requests. + */ + allow_rebase_merge?: boolean; + template_repository?: { + id?: number; + node_id?: string; + name?: string; + full_name?: string; + owner?: { + login?: string; + id?: number; + node_id?: string; + avatar_url?: string; + gravatar_id?: string; + url?: string; + html_url?: string; + followers_url?: string; + following_url?: string; + gists_url?: string; + starred_url?: string; + subscriptions_url?: string; + organizations_url?: string; + repos_url?: string; + events_url?: string; + received_events_url?: string; + type?: string; + site_admin?: boolean; + }; + private?: boolean; + html_url?: string; + description?: string; + fork?: boolean; + url?: string; + archive_url?: string; + assignees_url?: string; + blobs_url?: string; + branches_url?: string; + collaborators_url?: string; + comments_url?: string; + commits_url?: string; + compare_url?: string; + contents_url?: string; + contributors_url?: string; + deployments_url?: string; + downloads_url?: string; + events_url?: string; + forks_url?: string; + git_commits_url?: string; + git_refs_url?: string; + git_tags_url?: string; + git_url?: string; + issue_comment_url?: string; + issue_events_url?: string; + issues_url?: string; + keys_url?: string; + labels_url?: string; + languages_url?: string; + merges_url?: string; + milestones_url?: string; + notifications_url?: string; + pulls_url?: string; + releases_url?: string; + ssh_url?: string; + stargazers_url?: string; + statuses_url?: string; + subscribers_url?: string; + subscription_url?: string; + tags_url?: string; + teams_url?: string; + trees_url?: string; + clone_url?: string; + mirror_url?: string; + hooks_url?: string; + svn_url?: string; + homepage?: string; + language?: string; + forks_count?: number; + stargazers_count?: number; + watchers_count?: number; + size?: number; + default_branch?: string; + open_issues_count?: number; + is_template?: boolean; + topics?: string[]; + has_issues?: boolean; + has_projects?: boolean; + has_wiki?: boolean; + has_pages?: boolean; + has_downloads?: boolean; + archived?: boolean; + disabled?: boolean; + visibility?: string; + pushed_at?: string; + created_at?: string; + updated_at?: string; + permissions?: { admin?: boolean; push?: boolean; pull?: boolean }; + allow_rebase_merge?: boolean; + template_repository?: string; + temp_clone_token?: string; + allow_squash_merge?: boolean; + delete_branch_on_merge?: boolean; + allow_merge_commit?: boolean; + subscribers_count?: number; + network_count?: number; + } | null; + temp_clone_token?: string; + /** + * Whether to allow squash merges for pull requests. + */ + allow_squash_merge?: boolean; + /** + * Whether to delete head branches when pull requests are merged + */ + delete_branch_on_merge?: boolean; + /** + * Whether to allow merge commits for pull requests. + */ + allow_merge_commit?: boolean; + subscribers_count?: number; + network_count?: number; + open_issues: number; + watchers: number; + master_branch?: string; + starred_at?: string; + }; + /** + * Authentication token for a GitHub App installed on a user or org. + */ + "installation-token": { + token?: string; + expires_at?: string; + permissions?: { + issues?: string; + contents?: string; + metadata?: string; + single_file?: string; + }; + repository_selection?: "all" | "selected"; + repositories?: components["schemas"]["repository"][]; + single_file?: string; + has_multiple_single_files?: boolean; + single_file_paths?: string[]; + }; + /** + * Validation Error + */ + "validation-error": { + message: string; + documentation_url: string; + errors?: { + resource?: string; + field?: string; + message?: string; + code: string; + index?: number; + value?: string | number | string[]; + }[]; + }; + /** + * The authorization associated with an OAuth Access. + */ + "application-grant": { + id: number; + url: string; + app: { client_id: string; name: string; url: string }; + created_at: string; + updated_at: string; + scopes: string[]; + user?: components["schemas"]["simple-user"] | null; + }; + "scoped-installation": { + permissions: { [key: string]: any }; + /** + * Describe whether all repositories have been selected or there's a selection involved + */ + repository_selection: "all" | "selected"; + single_file_name: string | null; + has_multiple_single_files?: boolean; + single_file_paths?: string[]; + repositories_url: string; + account: components["schemas"]["simple-user"]; + }; + /** + * The authorization for an OAuth app, GitHub App, or a Personal Access Token. + */ + authorization: { + id: number; + url: string; + /** + * A list of scopes that this authorization is in. + */ + scopes: string[] | null; + token: string; + token_last_eight: string | null; + hashed_token: string | null; + app: { client_id: string; name: string; url: string }; + note: string | null; + note_url: string | null; + updated_at: string; + created_at: string; + fingerprint: string | null; + user?: components["schemas"]["simple-user"] | null; + installation?: components["schemas"]["scoped-installation"] | null; + }; + /** + * Code Of Conduct + */ + "code-of-conduct": { + key: string; + name: string; + url: string; + body?: string; + html_url: string | null; + }; + /** + * Content Reference attachments allow you to provide context around URLs posted in comments + */ + "content-reference-attachment": { + /** + * The ID of the attachment + */ + id: number; + /** + * The title of the attachment + */ + title: string; + /** + * The body of the attachment + */ + body: string; + /** + * The node_id of the content attachment + */ + node_id?: string; + }; + /** + * The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`. + */ + "enabled-organizations": "all" | "none" | "selected"; + /** + * The permissions policy that controls the actions that are allowed to run. Can be one of: `all`, `local_only`, or `selected`. + */ + "allowed-actions": "all" | "local_only" | "selected"; + /** + * The API URL to use to get or set the actions that are allowed to run, when `allowed_actions` is set to `selected`. + */ + "selected-actions-url": string; + "actions-enterprise-permissions": { + enabled_organizations?: components["schemas"]["enabled-organizations"]; + /** + * The API URL to use to get or set the selected organizations that are allowed to run GitHub Actions, when `enabled_organizations` is set to `selected`. + */ + selected_organizations_url?: string; + allowed_actions?: components["schemas"]["allowed-actions"]; + selected_actions_url?: components["schemas"]["selected-actions-url"]; + }; + /** + * Organization Simple + */ + "organization-simple": { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string | null; + }; + "selected-actions": { + /** + * Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization. + */ + github_owned_allowed?: boolean; + /** + * Whether actions in GitHub Marketplace from verified creators are allowed. Set to `true` to allow all GitHub Marketplace actions by verified creators. + */ + verified_allowed?: boolean; + /** + * Specifies a list of string-matching patterns to allow specific action(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`." + */ + patterns_allowed?: string[]; + }; + "runner-groups-enterprise": { + id?: number; + name?: string; + visibility?: string; + default?: boolean; + selected_organizations_url?: string; + runners_url?: string; + }; + /** + * A self hosted runner + */ + runner: { + /** + * The id of the runner. + */ + id: number; + /** + * The name of the runner. + */ + name: string; + /** + * The Operating System of the runner. + */ + os: string; + /** + * The status of the runner. + */ + status: string; + busy: boolean; + labels: { + /** + * Unique identifier of the label. + */ + id?: number; + /** + * Name of the label. + */ + name?: string; + /** + * The type of label. Read-only labels are applied automatically when the runner is configured. + */ + type?: "read-only" | "custom"; + }[]; + }; + /** + * Runner Application + */ + "runner-application": { + os?: string; + architecture?: string; + download_url?: string; + filename?: string; + }; + /** + * Authentication Token + */ + "authentication-token": { + /** + * The token used for authentication + */ + token: string; + /** + * The time this token expires + */ + expires_at: string; + permissions?: { [key: string]: any }; + /** + * The repositories this token has access to + */ + repositories?: components["schemas"]["repository"][]; + single_file?: string | null; + /** + * Describe whether all repositories have been selected or there's a selection involved + */ + repository_selection?: "all" | "selected"; + }; + "actions-billing-usage": { + /** + * The sum of the free and paid GitHub Actions minutes used. + */ + total_minutes_used?: number; + /** + * The total paid GitHub Actions minutes used. + */ + total_paid_minutes_used?: number; + /** + * The amount of free GitHub Actions minutes available. + */ + included_minutes?: number; + minutes_used_breakdown?: { + /** + * Total minutes used on Ubuntu runner machines. + */ + UBUNTU?: number; + /** + * Total minutes used on macOS runner machines. + */ + MACOS?: number; + /** + * Total minutes used on Windows runner machines. + */ + WINDOWS?: number; + }; + }; + "packages-billing-usage": { + /** + * Sum of the free and paid storage space (GB) for GitHuub Packages. + */ + total_gigabytes_bandwidth_used?: number; + /** + * Total paid storage space (GB) for GitHuub Packages. + */ + total_paid_gigabytes_bandwidth_used?: number; + /** + * Free storage space (GB) for GitHub Packages. + */ + included_gigabytes_bandwidth?: number; + }; + "combined-billing-usage": { + /** + * Numbers of days left in billing cycle. + */ + days_left_in_billing_cycle?: number; + /** + * Estimated storage space (GB) used in billing cycle. + */ + estimated_paid_storage_for_month?: number; + /** + * Estimated sum of free and paid storage space (GB) used in billing cycle. + */ + estimated_storage_for_month?: number; + }; + /** + * Actor + */ + actor: { + id: number; + login: string; + display_login?: string; + gravatar_id: string | null; + url: string; + avatar_url: string; + }; + /** + * A collection of related issues and pull requests. + */ + milestone: { + url: string; + html_url: string; + labels_url: string; + id: number; + node_id: string; + /** + * The number of the milestone. + */ + number: number; + /** + * The state of the milestone. + */ + state: "open" | "closed"; + /** + * The title of the milestone. + */ + title: string; + description: string | null; + creator: components["schemas"]["simple-user"] | null; + open_issues: number; + closed_issues: number; + created_at: string; + updated_at: string; + closed_at: string | null; + due_on: string | null; + }; + /** + * Issue Simple + */ + "issue-simple": { + id: number; + node_id: string; + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + number: number; + state: string; + title: string; + body?: string; + user: components["schemas"]["simple-user"] | null; + labels: { + id?: number; + node_id?: string; + url?: string; + name?: string; + description?: string | null; + color?: string; + default?: boolean; + }[]; + assignee: components["schemas"]["simple-user"] | null; + assignees?: components["schemas"]["simple-user"][] | null; + milestone: components["schemas"]["milestone"] | null; + locked: boolean; + active_lock_reason?: string | null; + comments: number; + pull_request?: { + merged_at?: string | null; + diff_url: string | null; + html_url: string | null; + patch_url: string | null; + url: string | null; + }; + closed_at: string | null; + created_at: string; + updated_at: string; + author_association: string; + body_html?: string; + body_text?: string; + timeline_url?: string; + repository?: components["schemas"]["repository"]; + performed_via_github_app?: components["schemas"]["integration"] | null; + }; + "reaction-rollup": { + url: string; + total_count: number; + "+1": number; + "-1": number; + laugh: number; + confused: number; + heart: number; + hooray: number; + eyes: number; + rocket: number; + }; + /** + * Comments provide a way for people to collaborate on an issue. + */ + "issue-comment": { + /** + * Unique identifier of the issue comment + */ + id: number; + node_id: string; + /** + * URL for the issue comment + */ + url: string; + /** + * Contents of the issue comment + */ + body?: string; + body_text?: string; + body_html?: string; + html_url: string; + user: components["schemas"]["simple-user"] | null; + created_at: string; + updated_at: string; + issue_url: string; + author_association: + | "collaborator" + | "contributor" + | "first_timer" + | "first_time_contributor" + | "mannequin" + | "member" + | "none" + | "owner"; + performed_via_github_app?: components["schemas"]["integration"] | null; + reactions?: components["schemas"]["reaction-rollup"]; + }; + /** + * Event + */ + event: { + id: string; + type: string | null; + actor: components["schemas"]["actor"]; + repo: { id: number; name: string; url: string }; + org?: components["schemas"]["actor"]; + payload: { + action: string; + issue?: components["schemas"]["issue-simple"]; + comment?: components["schemas"]["issue-comment"]; + pages?: { + page_name?: string; + title?: string; + summary?: string | null; + action?: string; + sha?: string; + html_url?: string; + }[]; + }; + public: boolean; + created_at: string | null; + }; + /** + * Hypermedia Link with Type + */ + "link-with-type": { href: string; type: string }; + /** + * Feed + */ + feed: { + timeline_url: string; + user_url: string; + current_user_public_url?: string; + current_user_url?: string; + current_user_actor_url?: string; + current_user_organization_url?: string; + current_user_organization_urls?: string[]; + security_advisories_url?: string; + _links: { + timeline: components["schemas"]["link-with-type"]; + user: components["schemas"]["link-with-type"]; + security_advisories?: components["schemas"]["link-with-type"]; + current_user?: components["schemas"]["link-with-type"]; + current_user_public?: components["schemas"]["link-with-type"]; + current_user_actor?: components["schemas"]["link-with-type"]; + current_user_organization?: components["schemas"]["link-with-type"]; + current_user_organizations?: components["schemas"]["link-with-type"][]; + }; + }; + /** + * Base Gist + */ + "base-gist": { + url: string; + forks_url: string; + commits_url: string; + id: string; + node_id: string; + git_pull_url: string; + git_push_url: string; + html_url: string; + files: { + [key: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + }; + }; + public: boolean; + created_at: string; + updated_at: string; + description: string | null; + comments: number; + user: components["schemas"]["simple-user"] | null; + comments_url: string; + owner?: components["schemas"]["simple-user"] | null; + truncated?: boolean; + forks?: { [key: string]: any }[]; + history?: { [key: string]: any }[]; + }; + /** + * Gist Simple + */ + "gist-simple": { + url?: string; + forks_url?: string; + commits_url?: string; + id?: string; + node_id?: string; + git_pull_url?: string; + git_push_url?: string; + html_url?: string; + files?: { + [key: string]: { + filename?: string; + type?: string; + language?: string; + raw_url?: string; + size?: number; + truncated?: boolean; + content?: string; + }; + }; + public?: boolean; + created_at?: string; + updated_at?: string; + description?: string | null; + comments?: number; + user?: string | null; + comments_url?: string; + owner?: components["schemas"]["simple-user"]; + truncated?: boolean; + }; + /** + * Gist Full + */ + "gist-full": components["schemas"]["gist-simple"] & { + forks?: { + user?: { + login?: string; + id?: number; + node_id?: string; + avatar_url?: string; + gravatar_id?: string; + url?: string; + html_url?: string; + followers_url?: string; + following_url?: string; + gists_url?: string; + starred_url?: string; + subscriptions_url?: string; + organizations_url?: string; + repos_url?: string; + events_url?: string; + received_events_url?: string; + type?: string; + site_admin?: boolean; + }; + url?: string; + id?: string; + created_at?: string; + updated_at?: string; + }[]; + history?: { + url?: string; + version?: string; + user?: { + login?: string; + id?: number; + node_id?: string; + avatar_url?: string; + gravatar_id?: string; + url?: string; + html_url?: string; + followers_url?: string; + following_url?: string; + gists_url?: string; + starred_url?: string; + subscriptions_url?: string; + organizations_url?: string; + repos_url?: string; + events_url?: string; + received_events_url?: string; + type?: string; + site_admin?: boolean; + } | null; + change_status?: { + deletions?: number; + additions?: number; + total?: number; + }; + committed_at?: string; + }[]; + fork_of?: components["schemas"]["gist-simple"] | null; + url?: string; + forks_url?: string; + commits_url?: string; + id?: string; + node_id?: string; + git_pull_url?: string; + git_push_url?: string; + html_url?: string; + created_at?: string; + updated_at?: string; + description?: string | null; + comments?: number; + comments_url?: string; + }; + /** + * A comment made to a gist. + */ + "gist-comment": { + id: number; + node_id: string; + url: string; + /** + * The comment text. + */ + body: string; + user: components["schemas"]["simple-user"] | null; + created_at: string; + updated_at: string; + author_association: string; + }; + /** + * Gist Commit + */ + "gist-commit": { + url: string; + version: string; + user: components["schemas"]["simple-user"] | null; + change_status: { total?: number; additions?: number; deletions?: number }; + committed_at: string; + }; + /** + * Gitignore Template + */ + "gitignore-template": { name: string; source: string }; + /** + * Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. + */ + issue: { + id: number; + node_id: string; + /** + * URL for the issue + */ + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + /** + * Number uniquely identifying the issue within its repository + */ + number: number; + /** + * State of the issue; either 'open' or 'closed' + */ + state: string; + /** + * Title of the issue + */ + title: string; + /** + * Contents of the issue + */ + body?: string; + user: components["schemas"]["simple-user"] | null; + /** + * Labels to associate with this issue; pass one or more label names to replace the set of labels on this issue; send an empty array to clear all labels from the issue; note that the labels are silently dropped for users without push access to the repository + */ + labels: ( + | string + | { + id?: number; + node_id?: string; + url?: string; + name?: string; + description?: string | null; + color?: string | null; + default?: boolean; + } + )[]; + assignee: components["schemas"]["simple-user"] | null; + assignees?: components["schemas"]["simple-user"][] | null; + milestone: components["schemas"]["milestone"] | null; + locked: boolean; + active_lock_reason?: string | null; + comments: number; + pull_request?: { + merged_at?: string | null; + diff_url: string | null; + html_url: string | null; + patch_url: string | null; + url: string | null; + }; + closed_at: string | null; + created_at: string; + updated_at: string; + closed_by?: components["schemas"]["simple-user"] | null; + body_html?: string; + body_text?: string; + timeline_url?: string; + repository?: components["schemas"]["repository"]; + performed_via_github_app?: components["schemas"]["integration"] | null; + author_association: string; + reactions?: components["schemas"]["reaction-rollup"]; + }; + /** + * License + */ + license: { + key: string; + name: string; + spdx_id: string | null; + url: string | null; + node_id: string; + html_url: string; + description: string; + implementation: string; + permissions: string[]; + conditions: string[]; + limitations: string[]; + body: string; + featured: boolean; + }; + /** + * Marketplace Listing Plan + */ + "marketplace-listing-plan": { + url: string; + accounts_url: string; + id: number; + number: number; + name: string; + description: string; + monthly_price_in_cents: number; + yearly_price_in_cents: number; + price_model: string; + has_free_trial: boolean; + unit_name: string | null; + state: string; + bullets: string[]; + }; + /** + * Marketplace Purchase + */ + "marketplace-purchase": { + url: string; + type: string; + id: number; + login: string; + organization_billing_email?: string; + marketplace_pending_change?: { + is_installed?: boolean; + effective_date?: string; + unit_count?: number | null; + id?: number; + plan?: components["schemas"]["marketplace-listing-plan"]; + } | null; + marketplace_purchase: { + billing_cycle?: string; + next_billing_date?: string | null; + is_installed?: boolean; + unit_count?: number | null; + on_free_trial?: boolean; + free_trial_ends_on?: string | null; + updated_at?: string; + plan?: components["schemas"]["marketplace-listing-plan"]; + }; + }; + /** + * Api Overview + */ + "api-overview": { + verifiable_password_authentication: boolean; + ssh_key_fingerprints?: { + MD5_RSA?: string; + MD5_DSA?: string; + SHA256_RSA?: string; + SHA256_DSA?: string; + }; + hooks?: string[]; + web?: string[]; + api?: string[]; + git?: string[]; + pages?: string[]; + importer?: string[]; + github_services_sha?: string; + installed_version?: string; + }; + /** + * Minimal Repository + */ + "minimal-repository": { + id: number; + node_id: string; + name: string; + full_name: string; + owner: components["schemas"]["simple-user"] | null; + private: boolean; + html_url: string; + description: string | null; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url?: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url?: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url?: string; + mirror_url?: string | null; + hooks_url: string; + svn_url?: string; + homepage?: string | null; + language?: string | null; + forks_count?: number; + stargazers_count?: number; + watchers_count?: number; + size?: number; + default_branch?: string; + open_issues_count?: number; + is_template?: boolean; + topics?: string[]; + has_issues?: boolean; + has_projects?: boolean; + has_wiki?: boolean; + has_pages?: boolean; + has_downloads?: boolean; + archived?: boolean; + disabled?: boolean; + visibility?: string; + pushed_at?: string | null; + created_at?: string | null; + updated_at?: string | null; + permissions?: { admin?: boolean; push?: boolean; pull?: boolean }; + template_repository?: string; + temp_clone_token?: string; + delete_branch_on_merge?: boolean; + subscribers_count?: number; + network_count?: number; + license?: { + key?: string; + name?: string; + spdx_id?: string; + url?: string; + node_id?: string; + } | null; + forks?: number; + open_issues?: number; + watchers?: number; + }; + /** + * Thread + */ + thread: { + id?: string; + repository?: components["schemas"]["minimal-repository"]; + subject?: { + title?: string; + url?: string; + latest_comment_url?: string; + type?: string; + }; + reason?: string; + unread?: boolean; + updated_at?: string; + last_read_at?: string | null; + url?: string; + subscription_url?: string; + }; + /** + * Thread Subscription + */ + "thread-subscription": { + subscribed: boolean; + ignored: boolean; + reason: string | null; + created_at: string | null; + url: string; + thread_url?: string; + repository_url?: string; + }; + /** + * Organization Full + */ + "organization-full": { + login: string; + id: number; + node_id: string; + url: string; + repos_url: string; + events_url: string; + hooks_url: string; + issues_url: string; + members_url: string; + public_members_url: string; + avatar_url: string; + description: string | null; + name?: string; + company?: string; + blog?: string; + location?: string; + email?: string; + twitter_username?: string | null; + is_verified?: boolean; + has_organization_projects: boolean; + has_repository_projects: boolean; + public_repos: number; + public_gists: number; + followers: number; + following: number; + html_url: string; + created_at: string; + type: string; + total_private_repos?: number; + owned_private_repos?: number; + private_gists?: number | null; + disk_usage?: number | null; + collaborators?: number | null; + billing_email?: string | null; + plan?: { + name: string; + space: number; + private_repos: number; + filled_seats?: number; + seats?: number; + }; + default_repository_permission?: string | null; + members_can_create_repositories?: boolean | null; + two_factor_requirement_enabled?: boolean | null; + members_allowed_repository_creation_type?: string; + members_can_create_public_repositories?: boolean; + members_can_create_private_repositories?: boolean; + members_can_create_internal_repositories?: boolean; + members_can_create_pages?: boolean; + updated_at: string; + }; + /** + * The policy that controls the repositories in the organization that are allowed to run GitHub Actions. Can be one of: `all`, `none`, or `selected`. + */ + "enabled-repositories": "all" | "none" | "selected"; + "actions-organization-permissions": { + enabled_repositories?: components["schemas"]["enabled-repositories"]; + /** + * The API URL to use to get or set the selected repositories that are allowed to run GitHub Actions, when `enabled_repositories` is set to `selected`. + */ + selected_repositories_url?: string; + allowed_actions?: components["schemas"]["allowed-actions"]; + selected_actions_url?: components["schemas"]["selected-actions-url"]; + }; + "runner-groups-org": { + id?: number; + name?: string; + visibility?: string; + default?: boolean; + selected_repositories_url?: string; + runners_url?: string; + inherited?: boolean; + }; + /** + * Secrets for GitHub Actions for an organization. + */ + "organization-actions-secret": { + /** + * The name of the secret. + */ + name: string; + created_at: string; + updated_at: string; + /** + * Visibility of a secret + */ + visibility: "all" | "private" | "selected"; + selected_repositories_url?: string; + }; + /** + * The public key used for setting Actions Secrets. + */ + "actions-public-key": { + /** + * The identifier for the key. + */ + key_id: string; + /** + * The Base64 encoded public key. + */ + key: string; + id?: number; + url?: string; + title?: string; + created_at?: string; + }; + /** + * Credential Authorization + */ + "credential-authorization": { + /** + * User login that owns the underlying credential. + */ + login: string; + /** + * Unique identifier for the credential. + */ + credential_id: number; + /** + * Human-readable description of the credential type. + */ + credential_type: string; + /** + * Last eight characters of the credential. Only included in responses with credential_type of personal access token. + */ + token_last_eight?: string; + /** + * Date when the credential was authorized for use. + */ + credential_authorized_at: string; + /** + * List of oauth scopes the token has been granted. + */ + scopes?: string[]; + /** + * Unique string to distinguish the credential. Only included in responses with credential_type of SSH Key. + */ + fingerprint?: string; + /** + * Date when the credential was last accessed. May be null if it was never accessed + */ + credential_accessed_at?: string | null; + }; + /** + * Org Hook + */ + "org-hook": { + id: number; + url: string; + ping_url: string; + name: string; + events: string[]; + active: boolean; + config: { + url?: string; + insecure_ssl?: string; + content_type?: string; + secret?: string; + }; + updated_at: string; + created_at: string; + type: string; + }; + /** + * The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. Can be one of: `existing_users`, `contributors_only`, `collaborators_only`. + */ + "interaction-group": + | "existing_users" + | "contributors_only" + | "collaborators_only"; + /** + * Interaction limit settings. + */ + "interaction-limit-response": { + limit: components["schemas"]["interaction-group"]; + origin: string; + expires_at: string; + }; + /** + * The duration of the interaction restriction. Can be one of: `one_day`, `three_days`, `one_week`, `one_month`, `six_months`. Default: `one_day`. + */ + "interaction-expiry": + | "one_day" + | "three_days" + | "one_week" + | "one_month" + | "six_months"; + /** + * Limit interactions to a specific type of user for a specified duration + */ + "interaction-limit": { + limit: components["schemas"]["interaction-group"]; + expiry?: components["schemas"]["interaction-expiry"]; + }; + /** + * Organization Invitation + */ + "organization-invitation": { + id?: number; + login?: string | null; + email?: string | null; + role?: string; + created_at?: string; + inviter?: components["schemas"]["simple-user"]; + team_count?: number; + invitation_team_url?: string; + node_id?: string; + invitation_teams_url?: string; + }; + /** + * Groups of organization members that gives permissions on specified repositories. + */ + "team-simple": { + /** + * Unique identifier of the team + */ + id: number; + node_id: string; + /** + * URL for the team + */ + url: string; + members_url: string; + /** + * Name of the team + */ + name: string; + /** + * Description of the team + */ + description: string | null; + /** + * Permission that the team will have for its repositories + */ + permission: string; + /** + * The level of privacy this team should have + */ + privacy?: string; + html_url: string; + repositories_url: string; + slug: string; + /** + * Distinguished Name (DN) that team maps to within LDAP environment + */ + ldap_dn?: string; + } | null; + /** + * Groups of organization members that gives permissions on specified repositories. + */ + team: { + id: number; + node_id: string; + name: string; + slug: string; + description: string | null; + privacy?: string; + permission: string; + url: string; + html_url: string; + members_url: string; + repositories_url: string; + parent?: components["schemas"]["team-simple"] | null; + }; + /** + * Org Membership + */ + "org-membership": { + url: string; + state: string; + role: string; + organization_url: string; + organization: components["schemas"]["organization-simple"]; + user: components["schemas"]["simple-user"] | null; + permissions?: { can_create_repository: boolean }; + }; + /** + * A migration. + */ + migration: { + id: number; + owner: components["schemas"]["simple-user"] | null; + guid: string; + state: string; + lock_repositories: boolean; + exclude_attachments: boolean; + repositories: components["schemas"]["repository"][]; + url: string; + created_at: string; + updated_at: string; + node_id: string; + archive_url?: string; + exclude?: { [key: string]: any }[]; + }; + /** + * Projects are a way to organize columns and cards of work. + */ + project: { + owner_url: string; + url: string; + html_url: string; + columns_url: string; + id: number; + node_id: string; + /** + * Name of the project + */ + name: string; + /** + * Body of the project + */ + body: string | null; + number: number; + /** + * State of the project; either 'open' or 'closed' + */ + state: string; + creator: components["schemas"]["simple-user"] | null; + created_at: string; + updated_at: string; + /** + * The baseline permission that all organization members have on this project + */ + organization_permission?: "read" | "write" | "admin" | "none"; + /** + * Whether or not this project can be seen by everyone. + */ + private?: boolean; + cards_url?: string; + permissions?: { read: boolean; write: boolean; admin: boolean }; + }; + /** + * External Groups to be mapped to a team for membership + */ + "group-mapping": { + /** + * Array of groups to be mapped to this team + */ + groups?: { + /** + * The ID of the group + */ + group_id: string; + /** + * The name of the group + */ + group_name: string; + /** + * a description of the group + */ + group_description: string; + }[]; + /** + * The ID of the group + */ + group_id?: string; + /** + * The name of the group + */ + group_name?: string; + /** + * a description of the group + */ + group_description?: string; + /** + * synchronization status for this group mapping + */ + status?: string; + /** + * the time of the last sync for this group-mapping + */ + synced_at?: string; + }; + /** + * Groups of organization members that gives permissions on specified repositories. + */ + "team-full": { + /** + * Unique identifier of the team + */ + id: number; + node_id: string; + /** + * URL for the team + */ + url: string; + html_url: string; + /** + * Name of the team + */ + name: string; + slug: string; + description: string | null; + /** + * The level of privacy this team should have + */ + privacy?: "closed" | "secret"; + /** + * Permission that the team will have for its repositories + */ + permission: string; + members_url: string; + repositories_url: string; + parent?: components["schemas"]["team-simple"] | null; + members_count: number; + repos_count: number; + created_at: string; + updated_at: string; + organization: components["schemas"]["organization-full"]; + /** + * Distinguished Name (DN) that team maps to within LDAP environment + */ + ldap_dn?: string; + }; + /** + * A team discussion is a persistent record of a free-form conversation within a team. + */ + "team-discussion": { + author: components["schemas"]["simple-user"] | null; + /** + * The main text of the discussion. + */ + body: string; + body_html: string; + /** + * The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. + */ + body_version: string; + comments_count: number; + comments_url: string; + created_at: string; + last_edited_at: string | null; + html_url: string; + node_id: string; + /** + * The unique sequence number of a team discussion. + */ + number: number; + /** + * Whether or not this discussion should be pinned for easy retrieval. + */ + pinned: boolean; + /** + * Whether or not this discussion should be restricted to team members and organization administrators. + */ + private: boolean; + team_url: string; + /** + * The title of the discussion. + */ + title: string; + updated_at: string; + url: string; + reactions?: components["schemas"]["reaction-rollup"]; + }; + /** + * A reply to a discussion within a team. + */ + "team-discussion-comment": { + author: components["schemas"]["simple-user"] | null; + /** + * The main text of the comment. + */ + body: string; + body_html: string; + /** + * The current version of the body content. If provided, this update operation will be rejected if the given version does not match the latest version on the server. + */ + body_version: string; + created_at: string; + last_edited_at: string | null; + discussion_url: string; + html_url: string; + node_id: string; + /** + * The unique sequence number of a team discussion comment. + */ + number: number; + updated_at: string; + url: string; + reactions?: components["schemas"]["reaction-rollup"]; + }; + /** + * Reactions to conversations provide a way to help people express their feelings more simply and effectively. + */ + reaction: { + id: number; + node_id: string; + user: components["schemas"]["simple-user"] | null; + /** + * The reaction to use + */ + content: + | "+1" + | "-1" + | "laugh" + | "confused" + | "heart" + | "hooray" + | "rocket" + | "eyes"; + created_at: string; + }; + /** + * Team Membership + */ + "team-membership": { + url: string; + /** + * The role of the user in the team. + */ + role: "member" | "maintainer"; + state: string; + }; + /** + * A team's access to a project. + */ + "team-project": { + owner_url?: string; + url?: string; + html_url?: string; + columns_url?: string; + id?: number; + node_id?: string; + name?: string; + body?: string | null; + number?: number; + state?: string; + creator?: components["schemas"]["simple-user"]; + created_at?: string; + updated_at?: string; + organization_permission?: string; + private?: boolean; + permissions?: { read?: boolean; write?: boolean; admin?: boolean }; + }; + /** + * A team's access to a repository. + */ + "team-repository": { + /** + * Unique identifier of the repository + */ + id: number; + node_id: string; + /** + * The name of the repository. + */ + name: string; + full_name: string; + license: components["schemas"]["license-simple"] | null; + forks: number; + permissions?: { + admin: boolean; + pull: boolean; + triage?: boolean; + push: boolean; + maintain?: boolean; + }; + owner: components["schemas"]["simple-user"] | null; + /** + * Whether the repository is private or public. + */ + private: boolean; + html_url: string; + description: string | null; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string | null; + hooks_url: string; + svn_url: string; + homepage: string | null; + language: string | null; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + /** + * The default branch of the repository. + */ + default_branch: string; + open_issues_count: number; + /** + * Whether this repository acts as a template that can be used to generate new repositories. + */ + is_template?: boolean; + topics?: string[]; + /** + * Whether issues are enabled. + */ + has_issues: boolean; + /** + * Whether projects are enabled. + */ + has_projects: boolean; + /** + * Whether the wiki is enabled. + */ + has_wiki: boolean; + has_pages: boolean; + /** + * Whether downloads are enabled. + */ + has_downloads: boolean; + /** + * Whether the repository is archived. + */ + archived: boolean; + /** + * Returns whether or not this repository disabled. + */ + disabled: boolean; + /** + * The repository visibility: public, private, or internal. + */ + visibility?: string; + pushed_at: string | null; + created_at: string | null; + updated_at: string | null; + /** + * Whether to allow rebase merges for pull requests. + */ + allow_rebase_merge?: boolean; + template_repository?: { + id?: number; + node_id?: string; + name?: string; + full_name?: string; + owner?: { + login?: string; + id?: number; + node_id?: string; + avatar_url?: string; + gravatar_id?: string; + url?: string; + html_url?: string; + followers_url?: string; + following_url?: string; + gists_url?: string; + starred_url?: string; + subscriptions_url?: string; + organizations_url?: string; + repos_url?: string; + events_url?: string; + received_events_url?: string; + type?: string; + site_admin?: boolean; + }; + private?: boolean; + html_url?: string; + description?: string; + fork?: boolean; + url?: string; + archive_url?: string; + assignees_url?: string; + blobs_url?: string; + branches_url?: string; + collaborators_url?: string; + comments_url?: string; + commits_url?: string; + compare_url?: string; + contents_url?: string; + contributors_url?: string; + deployments_url?: string; + downloads_url?: string; + events_url?: string; + forks_url?: string; + git_commits_url?: string; + git_refs_url?: string; + git_tags_url?: string; + git_url?: string; + issue_comment_url?: string; + issue_events_url?: string; + issues_url?: string; + keys_url?: string; + labels_url?: string; + languages_url?: string; + merges_url?: string; + milestones_url?: string; + notifications_url?: string; + pulls_url?: string; + releases_url?: string; + ssh_url?: string; + stargazers_url?: string; + statuses_url?: string; + subscribers_url?: string; + subscription_url?: string; + tags_url?: string; + teams_url?: string; + trees_url?: string; + clone_url?: string; + mirror_url?: string; + hooks_url?: string; + svn_url?: string; + homepage?: string; + language?: string; + forks_count?: number; + stargazers_count?: number; + watchers_count?: number; + size?: number; + default_branch?: string; + open_issues_count?: number; + is_template?: boolean; + topics?: string[]; + has_issues?: boolean; + has_projects?: boolean; + has_wiki?: boolean; + has_pages?: boolean; + has_downloads?: boolean; + archived?: boolean; + disabled?: boolean; + visibility?: string; + pushed_at?: string; + created_at?: string; + updated_at?: string; + permissions?: { admin?: boolean; push?: boolean; pull?: boolean }; + allow_rebase_merge?: boolean; + template_repository?: string; + temp_clone_token?: string; + allow_squash_merge?: boolean; + delete_branch_on_merge?: boolean; + allow_merge_commit?: boolean; + subscribers_count?: number; + network_count?: number; + } | null; + temp_clone_token?: string; + /** + * Whether to allow squash merges for pull requests. + */ + allow_squash_merge?: boolean; + /** + * Whether to delete head branches when pull requests are merged + */ + delete_branch_on_merge?: boolean; + /** + * Whether to allow merge commits for pull requests. + */ + allow_merge_commit?: boolean; + subscribers_count?: number; + network_count?: number; + open_issues: number; + watchers: number; + master_branch?: string; + }; + /** + * Project cards represent a scope of work. + */ + "project-card": { + url: string; + /** + * The project card's ID + */ + id: number; + node_id: string; + note: string | null; + creator: components["schemas"]["simple-user"] | null; + created_at: string; + updated_at: string; + /** + * Whether or not the card is archived + */ + archived?: boolean; + column_url: string; + content_url?: string; + project_url: string; + }; + /** + * Project columns contain cards of work. + */ + "project-column": { + url: string; + project_url: string; + cards_url: string; + /** + * The unique identifier of the project column + */ + id: number; + node_id: string; + /** + * Name of the project column + */ + name: string; + created_at: string; + updated_at: string; + }; + /** + * Repository Collaborator Permission + */ + "repository-collaborator-permission": { + permission: string; + user: components["schemas"]["simple-user"] | null; + }; + "rate-limit": { limit: number; remaining: number; reset: number }; + /** + * Rate Limit Overview + */ + "rate-limit-overview": { + resources: { + core: components["schemas"]["rate-limit"]; + graphql?: components["schemas"]["rate-limit"]; + search: components["schemas"]["rate-limit"]; + source_import?: components["schemas"]["rate-limit"]; + integration_manifest?: components["schemas"]["rate-limit"]; + code_scanning_upload?: components["schemas"]["rate-limit"]; + }; + rate: components["schemas"]["rate-limit"]; + }; + /** + * Full Repository + */ + "full-repository": { + id: number; + node_id: string; + name: string; + full_name: string; + owner: components["schemas"]["simple-user"] | null; + private: boolean; + html_url: string; + description: string | null; + fork: boolean; + url: string; + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + downloads_url: string; + events_url: string; + forks_url: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + git_url: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + notifications_url: string; + pulls_url: string; + releases_url: string; + ssh_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + clone_url: string; + mirror_url: string | null; + hooks_url: string; + svn_url: string; + homepage: string | null; + language: string | null; + forks_count: number; + stargazers_count: number; + watchers_count: number; + size: number; + default_branch: string; + open_issues_count: number; + is_template?: boolean; + topics?: string[]; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + has_downloads: boolean; + archived: boolean; + /** + * Returns whether or not this repository disabled. + */ + disabled: boolean; + /** + * The repository visibility: public, private, or internal. + */ + visibility?: string; + pushed_at: string; + created_at: string; + updated_at: string; + permissions?: { admin: boolean; pull: boolean; push: boolean }; + allow_rebase_merge?: boolean; + template_repository?: components["schemas"]["repository"] | null; + temp_clone_token?: string | null; + allow_squash_merge?: boolean; + delete_branch_on_merge?: boolean; + allow_merge_commit?: boolean; + subscribers_count: number; + network_count: number; + license: components["schemas"]["license-simple"] | null; + organization?: components["schemas"]["simple-user"] | null; + parent?: components["schemas"]["repository"]; + source?: components["schemas"]["repository"]; + forks: number; + master_branch?: string; + open_issues: number; + watchers: number; + /** + * Whether anonymous git access is allowed. + */ + anonymous_access_enabled?: boolean; + }; + /** + * An artifact + */ + artifact: { + id: number; + node_id: string; + /** + * The name of the artifact. + */ + name: string; + /** + * The size in bytes of the artifact. + */ + size_in_bytes: number; + url: string; + archive_download_url: string; + /** + * Whether or not the artifact has expired. + */ + expired: boolean; + created_at: string | null; + expires_at: string; + updated_at: string | null; + }; + /** + * Information of a job execution in a workflow run + */ + job: { + /** + * The id of the job. + */ + id: number; + /** + * The id of the associated workflow run. + */ + run_id: number; + run_url: string; + node_id: string; + /** + * The SHA of the commit that is being run. + */ + head_sha: string; + url: string; + html_url: string | null; + /** + * The phase of the lifecycle that the job is currently in. + */ + status: "queued" | "in_progress" | "completed"; + /** + * The outcome of the job. + */ + conclusion: string | null; + /** + * The time that the job started, in ISO 8601 format. + */ + started_at: string; + /** + * The time that the job finished, in ISO 8601 format. + */ + completed_at: string | null; + /** + * The name of the job. + */ + name: string; + /** + * Steps in this job. + */ + steps?: { + /** + * The phase of the lifecycle that the job is currently in. + */ + status: "queued" | "in_progress" | "completed"; + /** + * The outcome of the job. + */ + conclusion: string | null; + /** + * The name of the job. + */ + name: string; + number: number; + /** + * The time that the step started, in ISO 8601 format. + */ + started_at?: string | null; + /** + * The time that the job finished, in ISO 8601 format. + */ + completed_at?: string | null; + }[]; + check_run_url: string; + }; + /** + * Whether GitHub Actions is enabled on the repository. + */ + "actions-enabled": boolean; + "actions-repository-permissions": { + enabled?: components["schemas"]["actions-enabled"]; + allowed_actions?: components["schemas"]["allowed-actions"]; + selected_actions_url?: components["schemas"]["selected-actions-url"]; + }; + "pull-request-minimal": { + id: number; + number: number; + url: string; + head: { + ref: string; + sha: string; + repo: { id: number; url: string; name: string }; + }; + base: { + ref: string; + sha: string; + repo: { id: number; url: string; name: string }; + }; + }; + /** + * Simple Commit + */ + "simple-commit": { + id: string; + tree_id: string; + message: string; + timestamp: string; + author: { name: string; email: string } | null; + committer: { name: string; email: string } | null; + }; + /** + * An invocation of a workflow + */ + "workflow-run": { + /** + * The ID of the workflow run. + */ + id: number; + /** + * The name of the workflow run. + */ + name?: string; + node_id: string; + head_branch: string | null; + /** + * The SHA of the head commit that points to the version of the worflow being run. + */ + head_sha: string; + /** + * The auto incrementing run number for the workflow run. + */ + run_number: number; + event: string; + status: string | null; + conclusion: string | null; + /** + * The ID of the parent workflow. + */ + workflow_id: number; + /** + * The URL to the workflow run. + */ + url: string; + html_url: string; + pull_requests: components["schemas"]["pull-request-minimal"][] | null; + created_at: string | null; + updated_at: string | null; + /** + * The URL to the jobs for the workflow run. + */ + jobs_url: string; + /** + * The URL to download the logs for the workflow run. + */ + logs_url: string; + /** + * The URL to the associated check suite. + */ + check_suite_url: string; + /** + * The URL to the artifacts for the workflow run. + */ + artifacts_url: string; + /** + * The URL to cancel the workflow run. + */ + cancel_url: string; + /** + * The URL to rerun the workflow run. + */ + rerun_url: string; + /** + * The URL to the workflow. + */ + workflow_url: string; + head_commit: components["schemas"]["simple-commit"]; + repository: components["schemas"]["minimal-repository"]; + head_repository: components["schemas"]["minimal-repository"]; + head_repository_id?: number; + }; + /** + * Workflow Run Usage + */ + "workflow-run-usage": { + billable?: { + UBUNTU?: { total_ms?: number; jobs?: number }; + MACOS?: { total_ms?: number; jobs?: number }; + WINDOWS?: { total_ms?: number; jobs?: number }; + }; + run_duration_ms?: number; + }; + /** + * Set secrets for GitHub Actions. + */ + "actions-secret": { + /** + * The name of the secret. + */ + name: string; + created_at: string; + updated_at: string; + }; + /** + * A GitHub Actions workflow + */ + workflow: { + id: number; + node_id: string; + name: string; + path: string; + state: "active" | "deleted"; + created_at: string; + updated_at: string; + url: string; + html_url: string; + badge_url: string; + deleted_at?: string; + }; + /** + * Workflow Usage + */ + "workflow-usage": { + billable?: { + UBUNTU?: { total_ms?: number }; + MACOS?: { total_ms?: number }; + WINDOWS?: { total_ms?: number }; + }; + }; + /** + * Protected Branch Admin Enforced + */ + "protected-branch-admin-enforced": { url: string; enabled: boolean }; + /** + * Protected Branch Pull Request Review + */ + "protected-branch-pull-request-review": { + url?: string; + dismissal_restrictions?: { + /** + * The list of users with review dismissal access. + */ + users?: components["schemas"]["simple-user"][]; + /** + * The list of teams with review dismissal access. + */ + teams?: components["schemas"]["team"][]; + url?: string; + users_url?: string; + teams_url?: string; + }; + dismiss_stale_reviews: boolean; + require_code_owner_reviews: boolean; + required_approving_review_count?: number; + }; + /** + * Branch Restriction Policy + */ + "branch-restriction-policy": { + url: string; + users_url: string; + teams_url: string; + apps_url: string; + users: { + login?: string; + id?: number; + node_id?: string; + avatar_url?: string; + gravatar_id?: string; + url?: string; + html_url?: string; + followers_url?: string; + following_url?: string; + gists_url?: string; + starred_url?: string; + subscriptions_url?: string; + organizations_url?: string; + repos_url?: string; + events_url?: string; + received_events_url?: string; + type?: string; + site_admin?: boolean; + }[]; + teams: { + id?: number; + node_id?: string; + url?: string; + html_url?: string; + name?: string; + slug?: string; + description?: string | null; + privacy?: string; + permission?: string; + members_url?: string; + repositories_url?: string; + parent?: string | null; + }[]; + apps: { + id?: number; + slug?: string; + node_id?: string; + owner?: { + login?: string; + id?: number; + node_id?: string; + url?: string; + repos_url?: string; + events_url?: string; + hooks_url?: string; + issues_url?: string; + members_url?: string; + public_members_url?: string; + avatar_url?: string; + description?: string; + gravatar_id?: string; + html_url?: string; + followers_url?: string; + following_url?: string; + gists_url?: string; + starred_url?: string; + subscriptions_url?: string; + organizations_url?: string; + received_events_url?: string; + type?: string; + }; + name?: string; + description?: string; + external_url?: string; + html_url?: string; + created_at?: string; + updated_at?: string; + permissions?: { + metadata?: string; + contents?: string; + issues?: string; + single_file?: string; + }; + events?: string[]; + }[]; + }; + /** + * Branch Protection + */ + "branch-protection": { + url?: string; + required_status_checks: { + url?: string; + enforcement_level: string; + contexts: string[]; + contexts_url?: string; + }; + enforce_admins?: components["schemas"]["protected-branch-admin-enforced"]; + required_pull_request_reviews?: components["schemas"]["protected-branch-pull-request-review"]; + restrictions?: components["schemas"]["branch-restriction-policy"]; + required_linear_history?: { enabled?: boolean }; + allow_force_pushes?: { enabled?: boolean }; + allow_deletions?: { enabled?: boolean }; + enabled: boolean; + name?: string; + protection_url?: string; + }; + /** + * Short Branch + */ + "short-branch": { + name: string; + commit: { sha: string; url: string }; + protected: boolean; + protection?: components["schemas"]["branch-protection"]; + protection_url?: string; + }; + /** + * Metaproperties for Git author/committer information. + */ + "git-user": { name?: string; email?: string; date?: string }; + verification: { + verified: boolean; + reason: string; + payload: string | null; + signature: string | null; + }; + /** + * Commit + */ + commit: { + url: string | null; + sha: string | null; + node_id: string; + html_url: string; + comments_url: string; + commit: { + url: string; + author: components["schemas"]["git-user"] | null; + committer: components["schemas"]["git-user"] | null; + message: string; + comment_count: number; + tree: { sha: string; url: string }; + verification?: components["schemas"]["verification"]; + }; + author: components["schemas"]["simple-user"] | null; + committer: components["schemas"]["simple-user"] | null; + parents: { sha: string; url: string; html_url?: string }[]; + stats?: { additions?: number; deletions?: number; total?: number }; + files?: { + filename?: string; + additions?: number; + deletions?: number; + changes?: number; + status?: string; + raw_url?: string; + blob_url?: string; + patch?: string; + sha?: string; + contents_url?: string; + previous_filename?: string; + }[]; + }; + /** + * Branch With Protection + */ + "branch-with-protection": { + name: string; + commit: components["schemas"]["commit"]; + _links: { html: string; self: string }; + protected: boolean; + protection: components["schemas"]["branch-protection"]; + protection_url: string; + pattern?: string; + required_approving_review_count?: number; + }; + /** + * Status Check Policy + */ + "status-check-policy": { + url: string; + strict: boolean; + contexts: string[]; + contexts_url: string; + }; + /** + * Branch protections protect branches + */ + "protected-branch": { + url: string; + required_status_checks?: components["schemas"]["status-check-policy"]; + required_pull_request_reviews?: { + url: string; + dismiss_stale_reviews?: boolean; + require_code_owner_reviews?: boolean; + required_approving_review_count?: number; + dismissal_restrictions?: { + url: string; + users_url: string; + teams_url: string; + users: components["schemas"]["simple-user"][]; + teams: components["schemas"]["team"][]; + }; + }; + required_signatures?: { url: string; enabled: boolean }; + enforce_admins?: { url: string; enabled: boolean }; + required_linear_history?: { enabled: boolean }; + allow_force_pushes?: { enabled: boolean }; + allow_deletions?: { enabled: boolean }; + restrictions?: components["schemas"]["branch-restriction-policy"]; + }; + /** + * A check performed on the code of a given code change + */ + "check-run": { + /** + * The id of the check. + */ + id: number; + /** + * The SHA of the commit that is being checked. + */ + head_sha: string; + node_id: string; + external_id: string | null; + url: string; + html_url: string | null; + details_url: string | null; + /** + * The phase of the lifecycle that the check is currently in. + */ + status: "queued" | "in_progress" | "completed"; + conclusion: string | null; + started_at: string | null; + completed_at: string | null; + output: { + title: string | null; + summary: string | null; + text: string | null; + annotations_count: number; + annotations_url: string; + }; + /** + * The name of the check. + */ + name: string; + check_suite: { id: number } | null; + app: components["schemas"]["integration"] | null; + pull_requests: components["schemas"]["pull-request-minimal"][]; + }; + /** + * Check Annotation + */ + "check-annotation": { + path: string; + start_line: number; + end_line: number; + start_column: number | null; + end_column: number | null; + annotation_level: string | null; + title: string | null; + message: string | null; + raw_details: string | null; + blob_href: string; + }; + /** + * A suite of checks performed on the code of a given code change + */ + "check-suite": { + id: number; + node_id: string; + head_branch: string | null; + /** + * The SHA of the head commit that is being checked. + */ + head_sha: string; + status: string | null; + conclusion: string | null; + url: string | null; + before: string | null; + after: string | null; + pull_requests: components["schemas"]["pull-request-minimal"][] | null; + app: components["schemas"]["integration"] | null; + repository: components["schemas"]["minimal-repository"]; + created_at: string | null; + updated_at: string | null; + head_commit: components["schemas"]["simple-commit"]; + latest_check_runs_count: number; + check_runs_url: string; + }; + /** + * Check suite configuration preferences for a repository. + */ + "check-suite-preference": { + preferences?: { + auto_trigger_checks?: { app_id: number; setting: boolean }[]; + }; + repository?: components["schemas"]["repository"]; + }; + /** + * State of a code scanning alert. + */ + "code-scanning-alert-state": "open" | "dismissed" | "fixed"; + /** + * The full Git reference, formatted as `refs/heads/`. + */ + "code-scanning-alert-ref": string; + /** + * The code scanning alert number. + */ + "code-scanning-alert-number": number; + /** + * The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + "code-scanning-alert-created-at": string; + /** + * The REST API URL of the alert resource. + */ + "code-scanning-alert-url": string; + /** + * The GitHub URL of the alert resource. + */ + "code-scanning-alert-html-url": string; + /** + * The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + "code-scanning-alert-dismissed-at": string | null; + /** + * **Required when the state is dismissed.** The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`. + */ + "code-scanning-alert-dismissed-reason": string | null; + "code-scanning-alert-rule": { + /** + * A unique identifier for the rule used to detect the alert. + */ + id?: string | null; + /** + * The severity of the alert. + */ + severity?: ("none" | "note" | "warning" | "error") | null; + /** + * A short description of the rule used to detect the alert. + */ + description?: string; + }; + /** + * The name of the tool used to generate the code scanning analysis alert. + */ + "code-scanning-analysis-tool-name": string; + "code-scanning-analysis-tool": { + name?: components["schemas"]["code-scanning-analysis-tool-name"]; + /** + * The version of the tool used to detect the alert. + */ + version?: string | null; + }; + "code-scanning-alert-code-scanning-alert-items": { + number?: components["schemas"]["code-scanning-alert-number"]; + created_at?: components["schemas"]["code-scanning-alert-created-at"]; + url?: components["schemas"]["code-scanning-alert-url"]; + html_url?: components["schemas"]["code-scanning-alert-html-url"]; + state?: components["schemas"]["code-scanning-alert-state"]; + dismissed_by?: components["schemas"]["simple-user"]; + dismissed_at?: components["schemas"]["code-scanning-alert-dismissed-at"]; + dismissed_reason?: components["schemas"]["code-scanning-alert-dismissed-reason"]; + rule?: components["schemas"]["code-scanning-alert-rule"]; + tool?: components["schemas"]["code-scanning-analysis-tool"]; + }; + /** + * Identifies the configuration under which the analysis was executed. For example, in GitHub Actions this includes the workflow filename and job name. + */ + "code-scanning-analysis-analysis-key": string; + /** + * Identifies the variable values associated with the environment in which the analysis that generated this alert instance was performed, such as the language that was analyzed. + */ + "code-scanning-alert-environment": string; + "code-scanning-alert-instances": + | { + ref?: components["schemas"]["code-scanning-alert-ref"]; + analysis_key?: components["schemas"]["code-scanning-analysis-analysis-key"]; + environment?: components["schemas"]["code-scanning-alert-environment"]; + matrix_vars?: string | null; + state?: components["schemas"]["code-scanning-alert-state"]; + }[] + | null; + "code-scanning-alert-code-scanning-alert": { + number?: components["schemas"]["code-scanning-alert-number"]; + created_at?: components["schemas"]["code-scanning-alert-created-at"]; + url?: components["schemas"]["code-scanning-alert-url"]; + html_url?: components["schemas"]["code-scanning-alert-html-url"]; + instances?: components["schemas"]["code-scanning-alert-instances"]; + state?: components["schemas"]["code-scanning-alert-state"]; + dismissed_by?: components["schemas"]["simple-user"]; + dismissed_at?: components["schemas"]["code-scanning-alert-dismissed-at"]; + dismissed_reason?: components["schemas"]["code-scanning-alert-dismissed-reason"]; + rule?: components["schemas"]["code-scanning-alert-rule"]; + tool?: components["schemas"]["code-scanning-analysis-tool"]; + }; + /** + * Sets the state of the code scanning alert. Can be one of `open` or `dismissed`. You must provide `dismissed_reason` when you set the state to `dismissed`. + */ + "code-scanning-alert-set-state": "open" | "dismissed"; + /** + * The full Git reference of the code scanning analysis file, formatted as `refs/heads/`. + */ + "code-scanning-analysis-ref": string; + /** + * The commit SHA of the code scanning analysis file. + */ + "code-scanning-analysis-commit-sha": string; + /** + * The time that the analysis was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + */ + "code-scanning-analysis-created-at": string; + /** + * Identifies the variable values associated with the environment in which this analysis was performed. + */ + "code-scanning-analysis-environment": string; + "code-scanning-analysis-code-scanning-analysis": { + commit_sha?: components["schemas"]["code-scanning-analysis-commit-sha"]; + ref?: components["schemas"]["code-scanning-analysis-ref"]; + analysis_key?: components["schemas"]["code-scanning-analysis-analysis-key"]; + created_at?: components["schemas"]["code-scanning-analysis-created-at"]; + tool_name?: components["schemas"]["code-scanning-analysis-tool-name"]; + error?: string; + environment?: components["schemas"]["code-scanning-analysis-environment"]; + }; + /** + * A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. + */ + "code-scanning-analysis-sarif-file": string; + /** + * Collaborator + */ + collaborator: { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string | null; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + permissions?: { pull: boolean; push: boolean; admin: boolean }; + }; + /** + * Repository invitations let you manage who you collaborate with. + */ + "repository-invitation": { + /** + * Unique identifier of the repository invitation. + */ + id: number; + repository: components["schemas"]["minimal-repository"]; + invitee: components["schemas"]["simple-user"] | null; + inviter: components["schemas"]["simple-user"] | null; + /** + * The permission associated with the invitation. + */ + permissions: "read" | "write" | "admin"; + created_at: string; + /** + * URL for the repository invitation + */ + url: string; + html_url: string; + node_id: string; + }; + /** + * Commit Comment + */ + "commit-comment": { + html_url: string; + url: string; + id: number; + node_id: string; + body: string; + path: string | null; + position: number | null; + line: number | null; + commit_id: string; + user: components["schemas"]["simple-user"] | null; + created_at: string; + updated_at: string; + author_association: string; + reactions?: components["schemas"]["reaction-rollup"]; + }; + /** + * Scim Error + */ + "scim-error": { + message?: string | null; + documentation_url?: string | null; + detail?: string | null; + status?: number; + scimType?: string | null; + schemas?: string[]; + }; + /** + * Branch Short + */ + "branch-short": { + name?: string; + commit?: { sha?: string; url?: string }; + protected?: boolean; + }; + /** + * Hypermedia Link + */ + link: { href: string }; + /** + * Pull Request Simple + */ + "pull-request-simple": { + url: string; + id: number; + node_id: string; + html_url: string; + diff_url: string; + patch_url: string; + issue_url: string; + commits_url: string; + review_comments_url: string; + review_comment_url: string; + comments_url: string; + statuses_url: string; + number: number; + state: string; + locked: boolean; + title: string; + user: components["schemas"]["simple-user"] | null; + body: string | null; + labels: { + id?: number; + node_id?: string; + url?: string; + name?: string; + description?: string; + color?: string; + default?: boolean; + }[]; + milestone: components["schemas"]["milestone"] | null; + active_lock_reason?: string | null; + created_at: string; + updated_at: string; + closed_at: string | null; + merged_at: string | null; + merge_commit_sha: string | null; + assignee: components["schemas"]["simple-user"] | null; + assignees?: components["schemas"]["simple-user"][] | null; + requested_reviewers?: components["schemas"]["simple-user"][] | null; + requested_teams?: components["schemas"]["team-simple"][] | null; + head: { + label: string; + ref: string; + repo: components["schemas"]["repository"]; + sha: string; + user: components["schemas"]["simple-user"] | null; + }; + base: { + label: string; + ref: string; + repo: components["schemas"]["repository"]; + sha: string; + user: components["schemas"]["simple-user"] | null; + }; + _links: { + comments: components["schemas"]["link"]; + commits: components["schemas"]["link"]; + statuses: components["schemas"]["link"]; + html: components["schemas"]["link"]; + issue: components["schemas"]["link"]; + review_comments: components["schemas"]["link"]; + review_comment: components["schemas"]["link"]; + self: components["schemas"]["link"]; + }; + author_association: string; + /** + * Indicates whether or not the pull request is a draft. + */ + draft?: boolean; + }; + "simple-commit-status": { + description: string | null; + id: number; + node_id: string; + state: string; + context: string; + target_url: string; + required?: boolean | null; + avatar_url: string | null; + url: string; + created_at: string; + updated_at: string; + }; + /** + * Combined Commit Status + */ + "combined-commit-status": { + state: string; + statuses: components["schemas"]["simple-commit-status"][]; + sha: string; + total_count: number; + repository: components["schemas"]["minimal-repository"]; + commit_url: string; + url: string; + }; + /** + * The status of a commit. + */ + status: { + url?: string; + avatar_url?: string | null; + id?: number; + node_id?: string; + state?: string; + description?: string; + target_url?: string; + context?: string; + created_at?: string; + updated_at?: string; + creator?: components["schemas"]["simple-user"]; + }; + /** + * Code of Conduct Simple + */ + "code-of-conduct-simple": { + url: string; + key: string; + name: string; + html_url: string | null; + }; + "community-health-file": { url: string; html_url: string }; + /** + * Community Profile + */ + "community-profile": { + health_percentage: number; + description: string | null; + documentation: string | null; + files: { + code_of_conduct: components["schemas"]["code-of-conduct-simple"] | null; + license: components["schemas"]["license-simple"] | null; + contributing: components["schemas"]["community-health-file"] | null; + readme: components["schemas"]["community-health-file"] | null; + issue_template: components["schemas"]["community-health-file"] | null; + pull_request_template: + | components["schemas"]["community-health-file"] + | null; + }; + updated_at: string | null; + content_reports_enabled?: boolean; + }; + /** + * Diff Entry + */ + "diff-entry": { + sha: string; + filename: string; + status: string; + additions: number; + deletions: number; + changes: number; + blob_url: string; + raw_url: string; + contents_url: string; + patch?: string; + previous_filename?: string; + }; + /** + * Commit Comparison + */ + "commit-comparison": { + url: string; + html_url: string; + permalink_url: string; + diff_url: string; + patch_url: string; + base_commit: components["schemas"]["commit"]; + merge_base_commit: components["schemas"]["commit"]; + status: "diverged" | "ahead" | "behind" | "identical"; + ahead_by: number; + behind_by: number; + total_commits: number; + commits: components["schemas"]["commit"][]; + files: components["schemas"]["diff-entry"][]; + }; + /** + * Content Tree + */ + "content-tree": { + type: string; + size: number; + name: string; + path: string; + sha: string; + url: string; + git_url: string | null; + html_url: string | null; + download_url: string | null; + entries?: { + type: string; + size: number; + name: string; + path: string; + content?: string; + sha: string; + url: string; + git_url: string | null; + html_url: string | null; + download_url: string | null; + _links: { git: string | null; html: string | null; self: string }; + }[]; + _links: { git: string | null; html: string | null; self: string }; + }; + /** + * A list of directory items + */ + "content-directory": { + type: string; + size: number; + name: string; + path: string; + content?: string; + sha: string; + url: string; + git_url: string | null; + html_url: string | null; + download_url: string | null; + _links: { git: string | null; html: string | null; self: string }; + }[]; + /** + * Content File + */ + "content-file": { + type: string; + encoding: string; + size: number; + name: string; + path: string; + content: string; + sha: string; + url: string; + git_url: string | null; + html_url: string | null; + download_url: string | null; + _links: { git: string | null; html: string | null; self: string }; + target?: string; + submodule_git_url?: string; + }; + /** + * An object describing a symlink + */ + "content-symlink": { + type: string; + target: string; + size: number; + name: string; + path: string; + sha: string; + url: string; + git_url: string | null; + html_url: string | null; + download_url: string | null; + _links: { git: string | null; html: string | null; self: string }; + }; + /** + * An object describing a symlink + */ + "content-submodule": { + type: string; + submodule_git_url: string; + size: number; + name: string; + path: string; + sha: string; + url: string; + git_url: string | null; + html_url: string | null; + download_url: string | null; + _links: { git: string | null; html: string | null; self: string }; + }; + /** + * File Commit + */ + "file-commit": { + content?: { + name?: string; + path?: string; + sha?: string; + size?: number; + url?: string; + html_url?: string; + git_url?: string; + download_url?: string; + type?: string; + _links?: { self?: string; git?: string; html?: string }; + } | null; + commit?: { + sha?: string; + node_id?: string; + url?: string; + html_url?: string; + author?: { date?: string; name?: string; email?: string }; + committer?: { date?: string; name?: string; email?: string }; + message?: string; + tree?: { url?: string; sha?: string }; + parents?: { url?: string; html_url?: string; sha?: string }[]; + verification?: { + verified?: boolean; + reason?: string; + signature?: string | null; + payload?: string | null; + }; + }; + }; + /** + * Contributor + */ + contributor: { + login?: string; + id?: number; + node_id?: string; + avatar_url?: string; + gravatar_id?: string | null; + url?: string; + html_url?: string; + followers_url?: string; + following_url?: string; + gists_url?: string; + starred_url?: string; + subscriptions_url?: string; + organizations_url?: string; + repos_url?: string; + events_url?: string; + received_events_url?: string; + type: string; + site_admin?: boolean; + contributions: number; + email?: string; + name?: string; + }; + /** + * A request for a specific ref(branch,sha,tag) to be deployed + */ + deployment: { + url: string; + /** + * Unique identifier of the deployment + */ + id: number; + node_id: string; + sha: string; + /** + * The ref to deploy. This can be a branch, tag, or sha. + */ + ref: string; + /** + * Parameter to specify a task to execute + */ + task: string; + payload: { [key: string]: any }; + original_environment?: string; + /** + * Name for the target deployment environment. + */ + environment: string; + description: string | null; + creator: components["schemas"]["simple-user"] | null; + created_at: string; + updated_at: string; + statuses_url: string; + repository_url: string; + /** + * Specifies if the given environment is will no longer exist at some point in the future. Default: false. + */ + transient_environment?: boolean; + /** + * Specifies if the given environment is one that end-users directly interact with. Default: false. + */ + production_environment?: boolean; + performed_via_github_app?: components["schemas"]["integration"] | null; + }; + /** + * The status of a deployment. + */ + "deployment-status": { + url: string; + id: number; + node_id: string; + /** + * The state of the status. + */ + state: + | "error" + | "failure" + | "inactive" + | "pending" + | "success" + | "queued" + | "in_progress"; + creator: components["schemas"]["simple-user"] | null; + /** + * A short description of the status. + */ + description: string; + /** + * The environment of the deployment that the status is for. + */ + environment?: string; + /** + * Deprecated: the URL to associate with this status. + */ + target_url: string; + created_at: string; + updated_at: string; + deployment_url: string; + repository_url: string; + /** + * The URL for accessing your environment. + */ + environment_url?: string; + /** + * The URL to associate with this status. + */ + log_url?: string; + performed_via_github_app?: components["schemas"]["integration"] | null; + }; + /** + * Short Blob + */ + "short-blob": { url?: string; sha?: string }; + /** + * Blob + */ + blob: { + content: string; + encoding: string; + url: string; + sha: string; + size: number | null; + node_id: string; + highlighted_content?: string; + }; + /** + * Low-level Git commit operations within a repository + */ + "git-commit": { + /** + * SHA for the commit + */ + sha?: string; + node_id?: string; + url?: string; + /** + * Identifying information for the git-user + */ + author?: { + /** + * Timestamp of the commit + */ + date?: string; + /** + * Git email address of the user + */ + email: string; + /** + * Name of the git user + */ + name: string; + }; + /** + * Identifying information for the git-user + */ + committer?: { + /** + * Timestamp of the commit + */ + date?: string; + /** + * Git email address of the user + */ + email: string; + /** + * Name of the git user + */ + name: string; + }; + /** + * Message describing the purpose of the commit + */ + message?: string; + tree?: { + /** + * SHA for the commit + */ + sha?: string; + url?: string; + }; + parents?: { + /** + * SHA for the commit + */ + sha?: string; + url?: string; + html_url?: string; + }[]; + verification?: { + verified?: boolean; + reason?: string; + signature?: string | null; + payload?: string | null; + }; + html_url?: string; + }; + /** + * Git references within a repository + */ + "git-ref": { + ref?: string; + node_id?: string; + url?: string; + object?: { + type?: string; + /** + * SHA for the reference + */ + sha?: string; + url?: string; + }; + }; + /** + * Metadata for a Git tag + */ + "git-tag": { + node_id: string; + /** + * Name of the tag + */ + tag: string; + sha: string; + /** + * URL for the tag + */ + url: string; + /** + * Message describing the purpose of the tag + */ + message: string; + tagger: { date: string; email: string; name: string }; + object: { sha: string; type: string; url: string }; + verification?: components["schemas"]["verification"]; + }; + /** + * The hierarchy between files in a Git repository. + */ + "git-tree": { + sha: string; + url: string; + truncated: boolean; + /** + * Objects specifying a tree structure + */ + tree: { + path?: string; + mode?: string; + type?: string; + sha?: string; + size?: number; + url?: string; + }[]; + }; + "hook-response": { + code: number | null; + status: string | null; + message: string | null; + }; + /** + * Webhooks for repositories. + */ + hook: { + type: string; + /** + * Unique identifier of the webhook. + */ + id: number; + /** + * The name of a valid service, use 'web' for a webhook. + */ + name: string; + /** + * Determines whether the hook is actually triggered on pushes. + */ + active: boolean; + /** + * Determines what events the hook is triggered for. Default: ['push']. + */ + events: string[]; + config: { + email?: string; + password?: string; + room?: string; + subdomain?: string; + url?: components["schemas"]["webhook-config-url"]; + insecure_ssl?: components["schemas"]["webhook-config-insecure-ssl"]; + content_type?: components["schemas"]["webhook-config-content-type"]; + digest?: string; + secret?: components["schemas"]["webhook-config-secret"]; + token?: string; + }; + updated_at: string; + created_at: string; + url: string; + test_url: string; + ping_url: string; + last_response: components["schemas"]["hook-response"]; + }; + /** + * A repository import from an external source. + */ + import: { + vcs: string | null; + use_lfs?: string; + /** + * The URL of the originating repository. + */ + vcs_url: string; + svc_root?: string; + tfvc_project?: string; + status: + | "auth" + | "error" + | "none" + | "detecting" + | "choose" + | "auth_failed" + | "importing" + | "mapping" + | "waiting_to_push" + | "pushing" + | "complete" + | "setup" + | "unknown" + | "detection_found_multiple" + | "detection_found_nothing" + | "detection_needs_auth"; + status_text?: string | null; + failed_step?: string | null; + error_message?: string | null; + import_percent?: number | null; + commit_count?: number | null; + push_percent?: number | null; + has_large_files?: boolean; + large_files_size?: number; + large_files_count?: number; + project_choices?: { + vcs?: string; + tfvc_project?: string; + human_name?: string; + }[]; + message?: string; + authors_count?: number | null; + url: string; + html_url: string; + authors_url: string; + repository_url: string; + svn_root?: string; + }; + /** + * Porter Author + */ + "porter-author": { + id: number; + remote_id: string; + remote_name: string; + email: string; + name: string; + url: string; + import_url: string; + }; + /** + * Porter Large File + */ + "porter-large-file": { + ref_name: string; + path: string; + oid: string; + size: number; + }; + /** + * Issue Event Label + */ + "issue-event-label": { name: string | null; color: string | null }; + "issue-event-dismissed-review": { + state: string; + review_id: number; + dismissal_message: string | null; + dismissal_commit_id?: string | null; + }; + /** + * Issue Event Milestone + */ + "issue-event-milestone": { title: string }; + /** + * Issue Event Project Card + */ + "issue-event-project-card": { + url: string; + id: number; + project_url: string; + project_id: number; + column_name: string; + previous_column_name?: string; + }; + /** + * Issue Event Rename + */ + "issue-event-rename": { from: string; to: string }; + /** + * Issue Event + */ + "issue-event": { + id: number; + node_id: string; + url: string; + actor: components["schemas"]["simple-user"] | null; + event: string; + commit_id: string | null; + commit_url: string | null; + created_at: string; + issue?: components["schemas"]["issue-simple"]; + label?: components["schemas"]["issue-event-label"]; + assignee?: components["schemas"]["simple-user"] | null; + assigner?: components["schemas"]["simple-user"] | null; + review_requester?: components["schemas"]["simple-user"] | null; + requested_reviewer?: components["schemas"]["simple-user"] | null; + requested_team?: components["schemas"]["team"]; + dismissed_review?: components["schemas"]["issue-event-dismissed-review"]; + milestone?: components["schemas"]["issue-event-milestone"]; + project_card?: components["schemas"]["issue-event-project-card"]; + rename?: components["schemas"]["issue-event-rename"]; + author_association?: string; + lock_reason?: string | null; + }; + /** + * Issue Event for Issue + */ + "issue-event-for-issue": { + id?: number; + node_id?: string; + url?: string; + actor?: components["schemas"]["simple-user"]; + event?: string; + commit_id?: string | null; + commit_url?: string | null; + created_at?: string; + sha?: string; + html_url?: string; + message?: string; + issue_url?: string; + updated_at?: string; + author_association?: string; + body?: string; + lock_reason?: string; + submitted_at?: string; + state?: string; + pull_request_url?: string; + body_html?: string; + body_text?: string; + }; + /** + * Color-coded labels help you categorize and filter your issues (just like labels in Gmail). + */ + label: { + id: number; + node_id: string; + /** + * URL for the label + */ + url: string; + /** + * The name of the label. + */ + name: string; + description?: string | null; + /** + * 6-character hex code, without the leading #, identifying the color + */ + color: string; + default: boolean; + }; + /** + * An SSH key granting access to a single repository. + */ + "deploy-key": { + id?: number; + key?: string; + url?: string; + title?: string; + verified?: boolean; + created_at?: string; + read_only?: boolean; + }; + /** + * Language + */ + language: { [key: string]: number }; + /** + * License Content + */ + "license-content": { + name: string; + path: string; + sha: string; + size: number; + url: string; + html_url: string | null; + git_url: string | null; + download_url: string | null; + type: string; + content: string; + encoding: string; + _links: { git: string | null; html: string | null; self: string }; + license: components["schemas"]["license-simple"] | null; + }; + "pages-source-hash": { branch: string; path: string }; + /** + * The configuration for GitHub Pages for a repository. + */ + page: { + /** + * The API address for accessing this Page resource. + */ + url: string; + /** + * The status of the most recent build of the Page. + */ + status: ("built" | "building" | "errored") | null; + /** + * The Pages site's custom domain + */ + cname: string | null; + /** + * Whether the Page has a custom 404 page. + */ + custom_404: boolean; + /** + * The web address the Page can be accessed from. + */ + html_url?: string; + source?: components["schemas"]["pages-source-hash"]; + }; + /** + * Page Build + */ + "page-build": { + url: string; + status: string; + error: { message: string | null }; + pusher: components["schemas"]["simple-user"] | null; + commit: string; + duration: number; + created_at: string; + updated_at: string; + }; + /** + * Page Build Status + */ + "page-build-status": { url: string; status: string }; + /** + * Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary. + */ + "pull-request": { + url: string; + id: number; + node_id: string; + html_url: string; + diff_url: string; + patch_url: string; + issue_url: string; + commits_url: string; + review_comments_url: string; + review_comment_url: string; + comments_url: string; + statuses_url: string; + /** + * Number uniquely identifying the pull request within its repository. + */ + number: number; + /** + * State of this Pull Request. Either `open` or `closed`. + */ + state: "open" | "closed"; + locked: boolean; + /** + * The title of the pull request. + */ + title: string; + user: components["schemas"]["simple-user"] | null; + body: string | null; + labels: { + id?: number; + node_id?: string; + url?: string; + name?: string; + description?: string | null; + color?: string; + default?: boolean; + }[]; + milestone: components["schemas"]["milestone"] | null; + active_lock_reason?: string | null; + created_at: string; + updated_at: string; + closed_at: string | null; + merged_at: string | null; + merge_commit_sha: string | null; + assignee: components["schemas"]["simple-user"] | null; + assignees?: components["schemas"]["simple-user"][] | null; + requested_reviewers?: components["schemas"]["simple-user"][] | null; + requested_teams?: components["schemas"]["team-simple"][] | null; + head: { + label: string; + ref: string; + repo: { + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + description: string | null; + downloads_url: string; + events_url: string; + fork: boolean; + forks_url: string; + full_name: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + hooks_url: string; + html_url: string; + id: number; + node_id: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + name: string; + notifications_url: string; + owner: { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string | null; + html_url: string; + id: number; + node_id: string; + login: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + private: boolean; + pulls_url: string; + releases_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + url: string; + clone_url: string; + default_branch: string; + forks: number; + forks_count: number; + git_url: string; + has_downloads: boolean; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + homepage: string | null; + language: string | null; + master_branch?: string; + archived: boolean; + disabled: boolean; + mirror_url: string | null; + open_issues: number; + open_issues_count: number; + permissions?: { admin: boolean; pull: boolean; push: boolean }; + temp_clone_token?: string; + allow_merge_commit?: boolean; + allow_squash_merge?: boolean; + allow_rebase_merge?: boolean; + license: { + key: string; + name: string; + url: string | null; + spdx_id: string | null; + node_id: string; + } | null; + pushed_at: string; + size: number; + ssh_url: string; + stargazers_count: number; + svn_url: string; + topics?: string[]; + watchers: number; + watchers_count: number; + created_at: string; + updated_at: string; + }; + sha: string; + user: { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string | null; + html_url: string; + id: number; + node_id: string; + login: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + }; + base: { + label: string; + ref: string; + repo: { + archive_url: string; + assignees_url: string; + blobs_url: string; + branches_url: string; + collaborators_url: string; + comments_url: string; + commits_url: string; + compare_url: string; + contents_url: string; + contributors_url: string; + deployments_url: string; + description: string | null; + downloads_url: string; + events_url: string; + fork: boolean; + forks_url: string; + full_name: string; + git_commits_url: string; + git_refs_url: string; + git_tags_url: string; + hooks_url: string; + html_url: string; + id: number; + node_id: string; + issue_comment_url: string; + issue_events_url: string; + issues_url: string; + keys_url: string; + labels_url: string; + languages_url: string; + merges_url: string; + milestones_url: string; + name: string; + notifications_url: string; + owner: { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string | null; + html_url: string; + id: number; + node_id: string; + login: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + private: boolean; + pulls_url: string; + releases_url: string; + stargazers_url: string; + statuses_url: string; + subscribers_url: string; + subscription_url: string; + tags_url: string; + teams_url: string; + trees_url: string; + url: string; + clone_url: string; + default_branch: string; + forks: number; + forks_count: number; + git_url: string; + has_downloads: boolean; + has_issues: boolean; + has_projects: boolean; + has_wiki: boolean; + has_pages: boolean; + homepage: string | null; + language: string | null; + master_branch?: string; + archived: boolean; + disabled: boolean; + mirror_url: string | null; + open_issues: number; + open_issues_count: number; + permissions?: { admin: boolean; pull: boolean; push: boolean }; + temp_clone_token?: string; + allow_merge_commit?: boolean; + allow_squash_merge?: boolean; + allow_rebase_merge?: boolean; + license: components["schemas"]["license-simple"] | null; + pushed_at: string; + size: number; + ssh_url: string; + stargazers_count: number; + svn_url: string; + topics?: string[]; + watchers: number; + watchers_count: number; + created_at: string; + updated_at: string; + }; + sha: string; + user: { + avatar_url: string; + events_url: string; + followers_url: string; + following_url: string; + gists_url: string; + gravatar_id: string | null; + html_url: string; + id: number; + node_id: string; + login: string; + organizations_url: string; + received_events_url: string; + repos_url: string; + site_admin: boolean; + starred_url: string; + subscriptions_url: string; + type: string; + url: string; + }; + }; + _links: { + comments: components["schemas"]["link"]; + commits: components["schemas"]["link"]; + statuses: components["schemas"]["link"]; + html: components["schemas"]["link"]; + issue: components["schemas"]["link"]; + review_comments: components["schemas"]["link"]; + review_comment: components["schemas"]["link"]; + self: components["schemas"]["link"]; + }; + author_association: string; + /** + * Indicates whether or not the pull request is a draft. + */ + draft?: boolean; + merged: boolean; + mergeable: boolean | null; + rebaseable?: boolean | null; + mergeable_state: string; + merged_by: components["schemas"]["simple-user"] | null; + comments: number; + review_comments: number; + /** + * Indicates whether maintainers can modify the pull request. + */ + maintainer_can_modify: boolean; + commits: number; + additions: number; + deletions: number; + changed_files: number; + }; + /** + * Pull Request Review Comments are comments on a portion of the Pull Request's diff. + */ + "pull-request-review-comment": { + /** + * URL for the pull request review comment + */ + url: string; + /** + * The ID of the pull request review to which the comment belongs. + */ + pull_request_review_id: number | null; + /** + * The ID of the pull request review comment. + */ + id: number; + /** + * The node ID of the pull request review comment. + */ + node_id: string; + /** + * The diff of the line that the comment refers to. + */ + diff_hunk: string; + /** + * The relative path of the file to which the comment applies. + */ + path: string; + /** + * The line index in the diff to which the comment applies. + */ + position: number; + /** + * The index of the original line in the diff to which the comment applies. + */ + original_position: number; + /** + * The SHA of the commit to which the comment applies. + */ + commit_id: string; + /** + * The SHA of the original commit to which the comment applies. + */ + original_commit_id: string; + /** + * The comment ID to reply to. + */ + in_reply_to_id?: number; + user: components["schemas"]["simple-user"]; + /** + * The text of the comment. + */ + body: string; + created_at: string; + updated_at: string; + /** + * HTML URL for the pull request review comment. + */ + html_url: string; + /** + * URL for the pull request that the review comment belongs to. + */ + pull_request_url: string; + /** + * How the author of the comment is associated with the pull request. + */ + author_association: string; + _links: { + self: { href: string }; + html: { href: string }; + pull_request: { href: string }; + }; + /** + * The first line of the range for a multi-line comment. + */ + start_line?: number | null; + /** + * The first line of the range for a multi-line comment. + */ + original_start_line?: number | null; + /** + * The side of the first line of the range for a multi-line comment. + */ + start_side?: ("LEFT" | "RIGHT") | null; + /** + * The line of the blob to which the comment applies. The last line of the range for a multi-line comment + */ + line?: number; + /** + * The line of the blob to which the comment applies. The last line of the range for a multi-line comment + */ + original_line?: number; + /** + * The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment + */ + side?: "LEFT" | "RIGHT"; + reactions?: components["schemas"]["reaction-rollup"]; + body_html?: string; + body_text?: string; + }; + /** + * Pull Request Merge Result + */ + "pull-request-merge-result": { + sha: string; + merged: boolean; + message: string; + }; + /** + * Pull Request Review Request + */ + "pull-request-review-request": { + users?: { + login?: string; + id?: number; + node_id?: string; + avatar_url?: string; + gravatar_id?: string; + url?: string; + html_url?: string; + followers_url?: string; + following_url?: string; + gists_url?: string; + starred_url?: string; + subscriptions_url?: string; + organizations_url?: string; + repos_url?: string; + events_url?: string; + received_events_url?: string; + type?: string; + site_admin?: boolean; + }[]; + teams?: { + id?: number; + node_id?: string; + url?: string; + html_url?: string; + name?: string; + slug?: string; + description?: string | null; + privacy?: string; + permission?: string; + members_url?: string; + repositories_url?: string; + parent?: string | null; + }[]; + }; + /** + * Pull Request Reviews are reviews on pull requests. + */ + "pull-request-review": { + /** + * Unique identifier of the review + */ + id: number; + node_id: string; + user: components["schemas"]["simple-user"] | null; + /** + * The text of the review. + */ + body: string; + state: string; + html_url: string; + pull_request_url: string; + _links: { html: { href: string }; pull_request: { href: string } }; + submitted_at?: string; + /** + * A commit SHA for the review. + */ + commit_id: string; + body_html?: string; + body_text?: string; + author_association: string; + }; + /** + * Legacy Review Comment + */ + "review-comment": { + url: string; + pull_request_review_id: number | null; + id: number; + node_id: string; + diff_hunk: string; + path: string; + position: number | null; + original_position: number; + commit_id: string; + original_commit_id: string; + in_reply_to_id?: number; + user: components["schemas"]["simple-user"] | null; + body: string; + created_at: string; + updated_at: string; + html_url: string; + pull_request_url: string; + author_association: string; + _links: { + self: components["schemas"]["link"]; + html: components["schemas"]["link"]; + pull_request: components["schemas"]["link"]; + }; + body_text?: string; + body_html?: string; + /** + * The side of the first line of the range for a multi-line comment. + */ + side?: "LEFT" | "RIGHT"; + /** + * The side of the first line of the range for a multi-line comment. + */ + start_side?: ("LEFT" | "RIGHT") | null; + /** + * The line of the blob to which the comment applies. The last line of the range for a multi-line comment + */ + line?: number; + /** + * The original line of the blob to which the comment applies. The last line of the range for a multi-line comment + */ + original_line?: number; + /** + * The first line of the range for a multi-line comment. + */ + start_line?: number | null; + /** + * The original first line of the range for a multi-line comment. + */ + original_start_line?: number | null; + }; + /** + * Data related to a release. + */ + "release-asset": { + url: string; + browser_download_url: string; + id: number; + node_id: string; + /** + * The file name of the asset. + */ + name: string; + label: string | null; + /** + * State of the release asset. + */ + state: "uploaded"; + content_type: string; + size: number; + download_count: number; + created_at: string; + updated_at: string; + uploader: components["schemas"]["simple-user"] | null; + }; + /** + * A release. + */ + release: { + url: string; + html_url: string; + assets_url: string; + upload_url: string; + tarball_url: string | null; + zipball_url: string | null; + id: number; + node_id: string; + /** + * The name of the tag. + */ + tag_name: string; + /** + * Specifies the commitish value that determines where the Git tag is created from. + */ + target_commitish: string; + name: string | null; + body?: string | null; + /** + * true to create a draft (unpublished) release, false to create a published one. + */ + draft: boolean; + /** + * Whether to identify the release as a prerelease or a full release. + */ + prerelease: boolean; + created_at: string; + published_at: string | null; + author: components["schemas"]["simple-user"]; + assets: components["schemas"]["release-asset"][]; + body_html?: string; + body_text?: string; + }; + /** + * Stargazer + */ + stargazer: { + starred_at: string; + user: components["schemas"]["simple-user"] | null; + }; + /** + * Code Frequency Stat + */ + "code-frequency-stat": number[]; + /** + * Commit Activity + */ + "commit-activity": { days: number[]; total: number; week: number }; + /** + * Contributor Activity + */ + "contributor-activity": { + author: components["schemas"]["simple-user"] | null; + total: number; + weeks: { w?: string; a?: number; d?: number; c?: number }[]; + }; + "participation-stats": { all?: number[]; owner?: number[] }; + /** + * Repository invitations let you manage who you collaborate with. + */ + "repository-subscription": { + /** + * Determines if notifications should be received from this repository. + */ + subscribed: boolean; + /** + * Determines if all notifications should be blocked from this repository. + */ + ignored: boolean; + reason: string | null; + created_at: string; + url: string; + repository_url: string; + }; + /** + * Tag + */ + tag: { + name: string; + commit: { sha: string; url: string }; + zipball_url: string; + tarball_url: string; + node_id: string; + }; + /** + * A topic aggregates entities that are related to a subject. + */ + topic: { names?: string[] }; + traffic: { timestamp: string; uniques: number; count: number }; + /** + * Clone Traffic + */ + "clone-traffic": { + count: number; + uniques: number; + clones: components["schemas"]["traffic"][]; + }; + /** + * Content Traffic + */ + "content-traffic": { + path: string; + title: string; + count: number; + uniques: number; + }; + /** + * Referrer Traffic + */ + "referrer-traffic": { referrer: string; count: number; uniques: number }; + /** + * View Traffic + */ + "view-traffic": { + count: number; + uniques: number; + views: components["schemas"]["traffic"][]; + }; + "scim-group-list-enterprise": { + schemas?: string[]; + totalResults?: number; + itemsPerPage?: number; + startIndex?: number; + Resources?: { + schemas?: string[]; + id?: string; + externalId?: string | null; + displayName?: string; + members?: { value?: string; $ref?: string; display?: string }[]; + meta?: { + resourceType?: string; + created?: string; + lastModified?: string; + location?: string; + }; + }[]; + }; + "scim-enterprise-group": { + schemas?: string[]; + id?: string; + externalId?: string | null; + displayName?: string; + members?: { value?: string; $ref?: string; display?: string }[]; + meta?: { + resourceType?: string; + created?: string; + lastModified?: string; + location?: string; + }; + }; + "scim-user-list-enterprise": { + schemas?: string[]; + totalResults?: number; + itemsPerPage?: number; + startIndex?: number; + Resources?: { + schemas?: string[]; + id?: string; + externalId?: string; + userName?: string; + name?: { givenName?: string; familyName?: string }; + emails?: { value?: string; primary?: boolean; type?: string }[]; + groups?: { value?: string }[]; + active?: boolean; + meta?: { + resourceType?: string; + created?: string; + lastModified?: string; + location?: string; + }; + }[]; + }; + "scim-enterprise-user": { + schemas?: string[]; + id?: string; + externalId?: string; + userName?: string; + name?: { givenName?: string; familyName?: string }; + emails?: { value?: string; type?: string; primary?: boolean }[]; + groups?: { value?: string }[]; + active?: boolean; + meta?: { + resourceType?: string; + created?: string; + lastModified?: string; + location?: string; + }; + }; + /** + * SCIM /Users provisioning endpoints + */ + "scim-user": { + /** + * SCIM schema used. + */ + schemas: string[]; + /** + * Unique identifier of an external identity + */ + id: string; + /** + * The ID of the User. + */ + externalId: string | null; + /** + * Configured by the admin. Could be an email, login, or username + */ + userName: string | null; + /** + * The name of the user, suitable for display to end-users + */ + displayName?: string | null; + name: { + givenName: string | null; + familyName: string | null; + formatted?: string | null; + }; + /** + * user emails + */ + emails: { value: string; primary?: boolean }[]; + /** + * The active status of the User. + */ + active: boolean; + meta: { + resourceType?: string; + created?: string; + lastModified?: string; + location?: string; + }; + /** + * The ID of the organization. + */ + organization_id?: number; + /** + * Set of operations to be performed + */ + operations?: { + op: "add" | "remove" | "replace"; + path?: string; + value?: string | { [key: string]: any } | { [key: string]: any }[]; + }[]; + /** + * associated groups + */ + groups?: { value?: string; display?: string }[]; + }; + /** + * SCIM User List + */ + "scim-user-list": { + /** + * SCIM schema used. + */ + schemas: string[]; + totalResults: number; + itemsPerPage: number; + startIndex: number; + Resources: components["schemas"]["scim-user"][]; + }; + "search-result-text-matches": { + object_url?: string; + object_type?: string | null; + property?: string; + fragment?: string; + matches?: { text?: string; indices?: number[] }[]; + }[]; + /** + * Code Search Result Item + */ + "code-search-result-item": { + name: string; + path: string; + sha: string; + url: string; + git_url: string; + html_url: string; + repository: components["schemas"]["minimal-repository"]; + score: number; + file_size?: number; + language?: string | null; + last_modified_at?: string; + line_numbers?: string[]; + text_matches?: components["schemas"]["search-result-text-matches"]; + }; + /** + * Commit Search Result Item + */ + "commit-search-result-item": { + url: string; + sha: string; + html_url: string; + comments_url: string; + commit: { + author: { name: string; email: string; date: string }; + committer: components["schemas"]["git-user"] | null; + comment_count: number; + message: string; + tree: { sha: string; url: string }; + url: string; + verification?: components["schemas"]["verification"]; + }; + author: components["schemas"]["simple-user"] | null; + committer: components["schemas"]["git-user"] | null; + parents: { url?: string; html_url?: string; sha?: string }[]; + repository: components["schemas"]["minimal-repository"]; + score: number; + node_id: string; + text_matches?: components["schemas"]["search-result-text-matches"]; + }; + /** + * Issue Search Result Item + */ + "issue-search-result-item": { + url: string; + repository_url: string; + labels_url: string; + comments_url: string; + events_url: string; + html_url: string; + id: number; + node_id: string; + number: number; + title: string; + locked: boolean; + active_lock_reason?: string | null; + assignees?: components["schemas"]["simple-user"][] | null; + user: components["schemas"]["simple-user"] | null; + labels: { + id?: number; + node_id?: string; + url?: string; + name?: string; + color?: string; + default?: boolean; + description?: string | null; + }[]; + state: string; + assignee: components["schemas"]["simple-user"] | null; + milestone: components["schemas"]["milestone"] | null; + comments: number; + created_at: string; + updated_at: string; + closed_at: string | null; + text_matches?: components["schemas"]["search-result-text-matches"]; + pull_request?: { + merged_at?: string | null; + diff_url: string | null; + html_url: string | null; + patch_url: string | null; + url: string | null; + }; + body?: string; + score: number; + author_association: string; + draft?: boolean; + repository?: components["schemas"]["repository"]; + body_html?: string; + body_text?: string; + timeline_url?: string; + performed_via_github_app?: components["schemas"]["integration"] | null; + }; + /** + * Label Search Result Item + */ + "label-search-result-item": { + id: number; + node_id: string; + url: string; + name: string; + color: string; + default: boolean; + description: string | null; + score: number; + text_matches?: components["schemas"]["search-result-text-matches"]; + }; + /** + * Repo Search Result Item + */ + "repo-search-result-item": { + id: number; + node_id: string; + name: string; + full_name: string; + owner: components["schemas"]["simple-user"] | null; + private: boolean; + html_url: string; + description: string | null; + fork: boolean; + url: string; + created_at: string; + updated_at: string; + pushed_at: string; + homepage: string | null; + size: number; + stargazers_count: number; + watchers_count: number; + language: string | null; + forks_count: number; + open_issues_count: number; + master_branch?: string; + default_branch: string; + score: number; + forks_url: string; + keys_url: string; + collaborators_url: string; + teams_url: string; + hooks_url: string; + issue_events_url: string; + events_url: string; + assignees_url: string; + branches_url: string; + tags_url: string; + blobs_url: string; + git_tags_url: string; + git_refs_url: string; + trees_url: string; + statuses_url: string; + languages_url: string; + stargazers_url: string; + contributors_url: string; + subscribers_url: string; + subscription_url: string; + commits_url: string; + git_commits_url: string; + comments_url: string; + issue_comment_url: string; + contents_url: string; + compare_url: string; + merges_url: string; + archive_url: string; + downloads_url: string; + issues_url: string; + pulls_url: string; + milestones_url: string; + notifications_url: string; + labels_url: string; + releases_url: string; + deployments_url: string; + git_url: string; + ssh_url: string; + clone_url: string; + svn_url: string; + forks: number; + open_issues: number; + watchers: number; + topics?: string[]; + mirror_url: string | null; + has_issues: boolean; + has_projects: boolean; + has_pages: boolean; + has_wiki: boolean; + has_downloads: boolean; + archived: boolean; + /** + * Returns whether or not this repository disabled. + */ + disabled: boolean; + license: components["schemas"]["license-simple"] | null; + permissions?: { admin: boolean; pull: boolean; push: boolean }; + text_matches?: components["schemas"]["search-result-text-matches"]; + temp_clone_token?: string; + allow_merge_commit?: boolean; + allow_squash_merge?: boolean; + allow_rebase_merge?: boolean; + delete_branch_on_merge?: boolean; + }; + /** + * Topic Search Result Item + */ + "topic-search-result-item": { + name: string; + display_name: string | null; + short_description: string | null; + description: string | null; + created_by: string | null; + released: string | null; + created_at: string; + updated_at: string; + featured: boolean; + curated: boolean; + score: number; + repository_count?: number | null; + logo_url?: string | null; + text_matches?: components["schemas"]["search-result-text-matches"]; + related?: + | { + topic_relation?: { + id?: number; + name?: string; + topic_id?: number; + relation_type?: string; + }; + }[] + | null; + aliases?: + | { + topic_relation?: { + id?: number; + name?: string; + topic_id?: number; + relation_type?: string; + }; + }[] + | null; + }; + /** + * User Search Result Item + */ + "user-search-result-item": { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string | null; + url: string; + html_url: string; + followers_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + received_events_url: string; + type: string; + score: number; + following_url: string; + gists_url: string; + starred_url: string; + events_url: string; + public_repos?: number; + public_gists?: number; + followers?: number; + following?: number; + created_at?: string; + updated_at?: string; + name?: string | null; + bio?: string | null; + email?: string | null; + location?: string | null; + site_admin: boolean; + hireable?: boolean | null; + text_matches?: components["schemas"]["search-result-text-matches"]; + blog?: string | null; + company?: string | null; + suspended_at?: string | null; + }; + /** + * Private User + */ + "private-user": { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string | null; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + name: string | null; + company: string | null; + blog: string | null; + location: string | null; + email: string | null; + hireable: boolean | null; + bio: string | null; + twitter_username?: string | null; + public_repos: number; + public_gists: number; + followers: number; + following: number; + created_at: string; + updated_at: string; + private_gists: number; + total_private_repos: number; + owned_private_repos: number; + disk_usage: number; + collaborators: number; + two_factor_authentication: boolean; + plan?: { + collaborators: number; + name: string; + space: number; + private_repos: number; + }; + suspended_at?: string | null; + business_plus?: boolean; + ldap_dn?: string; + }; + /** + * Public User + */ + "public-user": { + login: string; + id: number; + node_id: string; + avatar_url: string; + gravatar_id: string | null; + url: string; + html_url: string; + followers_url: string; + following_url: string; + gists_url: string; + starred_url: string; + subscriptions_url: string; + organizations_url: string; + repos_url: string; + events_url: string; + received_events_url: string; + type: string; + site_admin: boolean; + name: string | null; + company: string | null; + blog: string | null; + location: string | null; + email: string | null; + hireable: boolean | null; + bio: string | null; + twitter_username?: string | null; + public_repos: number; + public_gists: number; + followers: number; + following: number; + created_at: string; + updated_at: string; + plan?: { + collaborators: number; + name: string; + space: number; + private_repos: number; + }; + suspended_at?: string | null; + private_gists?: number; + total_private_repos?: number; + owned_private_repos?: number; + disk_usage?: number; + collaborators?: number; + }; + /** + * Email + */ + email: + | { + email: string; + primary: boolean; + verified: boolean; + visibility: string | null; + } + | string; + /** + * A unique encryption key + */ + "gpg-key": { + id: number; + primary_key_id: number | null; + key_id: string; + public_key: string; + emails: { email?: string; verified?: boolean }[]; + subkeys: { + id?: number; + primary_key_id?: number; + key_id?: string; + public_key?: string; + emails?: { [key: string]: any }[]; + subkeys?: { [key: string]: any }[]; + can_sign?: boolean; + can_encrypt_comms?: boolean; + can_encrypt_storage?: boolean; + can_certify?: boolean; + created_at?: string; + expires_at?: string | null; + raw_key?: string | null; + }[]; + can_sign: boolean; + can_encrypt_comms: boolean; + can_encrypt_storage: boolean; + can_certify: boolean; + created_at: string; + expires_at: string | null; + raw_key: string | null; + }; + /** + * Key + */ + key: { + key_id?: string; + key?: string; + id?: number; + url?: string; + title?: string; + created_at?: string; + verified?: boolean; + read_only?: boolean; + }; + "marketplace-account": { + url: string; + id: number; + type: string; + node_id?: string; + login: string; + email?: string | null; + organization_billing_email?: string | null; + }; + /** + * User Marketplace Purchase + */ + "user-marketplace-purchase": { + billing_cycle: string; + next_billing_date: string | null; + unit_count: number | null; + on_free_trial: boolean; + free_trial_ends_on: string | null; + updated_at: string | null; + account: components["schemas"]["marketplace-account"]; + plan: components["schemas"]["marketplace-listing-plan"]; + }; + /** + * Starred Repository + */ + "starred-repository": { + starred_at: string; + repo: components["schemas"]["repository"]; + }; + /** + * Hovercard + */ + hovercard: { contexts: { message: string; octicon: string }[] }; + /** + * Key Simple + */ + "key-simple": { id: number; key: string }; + }; + responses: { + /** + * Resource Not Found + */ + not_found: { [key: string]: any }; + /** + * Validation Failed + */ + validation_failed_simple: { [key: string]: any }; + /** + * Preview Header Missing + */ + preview_header_missing: { [key: string]: any }; + /** + * Forbidden + */ + forbidden: { [key: string]: any }; + /** + * Requires Authentication + */ + requires_authentication: { [key: string]: any }; + /** + * Validation Failed + */ + validation_failed: { [key: string]: any }; + /** + * Not Modified + */ + not_modified: { [key: string]: any }; + /** + * Gone + */ + gone: { [key: string]: any }; + /** + * Service Unavailable + */ + service_unavailable: { [key: string]: any }; + /** + * Forbidden Gist + */ + forbidden_gist: { [key: string]: any }; + /** + * Moved Permanently + */ + moved_permanently: { [key: string]: any }; + /** + * Conflict + */ + conflict: { [key: string]: any }; + /** + * Internal Error + */ + internal_error: { [key: string]: any }; + /** + * Bad Request + */ + bad_request: { [key: string]: any }; + /** + * Found + */ + found: { [key: string]: any }; + /** + * Resource Not Found + */ + scim_not_found: { [key: string]: any }; + /** + * Forbidden + */ + scim_forbidden: { [key: string]: any }; + /** + * Bad Request + */ + scim_bad_request: { [key: string]: any }; + /** + * Internal Error + */ + scim_internal_error: { [key: string]: any }; + /** + * Conflict + */ + scim_conflict: { [key: string]: any }; + }; +} diff --git a/node_modules/@octokit/openapi-types/package.json b/node_modules/@octokit/openapi-types/package.json new file mode 100644 index 000000000..c7330d3d2 --- /dev/null +++ b/node_modules/@octokit/openapi-types/package.json @@ -0,0 +1,27 @@ +{ + "name": "@octokit/openapi-types", + "publishConfig": { + "access": "public" + }, + "version": "1.2.2", + "description": "Generated TypeScript definitions based on GitHub's OpenAPI spec", + "main": "generated/types.ts", + "repository": "https://github.com/octokit/openapi-types.ts", + "keywords": [], + "author": "Gregor Martynus (https://twitter.com/gr2m)", + "license": "MIT", + "scripts": { + "download": "node scripts/download", + "generate-types": "npx openapi-typescript cache/openapi-schema.json -o generated/types.ts", + "postgenerate-types": "node scripts/update-package" + }, + "devDependencies": { + "openapi-typescript": "^2.4.2" + }, + "release": { + "branches": "main" + }, + "octokit": { + "openapi-version": "1.0.3" + } +} diff --git a/node_modules/@octokit/openapi-types/scripts/download.js b/node_modules/@octokit/openapi-types/scripts/download.js new file mode 100644 index 000000000..edd1d88aa --- /dev/null +++ b/node_modules/@octokit/openapi-types/scripts/download.js @@ -0,0 +1,35 @@ +const { get } = require("https"); +const fs = require("fs"); + +if (!process.env.VERSION) { + throw new Error("VERSION is not set"); +} + +download(process.env.VERSION.replace(/^v/, "")).then( + () => console.log("done"), + console.error +); + +function download(version) { + const path = `cache/openapi-schema.json`; + const url = `https://unpkg.com/@octokit/openapi@${version}/generated/api.github.com.json`; + + const file = fs.createWriteStream(path); + + console.log("Downloading %s", url); + + return new Promise((resolve, reject) => { + get(url, (response) => { + response.pipe(file); + file + .on("finish", () => + file.close((error) => { + if (error) return reject(error); + console.log("%s written", path); + resolve(); + }) + ) + .on("error", (error) => reject(error.message)); + }); + }); +} diff --git a/node_modules/@octokit/openapi-types/scripts/update-package.js b/node_modules/@octokit/openapi-types/scripts/update-package.js new file mode 100644 index 000000000..2fe394866 --- /dev/null +++ b/node_modules/@octokit/openapi-types/scripts/update-package.js @@ -0,0 +1,15 @@ +const { writeFileSync } = require("fs"); + +if (!process.env.VERSION) { + throw new Error("VERSION is not set"); +} + +const pkg = require("../package.json"); + +if (!pkg.octokit) { + pkg.octokit = {}; +} + +pkg.octokit["openapi-version"] = process.env.VERSION.replace(/^v/, ""); + +writeFileSync("package.json", JSON.stringify(pkg, null, 2) + "\n"); diff --git a/node_modules/@octokit/plugin-paginate-rest/README.md b/node_modules/@octokit/plugin-paginate-rest/README.md index 433766718..f73580a6d 100644 --- a/node_modules/@octokit/plugin-paginate-rest/README.md +++ b/node_modules/@octokit/plugin-paginate-rest/README.md @@ -4,7 +4,6 @@ [![@latest](https://img.shields.io/npm/v/@octokit/plugin-paginate-rest.svg)](https://www.npmjs.com/package/@octokit/plugin-paginate-rest) [![Build Status](https://github.com/octokit/plugin-paginate-rest.js/workflows/Test/badge.svg)](https://github.com/octokit/plugin-paginate-rest.js/actions?workflow=Test) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/plugin-paginate-rest.js.svg)](https://greenkeeper.io/) ## Usage @@ -14,12 +13,15 @@ Browsers -Load `@octokit/plugin-paginate-rest` and [`@octokit/core`](https://github.com/octokit/core.js) (or core-compatible module) directly from [cdn.pika.dev](https://cdn.pika.dev) +Load `@octokit/plugin-paginate-rest` and [`@octokit/core`](https://github.com/octokit/core.js) (or core-compatible module) directly from [cdn.skypack.dev](https://cdn.skypack.dev) ```html ``` @@ -32,7 +34,10 @@ Install with `npm install @octokit/core @octokit/plugin-paginate-rest`. Optional ```js const { Octokit } = require("@octokit/core"); -const { paginateRest } = require("@octokit/plugin-paginate-rest"); +const { + paginateRest, + composePaginateRest, +} = require("@octokit/plugin-paginate-rest"); ``` @@ -44,15 +49,31 @@ const MyOctokit = Octokit.plugin(paginateRest); const octokit = new MyOctokit({ auth: "secret123" }); // See https://developer.github.com/v3/issues/#list-issues-for-a-repository -const issues = await octokit.paginate("GET /repos/:owner/:repo/issues", { +const issues = await octokit.paginate("GET /repos/{owner}/{repo}/issues", { owner: "octocat", repo: "hello-world", since: "2010-10-01", - per_page: 100 + per_page: 100, }); ``` -## `octokit.paginate(route, parameters, mapFunction)` or `octokit.paginate(options, mapFunction)` +If you want to utilize the pagination methods in another plugin, use `composePaginateRest`. + +```js +function myPlugin(octokit, options) { + return { + allStars({owner, repo}) => { + return composePaginateRest( + octokit, + "GET /repos/{owner}/{repo}/stargazers", + {owner, repo } + ) + } + } +} +``` + +## `octokit.paginate()` The `paginateRest` plugin adds a new `octokit.paginate()` method which accepts the same parameters as [`octokit.request`](https://github.com/octokit/request.js#request). Only "List ..." endpoints such as [List issues for a repository](https://developer.github.com/v3/issues/#list-issues-for-a-repository) are supporting pagination. Their [response includes a Link header](https://developer.github.com/v3/issues/#response-1). For other endpoints, `octokit.paginate()` behaves the same as `octokit.request()`. @@ -62,14 +83,14 @@ An optional `mapFunction` can be passed to map each page response to a new value ```js const issueTitles = await octokit.paginate( - "GET /repos/:owner/:repo/issues", + "GET /repos/{owner}/{repo}/issues", { owner: "octocat", repo: "hello-world", since: "2010-10-01", - per_page: 100 + per_page: 100, }, - response => response.data.map(issue => issue.title) + (response) => response.data.map((issue) => issue.title) ); ``` @@ -77,15 +98,15 @@ The `mapFunction` gets a 2nd argument `done` which can be called to end the pagi ```js const issues = await octokit.paginate( - "GET /repos/:owner/:repo/issues", + "GET /repos/{owner}/{repo}/issues", { owner: "octocat", repo: "hello-world", since: "2010-10-01", - per_page: 100 + per_page: 100, }, (response, done) => { - if (response.data.find(issues => issue.title.includes("something"))) { + if (response.data.find((issues) => issue.title.includes("something"))) { done(); } return response.data; @@ -93,28 +114,64 @@ const issues = await octokit.paginate( ); ``` -## `octokit.paginate.iterator(route, parameters)` or `octokit.paginate.iterator(options)` +Alternatively you can pass a `request` method as first argument. This is great when using in combination with [`@octokit/plugin-rest-endpoint-methods`](https://github.com/octokit/plugin-rest-endpoint-methods.js/): + +```js +const issues = await octokit.paginate(octokit.issues.listForRepo, { + owner: "octocat", + repo: "hello-world", + since: "2010-10-01", + per_page: 100, +}); +``` + +## `octokit.paginate.iterator()` If your target runtime environments supports async iterators (such as most modern browsers and Node 10+), you can iterate through each response ```js const parameters = { - owner: "octocat", - repo: "hello-world", - since: "2010-10-01", - per_page: 100 - } -for await (const response of octokit.paginate.iterator("GET /repos/:owner/:repo/issues", parameters)) { + owner: "octocat", + repo: "hello-world", + since: "2010-10-01", + per_page: 100, +}; +for await (const response of octokit.paginate.iterator( + "GET /repos/{owner}/{repo}/issues", + parameters +)) { // do whatever you want with each response, break out of the loop, etc. - console.log(response.data.title) + console.log(response.data.title); } ``` +Alternatively you can pass a `request` method as first argument. This is great when using in combination with [`@octokit/plugin-rest-endpoint-methods`](https://github.com/octokit/plugin-rest-endpoint-methods.js/): + +```js +const parameters = { + owner: "octocat", + repo: "hello-world", + since: "2010-10-01", + per_page: 100, +}; +for await (const response of octokit.paginate.iterator( + octokit.issues.listForRepo, + parameters +)) { + // do whatever you want with each response, break out of the loop, etc. + console.log(response.data.title); +} +``` + +## `composePaginateRest` and `composePaginateRest.iterator` + +The `compose*` methods work just like their `octokit.*` counterparts described above, with the differenct that both methods require an `octokit` instance to be passed as first argument + ## How it works `octokit.paginate()` wraps `octokit.request()`. As long as a `rel="next"` link value is present in the response's `Link` header, it sends another request for that URL, and so on. -Most of GitHub's paginating REST API endpoints return an array, but there are a few exceptions which return an object with a key that includes the items array. +Most of GitHub's paginating REST API endpoints return an array, but there are a few exceptions which return an object with a key that includes the items array. For example: - [Search repositories](https://developer.github.com/v3/search/#example) (key `items`) - [List check runs for a specific ref](https://developer.github.com/v3/checks/runs/#response-3) (key: `check_runs`) diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js b/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js index 193593156..144b0bcf5 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js +++ b/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js @@ -2,33 +2,27 @@ Object.defineProperty(exports, '__esModule', { value: true }); -const VERSION = "1.1.2"; +const VERSION = "2.6.2"; /** * Some “list” response that can be paginated have a different response structure * * They have a `total_count` key in the response (search also has `incomplete_results`, * /installation/repositories also has `repository_selection`), as well as a key with - * the list of the items which name varies from endpoint to endpoint: - * - * - https://developer.github.com/v3/search/#example (key `items`) - * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`) - * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`) - * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`) - * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`) + * the list of the items which name varies from endpoint to endpoint. * * Octokit normalizes these responses so that paginated results are always returned following * the same structure. One challenge is that if the list response has only one page, no Link * header is provided, so this header alone is not sufficient to check wether a response is - * paginated or not. For the exceptions with the namespace, a fallback check for the route - * paths has to be added in order to normalize the response. We cannot check for the total_count - * property because it also exists in the response of Get the combined status for a specific ref. + * paginated or not. + * + * We check if a "total_count" key is present in the response data, but also make sure that + * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would + * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref */ -const REGEX = [/^\/search\//, /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/, /^\/installation\/repositories([^/]|$)/, /^\/user\/installations([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/]; -function normalizePaginatedListResponse(octokit, url, response) { - const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, ""); - const responseNeedsNormalization = REGEX.find(regex => regex.test(path)); - if (!responseNeedsNormalization) return; // keep the additional properties intact as there is currently no other way +function normalizePaginatedListResponse(response) { + const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data); + if (!responseNeedsNormalization) return response; // keep the additional properties intact as there is currently no other way // to retrieve the same information. const incompleteResults = response.data.incomplete_results; @@ -50,43 +44,34 @@ function normalizePaginatedListResponse(octokit, url, response) { } response.data.total_count = totalCount; - Object.defineProperty(response.data, namespaceKey, { - get() { - octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`); - return Array.from(data); - } - - }); + return response; } function iterator(octokit, route, parameters) { - const options = octokit.request.endpoint(route, parameters); + const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters); + const requestMethod = typeof route === "function" ? route : octokit.request; const method = options.method; const headers = options.headers; let url = options.url; return { [Symbol.asyncIterator]: () => ({ - next() { - if (!url) { - return Promise.resolve({ - done: true - }); - } - - return octokit.request({ + async next() { + if (!url) return { + done: true + }; + const response = await requestMethod({ method, url, headers - }).then(response => { - normalizePaginatedListResponse(octokit, url, response); // `response.headers.link` format: - // '; rel="next", ; rel="last"' - // sets `url` to undefined if "next" URL is not present or `link` header is not set - - url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; - return { - value: response - }; }); + const normalizedResponse = normalizePaginatedListResponse(response); // `response.headers.link` format: + // '; rel="next", ; rel="last"' + // sets `url` to undefined if "next" URL is not present or `link` header is not set + + url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; + return { + value: normalizedResponse + }; } }) @@ -124,6 +109,10 @@ function gather(octokit, results, iterator, mapFn) { }); } +const composePaginateRest = Object.assign(paginate, { + iterator +}); + /** * @param octokit Octokit instance * @param options Options passed to Octokit constructor @@ -138,5 +127,6 @@ function paginateRest(octokit) { } paginateRest.VERSION = VERSION; +exports.composePaginateRest = composePaginateRest; exports.paginateRest = paginateRest; //# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map b/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map index 7955fa759..969e1af8a 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map +++ b/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/normalize-paginated-list-response.js","../dist-src/iterator.js","../dist-src/paginate.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.1.2\";\n","/**\n * Some “list” response that can be paginated have a different response structure\n *\n * They have a `total_count` key in the response (search also has `incomplete_results`,\n * /installation/repositories also has `repository_selection`), as well as a key with\n * the list of the items which name varies from endpoint to endpoint:\n *\n * - https://developer.github.com/v3/search/#example (key `items`)\n * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)\n * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)\n * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)\n * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)\n *\n * Octokit normalizes these responses so that paginated results are always returned following\n * the same structure. One challenge is that if the list response has only one page, no Link\n * header is provided, so this header alone is not sufficient to check wether a response is\n * paginated or not. For the exceptions with the namespace, a fallback check for the route\n * paths has to be added in order to normalize the response. We cannot check for the total_count\n * property because it also exists in the response of Get the combined status for a specific ref.\n */\nconst REGEX = [\n /^\\/search\\//,\n /^\\/repos\\/[^/]+\\/[^/]+\\/commits\\/[^/]+\\/(check-runs|check-suites)([^/]|$)/,\n /^\\/installation\\/repositories([^/]|$)/,\n /^\\/user\\/installations([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/secrets([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/workflows(\\/[^/]+\\/runs)?([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/runs(\\/[^/]+\\/(artifacts|jobs))?([^/]|$)/\n];\nexport function normalizePaginatedListResponse(octokit, url, response) {\n const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, \"\");\n const responseNeedsNormalization = REGEX.find(regex => regex.test(path));\n if (!responseNeedsNormalization)\n return;\n // keep the additional properties intact as there is currently no other way\n // to retrieve the same information.\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n response.data.total_count = totalCount;\n Object.defineProperty(response.data, namespaceKey, {\n get() {\n octokit.log.warn(`[@octokit/paginate-rest] \"response.data.${namespaceKey}\" is deprecated for \"GET ${path}\". Get the results directly from \"response.data\"`);\n return Array.from(data);\n }\n });\n}\n","import { normalizePaginatedListResponse } from \"./normalize-paginated-list-response\";\nexport function iterator(octokit, route, parameters) {\n const options = octokit.request.endpoint(route, parameters);\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n next() {\n if (!url) {\n return Promise.resolve({ done: true });\n }\n return octokit\n .request({ method, url, headers })\n .then((response) => {\n normalizePaginatedListResponse(octokit, url, response);\n // `response.headers.link` format:\n // '; rel=\"next\", ; rel=\"last\"'\n // sets `url` to undefined if \"next\" URL is not present or `link` header is not set\n url = ((response.headers.link || \"\").match(/<([^>]+)>;\\s*rel=\"next\"/) || [])[1];\n return { value: response };\n });\n }\n })\n };\n}\n","import { iterator } from \"./iterator\";\nexport function paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = undefined;\n }\n return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);\n}\nfunction gather(octokit, results, iterator, mapFn) {\n return iterator.next().then(result => {\n if (result.done) {\n return results;\n }\n let earlyExit = false;\n function done() {\n earlyExit = true;\n }\n results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);\n if (earlyExit) {\n return results;\n }\n return gather(octokit, results, iterator, mapFn);\n });\n}\n","import { VERSION } from \"./version\";\nimport { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit)\n })\n };\n}\npaginateRest.VERSION = VERSION;\n"],"names":["VERSION","REGEX","normalizePaginatedListResponse","octokit","url","response","path","replace","request","endpoint","DEFAULTS","baseUrl","responseNeedsNormalization","find","regex","test","incompleteResults","data","incomplete_results","repositorySelection","repository_selection","totalCount","total_count","namespaceKey","Object","keys","defineProperty","get","log","warn","Array","from","iterator","route","parameters","options","method","headers","Symbol","asyncIterator","next","Promise","resolve","done","then","link","match","value","paginate","mapFn","undefined","gather","results","result","earlyExit","concat","paginateRest","assign","bind"],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/normalize-paginated-list-response.js","../dist-src/iterator.js","../dist-src/paginate.js","../dist-src/compose-paginate.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"2.6.2\";\n","/**\n * Some “list” response that can be paginated have a different response structure\n *\n * They have a `total_count` key in the response (search also has `incomplete_results`,\n * /installation/repositories also has `repository_selection`), as well as a key with\n * the list of the items which name varies from endpoint to endpoint.\n *\n * Octokit normalizes these responses so that paginated results are always returned following\n * the same structure. One challenge is that if the list response has only one page, no Link\n * header is provided, so this header alone is not sufficient to check wether a response is\n * paginated or not.\n *\n * We check if a \"total_count\" key is present in the response data, but also make sure that\n * a \"url\" property is not, as the \"Get the combined status for a specific ref\" endpoint would\n * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref\n */\nexport function normalizePaginatedListResponse(response) {\n const responseNeedsNormalization = \"total_count\" in response.data && !(\"url\" in response.data);\n if (!responseNeedsNormalization)\n return response;\n // keep the additional properties intact as there is currently no other way\n // to retrieve the same information.\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n response.data.total_count = totalCount;\n return response;\n}\n","import { normalizePaginatedListResponse } from \"./normalize-paginated-list-response\";\nexport function iterator(octokit, route, parameters) {\n const options = typeof route === \"function\"\n ? route.endpoint(parameters)\n : octokit.request.endpoint(route, parameters);\n const requestMethod = typeof route === \"function\" ? route : octokit.request;\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n async next() {\n if (!url)\n return { done: true };\n const response = await requestMethod({ method, url, headers });\n const normalizedResponse = normalizePaginatedListResponse(response);\n // `response.headers.link` format:\n // '; rel=\"next\", ; rel=\"last\"'\n // sets `url` to undefined if \"next\" URL is not present or `link` header is not set\n url = ((normalizedResponse.headers.link || \"\").match(/<([^>]+)>;\\s*rel=\"next\"/) || [])[1];\n return { value: normalizedResponse };\n },\n }),\n };\n}\n","import { iterator } from \"./iterator\";\nexport function paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = undefined;\n }\n return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);\n}\nfunction gather(octokit, results, iterator, mapFn) {\n return iterator.next().then((result) => {\n if (result.done) {\n return results;\n }\n let earlyExit = false;\n function done() {\n earlyExit = true;\n }\n results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);\n if (earlyExit) {\n return results;\n }\n return gather(octokit, results, iterator, mapFn);\n });\n}\n","import { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\nexport const composePaginateRest = Object.assign(paginate, {\n iterator,\n});\n","import { VERSION } from \"./version\";\nimport { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\nexport { composePaginateRest } from \"./compose-paginate\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit),\n }),\n };\n}\npaginateRest.VERSION = VERSION;\n"],"names":["VERSION","normalizePaginatedListResponse","response","responseNeedsNormalization","data","incompleteResults","incomplete_results","repositorySelection","repository_selection","totalCount","total_count","namespaceKey","Object","keys","iterator","octokit","route","parameters","options","endpoint","request","requestMethod","method","headers","url","Symbol","asyncIterator","next","done","normalizedResponse","link","match","value","paginate","mapFn","undefined","gather","results","then","result","earlyExit","concat","composePaginateRest","assign","paginateRest","bind"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/compose-paginate.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/compose-paginate.js new file mode 100644 index 000000000..09ca53f6a --- /dev/null +++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/compose-paginate.js @@ -0,0 +1,5 @@ +import { paginate } from "./paginate"; +import { iterator } from "./iterator"; +export const composePaginateRest = Object.assign(paginate, { + iterator, +}); diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/generated/paginating-endpoints.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js index aa5fe65fb..b2078036d 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js +++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js @@ -1,6 +1,7 @@ import { VERSION } from "./version"; import { paginate } from "./paginate"; import { iterator } from "./iterator"; +export { composePaginateRest } from "./compose-paginate"; /** * @param octokit Octokit instance * @param options Options passed to Octokit constructor @@ -8,8 +9,8 @@ import { iterator } from "./iterator"; export function paginateRest(octokit) { return { paginate: Object.assign(paginate.bind(null, octokit), { - iterator: iterator.bind(null, octokit) - }) + iterator: iterator.bind(null, octokit), + }), }; } paginateRest.VERSION = VERSION; diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js index 0f9733821..14684db45 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js +++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js @@ -1,26 +1,25 @@ import { normalizePaginatedListResponse } from "./normalize-paginated-list-response"; export function iterator(octokit, route, parameters) { - const options = octokit.request.endpoint(route, parameters); + const options = typeof route === "function" + ? route.endpoint(parameters) + : octokit.request.endpoint(route, parameters); + const requestMethod = typeof route === "function" ? route : octokit.request; const method = options.method; const headers = options.headers; let url = options.url; return { [Symbol.asyncIterator]: () => ({ - next() { - if (!url) { - return Promise.resolve({ done: true }); - } - return octokit - .request({ method, url, headers }) - .then((response) => { - normalizePaginatedListResponse(octokit, url, response); - // `response.headers.link` format: - // '; rel="next", ; rel="last"' - // sets `url` to undefined if "next" URL is not present or `link` header is not set - url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; - return { value: response }; - }); - } - }) + async next() { + if (!url) + return { done: true }; + const response = await requestMethod({ method, url, headers }); + const normalizedResponse = normalizePaginatedListResponse(response); + // `response.headers.link` format: + // '; rel="next", ; rel="last"' + // sets `url` to undefined if "next" URL is not present or `link` header is not set + url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; + return { value: normalizedResponse }; + }, + }), }; } diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js index 75fbf1c86..d29c6777c 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js +++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js @@ -3,35 +3,21 @@ * * They have a `total_count` key in the response (search also has `incomplete_results`, * /installation/repositories also has `repository_selection`), as well as a key with - * the list of the items which name varies from endpoint to endpoint: - * - * - https://developer.github.com/v3/search/#example (key `items`) - * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`) - * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`) - * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`) - * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`) + * the list of the items which name varies from endpoint to endpoint. * * Octokit normalizes these responses so that paginated results are always returned following * the same structure. One challenge is that if the list response has only one page, no Link * header is provided, so this header alone is not sufficient to check wether a response is - * paginated or not. For the exceptions with the namespace, a fallback check for the route - * paths has to be added in order to normalize the response. We cannot check for the total_count - * property because it also exists in the response of Get the combined status for a specific ref. + * paginated or not. + * + * We check if a "total_count" key is present in the response data, but also make sure that + * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would + * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref */ -const REGEX = [ - /^\/search\//, - /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/, - /^\/installation\/repositories([^/]|$)/, - /^\/user\/installations([^/]|$)/, - /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, - /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, - /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/ -]; -export function normalizePaginatedListResponse(octokit, url, response) { - const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, ""); - const responseNeedsNormalization = REGEX.find(regex => regex.test(path)); +export function normalizePaginatedListResponse(response) { + const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data); if (!responseNeedsNormalization) - return; + return response; // keep the additional properties intact as there is currently no other way // to retrieve the same information. const incompleteResults = response.data.incomplete_results; @@ -50,10 +36,5 @@ export function normalizePaginatedListResponse(octokit, url, response) { response.data.repository_selection = repositorySelection; } response.data.total_count = totalCount; - Object.defineProperty(response.data, namespaceKey, { - get() { - octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`); - return Array.from(data); - } - }); + return response; } diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js index 063380551..8d18a60f1 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js +++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js @@ -7,7 +7,7 @@ export function paginate(octokit, route, parameters, mapFn) { return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn); } function gather(octokit, results, iterator, mapFn) { - return iterator.next().then(result => { + return iterator.next().then((result) => { if (result.done) { return results; } diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js +++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js index 33f364d92..c6296149a 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js +++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js @@ -1 +1 @@ -export const VERSION = "1.1.2"; +export const VERSION = "2.6.2"; diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/compose-paginate.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/compose-paginate.d.ts new file mode 100644 index 000000000..38a7432f6 --- /dev/null +++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/compose-paginate.d.ts @@ -0,0 +1,2 @@ +import { ComposePaginateInterface } from "./types"; +export declare const composePaginateRest: ComposePaginateInterface; diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/generated/paginating-endpoints.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/generated/paginating-endpoints.d.ts new file mode 100644 index 000000000..7e4bee88e --- /dev/null +++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/generated/paginating-endpoints.d.ts @@ -0,0 +1,1380 @@ +import { Endpoints } from "@octokit/types"; +export interface PaginatingEndpoints { + /** + * @see https://docs.github.com/v3/apps/#list-installations-for-the-authenticated-app + */ + "GET /app/installations": { + parameters: Endpoints["GET /app/installations"]["parameters"]; + response: Endpoints["GET /app/installations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-grants + */ + "GET /applications/grants": { + parameters: Endpoints["GET /applications/grants"]["parameters"]; + response: Endpoints["GET /applications/grants"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-authorizations + */ + "GET /authorizations": { + parameters: Endpoints["GET /authorizations"]["parameters"]; + response: Endpoints["GET /authorizations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-selected-organizations-enabled-for-github-actions-in-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/permissions/organizations": { + parameters: Endpoints["GET /enterprises/{enterprise}/actions/permissions/organizations"]["parameters"]; + response: Endpoints["GET /enterprises/{enterprise}/actions/permissions/organizations"]["response"] & { + data: Endpoints["GET /enterprises/{enterprise}/actions/permissions/organizations"]["response"]["data"]["organizations"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runner-groups-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups": { + parameters: Endpoints["GET /enterprises/{enterprise}/actions/runner-groups"]["parameters"]; + response: Endpoints["GET /enterprises/{enterprise}/actions/runner-groups"]["response"] & { + data: Endpoints["GET /enterprises/{enterprise}/actions/runner-groups"]["response"]["data"]["runner_groups"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": { + parameters: Endpoints["GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations"]["parameters"]; + response: Endpoints["GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations"]["response"] & { + data: Endpoints["GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations"]["response"]["data"]["organizations"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-in-a-group-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": { + parameters: Endpoints["GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners"]["parameters"]; + response: Endpoints["GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners"]["response"] & { + data: Endpoints["GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners"]["response"]["data"]["runners"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners": { + parameters: Endpoints["GET /enterprises/{enterprise}/actions/runners"]["parameters"]; + response: Endpoints["GET /enterprises/{enterprise}/actions/runners"]["response"] & { + data: Endpoints["GET /enterprises/{enterprise}/actions/runners"]["response"]["data"]["runners"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-runner-applications-for-an-enterprise + */ + "GET /enterprises/{enterprise}/actions/runners/downloads": { + parameters: Endpoints["GET /enterprises/{enterprise}/actions/runners/downloads"]["parameters"]; + response: Endpoints["GET /enterprises/{enterprise}/actions/runners/downloads"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events + */ + "GET /events": { + parameters: Endpoints["GET /events"]["parameters"]; + response: Endpoints["GET /events"]["response"]; + }; + /** + * @see https://docs.github.com/v3/gists/#list-gists-for-the-authenticated-user + */ + "GET /gists": { + parameters: Endpoints["GET /gists"]["parameters"]; + response: Endpoints["GET /gists"]["response"]; + }; + /** + * @see https://docs.github.com/v3/gists/#list-public-gists + */ + "GET /gists/public": { + parameters: Endpoints["GET /gists/public"]["parameters"]; + response: Endpoints["GET /gists/public"]["response"]; + }; + /** + * @see https://docs.github.com/v3/gists/#list-starred-gists + */ + "GET /gists/starred": { + parameters: Endpoints["GET /gists/starred"]["parameters"]; + response: Endpoints["GET /gists/starred"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/gists#list-gist-comments + */ + "GET /gists/{gist_id}/comments": { + parameters: Endpoints["GET /gists/{gist_id}/comments"]["parameters"]; + response: Endpoints["GET /gists/{gist_id}/comments"]["response"]; + }; + /** + * @see https://docs.github.com/v3/gists/#list-gist-commits + */ + "GET /gists/{gist_id}/commits": { + parameters: Endpoints["GET /gists/{gist_id}/commits"]["parameters"]; + response: Endpoints["GET /gists/{gist_id}/commits"]["response"]; + }; + /** + * @see https://docs.github.com/v3/gists/#list-gist-forks + */ + "GET /gists/{gist_id}/forks": { + parameters: Endpoints["GET /gists/{gist_id}/forks"]["parameters"]; + response: Endpoints["GET /gists/{gist_id}/forks"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-app-installation + */ + "GET /installation/repositories": { + parameters: Endpoints["GET /installation/repositories"]["parameters"]; + response: Endpoints["GET /installation/repositories"]["response"] & { + data: Endpoints["GET /installation/repositories"]["response"]["data"]["repositories"]; + }; + }; + /** + * @see https://docs.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user + */ + "GET /issues": { + parameters: Endpoints["GET /issues"]["parameters"]; + response: Endpoints["GET /issues"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/apps#list-plans + */ + "GET /marketplace_listing/plans": { + parameters: Endpoints["GET /marketplace_listing/plans"]["parameters"]; + response: Endpoints["GET /marketplace_listing/plans"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan + */ + "GET /marketplace_listing/plans/{plan_id}/accounts": { + parameters: Endpoints["GET /marketplace_listing/plans/{plan_id}/accounts"]["parameters"]; + response: Endpoints["GET /marketplace_listing/plans/{plan_id}/accounts"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/apps#list-plans-stubbed + */ + "GET /marketplace_listing/stubbed/plans": { + parameters: Endpoints["GET /marketplace_listing/stubbed/plans"]["parameters"]; + response: Endpoints["GET /marketplace_listing/stubbed/plans"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan-stubbed + */ + "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts": { + parameters: Endpoints["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"]["parameters"]; + response: Endpoints["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-network-of-repositories + */ + "GET /networks/{owner}/{repo}/events": { + parameters: Endpoints["GET /networks/{owner}/{repo}/events"]["parameters"]; + response: Endpoints["GET /networks/{owner}/{repo}/events"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user + */ + "GET /notifications": { + parameters: Endpoints["GET /notifications"]["parameters"]; + response: Endpoints["GET /notifications"]["response"]; + }; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations + */ + "GET /organizations": { + parameters: Endpoints["GET /organizations"]["parameters"]; + response: Endpoints["GET /organizations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization + */ + "GET /orgs/{org}/actions/permissions/repositories": { + parameters: Endpoints["GET /orgs/{org}/actions/permissions/repositories"]["parameters"]; + response: Endpoints["GET /orgs/{org}/actions/permissions/repositories"]["response"] & { + data: Endpoints["GET /orgs/{org}/actions/permissions/repositories"]["response"]["data"]["repositories"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups": { + parameters: Endpoints["GET /orgs/{org}/actions/runner-groups"]["parameters"]; + response: Endpoints["GET /orgs/{org}/actions/runner-groups"]["response"] & { + data: Endpoints["GET /orgs/{org}/actions/runner-groups"]["response"]["data"]["runner_groups"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-access-to-a-self-hosted-runner-group-in-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": { + parameters: Endpoints["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories"]["parameters"]; + response: Endpoints["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories"]["response"] & { + data: Endpoints["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories"]["response"]["data"]["repositories"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization + */ + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": { + parameters: Endpoints["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners"]["parameters"]; + response: Endpoints["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners"]["response"] & { + data: Endpoints["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners"]["response"]["data"]["runners"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-organization + */ + "GET /orgs/{org}/actions/runners": { + parameters: Endpoints["GET /orgs/{org}/actions/runners"]["parameters"]; + response: Endpoints["GET /orgs/{org}/actions/runners"]["response"] & { + data: Endpoints["GET /orgs/{org}/actions/runners"]["response"]["data"]["runners"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-organization + */ + "GET /orgs/{org}/actions/runners/downloads": { + parameters: Endpoints["GET /orgs/{org}/actions/runners/downloads"]["parameters"]; + response: Endpoints["GET /orgs/{org}/actions/runners/downloads"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-organization-secrets + */ + "GET /orgs/{org}/actions/secrets": { + parameters: Endpoints["GET /orgs/{org}/actions/secrets"]["parameters"]; + response: Endpoints["GET /orgs/{org}/actions/secrets"]["response"] & { + data: Endpoints["GET /orgs/{org}/actions/secrets"]["response"]["data"]["secrets"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret + */ + "GET /orgs/{org}/actions/secrets/{secret_name}/repositories": { + parameters: Endpoints["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"]["parameters"]; + response: Endpoints["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"]["response"] & { + data: Endpoints["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"]["response"]["data"]["repositories"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/orgs#list-users-blocked-by-an-organization + */ + "GET /orgs/{org}/blocks": { + parameters: Endpoints["GET /orgs/{org}/blocks"]["parameters"]; + response: Endpoints["GET /orgs/{org}/blocks"]["response"]; + }; + /** + * @see https://docs.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization + */ + "GET /orgs/{org}/credential-authorizations": { + parameters: Endpoints["GET /orgs/{org}/credential-authorizations"]["parameters"]; + response: Endpoints["GET /orgs/{org}/credential-authorizations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-organization-events + */ + "GET /orgs/{org}/events": { + parameters: Endpoints["GET /orgs/{org}/events"]["parameters"]; + response: Endpoints["GET /orgs/{org}/events"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-webhooks + */ + "GET /orgs/{org}/hooks": { + parameters: Endpoints["GET /orgs/{org}/hooks"]["parameters"]; + response: Endpoints["GET /orgs/{org}/hooks"]["response"]; + }; + /** + * @see https://docs.github.com/v3/orgs/#list-app-installations-for-an-organization + */ + "GET /orgs/{org}/installations": { + parameters: Endpoints["GET /orgs/{org}/installations"]["parameters"]; + response: Endpoints["GET /orgs/{org}/installations"]["response"] & { + data: Endpoints["GET /orgs/{org}/installations"]["response"]["data"]["installations"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/orgs#list-pending-organization-invitations + */ + "GET /orgs/{org}/invitations": { + parameters: Endpoints["GET /orgs/{org}/invitations"]["parameters"]; + response: Endpoints["GET /orgs/{org}/invitations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-invitation-teams + */ + "GET /orgs/{org}/invitations/{invitation_id}/teams": { + parameters: Endpoints["GET /orgs/{org}/invitations/{invitation_id}/teams"]["parameters"]; + response: Endpoints["GET /orgs/{org}/invitations/{invitation_id}/teams"]["response"]; + }; + /** + * @see https://docs.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user + */ + "GET /orgs/{org}/issues": { + parameters: Endpoints["GET /orgs/{org}/issues"]["parameters"]; + response: Endpoints["GET /orgs/{org}/issues"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-members + */ + "GET /orgs/{org}/members": { + parameters: Endpoints["GET /orgs/{org}/members"]["parameters"]; + response: Endpoints["GET /orgs/{org}/members"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/migrations#list-organization-migrations + */ + "GET /orgs/{org}/migrations": { + parameters: Endpoints["GET /orgs/{org}/migrations"]["parameters"]; + response: Endpoints["GET /orgs/{org}/migrations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/migrations#list-repositories-in-an-organization-migration + */ + "GET /orgs/{org}/migrations/{migration_id}/repositories": { + parameters: Endpoints["GET /orgs/{org}/migrations/{migration_id}/repositories"]["parameters"]; + response: Endpoints["GET /orgs/{org}/migrations/{migration_id}/repositories"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/orgs#list-outside-collaborators-for-an-organization + */ + "GET /orgs/{org}/outside_collaborators": { + parameters: Endpoints["GET /orgs/{org}/outside_collaborators"]["parameters"]; + response: Endpoints["GET /orgs/{org}/outside_collaborators"]["response"]; + }; + /** + * @see https://docs.github.com/v3/projects/#list-organization-projects + */ + "GET /orgs/{org}/projects": { + parameters: Endpoints["GET /orgs/{org}/projects"]["parameters"]; + response: Endpoints["GET /orgs/{org}/projects"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/orgs#list-public-organization-members + */ + "GET /orgs/{org}/public_members": { + parameters: Endpoints["GET /orgs/{org}/public_members"]["parameters"]; + response: Endpoints["GET /orgs/{org}/public_members"]["response"]; + }; + /** + * @see https://docs.github.com/v3/repos/#list-organization-repositories + */ + "GET /orgs/{org}/repos": { + parameters: Endpoints["GET /orgs/{org}/repos"]["parameters"]; + response: Endpoints["GET /orgs/{org}/repos"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-an-organization + */ + "GET /orgs/{org}/team-sync/groups": { + parameters: Endpoints["GET /orgs/{org}/team-sync/groups"]["parameters"]; + response: Endpoints["GET /orgs/{org}/team-sync/groups"]["response"] & { + data: Endpoints["GET /orgs/{org}/team-sync/groups"]["response"]["data"]["groups"]; + }; + }; + /** + * @see https://docs.github.com/v3/teams/#list-teams + */ + "GET /orgs/{org}/teams": { + parameters: Endpoints["GET /orgs/{org}/teams"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussions + */ + "GET /orgs/{org}/teams/{team_slug}/discussions": { + parameters: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": { + parameters: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"]["response"]; + }; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": { + parameters: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"]["response"]; + }; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion + */ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": { + parameters: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations + */ + "GET /orgs/{org}/teams/{team_slug}/invitations": { + parameters: Endpoints["GET /orgs/{org}/teams/{team_slug}/invitations"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/invitations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-team-members + */ + "GET /orgs/{org}/teams/{team_slug}/members": { + parameters: Endpoints["GET /orgs/{org}/teams/{team_slug}/members"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/members"]["response"]; + }; + /** + * @see https://docs.github.com/v3/teams/#list-team-projects + */ + "GET /orgs/{org}/teams/{team_slug}/projects": { + parameters: Endpoints["GET /orgs/{org}/teams/{team_slug}/projects"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/projects"]["response"]; + }; + /** + * @see https://docs.github.com/v3/teams/#list-team-repositories + */ + "GET /orgs/{org}/teams/{team_slug}/repos": { + parameters: Endpoints["GET /orgs/{org}/teams/{team_slug}/repos"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/repos"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team + */ + "GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": { + parameters: Endpoints["GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings"]["response"] & { + data: Endpoints["GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings"]["response"]["data"]["groups"]; + }; + }; + /** + * @see https://docs.github.com/v3/teams/#list-child-teams + */ + "GET /orgs/{org}/teams/{team_slug}/teams": { + parameters: Endpoints["GET /orgs/{org}/teams/{team_slug}/teams"]["parameters"]; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/teams"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-cards + */ + "GET /projects/columns/{column_id}/cards": { + parameters: Endpoints["GET /projects/columns/{column_id}/cards"]["parameters"]; + response: Endpoints["GET /projects/columns/{column_id}/cards"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-collaborators + */ + "GET /projects/{project_id}/collaborators": { + parameters: Endpoints["GET /projects/{project_id}/collaborators"]["parameters"]; + response: Endpoints["GET /projects/{project_id}/collaborators"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/projects#list-project-columns + */ + "GET /projects/{project_id}/columns": { + parameters: Endpoints["GET /projects/{project_id}/columns"]["parameters"]; + response: Endpoints["GET /projects/{project_id}/columns"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-artifacts-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/artifacts": { + parameters: Endpoints["GET /repos/{owner}/{repo}/actions/artifacts"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/actions/artifacts"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/actions/artifacts"]["response"]["data"]["artifacts"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners": { + parameters: Endpoints["GET /repos/{owner}/{repo}/actions/runners"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runners"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/actions/runners"]["response"]["data"]["runners"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runners/downloads": { + parameters: Endpoints["GET /repos/{owner}/{repo}/actions/runners/downloads"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runners/downloads"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs-for-a-repository + */ + "GET /repos/{owner}/{repo}/actions/runs": { + parameters: Endpoints["GET /repos/{owner}/{repo}/actions/runs"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runs"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/actions/runs"]["response"]["data"]["workflow_runs"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-run-artifacts + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": { + parameters: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"]["response"]["data"]["artifacts"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-jobs-for-a-workflow-run + */ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs": { + parameters: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"]["response"]["data"]["jobs"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-secrets + */ + "GET /repos/{owner}/{repo}/actions/secrets": { + parameters: Endpoints["GET /repos/{owner}/{repo}/actions/secrets"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/actions/secrets"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/actions/secrets"]["response"]["data"]["secrets"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-repository-workflows + */ + "GET /repos/{owner}/{repo}/actions/workflows": { + parameters: Endpoints["GET /repos/{owner}/{repo}/actions/workflows"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/actions/workflows"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/actions/workflows"]["response"]["data"]["workflows"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs + */ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": { + parameters: Endpoints["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"]["response"]["data"]["workflow_runs"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/issues#list-assignees + */ + "GET /repos/{owner}/{repo}/assignees": { + parameters: Endpoints["GET /repos/{owner}/{repo}/assignees"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/assignees"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-branches + */ + "GET /repos/{owner}/{repo}/branches": { + parameters: Endpoints["GET /repos/{owner}/{repo}/branches"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/branches"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-run-annotations + */ + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": { + parameters: Endpoints["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite + */ + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": { + parameters: Endpoints["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"]["response"]["data"]["check_runs"]; + }; + }; + /** + * @see https://docs.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository + */ + "GET /repos/{owner}/{repo}/code-scanning/alerts": { + parameters: Endpoints["GET /repos/{owner}/{repo}/code-scanning/alerts"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/code-scanning/alerts"]["response"]; + }; + /** + * @see https://docs.github.com/v3/code-scanning/#list-recent-analyses + */ + "GET /repos/{owner}/{repo}/code-scanning/analyses": { + parameters: Endpoints["GET /repos/{owner}/{repo}/code-scanning/analyses"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/code-scanning/analyses"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-collaborators + */ + "GET /repos/{owner}/{repo}/collaborators": { + parameters: Endpoints["GET /repos/{owner}/{repo}/collaborators"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/collaborators"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-comments-for-a-repository + */ + "GET /repos/{owner}/{repo}/comments": { + parameters: Endpoints["GET /repos/{owner}/{repo}/comments"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/comments"]["response"]; + }; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-commit-comment + */ + "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions": { + parameters: Endpoints["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-commits + */ + "GET /repos/{owner}/{repo}/commits": { + parameters: Endpoints["GET /repos/{owner}/{repo}/commits"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/commits"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-branches-for-head-commit + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": { + parameters: Endpoints["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-comments + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments": { + parameters: Endpoints["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-pull-requests-associated-with-a-commit + */ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls": { + parameters: Endpoints["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-runs-for-a-git-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/check-runs": { + parameters: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"]["response"]["data"]["check_runs"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/check-suites": { + parameters: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"]["response"]["data"]["check_suites"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-commit-statuses-for-a-reference + */ + "GET /repos/{owner}/{repo}/commits/{ref}/statuses": { + parameters: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/statuses"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/statuses"]["response"]; + }; + /** + * @see https://docs.github.com/v3/repos/#list-repository-contributors + */ + "GET /repos/{owner}/{repo}/contributors": { + parameters: Endpoints["GET /repos/{owner}/{repo}/contributors"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/contributors"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-deployments + */ + "GET /repos/{owner}/{repo}/deployments": { + parameters: Endpoints["GET /repos/{owner}/{repo}/deployments"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/deployments"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-deployment-statuses + */ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": { + parameters: Endpoints["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-repository-events + */ + "GET /repos/{owner}/{repo}/events": { + parameters: Endpoints["GET /repos/{owner}/{repo}/events"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/events"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-forks + */ + "GET /repos/{owner}/{repo}/forks": { + parameters: Endpoints["GET /repos/{owner}/{repo}/forks"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/forks"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/git#list-matching-references + */ + "GET /repos/{owner}/{repo}/git/matching-refs/{ref}": { + parameters: Endpoints["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-webhooks + */ + "GET /repos/{owner}/{repo}/hooks": { + parameters: Endpoints["GET /repos/{owner}/{repo}/hooks"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/hooks"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations + */ + "GET /repos/{owner}/{repo}/invitations": { + parameters: Endpoints["GET /repos/{owner}/{repo}/invitations"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/invitations"]["response"]; + }; + /** + * @see https://docs.github.com/v3/issues/#list-repository-issues + */ + "GET /repos/{owner}/{repo}/issues": { + parameters: Endpoints["GET /repos/{owner}/{repo}/issues"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/issues"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-comments-for-a-repository + */ + "GET /repos/{owner}/{repo}/issues/comments": { + parameters: Endpoints["GET /repos/{owner}/{repo}/issues/comments"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/issues/comments"]["response"]; + }; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue-comment + */ + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": { + parameters: Endpoints["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-events-for-a-repository + */ + "GET /repos/{owner}/{repo}/issues/events": { + parameters: Endpoints["GET /repos/{owner}/{repo}/issues/events"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/issues/events"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-comments + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/comments": { + parameters: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/issues#list-issue-events + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/events": { + parameters: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/events"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/events"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/labels": { + parameters: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"]["response"]; + }; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions": { + parameters: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/issues#list-timeline-events-for-an-issue + */ + "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline": { + parameters: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-deploy-keys + */ + "GET /repos/{owner}/{repo}/keys": { + parameters: Endpoints["GET /repos/{owner}/{repo}/keys"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/keys"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-a-repository + */ + "GET /repos/{owner}/{repo}/labels": { + parameters: Endpoints["GET /repos/{owner}/{repo}/labels"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/labels"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/issues#list-milestones + */ + "GET /repos/{owner}/{repo}/milestones": { + parameters: Endpoints["GET /repos/{owner}/{repo}/milestones"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/milestones"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/issues#list-labels-for-issues-in-a-milestone + */ + "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels": { + parameters: Endpoints["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user + */ + "GET /repos/{owner}/{repo}/notifications": { + parameters: Endpoints["GET /repos/{owner}/{repo}/notifications"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/notifications"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-github-pages-builds + */ + "GET /repos/{owner}/{repo}/pages/builds": { + parameters: Endpoints["GET /repos/{owner}/{repo}/pages/builds"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/pages/builds"]["response"]; + }; + /** + * @see https://docs.github.com/v3/projects/#list-repository-projects + */ + "GET /repos/{owner}/{repo}/projects": { + parameters: Endpoints["GET /repos/{owner}/{repo}/projects"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/projects"]["response"]; + }; + /** + * @see https://docs.github.com/v3/pulls/#list-pull-requests + */ + "GET /repos/{owner}/{repo}/pulls": { + parameters: Endpoints["GET /repos/{owner}/{repo}/pulls"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/pulls"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-in-a-repository + */ + "GET /repos/{owner}/{repo}/pulls/comments": { + parameters: Endpoints["GET /repos/{owner}/{repo}/pulls/comments"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/comments"]["response"]; + }; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment + */ + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": { + parameters: Endpoints["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-on-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments": { + parameters: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"]["response"]; + }; + /** + * @see https://docs.github.com/v3/pulls/#list-commits-on-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits": { + parameters: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"]["response"]; + }; + /** + * @see https://docs.github.com/v3/pulls/#list-pull-requests-files + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/files": { + parameters: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/pulls#list-requested-reviewers-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": { + parameters: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"]["response"] & { + data: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"]["response"]["data"]["users"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/pulls#list-reviews-for-a-pull-request + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews": { + parameters: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/pulls#list-comments-for-a-pull-request-review + */ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": { + parameters: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-releases + */ + "GET /repos/{owner}/{repo}/releases": { + parameters: Endpoints["GET /repos/{owner}/{repo}/releases"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/releases"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-release-assets + */ + "GET /repos/{owner}/{repo}/releases/{release_id}/assets": { + parameters: Endpoints["GET /repos/{owner}/{repo}/releases/{release_id}/assets"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/releases/{release_id}/assets"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-stargazers + */ + "GET /repos/{owner}/{repo}/stargazers": { + parameters: Endpoints["GET /repos/{owner}/{repo}/stargazers"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/stargazers"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-watchers + */ + "GET /repos/{owner}/{repo}/subscribers": { + parameters: Endpoints["GET /repos/{owner}/{repo}/subscribers"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/subscribers"]["response"]; + }; + /** + * @see https://docs.github.com/v3/repos/#list-repository-tags + */ + "GET /repos/{owner}/{repo}/tags": { + parameters: Endpoints["GET /repos/{owner}/{repo}/tags"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/tags"]["response"]; + }; + /** + * @see https://docs.github.com/v3/repos/#list-repository-teams + */ + "GET /repos/{owner}/{repo}/teams": { + parameters: Endpoints["GET /repos/{owner}/{repo}/teams"]["parameters"]; + response: Endpoints["GET /repos/{owner}/{repo}/teams"]["response"]; + }; + /** + * @see https://docs.github.com/v3/repos/#list-public-repositories + */ + "GET /repositories": { + parameters: Endpoints["GET /repositories"]["parameters"]; + response: Endpoints["GET /repositories"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-provisioned-scim groups-for-an-enterprise + */ + "GET /scim/v2/enterprises/{enterprise}/Groups": { + parameters: Endpoints["GET /scim/v2/enterprises/{enterprise}/Groups"]["parameters"]; + response: Endpoints["GET /scim/v2/enterprises/{enterprise}/Groups"]["response"] & { + data: Endpoints["GET /scim/v2/enterprises/{enterprise}/Groups"]["response"]["data"]["Resources"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/enterprise-admin#list-scim-provisioned-identities-for-an-enterprise + */ + "GET /scim/v2/enterprises/{enterprise}/Users": { + parameters: Endpoints["GET /scim/v2/enterprises/{enterprise}/Users"]["parameters"]; + response: Endpoints["GET /scim/v2/enterprises/{enterprise}/Users"]["response"] & { + data: Endpoints["GET /scim/v2/enterprises/{enterprise}/Users"]["response"]["data"]["Resources"]; + }; + }; + /** + * @see https://docs.github.com/v3/scim/#list-scim-provisioned-identities + */ + "GET /scim/v2/organizations/{org}/Users": { + parameters: Endpoints["GET /scim/v2/organizations/{org}/Users"]["parameters"]; + response: Endpoints["GET /scim/v2/organizations/{org}/Users"]["response"] & { + data: Endpoints["GET /scim/v2/organizations/{org}/Users"]["response"]["data"]["Resources"]; + }; + }; + /** + * @see https://docs.github.com/v3/search/#search-code + */ + "GET /search/code": { + parameters: Endpoints["GET /search/code"]["parameters"]; + response: Endpoints["GET /search/code"]["response"] & { + data: Endpoints["GET /search/code"]["response"]["data"]["items"]; + }; + }; + /** + * @see https://docs.github.com/v3/search/#search-commits + */ + "GET /search/commits": { + parameters: Endpoints["GET /search/commits"]["parameters"]; + response: Endpoints["GET /search/commits"]["response"] & { + data: Endpoints["GET /search/commits"]["response"]["data"]["items"]; + }; + }; + /** + * @see https://docs.github.com/v3/search/#search-issues-and-pull-requests + */ + "GET /search/issues": { + parameters: Endpoints["GET /search/issues"]["parameters"]; + response: Endpoints["GET /search/issues"]["response"] & { + data: Endpoints["GET /search/issues"]["response"]["data"]["items"]; + }; + }; + /** + * @see https://docs.github.com/v3/search/#search-labels + */ + "GET /search/labels": { + parameters: Endpoints["GET /search/labels"]["parameters"]; + response: Endpoints["GET /search/labels"]["response"] & { + data: Endpoints["GET /search/labels"]["response"]["data"]["items"]; + }; + }; + /** + * @see https://docs.github.com/v3/search/#search-repositories + */ + "GET /search/repositories": { + parameters: Endpoints["GET /search/repositories"]["parameters"]; + response: Endpoints["GET /search/repositories"]["response"] & { + data: Endpoints["GET /search/repositories"]["response"]["data"]["items"]; + }; + }; + /** + * @see https://docs.github.com/v3/search/#search-topics + */ + "GET /search/topics": { + parameters: Endpoints["GET /search/topics"]["parameters"]; + response: Endpoints["GET /search/topics"]["response"] & { + data: Endpoints["GET /search/topics"]["response"]["data"]["items"]; + }; + }; + /** + * @see https://docs.github.com/v3/search/#search-users + */ + "GET /search/users": { + parameters: Endpoints["GET /search/users"]["parameters"]; + response: Endpoints["GET /search/users"]["response"] & { + data: Endpoints["GET /search/users"]["response"]["data"]["items"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussions-legacy + */ + "GET /teams/{team_id}/discussions": { + parameters: Endpoints["GET /teams/{team_id}/discussions"]["parameters"]; + response: Endpoints["GET /teams/{team_id}/discussions"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments": { + parameters: Endpoints["GET /teams/{team_id}/discussions/{discussion_number}/comments"]["parameters"]; + response: Endpoints["GET /teams/{team_id}/discussions/{discussion_number}/comments"]["response"]; + }; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": { + parameters: Endpoints["GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions"]["parameters"]; + response: Endpoints["GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions"]["response"]; + }; + /** + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy + */ + "GET /teams/{team_id}/discussions/{discussion_number}/reactions": { + parameters: Endpoints["GET /teams/{team_id}/discussions/{discussion_number}/reactions"]["parameters"]; + response: Endpoints["GET /teams/{team_id}/discussions/{discussion_number}/reactions"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations-legacy + */ + "GET /teams/{team_id}/invitations": { + parameters: Endpoints["GET /teams/{team_id}/invitations"]["parameters"]; + response: Endpoints["GET /teams/{team_id}/invitations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-team-members-legacy + */ + "GET /teams/{team_id}/members": { + parameters: Endpoints["GET /teams/{team_id}/members"]["parameters"]; + response: Endpoints["GET /teams/{team_id}/members"]["response"]; + }; + /** + * @see https://docs.github.com/v3/teams/#list-team-projects-legacy + */ + "GET /teams/{team_id}/projects": { + parameters: Endpoints["GET /teams/{team_id}/projects"]["parameters"]; + response: Endpoints["GET /teams/{team_id}/projects"]["response"]; + }; + /** + * @see https://docs.github.com/v3/teams/#list-team-repositories-legacy + */ + "GET /teams/{team_id}/repos": { + parameters: Endpoints["GET /teams/{team_id}/repos"]["parameters"]; + response: Endpoints["GET /teams/{team_id}/repos"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team-legacy + */ + "GET /teams/{team_id}/team-sync/group-mappings": { + parameters: Endpoints["GET /teams/{team_id}/team-sync/group-mappings"]["parameters"]; + response: Endpoints["GET /teams/{team_id}/team-sync/group-mappings"]["response"] & { + data: Endpoints["GET /teams/{team_id}/team-sync/group-mappings"]["response"]["data"]["groups"]; + }; + }; + /** + * @see https://docs.github.com/v3/teams/#list-child-teams-legacy + */ + "GET /teams/{team_id}/teams": { + parameters: Endpoints["GET /teams/{team_id}/teams"]["parameters"]; + response: Endpoints["GET /teams/{team_id}/teams"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user + */ + "GET /user/blocks": { + parameters: Endpoints["GET /user/blocks"]["parameters"]; + response: Endpoints["GET /user/blocks"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-email-addresses-for-the-authenticated-user + */ + "GET /user/emails": { + parameters: Endpoints["GET /user/emails"]["parameters"]; + response: Endpoints["GET /user/emails"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-followers-of-the-authenticated-user + */ + "GET /user/followers": { + parameters: Endpoints["GET /user/followers"]["parameters"]; + response: Endpoints["GET /user/followers"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-the-people-the-authenticated-user-follows + */ + "GET /user/following": { + parameters: Endpoints["GET /user/following"]["parameters"]; + response: Endpoints["GET /user/following"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-the-authenticated-user + */ + "GET /user/gpg_keys": { + parameters: Endpoints["GET /user/gpg_keys"]["parameters"]; + response: Endpoints["GET /user/gpg_keys"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/apps#list-app-installations-accessible-to-the-user-access-token + */ + "GET /user/installations": { + parameters: Endpoints["GET /user/installations"]["parameters"]; + response: Endpoints["GET /user/installations"]["response"] & { + data: Endpoints["GET /user/installations"]["response"]["data"]["installations"]; + }; + }; + /** + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-user-access-token + */ + "GET /user/installations/{installation_id}/repositories": { + parameters: Endpoints["GET /user/installations/{installation_id}/repositories"]["parameters"]; + response: Endpoints["GET /user/installations/{installation_id}/repositories"]["response"] & { + data: Endpoints["GET /user/installations/{installation_id}/repositories"]["response"]["data"]["repositories"]; + }; + }; + /** + * @see https://docs.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user + */ + "GET /user/issues": { + parameters: Endpoints["GET /user/issues"]["parameters"]; + response: Endpoints["GET /user/issues"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user + */ + "GET /user/keys": { + parameters: Endpoints["GET /user/keys"]["parameters"]; + response: Endpoints["GET /user/keys"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user + */ + "GET /user/marketplace_purchases": { + parameters: Endpoints["GET /user/marketplace_purchases"]["parameters"]; + response: Endpoints["GET /user/marketplace_purchases"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user-stubbed + */ + "GET /user/marketplace_purchases/stubbed": { + parameters: Endpoints["GET /user/marketplace_purchases/stubbed"]["parameters"]; + response: Endpoints["GET /user/marketplace_purchases/stubbed"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/orgs#list-organization-memberships-for-the-authenticated-user + */ + "GET /user/memberships/orgs": { + parameters: Endpoints["GET /user/memberships/orgs"]["parameters"]; + response: Endpoints["GET /user/memberships/orgs"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/migrations#list-user-migrations + */ + "GET /user/migrations": { + parameters: Endpoints["GET /user/migrations"]["parameters"]; + response: Endpoints["GET /user/migrations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/migrations#list-repositories-for-a-user-migration + */ + "GET /user/migrations/{migration_id}/repositories": { + parameters: Endpoints["GET /user/migrations/{migration_id}/repositories"]["parameters"]; + response: Endpoints["GET /user/migrations/{migration_id}/repositories"]["response"]; + }; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations-for-the-authenticated-user + */ + "GET /user/orgs": { + parameters: Endpoints["GET /user/orgs"]["parameters"]; + response: Endpoints["GET /user/orgs"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-public-email-addresses-for-the-authenticated-user + */ + "GET /user/public_emails": { + parameters: Endpoints["GET /user/public_emails"]["parameters"]; + response: Endpoints["GET /user/public_emails"]["response"]; + }; + /** + * @see https://docs.github.com/v3/repos/#list-repositories-for-the-authenticated-user + */ + "GET /user/repos": { + parameters: Endpoints["GET /user/repos"]["parameters"]; + response: Endpoints["GET /user/repos"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations-for-the-authenticated-user + */ + "GET /user/repository_invitations": { + parameters: Endpoints["GET /user/repository_invitations"]["parameters"]; + response: Endpoints["GET /user/repository_invitations"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-the-authenticated-user + */ + "GET /user/starred": { + parameters: Endpoints["GET /user/starred"]["parameters"]; + response: Endpoints["GET /user/starred"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-the-authenticated-user + */ + "GET /user/subscriptions": { + parameters: Endpoints["GET /user/subscriptions"]["parameters"]; + response: Endpoints["GET /user/subscriptions"]["response"]; + }; + /** + * @see https://docs.github.com/v3/teams/#list-teams-for-the-authenticated-user + */ + "GET /user/teams": { + parameters: Endpoints["GET /user/teams"]["parameters"]; + response: Endpoints["GET /user/teams"]["response"]; + }; + /** + * @see https://docs.github.com/v3/users/#list-users + */ + "GET /users": { + parameters: Endpoints["GET /users"]["parameters"]; + response: Endpoints["GET /users"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-events-for-the-authenticated-user + */ + "GET /users/{username}/events": { + parameters: Endpoints["GET /users/{username}/events"]["parameters"]; + response: Endpoints["GET /users/{username}/events"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-organization-events-for-the-authenticated-user + */ + "GET /users/{username}/events/orgs/{org}": { + parameters: Endpoints["GET /users/{username}/events/orgs/{org}"]["parameters"]; + response: Endpoints["GET /users/{username}/events/orgs/{org}"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-user + */ + "GET /users/{username}/events/public": { + parameters: Endpoints["GET /users/{username}/events/public"]["parameters"]; + response: Endpoints["GET /users/{username}/events/public"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-followers-of-a-user + */ + "GET /users/{username}/followers": { + parameters: Endpoints["GET /users/{username}/followers"]["parameters"]; + response: Endpoints["GET /users/{username}/followers"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-the-people-a-user-follows + */ + "GET /users/{username}/following": { + parameters: Endpoints["GET /users/{username}/following"]["parameters"]; + response: Endpoints["GET /users/{username}/following"]["response"]; + }; + /** + * @see https://docs.github.com/v3/gists/#list-gists-for-a-user + */ + "GET /users/{username}/gists": { + parameters: Endpoints["GET /users/{username}/gists"]["parameters"]; + response: Endpoints["GET /users/{username}/gists"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-a-user + */ + "GET /users/{username}/gpg_keys": { + parameters: Endpoints["GET /users/{username}/gpg_keys"]["parameters"]; + response: Endpoints["GET /users/{username}/gpg_keys"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/users#list-public-keys-for-a-user + */ + "GET /users/{username}/keys": { + parameters: Endpoints["GET /users/{username}/keys"]["parameters"]; + response: Endpoints["GET /users/{username}/keys"]["response"]; + }; + /** + * @see https://docs.github.com/v3/orgs/#list-organizations-for-a-user + */ + "GET /users/{username}/orgs": { + parameters: Endpoints["GET /users/{username}/orgs"]["parameters"]; + response: Endpoints["GET /users/{username}/orgs"]["response"]; + }; + /** + * @see https://docs.github.com/v3/projects/#list-user-projects + */ + "GET /users/{username}/projects": { + parameters: Endpoints["GET /users/{username}/projects"]["parameters"]; + response: Endpoints["GET /users/{username}/projects"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-events-received-by-the-authenticated-user + */ + "GET /users/{username}/received_events": { + parameters: Endpoints["GET /users/{username}/received_events"]["parameters"]; + response: Endpoints["GET /users/{username}/received_events"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-public-events-received-by-a-user + */ + "GET /users/{username}/received_events/public": { + parameters: Endpoints["GET /users/{username}/received_events/public"]["parameters"]; + response: Endpoints["GET /users/{username}/received_events/public"]["response"]; + }; + /** + * @see https://docs.github.com/v3/repos/#list-repositories-for-a-user + */ + "GET /users/{username}/repos": { + parameters: Endpoints["GET /users/{username}/repos"]["parameters"]; + response: Endpoints["GET /users/{username}/repos"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-a-user + */ + "GET /users/{username}/starred": { + parameters: Endpoints["GET /users/{username}/starred"]["parameters"]; + response: Endpoints["GET /users/{username}/starred"]["response"]; + }; + /** + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-a-user + */ + "GET /users/{username}/subscriptions": { + parameters: Endpoints["GET /users/{username}/subscriptions"]["parameters"]; + response: Endpoints["GET /users/{username}/subscriptions"]["response"]; + }; +} diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts index 64f9c46b1..44fd2341c 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts +++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts @@ -1,6 +1,7 @@ +import { Octokit } from "@octokit/core"; import { PaginateInterface } from "./types"; export { PaginateInterface } from "./types"; -import { Octokit } from "@octokit/core"; +export { composePaginateRest } from "./compose-paginate"; /** * @param octokit Octokit instance * @param options Options passed to Octokit constructor diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts index eadc968b7..276f6d96e 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts +++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts @@ -1,11 +1,13 @@ import { Octokit } from "@octokit/core"; -import { OctokitResponse, RequestParameters, Route } from "./types"; -export declare function iterator(octokit: Octokit, route: Route, parameters?: RequestParameters): { +import { RequestInterface, RequestParameters, Route } from "./types"; +export declare function iterator(octokit: Octokit, route: Route | RequestInterface, parameters?: RequestParameters): { [Symbol.asyncIterator]: () => { next(): Promise<{ done: boolean; - }> | Promise<{ - value: OctokitResponse; + value?: undefined; + } | { + value: import("@octokit/types/dist-types/OctokitResponse").OctokitResponse; + done?: undefined; }>; }; }; diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts index cbae65e73..f948a78f4 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts +++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts @@ -3,21 +3,16 @@ * * They have a `total_count` key in the response (search also has `incomplete_results`, * /installation/repositories also has `repository_selection`), as well as a key with - * the list of the items which name varies from endpoint to endpoint: - * - * - https://developer.github.com/v3/search/#example (key `items`) - * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`) - * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`) - * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`) - * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`) + * the list of the items which name varies from endpoint to endpoint. * * Octokit normalizes these responses so that paginated results are always returned following * the same structure. One challenge is that if the list response has only one page, no Link * header is provided, so this header alone is not sufficient to check wether a response is - * paginated or not. For the exceptions with the namespace, a fallback check for the route - * paths has to be added in order to normalize the response. We cannot check for the total_count - * property because it also exists in the response of Get the combined status for a specific ref. + * paginated or not. + * + * We check if a "total_count" key is present in the response data, but also make sure that + * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would + * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref */ -import { Octokit } from "@octokit/core"; import { OctokitResponse } from "./types"; -export declare function normalizePaginatedListResponse(octokit: Octokit, url: string, response: OctokitResponse): void; +export declare function normalizePaginatedListResponse(response: OctokitResponse): OctokitResponse; diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts index 2c7e8b244..774c60414 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts +++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts @@ -1,3 +1,3 @@ import { Octokit } from "@octokit/core"; -import { MapFunction, PaginationResults, RequestParameters, Route } from "./types"; -export declare function paginate(octokit: Octokit, route: Route, parameters?: RequestParameters, mapFn?: MapFunction): Promise>; +import { MapFunction, PaginationResults, RequestParameters, Route, RequestInterface } from "./types"; +export declare function paginate(octokit: Octokit, route: Route | RequestInterface, parameters?: RequestParameters, mapFn?: MapFunction): Promise>; diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts index cfd8acea2..3e35fbee1 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts +++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts @@ -1,69 +1,241 @@ +import { Octokit } from "@octokit/core"; import * as OctokitTypes from "@octokit/types"; -export { EndpointOptions } from "@octokit/types"; -export { OctokitResponse } from "@octokit/types"; -export { RequestParameters } from "@octokit/types"; -export { Route } from "@octokit/types"; +export { EndpointOptions, RequestInterface, OctokitResponse, RequestParameters, Route, } from "@octokit/types"; +import { PaginatingEndpoints } from "./generated/paginating-endpoints"; +declare type KnownKeys = Extract<{ + [K in keyof T]: string extends K ? never : number extends K ? never : K; +} extends { + [_ in keyof T]: infer U; +} ? U : never, keyof T>; +declare type KeysMatching = { + [K in keyof T]: T[K] extends V ? K : never; +}[keyof T]; +declare type KnownKeysMatching = KeysMatching>, V>; +declare type GetResultsType = T extends { + data: any[]; +} ? T["data"] : T extends { + data: object; +} ? T["data"][KnownKeysMatching] : never; +declare type NormalizeResponse = T & { + data: GetResultsType; +}; +declare type DataType = "data" extends keyof T ? T["data"] : unknown; +export interface MapFunction { + (response: OctokitTypes.OctokitResponse>, done: () => void): R[]; +} +export declare type PaginationResults = T[]; export interface PaginateInterface { /** - * Sends a request based on endpoint options + * Paginate a request using endpoint options and map each response to a custom array * * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. * @param {function} mapFn Optional method to map each response to a custom array */ (options: OctokitTypes.EndpointOptions, mapFn: MapFunction): Promise>; /** - * Sends a request based on endpoint options + * Paginate a request using endpoint options * * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. */ (options: OctokitTypes.EndpointOptions): Promise>; /** - * Sends a request based on endpoint options + * Paginate a request using a known endpoint route string and map each response to a custom array * - * @param {string} route Request method + URL. Example: `'GET /orgs/:org'` + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` * @param {function} mapFn Optional method to map each response to a custom array */ - (route: OctokitTypes.Route, mapFn: MapFunction): Promise>; + (route: R, mapFn: (response: PaginatingEndpoints[R]["response"], done: () => void) => MR): Promise; /** - * Sends a request based on endpoint options + * Paginate a request using a known endpoint route string and parameters, and map each response to a custom array * - * @param {string} route Request method + URL. Example: `'GET /orgs/:org'` + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` * @param {object} parameters URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. * @param {function} mapFn Optional method to map each response to a custom array */ - (route: OctokitTypes.Route, parameters: OctokitTypes.RequestParameters, mapFn: MapFunction): Promise>; + (route: R, parameters: PaginatingEndpoints[R]["parameters"], mapFn: (response: PaginatingEndpoints[R]["response"], done: () => void) => MR): Promise; + /** + * Paginate a request using an known endpoint route string + * + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` + * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (route: R, parameters?: PaginatingEndpoints[R]["parameters"]): Promise>; + /** + * Paginate a request using an unknown endpoint route string + * + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` + * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (route: R, parameters?: R extends keyof PaginatingEndpoints ? PaginatingEndpoints[R]["parameters"] : OctokitTypes.RequestParameters): Promise; + /** + * Paginate a request using an endpoint method and a map function + * + * @param {string} request Request method (`octokit.request` or `@octokit/request`) + * @param {function} mapFn? Optional method to map each response to a custom array + */ + (request: R, mapFn: (response: NormalizeResponse>, done: () => void) => MR): Promise; /** - * Sends a request based on endpoint options + * Paginate a request using an endpoint method, parameters, and a map function * - * @param {string} route Request method + URL. Example: `'GET /orgs/:org'` + * @param {string} request Request method (`octokit.request` or `@octokit/request`) * @param {object} parameters URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + * @param {function} mapFn? Optional method to map each response to a custom array */ - (route: OctokitTypes.Route, parameters: OctokitTypes.RequestParameters): Promise>; + (request: R, parameters: Parameters[0], mapFn: (response: NormalizeResponse>, done?: () => void) => MR): Promise; /** - * Sends a request based on endpoint options + * Paginate a request using an endpoint method and parameters * - * @param {string} route Request method + URL. Example: `'GET /orgs/:org'` + * @param {string} request Request method (`octokit.request` or `@octokit/request`) + * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. */ - (route: OctokitTypes.Route): Promise>; + (request: R, parameters?: Parameters[0]): Promise>["data"]>; iterator: { /** - * Get an asynchronous iterator for use with `for await()`, + * Get an async iterator to paginate a request using endpoint options * * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. */ (EndpointOptions: OctokitTypes.EndpointOptions): AsyncIterableIterator>>; /** - * Get an asynchronous iterator for use with `for await()`, + * Get an async iterator to paginate a request using a known endpoint route string and optional parameters + * + * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (route: R, parameters?: PaginatingEndpoints[R]["parameters"]): AsyncIterableIterator>>; + /** + * Get an async iterator to paginate a request using an unknown endpoint route string and optional parameters + * + * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (route: R, parameters?: R extends keyof PaginatingEndpoints ? PaginatingEndpoints[R]["parameters"] : OctokitTypes.RequestParameters): AsyncIterableIterator>>; + /** + * Get an async iterator to paginate a request using a request method and optional parameters * * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of - * @param {string} route Request method + URL. Example: `'GET /orgs/:org'` + * @param {string} request `@octokit/request` or `octokit.request` method * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. */ - (route: OctokitTypes.Route, parameters?: OctokitTypes.RequestParameters): AsyncIterableIterator>>; + (request: R, parameters?: Parameters[0]): AsyncIterableIterator>>; }; } -export interface MapFunction { - (response: OctokitTypes.OctokitResponse>, done: () => void): R[]; +export interface ComposePaginateInterface { + /** + * Paginate a request using endpoint options and map each response to a custom array + * + * @param {object} octokit Octokit instance + * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + * @param {function} mapFn Optional method to map each response to a custom array + */ + (octokit: Octokit, options: OctokitTypes.EndpointOptions, mapFn: MapFunction): Promise>; + /** + * Paginate a request using endpoint options + * + * @param {object} octokit Octokit instance + * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (octokit: Octokit, options: OctokitTypes.EndpointOptions): Promise>; + /** + * Paginate a request using a known endpoint route string and map each response to a custom array + * + * @param {object} octokit Octokit instance + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` + * @param {function} mapFn Optional method to map each response to a custom array + */ + (octokit: Octokit, route: R, mapFn: (response: PaginatingEndpoints[R]["response"], done: () => void) => MR): Promise; + /** + * Paginate a request using a known endpoint route string and parameters, and map each response to a custom array + * + * @param {object} octokit Octokit instance + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` + * @param {object} parameters URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + * @param {function} mapFn Optional method to map each response to a custom array + */ + (octokit: Octokit, route: R, parameters: PaginatingEndpoints[R]["parameters"], mapFn: (response: PaginatingEndpoints[R]["response"], done: () => void) => MR): Promise; + /** + * Paginate a request using an known endpoint route string + * + * @param {object} octokit Octokit instance + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` + * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (octokit: Octokit, route: R, parameters?: PaginatingEndpoints[R]["parameters"]): Promise>; + /** + * Paginate a request using an unknown endpoint route string + * + * @param {object} octokit Octokit instance + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` + * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (octokit: Octokit, route: R, parameters?: R extends keyof PaginatingEndpoints ? PaginatingEndpoints[R]["parameters"] : OctokitTypes.RequestParameters): Promise; + /** + * Paginate a request using an endpoint method and a map function + * + * @param {object} octokit Octokit instance + * @param {string} request Request method (`octokit.request` or `@octokit/request`) + * @param {function} mapFn? Optional method to map each response to a custom array + */ + (octokit: Octokit, request: R, mapFn: (response: NormalizeResponse>, done: () => void) => MR): Promise; + /** + * Paginate a request using an endpoint method, parameters, and a map function + * + * @param {object} octokit Octokit instance + * @param {string} request Request method (`octokit.request` or `@octokit/request`) + * @param {object} parameters URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + * @param {function} mapFn? Optional method to map each response to a custom array + */ + (octokit: Octokit, request: R, parameters: Parameters[0], mapFn: (response: NormalizeResponse>, done?: () => void) => MR): Promise; + /** + * Paginate a request using an endpoint method and parameters + * + * @param {object} octokit Octokit instance + * @param {string} request Request method (`octokit.request` or `@octokit/request`) + * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (octokit: Octokit, request: R, parameters?: Parameters[0]): Promise>["data"]>; + iterator: { + /** + * Get an async iterator to paginate a request using endpoint options + * + * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of + * + * @param {object} octokit Octokit instance + * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (octokit: Octokit, EndpointOptions: OctokitTypes.EndpointOptions): AsyncIterableIterator>>; + /** + * Get an async iterator to paginate a request using a known endpoint route string and optional parameters + * + * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of + * + * @param {object} octokit Octokit instance + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (octokit: Octokit, route: R, parameters?: PaginatingEndpoints[R]["parameters"]): AsyncIterableIterator>>; + /** + * Get an async iterator to paginate a request using an unknown endpoint route string and optional parameters + * + * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of + * + * @param {object} octokit Octokit instance + * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'` + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (octokit: Octokit, route: R, parameters?: R extends keyof PaginatingEndpoints ? PaginatingEndpoints[R]["parameters"] : OctokitTypes.RequestParameters): AsyncIterableIterator>>; + /** + * Get an async iterator to paginate a request using a request method and optional parameters + * + * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of + * + * @param {object} octokit Octokit instance + * @param {string} request `@octokit/request` or `octokit.request` method + * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`. + */ + (octokit: Octokit, request: R, parameters?: Parameters[0]): AsyncIterableIterator>>; + }; } -export declare type PaginationResults = T[]; diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts index 3b6537ac3..a4e08e8e2 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts +++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts @@ -1 +1 @@ -export declare const VERSION = "1.1.2"; +export declare const VERSION = "2.6.2"; diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js b/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js index aee57f1ff..8d3e219e5 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js +++ b/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js @@ -1,39 +1,25 @@ -const VERSION = "1.1.2"; +const VERSION = "2.6.2"; /** * Some “list” response that can be paginated have a different response structure * * They have a `total_count` key in the response (search also has `incomplete_results`, * /installation/repositories also has `repository_selection`), as well as a key with - * the list of the items which name varies from endpoint to endpoint: - * - * - https://developer.github.com/v3/search/#example (key `items`) - * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`) - * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`) - * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`) - * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`) + * the list of the items which name varies from endpoint to endpoint. * * Octokit normalizes these responses so that paginated results are always returned following * the same structure. One challenge is that if the list response has only one page, no Link * header is provided, so this header alone is not sufficient to check wether a response is - * paginated or not. For the exceptions with the namespace, a fallback check for the route - * paths has to be added in order to normalize the response. We cannot check for the total_count - * property because it also exists in the response of Get the combined status for a specific ref. + * paginated or not. + * + * We check if a "total_count" key is present in the response data, but also make sure that + * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would + * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref */ -const REGEX = [ - /^\/search\//, - /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/, - /^\/installation\/repositories([^/]|$)/, - /^\/user\/installations([^/]|$)/, - /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, - /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, - /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/ -]; -function normalizePaginatedListResponse(octokit, url, response) { - const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, ""); - const responseNeedsNormalization = REGEX.find(regex => regex.test(path)); +function normalizePaginatedListResponse(response) { + const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data); if (!responseNeedsNormalization) - return; + return response; // keep the additional properties intact as there is currently no other way // to retrieve the same information. const incompleteResults = response.data.incomplete_results; @@ -52,37 +38,31 @@ function normalizePaginatedListResponse(octokit, url, response) { response.data.repository_selection = repositorySelection; } response.data.total_count = totalCount; - Object.defineProperty(response.data, namespaceKey, { - get() { - octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`); - return Array.from(data); - } - }); + return response; } function iterator(octokit, route, parameters) { - const options = octokit.request.endpoint(route, parameters); + const options = typeof route === "function" + ? route.endpoint(parameters) + : octokit.request.endpoint(route, parameters); + const requestMethod = typeof route === "function" ? route : octokit.request; const method = options.method; const headers = options.headers; let url = options.url; return { [Symbol.asyncIterator]: () => ({ - next() { - if (!url) { - return Promise.resolve({ done: true }); - } - return octokit - .request({ method, url, headers }) - .then((response) => { - normalizePaginatedListResponse(octokit, url, response); - // `response.headers.link` format: - // '; rel="next", ; rel="last"' - // sets `url` to undefined if "next" URL is not present or `link` header is not set - url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; - return { value: response }; - }); - } - }) + async next() { + if (!url) + return { done: true }; + const response = await requestMethod({ method, url, headers }); + const normalizedResponse = normalizePaginatedListResponse(response); + // `response.headers.link` format: + // '; rel="next", ; rel="last"' + // sets `url` to undefined if "next" URL is not present or `link` header is not set + url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; + return { value: normalizedResponse }; + }, + }), }; } @@ -94,7 +74,7 @@ function paginate(octokit, route, parameters, mapFn) { return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn); } function gather(octokit, results, iterator, mapFn) { - return iterator.next().then(result => { + return iterator.next().then((result) => { if (result.done) { return results; } @@ -110,6 +90,10 @@ function gather(octokit, results, iterator, mapFn) { }); } +const composePaginateRest = Object.assign(paginate, { + iterator, +}); + /** * @param octokit Octokit instance * @param options Options passed to Octokit constructor @@ -117,11 +101,11 @@ function gather(octokit, results, iterator, mapFn) { function paginateRest(octokit) { return { paginate: Object.assign(paginate.bind(null, octokit), { - iterator: iterator.bind(null, octokit) - }) + iterator: iterator.bind(null, octokit), + }), }; } paginateRest.VERSION = VERSION; -export { paginateRest }; +export { composePaginateRest, paginateRest }; //# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map b/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map index a700b0398..22f4c04d8 100644 --- a/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map +++ b/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/normalize-paginated-list-response.js","../dist-src/iterator.js","../dist-src/paginate.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.1.2\";\n","/**\n * Some “list” response that can be paginated have a different response structure\n *\n * They have a `total_count` key in the response (search also has `incomplete_results`,\n * /installation/repositories also has `repository_selection`), as well as a key with\n * the list of the items which name varies from endpoint to endpoint:\n *\n * - https://developer.github.com/v3/search/#example (key `items`)\n * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)\n * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)\n * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)\n * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)\n *\n * Octokit normalizes these responses so that paginated results are always returned following\n * the same structure. One challenge is that if the list response has only one page, no Link\n * header is provided, so this header alone is not sufficient to check wether a response is\n * paginated or not. For the exceptions with the namespace, a fallback check for the route\n * paths has to be added in order to normalize the response. We cannot check for the total_count\n * property because it also exists in the response of Get the combined status for a specific ref.\n */\nconst REGEX = [\n /^\\/search\\//,\n /^\\/repos\\/[^/]+\\/[^/]+\\/commits\\/[^/]+\\/(check-runs|check-suites)([^/]|$)/,\n /^\\/installation\\/repositories([^/]|$)/,\n /^\\/user\\/installations([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/secrets([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/workflows(\\/[^/]+\\/runs)?([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/runs(\\/[^/]+\\/(artifacts|jobs))?([^/]|$)/\n];\nexport function normalizePaginatedListResponse(octokit, url, response) {\n const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, \"\");\n const responseNeedsNormalization = REGEX.find(regex => regex.test(path));\n if (!responseNeedsNormalization)\n return;\n // keep the additional properties intact as there is currently no other way\n // to retrieve the same information.\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n response.data.total_count = totalCount;\n Object.defineProperty(response.data, namespaceKey, {\n get() {\n octokit.log.warn(`[@octokit/paginate-rest] \"response.data.${namespaceKey}\" is deprecated for \"GET ${path}\". Get the results directly from \"response.data\"`);\n return Array.from(data);\n }\n });\n}\n","import { normalizePaginatedListResponse } from \"./normalize-paginated-list-response\";\nexport function iterator(octokit, route, parameters) {\n const options = octokit.request.endpoint(route, parameters);\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n next() {\n if (!url) {\n return Promise.resolve({ done: true });\n }\n return octokit\n .request({ method, url, headers })\n .then((response) => {\n normalizePaginatedListResponse(octokit, url, response);\n // `response.headers.link` format:\n // '; rel=\"next\", ; rel=\"last\"'\n // sets `url` to undefined if \"next\" URL is not present or `link` header is not set\n url = ((response.headers.link || \"\").match(/<([^>]+)>;\\s*rel=\"next\"/) || [])[1];\n return { value: response };\n });\n }\n })\n };\n}\n","import { iterator } from \"./iterator\";\nexport function paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = undefined;\n }\n return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);\n}\nfunction gather(octokit, results, iterator, mapFn) {\n return iterator.next().then(result => {\n if (result.done) {\n return results;\n }\n let earlyExit = false;\n function done() {\n earlyExit = true;\n }\n results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);\n if (earlyExit) {\n return results;\n }\n return gather(octokit, results, iterator, mapFn);\n });\n}\n","import { VERSION } from \"./version\";\nimport { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit)\n })\n };\n}\npaginateRest.VERSION = VERSION;\n"],"names":[],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/normalize-paginated-list-response.js","../dist-src/iterator.js","../dist-src/paginate.js","../dist-src/compose-paginate.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"2.6.2\";\n","/**\n * Some “list” response that can be paginated have a different response structure\n *\n * They have a `total_count` key in the response (search also has `incomplete_results`,\n * /installation/repositories also has `repository_selection`), as well as a key with\n * the list of the items which name varies from endpoint to endpoint.\n *\n * Octokit normalizes these responses so that paginated results are always returned following\n * the same structure. One challenge is that if the list response has only one page, no Link\n * header is provided, so this header alone is not sufficient to check wether a response is\n * paginated or not.\n *\n * We check if a \"total_count\" key is present in the response data, but also make sure that\n * a \"url\" property is not, as the \"Get the combined status for a specific ref\" endpoint would\n * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref\n */\nexport function normalizePaginatedListResponse(response) {\n const responseNeedsNormalization = \"total_count\" in response.data && !(\"url\" in response.data);\n if (!responseNeedsNormalization)\n return response;\n // keep the additional properties intact as there is currently no other way\n // to retrieve the same information.\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n response.data.total_count = totalCount;\n return response;\n}\n","import { normalizePaginatedListResponse } from \"./normalize-paginated-list-response\";\nexport function iterator(octokit, route, parameters) {\n const options = typeof route === \"function\"\n ? route.endpoint(parameters)\n : octokit.request.endpoint(route, parameters);\n const requestMethod = typeof route === \"function\" ? route : octokit.request;\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n async next() {\n if (!url)\n return { done: true };\n const response = await requestMethod({ method, url, headers });\n const normalizedResponse = normalizePaginatedListResponse(response);\n // `response.headers.link` format:\n // '; rel=\"next\", ; rel=\"last\"'\n // sets `url` to undefined if \"next\" URL is not present or `link` header is not set\n url = ((normalizedResponse.headers.link || \"\").match(/<([^>]+)>;\\s*rel=\"next\"/) || [])[1];\n return { value: normalizedResponse };\n },\n }),\n };\n}\n","import { iterator } from \"./iterator\";\nexport function paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = undefined;\n }\n return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);\n}\nfunction gather(octokit, results, iterator, mapFn) {\n return iterator.next().then((result) => {\n if (result.done) {\n return results;\n }\n let earlyExit = false;\n function done() {\n earlyExit = true;\n }\n results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);\n if (earlyExit) {\n return results;\n }\n return gather(octokit, results, iterator, mapFn);\n });\n}\n","import { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\nexport const composePaginateRest = Object.assign(paginate, {\n iterator,\n});\n","import { VERSION } from \"./version\";\nimport { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\nexport { composePaginateRest } from \"./compose-paginate\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit),\n }),\n };\n}\npaginateRest.VERSION = VERSION;\n"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/README.md b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/README.md index 25b8f03bf..707894566 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/README.md +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/README.md @@ -4,7 +4,6 @@ [![@latest](https://img.shields.io/npm/v/@octokit/types.svg)](https://www.npmjs.com/package/@octokit/types) [![Build Status](https://github.com/octokit/types.ts/workflows/Test/badge.svg)](https://github.com/octokit/types.ts/actions?workflow=Test) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/types.ts.svg)](https://greenkeeper.io/) @@ -26,7 +25,7 @@ See all exported types at https://octokit.github.io/types.ts ### Get parameter and response data types for a REST API endpoint ```ts -import { Endpoints } from "./src"; +import { Endpoints } from "@octokit/types"; type listUserReposParameters = Endpoints["GET /repos/:owner/:repo"]["parameters"]; type listUserReposResponse = Endpoints["GET /repos/:owner/:repo"]["response"]; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js index 4c5b65fec..b888f5732 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js @@ -2,7 +2,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); -const VERSION = "2.16.2"; +const VERSION = "6.0.3"; exports.VERSION = VERSION; //# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/AuthInterface.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/AuthInterface.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/AuthInterface.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/AuthInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointInterface.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointInterface.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointInterface.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointOptions.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointOptions.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointOptions.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Fetch.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Fetch.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Fetch.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Fetch.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/OctokitResponse.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/OctokitResponse.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/OctokitResponse.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/OctokitResponse.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestError.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestError.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestError.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestHeaders.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestHeaders.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestHeaders.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestHeaders.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestInterface.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestInterface.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestInterface.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestMethod.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestMethod.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestMethod.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestMethod.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestOptions.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestOptions.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestOptions.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestParameters.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestParameters.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestParameters.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestParameters.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Route.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Route.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Route.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Route.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Signal.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Signal.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Signal.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Signal.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/StrategyInterface.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/StrategyInterface.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/StrategyInterface.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/StrategyInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Url.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Url.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Url.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Url.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/VERSION.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/VERSION.js index 66bc3f74f..38cea4357 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/VERSION.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/VERSION.js @@ -1 +1 @@ -export const VERSION = "2.16.2"; +export const VERSION = "6.0.3"; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/index.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/index.js index 04b216360..004ae9b22 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/index.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/index.js @@ -1 +1,21 @@ +export * from "./AuthInterface"; +export * from "./EndpointDefaults"; +export * from "./EndpointInterface"; +export * from "./EndpointOptions"; +export * from "./Fetch"; +export * from "./OctokitResponse"; +export * from "./RequestError"; +export * from "./RequestHeaders"; +export * from "./RequestInterface"; +export * from "./RequestMethod"; +export * from "./RequestOptions"; +export * from "./RequestParameters"; +export * from "./RequestRequestOptions"; +export * from "./ResponseHeaders"; +export * from "./Route"; +export * from "./Signal"; +export * from "./StrategyInterface"; +export * from "./Url"; export * from "./VERSION"; +export * from "./GetResponseTypeFromEndpointMethod"; +export * from "./generated/Endpoints"; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts index 9a2dd7f65..19ffff822 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts @@ -1,11 +1,11 @@ import { ResponseHeaders } from "./ResponseHeaders"; import { Url } from "./Url"; -export declare type OctokitResponse = { +export declare type OctokitResponse = { headers: ResponseHeaders; /** * http response code */ - status: number; + status: S; /** * URL of response after all redirects */ diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestError.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestError.d.ts new file mode 100644 index 000000000..89174e6ee --- /dev/null +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestError.d.ts @@ -0,0 +1,11 @@ +export declare type RequestError = { + name: string; + status: number; + documentation_url: string; + errors?: Array<{ + resource: string; + code: string; + field: string; + message?: string; + }>; +}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/VERSION.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/VERSION.d.ts index c24737b27..af986fe4f 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/VERSION.d.ts +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/VERSION.d.ts @@ -1 +1 @@ -export declare const VERSION = "2.16.2"; +export declare const VERSION = "6.0.3"; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts index d10c4c921..399f673bf 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts @@ -1,41416 +1,2972 @@ +import { paths } from "@octokit/openapi-types"; import { OctokitResponse } from "../OctokitResponse"; import { RequestHeaders } from "../RequestHeaders"; import { RequestRequestOptions } from "../RequestRequestOptions"; -declare type RequiredPreview = { +declare type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; +declare type ExtractParameters = "parameters" extends keyof T ? UnionToIntersection<{ + [K in keyof T["parameters"]]: T["parameters"][K]; +}[keyof T["parameters"]]> : {}; +declare type ExtractRequestBody = "requestBody" extends keyof T ? "application/json" extends keyof T["requestBody"] ? T["requestBody"]["application/json"] : { + data: { + [K in keyof T["requestBody"]]: T["requestBody"][K]; + }[keyof T["requestBody"]]; +} : {}; +declare type ToOctokitParameters = ExtractParameters & ExtractRequestBody; +declare type RequiredPreview = T extends string ? { mediaType: { previews: [T, ...string[]]; }; +} : {}; +declare type Operation = { + parameters: ToOctokitParameters & RequiredPreview; + request: { + method: Method extends keyof MethodsMap ? MethodsMap[Method] : never; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; + }; + response: Url extends keyof EndpointsWithMissingRequiredResponseDataSchema ? Method extends EndpointsWithMissingRequiredResponseDataSchema[Url] ? DeepRequired> : ExtractFirstSuccessResponse : ExtractFirstSuccessResponse; +}; +declare type MethodsMap = { + delete: "DELETE"; + get: "GET"; + patch: "PATCH"; + post: "POST"; + put: "PUT"; +}; +declare type SuccessStatusesMap = { + "200": 200; + "201": 201; + "204": 204; +}; +declare type RedirectStatusesMap = { + "301": 301; + "302": 302; +}; +declare type DataType = "application/json" extends keyof T ? T["application/json"] : "application/scim+json" extends keyof T ? T["application/scim+json"] : unknown; +declare type ExtractFirstSuccessResponse = "responses" extends keyof R ? FirstSuccessResponse : unknown; +declare type FirstSuccessResponse = S extends keyof SuccessStatusesMap ? R[S] extends never ? Omit, "data"> : OctokitResponse, SuccessStatusesMap[S]> : S extends keyof RedirectStatusesMap ? OctokitResponse : never; +declare type EndpointsWithMissingRequiredResponseDataSchema = { + "/app/hook/config": "get" | "patch"; + "/app/installations/{installation_id}/access_tokens": "post"; + "/emojis": "get"; + "/enterprises/{enterprise}/actions/permissions": "get"; + "/enterprises/{enterprise}/actions/permissions/organizations": "get"; + "/enterprises/{enterprise}/actions/permissions/selected-actions": "get"; + "/enterprises/{enterprise}/actions/runner-groups": "get" | "post"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": "get" | "patch"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": "get"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": "get"; + "/enterprises/{enterprise}/actions/runners": "get"; + "/enterprises/{enterprise}/actions/runners/downloads": "get"; + "/enterprises/{enterprise}/settings/billing/actions": "get"; + "/enterprises/{enterprise}/settings/billing/packages": "get"; + "/enterprises/{enterprise}/settings/billing/shared-storage": "get"; + "/installation/repositories": "get"; + "/notifications": "get"; + "/notifications/threads/{thread_id}": "get"; + "/orgs/{org}/actions/permissions": "get"; + "/orgs/{org}/actions/permissions/repositories": "get"; + "/orgs/{org}/actions/permissions/selected-actions": "get"; + "/orgs/{org}/actions/runner-groups": "get" | "post"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}": "get" | "patch"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": "get"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners": "get"; + "/orgs/{org}/actions/runners": "get"; + "/orgs/{org}/actions/runners/downloads": "get"; + "/orgs/{org}/actions/secrets": "get"; + "/orgs/{org}/actions/secrets/{secret_name}/repositories": "get"; + "/orgs/{org}/hooks/{hook_id}/config": "get" | "patch"; + "/orgs/{org}/installations": "get"; + "/orgs/{org}/invitations": "get" | "post"; + "/orgs/{org}/settings/billing/actions": "get"; + "/orgs/{org}/settings/billing/packages": "get"; + "/orgs/{org}/settings/billing/shared-storage": "get"; + "/orgs/{org}/team-sync/groups": "get"; + "/orgs/{org}/teams/{team_slug}/invitations": "get"; + "/orgs/{org}/teams/{team_slug}/projects": "get"; + "/orgs/{org}/teams/{team_slug}/projects/{project_id}": "get"; + "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings": "get" | "patch"; + "/projects/columns/cards/{card_id}/moves": "post"; + "/projects/columns/{column_id}/moves": "post"; + "/repos/{owner}/{repo}/actions/artifacts": "get"; + "/repos/{owner}/{repo}/actions/permissions": "get"; + "/repos/{owner}/{repo}/actions/permissions/selected-actions": "get"; + "/repos/{owner}/{repo}/actions/runners": "get"; + "/repos/{owner}/{repo}/actions/runners/downloads": "get"; + "/repos/{owner}/{repo}/actions/runs": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/jobs": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/timing": "get"; + "/repos/{owner}/{repo}/actions/secrets": "get"; + "/repos/{owner}/{repo}/actions/workflows": "get"; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": "get"; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": "get"; + "/repos/{owner}/{repo}/check-suites/preferences": "patch"; + "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": "get"; + "/repos/{owner}/{repo}/code-scanning/alerts": "get"; + "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": "get" | "patch"; + "/repos/{owner}/{repo}/code-scanning/analyses": "get"; + "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": "get"; + "/repos/{owner}/{repo}/commits/{ref}/check-runs": "get"; + "/repos/{owner}/{repo}/commits/{ref}/check-suites": "get"; + "/repos/{owner}/{repo}/commits/{ref}/statuses": "get"; + "/repos/{owner}/{repo}/contents/{path}": "put" | "delete"; + "/repos/{owner}/{repo}/git/blobs": "post"; + "/repos/{owner}/{repo}/git/commits": "post"; + "/repos/{owner}/{repo}/git/commits/{commit_sha}": "get"; + "/repos/{owner}/{repo}/git/matching-refs/{ref}": "get"; + "/repos/{owner}/{repo}/git/ref/{ref}": "get"; + "/repos/{owner}/{repo}/git/refs": "post"; + "/repos/{owner}/{repo}/git/refs/{ref}": "patch"; + "/repos/{owner}/{repo}/hooks/{hook_id}/config": "get" | "patch"; + "/repos/{owner}/{repo}/issues/{issue_number}/events": "get"; + "/repos/{owner}/{repo}/issues/{issue_number}/timeline": "get"; + "/repos/{owner}/{repo}/keys": "get" | "post"; + "/repos/{owner}/{repo}/keys/{key_id}": "get"; + "/repos/{owner}/{repo}/languages": "get"; + "/repos/{owner}/{repo}/notifications": "get"; + "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": "get"; + "/repos/{owner}/{repo}/stats/participation": "get"; + "/repos/{owner}/{repo}/statuses/{sha}": "post"; + "/repos/{owner}/{repo}/topics": "get" | "put"; + "/scim/v2/enterprises/{enterprise}/Groups": "get" | "post"; + "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": "get" | "put" | "patch"; + "/scim/v2/enterprises/{enterprise}/Users": "get" | "post"; + "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": "get" | "put" | "patch"; + "/search/code": "get"; + "/search/commits": "get"; + "/search/issues": "get"; + "/search/labels": "get"; + "/search/repositories": "get"; + "/search/topics": "get"; + "/search/users": "get"; + "/teams/{team_id}/invitations": "get"; + "/teams/{team_id}/projects": "get"; + "/teams/{team_id}/projects/{project_id}": "get"; + "/teams/{team_id}/team-sync/group-mappings": "get" | "patch"; + "/user/installations": "get"; + "/user/installations/{installation_id}/repositories": "get"; + "/user/keys": "get" | "post"; + "/user/keys/{key_id}": "get"; + "/users/{username}/settings/billing/actions": "get"; + "/users/{username}/settings/billing/packages": "get"; + "/users/{username}/settings/billing/shared-storage": "get"; +}; +declare type NotNill = T extends null | undefined ? never : T; +declare type Primitive = undefined | null | boolean | string | number | Function; +declare type DeepRequired = T extends Primitive ? NotNill : { + [P in keyof T]-?: T[P] extends Array ? Array> : T[P] extends ReadonlyArray ? DeepRequired : DeepRequired; }; export interface Endpoints { /** - * @see https://developer.github.com/v3/apps/#delete-an-installation + * @see https://docs.github.com/v3/apps/#delete-an-installation-for-the-authenticated-app */ - "DELETE /app/installations/:installation_id": { - parameters: AppsDeleteInstallationEndpoint; - request: AppsDeleteInstallationRequestOptions; - response: OctokitResponse; - }; + "DELETE /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/#unsuspend-an-installation + * @see https://docs.github.com/v3/apps/#unsuspend-an-app-installation */ - "DELETE /app/installations/:installation_id/suspended": { - parameters: AppsUnsuspendInstallationEndpoint; - request: AppsUnsuspendInstallationRequestOptions; - response: OctokitResponse; - }; + "DELETE /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "delete">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-authorization + * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-a-grant */ - "DELETE /applications/:client_id/grant": { - parameters: AppsDeleteAuthorizationEndpoint; - request: AppsDeleteAuthorizationRequestOptions; - response: OctokitResponse; - }; + "DELETE /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application + * @see https://docs.github.com/rest/reference/apps#delete-an-app-authorization */ - "DELETE /applications/:client_id/grants/:access_token": { - parameters: AppsRevokeGrantForApplicationEndpoint; - request: AppsRevokeGrantForApplicationRequestOptions; - response: OctokitResponse; - }; + "DELETE /applications/{client_id}/grant": Operation<"/applications/{client_id}/grant", "delete">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-token + * @see https://docs.github.com/rest/reference/apps#revoke-a-grant-for-an-application */ - "DELETE /applications/:client_id/token": { - parameters: AppsDeleteTokenEndpoint; - request: AppsDeleteTokenRequestOptions; - response: OctokitResponse; - }; + "DELETE /applications/{client_id}/grants/{access_token}": Operation<"/applications/{client_id}/grants/{access_token}", "delete">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application + * @see https://docs.github.com/rest/reference/apps#delete-an-app-token */ - "DELETE /applications/:client_id/tokens/:access_token": { - parameters: AppsRevokeAuthorizationForApplicationEndpoint; - request: AppsRevokeAuthorizationForApplicationRequestOptions; - response: OctokitResponse; - }; + "DELETE /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant + * @see https://docs.github.com/rest/reference/apps#revoke-an-authorization-for-an-application */ - "DELETE /applications/grants/:grant_id": { - parameters: OauthAuthorizationsDeleteGrantEndpoint; - request: OauthAuthorizationsDeleteGrantRequestOptions; - response: OctokitResponse; - }; + "DELETE /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization + * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-an-authorization */ - "DELETE /authorizations/:authorization_id": { - parameters: OauthAuthorizationsDeleteAuthorizationEndpoint; - request: OauthAuthorizationsDeleteAuthorizationRequestOptions; - response: OctokitResponse; - }; + "DELETE /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "delete">; /** - * @see https://developer.github.com/v3/gists/#delete-a-gist + * @see https://docs.github.com/rest/reference/enterprise-admin#disable-a-selected-organization-for-github-actions-in-an-enterprise */ - "DELETE /gists/:gist_id": { - parameters: GistsDeleteEndpoint; - request: GistsDeleteRequestOptions; - response: OctokitResponse; - }; + "DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "delete">; /** - * @see https://developer.github.com/v3/gists/comments/#delete-a-comment + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-self-hosted-runner-group-from-an-enterprise */ - "DELETE /gists/:gist_id/comments/:comment_id": { - parameters: GistsDeleteCommentEndpoint; - request: GistsDeleteCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "delete">; /** - * @see https://developer.github.com/v3/gists/#unstar-a-gist + * @see https://docs.github.com/rest/reference/enterprise-admin#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise */ - "DELETE /gists/:gist_id/star": { - parameters: GistsUnstarEndpoint; - request: GistsUnstarRequestOptions; - response: OctokitResponse; - }; + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/installations/#revoke-an-installation-token + * @see https://docs.github.com/rest/reference/enterprise-admin#remove-a-self-hosted-runner-from-a-group-for-an-enterprise */ - "DELETE /installation/token": { - parameters: AppsRevokeInstallationTokenEndpoint; - request: AppsRevokeInstallationTokenRequestOptions; - response: OctokitResponse; - }; + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "delete">; /** - * @see https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-self-hosted-runner-from-an-enterprise */ - "DELETE /notifications/threads/:thread_id/subscription": { - parameters: ActivityDeleteThreadSubscriptionEndpoint; - request: ActivityDeleteThreadSubscriptionRequestOptions; - response: OctokitResponse; - }; + "DELETE /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "delete">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-an-organization + * @see https://docs.github.com/v3/gists/#delete-a-gist */ - "DELETE /orgs/:org/actions/runners/:runner_id": { - parameters: ActionsDeleteSelfHostedRunnerFromOrgEndpoint; - request: ActionsDeleteSelfHostedRunnerFromOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /gists/{gist_id}": Operation<"/gists/{gist_id}", "delete">; /** - * @see https://developer.github.com/v3/orgs/blocking/#unblock-a-user + * @see https://docs.github.com/rest/reference/gists#delete-a-gist-comment */ - "DELETE /orgs/:org/blocks/:username": { - parameters: OrgsUnblockUserEndpoint; - request: OrgsUnblockUserRequestOptions; - response: OctokitResponse; - }; + "DELETE /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "delete">; /** - * @see https://developer.github.com/v3/orgs/#remove-a-credential-authorization-for-an-organization + * @see https://docs.github.com/v3/gists/#unstar-a-gist */ - "DELETE /orgs/:org/credential-authorizations/:credential_id": { - parameters: OrgsRemoveCredentialAuthorizationEndpoint; - request: OrgsRemoveCredentialAuthorizationRequestOptions; - response: OctokitResponse; - }; + "DELETE /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "delete">; /** - * @see https://developer.github.com/v3/orgs/hooks/#delete-a-hook + * @see https://docs.github.com/rest/reference/apps#revoke-an-installation-access-token */ - "DELETE /orgs/:org/hooks/:hook_id": { - parameters: OrgsDeleteHookEndpoint; - request: OrgsDeleteHookRequestOptions; - response: OctokitResponse; - }; + "DELETE /installation/token": Operation<"/installation/token", "delete">; /** - * @see https://developer.github.com/v3/interactions/orgs/#remove-interaction-restrictions-for-an-organization + * @see https://docs.github.com/rest/reference/activity#delete-a-thread-subscription */ - "DELETE /orgs/:org/interaction-limits": { - parameters: InteractionsRemoveRestrictionsForOrgEndpoint; - request: InteractionsRemoveRestrictionsForOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "delete">; /** - * @see https://developer.github.com/v3/orgs/members/#remove-a-member + * @see https://docs.github.com/rest/reference/actions#disable-a-selected-repository-for-github-actions-in-an-organization */ - "DELETE /orgs/:org/members/:username": { - parameters: OrgsRemoveMemberEndpoint; - request: OrgsRemoveMemberRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "delete">; /** - * @see https://developer.github.com/v3/orgs/members/#remove-organization-membership + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-organization */ - "DELETE /orgs/:org/memberships/:username": { - parameters: OrgsRemoveMembershipEndpoint; - request: OrgsRemoveMembershipRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "delete">; /** - * @see https://developer.github.com/v3/migrations/orgs/#delete-an-organization-migration-archive + * @see https://docs.github.com/rest/reference/actions#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization */ - "DELETE /orgs/:org/migrations/:migration_id/archive": { - parameters: MigrationsDeleteArchiveForOrgEndpoint; - request: MigrationsDeleteArchiveForOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "delete">; /** - * @see https://developer.github.com/v3/migrations/orgs/#unlock-an-organization-repository + * @see https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-organization */ - "DELETE /orgs/:org/migrations/:migration_id/repos/:repo_name/lock": { - parameters: MigrationsUnlockRepoForOrgEndpoint; - request: MigrationsUnlockRepoForOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "delete">; /** - * @see https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-an-organization */ - "DELETE /orgs/:org/outside_collaborators/:username": { - parameters: OrgsRemoveOutsideCollaboratorEndpoint; - request: OrgsRemoveOutsideCollaboratorRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/runners/{runner_id}": Operation<"/orgs/{org}/actions/runners/{runner_id}", "delete">; /** - * @see https://developer.github.com/v3/orgs/members/#conceal-a-users-membership + * @see https://docs.github.com/rest/reference/actions#delete-an-organization-secret */ - "DELETE /orgs/:org/public_members/:username": { - parameters: OrgsConcealMembershipEndpoint; - request: OrgsConcealMembershipRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "delete">; /** - * @see https://developer.github.com/v3/teams/#delete-team + * @see https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret */ - "DELETE /orgs/:org/teams/:team_slug": { - parameters: TeamsDeleteInOrgEndpoint; - request: TeamsDeleteInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "delete">; /** - * @see https://developer.github.com/v3/teams/discussions/#delete-a-discussion + * @see https://docs.github.com/rest/reference/orgs#unblock-a-user-from-an-organization */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number": { - parameters: TeamsDeleteDiscussionInOrgEndpoint; - request: TeamsDeleteDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "delete">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment + * @see https://docs.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsDeleteDiscussionCommentInOrgEndpoint; - request: TeamsDeleteDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/credential-authorizations/{credential_id}": Operation<"/orgs/{org}/credential-authorizations/{credential_id}", "delete">; /** - * @see https://developer.github.com/v3/reactions/#delete-team-discussion-comment-reaction + * @see https://docs.github.com/rest/reference/orgs#delete-an-organization-webhook */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id": { - parameters: ReactionsDeleteForTeamDiscussionCommentEndpoint; - request: ReactionsDeleteForTeamDiscussionCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "delete">; /** - * @see https://developer.github.com/v3/reactions/#delete-team-discussion-reaction + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-an-organization */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id": { - parameters: ReactionsDeleteForTeamDiscussionEndpoint; - request: ReactionsDeleteForTeamDiscussionRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "delete">; /** - * @see https://developer.github.com/v3/teams/members/#remove-team-membership + * @see https://docs.github.com/rest/reference/orgs#remove-an-organization-member */ - "DELETE /orgs/:org/teams/:team_slug/memberships/:username": { - parameters: TeamsRemoveMembershipInOrgEndpoint; - request: TeamsRemoveMembershipInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "delete">; /** - * @see https://developer.github.com/v3/teams/#remove-team-project + * @see https://docs.github.com/rest/reference/orgs#remove-organization-membership-for-a-user */ - "DELETE /orgs/:org/teams/:team_slug/projects/:project_id": { - parameters: TeamsRemoveProjectInOrgEndpoint; - request: TeamsRemoveProjectInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "delete">; /** - * @see https://developer.github.com/v3/teams/#remove-team-repository + * @see https://docs.github.com/rest/reference/migrations#delete-an-organization-migration-archive */ - "DELETE /orgs/:org/teams/:team_slug/repos/:owner/:repo": { - parameters: TeamsRemoveRepoInOrgEndpoint; - request: TeamsRemoveRepoInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/migrations/{migration_id}/archive": Operation<"/orgs/{org}/migrations/{migration_id}/archive", "delete", "wyandotte">; /** - * @see https://developer.github.com/v3/projects/#delete-a-project + * @see https://docs.github.com/rest/reference/migrations#unlock-an-organization-repository */ - "DELETE /projects/:project_id": { - parameters: ProjectsDeleteEndpoint; - request: ProjectsDeleteRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock": Operation<"/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock", "delete", "wyandotte">; /** - * @see https://developer.github.com/v3/projects/collaborators/#remove-user-as-a-collaborator + * @see https://docs.github.com/rest/reference/orgs#remove-outside-collaborator-from-an-organization */ - "DELETE /projects/:project_id/collaborators/:username": { - parameters: ProjectsRemoveCollaboratorEndpoint; - request: ProjectsRemoveCollaboratorRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/outside_collaborators/{username}": Operation<"/orgs/{org}/outside_collaborators/{username}", "delete">; /** - * @see https://developer.github.com/v3/projects/columns/#delete-a-project-column + * @see https://docs.github.com/rest/reference/orgs#remove-public-organization-membership-for-the-authenticated-user */ - "DELETE /projects/columns/:column_id": { - parameters: ProjectsDeleteColumnEndpoint; - request: ProjectsDeleteColumnRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "delete">; /** - * @see https://developer.github.com/v3/projects/cards/#delete-a-project-card + * @see https://docs.github.com/v3/teams/#delete-a-team */ - "DELETE /projects/columns/cards/:card_id": { - parameters: ProjectsDeleteCardEndpoint; - request: ProjectsDeleteCardRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "delete">; /** - * @see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion */ - "DELETE /reactions/:reaction_id": { - parameters: ReactionsDeleteLegacyEndpoint; - request: ReactionsDeleteLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "delete">; /** - * @see https://developer.github.com/v3/repos/#delete-a-repository + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-comment */ - "DELETE /repos/:owner/:repo": { - parameters: ReposDeleteEndpoint; - request: ReposDeleteRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "delete">; /** - * @see https://developer.github.com/v3/actions/artifacts/#delete-an-artifact + * @see https://docs.github.com/v3/reactions/#delete-team-discussion-comment-reaction */ - "DELETE /repos/:owner/:repo/actions/artifacts/:artifact_id": { - parameters: ActionsDeleteArtifactEndpoint; - request: ActionsDeleteArtifactRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-a-repository + * @see https://docs.github.com/v3/reactions/#delete-team-discussion-reaction */ - "DELETE /repos/:owner/:repo/actions/runners/:runner_id": { - parameters: ActionsDeleteSelfHostedRunnerFromRepoEndpoint; - request: ActionsDeleteSelfHostedRunnerFromRepoRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#delete-workflow-run-logs + * @see https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user */ - "DELETE /repos/:owner/:repo/actions/runs/:run_id/logs": { - parameters: ActionsDeleteWorkflowRunLogsEndpoint; - request: ActionsDeleteWorkflowRunLogsRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "delete">; /** - * @see https://developer.github.com/v3/actions/secrets/#delete-a-secret-from-a-repository + * @see https://docs.github.com/v3/teams/#remove-a-project-from-a-team */ - "DELETE /repos/:owner/:repo/actions/secrets/:name": { - parameters: ActionsDeleteSecretFromRepoEndpoint; - request: ActionsDeleteSecretFromRepoRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "delete">; /** - * @see https://developer.github.com/v3/repos/#disable-automated-security-fixes + * @see https://docs.github.com/v3/teams/#remove-a-repository-from-a-team */ - "DELETE /repos/:owner/:repo/automated-security-fixes": { - parameters: ReposDisableAutomatedSecurityFixesEndpoint; - request: ReposDisableAutomatedSecurityFixesRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "delete">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-branch-protection + * @see https://docs.github.com/rest/reference/projects#delete-a-project-card */ - "DELETE /repos/:owner/:repo/branches/:branch/protection": { - parameters: ReposRemoveBranchProtectionEndpoint; - request: ReposRemoveBranchProtectionRequestOptions; - response: OctokitResponse; - }; + "DELETE /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "delete", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-admin-enforcement-of-protected-branch + * @see https://docs.github.com/rest/reference/projects#delete-a-project-column */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { - parameters: ReposRemoveProtectedBranchAdminEnforcementEndpoint; - request: ReposRemoveProtectedBranchAdminEnforcementRequestOptions; - response: OctokitResponse; - }; + "DELETE /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "delete", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch + * @see https://docs.github.com/v3/projects/#delete-a-project */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { - parameters: ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint; - request: ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions; - response: OctokitResponse; - }; + "DELETE /projects/{project_id}": Operation<"/projects/{project_id}", "delete", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-required-signatures-of-protected-branch + * @see https://docs.github.com/rest/reference/projects#remove-project-collaborator */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_signatures": { - parameters: ReposRemoveProtectedBranchRequiredSignaturesEndpoint; - request: ReposRemoveProtectedBranchRequiredSignaturesRequestOptions; - response: OctokitResponse; - }; + "DELETE /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "delete", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-required-status-checks-of-protected-branch + * @see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { - parameters: ReposRemoveProtectedBranchRequiredStatusChecksEndpoint; - request: ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions; - response: OctokitResponse; - }; + "DELETE /reactions/{reaction_id}": Operation<"/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch + * @see https://docs.github.com/v3/repos/#delete-a-repository */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "delete">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/actions#delete-an-artifact */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions": { - parameters: ReposRemoveProtectedBranchRestrictionsEndpoint; - request: ReposRemoveProtectedBranchRestrictionsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "delete">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-app-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-a-repository */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposRemoveProtectedBranchAppRestrictionsEndpoint; - request: ReposRemoveProtectedBranchAppRestrictionsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}": Operation<"/repos/{owner}/{repo}/actions/runners/{runner_id}", "delete">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-team-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/actions#delete-a-workflow-run */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposRemoveProtectedBranchTeamRestrictionsEndpoint; - request: ReposRemoveProtectedBranchTeamRestrictionsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}", "delete">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-user-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/actions#delete-workflow-run-logs */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposRemoveProtectedBranchUserRestrictionsEndpoint; - request: ReposRemoveProtectedBranchUserRestrictionsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/logs", "delete">; /** - * @see https://developer.github.com/v3/repos/collaborators/#remove-user-as-a-collaborator + * @see https://docs.github.com/rest/reference/actions#delete-a-repository-secret */ - "DELETE /repos/:owner/:repo/collaborators/:username": { - parameters: ReposRemoveCollaboratorEndpoint; - request: ReposRemoveCollaboratorRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "delete">; /** - * @see https://developer.github.com/v3/repos/comments/#delete-a-commit-comment + * @see https://docs.github.com/v3/repos/#disable-automated-security-fixes */ - "DELETE /repos/:owner/:repo/comments/:comment_id": { - parameters: ReposDeleteCommitCommentEndpoint; - request: ReposDeleteCommitCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "delete", "london">; /** - * @see https://developer.github.com/v3/reactions/#delete-a-commit-comment-reaction + * @see https://docs.github.com/rest/reference/repos#delete-branch-protection */ - "DELETE /repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id": { - parameters: ReactionsDeleteForCommitCommentEndpoint; - request: ReactionsDeleteForCommitCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "delete">; /** - * @see https://developer.github.com/v3/repos/contents/#delete-a-file + * @see https://docs.github.com/rest/reference/repos#delete-admin-branch-protection */ - "DELETE /repos/:owner/:repo/contents/:path": { - parameters: ReposDeleteFileEndpoint; - request: ReposDeleteFileRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "delete">; /** - * @see https://developer.github.com/v3/repos/deployments/#delete-a-deployment + * @see https://docs.github.com/rest/reference/repos#delete-pull-request-review-protection */ - "DELETE /repos/:owner/:repo/deployments/:deployment_id": { - parameters: ReposDeleteDeploymentEndpoint; - request: ReposDeleteDeploymentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "delete">; /** - * @see https://developer.github.com/v3/repos/downloads/#delete-a-download + * @see https://docs.github.com/rest/reference/repos#delete-commit-signature-protection */ - "DELETE /repos/:owner/:repo/downloads/:download_id": { - parameters: ReposDeleteDownloadEndpoint; - request: ReposDeleteDownloadRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "delete", "zzzax">; /** - * @see https://developer.github.com/v3/git/refs/#delete-a-reference + * @see https://docs.github.com/rest/reference/repos#remove-status-check-protection */ - "DELETE /repos/:owner/:repo/git/refs/:ref": { - parameters: GitDeleteRefEndpoint; - request: GitDeleteRefRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "delete">; /** - * @see https://developer.github.com/v3/repos/hooks/#delete-a-hook + * @see https://docs.github.com/rest/reference/repos#remove-status-check-contexts */ - "DELETE /repos/:owner/:repo/hooks/:hook_id": { - parameters: ReposDeleteHookEndpoint; - request: ReposDeleteHookRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "delete">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#cancel-an-import + * @see https://docs.github.com/rest/reference/repos#delete-access-restrictions */ - "DELETE /repos/:owner/:repo/import": { - parameters: MigrationsCancelImportEndpoint; - request: MigrationsCancelImportRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "delete">; /** - * @see https://developer.github.com/v3/interactions/repos/#remove-interaction-restrictions-for-a-repository + * @see https://docs.github.com/rest/reference/repos#remove-app-access-restrictions */ - "DELETE /repos/:owner/:repo/interaction-limits": { - parameters: InteractionsRemoveRestrictionsForRepoEndpoint; - request: InteractionsRemoveRestrictionsForRepoRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "delete">; /** - * @see https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation + * @see https://docs.github.com/rest/reference/repos#remove-team-access-restrictions */ - "DELETE /repos/:owner/:repo/invitations/:invitation_id": { - parameters: ReposDeleteInvitationEndpoint; - request: ReposDeleteInvitationRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "delete">; /** - * @see https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue + * @see https://docs.github.com/rest/reference/repos#remove-user-access-restrictions */ - "DELETE /repos/:owner/:repo/issues/:issue_number/assignees": { - parameters: IssuesRemoveAssigneesEndpoint; - request: IssuesRemoveAssigneesRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "delete">; /** - * @see https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue + * @see https://docs.github.com/rest/reference/repos#remove-a-repository-collaborator */ - "DELETE /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesRemoveAllLabelsEndpoint; - request: IssuesRemoveAllLabelsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "delete">; /** - * @see https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue + * @see https://docs.github.com/rest/reference/repos#delete-a-commit-comment */ - "DELETE /repos/:owner/:repo/issues/:issue_number/labels/:name": { - parameters: IssuesRemoveLabelEndpoint; - request: IssuesRemoveLabelRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "delete">; /** - * @see https://developer.github.com/v3/issues/#unlock-an-issue + * @see https://docs.github.com/v3/reactions/#delete-a-commit-comment-reaction */ - "DELETE /repos/:owner/:repo/issues/:issue_number/lock": { - parameters: IssuesUnlockEndpoint; - request: IssuesUnlockRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/reactions/#delete-an-issue-reaction + * @see https://docs.github.com/rest/reference/repos#delete-a-file */ - "DELETE /repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id": { - parameters: ReactionsDeleteForIssueEndpoint; - request: ReactionsDeleteForIssueRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "delete">; /** - * @see https://developer.github.com/v3/issues/comments/#delete-a-comment + * @see https://docs.github.com/rest/reference/repos#delete-a-deployment */ - "DELETE /repos/:owner/:repo/issues/comments/:comment_id": { - parameters: IssuesDeleteCommentEndpoint; - request: IssuesDeleteCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "delete">; /** - * @see https://developer.github.com/v3/reactions/#delete-an-issue-comment-reaction + * @see https://docs.github.com/rest/reference/git#delete-a-reference */ - "DELETE /repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id": { - parameters: ReactionsDeleteForIssueCommentEndpoint; - request: ReactionsDeleteForIssueCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "delete">; /** - * @see https://developer.github.com/v3/repos/keys/#remove-a-deploy-key + * @see https://docs.github.com/rest/reference/repos#delete-a-repository-webhook */ - "DELETE /repos/:owner/:repo/keys/:key_id": { - parameters: ReposRemoveDeployKeyEndpoint; - request: ReposRemoveDeployKeyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "delete">; /** - * @see https://developer.github.com/v3/issues/labels/#delete-a-label + * @see https://docs.github.com/rest/reference/migrations#cancel-an-import */ - "DELETE /repos/:owner/:repo/labels/:name": { - parameters: IssuesDeleteLabelEndpoint; - request: IssuesDeleteLabelRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "delete">; /** - * @see https://developer.github.com/v3/issues/milestones/#delete-a-milestone + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-a-repository */ - "DELETE /repos/:owner/:repo/milestones/:milestone_number": { - parameters: IssuesDeleteMilestoneEndpoint; - request: IssuesDeleteMilestoneRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "delete">; /** - * @see https://developer.github.com/v3/repos/pages/#disable-a-pages-site + * @see https://docs.github.com/rest/reference/repos#delete-a-repository-invitation */ - "DELETE /repos/:owner/:repo/pages": { - parameters: ReposDisablePagesSiteEndpoint; - request: ReposDisablePagesSiteRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "delete">; /** - * @see https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request + * @see https://docs.github.com/rest/reference/issues#delete-an-issue-comment */ - "DELETE /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { - parameters: PullsDeleteReviewRequestEndpoint; - request: PullsDeleteReviewRequestRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "delete">; /** - * @see https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review + * @see https://docs.github.com/v3/reactions/#delete-an-issue-comment-reaction */ - "DELETE /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { - parameters: PullsDeletePendingReviewEndpoint; - request: PullsDeletePendingReviewRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/pulls/comments/#delete-a-comment + * @see https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue */ - "DELETE /repos/:owner/:repo/pulls/comments/:comment_id": { - parameters: PullsDeleteCommentEndpoint; - request: PullsDeleteCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees", "delete">; /** - * @see https://developer.github.com/v3/reactions/#delete-a-pull-request-comment-reaction + * @see https://docs.github.com/rest/reference/issues#remove-all-labels-from-an-issue */ - "DELETE /repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id": { - parameters: ReactionsDeleteForPullRequestCommentEndpoint; - request: ReactionsDeleteForPullRequestCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "delete">; /** - * @see https://developer.github.com/v3/repos/releases/#delete-a-release + * @see https://docs.github.com/rest/reference/issues#remove-a-label-from-an-issue */ - "DELETE /repos/:owner/:repo/releases/:release_id": { - parameters: ReposDeleteReleaseEndpoint; - request: ReposDeleteReleaseRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}", "delete">; /** - * @see https://developer.github.com/v3/repos/releases/#delete-a-release-asset + * @see https://docs.github.com/v3/issues/#unlock-an-issue */ - "DELETE /repos/:owner/:repo/releases/assets/:asset_id": { - parameters: ReposDeleteReleaseAssetEndpoint; - request: ReposDeleteReleaseAssetRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/lock", "delete">; /** - * @see https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription + * @see https://docs.github.com/v3/reactions/#delete-an-issue-reaction */ - "DELETE /repos/:owner/:repo/subscription": { - parameters: ActivityDeleteRepoSubscriptionEndpoint; - request: ActivityDeleteRepoSubscriptionRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/#disable-vulnerability-alerts + * @see https://docs.github.com/rest/reference/repos#delete-a-deploy-key */ - "DELETE /repos/:owner/:repo/vulnerability-alerts": { - parameters: ReposDisableVulnerabilityAlertsEndpoint; - request: ReposDisableVulnerabilityAlertsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "delete">; /** - * @see https://developer.github.com/v3/scim/#remove-a-user-from-the-organization + * @see https://docs.github.com/rest/reference/issues#delete-a-label */ - "DELETE /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimRemoveUserFromOrgEndpoint; - request: ScimRemoveUserFromOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "delete">; /** - * @see https://developer.github.com/v3/teams/#delete-team-legacy + * @see https://docs.github.com/rest/reference/issues#delete-a-milestone */ - "DELETE /teams/:team_id": { - parameters: TeamsDeleteLegacyEndpoint; - request: TeamsDeleteLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "delete">; /** - * @see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy + * @see https://docs.github.com/rest/reference/repos#delete-a-github-pages-site */ - "DELETE /teams/:team_id/discussions/:discussion_number": { - parameters: TeamsDeleteDiscussionLegacyEndpoint; - request: TeamsDeleteDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "delete", "switcheroo">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy + * @see https://docs.github.com/rest/reference/pulls#delete-a-review-comment-for-a-pull-request */ - "DELETE /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsDeleteDiscussionCommentLegacyEndpoint; - request: TeamsDeleteDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "delete">; /** - * @see https://developer.github.com/v3/teams/members/#remove-team-member-legacy + * @see https://docs.github.com/v3/reactions/#delete-a-pull-request-comment-reaction */ - "DELETE /teams/:team_id/members/:username": { - parameters: TeamsRemoveMemberLegacyEndpoint; - request: TeamsRemoveMemberLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy + * @see https://docs.github.com/rest/reference/pulls#remove-requested-reviewers-from-a-pull-request */ - "DELETE /teams/:team_id/memberships/:username": { - parameters: TeamsRemoveMembershipLegacyEndpoint; - request: TeamsRemoveMembershipLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "delete">; /** - * @see https://developer.github.com/v3/teams/#remove-team-project-legacy + * @see https://docs.github.com/rest/reference/pulls#delete-a-pending-review-for-a-pull-request */ - "DELETE /teams/:team_id/projects/:project_id": { - parameters: TeamsRemoveProjectLegacyEndpoint; - request: TeamsRemoveProjectLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "delete">; /** - * @see https://developer.github.com/v3/teams/#remove-team-repository-legacy + * @see https://docs.github.com/rest/reference/repos#delete-a-release-asset */ - "DELETE /teams/:team_id/repos/:owner/:repo": { - parameters: TeamsRemoveRepoLegacyEndpoint; - request: TeamsRemoveRepoLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "delete">; /** - * @see https://developer.github.com/v3/users/blocking/#unblock-a-user + * @see https://docs.github.com/rest/reference/repos#delete-a-release */ - "DELETE /user/blocks/:username": { - parameters: UsersUnblockEndpoint; - request: UsersUnblockRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "delete">; /** - * @see https://developer.github.com/v3/users/emails/#delete-email-addresses + * @see https://docs.github.com/rest/reference/activity#delete-a-repository-subscription */ - "DELETE /user/emails": { - parameters: UsersDeleteEmailsEndpoint; - request: UsersDeleteEmailsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "delete">; /** - * @see https://developer.github.com/v3/users/followers/#unfollow-a-user + * @see https://docs.github.com/v3/repos/#disable-vulnerability-alerts */ - "DELETE /user/following/:username": { - parameters: UsersUnfollowEndpoint; - request: UsersUnfollowRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "delete", "dorian">; /** - * @see https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-group-from-an-enterprise */ - "DELETE /user/gpg_keys/:gpg_key_id": { - parameters: UsersDeleteGpgKeyEndpoint; - request: UsersDeleteGpgKeyRequestOptions; - response: OctokitResponse; - }; + "DELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/installations/#remove-repository-from-installation + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-user-from-an-enterprise */ - "DELETE /user/installations/:installation_id/repositories/:repository_id": { - parameters: AppsRemoveRepoFromInstallationEndpoint; - request: AppsRemoveRepoFromInstallationRequestOptions; - response: OctokitResponse; - }; + "DELETE /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "delete">; /** - * @see https://developer.github.com/v3/users/keys/#delete-a-public-key + * @see https://docs.github.com/v3/scim/#delete-a-scim-user-from-an-organization */ - "DELETE /user/keys/:key_id": { - parameters: UsersDeletePublicKeyEndpoint; - request: UsersDeletePublicKeyRequestOptions; - response: OctokitResponse; - }; + "DELETE /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "delete">; /** - * @see https://developer.github.com/v3/migrations/users/#delete-a-user-migration-archive + * @see https://docs.github.com/v3/teams/#delete-a-team-legacy */ - "DELETE /user/migrations/:migration_id/archive": { - parameters: MigrationsDeleteArchiveForAuthenticatedUserEndpoint; - request: MigrationsDeleteArchiveForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}": Operation<"/teams/{team_id}", "delete">; /** - * @see https://developer.github.com/v3/migrations/users/#unlock-a-user-repository + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-legacy */ - "DELETE /user/migrations/:migration_id/repos/:repo_name/lock": { - parameters: MigrationsUnlockRepoForAuthenticatedUserEndpoint; - request: MigrationsUnlockRepoForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "delete">; /** - * @see https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-comment-legacy */ - "DELETE /user/repository_invitations/:invitation_id": { - parameters: ReposDeclineInvitationEndpoint; - request: ReposDeclineInvitationRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "delete">; /** - * @see https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user + * @see https://docs.github.com/rest/reference/teams#remove-team-member-legacy */ - "DELETE /user/starred/:owner/:repo": { - parameters: ActivityUnstarRepoForAuthenticatedUserEndpoint; - request: ActivityUnstarRepoForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "delete">; /** - * @see https://developer.github.com/v3/activity/watching/#stop-watching-a-repository-legacy + * @see https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user-legacy */ - "DELETE /user/subscriptions/:owner/:repo": { - parameters: ActivityStopWatchingRepoLegacyEndpoint; - request: ActivityStopWatchingRepoLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "delete">; /** - * @see https://developer.github.com/v3/apps/#get-the-authenticated-github-app + * @see https://docs.github.com/v3/teams/#remove-a-project-from-a-team-legacy */ - "GET /app": { - parameters: AppsGetAuthenticatedEndpoint; - request: AppsGetAuthenticatedRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/#list-installations + * @see https://docs.github.com/v3/teams/#remove-a-repository-from-a-team-legacy */ - "GET /app/installations": { - parameters: AppsListInstallationsEndpoint; - request: AppsListInstallationsRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "delete">; /** - * @see https://developer.github.com/v3/apps/#get-an-installation + * @see https://docs.github.com/rest/reference/users#unblock-a-user */ - "GET /app/installations/:installation_id": { - parameters: AppsGetInstallationEndpoint; - request: AppsGetInstallationRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/blocks/{username}": Operation<"/user/blocks/{username}", "delete">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization + * @see https://docs.github.com/rest/reference/users#delete-an-email-address-for-the-authenticated-user */ - "GET /applications/:client_id/tokens/:access_token": { - parameters: AppsCheckAuthorizationEndpoint; - request: AppsCheckAuthorizationRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/emails": Operation<"/user/emails", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#list-your-grants + * @see https://docs.github.com/rest/reference/users#unfollow-a-user */ - "GET /applications/grants": { - parameters: OauthAuthorizationsListGrantsEndpoint; - request: OauthAuthorizationsListGrantsRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/following/{username}": Operation<"/user/following/{username}", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant + * @see https://docs.github.com/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user */ - "GET /applications/grants/:grant_id": { - parameters: OauthAuthorizationsGetGrantEndpoint; - request: OauthAuthorizationsGetGrantRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/gpg_keys/{gpg_key_id}": Operation<"/user/gpg_keys/{gpg_key_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/#get-a-single-github-app + * @see https://docs.github.com/rest/reference/apps#remove-a-repository-from-an-app-installation */ - "GET /apps/:app_slug": { - parameters: AppsGetBySlugEndpoint; - request: AppsGetBySlugRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/installations/{installation_id}/repositories/{repository_id}": Operation<"/user/installations/{installation_id}/repositories/{repository_id}", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-from-your-public-repositories */ - "GET /authorizations": { - parameters: OauthAuthorizationsListAuthorizationsEndpoint; - request: OauthAuthorizationsListAuthorizationsRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/interaction-limits": Operation<"/user/interaction-limits", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization + * @see https://docs.github.com/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user */ - "GET /authorizations/:authorization_id": { - parameters: OauthAuthorizationsGetAuthorizationEndpoint; - request: OauthAuthorizationsGetAuthorizationRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/keys/{key_id}": Operation<"/user/keys/{key_id}", "delete">; /** - * @see https://developer.github.com/v3/codes_of_conduct/#list-all-codes-of-conduct + * @see https://docs.github.com/rest/reference/migrations#delete-a-user-migration-archive */ - "GET /codes_of_conduct": { - parameters: CodesOfConductGetAllCodesOfConductEndpoint; - request: CodesOfConductGetAllCodesOfConductRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/migrations/{migration_id}/archive": Operation<"/user/migrations/{migration_id}/archive", "delete", "wyandotte">; /** - * @see https://developer.github.com/v3/codes_of_conduct/#get-an-individual-code-of-conduct + * @see https://docs.github.com/rest/reference/migrations#unlock-a-user-repository */ - "GET /codes_of_conduct/:key": { - parameters: CodesOfConductGetConductCodeEndpoint; - request: CodesOfConductGetConductCodeRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock": Operation<"/user/migrations/{migration_id}/repos/{repo_name}/lock", "delete", "wyandotte">; /** - * @see https://developer.github.com/v3/emojis/#emojis + * @see https://docs.github.com/rest/reference/repos#decline-a-repository-invitation */ - "GET /emojis": { - parameters: EmojisGetEndpoint; - request: EmojisGetRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "delete">; /** - * @see https://developer.github.com/v3/activity/events/#list-public-events + * @see https://docs.github.com/rest/reference/activity#unstar-a-repository-for-the-authenticated-user */ - "GET /events": { - parameters: ActivityListPublicEventsEndpoint; - request: ActivityListPublicEventsRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "delete">; /** - * @see https://developer.github.com/v3/activity/feeds/#get-feeds + * @see */ - "GET /feeds": { - parameters: ActivityGetFeedsEndpoint; - request: ActivityGetFeedsRequestOptions; - response: OctokitResponse; - }; + "GET /": Operation<"/", "get">; /** - * @see https://developer.github.com/v3/gists/#list-gists-for-the-authenticated-user + * @see https://docs.github.com/v3/apps/#get-the-authenticated-app */ - "GET /gists": { - parameters: GistsListEndpoint; - request: GistsListRequestOptions; - response: OctokitResponse; - }; + "GET /app": Operation<"/app", "get">; /** - * @see https://developer.github.com/v3/gists/#get-a-gist + * @see https://docs.github.com/v3/apps#get-a-webhook-configuration-for-an-app */ - "GET /gists/:gist_id": { - parameters: GistsGetEndpoint; - request: GistsGetRequestOptions; - response: OctokitResponse; - }; + "GET /app/hook/config": Operation<"/app/hook/config", "get">; /** - * @see https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist + * @see https://docs.github.com/v3/apps/#list-installations-for-the-authenticated-app */ - "GET /gists/:gist_id/:sha": { - parameters: GistsGetRevisionEndpoint; - request: GistsGetRevisionRequestOptions; - response: OctokitResponse; - }; + "GET /app/installations": Operation<"/app/installations", "get">; /** - * @see https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist + * @see https://docs.github.com/v3/apps/#get-an-installation-for-the-authenticated-app */ - "GET /gists/:gist_id/comments": { - parameters: GistsListCommentsEndpoint; - request: GistsListCommentsRequestOptions; - response: OctokitResponse; - }; + "GET /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "get">; /** - * @see https://developer.github.com/v3/gists/comments/#get-a-single-comment + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-grants */ - "GET /gists/:gist_id/comments/:comment_id": { - parameters: GistsGetCommentEndpoint; - request: GistsGetCommentRequestOptions; - response: OctokitResponse; - }; + "GET /applications/grants": Operation<"/applications/grants", "get">; /** - * @see https://developer.github.com/v3/gists/#list-gist-commits + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-grant */ - "GET /gists/:gist_id/commits": { - parameters: GistsListCommitsEndpoint; - request: GistsListCommitsRequestOptions; - response: OctokitResponse; - }; + "GET /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "get">; /** - * @see https://developer.github.com/v3/gists/#list-gist-forks + * @see https://docs.github.com/rest/reference/apps#check-an-authorization */ - "GET /gists/:gist_id/forks": { - parameters: GistsListForksEndpoint; - request: GistsListForksRequestOptions; - response: OctokitResponse; - }; + "GET /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "get">; /** - * @see https://developer.github.com/v3/gists/#check-if-a-gist-is-starred + * @see https://docs.github.com/v3/apps/#get-an-app */ - "GET /gists/:gist_id/star": { - parameters: GistsCheckIsStarredEndpoint; - request: GistsCheckIsStarredRequestOptions; - response: OctokitResponse; - }; + "GET /apps/{app_slug}": Operation<"/apps/{app_slug}", "get">; /** - * @see https://developer.github.com/v3/gists/#list-public-gists + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-authorizations */ - "GET /gists/public": { - parameters: GistsListPublicEndpoint; - request: GistsListPublicRequestOptions; - response: OctokitResponse; - }; + "GET /authorizations": Operation<"/authorizations", "get">; /** - * @see https://developer.github.com/v3/gists/#list-starred-gists + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-authorization */ - "GET /gists/starred": { - parameters: GistsListStarredEndpoint; - request: GistsListStarredRequestOptions; - response: OctokitResponse; - }; + "GET /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "get">; /** - * @see https://developer.github.com/v3/gitignore/#listing-available-templates + * @see https://docs.github.com/v3/codes_of_conduct/#get-all-codes-of-conduct */ - "GET /gitignore/templates": { - parameters: GitignoreListTemplatesEndpoint; - request: GitignoreListTemplatesRequestOptions; - response: OctokitResponse; - }; + "GET /codes_of_conduct": Operation<"/codes_of_conduct", "get", "scarlet-witch">; /** - * @see https://developer.github.com/v3/gitignore/#get-a-single-template + * @see https://docs.github.com/v3/codes_of_conduct/#get-a-code-of-conduct */ - "GET /gitignore/templates/:name": { - parameters: GitignoreGetTemplateEndpoint; - request: GitignoreGetTemplateRequestOptions; - response: OctokitResponse; - }; + "GET /codes_of_conduct/{key}": Operation<"/codes_of_conduct/{key}", "get", "scarlet-witch">; /** - * @see https://developer.github.com/v3/apps/installations/#list-repositories + * @see https://docs.github.com/v3/emojis/#get-emojis */ - "GET /installation/repositories": { - parameters: AppsListReposEndpoint; - request: AppsListReposRequestOptions; - response: OctokitResponse; - }; + "GET /emojis": Operation<"/emojis", "get">; /** - * @see https://developer.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user + * @see https://docs.github.com/rest/reference/enterprise-admin#get-github-actions-permissions-for-an-enterprise */ - "GET /issues": { - parameters: IssuesListEndpoint; - request: IssuesListRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "get">; /** - * @see https://developer.github.com/v3/search/legacy/#search-issues + * @see https://docs.github.com/rest/reference/enterprise-admin#list-selected-organizations-enabled-for-github-actions-in-an-enterprise */ - "GET /legacy/issues/search/:owner/:repository/:state/:keyword": { - parameters: SearchIssuesLegacyEndpoint; - request: SearchIssuesLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "get">; /** - * @see https://developer.github.com/v3/search/legacy/#search-repositories + * @see https://docs.github.com/rest/reference/enterprise-admin#get-allowed-actions-for-an-enterprise */ - "GET /legacy/repos/search/:keyword": { - parameters: SearchReposLegacyEndpoint; - request: SearchReposLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "get">; /** - * @see https://developer.github.com/v3/search/legacy/#email-search + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runner-groups-for-an-enterprise */ - "GET /legacy/user/email/:email": { - parameters: SearchEmailLegacyEndpoint; - request: SearchEmailLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "get">; /** - * @see https://developer.github.com/v3/search/legacy/#search-users + * @see https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-group-for-an-enterprise */ - "GET /legacy/user/search/:keyword": { - parameters: SearchUsersLegacyEndpoint; - request: SearchUsersLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "get">; /** - * @see https://developer.github.com/v3/licenses/#list-commonly-used-licenses + * @see https://docs.github.com/rest/reference/enterprise-admin#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise */ - "GET /licenses": { - parameters: LicensesListCommonlyUsedEndpoint; - request: LicensesListCommonlyUsedRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "get">; /** - * @see https://developer.github.com/v3/licenses/#get-an-individual-license + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-in-a-group-for-an-enterprise */ - "GET /licenses/:license": { - parameters: LicensesGetEndpoint; - request: LicensesGetRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#get-a-subscription-plan-for-an-account + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-for-an-enterprise */ - "GET /marketplace_listing/accounts/:account_id": { - parameters: AppsGetSubscriptionPlanForAccountEndpoint; - request: AppsGetSubscriptionPlanForAccountRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runners": Operation<"/enterprises/{enterprise}/actions/runners", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-plans + * @see https://docs.github.com/rest/reference/enterprise-admin#list-runner-applications-for-an-enterprise */ - "GET /marketplace_listing/plans": { - parameters: AppsListPlansEndpoint; - request: AppsListPlansRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runners/downloads": Operation<"/enterprises/{enterprise}/actions/runners/downloads", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-accounts-for-a-plan + * @see https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-for-an-enterprise */ - "GET /marketplace_listing/plans/:plan_id/accounts": { - parameters: AppsListAccountsForPlanEndpoint; - request: AppsListAccountsForPlanRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#get-a-subscription-plan-for-an-account-stubbed + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-enterprise */ - "GET /marketplace_listing/stubbed/accounts/:account_id": { - parameters: AppsGetSubscriptionPlanForAccountStubbedEndpoint; - request: AppsGetSubscriptionPlanForAccountStubbedRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/settings/billing/actions": Operation<"/enterprises/{enterprise}/settings/billing/actions", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-plans-stubbed + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-enterprise */ - "GET /marketplace_listing/stubbed/plans": { - parameters: AppsListPlansStubbedEndpoint; - request: AppsListPlansStubbedRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/settings/billing/packages": Operation<"/enterprises/{enterprise}/settings/billing/packages", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-accounts-for-a-plan-stubbed + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-enterprise */ - "GET /marketplace_listing/stubbed/plans/:plan_id/accounts": { - parameters: AppsListAccountsForPlanStubbedEndpoint; - request: AppsListAccountsForPlanStubbedRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/settings/billing/shared-storage": Operation<"/enterprises/{enterprise}/settings/billing/shared-storage", "get">; /** - * @see https://developer.github.com/v3/meta/#meta + * @see https://docs.github.com/rest/reference/activity#list-public-events */ - "GET /meta": { - parameters: MetaGetEndpoint; - request: MetaGetRequestOptions; - response: OctokitResponse; - }; + "GET /events": Operation<"/events", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories + * @see https://docs.github.com/rest/reference/activity#get-feeds */ - "GET /networks/:owner/:repo/events": { - parameters: ActivityListPublicEventsForRepoNetworkEndpoint; - request: ActivityListPublicEventsForRepoNetworkRequestOptions; - response: OctokitResponse; - }; + "GET /feeds": Operation<"/feeds", "get">; /** - * @see https://developer.github.com/v3/activity/notifications/#list-notifications-for-the-authenticated-user + * @see https://docs.github.com/v3/gists/#list-gists-for-the-authenticated-user */ - "GET /notifications": { - parameters: ActivityListNotificationsForAuthenticatedUserEndpoint; - request: ActivityListNotificationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /gists": Operation<"/gists", "get">; /** - * @see https://developer.github.com/v3/activity/notifications/#get-a-thread + * @see https://docs.github.com/v3/gists/#list-public-gists */ - "GET /notifications/threads/:thread_id": { - parameters: ActivityGetThreadEndpoint; - request: ActivityGetThreadRequestOptions; - response: OctokitResponse; - }; + "GET /gists/public": Operation<"/gists/public", "get">; /** - * @see https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription-for-the-authenticated-user + * @see https://docs.github.com/v3/gists/#list-starred-gists */ - "GET /notifications/threads/:thread_id/subscription": { - parameters: ActivityGetThreadSubscriptionForAuthenticatedUserEndpoint; - request: ActivityGetThreadSubscriptionForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /gists/starred": Operation<"/gists/starred", "get">; /** - * @see https://developer.github.com/v3/orgs/#list-all-organizations + * @see https://docs.github.com/v3/gists/#get-a-gist */ - "GET /organizations": { - parameters: OrgsListEndpoint; - request: OrgsListRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}": Operation<"/gists/{gist_id}", "get">; /** - * @see https://developer.github.com/v3/orgs/#get-an-organization + * @see https://docs.github.com/rest/reference/gists#list-gist-comments */ - "GET /orgs/:org": { - parameters: OrgsGetEndpoint; - request: OrgsGetRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/comments": Operation<"/gists/{gist_id}/comments", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization + * @see https://docs.github.com/rest/reference/gists#get-a-gist-comment */ - "GET /orgs/:org/actions/runners": { - parameters: ActionsListSelfHostedRunnersForOrgEndpoint; - request: ActionsListSelfHostedRunnersForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-an-organization + * @see https://docs.github.com/v3/gists/#list-gist-commits */ - "GET /orgs/:org/actions/runners/:runner_id": { - parameters: ActionsGetSelfHostedRunnerForOrgEndpoint; - request: ActionsGetSelfHostedRunnerForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/commits": Operation<"/gists/{gist_id}/commits", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-an-organization + * @see https://docs.github.com/v3/gists/#list-gist-forks */ - "GET /orgs/:org/actions/runners/downloads": { - parameters: ActionsListRunnerApplicationsForOrgEndpoint; - request: ActionsListRunnerApplicationsForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/forks": Operation<"/gists/{gist_id}/forks", "get">; /** - * @see https://developer.github.com/v3/orgs/blocking/#list-blocked-users + * @see https://docs.github.com/v3/gists/#check-if-a-gist-is-starred */ - "GET /orgs/:org/blocks": { - parameters: OrgsListBlockedUsersEndpoint; - request: OrgsListBlockedUsersRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "get">; /** - * @see https://developer.github.com/v3/orgs/blocking/#check-whether-a-user-is-blocked-from-an-organization + * @see https://docs.github.com/v3/gists/#get-a-gist-revision */ - "GET /orgs/:org/blocks/:username": { - parameters: OrgsCheckBlockedUserEndpoint; - request: OrgsCheckBlockedUserRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/{sha}": Operation<"/gists/{gist_id}/{sha}", "get">; /** - * @see https://developer.github.com/v3/orgs/#list-credential-authorizations-for-an-organization + * @see https://docs.github.com/v3/gitignore/#get-all-gitignore-templates */ - "GET /orgs/:org/credential-authorizations": { - parameters: OrgsListCredentialAuthorizationsEndpoint; - request: OrgsListCredentialAuthorizationsRequestOptions; - response: OctokitResponse; - }; + "GET /gitignore/templates": Operation<"/gitignore/templates", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-public-organization-events + * @see https://docs.github.com/v3/gitignore/#get-a-gitignore-template */ - "GET /orgs/:org/events": { - parameters: ActivityListPublicOrgEventsEndpoint; - request: ActivityListPublicOrgEventsRequestOptions; - response: OctokitResponse; - }; + "GET /gitignore/templates/{name}": Operation<"/gitignore/templates/{name}", "get">; /** - * @see https://developer.github.com/v3/orgs/hooks/#list-hooks + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-app-installation */ - "GET /orgs/:org/hooks": { - parameters: OrgsListHooksEndpoint; - request: OrgsListHooksRequestOptions; - response: OctokitResponse; - }; + "GET /installation/repositories": Operation<"/installation/repositories", "get">; /** - * @see https://developer.github.com/v3/orgs/hooks/#get-single-hook + * @see https://docs.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user */ - "GET /orgs/:org/hooks/:hook_id": { - parameters: OrgsGetHookEndpoint; - request: OrgsGetHookRequestOptions; - response: OctokitResponse; - }; + "GET /issues": Operation<"/issues", "get">; /** - * @see https://developer.github.com/v3/apps/#get-an-organization-installation + * @see https://docs.github.com/v3/licenses/#get-all-commonly-used-licenses */ - "GET /orgs/:org/installation": { - parameters: AppsGetOrgInstallationEndpoint; - request: AppsGetOrgInstallationRequestOptions; - response: OctokitResponse; - }; + "GET /licenses": Operation<"/licenses", "get">; /** - * @see https://developer.github.com/v3/orgs/#list-installations-for-an-organization + * @see https://docs.github.com/v3/licenses/#get-a-license */ - "GET /orgs/:org/installations": { - parameters: OrgsListInstallationsEndpoint; - request: OrgsListInstallationsRequestOptions; - response: OctokitResponse; - }; + "GET /licenses/{license}": Operation<"/licenses/{license}", "get">; /** - * @see https://developer.github.com/v3/interactions/orgs/#get-interaction-restrictions-for-an-organization + * @see https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account */ - "GET /orgs/:org/interaction-limits": { - parameters: InteractionsGetRestrictionsForOrgEndpoint; - request: InteractionsGetRestrictionsForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/accounts/{account_id}": Operation<"/marketplace_listing/accounts/{account_id}", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations + * @see https://docs.github.com/rest/reference/apps#list-plans */ - "GET /orgs/:org/invitations": { - parameters: OrgsListPendingInvitationsEndpoint; - request: OrgsListPendingInvitationsRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/plans": Operation<"/marketplace_listing/plans", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#list-organization-invitation-teams + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan */ - "GET /orgs/:org/invitations/:invitation_id/teams": { - parameters: OrgsListInvitationTeamsEndpoint; - request: OrgsListInvitationTeamsRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/plans/{plan_id}/accounts": Operation<"/marketplace_listing/plans/{plan_id}/accounts", "get">; /** - * @see https://developer.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user + * @see https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account-stubbed */ - "GET /orgs/:org/issues": { - parameters: IssuesListForOrgEndpoint; - request: IssuesListForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/stubbed/accounts/{account_id}": Operation<"/marketplace_listing/stubbed/accounts/{account_id}", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#members-list + * @see https://docs.github.com/rest/reference/apps#list-plans-stubbed */ - "GET /orgs/:org/members": { - parameters: OrgsListMembersEndpoint; - request: OrgsListMembersRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/stubbed/plans": Operation<"/marketplace_listing/stubbed/plans", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#check-membership + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan-stubbed */ - "GET /orgs/:org/members/:username": { - parameters: OrgsCheckMembershipEndpoint; - request: OrgsCheckMembershipRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts": Operation<"/marketplace_listing/stubbed/plans/{plan_id}/accounts", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#get-organization-membership + * @see https://docs.github.com/v3/meta/#get-github-meta-information */ - "GET /orgs/:org/memberships/:username": { - parameters: OrgsGetMembershipEndpoint; - request: OrgsGetMembershipRequestOptions; - response: OctokitResponse; - }; + "GET /meta": Operation<"/meta", "get">; /** - * @see https://developer.github.com/v3/migrations/orgs/#list-organization-migrations + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-network-of-repositories */ - "GET /orgs/:org/migrations": { - parameters: MigrationsListForOrgEndpoint; - request: MigrationsListForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /networks/{owner}/{repo}/events": Operation<"/networks/{owner}/{repo}/events", "get">; /** - * @see https://developer.github.com/v3/migrations/orgs/#get-the-status-of-an-organization-migration + * @see https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user */ - "GET /orgs/:org/migrations/:migration_id": { - parameters: MigrationsGetStatusForOrgEndpoint; - request: MigrationsGetStatusForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /notifications": Operation<"/notifications", "get">; /** - * @see https://developer.github.com/v3/migrations/orgs/#download-an-organization-migration-archive + * @see https://docs.github.com/rest/reference/activity#get-a-thread */ - "GET /orgs/:org/migrations/:migration_id/archive": { - parameters: MigrationsDownloadArchiveForOrgEndpoint; - request: MigrationsDownloadArchiveForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "get">; /** - * @see https://developer.github.com/v3/migrations/orgs/#list-repositories-in-an-organization-migration + * @see https://docs.github.com/rest/reference/activity#get-a-thread-subscription-for-the-authenticated-user */ - "GET /orgs/:org/migrations/:migration_id/repositories": { - parameters: MigrationsListReposForOrgEndpoint; - request: MigrationsListReposForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "get">; /** - * @see https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators + * @see */ - "GET /orgs/:org/outside_collaborators": { - parameters: OrgsListOutsideCollaboratorsEndpoint; - request: OrgsListOutsideCollaboratorsRequestOptions; - response: OctokitResponse; - }; + "GET /octocat": Operation<"/octocat", "get">; /** - * @see https://developer.github.com/v3/projects/#list-organization-projects + * @see https://docs.github.com/v3/orgs/#list-organizations */ - "GET /orgs/:org/projects": { - parameters: ProjectsListForOrgEndpoint; - request: ProjectsListForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /organizations": Operation<"/organizations", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#public-members-list + * @see https://docs.github.com/v3/orgs/#get-an-organization */ - "GET /orgs/:org/public_members": { - parameters: OrgsListPublicMembersEndpoint; - request: OrgsListPublicMembersRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}": Operation<"/orgs/{org}", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#check-public-membership + * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-an-organization */ - "GET /orgs/:org/public_members/:username": { - parameters: OrgsCheckPublicMembershipEndpoint; - request: OrgsCheckPublicMembershipRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/permissions": Operation<"/orgs/{org}/actions/permissions", "get">; /** - * @see https://developer.github.com/v3/repos/#list-organization-repositories + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization */ - "GET /orgs/:org/repos": { - parameters: ReposListForOrgEndpoint; - request: ReposListForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/permissions/repositories": Operation<"/orgs/{org}/actions/permissions/repositories", "get">; /** - * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-in-an-organization + * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-an-organization */ - "GET /orgs/:org/team-sync/groups": { - parameters: TeamsListIdPGroupsForOrgEndpoint; - request: TeamsListIdPGroupsForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/permissions/selected-actions": Operation<"/orgs/{org}/actions/permissions/selected-actions", "get">; /** - * @see https://developer.github.com/v3/teams/#list-teams + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-organization */ - "GET /orgs/:org/teams": { - parameters: TeamsListEndpoint; - request: TeamsListRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runner-groups": Operation<"/orgs/{org}/actions/runner-groups", "get">; /** - * @see https://developer.github.com/v3/teams/#get-team-by-name + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-group-for-an-organization */ - "GET /orgs/:org/teams/:team_slug": { - parameters: TeamsGetByNameEndpoint; - request: TeamsGetByNameRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "get">; /** - * @see https://developer.github.com/v3/teams/discussions/#list-discussions + * @see https://docs.github.com/rest/reference/actions#list-repository-access-to-a-self-hosted-runner-group-in-an-organization */ - "GET /orgs/:org/teams/:team_slug/discussions": { - parameters: TeamsListDiscussionsInOrgEndpoint; - request: TeamsListDiscussionsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "get">; /** - * @see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number": { - parameters: TeamsGetDiscussionInOrgEndpoint; - request: TeamsGetDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#list-comments + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-organization */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": { - parameters: TeamsListDiscussionCommentsInOrgEndpoint; - request: TeamsListDiscussionCommentsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runners": Operation<"/orgs/{org}/actions/runners", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-organization */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsGetDiscussionCommentInOrgEndpoint; - request: TeamsGetDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runners/downloads": Operation<"/orgs/{org}/actions/runners/downloads", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-an-organization */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsListForTeamDiscussionCommentInOrgEndpoint; - request: ReactionsListForTeamDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runners/{runner_id}": Operation<"/orgs/{org}/actions/runners/{runner_id}", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion + * @see https://docs.github.com/rest/reference/actions#list-organization-secrets */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions": { - parameters: ReactionsListForTeamDiscussionInOrgEndpoint; - request: ReactionsListForTeamDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/secrets": Operation<"/orgs/{org}/actions/secrets", "get">; /** - * @see https://developer.github.com/v3/teams/members/#list-pending-team-invitations + * @see https://docs.github.com/rest/reference/actions#get-an-organization-public-key */ - "GET /orgs/:org/teams/:team_slug/invitations": { - parameters: TeamsListPendingInvitationsInOrgEndpoint; - request: TeamsListPendingInvitationsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/secrets/public-key": Operation<"/orgs/{org}/actions/secrets/public-key", "get">; /** - * @see https://developer.github.com/v3/teams/members/#list-team-members + * @see https://docs.github.com/rest/reference/actions#get-an-organization-secret */ - "GET /orgs/:org/teams/:team_slug/members": { - parameters: TeamsListMembersInOrgEndpoint; - request: TeamsListMembersInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "get">; /** - * @see https://developer.github.com/v3/teams/members/#get-team-membership + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret */ - "GET /orgs/:org/teams/:team_slug/memberships/:username": { - parameters: TeamsGetMembershipInOrgEndpoint; - request: TeamsGetMembershipInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "get">; /** - * @see https://developer.github.com/v3/teams/#list-team-projects + * @see https://docs.github.com/rest/reference/orgs#list-users-blocked-by-an-organization */ - "GET /orgs/:org/teams/:team_slug/projects": { - parameters: TeamsListProjectsInOrgEndpoint; - request: TeamsListProjectsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/blocks": Operation<"/orgs/{org}/blocks", "get">; /** - * @see https://developer.github.com/v3/teams/#review-a-team-project + * @see https://docs.github.com/rest/reference/orgs#check-if-a-user-is-blocked-by-an-organization */ - "GET /orgs/:org/teams/:team_slug/projects/:project_id": { - parameters: TeamsReviewProjectInOrgEndpoint; - request: TeamsReviewProjectInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "get">; /** - * @see https://developer.github.com/v3/teams/#list-team-repos + * @see https://docs.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization */ - "GET /orgs/:org/teams/:team_slug/repos": { - parameters: TeamsListReposInOrgEndpoint; - request: TeamsListReposInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/credential-authorizations": Operation<"/orgs/{org}/credential-authorizations", "get">; /** - * @see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository + * @see https://docs.github.com/rest/reference/activity#list-public-organization-events */ - "GET /orgs/:org/teams/:team_slug/repos/:owner/:repo": { - parameters: TeamsCheckManagesRepoInOrgEndpoint; - request: TeamsCheckManagesRepoInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/events": Operation<"/orgs/{org}/events", "get">; /** - * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team + * @see https://docs.github.com/rest/reference/orgs#list-organization-webhooks */ - "GET /orgs/:org/teams/:team_slug/team-sync/group-mappings": { - parameters: TeamsListIdPGroupsInOrgEndpoint; - request: TeamsListIdPGroupsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/hooks": Operation<"/orgs/{org}/hooks", "get">; /** - * @see https://developer.github.com/v3/teams/#list-child-teams + * @see https://docs.github.com/rest/reference/orgs#get-an-organization-webhook */ - "GET /orgs/:org/teams/:team_slug/teams": { - parameters: TeamsListChildInOrgEndpoint; - request: TeamsListChildInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "get">; /** - * @see https://developer.github.com/v3/projects/#get-a-project + * @see https://docs.github.com/v3/orgs#get-a-webhook-configuration-for-an-organization */ - "GET /projects/:project_id": { - parameters: ProjectsGetEndpoint; - request: ProjectsGetRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/hooks/{hook_id}/config": Operation<"/orgs/{org}/hooks/{hook_id}/config", "get">; /** - * @see https://developer.github.com/v3/projects/collaborators/#list-collaborators + * @see https://docs.github.com/v3/apps/#get-an-organization-installation-for-the-authenticated-app */ - "GET /projects/:project_id/collaborators": { - parameters: ProjectsListCollaboratorsEndpoint; - request: ProjectsListCollaboratorsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/installation": Operation<"/orgs/{org}/installation", "get">; /** - * @see https://developer.github.com/v3/projects/collaborators/#review-a-users-permission-level + * @see https://docs.github.com/v3/orgs/#list-app-installations-for-an-organization */ - "GET /projects/:project_id/collaborators/:username/permission": { - parameters: ProjectsReviewUserPermissionLevelEndpoint; - request: ProjectsReviewUserPermissionLevelRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/installations": Operation<"/orgs/{org}/installations", "get">; /** - * @see https://developer.github.com/v3/projects/columns/#list-project-columns + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-an-organization */ - "GET /projects/:project_id/columns": { - parameters: ProjectsListColumnsEndpoint; - request: ProjectsListColumnsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "get">; /** - * @see https://developer.github.com/v3/projects/columns/#get-a-project-column + * @see https://docs.github.com/rest/reference/orgs#list-pending-organization-invitations */ - "GET /projects/columns/:column_id": { - parameters: ProjectsGetColumnEndpoint; - request: ProjectsGetColumnRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "get">; /** - * @see https://developer.github.com/v3/projects/cards/#list-project-cards + * @see https://docs.github.com/rest/reference/orgs#list-organization-invitation-teams */ - "GET /projects/columns/:column_id/cards": { - parameters: ProjectsListCardsEndpoint; - request: ProjectsListCardsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/invitations/{invitation_id}/teams": Operation<"/orgs/{org}/invitations/{invitation_id}/teams", "get">; /** - * @see https://developer.github.com/v3/projects/cards/#get-a-project-card + * @see https://docs.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user */ - "GET /projects/columns/cards/:card_id": { - parameters: ProjectsGetCardEndpoint; - request: ProjectsGetCardRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/issues": Operation<"/orgs/{org}/issues", "get">; /** - * @see https://developer.github.com/v3/rate_limit/#get-your-current-rate-limit-status + * @see https://docs.github.com/rest/reference/orgs#list-organization-members */ - "GET /rate_limit": { - parameters: RateLimitGetEndpoint; - request: RateLimitGetRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/members": Operation<"/orgs/{org}/members", "get">; /** - * @see https://developer.github.com/v3/repos/#get-a-repository + * @see https://docs.github.com/rest/reference/orgs#check-organization-membership-for-a-user */ - "GET /repos/:owner/:repo": { - parameters: ReposGetEndpoint; - request: ReposGetRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "get">; /** - * @see https://developer.github.com/v3/repos/contents/#get-archive-link + * @see https://docs.github.com/rest/reference/orgs#get-organization-membership-for-a-user */ - "GET /repos/:owner/:repo/:archive_format/:ref": { - parameters: ReposGetArchiveLinkEndpoint; - request: ReposGetArchiveLinkRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "get">; /** - * @see https://developer.github.com/v3/actions/artifacts/#list-artifacts-for-a-repository + * @see https://docs.github.com/rest/reference/migrations#list-organization-migrations */ - "GET /repos/:owner/:repo/actions/artifacts": { - parameters: ActionsListArtifactsForRepoEndpoint; - request: ActionsListArtifactsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/actions/artifacts/#get-an-artifact + * @see https://docs.github.com/rest/reference/migrations#get-an-organization-migration-status */ - "GET /repos/:owner/:repo/actions/artifacts/:artifact_id": { - parameters: ActionsGetArtifactEndpoint; - request: ActionsGetArtifactRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/migrations/{migration_id}": Operation<"/orgs/{org}/migrations/{migration_id}", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/actions/artifacts/#download-an-artifact + * @see https://docs.github.com/rest/reference/migrations#download-an-organization-migration-archive */ - "GET /repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format": { - parameters: ActionsDownloadArtifactEndpoint; - request: ActionsDownloadArtifactRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/migrations/{migration_id}/archive": Operation<"/orgs/{org}/migrations/{migration_id}/archive", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/actions/workflow-jobs/#get-a-workflow-job + * @see https://docs.github.com/rest/reference/migrations#list-repositories-in-an-organization-migration */ - "GET /repos/:owner/:repo/actions/jobs/:job_id": { - parameters: ActionsGetWorkflowJobEndpoint; - request: ActionsGetWorkflowJobRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/migrations/{migration_id}/repositories": Operation<"/orgs/{org}/migrations/{migration_id}/repositories", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/actions/workflow-jobs/#download-workflow-job-logs + * @see https://docs.github.com/rest/reference/orgs#list-outside-collaborators-for-an-organization */ - "GET /repos/:owner/:repo/actions/jobs/:job_id/logs": { - parameters: ActionsDownloadWorkflowJobLogsEndpoint; - request: ActionsDownloadWorkflowJobLogsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/outside_collaborators": Operation<"/orgs/{org}/outside_collaborators", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository + * @see https://docs.github.com/v3/projects/#list-organization-projects */ - "GET /repos/:owner/:repo/actions/runners": { - parameters: ActionsListSelfHostedRunnersForRepoEndpoint; - request: ActionsListSelfHostedRunnersForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "get", "inertia">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-a-repository + * @see https://docs.github.com/rest/reference/orgs#list-public-organization-members */ - "GET /repos/:owner/:repo/actions/runners/:runner_id": { - parameters: ActionsGetSelfHostedRunnerForRepoEndpoint; - request: ActionsGetSelfHostedRunnerForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/public_members": Operation<"/orgs/{org}/public_members", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-a-repository + * @see https://docs.github.com/rest/reference/orgs#check-public-organization-membership-for-a-user */ - "GET /repos/:owner/:repo/actions/runners/downloads": { - parameters: ActionsListRunnerApplicationsForRepoEndpoint; - request: ActionsListRunnerApplicationsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "get">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#list-repository-workflow-runs + * @see https://docs.github.com/v3/repos/#list-organization-repositories */ - "GET /repos/:owner/:repo/actions/runs": { - parameters: ActionsListRepoWorkflowRunsEndpoint; - request: ActionsListRepoWorkflowRunsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/repos": Operation<"/orgs/{org}/repos", "get">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#get-a-workflow-run + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-organization */ - "GET /repos/:owner/:repo/actions/runs/:run_id": { - parameters: ActionsGetWorkflowRunEndpoint; - request: ActionsGetWorkflowRunRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/settings/billing/actions": Operation<"/orgs/{org}/settings/billing/actions", "get">; /** - * @see https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-organization */ - "GET /repos/:owner/:repo/actions/runs/:run_id/artifacts": { - parameters: ActionsListWorkflowRunArtifactsEndpoint; - request: ActionsListWorkflowRunArtifactsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/settings/billing/packages": Operation<"/orgs/{org}/settings/billing/packages", "get">; /** - * @see https://developer.github.com/v3/actions/workflow-jobs/#list-jobs-for-a-workflow-run + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-organization */ - "GET /repos/:owner/:repo/actions/runs/:run_id/jobs": { - parameters: ActionsListJobsForWorkflowRunEndpoint; - request: ActionsListJobsForWorkflowRunRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/settings/billing/shared-storage": Operation<"/orgs/{org}/settings/billing/shared-storage", "get">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#download-workflow-run-logs + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-an-organization */ - "GET /repos/:owner/:repo/actions/runs/:run_id/logs": { - parameters: ActionsDownloadWorkflowRunLogsEndpoint; - request: ActionsDownloadWorkflowRunLogsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/team-sync/groups": Operation<"/orgs/{org}/team-sync/groups", "get">; /** - * @see https://developer.github.com/v3/actions/secrets/#list-secrets-for-a-repository + * @see https://docs.github.com/v3/teams/#list-teams */ - "GET /repos/:owner/:repo/actions/secrets": { - parameters: ActionsListSecretsForRepoEndpoint; - request: ActionsListSecretsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams": Operation<"/orgs/{org}/teams", "get">; /** - * @see https://developer.github.com/v3/actions/secrets/#get-a-secret + * @see https://docs.github.com/v3/teams/#get-a-team-by-name */ - "GET /repos/:owner/:repo/actions/secrets/:name": { - parameters: ActionsGetSecretEndpoint; - request: ActionsGetSecretRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "get">; /** - * @see https://developer.github.com/v3/actions/secrets/#get-your-public-key + * @see https://docs.github.com/rest/reference/teams#list-discussions */ - "GET /repos/:owner/:repo/actions/secrets/public-key": { - parameters: ActionsGetPublicKeyEndpoint; - request: ActionsGetPublicKeyRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions": Operation<"/orgs/{org}/teams/{team_slug}/discussions", "get">; /** - * @see https://developer.github.com/v3/actions/workflows/#list-repository-workflows + * @see https://docs.github.com/rest/reference/teams#get-a-discussion */ - "GET /repos/:owner/:repo/actions/workflows": { - parameters: ActionsListRepoWorkflowsEndpoint; - request: ActionsListRepoWorkflowsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "get">; /** - * @see https://developer.github.com/v3/actions/workflows/#get-a-workflow + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments */ - "GET /repos/:owner/:repo/actions/workflows/:workflow_id": { - parameters: ActionsGetWorkflowEndpoint; - request: ActionsGetWorkflowRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "get">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-comment */ - "GET /repos/:owner/:repo/actions/workflows/:workflow_id/runs": { - parameters: ActionsListWorkflowRunsEndpoint; - request: ActionsListWorkflowRunsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "get">; /** - * @see https://developer.github.com/v3/issues/assignees/#list-assignees + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment */ - "GET /repos/:owner/:repo/assignees": { - parameters: IssuesListAssigneesEndpoint; - request: IssuesListAssigneesRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/issues/assignees/#check-assignee + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion */ - "GET /repos/:owner/:repo/assignees/:assignee": { - parameters: IssuesCheckAssigneeEndpoint; - request: IssuesCheckAssigneeRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/branches/#list-branches + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations */ - "GET /repos/:owner/:repo/branches": { - parameters: ReposListBranchesEndpoint; - request: ReposListBranchesRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/invitations": Operation<"/orgs/{org}/teams/{team_slug}/invitations", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#get-branch + * @see https://docs.github.com/rest/reference/teams#list-team-members */ - "GET /repos/:owner/:repo/branches/:branch": { - parameters: ReposGetBranchEndpoint; - request: ReposGetBranchRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/members": Operation<"/orgs/{org}/teams/{team_slug}/members", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#get-branch-protection + * @see https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user */ - "GET /repos/:owner/:repo/branches/:branch/protection": { - parameters: ReposGetBranchProtectionEndpoint; - request: ReposGetBranchProtectionRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#get-admin-enforcement-of-protected-branch + * @see https://docs.github.com/v3/teams/#list-team-projects */ - "GET /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { - parameters: ReposGetProtectedBranchAdminEnforcementEndpoint; - request: ReposGetProtectedBranchAdminEnforcementRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/projects": Operation<"/orgs/{org}/teams/{team_slug}/projects", "get", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-project */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { - parameters: ReposGetProtectedBranchPullRequestReviewEnforcementEndpoint; - request: ReposGetProtectedBranchPullRequestReviewEnforcementRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "get", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#get-required-signatures-of-protected-branch + * @see https://docs.github.com/v3/teams/#list-team-repositories */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_signatures": { - parameters: ReposGetProtectedBranchRequiredSignaturesEndpoint; - request: ReposGetProtectedBranchRequiredSignaturesRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/repos": Operation<"/orgs/{org}/teams/{team_slug}/repos", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#get-required-status-checks-of-protected-branch + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { - parameters: ReposGetProtectedBranchRequiredStatusChecksEndpoint; - request: ReposGetProtectedBranchRequiredStatusChecksRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposListProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposListProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": Operation<"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#get-restrictions-of-protected-branch + * @see https://docs.github.com/v3/teams/#list-child-teams */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions": { - parameters: ReposGetProtectedBranchRestrictionsEndpoint; - request: ReposGetProtectedBranchRestrictionsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/teams": Operation<"/orgs/{org}/teams/{team_slug}/teams", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#list-apps-with-access-to-protected-branch + * @see https://docs.github.com/rest/reference/projects#get-a-project-card */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposGetAppsWithAccessToProtectedBranchEndpoint; - request: ReposGetAppsWithAccessToProtectedBranchRequestOptions; - response: OctokitResponse; - }; + "GET /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "get", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#list-teams-with-access-to-protected-branch + * @see https://docs.github.com/rest/reference/projects#get-a-project-column */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposGetTeamsWithAccessToProtectedBranchEndpoint; - request: ReposGetTeamsWithAccessToProtectedBranchRequestOptions; - response: OctokitResponse; - }; + "GET /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "get", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#list-users-with-access-to-protected-branch + * @see https://docs.github.com/rest/reference/projects#list-project-cards */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposGetUsersWithAccessToProtectedBranchEndpoint; - request: ReposGetUsersWithAccessToProtectedBranchRequestOptions; - response: OctokitResponse; - }; + "GET /projects/columns/{column_id}/cards": Operation<"/projects/columns/{column_id}/cards", "get", "inertia">; /** - * @see https://developer.github.com/v3/checks/runs/#get-a-check-run + * @see https://docs.github.com/v3/projects/#get-a-project */ - "GET /repos/:owner/:repo/check-runs/:check_run_id": { - parameters: ChecksGetEndpoint; - request: ChecksGetRequestOptions; - response: OctokitResponse; - }; + "GET /projects/{project_id}": Operation<"/projects/{project_id}", "get", "inertia">; /** - * @see https://developer.github.com/v3/checks/runs/#list-check-run-annotations + * @see https://docs.github.com/rest/reference/projects#list-project-collaborators */ - "GET /repos/:owner/:repo/check-runs/:check_run_id/annotations": { - parameters: ChecksListAnnotationsEndpoint; - request: ChecksListAnnotationsRequestOptions; - response: OctokitResponse; - }; + "GET /projects/{project_id}/collaborators": Operation<"/projects/{project_id}/collaborators", "get", "inertia">; /** - * @see https://developer.github.com/v3/checks/suites/#get-a-check-suite + * @see https://docs.github.com/rest/reference/projects#get-project-permission-for-a-user */ - "GET /repos/:owner/:repo/check-suites/:check_suite_id": { - parameters: ChecksGetSuiteEndpoint; - request: ChecksGetSuiteRequestOptions; - response: OctokitResponse; - }; + "GET /projects/{project_id}/collaborators/{username}/permission": Operation<"/projects/{project_id}/collaborators/{username}/permission", "get", "inertia">; /** - * @see https://developer.github.com/v3/checks/runs/#list-check-runs-in-a-check-suite + * @see https://docs.github.com/rest/reference/projects#list-project-columns */ - "GET /repos/:owner/:repo/check-suites/:check_suite_id/check-runs": { - parameters: ChecksListForSuiteEndpoint; - request: ChecksListForSuiteRequestOptions; - response: OctokitResponse; - }; + "GET /projects/{project_id}/columns": Operation<"/projects/{project_id}/columns", "get", "inertia">; /** - * @see https://developer.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository + * @see https://docs.github.com/v3/rate_limit/#get-rate-limit-status-for-the-authenticated-user */ - "GET /repos/:owner/:repo/code-scanning/alerts": { - parameters: CodeScanningListAlertsForRepoEndpoint; - request: CodeScanningListAlertsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /rate_limit": Operation<"/rate_limit", "get">; /** - * @see https://developer.github.com/v3/code-scanning/#get-a-code-scanning-alert + * @see https://docs.github.com/v3/repos/#get-a-repository */ - "GET /repos/:owner/:repo/code-scanning/alerts/:alert_id": { - parameters: CodeScanningGetAlertEndpoint; - request: CodeScanningGetAlertRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "get">; /** - * @see https://developer.github.com/v3/repos/collaborators/#list-collaborators + * @see https://docs.github.com/rest/reference/actions#list-artifacts-for-a-repository */ - "GET /repos/:owner/:repo/collaborators": { - parameters: ReposListCollaboratorsEndpoint; - request: ReposListCollaboratorsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/artifacts": Operation<"/repos/{owner}/{repo}/actions/artifacts", "get">; /** - * @see https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator + * @see https://docs.github.com/rest/reference/actions#get-an-artifact */ - "GET /repos/:owner/:repo/collaborators/:username": { - parameters: ReposCheckCollaboratorEndpoint; - request: ReposCheckCollaboratorRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "get">; /** - * @see https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level + * @see https://docs.github.com/rest/reference/actions#download-an-artifact */ - "GET /repos/:owner/:repo/collaborators/:username/permission": { - parameters: ReposGetCollaboratorPermissionLevelEndpoint; - request: ReposGetCollaboratorPermissionLevelRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}", "get">; /** - * @see https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository + * @see https://docs.github.com/rest/reference/actions#get-a-job-for-a-workflow-run */ - "GET /repos/:owner/:repo/comments": { - parameters: ReposListCommitCommentsEndpoint; - request: ReposListCommitCommentsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}", "get">; /** - * @see https://developer.github.com/v3/repos/comments/#get-a-single-commit-comment + * @see https://docs.github.com/rest/reference/actions#download-job-logs-for-a-workflow-run */ - "GET /repos/:owner/:repo/comments/:comment_id": { - parameters: ReposGetCommitCommentEndpoint; - request: ReposGetCommitCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}/logs", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment + * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-a-repository */ - "GET /repos/:owner/:repo/comments/:comment_id/reactions": { - parameters: ReactionsListForCommitCommentEndpoint; - request: ReactionsListForCommitCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/permissions": Operation<"/repos/{owner}/{repo}/actions/permissions", "get">; /** - * @see https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository + * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-a-repository */ - "GET /repos/:owner/:repo/commits": { - parameters: ReposListCommitsEndpoint; - request: ReposListCommitsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/permissions/selected-actions": Operation<"/repos/{owner}/{repo}/actions/permissions/selected-actions", "get">; /** - * @see https://developer.github.com/v3/repos/commits/#list-branches-for-head-commit + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-a-repository */ - "GET /repos/:owner/:repo/commits/:commit_sha/branches-where-head": { - parameters: ReposListBranchesForHeadCommitEndpoint; - request: ReposListBranchesForHeadCommitRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runners": Operation<"/repos/{owner}/{repo}/actions/runners", "get">; /** - * @see https://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-a-repository */ - "GET /repos/:owner/:repo/commits/:commit_sha/comments": { - parameters: ReposListCommentsForCommitEndpoint; - request: ReposListCommentsForCommitRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runners/downloads": Operation<"/repos/{owner}/{repo}/actions/runners/downloads", "get">; /** - * @see https://developer.github.com/v3/repos/commits/#list-pull-requests-associated-with-commit + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-a-repository */ - "GET /repos/:owner/:repo/commits/:commit_sha/pulls": { - parameters: ReposListPullRequestsAssociatedWithCommitEndpoint; - request: ReposListPullRequestsAssociatedWithCommitRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runners/{runner_id}": Operation<"/repos/{owner}/{repo}/actions/runners/{runner_id}", "get">; /** - * @see https://developer.github.com/v3/repos/commits/#get-a-single-commit + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs-for-a-repository */ - "GET /repos/:owner/:repo/commits/:ref": { - parameters: ReposGetCommitEndpoint; - request: ReposGetCommitRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs": Operation<"/repos/{owner}/{repo}/actions/runs", "get">; /** - * @see https://developer.github.com/v3/checks/runs/#list-check-runs-for-a-git-reference + * @see https://docs.github.com/rest/reference/actions#get-a-workflow-run */ - "GET /repos/:owner/:repo/commits/:ref/check-runs": { - parameters: ChecksListForRefEndpoint; - request: ChecksListForRefRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs/{run_id}": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}", "get">; /** - * @see https://developer.github.com/v3/checks/suites/#list-check-suites-for-a-git-reference + * @see https://docs.github.com/rest/reference/actions#list-workflow-run-artifacts */ - "GET /repos/:owner/:repo/commits/:ref/check-suites": { - parameters: ChecksListSuitesForRefEndpoint; - request: ChecksListSuitesForRefRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", "get">; /** - * @see https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref + * @see https://docs.github.com/rest/reference/actions#list-jobs-for-a-workflow-run */ - "GET /repos/:owner/:repo/commits/:ref/status": { - parameters: ReposGetCombinedStatusForRefEndpoint; - request: ReposGetCombinedStatusForRefRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/jobs", "get">; /** - * @see https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref + * @see https://docs.github.com/rest/reference/actions#download-workflow-run-logs */ - "GET /repos/:owner/:repo/commits/:ref/statuses": { - parameters: ReposListStatusesForRefEndpoint; - request: ReposListStatusesForRefRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/logs", "get">; /** - * @see https://developer.github.com/v3/codes_of_conduct/#get-the-contents-of-a-repositorys-code-of-conduct + * @see https://docs.github.com/rest/reference/actions#get-workflow-run-usage */ - "GET /repos/:owner/:repo/community/code_of_conduct": { - parameters: CodesOfConductGetForRepoEndpoint; - request: CodesOfConductGetForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/timing", "get">; /** - * @see https://developer.github.com/v3/repos/community/#retrieve-community-profile-metrics + * @see https://docs.github.com/rest/reference/actions#list-repository-secrets */ - "GET /repos/:owner/:repo/community/profile": { - parameters: ReposRetrieveCommunityProfileMetricsEndpoint; - request: ReposRetrieveCommunityProfileMetricsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/secrets": Operation<"/repos/{owner}/{repo}/actions/secrets", "get">; /** - * @see https://developer.github.com/v3/repos/commits/#compare-two-commits + * @see https://docs.github.com/rest/reference/actions#get-a-repository-public-key */ - "GET /repos/:owner/:repo/compare/:base...:head": { - parameters: ReposCompareCommitsEndpoint; - request: ReposCompareCommitsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/secrets/public-key": Operation<"/repos/{owner}/{repo}/actions/secrets/public-key", "get">; /** - * @see https://developer.github.com/v3/repos/contents/#get-contents + * @see https://docs.github.com/rest/reference/actions#get-a-repository-secret */ - "GET /repos/:owner/:repo/contents/:path": { - parameters: ReposGetContentsEndpoint; - request: ReposGetContentsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "get">; /** - * @see https://developer.github.com/v3/repos/#list-contributors + * @see https://docs.github.com/rest/reference/actions#list-repository-workflows */ - "GET /repos/:owner/:repo/contributors": { - parameters: ReposListContributorsEndpoint; - request: ReposListContributorsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/workflows": Operation<"/repos/{owner}/{repo}/actions/workflows", "get">; /** - * @see https://developer.github.com/v3/repos/deployments/#list-deployments + * @see https://docs.github.com/rest/reference/actions#get-a-workflow */ - "GET /repos/:owner/:repo/deployments": { - parameters: ReposListDeploymentsEndpoint; - request: ReposListDeploymentsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}", "get">; /** - * @see https://developer.github.com/v3/repos/deployments/#get-a-single-deployment + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs */ - "GET /repos/:owner/:repo/deployments/:deployment_id": { - parameters: ReposGetDeploymentEndpoint; - request: ReposGetDeploymentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", "get">; /** - * @see https://developer.github.com/v3/repos/deployments/#list-deployment-statuses + * @see https://docs.github.com/rest/reference/actions#get-workflow-usage */ - "GET /repos/:owner/:repo/deployments/:deployment_id/statuses": { - parameters: ReposListDeploymentStatusesEndpoint; - request: ReposListDeploymentStatusesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing", "get">; /** - * @see https://developer.github.com/v3/repos/deployments/#get-a-single-deployment-status + * @see https://docs.github.com/rest/reference/issues#list-assignees */ - "GET /repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id": { - parameters: ReposGetDeploymentStatusEndpoint; - request: ReposGetDeploymentStatusRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/assignees": Operation<"/repos/{owner}/{repo}/assignees", "get">; /** - * @see https://developer.github.com/v3/repos/downloads/#list-downloads-for-a-repository + * @see https://docs.github.com/rest/reference/issues#check-if-a-user-can-be-assigned */ - "GET /repos/:owner/:repo/downloads": { - parameters: ReposListDownloadsEndpoint; - request: ReposListDownloadsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/assignees/{assignee}": Operation<"/repos/{owner}/{repo}/assignees/{assignee}", "get">; /** - * @see https://developer.github.com/v3/repos/downloads/#get-a-single-download + * @see https://docs.github.com/rest/reference/repos#list-branches */ - "GET /repos/:owner/:repo/downloads/:download_id": { - parameters: ReposGetDownloadEndpoint; - request: ReposGetDownloadRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches": Operation<"/repos/{owner}/{repo}/branches", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-repository-events + * @see https://docs.github.com/rest/reference/repos#get-a-branch */ - "GET /repos/:owner/:repo/events": { - parameters: ActivityListRepoEventsEndpoint; - request: ActivityListRepoEventsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}": Operation<"/repos/{owner}/{repo}/branches/{branch}", "get">; /** - * @see https://developer.github.com/v3/repos/forks/#list-forks + * @see https://docs.github.com/rest/reference/repos#get-branch-protection */ - "GET /repos/:owner/:repo/forks": { - parameters: ReposListForksEndpoint; - request: ReposListForksRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "get">; /** - * @see https://developer.github.com/v3/git/blobs/#get-a-blob + * @see https://docs.github.com/rest/reference/repos#get-admin-branch-protection */ - "GET /repos/:owner/:repo/git/blobs/:file_sha": { - parameters: GitGetBlobEndpoint; - request: GitGetBlobRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "get">; /** - * @see https://developer.github.com/v3/git/commits/#get-a-commit + * @see https://docs.github.com/rest/reference/repos#get-pull-request-review-protection */ - "GET /repos/:owner/:repo/git/commits/:commit_sha": { - parameters: GitGetCommitEndpoint; - request: GitGetCommitRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "get">; /** - * @see https://developer.github.com/v3/git/refs/#list-matching-references + * @see https://docs.github.com/rest/reference/repos#get-commit-signature-protection */ - "GET /repos/:owner/:repo/git/matching-refs/:ref": { - parameters: GitListMatchingRefsEndpoint; - request: GitListMatchingRefsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "get", "zzzax">; /** - * @see https://developer.github.com/v3/git/refs/#get-a-single-reference + * @see https://docs.github.com/rest/reference/repos#get-status-checks-protection */ - "GET /repos/:owner/:repo/git/ref/:ref": { - parameters: GitGetRefEndpoint; - request: GitGetRefRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "get">; /** - * @see https://developer.github.com/v3/git/tags/#get-a-tag + * @see https://docs.github.com/rest/reference/repos#get-all-status-check-contexts */ - "GET /repos/:owner/:repo/git/tags/:tag_sha": { - parameters: GitGetTagEndpoint; - request: GitGetTagRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "get">; /** - * @see https://developer.github.com/v3/git/trees/#get-a-tree + * @see https://docs.github.com/rest/reference/repos#get-access-restrictions */ - "GET /repos/:owner/:repo/git/trees/:tree_sha": { - parameters: GitGetTreeEndpoint; - request: GitGetTreeRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "get">; /** - * @see https://developer.github.com/v3/repos/hooks/#list-hooks + * @see https://docs.github.com/rest/reference/repos#list-apps-with-access-to-the-protected-branch */ - "GET /repos/:owner/:repo/hooks": { - parameters: ReposListHooksEndpoint; - request: ReposListHooksRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "get">; /** - * @see https://developer.github.com/v3/repos/hooks/#get-single-hook + * @see https://docs.github.com/rest/reference/repos#list-teams-with-access-to-the-protected-branch */ - "GET /repos/:owner/:repo/hooks/:hook_id": { - parameters: ReposGetHookEndpoint; - request: ReposGetHookRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "get">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#get-import-progress + * @see https://docs.github.com/rest/reference/repos#list-users-with-access-to-the-protected-branch */ - "GET /repos/:owner/:repo/import": { - parameters: MigrationsGetImportProgressEndpoint; - request: MigrationsGetImportProgressRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "get">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#get-commit-authors + * @see https://docs.github.com/rest/reference/checks#get-a-check-run */ - "GET /repos/:owner/:repo/import/authors": { - parameters: MigrationsGetCommitAuthorsEndpoint; - request: MigrationsGetCommitAuthorsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}", "get">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#get-large-files + * @see https://docs.github.com/rest/reference/checks#list-check-run-annotations */ - "GET /repos/:owner/:repo/import/large_files": { - parameters: MigrationsGetLargeFilesEndpoint; - request: MigrationsGetLargeFilesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", "get">; /** - * @see https://developer.github.com/v3/apps/#get-a-repository-installation + * @see https://docs.github.com/rest/reference/checks#get-a-check-suite */ - "GET /repos/:owner/:repo/installation": { - parameters: AppsGetRepoInstallationEndpoint; - request: AppsGetRepoInstallationRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}", "get">; /** - * @see https://developer.github.com/v3/interactions/repos/#get-interaction-restrictions-for-a-repository + * @see https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite */ - "GET /repos/:owner/:repo/interaction-limits": { - parameters: InteractionsGetRestrictionsForRepoEndpoint; - request: InteractionsGetRestrictionsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", "get">; /** - * @see https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository + * @see https://docs.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository */ - "GET /repos/:owner/:repo/invitations": { - parameters: ReposListInvitationsEndpoint; - request: ReposListInvitationsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/code-scanning/alerts": Operation<"/repos/{owner}/{repo}/code-scanning/alerts", "get">; /** - * @see https://developer.github.com/v3/issues/#list-repository-issues + * @see https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert + * @deprecated "alert_id" is now "alert_number" */ - "GET /repos/:owner/:repo/issues": { - parameters: IssuesListForRepoEndpoint; - request: IssuesListForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_id}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "get">; /** - * @see https://developer.github.com/v3/issues/#get-an-issue + * @see https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert */ - "GET /repos/:owner/:repo/issues/:issue_number": { - parameters: IssuesGetEndpoint; - request: IssuesGetRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "get">; /** - * @see https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue + * @see https://docs.github.com/v3/code-scanning/#list-recent-analyses */ - "GET /repos/:owner/:repo/issues/:issue_number/comments": { - parameters: IssuesListCommentsEndpoint; - request: IssuesListCommentsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/code-scanning/analyses": Operation<"/repos/{owner}/{repo}/code-scanning/analyses", "get">; /** - * @see https://developer.github.com/v3/issues/events/#list-events-for-an-issue + * @see https://docs.github.com/rest/reference/repos#list-repository-collaborators */ - "GET /repos/:owner/:repo/issues/:issue_number/events": { - parameters: IssuesListEventsEndpoint; - request: IssuesListEventsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/collaborators": Operation<"/repos/{owner}/{repo}/collaborators", "get">; /** - * @see https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue + * @see https://docs.github.com/rest/reference/repos#check-if-a-user-is-a-repository-collaborator */ - "GET /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesListLabelsOnIssueEndpoint; - request: IssuesListLabelsOnIssueRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-an-issue + * @see https://docs.github.com/rest/reference/repos#get-repository-permissions-for-a-user */ - "GET /repos/:owner/:repo/issues/:issue_number/reactions": { - parameters: ReactionsListForIssueEndpoint; - request: ReactionsListForIssueRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/collaborators/{username}/permission": Operation<"/repos/{owner}/{repo}/collaborators/{username}/permission", "get">; /** - * @see https://developer.github.com/v3/issues/timeline/#list-events-for-an-issue + * @see https://docs.github.com/rest/reference/repos#list-commit-comments-for-a-repository */ - "GET /repos/:owner/:repo/issues/:issue_number/timeline": { - parameters: IssuesListEventsForTimelineEndpoint; - request: IssuesListEventsForTimelineRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/comments": Operation<"/repos/{owner}/{repo}/comments", "get">; /** - * @see https://developer.github.com/v3/issues/comments/#list-comments-in-a-repository + * @see https://docs.github.com/rest/reference/repos#get-a-commit-comment */ - "GET /repos/:owner/:repo/issues/comments": { - parameters: IssuesListCommentsForRepoEndpoint; - request: IssuesListCommentsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "get">; /** - * @see https://developer.github.com/v3/issues/comments/#get-a-single-comment + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-commit-comment */ - "GET /repos/:owner/:repo/issues/comments/:comment_id": { - parameters: IssuesGetCommentEndpoint; - request: IssuesGetCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment + * @see https://docs.github.com/rest/reference/repos#list-commits */ - "GET /repos/:owner/:repo/issues/comments/:comment_id/reactions": { - parameters: ReactionsListForIssueCommentEndpoint; - request: ReactionsListForIssueCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits": Operation<"/repos/{owner}/{repo}/commits", "get">; /** - * @see https://developer.github.com/v3/issues/events/#list-events-for-a-repository + * @see https://docs.github.com/rest/reference/repos#list-branches-for-head-commit */ - "GET /repos/:owner/:repo/issues/events": { - parameters: IssuesListEventsForRepoEndpoint; - request: IssuesListEventsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", "get", "groot">; /** - * @see https://developer.github.com/v3/issues/events/#get-a-single-event + * @see https://docs.github.com/rest/reference/repos#list-commit-comments */ - "GET /repos/:owner/:repo/issues/events/:event_id": { - parameters: IssuesGetEventEndpoint; - request: IssuesGetEventRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "get">; /** - * @see https://developer.github.com/v3/repos/keys/#list-deploy-keys + * @see https://docs.github.com/rest/reference/repos#list-pull-requests-associated-with-a-commit */ - "GET /repos/:owner/:repo/keys": { - parameters: ReposListDeployKeysEndpoint; - request: ReposListDeployKeysRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/pulls", "get", "groot">; /** - * @see https://developer.github.com/v3/repos/keys/#get-a-deploy-key + * @see https://docs.github.com/rest/reference/repos#get-a-commit */ - "GET /repos/:owner/:repo/keys/:key_id": { - parameters: ReposGetDeployKeyEndpoint; - request: ReposGetDeployKeyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{ref}": Operation<"/repos/{owner}/{repo}/commits/{ref}", "get">; /** - * @see https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository + * @see https://docs.github.com/rest/reference/checks#list-check-runs-for-a-git-reference */ - "GET /repos/:owner/:repo/labels": { - parameters: IssuesListLabelsForRepoEndpoint; - request: IssuesListLabelsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{ref}/check-runs": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-runs", "get">; /** - * @see https://developer.github.com/v3/issues/labels/#get-a-single-label + * @see https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference */ - "GET /repos/:owner/:repo/labels/:name": { - parameters: IssuesGetLabelEndpoint; - request: IssuesGetLabelRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{ref}/check-suites": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-suites", "get">; /** - * @see https://developer.github.com/v3/repos/#list-languages + * @see https://docs.github.com/rest/reference/repos#get-the-combined-status-for-a-specific-reference */ - "GET /repos/:owner/:repo/languages": { - parameters: ReposListLanguagesEndpoint; - request: ReposListLanguagesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{ref}/status": Operation<"/repos/{owner}/{repo}/commits/{ref}/status", "get">; /** - * @see https://developer.github.com/v3/licenses/#get-the-contents-of-a-repositorys-license + * @see https://docs.github.com/rest/reference/repos#list-commit-statuses-for-a-reference */ - "GET /repos/:owner/:repo/license": { - parameters: LicensesGetForRepoEndpoint; - request: LicensesGetForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{ref}/statuses": Operation<"/repos/{owner}/{repo}/commits/{ref}/statuses", "get">; /** - * @see https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository + * @see https://docs.github.com/v3/codes_of_conduct/#get-the-code-of-conduct-for-a-repository */ - "GET /repos/:owner/:repo/milestones": { - parameters: IssuesListMilestonesForRepoEndpoint; - request: IssuesListMilestonesForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/community/code_of_conduct": Operation<"/repos/{owner}/{repo}/community/code_of_conduct", "get", "scarlet-witch">; /** - * @see https://developer.github.com/v3/issues/milestones/#get-a-single-milestone + * @see https://docs.github.com/rest/reference/repos#get-community-profile-metrics */ - "GET /repos/:owner/:repo/milestones/:milestone_number": { - parameters: IssuesGetMilestoneEndpoint; - request: IssuesGetMilestoneRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/community/profile": Operation<"/repos/{owner}/{repo}/community/profile", "get">; /** - * @see https://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone + * @see https://docs.github.com/rest/reference/repos#compare-two-commits */ - "GET /repos/:owner/:repo/milestones/:milestone_number/labels": { - parameters: IssuesListLabelsForMilestoneEndpoint; - request: IssuesListLabelsForMilestoneRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/compare/{base}...{head}": Operation<"/repos/{owner}/{repo}/compare/{base}...{head}", "get">; /** - * @see https://developer.github.com/v3/activity/notifications/#list-repository-notifications-for-the-authenticated-user + * @see https://docs.github.com/rest/reference/repos#get-repository-content */ - "GET /repos/:owner/:repo/notifications": { - parameters: ActivityListRepoNotificationsForAuthenticatedUserEndpoint; - request: ActivityListRepoNotificationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "get">; /** - * @see https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site + * @see https://docs.github.com/v3/repos/#list-repository-contributors */ - "GET /repos/:owner/:repo/pages": { - parameters: ReposGetPagesEndpoint; - request: ReposGetPagesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/contributors": Operation<"/repos/{owner}/{repo}/contributors", "get">; /** - * @see https://developer.github.com/v3/repos/pages/#list-pages-builds + * @see https://docs.github.com/rest/reference/repos#list-deployments */ - "GET /repos/:owner/:repo/pages/builds": { - parameters: ReposListPagesBuildsEndpoint; - request: ReposListPagesBuildsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "get">; /** - * @see https://developer.github.com/v3/repos/pages/#get-a-specific-pages-build + * @see https://docs.github.com/rest/reference/repos#get-a-deployment */ - "GET /repos/:owner/:repo/pages/builds/:build_id": { - parameters: ReposGetPagesBuildEndpoint; - request: ReposGetPagesBuildRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "get">; /** - * @see https://developer.github.com/v3/repos/pages/#get-latest-pages-build + * @see https://docs.github.com/rest/reference/repos#list-deployment-statuses */ - "GET /repos/:owner/:repo/pages/builds/latest": { - parameters: ReposGetLatestPagesBuildEndpoint; - request: ReposGetLatestPagesBuildRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "get">; /** - * @see https://developer.github.com/v3/projects/#list-repository-projects + * @see https://docs.github.com/rest/reference/repos#get-a-deployment-status */ - "GET /repos/:owner/:repo/projects": { - parameters: ProjectsListForRepoEndpoint; - request: ProjectsListForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", "get">; /** - * @see https://developer.github.com/v3/pulls/#list-pull-requests + * @see https://docs.github.com/rest/reference/activity#list-repository-events */ - "GET /repos/:owner/:repo/pulls": { - parameters: PullsListEndpoint; - request: PullsListRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/events": Operation<"/repos/{owner}/{repo}/events", "get">; /** - * @see https://developer.github.com/v3/pulls/#get-a-single-pull-request + * @see https://docs.github.com/rest/reference/repos#list-forks */ - "GET /repos/:owner/:repo/pulls/:pull_number": { - parameters: PullsGetEndpoint; - request: PullsGetRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/forks": Operation<"/repos/{owner}/{repo}/forks", "get">; /** - * @see https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request + * @see https://docs.github.com/rest/reference/git#get-a-blob */ - "GET /repos/:owner/:repo/pulls/:pull_number/comments": { - parameters: PullsListCommentsEndpoint; - request: PullsListCommentsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/blobs/{file_sha}": Operation<"/repos/{owner}/{repo}/git/blobs/{file_sha}", "get">; /** - * @see https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request + * @see https://docs.github.com/rest/reference/git#get-a-commit */ - "GET /repos/:owner/:repo/pulls/:pull_number/commits": { - parameters: PullsListCommitsEndpoint; - request: PullsListCommitsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/commits/{commit_sha}": Operation<"/repos/{owner}/{repo}/git/commits/{commit_sha}", "get">; /** - * @see https://developer.github.com/v3/pulls/#list-pull-requests-files + * @see https://docs.github.com/rest/reference/git#list-matching-references */ - "GET /repos/:owner/:repo/pulls/:pull_number/files": { - parameters: PullsListFilesEndpoint; - request: PullsListFilesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/matching-refs/{ref}": Operation<"/repos/{owner}/{repo}/git/matching-refs/{ref}", "get">; /** - * @see https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged + * @see https://docs.github.com/rest/reference/git#get-a-reference */ - "GET /repos/:owner/:repo/pulls/:pull_number/merge": { - parameters: PullsCheckIfMergedEndpoint; - request: PullsCheckIfMergedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/ref/{ref}": Operation<"/repos/{owner}/{repo}/git/ref/{ref}", "get">; /** - * @see https://developer.github.com/v3/pulls/review_requests/#list-review-requests + * @see https://docs.github.com/rest/reference/git#get-a-tag */ - "GET /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { - parameters: PullsListReviewRequestsEndpoint; - request: PullsListReviewRequestsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/tags/{tag_sha}": Operation<"/repos/{owner}/{repo}/git/tags/{tag_sha}", "get">; /** - * @see https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request + * @see https://docs.github.com/rest/reference/git#get-a-tree */ - "GET /repos/:owner/:repo/pulls/:pull_number/reviews": { - parameters: PullsListReviewsEndpoint; - request: PullsListReviewsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/trees/{tree_sha}": Operation<"/repos/{owner}/{repo}/git/trees/{tree_sha}", "get">; /** - * @see https://developer.github.com/v3/pulls/reviews/#get-a-single-review + * @see https://docs.github.com/rest/reference/repos#list-repository-webhooks */ - "GET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { - parameters: PullsGetReviewEndpoint; - request: PullsGetReviewRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "get">; /** - * @see https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review + * @see https://docs.github.com/rest/reference/repos#get-a-repository-webhook */ - "GET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments": { - parameters: PullsGetCommentsForReviewEndpoint; - request: PullsGetCommentsForReviewRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "get">; /** - * @see https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository + * @see https://docs.github.com/v3/repos#get-a-webhook-configuration-for-a-repository */ - "GET /repos/:owner/:repo/pulls/comments": { - parameters: PullsListCommentsForRepoEndpoint; - request: PullsListCommentsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "get">; /** - * @see https://developer.github.com/v3/pulls/comments/#get-a-single-comment + * @see https://docs.github.com/rest/reference/migrations#get-an-import-status */ - "GET /repos/:owner/:repo/pulls/comments/:comment_id": { - parameters: PullsGetCommentEndpoint; - request: PullsGetCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment + * @see https://docs.github.com/rest/reference/migrations#get-commit-authors */ - "GET /repos/:owner/:repo/pulls/comments/:comment_id/reactions": { - parameters: ReactionsListForPullRequestReviewCommentEndpoint; - request: ReactionsListForPullRequestReviewCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/import/authors": Operation<"/repos/{owner}/{repo}/import/authors", "get">; /** - * @see https://developer.github.com/v3/repos/contents/#get-the-readme + * @see https://docs.github.com/rest/reference/migrations#get-large-files */ - "GET /repos/:owner/:repo/readme": { - parameters: ReposGetReadmeEndpoint; - request: ReposGetReadmeRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/import/large_files": Operation<"/repos/{owner}/{repo}/import/large_files", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository + * @see https://docs.github.com/v3/apps/#get-a-repository-installation-for-the-authenticated-app */ - "GET /repos/:owner/:repo/releases": { - parameters: ReposListReleasesEndpoint; - request: ReposListReleasesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/installation": Operation<"/repos/{owner}/{repo}/installation", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#get-a-single-release + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-a-repository */ - "GET /repos/:owner/:repo/releases/:release_id": { - parameters: ReposGetReleaseEndpoint; - request: ReposGetReleaseRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#list-assets-for-a-release + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations */ - "GET /repos/:owner/:repo/releases/:release_id/assets": { - parameters: ReposListAssetsForReleaseEndpoint; - request: ReposListAssetsForReleaseRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/invitations": Operation<"/repos/{owner}/{repo}/invitations", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#get-a-single-release-asset + * @see https://docs.github.com/v3/issues/#list-repository-issues */ - "GET /repos/:owner/:repo/releases/assets/:asset_id": { - parameters: ReposGetReleaseAssetEndpoint; - request: ReposGetReleaseAssetRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues": Operation<"/repos/{owner}/{repo}/issues", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#get-the-latest-release + * @see https://docs.github.com/rest/reference/issues#list-issue-comments-for-a-repository */ - "GET /repos/:owner/:repo/releases/latest": { - parameters: ReposGetLatestReleaseEndpoint; - request: ReposGetLatestReleaseRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/comments": Operation<"/repos/{owner}/{repo}/issues/comments", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name + * @see https://docs.github.com/rest/reference/issues#get-an-issue-comment */ - "GET /repos/:owner/:repo/releases/tags/:tag": { - parameters: ReposGetReleaseByTagEndpoint; - request: ReposGetReleaseByTagRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "get">; /** - * @see https://developer.github.com/v3/activity/starring/#list-stargazers + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue-comment */ - "GET /repos/:owner/:repo/stargazers": { - parameters: ActivityListStargazersForRepoEndpoint; - request: ActivityListStargazersForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week + * @see https://docs.github.com/rest/reference/issues#list-issue-events-for-a-repository */ - "GET /repos/:owner/:repo/stats/code_frequency": { - parameters: ReposGetCodeFrequencyStatsEndpoint; - request: ReposGetCodeFrequencyStatsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/events": Operation<"/repos/{owner}/{repo}/issues/events", "get">; /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data + * @see https://docs.github.com/rest/reference/issues#get-an-issue-event */ - "GET /repos/:owner/:repo/stats/commit_activity": { - parameters: ReposGetCommitActivityStatsEndpoint; - request: ReposGetCommitActivityStatsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/events/{event_id}": Operation<"/repos/{owner}/{repo}/issues/events/{event_id}", "get">; /** - * @see https://developer.github.com/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts + * @see https://docs.github.com/v3/issues/#get-an-issue */ - "GET /repos/:owner/:repo/stats/contributors": { - parameters: ReposGetContributorsStatsEndpoint; - request: ReposGetContributorsStatsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "get">; /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repository-owner-and-everyone-else + * @see https://docs.github.com/rest/reference/issues#list-issue-comments */ - "GET /repos/:owner/:repo/stats/participation": { - parameters: ReposGetParticipationStatsEndpoint; - request: ReposGetParticipationStatsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}/comments": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/comments", "get">; /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day + * @see https://docs.github.com/rest/reference/issues#list-issue-events */ - "GET /repos/:owner/:repo/stats/punch_card": { - parameters: ReposGetPunchCardStatsEndpoint; - request: ReposGetPunchCardStatsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}/events": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/events", "get">; /** - * @see https://developer.github.com/v3/activity/watching/#list-watchers + * @see https://docs.github.com/rest/reference/issues#list-labels-for-an-issue */ - "GET /repos/:owner/:repo/subscribers": { - parameters: ActivityListWatchersForRepoEndpoint; - request: ActivityListWatchersForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "get">; /** - * @see https://developer.github.com/v3/activity/watching/#get-a-repository-subscription + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue */ - "GET /repos/:owner/:repo/subscription": { - parameters: ActivityGetRepoSubscriptionEndpoint; - request: ActivityGetRepoSubscriptionRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/#list-tags + * @see https://docs.github.com/rest/reference/issues#list-timeline-events-for-an-issue */ - "GET /repos/:owner/:repo/tags": { - parameters: ReposListTagsEndpoint; - request: ReposListTagsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/timeline", "get", "mockingbird">; /** - * @see https://developer.github.com/v3/repos/#list-teams + * @see https://docs.github.com/rest/reference/repos#list-deploy-keys */ - "GET /repos/:owner/:repo/teams": { - parameters: ReposListTeamsEndpoint; - request: ReposListTeamsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "get">; /** - * @see https://developer.github.com/v3/repos/#get-all-repository-topics + * @see https://docs.github.com/rest/reference/repos#get-a-deploy-key */ - "GET /repos/:owner/:repo/topics": { - parameters: ReposGetAllTopicsEndpoint; - request: ReposGetAllTopicsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "get">; /** - * @see https://developer.github.com/v3/repos/traffic/#clones + * @see https://docs.github.com/rest/reference/issues#list-labels-for-a-repository */ - "GET /repos/:owner/:repo/traffic/clones": { - parameters: ReposGetClonesEndpoint; - request: ReposGetClonesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "get">; /** - * @see https://developer.github.com/v3/repos/traffic/#list-paths + * @see https://docs.github.com/rest/reference/issues#get-a-label */ - "GET /repos/:owner/:repo/traffic/popular/paths": { - parameters: ReposGetTopPathsEndpoint; - request: ReposGetTopPathsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "get">; /** - * @see https://developer.github.com/v3/repos/traffic/#list-referrers + * @see https://docs.github.com/v3/repos/#list-repository-languages */ - "GET /repos/:owner/:repo/traffic/popular/referrers": { - parameters: ReposGetTopReferrersEndpoint; - request: ReposGetTopReferrersRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/languages": Operation<"/repos/{owner}/{repo}/languages", "get">; /** - * @see https://developer.github.com/v3/repos/traffic/#views + * @see https://docs.github.com/v3/licenses/#get-the-license-for-a-repository */ - "GET /repos/:owner/:repo/traffic/views": { - parameters: ReposGetViewsEndpoint; - request: ReposGetViewsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/license": Operation<"/repos/{owner}/{repo}/license", "get">; /** - * @see https://developer.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository + * @see https://docs.github.com/rest/reference/issues#list-milestones */ - "GET /repos/:owner/:repo/vulnerability-alerts": { - parameters: ReposCheckVulnerabilityAlertsEndpoint; - request: ReposCheckVulnerabilityAlertsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "get">; /** - * @see https://developer.github.com/v3/repos/#list-public-repositories + * @see https://docs.github.com/rest/reference/issues#get-a-milestone */ - "GET /repositories": { - parameters: ReposListPublicEndpoint; - request: ReposListPublicRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "get">; /** - * @see https://developer.github.com/v3/scim/#get-a-list-of-provisioned-identities + * @see https://docs.github.com/rest/reference/issues#list-labels-for-issues-in-a-milestone */ - "GET /scim/v2/organizations/:org/Users": { - parameters: ScimListProvisionedIdentitiesEndpoint; - request: ScimListProvisionedIdentitiesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}/labels", "get">; /** - * @see https://developer.github.com/v3/scim/#get-provisioning-details-for-a-single-user + * @see https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user */ - "GET /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimGetProvisioningDetailsForUserEndpoint; - request: ScimGetProvisioningDetailsForUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "get">; /** - * @see https://developer.github.com/v3/search/#search-code + * @see https://docs.github.com/rest/reference/repos#get-a-github-pages-site */ - "GET /search/code": { - parameters: SearchCodeEndpoint; - request: SearchCodeRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "get">; /** - * @see https://developer.github.com/v3/search/#search-commits + * @see https://docs.github.com/rest/reference/repos#list-github-pages-builds */ - "GET /search/commits": { - parameters: SearchCommitsEndpoint; - request: SearchCommitsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "get">; /** - * @see https://developer.github.com/v3/search/#search-issues-and-pull-requests + * @see https://docs.github.com/rest/reference/repos#get-latest-pages-build */ - "GET /search/issues": { - parameters: SearchIssuesAndPullRequestsEndpoint; - request: SearchIssuesAndPullRequestsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pages/builds/latest": Operation<"/repos/{owner}/{repo}/pages/builds/latest", "get">; /** - * @see https://developer.github.com/v3/search/#search-labels + * @see https://docs.github.com/rest/reference/repos#get-github-pages-build */ - "GET /search/labels": { - parameters: SearchLabelsEndpoint; - request: SearchLabelsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pages/builds/{build_id}": Operation<"/repos/{owner}/{repo}/pages/builds/{build_id}", "get">; /** - * @see https://developer.github.com/v3/search/#search-repositories + * @see https://docs.github.com/v3/projects/#list-repository-projects */ - "GET /search/repositories": { - parameters: SearchReposEndpoint; - request: SearchReposRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/projects": Operation<"/repos/{owner}/{repo}/projects", "get", "inertia">; /** - * @see https://developer.github.com/v3/search/#search-topics + * @see https://docs.github.com/v3/pulls/#list-pull-requests */ - "GET /search/topics": { - parameters: SearchTopicsEndpoint; - request: SearchTopicsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls": Operation<"/repos/{owner}/{repo}/pulls", "get">; /** - * @see https://developer.github.com/v3/search/#search-users + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-in-a-repository */ - "GET /search/users": { - parameters: SearchUsersEndpoint; - request: SearchUsersRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/comments": Operation<"/repos/{owner}/{repo}/pulls/comments", "get">; /** - * @see https://developer.github.com/v3/teams/#get-team-legacy + * @see https://docs.github.com/rest/reference/pulls#get-a-review-comment-for-a-pull-request */ - "GET /teams/:team_id": { - parameters: TeamsGetLegacyEndpoint; - request: TeamsGetLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "get">; /** - * @see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment */ - "GET /teams/:team_id/discussions": { - parameters: TeamsListDiscussionsLegacyEndpoint; - request: TeamsListDiscussionsLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy + * @see https://docs.github.com/v3/pulls/#get-a-pull-request */ - "GET /teams/:team_id/discussions/:discussion_number": { - parameters: TeamsGetDiscussionLegacyEndpoint; - request: TeamsGetDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-on-a-pull-request */ - "GET /teams/:team_id/discussions/:discussion_number/comments": { - parameters: TeamsListDiscussionCommentsLegacyEndpoint; - request: TeamsListDiscussionCommentsLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy + * @see https://docs.github.com/v3/pulls/#list-commits-on-a-pull-request */ - "GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsGetDiscussionCommentLegacyEndpoint; - request: TeamsGetDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/commits", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy + * @see https://docs.github.com/v3/pulls/#list-pull-requests-files */ - "GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsListForTeamDiscussionCommentLegacyEndpoint; - request: ReactionsListForTeamDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/files": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/files", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy + * @see https://docs.github.com/v3/pulls/#check-if-a-pull-request-has-been-merged */ - "GET /teams/:team_id/discussions/:discussion_number/reactions": { - parameters: ReactionsListForTeamDiscussionLegacyEndpoint; - request: ReactionsListForTeamDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "get">; /** - * @see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy + * @see https://docs.github.com/rest/reference/pulls#list-requested-reviewers-for-a-pull-request */ - "GET /teams/:team_id/invitations": { - parameters: TeamsListPendingInvitationsLegacyEndpoint; - request: TeamsListPendingInvitationsLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "get">; /** - * @see https://developer.github.com/v3/teams/members/#list-team-members-legacy + * @see https://docs.github.com/rest/reference/pulls#list-reviews-for-a-pull-request */ - "GET /teams/:team_id/members": { - parameters: TeamsListMembersLegacyEndpoint; - request: TeamsListMembersLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "get">; /** - * @see https://developer.github.com/v3/teams/members/#get-team-member-legacy + * @see https://docs.github.com/rest/reference/pulls#get-a-review-for-a-pull-request */ - "GET /teams/:team_id/members/:username": { - parameters: TeamsGetMemberLegacyEndpoint; - request: TeamsGetMemberLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "get">; /** - * @see https://developer.github.com/v3/teams/members/#get-team-membership-legacy + * @see https://docs.github.com/rest/reference/pulls#list-comments-for-a-pull-request-review */ - "GET /teams/:team_id/memberships/:username": { - parameters: TeamsGetMembershipLegacyEndpoint; - request: TeamsGetMembershipLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", "get">; /** - * @see https://developer.github.com/v3/teams/#list-team-projects-legacy + * @see https://docs.github.com/rest/reference/repos#get-a-repository-readme */ - "GET /teams/:team_id/projects": { - parameters: TeamsListProjectsLegacyEndpoint; - request: TeamsListProjectsLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/readme": Operation<"/repos/{owner}/{repo}/readme", "get">; /** - * @see https://developer.github.com/v3/teams/#review-a-team-project-legacy + * @see https://docs.github.com/rest/reference/repos#list-releases */ - "GET /teams/:team_id/projects/:project_id": { - parameters: TeamsReviewProjectLegacyEndpoint; - request: TeamsReviewProjectLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "get">; /** - * @see https://developer.github.com/v3/teams/#list-team-repos-legacy + * @see https://docs.github.com/rest/reference/repos#get-a-release-asset */ - "GET /teams/:team_id/repos": { - parameters: TeamsListReposLegacyEndpoint; - request: TeamsListReposLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "get">; /** - * @see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy + * @see https://docs.github.com/rest/reference/repos#get-the-latest-release */ - "GET /teams/:team_id/repos/:owner/:repo": { - parameters: TeamsCheckManagesRepoLegacyEndpoint; - request: TeamsCheckManagesRepoLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases/latest": Operation<"/repos/{owner}/{repo}/releases/latest", "get">; /** - * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team-legacy + * @see https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name */ - "GET /teams/:team_id/team-sync/group-mappings": { - parameters: TeamsListIdPGroupsForLegacyEndpoint; - request: TeamsListIdPGroupsForLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases/tags/{tag}": Operation<"/repos/{owner}/{repo}/releases/tags/{tag}", "get">; /** - * @see https://developer.github.com/v3/teams/#list-child-teams-legacy + * @see https://docs.github.com/rest/reference/repos#get-a-release */ - "GET /teams/:team_id/teams": { - parameters: TeamsListChildLegacyEndpoint; - request: TeamsListChildLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "get">; /** - * @see https://developer.github.com/v3/users/#get-the-authenticated-user + * @see https://docs.github.com/rest/reference/repos#list-release-assets */ - "GET /user": { - parameters: UsersGetAuthenticatedEndpoint; - request: UsersGetAuthenticatedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases/{release_id}/assets": Operation<"/repos/{owner}/{repo}/releases/{release_id}/assets", "get">; /** - * @see https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration + * @see https://docs.github.com/rest/reference/activity#list-stargazers */ - "GET /user/:migration_id/repositories": { - parameters: MigrationsListReposForUserEndpoint; - request: MigrationsListReposForUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stargazers": Operation<"/repos/{owner}/{repo}/stargazers", "get">; /** - * @see https://developer.github.com/v3/users/blocking/#list-blocked-users + * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-activity */ - "GET /user/blocks": { - parameters: UsersListBlockedEndpoint; - request: UsersListBlockedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stats/code_frequency": Operation<"/repos/{owner}/{repo}/stats/code_frequency", "get">; /** - * @see https://developer.github.com/v3/users/blocking/#check-whether-youve-blocked-a-user + * @see https://docs.github.com/rest/reference/repos#get-the-last-year-of-commit-activity */ - "GET /user/blocks/:username": { - parameters: UsersCheckBlockedEndpoint; - request: UsersCheckBlockedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stats/commit_activity": Operation<"/repos/{owner}/{repo}/stats/commit_activity", "get">; /** - * @see https://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user + * @see https://docs.github.com/rest/reference/repos#get-all-contributor-commit-activity */ - "GET /user/emails": { - parameters: UsersListEmailsEndpoint; - request: UsersListEmailsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stats/contributors": Operation<"/repos/{owner}/{repo}/stats/contributors", "get">; /** - * @see https://developer.github.com/v3/users/followers/#list-followers-of-the-authenticated-user + * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-count */ - "GET /user/followers": { - parameters: UsersListFollowersForAuthenticatedUserEndpoint; - request: UsersListFollowersForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stats/participation": Operation<"/repos/{owner}/{repo}/stats/participation", "get">; /** - * @see https://developer.github.com/v3/users/followers/#list-users-followed-by-the-authenticated-user + * @see https://docs.github.com/rest/reference/repos#get-the-hourly-commit-count-for-each-day */ - "GET /user/following": { - parameters: UsersListFollowedByAuthenticatedEndpoint; - request: UsersListFollowedByAuthenticatedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stats/punch_card": Operation<"/repos/{owner}/{repo}/stats/punch_card", "get">; /** - * @see https://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user + * @see https://docs.github.com/rest/reference/activity#list-watchers */ - "GET /user/following/:username": { - parameters: UsersCheckFollowingEndpoint; - request: UsersCheckFollowingRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/subscribers": Operation<"/repos/{owner}/{repo}/subscribers", "get">; /** - * @see https://developer.github.com/v3/users/gpg_keys/#list-your-gpg-keys + * @see https://docs.github.com/rest/reference/activity#get-a-repository-subscription */ - "GET /user/gpg_keys": { - parameters: UsersListGpgKeysEndpoint; - request: UsersListGpgKeysRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "get">; /** - * @see https://developer.github.com/v3/users/gpg_keys/#get-a-single-gpg-key + * @see https://docs.github.com/v3/repos/#list-repository-tags */ - "GET /user/gpg_keys/:gpg_key_id": { - parameters: UsersGetGpgKeyEndpoint; - request: UsersGetGpgKeyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/tags": Operation<"/repos/{owner}/{repo}/tags", "get">; /** - * @see https://developer.github.com/v3/apps/installations/#list-installations-for-a-user + * @see https://docs.github.com/rest/reference/repos#download-a-repository-archive */ - "GET /user/installations": { - parameters: AppsListInstallationsForAuthenticatedUserEndpoint; - request: AppsListInstallationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/tarball/{ref}": Operation<"/repos/{owner}/{repo}/tarball/{ref}", "get">; /** - * @see https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation + * @see https://docs.github.com/v3/repos/#list-repository-teams */ - "GET /user/installations/:installation_id/repositories": { - parameters: AppsListInstallationReposForAuthenticatedUserEndpoint; - request: AppsListInstallationReposForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/teams": Operation<"/repos/{owner}/{repo}/teams", "get">; /** - * @see https://developer.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user + * @see https://docs.github.com/v3/repos/#get-all-repository-topics */ - "GET /user/issues": { - parameters: IssuesListForAuthenticatedUserEndpoint; - request: IssuesListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "get", "mercy">; /** - * @see https://developer.github.com/v3/users/keys/#list-your-public-keys + * @see https://docs.github.com/rest/reference/repos#get-repository-clones */ - "GET /user/keys": { - parameters: UsersListPublicKeysEndpoint; - request: UsersListPublicKeysRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/traffic/clones": Operation<"/repos/{owner}/{repo}/traffic/clones", "get">; /** - * @see https://developer.github.com/v3/users/keys/#get-a-single-public-key + * @see https://docs.github.com/rest/reference/repos#get-top-referral-paths */ - "GET /user/keys/:key_id": { - parameters: UsersGetPublicKeyEndpoint; - request: UsersGetPublicKeyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/traffic/popular/paths": Operation<"/repos/{owner}/{repo}/traffic/popular/paths", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-subscriptions-for-the-authenticated-user + * @see https://docs.github.com/rest/reference/repos#get-top-referral-sources */ - "GET /user/marketplace_purchases": { - parameters: AppsListSubscriptionsForAuthenticatedUserEndpoint; - request: AppsListSubscriptionsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/traffic/popular/referrers": Operation<"/repos/{owner}/{repo}/traffic/popular/referrers", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-subscriptions-for-the-authenticated-user-stubbed + * @see https://docs.github.com/rest/reference/repos#get-page-views */ - "GET /user/marketplace_purchases/stubbed": { - parameters: AppsListSubscriptionsForAuthenticatedUserStubbedEndpoint; - request: AppsListSubscriptionsForAuthenticatedUserStubbedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/traffic/views": Operation<"/repos/{owner}/{repo}/traffic/views", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#list-your-organization-memberships + * @see https://docs.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository */ - "GET /user/memberships/orgs": { - parameters: OrgsListMembershipsEndpoint; - request: OrgsListMembershipsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "get", "dorian">; /** - * @see https://developer.github.com/v3/orgs/members/#get-your-organization-membership + * @see https://docs.github.com/rest/reference/repos#download-a-repository-archive */ - "GET /user/memberships/orgs/:org": { - parameters: OrgsGetMembershipForAuthenticatedUserEndpoint; - request: OrgsGetMembershipForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/zipball/{ref}": Operation<"/repos/{owner}/{repo}/zipball/{ref}", "get">; /** - * @see https://developer.github.com/v3/migrations/users/#list-user-migrations + * @see https://docs.github.com/v3/repos/#list-public-repositories */ - "GET /user/migrations": { - parameters: MigrationsListForAuthenticatedUserEndpoint; - request: MigrationsListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repositories": Operation<"/repositories", "get">; /** - * @see https://developer.github.com/v3/migrations/users/#get-the-status-of-a-user-migration + * @see https://docs.github.com/rest/reference/enterprise-admin#list-provisioned-scim groups-for-an-enterprise */ - "GET /user/migrations/:migration_id": { - parameters: MigrationsGetStatusForAuthenticatedUserEndpoint; - request: MigrationsGetStatusForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/enterprises/{enterprise}/Groups": Operation<"/scim/v2/enterprises/{enterprise}/Groups", "get">; /** - * @see https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive + * @see https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise group */ - "GET /user/migrations/:migration_id/archive": { - parameters: MigrationsGetArchiveForAuthenticatedUserEndpoint; - request: MigrationsGetArchiveForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "get">; /** - * @see https://developer.github.com/v3/orgs/#list-your-organizations + * @see https://docs.github.com/rest/reference/enterprise-admin#list-scim-provisioned-identities-for-an-enterprise */ - "GET /user/orgs": { - parameters: OrgsListForAuthenticatedUserEndpoint; - request: OrgsListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/enterprises/{enterprise}/Users": Operation<"/scim/v2/enterprises/{enterprise}/Users", "get">; /** - * @see https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-a-user + * @see https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise-user */ - "GET /user/public_emails": { - parameters: UsersListPublicEmailsEndpoint; - request: UsersListPublicEmailsRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "get">; /** - * @see https://developer.github.com/v3/repos/#list-repositories-for-the-authenticated-user + * @see https://docs.github.com/v3/scim/#list-scim-provisioned-identities */ - "GET /user/repos": { - parameters: ReposListForAuthenticatedUserEndpoint; - request: ReposListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/organizations/{org}/Users": Operation<"/scim/v2/organizations/{org}/Users", "get">; /** - * @see https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations + * @see https://docs.github.com/v3/scim/#get-scim-provisioning-information-for-a-user */ - "GET /user/repository_invitations": { - parameters: ReposListInvitationsForAuthenticatedUserEndpoint; - request: ReposListInvitationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "get">; /** - * @see https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-the-authenticated-user + * @see https://docs.github.com/v3/search/#search-code */ - "GET /user/starred": { - parameters: ActivityListReposStarredByAuthenticatedUserEndpoint; - request: ActivityListReposStarredByAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /search/code": Operation<"/search/code", "get">; /** - * @see https://developer.github.com/v3/activity/starring/#check-if-a-repository-is-starred-by-the-authenticated-user + * @see https://docs.github.com/v3/search/#search-commits */ - "GET /user/starred/:owner/:repo": { - parameters: ActivityCheckRepoIsStarredByAuthenticatedUserEndpoint; - request: ActivityCheckRepoIsStarredByAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /search/commits": Operation<"/search/commits", "get", "cloak">; /** - * @see https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-the-authenticated-user + * @see https://docs.github.com/v3/search/#search-issues-and-pull-requests */ - "GET /user/subscriptions": { - parameters: ActivityListWatchedReposForAuthenticatedUserEndpoint; - request: ActivityListWatchedReposForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /search/issues": Operation<"/search/issues", "get">; /** - * @see https://developer.github.com/v3/activity/watching/#check-if-you-are-watching-a-repository-legacy + * @see https://docs.github.com/v3/search/#search-labels */ - "GET /user/subscriptions/:owner/:repo": { - parameters: ActivityCheckWatchingRepoLegacyEndpoint; - request: ActivityCheckWatchingRepoLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /search/labels": Operation<"/search/labels", "get">; /** - * @see https://developer.github.com/v3/teams/#list-user-teams + * @see https://docs.github.com/v3/search/#search-repositories */ - "GET /user/teams": { - parameters: TeamsListForAuthenticatedUserEndpoint; - request: TeamsListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /search/repositories": Operation<"/search/repositories", "get">; /** - * @see https://developer.github.com/v3/users/#get-all-users + * @see https://docs.github.com/v3/search/#search-topics */ - "GET /users": { - parameters: UsersListEndpoint; - request: UsersListRequestOptions; - response: OctokitResponse; - }; + "GET /search/topics": Operation<"/search/topics", "get", "mercy">; /** - * @see https://developer.github.com/v3/users/#get-a-single-user + * @see https://docs.github.com/v3/search/#search-users */ - "GET /users/:username": { - parameters: UsersGetByUsernameEndpoint; - request: UsersGetByUsernameRequestOptions; - response: OctokitResponse; - }; + "GET /search/users": Operation<"/search/users", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user + * @see https://docs.github.com/v3/teams/#get-a-team-legacy */ - "GET /users/:username/events": { - parameters: ActivityListEventsForAuthenticatedUserEndpoint; - request: ActivityListEventsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}": Operation<"/teams/{team_id}", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user + * @see https://docs.github.com/rest/reference/teams#list-discussions-legacy */ - "GET /users/:username/events/orgs/:org": { - parameters: ActivityListOrgEventsForAuthenticatedUserEndpoint; - request: ActivityListOrgEventsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions": Operation<"/teams/{team_id}/discussions", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-public-events-for-a-user + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-legacy */ - "GET /users/:username/events/public": { - parameters: ActivityListPublicEventsForUserEndpoint; - request: ActivityListPublicEventsForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "get">; /** - * @see https://developer.github.com/v3/users/followers/#list-followers-of-a-user + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments-legacy */ - "GET /users/:username/followers": { - parameters: UsersListFollowersForUserEndpoint; - request: UsersListFollowersForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions/{discussion_number}/comments": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments", "get">; /** - * @see https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-comment-legacy */ - "GET /users/:username/following": { - parameters: UsersListFollowingForUserEndpoint; - request: UsersListFollowingForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "get">; /** - * @see https://developer.github.com/v3/users/followers/#check-if-one-user-follows-another + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy */ - "GET /users/:username/following/:target_user": { - parameters: UsersCheckFollowingForUserEndpoint; - request: UsersCheckFollowingForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/gists/#list-gists-for-a-user + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy */ - "GET /users/:username/gists": { - parameters: GistsListForUserEndpoint; - request: GistsListForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions/{discussion_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/users/gpg_keys/#list-gpg-keys-for-a-user + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations-legacy */ - "GET /users/:username/gpg_keys": { - parameters: UsersListGpgKeysForUserEndpoint; - request: UsersListGpgKeysForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/invitations": Operation<"/teams/{team_id}/invitations", "get">; /** - * @see https://developer.github.com/v3/users/#get-contextual-information-about-a-user + * @see https://docs.github.com/rest/reference/teams#list-team-members-legacy */ - "GET /users/:username/hovercard": { - parameters: UsersGetContextForUserEndpoint; - request: UsersGetContextForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/members": Operation<"/teams/{team_id}/members", "get">; /** - * @see https://developer.github.com/v3/apps/#get-a-user-installation + * @see https://docs.github.com/rest/reference/teams#get-team-member-legacy */ - "GET /users/:username/installation": { - parameters: AppsGetUserInstallationEndpoint; - request: AppsGetUserInstallationRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "get">; /** - * @see https://developer.github.com/v3/users/keys/#list-public-keys-for-a-user + * @see https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user-legacy */ - "GET /users/:username/keys": { - parameters: UsersListPublicKeysForUserEndpoint; - request: UsersListPublicKeysForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "get">; /** - * @see https://developer.github.com/v3/orgs/#list-user-organizations + * @see https://docs.github.com/v3/teams/#list-team-projects-legacy */ - "GET /users/:username/orgs": { - parameters: OrgsListForUserEndpoint; - request: OrgsListForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/projects": Operation<"/teams/{team_id}/projects", "get", "inertia">; /** - * @see https://developer.github.com/v3/projects/#list-user-projects + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-project-legacy */ - "GET /users/:username/projects": { - parameters: ProjectsListForUserEndpoint; - request: ProjectsListForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "get", "inertia">; /** - * @see https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user + * @see https://docs.github.com/v3/teams/#list-team-repositories-legacy */ - "GET /users/:username/received_events": { - parameters: ActivityListReceivedEventsForUserEndpoint; - request: ActivityListReceivedEventsForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/repos": Operation<"/teams/{team_id}/repos", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy */ - "GET /users/:username/received_events/public": { - parameters: ActivityListReceivedPublicEventsForUserEndpoint; - request: ActivityListReceivedPublicEventsForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "get">; /** - * @see https://developer.github.com/v3/repos/#list-repositories-for-a-user + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team-legacy */ - "GET /users/:username/repos": { - parameters: ReposListForUserEndpoint; - request: ReposListForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/team-sync/group-mappings": Operation<"/teams/{team_id}/team-sync/group-mappings", "get">; /** - * @see https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user + * @see https://docs.github.com/v3/teams/#list-child-teams-legacy */ - "GET /users/:username/starred": { - parameters: ActivityListReposStarredByUserEndpoint; - request: ActivityListReposStarredByUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/teams": Operation<"/teams/{team_id}/teams", "get">; /** - * @see https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user + * @see https://docs.github.com/v3/users/#get-the-authenticated-user */ - "GET /users/:username/subscriptions": { - parameters: ActivityListReposWatchedByUserEndpoint; - request: ActivityListReposWatchedByUserRequestOptions; - response: OctokitResponse; - }; + "GET /user": Operation<"/user", "get">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#reset-a-token + * @see https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user */ - "PATCH /applications/:client_id/token": { - parameters: AppsResetTokenEndpoint; - request: AppsResetTokenRequestOptions; - response: OctokitResponse; - }; + "GET /user/blocks": Operation<"/user/blocks", "get">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization + * @see https://docs.github.com/rest/reference/users#check-if-a-user-is-blocked-by-the-authenticated-user */ - "PATCH /authorizations/:authorization_id": { - parameters: OauthAuthorizationsUpdateAuthorizationEndpoint; - request: OauthAuthorizationsUpdateAuthorizationRequestOptions; - response: OctokitResponse; - }; + "GET /user/blocks/{username}": Operation<"/user/blocks/{username}", "get">; /** - * @see https://developer.github.com/v3/gists/#update-a-gist + * @see https://docs.github.com/rest/reference/users#list-email-addresses-for-the-authenticated-user */ - "PATCH /gists/:gist_id": { - parameters: GistsUpdateEndpoint; - request: GistsUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/emails": Operation<"/user/emails", "get">; /** - * @see https://developer.github.com/v3/gists/comments/#edit-a-comment + * @see https://docs.github.com/rest/reference/users#list-followers-of-the-authenticated-user */ - "PATCH /gists/:gist_id/comments/:comment_id": { - parameters: GistsUpdateCommentEndpoint; - request: GistsUpdateCommentRequestOptions; - response: OctokitResponse; - }; + "GET /user/followers": Operation<"/user/followers", "get">; /** - * @see https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read + * @see https://docs.github.com/rest/reference/users#list-the-people-the-authenticated-user-follows */ - "PATCH /notifications/threads/:thread_id": { - parameters: ActivityMarkThreadAsReadEndpoint; - request: ActivityMarkThreadAsReadRequestOptions; - response: OctokitResponse; - }; + "GET /user/following": Operation<"/user/following", "get">; /** - * @see https://developer.github.com/v3/orgs/#edit-an-organization + * @see https://docs.github.com/rest/reference/users#check-if-a-person-is-followed-by-the-authenticated-user */ - "PATCH /orgs/:org": { - parameters: OrgsUpdateEndpoint; - request: OrgsUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/following/{username}": Operation<"/user/following/{username}", "get">; /** - * @see https://developer.github.com/v3/orgs/hooks/#edit-a-hook + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-the-authenticated-user */ - "PATCH /orgs/:org/hooks/:hook_id": { - parameters: OrgsUpdateHookEndpoint; - request: OrgsUpdateHookRequestOptions; - response: OctokitResponse; - }; + "GET /user/gpg_keys": Operation<"/user/gpg_keys", "get">; /** - * @see https://developer.github.com/v3/teams/#edit-team + * @see https://docs.github.com/rest/reference/users#get-a-gpg-key-for-the-authenticated-user */ - "PATCH /orgs/:org/teams/:team_slug": { - parameters: TeamsUpdateInOrgEndpoint; - request: TeamsUpdateInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /user/gpg_keys/{gpg_key_id}": Operation<"/user/gpg_keys/{gpg_key_id}", "get">; /** - * @see https://developer.github.com/v3/teams/discussions/#edit-a-discussion + * @see https://docs.github.com/rest/reference/apps#list-app-installations-accessible-to-the-user-access-token */ - "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number": { - parameters: TeamsUpdateDiscussionInOrgEndpoint; - request: TeamsUpdateDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /user/installations": Operation<"/user/installations", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-user-access-token */ - "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsUpdateDiscussionCommentInOrgEndpoint; - request: TeamsUpdateDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /user/installations/{installation_id}/repositories": Operation<"/user/installations/{installation_id}/repositories", "get">; /** - * @see https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-your-public-repositories */ - "PATCH /orgs/:org/teams/:team_slug/team-sync/group-mappings": { - parameters: TeamsCreateOrUpdateIdPGroupConnectionsInOrgEndpoint; - request: TeamsCreateOrUpdateIdPGroupConnectionsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /user/interaction-limits": Operation<"/user/interaction-limits", "get">; /** - * @see https://developer.github.com/v3/projects/#update-a-project + * @see https://docs.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user */ - "PATCH /projects/:project_id": { - parameters: ProjectsUpdateEndpoint; - request: ProjectsUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/issues": Operation<"/user/issues", "get">; /** - * @see https://developer.github.com/v3/projects/columns/#update-a-project-column + * @see https://docs.github.com/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user */ - "PATCH /projects/columns/:column_id": { - parameters: ProjectsUpdateColumnEndpoint; - request: ProjectsUpdateColumnRequestOptions; - response: OctokitResponse; - }; + "GET /user/keys": Operation<"/user/keys", "get">; /** - * @see https://developer.github.com/v3/projects/cards/#update-a-project-card + * @see https://docs.github.com/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user */ - "PATCH /projects/columns/cards/:card_id": { - parameters: ProjectsUpdateCardEndpoint; - request: ProjectsUpdateCardRequestOptions; - response: OctokitResponse; - }; + "GET /user/keys/{key_id}": Operation<"/user/keys/{key_id}", "get">; /** - * @see https://developer.github.com/v3/repos/#update-a-repository + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo": { - parameters: ReposUpdateEndpoint; - request: ReposUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/marketplace_purchases": Operation<"/user/marketplace_purchases", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user-stubbed */ - "PATCH /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { - parameters: ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint; - request: ReposUpdateProtectedBranchPullRequestReviewEnforcementRequestOptions; - response: OctokitResponse; - }; + "GET /user/marketplace_purchases/stubbed": Operation<"/user/marketplace_purchases/stubbed", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#update-required-status-checks-of-protected-branch + * @see https://docs.github.com/rest/reference/orgs#list-organization-memberships-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { - parameters: ReposUpdateProtectedBranchRequiredStatusChecksEndpoint; - request: ReposUpdateProtectedBranchRequiredStatusChecksRequestOptions; - response: OctokitResponse; - }; + "GET /user/memberships/orgs": Operation<"/user/memberships/orgs", "get">; /** - * @see https://developer.github.com/v3/checks/runs/#update-a-check-run + * @see https://docs.github.com/rest/reference/orgs#get-an-organization-membership-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/check-runs/:check_run_id": { - parameters: ChecksUpdateEndpoint; - request: ChecksUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "get">; /** - * @see https://developer.github.com/v3/checks/suites/#update-repository-preferences-for-check-suites + * @see https://docs.github.com/rest/reference/migrations#list-user-migrations */ - "PATCH /repos/:owner/:repo/check-suites/preferences": { - parameters: ChecksSetSuitesPreferencesEndpoint; - request: ChecksSetSuitesPreferencesRequestOptions; - response: OctokitResponse; - }; + "GET /user/migrations": Operation<"/user/migrations", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/repos/comments/#update-a-commit-comment + * @see https://docs.github.com/rest/reference/migrations#get-a-user-migration-status */ - "PATCH /repos/:owner/:repo/comments/:comment_id": { - parameters: ReposUpdateCommitCommentEndpoint; - request: ReposUpdateCommitCommentRequestOptions; - response: OctokitResponse; - }; + "GET /user/migrations/{migration_id}": Operation<"/user/migrations/{migration_id}", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/git/refs/#update-a-reference + * @see https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive */ - "PATCH /repos/:owner/:repo/git/refs/:ref": { - parameters: GitUpdateRefEndpoint; - request: GitUpdateRefRequestOptions; - response: OctokitResponse; - }; + "GET /user/migrations/{migration_id}/archive": Operation<"/user/migrations/{migration_id}/archive", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/repos/hooks/#edit-a-hook + * @see https://docs.github.com/rest/reference/migrations#list-repositories-for-a-user-migration */ - "PATCH /repos/:owner/:repo/hooks/:hook_id": { - parameters: ReposUpdateHookEndpoint; - request: ReposUpdateHookRequestOptions; - response: OctokitResponse; - }; + "GET /user/migrations/{migration_id}/repositories": Operation<"/user/migrations/{migration_id}/repositories", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#update-existing-import + * @see https://docs.github.com/v3/orgs/#list-organizations-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/import": { - parameters: MigrationsUpdateImportEndpoint; - request: MigrationsUpdateImportRequestOptions; - response: OctokitResponse; - }; + "GET /user/orgs": Operation<"/user/orgs", "get">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author + * @see https://docs.github.com/rest/reference/users#list-public-email-addresses-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/import/authors/:author_id": { - parameters: MigrationsMapCommitAuthorEndpoint; - request: MigrationsMapCommitAuthorRequestOptions; - response: OctokitResponse; - }; + "GET /user/public_emails": Operation<"/user/public_emails", "get">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#set-git-lfs-preference + * @see https://docs.github.com/v3/repos/#list-repositories-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/import/lfs": { - parameters: MigrationsSetLfsPreferenceEndpoint; - request: MigrationsSetLfsPreferenceRequestOptions; - response: OctokitResponse; - }; + "GET /user/repos": Operation<"/user/repos", "get">; /** - * @see https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/invitations/:invitation_id": { - parameters: ReposUpdateInvitationEndpoint; - request: ReposUpdateInvitationRequestOptions; - response: OctokitResponse; - }; + "GET /user/repository_invitations": Operation<"/user/repository_invitations", "get">; /** - * @see https://developer.github.com/v3/issues/#update-an-issue + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-the-authenticated-user */ - "PATCH /repos/:owner/:repo/issues/:issue_number": { - parameters: IssuesUpdateEndpoint; - request: IssuesUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/starred": Operation<"/user/starred", "get">; /** - * @see https://developer.github.com/v3/issues/comments/#edit-a-comment + * @see https://docs.github.com/rest/reference/activity#check-if-a-repository-is-starred-by-the-authenticated-user */ - "PATCH /repos/:owner/:repo/issues/comments/:comment_id": { - parameters: IssuesUpdateCommentEndpoint; - request: IssuesUpdateCommentRequestOptions; - response: OctokitResponse; - }; + "GET /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "get">; /** - * @see https://developer.github.com/v3/issues/labels/#update-a-label + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-the-authenticated-user */ - "PATCH /repos/:owner/:repo/labels/:name": { - parameters: IssuesUpdateLabelEndpoint; - request: IssuesUpdateLabelRequestOptions; - response: OctokitResponse; - }; + "GET /user/subscriptions": Operation<"/user/subscriptions", "get">; /** - * @see https://developer.github.com/v3/issues/milestones/#update-a-milestone + * @see https://docs.github.com/v3/teams/#list-teams-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/milestones/:milestone_number": { - parameters: IssuesUpdateMilestoneEndpoint; - request: IssuesUpdateMilestoneRequestOptions; - response: OctokitResponse; - }; + "GET /user/teams": Operation<"/user/teams", "get">; /** - * @see https://developer.github.com/v3/pulls/#update-a-pull-request + * @see https://docs.github.com/v3/users/#list-users */ - "PATCH /repos/:owner/:repo/pulls/:pull_number": { - parameters: PullsUpdateEndpoint; - request: PullsUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /users": Operation<"/users", "get">; /** - * @see https://developer.github.com/v3/pulls/comments/#edit-a-comment + * @see https://docs.github.com/v3/users/#get-a-user */ - "PATCH /repos/:owner/:repo/pulls/comments/:comment_id": { - parameters: PullsUpdateCommentEndpoint; - request: PullsUpdateCommentRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}": Operation<"/users/{username}", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#edit-a-release + * @see https://docs.github.com/rest/reference/activity#list-events-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/releases/:release_id": { - parameters: ReposUpdateReleaseEndpoint; - request: ReposUpdateReleaseRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/events": Operation<"/users/{username}/events", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#edit-a-release-asset + * @see https://docs.github.com/rest/reference/activity#list-organization-events-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/releases/assets/:asset_id": { - parameters: ReposUpdateReleaseAssetEndpoint; - request: ReposUpdateReleaseAssetRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/events/orgs/{org}": Operation<"/users/{username}/events/orgs/{org}", "get">; /** - * @see https://developer.github.com/v3/scim/#update-a-user-attribute + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-user */ - "PATCH /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimUpdateUserAttributeEndpoint; - request: ScimUpdateUserAttributeRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/events/public": Operation<"/users/{username}/events/public", "get">; /** - * @see https://developer.github.com/v3/teams/#edit-team-legacy + * @see https://docs.github.com/rest/reference/users#list-followers-of-a-user */ - "PATCH /teams/:team_id": { - parameters: TeamsUpdateLegacyEndpoint; - request: TeamsUpdateLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/followers": Operation<"/users/{username}/followers", "get">; /** - * @see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy + * @see https://docs.github.com/rest/reference/users#list-the-people-a-user-follows */ - "PATCH /teams/:team_id/discussions/:discussion_number": { - parameters: TeamsUpdateDiscussionLegacyEndpoint; - request: TeamsUpdateDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/following": Operation<"/users/{username}/following", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy + * @see https://docs.github.com/rest/reference/users#check-if-a-user-follows-another-user */ - "PATCH /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsUpdateDiscussionCommentLegacyEndpoint; - request: TeamsUpdateDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/following/{target_user}": Operation<"/users/{username}/following/{target_user}", "get">; /** - * @see https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections-legacy + * @see https://docs.github.com/v3/gists/#list-gists-for-a-user */ - "PATCH /teams/:team_id/team-sync/group-mappings": { - parameters: TeamsCreateOrUpdateIdPGroupConnectionsLegacyEndpoint; - request: TeamsCreateOrUpdateIdPGroupConnectionsLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/gists": Operation<"/users/{username}/gists", "get">; /** - * @see https://developer.github.com/v3/users/#update-the-authenticated-user + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-a-user */ - "PATCH /user": { - parameters: UsersUpdateAuthenticatedEndpoint; - request: UsersUpdateAuthenticatedRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/gpg_keys": Operation<"/users/{username}/gpg_keys", "get">; /** - * @see https://developer.github.com/v3/users/emails/#toggle-primary-email-visibility + * @see https://docs.github.com/v3/users/#get-contextual-information-for-a-user */ - "PATCH /user/email/visibility": { - parameters: UsersTogglePrimaryEmailVisibilityEndpoint; - request: UsersTogglePrimaryEmailVisibilityRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/hovercard": Operation<"/users/{username}/hovercard", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#edit-your-organization-membership + * @see https://docs.github.com/v3/apps/#get-a-user-installation-for-the-authenticated-app */ - "PATCH /user/memberships/orgs/:org": { - parameters: OrgsUpdateMembershipEndpoint; - request: OrgsUpdateMembershipRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/installation": Operation<"/users/{username}/installation", "get">; /** - * @see https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation + * @see https://docs.github.com/rest/reference/users#list-public-keys-for-a-user */ - "PATCH /user/repository_invitations/:invitation_id": { - parameters: ReposAcceptInvitationEndpoint; - request: ReposAcceptInvitationRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/keys": Operation<"/users/{username}/keys", "get">; /** - * @see https://developer.github.com/v3/apps/#create-a-github-app-from-a-manifest + * @see https://docs.github.com/v3/orgs/#list-organizations-for-a-user */ - "POST /app-manifests/:code/conversions": { - parameters: AppsCreateFromManifestEndpoint; - request: AppsCreateFromManifestRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/orgs": Operation<"/users/{username}/orgs", "get">; /** - * @see https://developer.github.com/v3/apps/#create-a-new-installation-token + * @see https://docs.github.com/v3/projects/#list-user-projects */ - "POST /app/installations/:installation_id/access_tokens": { - parameters: AppsCreateInstallationTokenEndpoint; - request: AppsCreateInstallationTokenRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/projects": Operation<"/users/{username}/projects", "get", "inertia">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#check-a-token + * @see https://docs.github.com/rest/reference/activity#list-events-received-by-the-authenticated-user */ - "POST /applications/:client_id/token": { - parameters: AppsCheckTokenEndpoint; - request: AppsCheckTokenRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/received_events": Operation<"/users/{username}/received_events", "get">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization + * @see https://docs.github.com/rest/reference/activity#list-public-events-received-by-a-user */ - "POST /applications/:client_id/tokens/:access_token": { - parameters: AppsResetAuthorizationEndpoint; - request: AppsResetAuthorizationRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/received_events/public": Operation<"/users/{username}/received_events/public", "get">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization + * @see https://docs.github.com/v3/repos/#list-repositories-for-a-user */ - "POST /authorizations": { - parameters: OauthAuthorizationsCreateAuthorizationEndpoint; - request: OauthAuthorizationsCreateAuthorizationRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/repos": Operation<"/users/{username}/repos", "get">; /** - * @see https://developer.github.com/v3/apps/installations/#create-a-content-attachment + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-a-user */ - "POST /content_references/:content_reference_id/attachments": { - parameters: AppsCreateContentAttachmentEndpoint; - request: AppsCreateContentAttachmentRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/settings/billing/actions": Operation<"/users/{username}/settings/billing/actions", "get">; /** - * @see https://developer.github.com/v3/gists/#create-a-gist + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-a-user */ - "POST /gists": { - parameters: GistsCreateEndpoint; - request: GistsCreateRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/settings/billing/packages": Operation<"/users/{username}/settings/billing/packages", "get">; /** - * @see https://developer.github.com/v3/gists/comments/#create-a-comment + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-a-user */ - "POST /gists/:gist_id/comments": { - parameters: GistsCreateCommentEndpoint; - request: GistsCreateCommentRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/settings/billing/shared-storage": Operation<"/users/{username}/settings/billing/shared-storage", "get">; /** - * @see https://developer.github.com/v3/gists/#fork-a-gist + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-a-user */ - "POST /gists/:gist_id/forks": { - parameters: GistsForkEndpoint; - request: GistsForkRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/starred": Operation<"/users/{username}/starred", "get">; /** - * @see https://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-a-user */ - "POST /markdown": { - parameters: MarkdownRenderEndpoint; - request: MarkdownRenderRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/subscriptions": Operation<"/users/{username}/subscriptions", "get">; /** - * @see https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode + * @see */ - "POST /markdown/raw": { - parameters: MarkdownRenderRawEndpoint; - request: MarkdownRenderRawRequestOptions; - response: OctokitResponse; - }; + "GET /zen": Operation<"/zen", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-an-organization + * @see https://docs.github.com/v3/apps#update-a-webhook-configuration-for-an-app */ - "POST /orgs/:org/actions/runners/registration-token": { - parameters: ActionsCreateRegistrationTokenForOrgEndpoint; - request: ActionsCreateRegistrationTokenForOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /app/hook/config": Operation<"/app/hook/config", "patch">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-an-organization + * @see https://docs.github.com/rest/reference/apps#reset-a-token */ - "POST /orgs/:org/actions/runners/remove-token": { - parameters: ActionsCreateRemoveTokenForOrgEndpoint; - request: ActionsCreateRemoveTokenForOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "patch">; /** - * @see https://developer.github.com/v3/orgs/hooks/#create-a-hook + * @see https://docs.github.com/rest/reference/oauth-authorizations#update-an-existing-authorization */ - "POST /orgs/:org/hooks": { - parameters: OrgsCreateHookEndpoint; - request: OrgsCreateHookRequestOptions; - response: OctokitResponse; - }; + "PATCH /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "patch">; /** - * @see https://developer.github.com/v3/orgs/hooks/#ping-a-hook + * @see https://docs.github.com/rest/reference/enterprise-admin#update-a-self-hosted-runner-group-for-an-enterprise */ - "POST /orgs/:org/hooks/:hook_id/pings": { - parameters: OrgsPingHookEndpoint; - request: OrgsPingHookRequestOptions; - response: OctokitResponse; - }; + "PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "patch">; /** - * @see https://developer.github.com/v3/orgs/members/#create-organization-invitation + * @see https://docs.github.com/v3/gists/#update-a-gist */ - "POST /orgs/:org/invitations": { - parameters: OrgsCreateInvitationEndpoint; - request: OrgsCreateInvitationRequestOptions; - response: OctokitResponse; - }; + "PATCH /gists/{gist_id}": Operation<"/gists/{gist_id}", "patch">; /** - * @see https://developer.github.com/v3/migrations/orgs/#start-an-organization-migration + * @see https://docs.github.com/rest/reference/gists#update-a-gist-comment */ - "POST /orgs/:org/migrations": { - parameters: MigrationsStartForOrgEndpoint; - request: MigrationsStartForOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "patch">; /** - * @see https://developer.github.com/v3/projects/#create-an-organization-project + * @see https://docs.github.com/rest/reference/activity#mark-a-thread-as-read */ - "POST /orgs/:org/projects": { - parameters: ProjectsCreateForOrgEndpoint; - request: ProjectsCreateForOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/#create-an-organization-repository + * @see https://docs.github.com/v3/orgs/#update-an-organization */ - "POST /orgs/:org/repos": { - parameters: ReposCreateInOrgEndpoint; - request: ReposCreateInOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}": Operation<"/orgs/{org}", "patch">; /** - * @see https://developer.github.com/v3/teams/#create-team + * @see https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-organization */ - "POST /orgs/:org/teams": { - parameters: TeamsCreateEndpoint; - request: TeamsCreateRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "patch">; /** - * @see https://developer.github.com/v3/teams/discussions/#create-a-discussion + * @see https://docs.github.com/rest/reference/orgs#update-an-organization-webhook */ - "POST /orgs/:org/teams/:team_slug/discussions": { - parameters: TeamsCreateDiscussionInOrgEndpoint; - request: TeamsCreateDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "patch">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment + * @see https://docs.github.com/v3/orgs#update-a-webhook-configuration-for-an-organization */ - "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": { - parameters: TeamsCreateDiscussionCommentInOrgEndpoint; - request: TeamsCreateDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/hooks/{hook_id}/config": Operation<"/orgs/{org}/hooks/{hook_id}/config", "patch">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment + * @see https://docs.github.com/v3/teams/#update-a-team */ - "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionCommentInOrgEndpoint; - request: ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "patch">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion + * @see https://docs.github.com/rest/reference/teams#update-a-discussion */ - "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionInOrgEndpoint; - request: ReactionsCreateForTeamDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "patch">; /** - * @see https://developer.github.com/v3/projects/columns/#create-a-project-column + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-comment */ - "POST /projects/:project_id/columns": { - parameters: ProjectsCreateColumnEndpoint; - request: ProjectsCreateColumnRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "patch">; /** - * @see https://developer.github.com/v3/projects/cards/#create-a-project-card + * @see https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections */ - "POST /projects/columns/:column_id/cards": { - parameters: ProjectsCreateCardEndpoint; - request: ProjectsCreateCardRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": Operation<"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", "patch">; /** - * @see https://developer.github.com/v3/projects/columns/#move-a-project-column + * @see https://docs.github.com/rest/reference/projects#update-a-project-card */ - "POST /projects/columns/:column_id/moves": { - parameters: ProjectsMoveColumnEndpoint; - request: ProjectsMoveColumnRequestOptions; - response: OctokitResponse; - }; + "PATCH /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "patch", "inertia">; /** - * @see https://developer.github.com/v3/projects/cards/#move-a-project-card + * @see https://docs.github.com/rest/reference/projects#update-a-project-column */ - "POST /projects/columns/cards/:card_id/moves": { - parameters: ProjectsMoveCardEndpoint; - request: ProjectsMoveCardRequestOptions; - response: OctokitResponse; - }; + "PATCH /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "patch", "inertia">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-a-repository + * @see https://docs.github.com/v3/projects/#update-a-project */ - "POST /repos/:owner/:repo/actions/runners/registration-token": { - parameters: ActionsCreateRegistrationTokenForRepoEndpoint; - request: ActionsCreateRegistrationTokenForRepoRequestOptions; - response: OctokitResponse; - }; + "PATCH /projects/{project_id}": Operation<"/projects/{project_id}", "patch", "inertia">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-a-repository + * @see https://docs.github.com/v3/repos/#update-a-repository */ - "POST /repos/:owner/:repo/actions/runners/remove-token": { - parameters: ActionsCreateRemoveTokenForRepoEndpoint; - request: ActionsCreateRemoveTokenForRepoRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "patch">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#cancel-a-workflow-run + * @see https://docs.github.com/rest/reference/repos#update-pull-request-review-protection */ - "POST /repos/:owner/:repo/actions/runs/:run_id/cancel": { - parameters: ActionsCancelWorkflowRunEndpoint; - request: ActionsCancelWorkflowRunRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "patch">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#re-run-a-workflow + * @see https://docs.github.com/rest/reference/repos#update-status-check-potection */ - "POST /repos/:owner/:repo/actions/runs/:run_id/rerun": { - parameters: ActionsReRunWorkflowEndpoint; - request: ActionsReRunWorkflowRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-admin-enforcement-of-protected-branch + * @see https://docs.github.com/rest/reference/checks#update-a-check-run */ - "POST /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { - parameters: ReposAddProtectedBranchAdminEnforcementEndpoint; - request: ReposAddProtectedBranchAdminEnforcementRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-required-signatures-of-protected-branch + * @see https://docs.github.com/rest/reference/checks#update-repository-preferences-for-check-suites */ - "POST /repos/:owner/:repo/branches/:branch/protection/required_signatures": { - parameters: ReposAddProtectedBranchRequiredSignaturesEndpoint; - request: ReposAddProtectedBranchRequiredSignaturesRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/check-suites/preferences": Operation<"/repos/{owner}/{repo}/check-suites/preferences", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-required-status-checks-contexts-of-protected-branch + * @see https://docs.github.com/v3/code-scanning/#upload-a-code-scanning-alert */ - "POST /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposAddProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-app-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/repos#update-a-commit-comment */ - "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposAddProtectedBranchAppRestrictionsEndpoint; - request: ReposAddProtectedBranchAppRestrictionsRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-team-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/git#update-a-reference */ - "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposAddProtectedBranchTeamRestrictionsEndpoint; - request: ReposAddProtectedBranchTeamRestrictionsRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-user-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/repos#update-a-repository-webhook */ - "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposAddProtectedBranchUserRestrictionsEndpoint; - request: ReposAddProtectedBranchUserRestrictionsRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "patch">; /** - * @see https://developer.github.com/v3/checks/runs/#create-a-check-run + * @see https://docs.github.com/v3/repos#update-a-webhook-configuration-for-a-repository */ - "POST /repos/:owner/:repo/check-runs": { - parameters: ChecksCreateEndpoint; - request: ChecksCreateRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "patch">; /** - * @see https://developer.github.com/v3/checks/suites/#create-a-check-suite + * @see https://docs.github.com/rest/reference/migrations#update-an-import */ - "POST /repos/:owner/:repo/check-suites": { - parameters: ChecksCreateSuiteEndpoint; - request: ChecksCreateSuiteRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "patch">; /** - * @see https://developer.github.com/v3/checks/suites/#rerequest-a-check-suite + * @see https://docs.github.com/rest/reference/migrations#map-a-commit-author */ - "POST /repos/:owner/:repo/check-suites/:check_suite_id/rerequest": { - parameters: ChecksRerequestSuiteEndpoint; - request: ChecksRerequestSuiteRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/import/authors/{author_id}": Operation<"/repos/{owner}/{repo}/import/authors/{author_id}", "patch">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment + * @see https://docs.github.com/rest/reference/migrations#update-git-lfs-preference */ - "POST /repos/:owner/:repo/comments/:comment_id/reactions": { - parameters: ReactionsCreateForCommitCommentEndpoint; - request: ReactionsCreateForCommitCommentRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/import/lfs": Operation<"/repos/{owner}/{repo}/import/lfs", "patch">; /** - * @see https://developer.github.com/v3/repos/comments/#create-a-commit-comment + * @see https://docs.github.com/rest/reference/repos#update-a-repository-invitation */ - "POST /repos/:owner/:repo/commits/:commit_sha/comments": { - parameters: ReposCreateCommitCommentEndpoint; - request: ReposCreateCommitCommentRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/deployments/#create-a-deployment + * @see https://docs.github.com/rest/reference/issues#update-an-issue-comment */ - "POST /repos/:owner/:repo/deployments": { - parameters: ReposCreateDeploymentEndpoint; - request: ReposCreateDeploymentRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status + * @see https://docs.github.com/v3/issues/#update-an-issue */ - "POST /repos/:owner/:repo/deployments/:deployment_id/statuses": { - parameters: ReposCreateDeploymentStatusEndpoint; - request: ReposCreateDeploymentStatusRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "patch">; /** - * @see https://developer.github.com/v3/repos/#create-a-repository-dispatch-event + * @see https://docs.github.com/rest/reference/issues#update-a-label */ - "POST /repos/:owner/:repo/dispatches": { - parameters: ReposCreateDispatchEventEndpoint; - request: ReposCreateDispatchEventRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "patch">; /** - * @see https://developer.github.com/v3/repos/forks/#create-a-fork + * @see https://docs.github.com/rest/reference/issues#update-a-milestone */ - "POST /repos/:owner/:repo/forks": { - parameters: ReposCreateForkEndpoint; - request: ReposCreateForkRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "patch">; /** - * @see https://developer.github.com/v3/git/blobs/#create-a-blob + * @see https://docs.github.com/rest/reference/pulls#update-a-review-comment-for-a-pull-request */ - "POST /repos/:owner/:repo/git/blobs": { - parameters: GitCreateBlobEndpoint; - request: GitCreateBlobRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "patch">; /** - * @see https://developer.github.com/v3/git/commits/#create-a-commit + * @see https://docs.github.com/v3/pulls/#update-a-pull-request */ - "POST /repos/:owner/:repo/git/commits": { - parameters: GitCreateCommitEndpoint; - request: GitCreateCommitRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/pulls/{pull_number}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}", "patch">; /** - * @see https://developer.github.com/v3/git/refs/#create-a-reference + * @see https://docs.github.com/rest/reference/repos#update-a-release-asset */ - "POST /repos/:owner/:repo/git/refs": { - parameters: GitCreateRefEndpoint; - request: GitCreateRefRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "patch">; /** - * @see https://developer.github.com/v3/git/tags/#create-a-tag-object + * @see https://docs.github.com/rest/reference/repos#update-a-release */ - "POST /repos/:owner/:repo/git/tags": { - parameters: GitCreateTagEndpoint; - request: GitCreateTagRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "patch">; /** - * @see https://developer.github.com/v3/git/trees/#create-a-tree + * @see https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-group */ - "POST /repos/:owner/:repo/git/trees": { - parameters: GitCreateTreeEndpoint; - request: GitCreateTreeRequestOptions; - response: OctokitResponse; - }; + "PATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/hooks/#create-a-hook + * @see https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-user */ - "POST /repos/:owner/:repo/hooks": { - parameters: ReposCreateHookEndpoint; - request: ReposCreateHookRequestOptions; - response: OctokitResponse; - }; + "PATCH /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/hooks/#ping-a-hook + * @see https://docs.github.com/v3/scim/#update-an-attribute-for-a-scim-user */ - "POST /repos/:owner/:repo/hooks/:hook_id/pings": { - parameters: ReposPingHookEndpoint; - request: ReposPingHookRequestOptions; - response: OctokitResponse; - }; + "PATCH /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/hooks/#test-a-push-hook + * @see https://docs.github.com/v3/teams/#update-a-team-legacy */ - "POST /repos/:owner/:repo/hooks/:hook_id/tests": { - parameters: ReposTestPushHookEndpoint; - request: ReposTestPushHookRequestOptions; - response: OctokitResponse; - }; + "PATCH /teams/{team_id}": Operation<"/teams/{team_id}", "patch">; /** - * @see https://developer.github.com/v3/issues/#create-an-issue + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-legacy */ - "POST /repos/:owner/:repo/issues": { - parameters: IssuesCreateEndpoint; - request: IssuesCreateRequestOptions; - response: OctokitResponse; - }; + "PATCH /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "patch">; /** - * @see https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-comment-legacy */ - "POST /repos/:owner/:repo/issues/:issue_number/assignees": { - parameters: IssuesAddAssigneesEndpoint; - request: IssuesAddAssigneesRequestOptions; - response: OctokitResponse; - }; + "PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "patch">; /** - * @see https://developer.github.com/v3/issues/comments/#create-a-comment + * @see https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections-legacy */ - "POST /repos/:owner/:repo/issues/:issue_number/comments": { - parameters: IssuesCreateCommentEndpoint; - request: IssuesCreateCommentRequestOptions; - response: OctokitResponse; - }; + "PATCH /teams/{team_id}/team-sync/group-mappings": Operation<"/teams/{team_id}/team-sync/group-mappings", "patch">; /** - * @see https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue + * @see https://docs.github.com/v3/users/#update-the-authenticated-user */ - "POST /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesAddLabelsEndpoint; - request: IssuesAddLabelsRequestOptions; - response: OctokitResponse; - }; + "PATCH /user": Operation<"/user", "patch">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-an-issue + * @see https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user */ - "POST /repos/:owner/:repo/issues/:issue_number/reactions": { - parameters: ReactionsCreateForIssueEndpoint; - request: ReactionsCreateForIssueRequestOptions; - response: OctokitResponse; - }; + "PATCH /user/email/visibility": Operation<"/user/email/visibility", "patch">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment + * @see https://docs.github.com/rest/reference/orgs#update-an-organization-membership-for-the-authenticated-user */ - "POST /repos/:owner/:repo/issues/comments/:comment_id/reactions": { - parameters: ReactionsCreateForIssueCommentEndpoint; - request: ReactionsCreateForIssueCommentRequestOptions; - response: OctokitResponse; - }; + "PATCH /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "patch">; /** - * @see https://developer.github.com/v3/repos/keys/#add-a-new-deploy-key + * @see https://docs.github.com/rest/reference/repos#accept-a-repository-invitation */ - "POST /repos/:owner/:repo/keys": { - parameters: ReposAddDeployKeyEndpoint; - request: ReposAddDeployKeyRequestOptions; - response: OctokitResponse; - }; + "PATCH /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "patch">; /** - * @see https://developer.github.com/v3/issues/labels/#create-a-label + * @see https://docs.github.com/v3/apps/#create-a-github-app-from-a-manifest */ - "POST /repos/:owner/:repo/labels": { - parameters: IssuesCreateLabelEndpoint; - request: IssuesCreateLabelRequestOptions; - response: OctokitResponse; - }; + "POST /app-manifests/{code}/conversions": Operation<"/app-manifests/{code}/conversions", "post">; /** - * @see https://developer.github.com/v3/repos/merging/#perform-a-merge + * @see https://docs.github.com/v3/apps/#create-an-installation-access-token-for-an-app */ - "POST /repos/:owner/:repo/merges": { - parameters: ReposMergeEndpoint; - request: ReposMergeRequestOptions; - response: OctokitResponse; - }; + "POST /app/installations/{installation_id}/access_tokens": Operation<"/app/installations/{installation_id}/access_tokens", "post">; /** - * @see https://developer.github.com/v3/issues/milestones/#create-a-milestone + * @see https://docs.github.com/rest/reference/apps#check-a-token */ - "POST /repos/:owner/:repo/milestones": { - parameters: IssuesCreateMilestoneEndpoint; - request: IssuesCreateMilestoneRequestOptions; - response: OctokitResponse; - }; + "POST /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "post">; /** - * @see https://developer.github.com/v3/repos/pages/#enable-a-pages-site + * @see https://docs.github.com/rest/reference/apps#reset-an-authorization */ - "POST /repos/:owner/:repo/pages": { - parameters: ReposEnablePagesSiteEndpoint; - request: ReposEnablePagesSiteRequestOptions; - response: OctokitResponse; - }; + "POST /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "post">; /** - * @see https://developer.github.com/v3/repos/pages/#request-a-page-build + * @see https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization */ - "POST /repos/:owner/:repo/pages/builds": { - parameters: ReposRequestPageBuildEndpoint; - request: ReposRequestPageBuildRequestOptions; - response: OctokitResponse; - }; + "POST /authorizations": Operation<"/authorizations", "post">; /** - * @see https://developer.github.com/v3/projects/#create-a-repository-project + * @see https://docs.github.com/rest/reference/apps#create-a-content-attachment */ - "POST /repos/:owner/:repo/projects": { - parameters: ProjectsCreateForRepoEndpoint; - request: ProjectsCreateForRepoRequestOptions; - response: OctokitResponse; - }; + "POST /content_references/{content_reference_id}/attachments": Operation<"/content_references/{content_reference_id}/attachments", "post", "corsair">; /** - * @see https://developer.github.com/v3/pulls/#create-a-pull-request + * @see https://docs.github.com/rest/reference/enterprise-admin#create-self-hosted-runner-group-for-an-enterprise */ - "POST /repos/:owner/:repo/pulls": { - parameters: PullsCreateEndpoint; - request: PullsCreateRequestOptions; - response: OctokitResponse; - }; + "POST /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "post">; /** - * @see https://developer.github.com/v3/pulls/comments/#create-a-comment + * @see https://docs.github.com/rest/reference/enterprise-admin#create-a-registration-token-for-an-enterprise */ - "POST /repos/:owner/:repo/pulls/:pull_number/comments": { - parameters: PullsCreateCommentEndpoint; - request: PullsCreateCommentRequestOptions; - response: OctokitResponse; - }; + "POST /enterprises/{enterprise}/actions/runners/registration-token": Operation<"/enterprises/{enterprise}/actions/runners/registration-token", "post">; /** - * @see https://developer.github.com/v3/pulls/comments/#create-a-review-comment-reply + * @see https://docs.github.com/rest/reference/enterprise-admin#create-a-remove-token-for-an-enterprise */ - "POST /repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies": { - parameters: PullsCreateReviewCommentReplyEndpoint; - request: PullsCreateReviewCommentReplyRequestOptions; - response: OctokitResponse; - }; + "POST /enterprises/{enterprise}/actions/runners/remove-token": Operation<"/enterprises/{enterprise}/actions/runners/remove-token", "post">; /** - * @see https://developer.github.com/v3/pulls/review_requests/#create-a-review-request + * @see https://docs.github.com/v3/gists/#create-a-gist */ - "POST /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { - parameters: PullsCreateReviewRequestEndpoint; - request: PullsCreateReviewRequestRequestOptions; - response: OctokitResponse; - }; + "POST /gists": Operation<"/gists", "post">; /** - * @see https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review + * @see https://docs.github.com/rest/reference/gists#create-a-gist-comment */ - "POST /repos/:owner/:repo/pulls/:pull_number/reviews": { - parameters: PullsCreateReviewEndpoint; - request: PullsCreateReviewRequestOptions; - response: OctokitResponse; - }; + "POST /gists/{gist_id}/comments": Operation<"/gists/{gist_id}/comments", "post">; /** - * @see https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review + * @see https://docs.github.com/v3/gists/#fork-a-gist */ - "POST /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events": { - parameters: PullsSubmitReviewEndpoint; - request: PullsSubmitReviewRequestOptions; - response: OctokitResponse; - }; + "POST /gists/{gist_id}/forks": Operation<"/gists/{gist_id}/forks", "post">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment + * @see https://docs.github.com/v3/markdown/#render-a-markdown-document */ - "POST /repos/:owner/:repo/pulls/comments/:comment_id/reactions": { - parameters: ReactionsCreateForPullRequestReviewCommentEndpoint; - request: ReactionsCreateForPullRequestReviewCommentRequestOptions; - response: OctokitResponse; - }; + "POST /markdown": Operation<"/markdown", "post">; /** - * @see https://developer.github.com/v3/repos/releases/#create-a-release + * @see https://docs.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode */ - "POST /repos/:owner/:repo/releases": { - parameters: ReposCreateReleaseEndpoint; - request: ReposCreateReleaseRequestOptions; - response: OctokitResponse; - }; + "POST /markdown/raw": Operation<"/markdown/raw", "post">; /** - * @see https://developer.github.com/v3/repos/releases/#upload-a-release-asset + * @see https://docs.github.com/rest/reference/actions#create-a-self-hosted-runner-group-for-an-organization */ - "POST /repos/:owner/:repo/releases/:release_id/assets{?name,label}": { - parameters: ReposUploadReleaseAssetEndpoint; - request: ReposUploadReleaseAssetRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/actions/runner-groups": Operation<"/orgs/{org}/actions/runner-groups", "post">; /** - * @see https://developer.github.com/v3/repos/statuses/#create-a-status + * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-organization */ - "POST /repos/:owner/:repo/statuses/:sha": { - parameters: ReposCreateStatusEndpoint; - request: ReposCreateStatusRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/actions/runners/registration-token": Operation<"/orgs/{org}/actions/runners/registration-token", "post">; /** - * @see https://developer.github.com/v3/repos/#transfer-a-repository + * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-an-organization */ - "POST /repos/:owner/:repo/transfer": { - parameters: ReposTransferEndpoint; - request: ReposTransferRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/actions/runners/remove-token": Operation<"/orgs/{org}/actions/runners/remove-token", "post">; /** - * @see https://developer.github.com/v3/repos/#create-a-repository-using-a-template + * @see https://docs.github.com/rest/reference/orgs#create-an-organization-webhook */ - "POST /repos/:template_owner/:template_repo/generate": { - parameters: ReposCreateUsingTemplateEndpoint; - request: ReposCreateUsingTemplateRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/hooks": Operation<"/orgs/{org}/hooks", "post">; /** - * @see https://developer.github.com/v3/scim/#provision-and-invite-users + * @see https://docs.github.com/rest/reference/orgs#ping-an-organization-webhook */ - "POST /scim/v2/organizations/:org/Users": { - parameters: ScimProvisionAndInviteUsersEndpoint; - request: ScimProvisionAndInviteUsersRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/hooks/{hook_id}/pings": Operation<"/orgs/{org}/hooks/{hook_id}/pings", "post">; /** - * @see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy + * @see https://docs.github.com/rest/reference/orgs#create-an-organization-invitation */ - "POST /teams/:team_id/discussions": { - parameters: TeamsCreateDiscussionLegacyEndpoint; - request: TeamsCreateDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "post">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy + * @see https://docs.github.com/rest/reference/migrations#start-an-organization-migration */ - "POST /teams/:team_id/discussions/:discussion_number/comments": { - parameters: TeamsCreateDiscussionCommentLegacyEndpoint; - request: TeamsCreateDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "post">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy + * @see https://docs.github.com/v3/projects/#create-an-organization-project */ - "POST /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionCommentLegacyEndpoint; - request: ReactionsCreateForTeamDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "post", "inertia">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy + * @see https://docs.github.com/v3/repos/#create-an-organization-repository */ - "POST /teams/:team_id/discussions/:discussion_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionLegacyEndpoint; - request: ReactionsCreateForTeamDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/repos": Operation<"/orgs/{org}/repos", "post">; /** - * @see https://developer.github.com/v3/users/emails/#add-email-addresses + * @see https://docs.github.com/v3/teams/#create-a-team */ - "POST /user/emails": { - parameters: UsersAddEmailsEndpoint; - request: UsersAddEmailsRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/teams": Operation<"/orgs/{org}/teams", "post">; /** - * @see https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key + * @see https://docs.github.com/rest/reference/teams#create-a-discussion */ - "POST /user/gpg_keys": { - parameters: UsersCreateGpgKeyEndpoint; - request: UsersCreateGpgKeyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/teams/{team_slug}/discussions": Operation<"/orgs/{org}/teams/{team_slug}/discussions", "post">; /** - * @see https://developer.github.com/v3/users/keys/#create-a-public-key + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-comment */ - "POST /user/keys": { - parameters: UsersCreatePublicKeyEndpoint; - request: UsersCreatePublicKeyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "post">; /** - * @see https://developer.github.com/v3/migrations/users/#start-a-user-migration + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment */ - "POST /user/migrations": { - parameters: MigrationsStartForAuthenticatedUserEndpoint; - request: MigrationsStartForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "post", "squirrel-girl">; /** - * @see https://developer.github.com/v3/projects/#create-a-user-project + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion */ - "POST /user/projects": { - parameters: ProjectsCreateForAuthenticatedUserEndpoint; - request: ProjectsCreateForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "post", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/#create-a-repository-for-the-authenticated-user + * @see https://docs.github.com/rest/reference/projects#move-a-project-card */ - "POST /user/repos": { - parameters: ReposCreateForAuthenticatedUserEndpoint; - request: ReposCreateForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "POST /projects/columns/cards/{card_id}/moves": Operation<"/projects/columns/cards/{card_id}/moves", "post", "inertia">; /** - * @see https://developer.github.com/v3/apps/#suspend-an-installation + * @see https://docs.github.com/rest/reference/projects#create-a-project-card */ - "PUT /app/installations/:installation_id/suspended": { - parameters: AppsSuspendInstallationEndpoint; - request: AppsSuspendInstallationRequestOptions; - response: OctokitResponse; - }; + "POST /projects/columns/{column_id}/cards": Operation<"/projects/columns/{column_id}/cards", "post", "inertia">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app + * @see https://docs.github.com/rest/reference/projects#move-a-project-column */ - "PUT /authorizations/clients/:client_id": { - parameters: OauthAuthorizationsGetOrCreateAuthorizationForAppEndpoint; - request: OauthAuthorizationsGetOrCreateAuthorizationForAppRequestOptions; - response: OctokitResponse; - }; + "POST /projects/columns/{column_id}/moves": Operation<"/projects/columns/{column_id}/moves", "post", "inertia">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint + * @see https://docs.github.com/rest/reference/projects#create-a-project-column */ - "PUT /authorizations/clients/:client_id/:fingerprint": { - parameters: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintEndpoint; - request: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequestOptions; - response: OctokitResponse; - }; + "POST /projects/{project_id}/columns": Operation<"/projects/{project_id}/columns", "post", "inertia">; /** - * @see https://developer.github.com/v3/gists/#star-a-gist + * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-a-repository */ - "PUT /gists/:gist_id/star": { - parameters: GistsStarEndpoint; - request: GistsStarRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/actions/runners/registration-token": Operation<"/repos/{owner}/{repo}/actions/runners/registration-token", "post">; /** - * @see https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read + * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-a-repository */ - "PUT /notifications": { - parameters: ActivityMarkNotificationsAsReadEndpoint; - request: ActivityMarkNotificationsAsReadRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/actions/runners/remove-token": Operation<"/repos/{owner}/{repo}/actions/runners/remove-token", "post">; /** - * @see https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription + * @see https://docs.github.com/rest/reference/actions#cancel-a-workflow-run */ - "PUT /notifications/threads/:thread_id/subscription": { - parameters: ActivitySetThreadSubscriptionEndpoint; - request: ActivitySetThreadSubscriptionRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/cancel", "post">; /** - * @see https://developer.github.com/v3/orgs/blocking/#block-a-user + * @see https://docs.github.com/rest/reference/actions#re-run-a-workflow */ - "PUT /orgs/:org/blocks/:username": { - parameters: OrgsBlockUserEndpoint; - request: OrgsBlockUserRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun", "post">; /** - * @see https://developer.github.com/v3/interactions/orgs/#add-or-update-interaction-restrictions-for-an-organization + * @see https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event */ - "PUT /orgs/:org/interaction-limits": { - parameters: InteractionsAddOrUpdateRestrictionsForOrgEndpoint; - request: InteractionsAddOrUpdateRestrictionsForOrgRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches", "post">; /** - * @see https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership + * @see https://docs.github.com/rest/reference/repos#set-admin-branch-protection */ - "PUT /orgs/:org/memberships/:username": { - parameters: OrgsAddOrUpdateMembershipEndpoint; - request: OrgsAddOrUpdateMembershipRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "post">; /** - * @see https://developer.github.com/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator + * @see https://docs.github.com/rest/reference/repos#create-commit-signature-protection */ - "PUT /orgs/:org/outside_collaborators/:username": { - parameters: OrgsConvertMemberToOutsideCollaboratorEndpoint; - request: OrgsConvertMemberToOutsideCollaboratorRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "post", "zzzax">; /** - * @see https://developer.github.com/v3/orgs/members/#publicize-a-users-membership + * @see https://docs.github.com/rest/reference/repos#add-status-check-contexts */ - "PUT /orgs/:org/public_members/:username": { - parameters: OrgsPublicizeMembershipEndpoint; - request: OrgsPublicizeMembershipRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "post">; /** - * @see https://developer.github.com/v3/teams/members/#add-or-update-team-membership + * @see https://docs.github.com/rest/reference/repos#add-app-access-restrictions */ - "PUT /orgs/:org/teams/:team_slug/memberships/:username": { - parameters: TeamsAddOrUpdateMembershipInOrgEndpoint; - request: TeamsAddOrUpdateMembershipInOrgRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "post">; /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-project + * @see https://docs.github.com/rest/reference/repos#add-team-access-restrictions */ - "PUT /orgs/:org/teams/:team_slug/projects/:project_id": { - parameters: TeamsAddOrUpdateProjectInOrgEndpoint; - request: TeamsAddOrUpdateProjectInOrgRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "post">; /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-repository + * @see https://docs.github.com/rest/reference/repos#add-user-access-restrictions */ - "PUT /orgs/:org/teams/:team_slug/repos/:owner/:repo": { - parameters: TeamsAddOrUpdateRepoInOrgEndpoint; - request: TeamsAddOrUpdateRepoInOrgRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "post">; /** - * @see https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator + * @see https://docs.github.com/rest/reference/checks#create-a-check-run */ - "PUT /projects/:project_id/collaborators/:username": { - parameters: ProjectsAddCollaboratorEndpoint; - request: ProjectsAddCollaboratorRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/check-runs": Operation<"/repos/{owner}/{repo}/check-runs", "post">; /** - * @see https://developer.github.com/v3/actions/secrets/#create-or-update-a-secret-for-a-repository + * @see https://docs.github.com/rest/reference/checks#create-a-check-suite */ - "PUT /repos/:owner/:repo/actions/secrets/:name": { - parameters: ActionsCreateOrUpdateSecretForRepoEndpoint; - request: ActionsCreateOrUpdateSecretForRepoRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/check-suites": Operation<"/repos/{owner}/{repo}/check-suites", "post">; /** - * @see https://developer.github.com/v3/repos/#enable-automated-security-fixes + * @see https://docs.github.com/rest/reference/checks#rerequest-a-check-suite */ - "PUT /repos/:owner/:repo/automated-security-fixes": { - parameters: ReposEnableAutomatedSecurityFixesEndpoint; - request: ReposEnableAutomatedSecurityFixesRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest", "post">; /** - * @see https://developer.github.com/v3/repos/branches/#update-branch-protection + * @see https://docs.github.com/v3/code-scanning/#upload-a-sarif-analysis */ - "PUT /repos/:owner/:repo/branches/:branch/protection": { - parameters: ReposUpdateBranchProtectionEndpoint; - request: ReposUpdateBranchProtectionRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/code-scanning/sarifs": Operation<"/repos/{owner}/{repo}/code-scanning/sarifs", "post">; /** - * @see https://developer.github.com/v3/repos/branches/#replace-required-status-checks-contexts-of-protected-branch + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-commit-comment */ - "PUT /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposReplaceProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "post", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/branches/#replace-app-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/repos#create-a-commit-comment */ - "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposReplaceProtectedBranchAppRestrictionsEndpoint; - request: ReposReplaceProtectedBranchAppRestrictionsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "post">; /** - * @see https://developer.github.com/v3/repos/branches/#replace-team-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/repos#create-a-deployment */ - "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposReplaceProtectedBranchTeamRestrictionsEndpoint; - request: ReposReplaceProtectedBranchTeamRestrictionsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "post">; /** - * @see https://developer.github.com/v3/repos/branches/#replace-user-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/repos#create-a-deployment-status */ - "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposReplaceProtectedBranchUserRestrictionsEndpoint; - request: ReposReplaceProtectedBranchUserRestrictionsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "post">; /** - * @see https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator + * @see https://docs.github.com/v3/repos/#create-a-repository-dispatch-event */ - "PUT /repos/:owner/:repo/collaborators/:username": { - parameters: ReposAddCollaboratorEndpoint; - request: ReposAddCollaboratorRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/dispatches": Operation<"/repos/{owner}/{repo}/dispatches", "post">; /** - * @see https://developer.github.com/v3/repos/contents/#create-or-update-a-file + * @see https://docs.github.com/rest/reference/repos#create-a-fork */ - "PUT /repos/:owner/:repo/contents/:path": { - parameters: ReposCreateOrUpdateFileEndpoint; - request: ReposCreateOrUpdateFileRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/forks": Operation<"/repos/{owner}/{repo}/forks", "post">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#start-an-import + * @see https://docs.github.com/rest/reference/git#create-a-blob */ - "PUT /repos/:owner/:repo/import": { - parameters: MigrationsStartImportEndpoint; - request: MigrationsStartImportRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/git/blobs": Operation<"/repos/{owner}/{repo}/git/blobs", "post">; /** - * @see https://developer.github.com/v3/interactions/repos/#add-or-update-interaction-restrictions-for-a-repository + * @see https://docs.github.com/rest/reference/git#create-a-commit */ - "PUT /repos/:owner/:repo/interaction-limits": { - parameters: InteractionsAddOrUpdateRestrictionsForRepoEndpoint; - request: InteractionsAddOrUpdateRestrictionsForRepoRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/git/commits": Operation<"/repos/{owner}/{repo}/git/commits", "post">; /** - * @see https://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue + * @see https://docs.github.com/rest/reference/git#create-a-reference */ - "PUT /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesReplaceAllLabelsEndpoint; - request: IssuesReplaceAllLabelsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/git/refs": Operation<"/repos/{owner}/{repo}/git/refs", "post">; /** - * @see https://developer.github.com/v3/issues/#lock-an-issue + * @see https://docs.github.com/rest/reference/git#create-a-tag-object */ - "PUT /repos/:owner/:repo/issues/:issue_number/lock": { - parameters: IssuesLockEndpoint; - request: IssuesLockRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/git/tags": Operation<"/repos/{owner}/{repo}/git/tags", "post">; /** - * @see https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read + * @see https://docs.github.com/rest/reference/git#create-a-tree */ - "PUT /repos/:owner/:repo/notifications": { - parameters: ActivityMarkRepoNotificationsAsReadEndpoint; - request: ActivityMarkRepoNotificationsAsReadRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/git/trees": Operation<"/repos/{owner}/{repo}/git/trees", "post">; /** - * @see https://developer.github.com/v3/repos/pages/#update-information-about-a-pages-site + * @see https://docs.github.com/rest/reference/repos#create-a-repository-webhook */ - "PUT /repos/:owner/:repo/pages": { - parameters: ReposUpdateInformationAboutPagesSiteEndpoint; - request: ReposUpdateInformationAboutPagesSiteRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "post">; /** - * @see https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button + * @see https://docs.github.com/rest/reference/repos#ping-a-repository-webhook */ - "PUT /repos/:owner/:repo/pulls/:pull_number/merge": { - parameters: PullsMergeEndpoint; - request: PullsMergeRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/hooks/{hook_id}/pings": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/pings", "post">; /** - * @see https://developer.github.com/v3/pulls/reviews/#update-a-pull-request-review + * @see https://docs.github.com/rest/reference/repos#test-the-push-repository-webhook */ - "PUT /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { - parameters: PullsUpdateReviewEndpoint; - request: PullsUpdateReviewRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/hooks/{hook_id}/tests": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/tests", "post">; /** - * @see https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review + * @see https://docs.github.com/v3/issues/#create-an-issue */ - "PUT /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals": { - parameters: PullsDismissReviewEndpoint; - request: PullsDismissReviewRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues": Operation<"/repos/{owner}/{repo}/issues", "post">; /** - * @see https://developer.github.com/v3/pulls/#update-a-pull-request-branch + * @see https://docs.github.com/v3/reactions/#create-reaction-for-an-issue-comment */ - "PUT /repos/:owner/:repo/pulls/:pull_number/update-branch": { - parameters: PullsUpdateBranchEndpoint; - request: PullsUpdateBranchRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "post", "squirrel-girl">; /** - * @see https://developer.github.com/v3/activity/watching/#set-a-repository-subscription + * @see https://docs.github.com/rest/reference/issues#add-assignees-to-an-issue */ - "PUT /repos/:owner/:repo/subscription": { - parameters: ActivitySetRepoSubscriptionEndpoint; - request: ActivitySetRepoSubscriptionRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees", "post">; /** - * @see https://developer.github.com/v3/repos/#replace-all-repository-topics + * @see https://docs.github.com/rest/reference/issues#create-an-issue-comment */ - "PUT /repos/:owner/:repo/topics": { - parameters: ReposReplaceAllTopicsEndpoint; - request: ReposReplaceAllTopicsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues/{issue_number}/comments": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/comments", "post">; /** - * @see https://developer.github.com/v3/repos/#enable-vulnerability-alerts + * @see https://docs.github.com/rest/reference/issues#add-labels-to-an-issue */ - "PUT /repos/:owner/:repo/vulnerability-alerts": { - parameters: ReposEnableVulnerabilityAlertsEndpoint; - request: ReposEnableVulnerabilityAlertsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "post">; /** - * @see https://developer.github.com/v3/scim/#replace-a-provisioned-users-information + * @see https://docs.github.com/v3/reactions/#create-reaction-for-an-issue */ - "PUT /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimReplaceProvisionedUserInformationEndpoint; - request: ScimReplaceProvisionedUserInformationRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "post", "squirrel-girl">; /** - * @see https://developer.github.com/v3/teams/members/#add-team-member-legacy + * @see https://docs.github.com/rest/reference/repos#create-a-deploy-key */ - "PUT /teams/:team_id/members/:username": { - parameters: TeamsAddMemberLegacyEndpoint; - request: TeamsAddMemberLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "post">; /** - * @see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy + * @see https://docs.github.com/rest/reference/issues#create-a-label */ - "PUT /teams/:team_id/memberships/:username": { - parameters: TeamsAddOrUpdateMembershipLegacyEndpoint; - request: TeamsAddOrUpdateMembershipLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "post">; /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy + * @see https://docs.github.com/rest/reference/repos#merge-a-branch */ - "PUT /teams/:team_id/projects/:project_id": { - parameters: TeamsAddOrUpdateProjectLegacyEndpoint; - request: TeamsAddOrUpdateProjectLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/merges": Operation<"/repos/{owner}/{repo}/merges", "post">; /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy + * @see https://docs.github.com/rest/reference/issues#create-a-milestone */ - "PUT /teams/:team_id/repos/:owner/:repo": { - parameters: TeamsAddOrUpdateRepoLegacyEndpoint; - request: TeamsAddOrUpdateRepoLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "post">; /** - * @see https://developer.github.com/v3/users/blocking/#block-a-user + * @see https://docs.github.com/rest/reference/repos#create-a-github-pages-site */ - "PUT /user/blocks/:username": { - parameters: UsersBlockEndpoint; - request: UsersBlockRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "post", "switcheroo">; /** - * @see https://developer.github.com/v3/users/followers/#follow-a-user + * @see https://docs.github.com/rest/reference/repos#request-a-github-pages-build */ - "PUT /user/following/:username": { - parameters: UsersFollowEndpoint; - request: UsersFollowRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "post">; /** - * @see https://developer.github.com/v3/apps/installations/#add-repository-to-installation + * @see https://docs.github.com/v3/projects/#create-a-repository-project */ - "PUT /user/installations/:installation_id/repositories/:repository_id": { - parameters: AppsAddRepoToInstallationEndpoint; - request: AppsAddRepoToInstallationRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/projects": Operation<"/repos/{owner}/{repo}/projects", "post", "inertia">; /** - * @see https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user + * @see https://docs.github.com/v3/pulls/#create-a-pull-request */ - "PUT /user/starred/:owner/:repo": { - parameters: ActivityStarRepoForAuthenticatedUserEndpoint; - request: ActivityStarRepoForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/pulls": Operation<"/repos/{owner}/{repo}/pulls", "post">; /** - * @see https://developer.github.com/v3/activity/watching/#watch-a-repository-legacy + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment */ - "PUT /user/subscriptions/:owner/:repo": { - parameters: ActivityWatchRepoLegacyEndpoint; - request: ActivityWatchRepoLegacyRequestOptions; - response: OctokitResponse; - }; -} -declare type AppsGetAuthenticatedEndpoint = {} & RequiredPreview<"machine-man">; -declare type AppsGetAuthenticatedRequestOptions = { - method: "GET"; - url: "/app"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetAuthenticatedResponseDataPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsGetAuthenticatedResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsGetAuthenticatedResponseData = { - id: number; - slug: string; - node_id: string; - owner: AppsGetAuthenticatedResponseDataOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: AppsGetAuthenticatedResponseDataPermissions; - events: Array; - installations_count: number; -}; -declare type AppsCreateFromManifestEndpoint = { + "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "post", "squirrel-girl">; /** - * code parameter + * @see https://docs.github.com/rest/reference/pulls#create-a-review-comment-for-a-pull-request */ - code: string; -}; -declare type AppsCreateFromManifestRequestOptions = { - method: "POST"; - url: "/app-manifests/:code/conversions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateFromManifestResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCreateFromManifestResponseData = { - id: number; - node_id: string; - owner: AppsCreateFromManifestResponseDataOwner; - name: string; - description: null; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - client_id: string; - client_secret: string; - webhook_secret: string; - pem: string; -}; -declare type AppsListInstallationsEndpoint = { + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments", "post">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/pulls#create-a-reply-for-a-review-comment */ - per_page?: number; + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies", "post">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListInstallationsRequestOptions = { - method: "GET"; - url: "/app/installations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsListInstallationsResponseDataItemAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsListInstallationsResponseDataItem = { - id: number; - account: AppsListInstallationsResponseDataItemAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsListInstallationsResponseDataItemPermissions; - events: Array; - single_file_name: string; - repository_selection: string; -}; -declare type AppsListInstallationsResponseData = Array; -declare type AppsGetInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsGetInstallationRequestOptions = { - method: "GET"; - url: "/app/installations/:installation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetInstallationResponseDataPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsGetInstallationResponseDataAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsGetInstallationResponseData = { - id: number; - account: AppsGetInstallationResponseDataAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetInstallationResponseDataPermissions; - events: Array; - single_file_name: string; - repository_selection: string; -}; -declare type AppsDeleteInstallationEndpoint = { + "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "post">; /** - * installation_id parameter + * @see https://docs.github.com/rest/reference/pulls#create-a-review-for-a-pull-request */ - installation_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsDeleteInstallationRequestOptions = { - method: "DELETE"; - url: "/app/installations/:installation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateInstallationTokenEndpoint = { + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "post">; /** - * installation_id parameter + * @see https://docs.github.com/rest/reference/pulls#submit-a-review-for-a-pull-request */ - installation_id: number; + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events", "post">; /** - * The `id`s of the repositories that the installation token can access. Providing repository `id`s restricts the access of an installation token to specific repositories. You can use the "[List repositories](https://developer.github.com/v3/apps/installations/#list-repositories)" endpoint to get the `id` of all repositories that an installation can access. For example, you can select specific repositories when creating an installation token to restrict the number of repositories that can be cloned using the token. + * @see https://docs.github.com/rest/reference/repos#create-a-release */ - repository_ids?: number[]; + "POST /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "post">; /** - * The permissions granted to the access token. The permissions object includes the permission names and their access type. For a complete list of permissions and allowable values, see "[GitHub App permissions](https://developer.github.com/apps/building-github-apps/creating-github-apps-using-url-parameters/#github-app-permissions)." + * @see https://docs.github.com/rest/reference/repos#create-a-commit-status */ - permissions?: AppsCreateInstallationTokenParamsPermissions; -} & RequiredPreview<"machine-man">; -declare type AppsCreateInstallationTokenRequestOptions = { - method: "POST"; - url: "/app/installations/:installation_id/access_tokens"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateInstallationTokenResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type AppsCreateInstallationTokenResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCreateInstallationTokenResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsCreateInstallationTokenResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: AppsCreateInstallationTokenResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type AppsCreateInstallationTokenResponseDataPermissions = { - issues: string; - contents: string; -}; -declare type AppsCreateInstallationTokenResponseData = { - token: string; - expires_at: string; - permissions: AppsCreateInstallationTokenResponseDataPermissions; - repositories: Array; -}; -declare type AppsSuspendInstallationEndpoint = { + "POST /repos/{owner}/{repo}/statuses/{sha}": Operation<"/repos/{owner}/{repo}/statuses/{sha}", "post">; /** - * installation_id parameter + * @see https://docs.github.com/v3/repos/#transfer-a-repository */ - installation_id: number; -}; -declare type AppsSuspendInstallationRequestOptions = { - method: "PUT"; - url: "/app/installations/:installation_id/suspended"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsUnsuspendInstallationEndpoint = { + "POST /repos/{owner}/{repo}/transfer": Operation<"/repos/{owner}/{repo}/transfer", "post">; /** - * installation_id parameter + * @see https://docs.github.com/v3/repos/#create-a-repository-using-a-template */ - installation_id: number; -}; -declare type AppsUnsuspendInstallationRequestOptions = { - method: "DELETE"; - url: "/app/installations/:installation_id/suspended"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsListGrantsEndpoint = { + "POST /repos/{template_owner}/{template_repo}/generate": Operation<"/repos/{template_owner}/{template_repo}/generate", "post", "baptiste">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/enterprise-admin#provision-a-scim-enterprise-group-and-invite-users */ - per_page?: number; + "POST /scim/v2/enterprises/{enterprise}/Groups": Operation<"/scim/v2/enterprises/{enterprise}/Groups", "post">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/enterprise-admin#provision-and-invite-a-scim-enterprise-user */ - page?: number; -}; -declare type OauthAuthorizationsListGrantsRequestOptions = { - method: "GET"; - url: "/applications/grants"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsListGrantsResponseDataItemApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsListGrantsResponseDataItem = { - id: number; - url: string; - app: OauthAuthorizationsListGrantsResponseDataItemApp; - created_at: string; - updated_at: string; - scopes: Array; -}; -declare type OauthAuthorizationsListGrantsResponseData = Array; -declare type OauthAuthorizationsGetGrantEndpoint = { + "POST /scim/v2/enterprises/{enterprise}/Users": Operation<"/scim/v2/enterprises/{enterprise}/Users", "post">; /** - * grant_id parameter + * @see https://docs.github.com/v3/scim/#provision-and-invite-a-scim-user */ - grant_id: number; -}; -declare type OauthAuthorizationsGetGrantRequestOptions = { - method: "GET"; - url: "/applications/grants/:grant_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetGrantResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetGrantResponseData = { - id: number; - url: string; - app: OauthAuthorizationsGetGrantResponseDataApp; - created_at: string; - updated_at: string; - scopes: Array; -}; -declare type OauthAuthorizationsDeleteGrantEndpoint = { + "POST /scim/v2/organizations/{org}/Users": Operation<"/scim/v2/organizations/{org}/Users", "post">; /** - * grant_id parameter + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-legacy */ - grant_id: number; -}; -declare type OauthAuthorizationsDeleteGrantRequestOptions = { - method: "DELETE"; - url: "/applications/grants/:grant_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsDeleteAuthorizationEndpoint = { + "POST /teams/{team_id}/discussions": Operation<"/teams/{team_id}/discussions", "post">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-comment-legacy */ - client_id: string; + "POST /teams/{team_id}/discussions/{discussion_number}/comments": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments", "post">; /** - * The OAuth access token used to authenticate to the GitHub API. + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy */ - access_token?: string; -}; -declare type AppsDeleteAuthorizationRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/grant"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsRevokeGrantForApplicationEndpoint = { + "POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "post", "squirrel-girl">; /** - * client_id parameter + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy */ - client_id: string; + "POST /teams/{team_id}/discussions/{discussion_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/reactions", "post", "squirrel-girl">; /** - * access_token parameter + * @see https://docs.github.com/rest/reference/users#add-an-email-address-for-the-authenticated-user */ - access_token: string; -}; -declare type AppsRevokeGrantForApplicationRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/grants/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckTokenEndpoint = { + "POST /user/emails": Operation<"/user/emails", "post">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/users#create-a-gpg-key-for-the-authenticated-user */ - client_id: string; + "POST /user/gpg_keys": Operation<"/user/gpg_keys", "post">; /** - * The OAuth access token used to authenticate to the GitHub API. + * @see https://docs.github.com/rest/reference/users#create-a-public-ssh-key-for-the-authenticated-user */ - access_token?: string; -}; -declare type AppsCheckTokenRequestOptions = { - method: "POST"; - url: "/applications/:client_id/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckTokenResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCheckTokenResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsCheckTokenResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsCheckTokenResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsCheckTokenResponseDataUser; -}; -declare type AppsResetTokenEndpoint = { + "POST /user/keys": Operation<"/user/keys", "post">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/migrations#start-a-user-migration */ - client_id: string; + "POST /user/migrations": Operation<"/user/migrations", "post">; /** - * The OAuth access token used to authenticate to the GitHub API. + * @see https://docs.github.com/v3/projects/#create-a-user-project */ - access_token?: string; -}; -declare type AppsResetTokenRequestOptions = { - method: "PATCH"; - url: "/applications/:client_id/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsResetTokenResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsResetTokenResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsResetTokenResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsResetTokenResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsResetTokenResponseDataUser; -}; -declare type AppsDeleteTokenEndpoint = { + "POST /user/projects": Operation<"/user/projects", "post", "inertia">; /** - * client_id parameter + * @see https://docs.github.com/v3/repos/#create-a-repository-for-the-authenticated-user */ - client_id: string; + "POST /user/repos": Operation<"/user/repos", "post">; /** - * The OAuth access token used to authenticate to the GitHub API. + * @see https://docs.github.com/rest/reference/repos#upload-a-release-asset */ - access_token?: string; -}; -declare type AppsDeleteTokenRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckAuthorizationEndpoint = { + "POST {origin}/repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}": Operation<"/repos/{owner}/{repo}/releases/{release_id}/assets", "post">; /** - * client_id parameter + * @see https://docs.github.com/v3/apps/#suspend-an-app-installation */ - client_id: string; + "PUT /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "put">; /** - * access_token parameter + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app */ - access_token: string; -}; -declare type AppsCheckAuthorizationRequestOptions = { - method: "GET"; - url: "/applications/:client_id/tokens/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckAuthorizationResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCheckAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsCheckAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsCheckAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsCheckAuthorizationResponseDataUser; -}; -declare type AppsResetAuthorizationEndpoint = { + "PUT /authorizations/clients/{client_id}": Operation<"/authorizations/clients/{client_id}", "put">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app-and-fingerprint */ - client_id: string; + "PUT /authorizations/clients/{client_id}/{fingerprint}": Operation<"/authorizations/clients/{client_id}/{fingerprint}", "put">; /** - * access_token parameter + * @see https://docs.github.com/rest/reference/enterprise-admin#set-github-actions-permissions-for-an-enterprise */ - access_token: string; -}; -declare type AppsResetAuthorizationRequestOptions = { - method: "POST"; - url: "/applications/:client_id/tokens/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsResetAuthorizationResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsResetAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsResetAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsResetAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsResetAuthorizationResponseDataUser; -}; -declare type AppsRevokeAuthorizationForApplicationEndpoint = { + "PUT /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "put">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/enterprise-admin#set-selected-organizations-enabled-for-github-actions-in-an-enterprise */ - client_id: string; + "PUT /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "put">; /** - * access_token parameter + * @see https://docs.github.com/rest/reference/enterprise-admin#enable-a-selected-organization-for-github-actions-in-an-enterprise */ - access_token: string; -}; -declare type AppsRevokeAuthorizationForApplicationRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/tokens/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetBySlugEndpoint = { + "PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "put">; /** - * app_slug parameter + * @see https://docs.github.com/rest/reference/enterprise-admin#set-allowed-actions-for-an-enterprise */ - app_slug: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetBySlugRequestOptions = { - method: "GET"; - url: "/apps/:app_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetBySlugResponseDataPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsGetBySlugResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsGetBySlugResponseData = { - id: number; - slug: string; - node_id: string; - owner: AppsGetBySlugResponseDataOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: AppsGetBySlugResponseDataPermissions; - events: Array; -}; -declare type OauthAuthorizationsListAuthorizationsEndpoint = { + "PUT /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/enterprise-admin#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise */ - per_page?: number; + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/enterprise-admin#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise */ - page?: number; -}; -declare type OauthAuthorizationsListAuthorizationsRequestOptions = { - method: "GET"; - url: "/authorizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsListAuthorizationsResponseDataItemApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsListAuthorizationsResponseDataItem = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsListAuthorizationsResponseDataItemApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsListAuthorizationsResponseData = Array; -declare type OauthAuthorizationsCreateAuthorizationEndpoint = { + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "put">; /** - * A list of scopes that this authorization is in. + * @see https://docs.github.com/rest/reference/enterprise-admin#set-self-hosted-runners-in-a-group-for-an-enterprise */ - scopes?: string[]; + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "put">; /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. + * @see https://docs.github.com/rest/reference/enterprise-admin#add-a-self-hosted-runner-to-a-group-for-an-enterprise */ - note: string; + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">; /** - * A URL to remind you what app the OAuth token is for. + * @see https://docs.github.com/v3/gists/#star-a-gist */ - note_url?: string; + "PUT /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "put">; /** - * The 20 character OAuth app client key for which to create the token. + * @see https://docs.github.com/rest/reference/activity#mark-notifications-as-read */ - client_id?: string; + "PUT /notifications": Operation<"/notifications", "put">; /** - * The 40 character OAuth app client secret for which to create the token. + * @see https://docs.github.com/rest/reference/activity#set-a-thread-subscription */ - client_secret?: string; + "PUT /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "put">; /** - * A unique string to distinguish an authorization from others created for the same client ID and user. + * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-organization */ - fingerprint?: string; -}; -declare type OauthAuthorizationsCreateAuthorizationRequestOptions = { - method: "POST"; - url: "/authorizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsCreateAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsCreateAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsCreateAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppEndpoint = { + "PUT /orgs/{org}/actions/permissions": Operation<"/orgs/{org}/actions/permissions", "put">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-enabled-for-github-actions-in-an-organization */ - client_id: string; + "PUT /orgs/{org}/actions/permissions/repositories": Operation<"/orgs/{org}/actions/permissions/repositories", "put">; /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. + * @see https://docs.github.com/rest/reference/actions#enable-a-selected-repository-for-github-actions-in-an-organization */ - client_secret: string; + "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "put">; /** - * A list of scopes that this authorization is in. + * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-an-organization */ - scopes?: string[]; + "PUT /orgs/{org}/actions/permissions/selected-actions": Operation<"/orgs/{org}/actions/permissions/selected-actions", "put">; /** - * A note to remind you what the OAuth token is for. + * @see https://docs.github.com/rest/reference/actions#set-repository-access-to-a-self-hosted-runner-group-in-an-organization */ - note?: string; + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "put">; /** - * A URL to remind you what app the OAuth token is for. + * @see https://docs.github.com/rest/reference/actions#add-repository-acess-to-a-self-hosted-runner-group-in-an-organization */ - note_url?: string; + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "put">; /** - * A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint). + * @see https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-organization */ - fingerprint?: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppRequestOptions = { - method: "PUT"; - url: "/authorizations/clients/:client_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsGetOrCreateAuthorizationForAppResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintEndpoint = { + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "put">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-organization */ - client_id: string; + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">; /** - * fingerprint parameter + * @see https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret */ - fingerprint: string; + "PUT /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "put">; /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. + * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret */ - client_secret: string; + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "put">; /** - * A list of scopes that this authorization is in. + * @see https://docs.github.com/rest/reference/actions#add-selected-repository-to-an-organization-secret */ - scopes?: string[]; + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "put">; /** - * A note to remind you what the OAuth token is for. + * @see https://docs.github.com/rest/reference/orgs#block-a-user-from-an-organization */ - note?: string; + "PUT /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "put">; /** - * A URL to remind you what app the OAuth token is for. + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-an-organization */ - note_url?: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequestOptions = { - method: "PUT"; - url: "/authorizations/clients/:client_id/:fingerprint"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsGetAuthorizationEndpoint = { + "PUT /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "put">; /** - * authorization_id parameter + * @see https://docs.github.com/rest/reference/orgs#set-organization-membership-for-a-user */ - authorization_id: number; -}; -declare type OauthAuthorizationsGetAuthorizationRequestOptions = { - method: "GET"; - url: "/authorizations/:authorization_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsGetAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsUpdateAuthorizationEndpoint = { + "PUT /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "put">; /** - * authorization_id parameter + * @see https://docs.github.com/rest/reference/orgs#convert-an-organization-member-to-outside-collaborator */ - authorization_id: number; + "PUT /orgs/{org}/outside_collaborators/{username}": Operation<"/orgs/{org}/outside_collaborators/{username}", "put">; /** - * Replaces the authorization scopes with these. + * @see https://docs.github.com/rest/reference/orgs#set-public-organization-membership-for-the-authenticated-user */ - scopes?: string[]; + "PUT /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "put">; /** - * A list of scopes to add to this authorization. + * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user */ - add_scopes?: string[]; + "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "put">; /** - * A list of scopes to remove from this authorization. + * @see https://docs.github.com/v3/teams/#add-or-update-team-project-permissions */ - remove_scopes?: string[]; + "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "put", "inertia">; /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. + * @see https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions */ - note?: string; + "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "put">; /** - * A URL to remind you what app the OAuth token is for. + * @see https://docs.github.com/rest/reference/projects#add-project-collaborator */ - note_url?: string; + "PUT /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "put", "inertia">; /** - * A unique string to distinguish an authorization from others created for the same client ID and user. + * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-a-repository */ - fingerprint?: string; -}; -declare type OauthAuthorizationsUpdateAuthorizationRequestOptions = { - method: "PATCH"; - url: "/authorizations/:authorization_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsUpdateAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsUpdateAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsUpdateAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsDeleteAuthorizationEndpoint = { + "PUT /repos/{owner}/{repo}/actions/permissions": Operation<"/repos/{owner}/{repo}/actions/permissions", "put">; /** - * authorization_id parameter + * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-a-repository */ - authorization_id: number; -}; -declare type OauthAuthorizationsDeleteAuthorizationRequestOptions = { - method: "DELETE"; - url: "/authorizations/:authorization_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetAllCodesOfConductEndpoint = {} & RequiredPreview<"scarlet-witch">; -declare type CodesOfConductGetAllCodesOfConductRequestOptions = { - method: "GET"; - url: "/codes_of_conduct"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetAllCodesOfConductResponseDataItem = { - key: string; - name: string; - url: string; -}; -declare type CodesOfConductGetAllCodesOfConductResponseData = Array; -declare type CodesOfConductGetConductCodeEndpoint = { - /** - * key parameter - */ - key: string; -} & RequiredPreview<"scarlet-witch">; -declare type CodesOfConductGetConductCodeRequestOptions = { - method: "GET"; - url: "/codes_of_conduct/:key"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetConductCodeResponseData = { - key: string; - name: string; - url: string; - body: string; -}; -declare type AppsCreateContentAttachmentEndpoint = { + "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions": Operation<"/repos/{owner}/{repo}/actions/permissions/selected-actions", "put">; /** - * content_reference_id parameter + * @see https://docs.github.com/rest/reference/actions#create-or-update-a-repository-secret */ - content_reference_id: number; + "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "put">; /** - * The title of the content attachment displayed in the body or comment of an issue or pull request. + * @see https://docs.github.com/rest/reference/actions#disable-a-workflow */ - title: string; + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable", "put">; /** - * The body text of the content attachment displayed in the body or comment of an issue or pull request. This parameter supports markdown. + * @see https://docs.github.com/rest/reference/actions#enable-a-workflow */ - body: string; -} & RequiredPreview<"corsair">; -declare type AppsCreateContentAttachmentRequestOptions = { - method: "POST"; - url: "/content_references/:content_reference_id/attachments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateContentAttachmentResponseData = { - id: number; - title: string; - body: string; -}; -declare type EmojisGetEndpoint = {}; -declare type EmojisGetRequestOptions = { - method: "GET"; - url: "/emojis"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListPublicEventsEndpoint = { + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/v3/repos/#enable-automated-security-fixes */ - per_page?: number; + "PUT /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "put", "london">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/repos#update-branch-protection */ - page?: number; -}; -declare type ActivityListPublicEventsRequestOptions = { - method: "GET"; - url: "/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetFeedsEndpoint = {}; -declare type ActivityGetFeedsRequestOptions = { - method: "GET"; - url: "/feeds"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetFeedsResponseDataLinksSecurityAdvisories = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserOrganizationsItem = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserOrganization = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserActor = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUser = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserPublic = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksUser = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksTimeline = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinks = { - timeline: ActivityGetFeedsResponseDataLinksTimeline; - user: ActivityGetFeedsResponseDataLinksUser; - current_user_public: ActivityGetFeedsResponseDataLinksCurrentUserPublic; - current_user: ActivityGetFeedsResponseDataLinksCurrentUser; - current_user_actor: ActivityGetFeedsResponseDataLinksCurrentUserActor; - current_user_organization: ActivityGetFeedsResponseDataLinksCurrentUserOrganization; - current_user_organizations: Array; - security_advisories: ActivityGetFeedsResponseDataLinksSecurityAdvisories; -}; -declare type ActivityGetFeedsResponseData = { - timeline_url: string; - user_url: string; - current_user_public_url: string; - current_user_url: string; - current_user_actor_url: string; - current_user_organization_url: string; - current_user_organization_urls: Array; - security_advisories_url: string; - _links: ActivityGetFeedsResponseDataLinks; -}; -declare type GistsListEndpoint = { + "PUT /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "put">; /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. + * @see https://docs.github.com/rest/reference/repos#set-status-check-contexts */ - since?: string; + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/repos#set-app-access-restrictions */ - per_page?: number; + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/repos#set-team-access-restrictions */ - page?: number; -}; -declare type GistsListRequestOptions = { - method: "GET"; - url: "/gists"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListResponseDataItemFiles = { - "hello_world.rb": GistsListResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListResponseData = Array; -declare type GistsCreateEndpoint = { + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "put">; /** - * The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`. + * @see https://docs.github.com/rest/reference/repos#set-user-access-restrictions */ - files: GistsCreateParamsFiles; + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "put">; /** - * A descriptive name for this gist. + * @see https://docs.github.com/rest/reference/repos#add-a-repository-collaborator */ - description?: string; + "PUT /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "put">; /** - * When `true`, the gist will be public and available for anyone to see. + * @see https://docs.github.com/rest/reference/repos#create-or-update-file-contents */ - public?: boolean; -}; -declare type GistsCreateRequestOptions = { - method: "POST"; - url: "/gists"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsCreateResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsCreateResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateResponseDataHistoryItem = { - url: string; - version: string; - user: GistsCreateResponseDataHistoryItemUser; - change_status: GistsCreateResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsCreateResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateResponseDataForksItem = { - user: GistsCreateResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsCreateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateResponseDataFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFiles = { - "hello_world.rb": GistsCreateResponseDataFilesHelloWorldRb; - "hello_world.py": GistsCreateResponseDataFilesHelloWorldPy; - "hello_world_ruby.txt": GistsCreateResponseDataFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsCreateResponseDataFilesHelloWorldPythonTxt; -}; -declare type GistsCreateResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsCreateResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsCreateResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GistsListPublicEndpoint = { + "PUT /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "put">; /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. + * @see https://docs.github.com/rest/reference/migrations#start-an-import */ - since?: string; + "PUT /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-a-repository */ - per_page?: number; + "PUT /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/issues#set-labels-for-an-issue */ - page?: number; -}; -declare type GistsListPublicRequestOptions = { - method: "GET"; - url: "/gists/public"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListPublicResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListPublicResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListPublicResponseDataItemFiles = { - "hello_world.rb": GistsListPublicResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListPublicResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListPublicResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListPublicResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListPublicResponseData = Array; -declare type GistsListStarredEndpoint = { + "PUT /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "put">; /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. + * @see https://docs.github.com/v3/issues/#lock-an-issue */ - since?: string; + "PUT /repos/{owner}/{repo}/issues/{issue_number}/lock": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/lock", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/activity#mark-repository-notifications-as-read */ - per_page?: number; + "PUT /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/repos#update-information-about-a-github-pages-site */ - page?: number; -}; -declare type GistsListStarredRequestOptions = { - method: "GET"; - url: "/gists/starred"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListStarredResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListStarredResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListStarredResponseDataItemFiles = { - "hello_world.rb": GistsListStarredResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListStarredResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListStarredResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListStarredResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListStarredResponseData = Array; -declare type GistsGetEndpoint = { + "PUT /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "put">; /** - * gist_id parameter + * @see https://docs.github.com/v3/pulls/#merge-a-pull-request */ - gist_id: string; -}; -declare type GistsGetRequestOptions = { - method: "GET"; - url: "/gists/:gist_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsGetResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetResponseDataHistoryItem = { - url: string; - version: string; - user: GistsGetResponseDataHistoryItemUser; - change_status: GistsGetResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsGetResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetResponseDataForksItem = { - user: GistsGetResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsGetResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetResponseDataFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFiles = { - "hello_world.rb": GistsGetResponseDataFilesHelloWorldRb; - "hello_world.py": GistsGetResponseDataFilesHelloWorldPy; - "hello_world_ruby.txt": GistsGetResponseDataFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsGetResponseDataFilesHelloWorldPythonTxt; -}; -declare type GistsGetResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsGetResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsGetResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GistsUpdateEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * A descriptive name for this gist. - */ - description?: string; - /** - * The filenames and content that make up this gist. - */ - files?: GistsUpdateParamsFiles; -}; -declare type GistsUpdateRequestOptions = { - method: "PATCH"; - url: "/gists/:gist_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsUpdateResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsUpdateResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateResponseDataHistoryItem = { - url: string; - version: string; - user: GistsUpdateResponseDataHistoryItemUser; - change_status: GistsUpdateResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsUpdateResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateResponseDataForksItem = { - user: GistsUpdateResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsUpdateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateResponseDataFilesNewFileTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFilesHelloWorldMd = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFiles = { - "hello_world.rb": GistsUpdateResponseDataFilesHelloWorldRb; - "hello_world.py": GistsUpdateResponseDataFilesHelloWorldPy; - "hello_world.md": GistsUpdateResponseDataFilesHelloWorldMd; - "new_file.txt": GistsUpdateResponseDataFilesNewFileTxt; -}; -declare type GistsUpdateResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsUpdateResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsUpdateResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GistsDeleteEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsDeleteRequestOptions = { - method: "DELETE"; - url: "/gists/:gist_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommentsEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListCommentsRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListCommentsResponseDataItem = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsListCommentsResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type GistsListCommentsResponseData = Array; -declare type GistsCreateCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * The comment text. - */ - body: string; -}; -declare type GistsCreateCommentRequestOptions = { - method: "POST"; - url: "/gists/:gist_id/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsCreateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateCommentResponseData = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsCreateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type GistsGetCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type GistsGetCommentRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetCommentResponseData = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsGetCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type GistsUpdateCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The comment text. - */ - body: string; -}; -declare type GistsUpdateCommentRequestOptions = { - method: "PATCH"; - url: "/gists/:gist_id/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsUpdateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateCommentResponseData = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsUpdateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type GistsDeleteCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type GistsDeleteCommentRequestOptions = { - method: "DELETE"; - url: "/gists/:gist_id/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommitsEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListCommitsRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommitsResponseDataItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsListCommitsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListCommitsResponseDataItem = { - url: string; - version: string; - user: GistsListCommitsResponseDataItemUser; - change_status: GistsListCommitsResponseDataItemChangeStatus; - committed_at: string; -}; -declare type GistsListCommitsResponseData = Array; -declare type GistsForkEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsForkRequestOptions = { - method: "POST"; - url: "/gists/:gist_id/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsForkResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsForkResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsForkResponseDataFiles = { - "hello_world.rb": GistsForkResponseDataFilesHelloWorldRb; -}; -declare type GistsForkResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsForkResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsForkResponseDataOwner; - truncated: boolean; -}; -declare type GistsListForksEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListForksRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListForksResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListForksResponseDataItem = { - user: GistsListForksResponseDataItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsListForksResponseData = Array; -declare type GistsStarEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsStarRequestOptions = { - method: "PUT"; - url: "/gists/:gist_id/star"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsUnstarEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsUnstarRequestOptions = { - method: "DELETE"; - url: "/gists/:gist_id/star"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsCheckIsStarredEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsCheckIsStarredRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/star"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetRevisionEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * sha parameter - */ - sha: string; -}; -declare type GistsGetRevisionRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/:sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetRevisionResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsGetRevisionResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetRevisionResponseDataHistoryItem = { - url: string; - version: string; - user: GistsGetRevisionResponseDataHistoryItemUser; - change_status: GistsGetRevisionResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsGetRevisionResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetRevisionResponseDataForksItem = { - user: GistsGetRevisionResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsGetRevisionResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFiles = { - "hello_world.rb": GistsGetRevisionResponseDataFilesHelloWorldRb; - "hello_world.py": GistsGetRevisionResponseDataFilesHelloWorldPy; - "hello_world_ruby.txt": GistsGetRevisionResponseDataFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsGetRevisionResponseDataFilesHelloWorldPythonTxt; -}; -declare type GistsGetRevisionResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsGetRevisionResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsGetRevisionResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GitignoreListTemplatesEndpoint = {}; -declare type GitignoreListTemplatesRequestOptions = { - method: "GET"; - url: "/gitignore/templates"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitignoreListTemplatesResponseData = Array; -declare type GitignoreGetTemplateEndpoint = { - /** - * name parameter - */ - name: string; -}; -declare type GitignoreGetTemplateRequestOptions = { - method: "GET"; - url: "/gitignore/templates/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitignoreGetTemplateResponseData = { - name: string; - source: string; -}; -declare type AppsListReposEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListReposRequestOptions = { - method: "GET"; - url: "/installation/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListReposResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsListReposResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsListReposResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type AppsListReposResponseData = { - total_count: number; - repositories: Array; -}; -declare type AppsRevokeInstallationTokenEndpoint = {}; -declare type AppsRevokeInstallationTokenRequestOptions = { - method: "DELETE"; - url: "/installation/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEndpoint = { - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListRequestOptions = { - method: "GET"; - url: "/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListResponseDataItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type IssuesListResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListResponseDataItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type IssuesListResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListResponseDataItemUser; - labels: Array; - assignee: IssuesListResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListResponseDataItemRepository; -}; -declare type IssuesListResponseData = Array; -declare type SearchIssuesLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repository parameter - */ - repository: string; - /** - * Indicates the state of the issues to return. Can be either `open` or `closed`. - */ - state: "open" | "closed"; - /** - * The search term. - */ - keyword: string; -}; -declare type SearchIssuesLegacyRequestOptions = { - method: "GET"; - url: "/legacy/issues/search/:owner/:repository/:state/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchIssuesLegacyResponseDataIssuesItem = { - gravatar_id: string; - position: number; - number: number; - votes: number; - created_at: string; - comments: number; - body: string; - title: string; - updated_at: string; - html_url: string; - user: string; - labels: Array; - state: string; -}; -declare type SearchIssuesLegacyResponseData = { - issues: Array; -}; -declare type SearchReposLegacyEndpoint = { - /** - * The search term. - */ - keyword: string; - /** - * Filter results by language. - */ - language?: string; - /** - * The page number to fetch. - */ - start_page?: string; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; -}; -declare type SearchReposLegacyRequestOptions = { - method: "GET"; - url: "/legacy/repos/search/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchReposLegacyResponseDataRepositoriesItem = { - type: string; - created: string; - watchers: number; - has_downloads: boolean; - username: string; - homepage: string; - url: string; - fork: boolean; - has_issues: boolean; - has_wiki: boolean; - forks: number; - size: number; - private: boolean; - followers: number; - name: string; - owner: string; - open_issues: number; - pushed_at: string; - score: number; - pushed: string; - description: string; - language: string; - created_at: string; -}; -declare type SearchReposLegacyResponseData = { - repositories: Array; -}; -declare type SearchEmailLegacyEndpoint = { - /** - * The email address. - */ - email: string; -}; -declare type SearchEmailLegacyRequestOptions = { - method: "GET"; - url: "/legacy/user/email/:email"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchEmailLegacyResponseDataUser = { - public_repo_count: number; - public_gist_count: number; - followers_count: number; - following_count: number; - created: string; - created_at: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - id: number; - login: string; - type: string; - gravatar_id: string; -}; -declare type SearchEmailLegacyResponseData = { - user: SearchEmailLegacyResponseDataUser; -}; -declare type SearchUsersLegacyEndpoint = { - /** - * The search term. - */ - keyword: string; - /** - * The page number to fetch. - */ - start_page?: string; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; -}; -declare type SearchUsersLegacyRequestOptions = { - method: "GET"; - url: "/legacy/user/search/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchUsersLegacyResponseDataUsersItem = { - gravatar_id: string; - name: string; - created_at: string; - location: string; - public_repo_count: number; - followers: number; - language: string; - fullname: string; - username: string; - id: string; - repos: number; - type: string; - followers_count: number; - login: string; - score: number; - created: string; -}; -declare type SearchUsersLegacyResponseData = { - users: Array; -}; -declare type LicensesListCommonlyUsedEndpoint = {}; -declare type LicensesListCommonlyUsedRequestOptions = { - method: "GET"; - url: "/licenses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type LicensesListCommonlyUsedResponseDataItem = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id?: string; -}; -declare type LicensesListCommonlyUsedResponseData = Array; -declare type LicensesGetEndpoint = { - /** - * license parameter - */ - license: string; -}; -declare type LicensesGetRequestOptions = { - method: "GET"; - url: "/licenses/:license"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type LicensesGetResponseData = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - html_url: string; - description: string; - implementation: string; - permissions: Array; - conditions: Array; - limitations: Array; - body: string; - featured: boolean; -}; -declare type MarkdownRenderEndpoint = { - /** - * The Markdown text to render in HTML. Markdown content must be 400 KB or less. - */ - text: string; - /** - * The rendering mode. Can be either: - * \* `markdown` to render a document in plain Markdown, just like README.md files are rendered. - * \* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests. - */ - mode?: "markdown" | "gfm"; - /** - * The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode. - */ - context?: string; -}; -declare type MarkdownRenderRequestOptions = { - method: "POST"; - url: "/markdown"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MarkdownRenderRawEndpoint = { - /** - * data parameter - */ - data: string; -} & { - headers: { - "content-type": "text/plain; charset=utf-8"; - }; -}; -declare type MarkdownRenderRawRequestOptions = { - method: "POST"; - url: "/markdown/raw"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetSubscriptionPlanForAccountEndpoint = { - /** - * account_id parameter - */ - account_id: number; -}; -declare type AppsGetSubscriptionPlanForAccountRequestOptions = { - method: "GET"; - url: "/marketplace_listing/accounts/:account_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchasePlan; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChangePlan; -}; -declare type AppsGetSubscriptionPlanForAccountResponseData = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChange; - marketplace_purchase: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchase; -}; -declare type AppsListPlansEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListPlansRequestOptions = { - method: "GET"; - url: "/marketplace_listing/plans"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListPlansResponseDataItem = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListPlansResponseData = Array; -declare type AppsListAccountsForPlanEndpoint = { - /** - * plan_id parameter - */ - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListAccountsForPlanRequestOptions = { - method: "GET"; - url: "/marketplace_listing/plans/:plan_id/accounts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsListAccountsForPlanResponseDataItemMarketplacePurchasePlan; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsListAccountsForPlanResponseDataItemMarketplacePendingChangePlan; -}; -declare type AppsListAccountsForPlanResponseDataItem = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsListAccountsForPlanResponseDataItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsForPlanResponseDataItemMarketplacePurchase; -}; -declare type AppsListAccountsForPlanResponseData = Array; -declare type AppsGetSubscriptionPlanForAccountStubbedEndpoint = { - /** - * account_id parameter - */ - account_id: number; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedRequestOptions = { - method: "GET"; - url: "/marketplace_listing/stubbed/accounts/:account_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchasePlan; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChangePlan; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseData = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChange; - marketplace_purchase: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchase; -}; -declare type AppsListPlansStubbedEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListPlansStubbedRequestOptions = { - method: "GET"; - url: "/marketplace_listing/stubbed/plans"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListPlansStubbedResponseDataItem = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListPlansStubbedResponseData = Array; -declare type AppsListAccountsForPlanStubbedEndpoint = { - /** - * plan_id parameter - */ - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListAccountsForPlanStubbedRequestOptions = { - method: "GET"; - url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchasePlan; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChangePlan; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItem = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchase; -}; -declare type AppsListAccountsForPlanStubbedResponseData = Array; -declare type MetaGetEndpoint = {}; -declare type MetaGetRequestOptions = { - method: "GET"; - url: "/meta"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MetaGetResponseDataSshKeyFingerprints = { - MD5_RSA: string; - MD5_DSA: string; - SHA256_RSA: string; - SHA256_DSA: string; -}; -declare type MetaGetResponseData = { - verifiable_password_authentication: boolean; - ssh_key_fingerprints: MetaGetResponseDataSshKeyFingerprints; - hooks: Array; - web: Array; - api: Array; - git: Array; - pages: Array; - importer: Array; -}; -declare type ActivityListPublicEventsForRepoNetworkEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListPublicEventsForRepoNetworkRequestOptions = { - method: "GET"; - url: "/networks/:owner/:repo/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListNotificationsForAuthenticatedUserEndpoint = { - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * 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`. - */ - since?: string; - /** - * 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`. - */ - before?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListNotificationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItemSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItem = { - id: string; - repository: ActivityListNotificationsForAuthenticatedUserResponseDataItemRepository; - subject: ActivityListNotificationsForAuthenticatedUserResponseDataItemSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseData = Array; -declare type ActivityMarkNotificationsAsReadEndpoint = { - /** - * 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. - */ - last_read_at?: string; -}; -declare type ActivityMarkNotificationsAsReadRequestOptions = { - method: "PUT"; - url: "/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityGetThreadRequestOptions = { - method: "GET"; - url: "/notifications/threads/:thread_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadResponseDataSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; -}; -declare type ActivityGetThreadResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityGetThreadResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityGetThreadResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActivityGetThreadResponseData = { - id: string; - repository: ActivityGetThreadResponseDataRepository; - subject: ActivityGetThreadResponseDataSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; -}; -declare type ActivityMarkThreadAsReadEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityMarkThreadAsReadRequestOptions = { - method: "PATCH"; - url: "/notifications/threads/:thread_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadSubscriptionForAuthenticatedUserEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityGetThreadSubscriptionForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/notifications/threads/:thread_id/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadSubscriptionForAuthenticatedUserResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - thread_url: string; -}; -declare type ActivitySetThreadSubscriptionEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; - /** - * Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread. - */ - ignored?: boolean; -}; -declare type ActivitySetThreadSubscriptionRequestOptions = { - method: "PUT"; - url: "/notifications/threads/:thread_id/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivitySetThreadSubscriptionResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - thread_url: string; -}; -declare type ActivityDeleteThreadSubscriptionEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityDeleteThreadSubscriptionRequestOptions = { - method: "DELETE"; - url: "/notifications/threads/:thread_id/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListEndpoint = { - /** - * The integer ID of the last organization that you've seen. - */ - since?: number; -}; -declare type OrgsListRequestOptions = { - method: "GET"; - url: "/organizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListResponseDataItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListResponseData = Array; -declare type OrgsGetEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsGetRequestOptions = { - method: "GET"; - url: "/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetResponseDataPlan = { - name: string; - space: number; - private_repos: number; - filled_seats?: number; - seats?: number; -}; -declare type OrgsGetResponseData = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - total_private_repos?: number; - owned_private_repos?: number; - private_gists?: number; - disk_usage?: number; - collaborators?: number; - billing_email?: string; - plan: OrgsGetResponseDataPlan; - default_repository_permission?: string; - members_can_create_repositories?: boolean; - two_factor_requirement_enabled?: boolean; - members_allowed_repository_creation_type?: string; - members_can_create_public_repositories?: boolean; - members_can_create_private_repositories?: boolean; - members_can_create_internal_repositories?: boolean; -}; -declare type OrgsUpdateEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Billing email address. This address is not publicized. - */ - billing_email?: string; - /** - * The company name. - */ - company?: string; - /** - * The publicly visible email address. - */ - email?: string; - /** - * The location. - */ - location?: string; - /** - * The shorthand name of the company. - */ - name?: string; - /** - * The description of the company. - */ - description?: string; - /** - * Toggles whether an organization can use organization projects. - */ - has_organization_projects?: boolean; - /** - * Toggles whether repositories that belong to the organization can use repository projects. - */ - has_repository_projects?: boolean; - /** - * 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. - */ - default_repository_permission?: "read" | "write" | "admin" | "none"; - /** - * 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_repositories?: boolean; - /** - * 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_internal_repositories?: boolean; - /** - * 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_private_repositories?: boolean; - /** - * 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_can_create_public_repositories?: boolean; - /** - * 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 [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. - */ - members_allowed_repository_creation_type?: "all" | "private" | "none"; -}; -declare type OrgsUpdateRequestOptions = { - method: "PATCH"; - url: "/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUpdateResponseDataPlan = { - name: string; - space: number; - private_repos: number; -}; -declare type OrgsUpdateResponseData = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - total_private_repos: number; - owned_private_repos: number; - private_gists: number; - disk_usage: number; - collaborators: number; - billing_email: string; - plan: OrgsUpdateResponseDataPlan; - default_repository_permission: string; - members_can_create_repositories: boolean; - two_factor_requirement_enabled: boolean; - members_allowed_repository_creation_type: string; - members_can_create_public_repositories: boolean; - members_can_create_private_repositories: boolean; - members_can_create_internal_repositories: boolean; -}; -declare type ActionsListSelfHostedRunnersForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListSelfHostedRunnersForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/actions/runners"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSelfHostedRunnersForOrgResponseDataRunnersItem = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsListSelfHostedRunnersForOrgResponseData = { - total_count: number; - runners: Array; -}; -declare type ActionsListRunnerApplicationsForOrgEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ActionsListRunnerApplicationsForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/actions/runners/downloads"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRunnerApplicationsForOrgResponseDataItem = { - os: string; - architecture: string; - download_url: string; - filename: string; -}; -declare type ActionsListRunnerApplicationsForOrgResponseData = Array; -declare type ActionsCreateRegistrationTokenForOrgEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ActionsCreateRegistrationTokenForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/actions/runners/registration-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRegistrationTokenForOrgResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsCreateRemoveTokenForOrgEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ActionsCreateRemoveTokenForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/actions/runners/remove-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRemoveTokenForOrgResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsGetSelfHostedRunnerForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsGetSelfHostedRunnerForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetSelfHostedRunnerForOrgResponseData = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsDeleteSelfHostedRunnerFromOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsDeleteSelfHostedRunnerFromOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListBlockedUsersEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsListBlockedUsersRequestOptions = { - method: "GET"; - url: "/orgs/:org/blocks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListBlockedUsersResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListBlockedUsersResponseData = Array; -declare type OrgsCheckBlockedUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsCheckBlockedUserRequestOptions = { - method: "GET"; - url: "/orgs/:org/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsBlockUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsBlockUserRequestOptions = { - method: "PUT"; - url: "/orgs/:org/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUnblockUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsUnblockUserRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListCredentialAuthorizationsEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsListCredentialAuthorizationsRequestOptions = { - method: "GET"; - url: "/orgs/:org/credential-authorizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListCredentialAuthorizationsResponseDataItem = { - login: string; - credential_id: string; - credential_type: string; - token_last_eight: string; - credential_authorized_at: string; - scopes: Array; -}; -declare type OrgsListCredentialAuthorizationsResponseData = Array; -declare type OrgsRemoveCredentialAuthorizationEndpoint = { - /** - * org parameter - */ - org: string; - /** - * credential_id parameter - */ - credential_id: number; -}; -declare type OrgsRemoveCredentialAuthorizationRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/credential-authorizations/:credential_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListPublicOrgEventsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListPublicOrgEventsRequestOptions = { - method: "GET"; - url: "/orgs/:org/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListHooksEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListHooksRequestOptions = { - method: "GET"; - url: "/orgs/:org/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListHooksResponseDataItemConfig = { - url: string; - content_type: string; -}; -declare type OrgsListHooksResponseDataItem = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsListHooksResponseDataItemConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsListHooksResponseData = Array; -declare type OrgsCreateHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Must be passed as "web". - */ - name: string; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#create-hook-config-params). - */ - config: OrgsCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type OrgsCreateHookRequestOptions = { - method: "POST"; - url: "/orgs/:org/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsCreateHookResponseDataConfig = { - url: string; - content_type: string; -}; -declare type OrgsCreateHookResponseData = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsCreateHookResponseDataConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsGetHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type OrgsGetHookRequestOptions = { - method: "GET"; - url: "/orgs/:org/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetHookResponseDataConfig = { - url: string; - content_type: string; -}; -declare type OrgsGetHookResponseData = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsGetHookResponseDataConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsUpdateHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#update-hook-config-params). - */ - config?: OrgsUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type OrgsUpdateHookRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUpdateHookResponseDataConfig = { - url: string; - content_type: string; -}; -declare type OrgsUpdateHookResponseData = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsUpdateHookResponseDataConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsDeleteHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type OrgsDeleteHookRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsPingHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type OrgsPingHookRequestOptions = { - method: "POST"; - url: "/orgs/:org/hooks/:hook_id/pings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetOrgInstallationEndpoint = { - /** - * org parameter - */ - org: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetOrgInstallationRequestOptions = { - method: "GET"; - url: "/orgs/:org/installation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetOrgInstallationResponseDataPermissions = { - checks: string; - metadata: string; - contents: string; -}; -declare type AppsGetOrgInstallationResponseDataAccount = { - login: string; - id: number; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsGetOrgInstallationResponseData = { - id: number; - account: AppsGetOrgInstallationResponseDataAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetOrgInstallationResponseDataPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type OrgsListInstallationsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type OrgsListInstallationsRequestOptions = { - method: "GET"; - url: "/orgs/:org/installations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListInstallationsResponseDataInstallationsItemPermissions = { - deployments: string; - metadata: string; - pull_requests: string; - statuses: string; -}; -declare type OrgsListInstallationsResponseDataInstallationsItemAccount = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListInstallationsResponseDataInstallationsItem = { - id: number; - account: OrgsListInstallationsResponseDataInstallationsItemAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: OrgsListInstallationsResponseDataInstallationsItemPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type OrgsListInstallationsResponseData = { - total_count: number; - installations: Array; -}; -declare type InteractionsGetRestrictionsForOrgEndpoint = { - /** - * org parameter - */ - org: string; -} & RequiredPreview<"sombra">; -declare type InteractionsGetRestrictionsForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsGetRestrictionsForOrgResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsAddOrUpdateRestrictionsForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests in public repositories for the given organization. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. - */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; -} & RequiredPreview<"sombra">; -declare type InteractionsAddOrUpdateRestrictionsForOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsAddOrUpdateRestrictionsForOrgResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsRemoveRestrictionsForOrgEndpoint = { - /** - * org parameter - */ - org: string; -} & RequiredPreview<"sombra">; -declare type InteractionsRemoveRestrictionsForOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListPendingInvitationsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListPendingInvitationsRequestOptions = { - method: "GET"; - url: "/orgs/:org/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListPendingInvitationsResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListPendingInvitationsResponseDataItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: OrgsListPendingInvitationsResponseDataItemInviter; - team_count: number; - invitation_team_url: string; -}; -declare type OrgsListPendingInvitationsResponseData = Array; -declare type OrgsCreateInvitationEndpoint = { - /** - * org parameter - */ - org: string; - /** - * **Required unless you provide `email`**. GitHub user ID for the person you are inviting. - */ - invitee_id?: number; - /** - * **Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user. - */ - email?: string; - /** - * Specify role for new member. Can be one of: - * \* `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. - * \* `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. - * \* `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. - */ - role?: "admin" | "direct_member" | "billing_manager"; - /** - * Specify IDs for the teams you want to invite new members to. - */ - team_ids?: number[]; -}; -declare type OrgsCreateInvitationRequestOptions = { - method: "POST"; - url: "/orgs/:org/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsCreateInvitationResponseDataInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsCreateInvitationResponseData = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: OrgsCreateInvitationResponseDataInviter; - team_count: number; - invitation_team_url: string; -}; -declare type OrgsListInvitationTeamsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * invitation_id parameter - */ - invitation_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListInvitationTeamsRequestOptions = { - method: "GET"; - url: "/orgs/:org/invitations/:invitation_id/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListInvitationTeamsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type OrgsListInvitationTeamsResponseData = Array; -declare type IssuesListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForOrgResponseDataItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type IssuesListForOrgResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListForOrgResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListForOrgResponseDataItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type IssuesListForOrgResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListForOrgResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForOrgResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListForOrgResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListForOrgResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForOrgResponseDataItemUser; - labels: Array; - assignee: IssuesListForOrgResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListForOrgResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForOrgResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListForOrgResponseDataItemRepository; -}; -declare type IssuesListForOrgResponseData = Array; -declare type OrgsListMembersEndpoint = { - /** - * org parameter - */ - org: string; - /** - * 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. - */ - filter?: "2fa_disabled" | "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. - */ - role?: "all" | "admin" | "member"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListMembersRequestOptions = { - method: "GET"; - url: "/orgs/:org/members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListMembersResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListMembersResponseData = Array; -declare type OrgsCheckMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsCheckMembershipRequestOptions = { - method: "GET"; - url: "/orgs/:org/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsRemoveMemberEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsRemoveMemberRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsGetMembershipRequestOptions = { - method: "GET"; - url: "/orgs/:org/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetMembershipResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsGetMembershipResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsGetMembershipResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsGetMembershipResponseDataOrganization; - user: OrgsGetMembershipResponseDataUser; -}; -declare type OrgsAddOrUpdateMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - role?: "admin" | "member"; -}; -declare type OrgsAddOrUpdateMembershipRequestOptions = { - method: "PUT"; - url: "/orgs/:org/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsAddOrUpdateMembershipResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsAddOrUpdateMembershipResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsAddOrUpdateMembershipResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsAddOrUpdateMembershipResponseDataOrganization; - user: OrgsAddOrUpdateMembershipResponseDataUser; -}; -declare type OrgsRemoveMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsRemoveMembershipRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * A list of arrays indicating which repositories should be migrated. - */ - repositories: string[]; - /** - * Indicates whether repositories should be locked (to prevent manipulation) while migrating data. - */ - lock_repositories?: boolean; - /** - * Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). - */ - exclude_attachments?: boolean; -}; -declare type MigrationsStartForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartForOrgResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsStartForOrgResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsStartForOrgResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsStartForOrgResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsStartForOrgResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsStartForOrgResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type MigrationsStartForOrgResponseData = { - id: number; - owner: MigrationsStartForOrgResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListForOrgResponseDataItemRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListForOrgResponseDataItemRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListForOrgResponseDataItemRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListForOrgResponseDataItemRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListForOrgResponseDataItemRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsListForOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type MigrationsListForOrgResponseDataItem = { - id: number; - owner: MigrationsListForOrgResponseDataItemOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForOrgResponseData = Array; -declare type MigrationsGetStatusForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsGetStatusForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations/:migration_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetStatusForOrgResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsGetStatusForOrgResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsGetStatusForOrgResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsGetStatusForOrgResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsGetStatusForOrgResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsGetStatusForOrgResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type MigrationsGetStatusForOrgResponseData = { - id: number; - owner: MigrationsGetStatusForOrgResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsDownloadArchiveForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsDownloadArchiveForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsDeleteArchiveForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsDeleteArchiveForOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsUnlockRepoForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; - /** - * repo_name parameter - */ - repo_name: string; -} & RequiredPreview<"wyandotte">; -declare type MigrationsUnlockRepoForOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListReposForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListReposForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations/:migration_id/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListReposForOrgResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type MigrationsListReposForOrgResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListReposForOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListReposForOrgResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListReposForOrgResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListReposForOrgResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: MigrationsListReposForOrgResponseDataItemLicense; -}; -declare type MigrationsListReposForOrgResponseData = Array; -declare type OrgsListOutsideCollaboratorsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * 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. - */ - filter?: "2fa_disabled" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListOutsideCollaboratorsRequestOptions = { - method: "GET"; - url: "/orgs/:org/outside_collaborators"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListOutsideCollaboratorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListOutsideCollaboratorsResponseData = Array; -declare type OrgsRemoveOutsideCollaboratorEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsRemoveOutsideCollaboratorRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/outside_collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsRemoveOutsideCollaboratorResponseData = { - message: string; - documentation_url: string; -}; -declare type OrgsConvertMemberToOutsideCollaboratorEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsConvertMemberToOutsideCollaboratorRequestOptions = { - method: "PUT"; - url: "/orgs/:org/outside_collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsConvertMemberToOutsideCollaboratorResponseData = { - message: string; - documentation_url: string; -}; -declare type ProjectsListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListForOrgResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListForOrgResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForOrgResponseDataItemCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForOrgResponseData = Array; -declare type ProjectsCreateForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The name of the project. - */ - name: string; - /** - * The description of the project. - */ - body?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateForOrgResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateForOrgResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForOrgResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type OrgsListPublicMembersEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListPublicMembersRequestOptions = { - method: "GET"; - url: "/orgs/:org/public_members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListPublicMembersResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListPublicMembersResponseData = Array; -declare type OrgsCheckPublicMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsCheckPublicMembershipRequestOptions = { - method: "GET"; - url: "/orgs/:org/public_members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsPublicizeMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsPublicizeMembershipRequestOptions = { - method: "PUT"; - url: "/orgs/:org/public_members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsConcealMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsConcealMembershipRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/public_members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `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`. - */ - type?: "all" | "public" | "private" | "forks" | "sources" | "member" | "internal"; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForOrgResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ReposListForOrgResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListForOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListForOrgResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListForOrgResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListForOrgResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ReposListForOrgResponseDataItemLicense; -}; -declare type ReposListForOrgResponseData = Array; -declare type ReposCreateInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The name of the repository. - */ - name: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to create a private repository or `false` to create a public one. - */ - private?: boolean; - /** - * 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`. 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. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * 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". - */ - gitignore_template?: string; - /** - * 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". - */ - license_template?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; -}; -declare type ReposCreateInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateInOrgResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateInOrgResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateInOrgResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateInOrgResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateInOrgResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsListIdPGroupsForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListIdPGroupsForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/team-sync/groups"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsForOrgResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsListIdPGroupsForOrgResponseData = { - groups: Array; -}; -declare type TeamsListEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type TeamsListResponseData = Array; -declare type TeamsCreateEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * List GitHub IDs for organization members who will become team maintainers. - */ - maintainers?: string[]; - /** - * The full name (e.g., "organization-name/repository-name") of repositories to add the team to. - */ - repo_names?: string[]; - /** - * 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` - */ - privacy?: "secret" | "closed"; - /** - * **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. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; -}; -declare type TeamsCreateRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsCreateResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsCreateResponseDataOrganization; -}; -declare type TeamsGetByNameEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; -}; -declare type TeamsGetByNameRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetByNameResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsGetByNameResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsGetByNameResponseDataOrganization; -}; -declare type TeamsUpdateInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. 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. - */ - privacy?: "secret" | "closed"; - /** - * **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. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; -}; -declare type TeamsUpdateInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateInOrgResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsUpdateInOrgResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsUpdateInOrgResponseDataOrganization; -}; -declare type TeamsDeleteInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; -}; -declare type TeamsDeleteInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsInOrgResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionsInOrgResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionsInOrgResponseDataItem = { - author: TeamsListDiscussionsInOrgResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsListDiscussionsInOrgResponseDataItemReactions; -}; -declare type TeamsListDiscussionsInOrgResponseData = Array; -declare type TeamsCreateDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * The discussion post's title. - */ - title: string; - /** - * The discussion post's body text. - */ - body: string; - /** - * 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. - */ - private?: boolean; -}; -declare type TeamsCreateDiscussionInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionInOrgResponseData = { - author: TeamsCreateDiscussionInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionInOrgResponseDataReactions; -}; -declare type TeamsGetDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsGetDiscussionInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionInOrgResponseData = { - author: TeamsGetDiscussionInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionInOrgResponseDataReactions; -}; -declare type TeamsUpdateDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion post's title. - */ - title?: string; - /** - * The discussion post's body text. - */ - body?: string; -}; -declare type TeamsUpdateDiscussionInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionInOrgResponseData = { - author: TeamsUpdateDiscussionInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: string; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionInOrgResponseDataReactions; -}; -declare type TeamsDeleteDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsDeleteDiscussionInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionCommentsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsInOrgResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionCommentsInOrgResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionCommentsInOrgResponseDataItem = { - author: TeamsListDiscussionCommentsInOrgResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsListDiscussionCommentsInOrgResponseDataItemReactions; -}; -declare type TeamsListDiscussionCommentsInOrgResponseData = Array; -declare type TeamsCreateDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsCreateDiscussionCommentInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseData = { - author: TeamsCreateDiscussionCommentInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionCommentInOrgResponseDataReactions; -}; -declare type TeamsGetDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsGetDiscussionCommentInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionCommentInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionCommentInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionCommentInOrgResponseData = { - author: TeamsGetDiscussionCommentInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionCommentInOrgResponseDataReactions; -}; -declare type TeamsUpdateDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsUpdateDiscussionCommentInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseData = { - author: TeamsUpdateDiscussionCommentInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: string; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionCommentInOrgResponseDataReactions; -}; -declare type TeamsDeleteDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsDeleteDiscussionCommentInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionCommentInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentInOrgResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseData = Array; -declare type ReactionsCreateForTeamDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionCommentInOrgResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionCommentInOrgResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentInOrgResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForTeamDiscussionCommentEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForTeamDiscussionCommentRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionInOrgResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseData = Array; -declare type ReactionsCreateForTeamDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionInOrgResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionInOrgResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionInOrgResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForTeamDiscussionEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForTeamDiscussionRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListPendingInvitationsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListPendingInvitationsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListPendingInvitationsInOrgResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListPendingInvitationsInOrgResponseDataItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: TeamsListPendingInvitationsInOrgResponseDataItemInviter; - team_count: number; - invitation_team_url: string; -}; -declare type TeamsListPendingInvitationsInOrgResponseData = Array; -declare type TeamsListMembersInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListMembersInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListMembersInOrgResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListMembersInOrgResponseData = Array; -declare type TeamsGetMembershipInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * username parameter - */ - username: string; -}; -declare type TeamsGetMembershipInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetMembershipInOrgResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsAddOrUpdateMembershipInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - role?: "member" | "maintainer"; -}; -declare type TeamsAddOrUpdateMembershipInOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/teams/:team_slug/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateMembershipInOrgResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsRemoveMembershipInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * username parameter - */ - username: string; -}; -declare type TeamsRemoveMembershipInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type TeamsListProjectsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsInOrgResponseDataItemPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsListProjectsInOrgResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListProjectsInOrgResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsListProjectsInOrgResponseDataItemCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsListProjectsInOrgResponseDataItemPermissions; -}; -declare type TeamsListProjectsInOrgResponseData = Array; -declare type TeamsReviewProjectInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type TeamsReviewProjectInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsReviewProjectInOrgResponseDataPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsReviewProjectInOrgResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsReviewProjectInOrgResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsReviewProjectInOrgResponseDataCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsReviewProjectInOrgResponseDataPermissions; -}; -declare type TeamsAddOrUpdateProjectInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * project_id parameter - */ - project_id: number; - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; -} & RequiredPreview<"inertia">; -declare type TeamsAddOrUpdateProjectInOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/teams/:team_slug/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateProjectInOrgResponseData = { - message: string; - documentation_url: string; -}; -declare type TeamsRemoveProjectInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * project_id parameter - */ - project_id: number; -}; -declare type TeamsRemoveProjectInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListReposInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposInOrgResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type TeamsListReposInOrgResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsListReposInOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListReposInOrgResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsListReposInOrgResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsListReposInOrgResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: TeamsListReposInOrgResponseDataItemLicense; -}; -declare type TeamsListReposInOrgResponseData = Array; -declare type TeamsCheckManagesRepoInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsCheckManagesRepoInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoInOrgResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoInOrgResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoInOrgResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoInOrgResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseData = { - organization: TeamsCheckManagesRepoInOrgResponseDataOrganization; - parent: TeamsCheckManagesRepoInOrgResponseDataParent; - source: TeamsCheckManagesRepoInOrgResponseDataSource; - permissions: TeamsCheckManagesRepoInOrgResponseDataPermissions; -}; -declare type TeamsAddOrUpdateRepoInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - * \* `maintain` - team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations. - * \* `triage` - team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations. - * - * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. - */ - permission?: "pull" | "push" | "admin" | "maintain" | "triage"; -}; -declare type TeamsAddOrUpdateRepoInOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsRemoveRepoInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsRemoveRepoInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; -}; -declare type TeamsListIdPGroupsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsInOrgResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsListIdPGroupsInOrgResponseData = { - groups: Array; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. - */ - groups: TeamsCreateOrUpdateIdPGroupConnectionsInOrgParamsGroups[]; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgResponseDataGroups = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgResponseData = { - groups: TeamsCreateOrUpdateIdPGroupConnectionsInOrgResponseDataGroups; -}; -declare type TeamsListChildInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListChildInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListChildInOrgResponseDataItemParent = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; -}; -declare type TeamsListChildInOrgResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: TeamsListChildInOrgResponseDataItemParent; -}; -declare type TeamsListChildInOrgResponseData = Array; -declare type ProjectsGetCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsGetCardRequestOptions = { - method: "GET"; - url: "/projects/columns/cards/:card_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetCardResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsGetCardResponseData = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsGetCardResponseDataCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsUpdateCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`. - */ - note?: string; - /** - * Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card. - */ - archived?: boolean; -} & RequiredPreview<"inertia">; -declare type ProjectsUpdateCardRequestOptions = { - method: "PATCH"; - url: "/projects/columns/cards/:card_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsUpdateCardResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsUpdateCardResponseData = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsUpdateCardResponseDataCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsDeleteCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsDeleteCardRequestOptions = { - method: "DELETE"; - url: "/projects/columns/cards/:card_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsMoveCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; - /** - * Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`. - */ - position: string; - /** - * The `id` value of a column in the same project. - */ - column_id?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsMoveCardRequestOptions = { - method: "POST"; - url: "/projects/columns/cards/:card_id/moves"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsGetColumnRequestOptions = { - method: "GET"; - url: "/projects/columns/:column_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetColumnResponseData = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type ProjectsUpdateColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * The new name of the column. - */ - name: string; -} & RequiredPreview<"inertia">; -declare type ProjectsUpdateColumnRequestOptions = { - method: "PATCH"; - url: "/projects/columns/:column_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsUpdateColumnResponseData = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type ProjectsDeleteColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsDeleteColumnRequestOptions = { - method: "DELETE"; - url: "/projects/columns/:column_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCardsEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`. - */ - archived_state?: "all" | "archived" | "not_archived"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListCardsRequestOptions = { - method: "GET"; - url: "/projects/columns/:column_id/cards"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCardsResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListCardsResponseDataItem = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsListCardsResponseDataItemCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsListCardsResponseData = Array; -declare type ProjectsCreateCardEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`. - */ - note?: string; - /** - * The issue or pull request id you want to associate with this card. You can use the [List repository issues](https://developer.github.com/v3/issues/#list-repository-issues) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. - * **Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`. - */ - content_id?: number; - /** - * **Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id. - */ - content_type?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateCardRequestOptions = { - method: "POST"; - url: "/projects/columns/:column_id/cards"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateCardResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateCardResponseData = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsCreateCardResponseDataCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsMoveColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project. - */ - position: string; -} & RequiredPreview<"inertia">; -declare type ProjectsMoveColumnRequestOptions = { - method: "POST"; - url: "/projects/columns/:column_id/moves"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetEndpoint = { - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsGetRequestOptions = { - method: "GET"; - url: "/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsGetResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsGetResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsUpdateEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * The name of the project. - */ - name?: string; - /** - * The description of the project. - */ - body?: string; - /** - * State of the project. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator). - * - * **Note:** Updating a project's `organization_permission` requires `admin` access to the project. - * - * Can be one of: - * \* `read` - Organization members can read, but not write to or administer this project. - * \* `write` - Organization members can read and write, but not administer this project. - * \* `admin` - Organization members can read, write and administer this project. - * \* `none` - Organization members can only see this project if it is public. - */ - organization_permission?: string; - /** - * Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. - * - * Can be one of: - * \* `false` - Anyone can see the project. - * \* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account. - */ - private?: boolean; -} & RequiredPreview<"inertia">; -declare type ProjectsUpdateRequestOptions = { - method: "PATCH"; - url: "/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsUpdateResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsUpdateResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsUpdateResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsDeleteEndpoint = { - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsDeleteRequestOptions = { - method: "DELETE"; - url: "/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCollaboratorsEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * 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. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListCollaboratorsRequestOptions = { - method: "GET"; - url: "/projects/:project_id/collaborators"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCollaboratorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListCollaboratorsResponseData = Array; -declare type ProjectsAddCollaboratorEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * username parameter - */ - username: string; - /** - * The permission to grant the collaborator. 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://developer.github.com/v3/#http-verbs)." Can be one of: - * \* `read` - can read, but not write to or administer this project. - * \* `write` - can read and write, but not administer this project. - * \* `admin` - can read, write and administer this project. - */ - permission?: "read" | "write" | "admin"; -} & RequiredPreview<"inertia">; -declare type ProjectsAddCollaboratorRequestOptions = { - method: "PUT"; - url: "/projects/:project_id/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsRemoveCollaboratorEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * username parameter - */ - username: string; -} & RequiredPreview<"inertia">; -declare type ProjectsRemoveCollaboratorRequestOptions = { - method: "DELETE"; - url: "/projects/:project_id/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsReviewUserPermissionLevelEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * username parameter - */ - username: string; -} & RequiredPreview<"inertia">; -declare type ProjectsReviewUserPermissionLevelRequestOptions = { - method: "GET"; - url: "/projects/:project_id/collaborators/:username/permission"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsReviewUserPermissionLevelResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsReviewUserPermissionLevelResponseData = { - permission: string; - user: ProjectsReviewUserPermissionLevelResponseDataUser; -}; -declare type ProjectsListColumnsEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListColumnsRequestOptions = { - method: "GET"; - url: "/projects/:project_id/columns"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListColumnsResponseDataItem = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type ProjectsListColumnsResponseData = Array; -declare type ProjectsCreateColumnEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * The name of the column. - */ - name: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateColumnRequestOptions = { - method: "POST"; - url: "/projects/:project_id/columns"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateColumnResponseData = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type RateLimitGetEndpoint = {}; -declare type RateLimitGetRequestOptions = { - method: "GET"; - url: "/rate_limit"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type RateLimitGetResponseDataRate = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesIntegrationManifest = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesGraphql = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesSearch = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesCore = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResources = { - core: RateLimitGetResponseDataResourcesCore; - search: RateLimitGetResponseDataResourcesSearch; - graphql: RateLimitGetResponseDataResourcesGraphql; - integration_manifest: RateLimitGetResponseDataResourcesIntegrationManifest; -}; -declare type RateLimitGetResponseData = { - resources: RateLimitGetResponseDataResources; - rate: RateLimitGetResponseDataRate; -}; -declare type ReactionsDeleteLegacyEndpoint = { - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteLegacyRequestOptions = { - method: "DELETE"; - url: "/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetResponseDataCodeOfConduct = { - key: string; - name: string; - url: string; -}; -declare type ReposGetResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposGetResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposGetResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposGetResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposGetResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposGetResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposGetResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseDataLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ReposGetResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type ReposGetResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseDataOwner; - private: boolean; - html_url: string; - description: string | null; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string | null; - hooks_url: string; - svn_url: string; - homepage: string | null; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template?: boolean; - topics?: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived?: boolean; - disabled?: boolean; - visibility?: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions?: ReposGetResponseDataPermissions; - allow_rebase_merge?: boolean; - template_repository?: null; - temp_clone_token?: string; - allow_squash_merge?: boolean; - allow_merge_commit?: boolean; - subscribers_count: number; - network_count: number; - license?: ReposGetResponseDataLicense; - organization?: ReposGetResponseDataOrganization; - parent?: ReposGetResponseDataParent; - source?: ReposGetResponseDataSource; - forks?: number; - open_issues?: number; - watchers?: number; - code_of_conduct?: ReposGetResponseDataCodeOfConduct; -}; -declare type ReposUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the repository. - */ - name?: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * 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. - */ - private?: boolean; - /** - * 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. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * Updates the default branch for this repository. - */ - default_branch?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; - /** - * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API. - */ - archived?: boolean; -}; -declare type ReposUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposUpdateResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposUpdateResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposUpdateResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposUpdateResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type ReposUpdateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - organization: ReposUpdateResponseDataOrganization; - parent: ReposUpdateResponseDataParent; - source: ReposUpdateResponseDataSource; -}; -declare type ReposDeleteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposDeleteRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDeleteResponseData = { - message: string; - documentation_url: string; -}; -declare type ActionsListArtifactsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListArtifactsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/artifacts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListArtifactsForRepoResponseDataArtifactsItem = { - id: number; - node_id: string; - name: string; - size_in_bytes: number; - url: string; - archive_download_url: string; - expired: boolean; - created_at: string; - expires_at: string; -}; -declare type ActionsListArtifactsForRepoResponseData = { - total_count: number; - artifacts: Array; -}; -declare type ActionsGetArtifactEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * artifact_id parameter - */ - artifact_id: number; -}; -declare type ActionsGetArtifactRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetArtifactResponseData = { - id: number; - node_id: string; - name: string; - size_in_bytes: number; - url: string; - archive_download_url: string; - expired: boolean; - created_at: string; - expires_at: string; -}; -declare type ActionsDeleteArtifactEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * artifact_id parameter - */ - artifact_id: number; -}; -declare type ActionsDeleteArtifactRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsDownloadArtifactEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * artifact_id parameter - */ - artifact_id: number; - /** - * archive_format parameter - */ - archive_format: string; -}; -declare type ActionsDownloadArtifactRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowJobEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * job_id parameter - */ - job_id: number; -}; -declare type ActionsGetWorkflowJobRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/jobs/:job_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowJobResponseDataStepsItem = { - name: string; - status: string; - conclusion: string; - number: number; - started_at: string; - completed_at: string; -}; -declare type ActionsGetWorkflowJobResponseData = { - id: number; - run_id: number; - run_url: string; - node_id: string; - head_sha: string; - url: string; - html_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - name: string; - steps: Array; - check_run_url: string; -}; -declare type ActionsDownloadWorkflowJobLogsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * job_id parameter - */ - job_id: number; -}; -declare type ActionsDownloadWorkflowJobLogsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSelfHostedRunnersForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListSelfHostedRunnersForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runners"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSelfHostedRunnersForRepoResponseDataRunnersItem = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsListSelfHostedRunnersForRepoResponseData = { - total_count: number; - runners: Array; -}; -declare type ActionsListRunnerApplicationsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsListRunnerApplicationsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runners/downloads"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRunnerApplicationsForRepoResponseDataItem = { - os: string; - architecture: string; - download_url: string; - filename: string; -}; -declare type ActionsListRunnerApplicationsForRepoResponseData = Array; -declare type ActionsCreateRegistrationTokenForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsCreateRegistrationTokenForRepoRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runners/registration-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRegistrationTokenForRepoResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsCreateRemoveTokenForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsCreateRemoveTokenForRepoRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runners/remove-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRemoveTokenForRepoResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsGetSelfHostedRunnerForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsGetSelfHostedRunnerForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetSelfHostedRunnerForRepoResponseData = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsDeleteSelfHostedRunnerFromRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsDeleteSelfHostedRunnerFromRepoRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowRunsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. - */ - actor?: string; - /** - * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. - */ - branch?: string; - /** - * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation. - */ - event?: string; - /** - * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." - */ - status?: "completed" | "status" | "conclusion"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListRepoWorkflowRunsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - private: boolean; - owner: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner; - html_url: string; - description: null; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter = { - name: string; - email: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor = { - name: string; - email: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommit = { - id: string; - tree_id: string; - message: string; - timestamp: string; - author: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor; - committer: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItem = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - run_number: number; - event: string; - status: string; - conclusion: null; - url: string; - html_url: string; - pull_requests: Array; - created_at: string; - updated_at: string; - jobs_url: string; - logs_url: string; - check_suite_url: string; - artifacts_url: string; - cancel_url: string; - rerun_url: string; - workflow_url: string; - head_commit: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommit; - repository: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepository; - head_repository: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepository; -}; -declare type ActionsListRepoWorkflowRunsResponseData = { - total_count: number; - workflow_runs: Array; -}; -declare type ActionsGetWorkflowRunEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsGetWorkflowRunRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowRunResponseDataHeadRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsGetWorkflowRunResponseDataHeadRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - private: boolean; - owner: ActionsGetWorkflowRunResponseDataHeadRepositoryOwner; - html_url: string; - description: null; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type ActionsGetWorkflowRunResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsGetWorkflowRunResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActionsGetWorkflowRunResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActionsGetWorkflowRunResponseDataHeadCommitCommitter = { - name: string; - email: string; -}; -declare type ActionsGetWorkflowRunResponseDataHeadCommitAuthor = { - name: string; - email: string; -}; -declare type ActionsGetWorkflowRunResponseDataHeadCommit = { - id: string; - tree_id: string; - message: string; - timestamp: string; - author: ActionsGetWorkflowRunResponseDataHeadCommitAuthor; - committer: ActionsGetWorkflowRunResponseDataHeadCommitCommitter; -}; -declare type ActionsGetWorkflowRunResponseData = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - run_number: number; - event: string; - status: string; - conclusion: null; - url: string; - html_url: string; - pull_requests: Array; - created_at: string; - updated_at: string; - jobs_url: string; - logs_url: string; - check_suite_url: string; - artifacts_url: string; - cancel_url: string; - rerun_url: string; - workflow_url: string; - head_commit: ActionsGetWorkflowRunResponseDataHeadCommit; - repository: ActionsGetWorkflowRunResponseDataRepository; - head_repository: ActionsGetWorkflowRunResponseDataHeadRepository; -}; -declare type ActionsListWorkflowRunArtifactsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListWorkflowRunArtifactsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListWorkflowRunArtifactsResponseDataArtifactsItem = { - id: number; - node_id: string; - name: string; - size_in_bytes: number; - url: string; - archive_download_url: string; - expired: boolean; - created_at: string; - expires_at: string; -}; -declare type ActionsListWorkflowRunArtifactsResponseData = { - total_count: number; - artifacts: Array; -}; -declare type ActionsCancelWorkflowRunEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsCancelWorkflowRunRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListJobsForWorkflowRunEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; - /** - * Filters jobs by their `completed_at` timestamp. Can be one of: - * \* `latest`: Returns jobs from the most recent execution of the workflow run. - * \* `all`: Returns all jobs for a workflow run, including from old executions of the workflow run. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListJobsForWorkflowRunRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListJobsForWorkflowRunResponseDataJobsItemStepsItem = { - name: string; - status: string; - conclusion: string; - number: number; - started_at: string; - completed_at: string; -}; -declare type ActionsListJobsForWorkflowRunResponseDataJobsItem = { - id: number; - run_id: number; - run_url: string; - node_id: string; - head_sha: string; - url: string; - html_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - name: string; - steps: Array; - check_run_url: string; -}; -declare type ActionsListJobsForWorkflowRunResponseData = { - total_count: number; - jobs: Array; -}; -declare type ActionsDownloadWorkflowRunLogsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsDownloadWorkflowRunLogsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id/logs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsDeleteWorkflowRunLogsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsDeleteWorkflowRunLogsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/runs/:run_id/logs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsReRunWorkflowEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsReRunWorkflowRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSecretsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListSecretsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/secrets"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSecretsForRepoResponseDataSecretsItem = { - name: string; - created_at: string; - updated_at: string; -}; -declare type ActionsListSecretsForRepoResponseData = { - total_count: number; - secrets: Array; -}; -declare type ActionsGetPublicKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsGetPublicKeyRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/secrets/public-key"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetPublicKeyResponseData = { - key_id: string; - key: string; -}; -declare type ActionsGetSecretEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type ActionsGetSecretRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/secrets/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetSecretResponseData = { - name: string; - created_at: string; - updated_at: string; -}; -declare type ActionsCreateOrUpdateSecretForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; - /** - * Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get your public key](https://developer.github.com/v3/actions/secrets/#get-your-public-key) endpoint. - */ - encrypted_value?: string; - /** - * ID of the key you used to encrypt the secret. - */ - key_id?: string; -}; -declare type ActionsCreateOrUpdateSecretForRepoRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/actions/secrets/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsDeleteSecretFromRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type ActionsDeleteSecretFromRepoRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/secrets/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListRepoWorkflowsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/workflows"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowsResponseDataWorkflowsItem = { - id: number; - node_id: string; - name: string; - path: string; - state: string; - created_at: string; - updated_at: string; - url: string; - html_url: string; - badge_url: string; -}; -declare type ActionsListRepoWorkflowsResponseData = { - total_count: number; - workflows: Array; -}; -declare type ActionsGetWorkflowEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * workflow_id parameter - */ - workflow_id: number; -}; -declare type ActionsGetWorkflowRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/workflows/:workflow_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowResponseData = { - id: number; - node_id: string; - name: string; - path: string; - state: string; - created_at: string; - updated_at: string; - url: string; - html_url: string; - badge_url: string; -}; -declare type ActionsListWorkflowRunsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * workflow_id parameter - */ - workflow_id: number; - /** - * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. - */ - actor?: string; - /** - * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. - */ - branch?: string; - /** - * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation. - */ - event?: string; - /** - * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." - */ - status?: "completed" | "status" | "conclusion"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListWorkflowRunsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - private: boolean; - owner: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner; - html_url: string; - description: null; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter = { - name: string; - email: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor = { - name: string; - email: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommit = { - id: string; - tree_id: string; - message: string; - timestamp: string; - author: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor; - committer: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItem = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - run_number: number; - event: string; - status: string; - conclusion: null; - url: string; - html_url: string; - pull_requests: Array; - created_at: string; - updated_at: string; - jobs_url: string; - logs_url: string; - check_suite_url: string; - artifacts_url: string; - cancel_url: string; - rerun_url: string; - workflow_url: string; - head_commit: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommit; - repository: ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepository; - head_repository: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepository; -}; -declare type ActionsListWorkflowRunsResponseData = { - total_count: number; - workflow_runs: Array; -}; -declare type IssuesListAssigneesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListAssigneesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/assignees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListAssigneesResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListAssigneesResponseData = Array; -declare type IssuesCheckAssigneeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * assignee parameter - */ - assignee: string; -}; -declare type IssuesCheckAssigneeRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/assignees/:assignee"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposEnableAutomatedSecurityFixesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"london">; -declare type ReposEnableAutomatedSecurityFixesRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/automated-security-fixes"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDisableAutomatedSecurityFixesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"london">; -declare type ReposDisableAutomatedSecurityFixesRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/automated-security-fixes"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListBranchesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. - */ - protected?: boolean; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListBranchesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListBranchesResponseDataItemProtectionRequiredStatusChecks = { - enforcement_level: string; - contexts: Array; -}; -declare type ReposListBranchesResponseDataItemProtection = { - enabled: boolean; - required_status_checks: ReposListBranchesResponseDataItemProtectionRequiredStatusChecks; -}; -declare type ReposListBranchesResponseDataItemCommit = { - sha: string; - url: string; -}; -declare type ReposListBranchesResponseDataItem = { - name: string; - commit: ReposListBranchesResponseDataItemCommit; - protected: boolean; - protection: ReposListBranchesResponseDataItemProtection; - protection_url: string; -}; -declare type ReposListBranchesResponseData = Array; -declare type ReposGetBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetBranchResponseDataProtectionRequiredStatusChecks = { - enforcement_level: string; - contexts: Array; -}; -declare type ReposGetBranchResponseDataProtection = { - enabled: boolean; - required_status_checks: ReposGetBranchResponseDataProtectionRequiredStatusChecks; -}; -declare type ReposGetBranchResponseDataLinks = { - html: string; - self: string; -}; -declare type ReposGetBranchResponseDataCommitCommitter = { - gravatar_id: string; - avatar_url: string; - url: string; - id: number; - login: string; -}; -declare type ReposGetBranchResponseDataCommitParentsItem = { - sha: string; - url: string; -}; -declare type ReposGetBranchResponseDataCommitAuthor = { - gravatar_id: string; - avatar_url: string; - url: string; - id: number; - login: string; -}; -declare type ReposGetBranchResponseDataCommitCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposGetBranchResponseDataCommitCommitCommitter = { - name: string; - date: string; - email: string; -}; -declare type ReposGetBranchResponseDataCommitCommitTree = { - sha: string; - url: string; -}; -declare type ReposGetBranchResponseDataCommitCommitAuthor = { - name: string; - date: string; - email: string; -}; -declare type ReposGetBranchResponseDataCommitCommit = { - author: ReposGetBranchResponseDataCommitCommitAuthor; - url: string; - message: string; - tree: ReposGetBranchResponseDataCommitCommitTree; - committer: ReposGetBranchResponseDataCommitCommitCommitter; - verification: ReposGetBranchResponseDataCommitCommitVerification; -}; -declare type ReposGetBranchResponseDataCommit = { - sha: string; - node_id: string; - commit: ReposGetBranchResponseDataCommitCommit; - author: ReposGetBranchResponseDataCommitAuthor; - parents: Array; - url: string; - committer: ReposGetBranchResponseDataCommitCommitter; -}; -declare type ReposGetBranchResponseData = { - name: string; - commit: ReposGetBranchResponseDataCommit; - _links: ReposGetBranchResponseDataLinks; - protected: boolean; - protection: ReposGetBranchResponseDataProtection; - protection_url: string; -}; -declare type ReposGetBranchProtectionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetBranchProtectionRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetBranchProtectionResponseDataAllowDeletions = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataAllowForcePushes = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRequiredLinearHistory = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsAppsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsAppsItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsAppsItem = { - id: number; - slug: string; - node_id: string; - owner: ReposGetBranchProtectionResponseDataRestrictionsAppsItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposGetBranchProtectionResponseDataRestrictionsAppsItemPermissions; - events: Array; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRestrictions = { - url: string; - users_url: string; - teams_url: string; - apps_url: string; - users: Array; - teams: Array; - apps: Array; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviews = { - url: string; - dismissal_restrictions: ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposGetBranchProtectionResponseDataEnforceAdmins = { - url: string; - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRequiredStatusChecks = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposGetBranchProtectionResponseData = { - url: string; - required_status_checks: ReposGetBranchProtectionResponseDataRequiredStatusChecks; - enforce_admins: ReposGetBranchProtectionResponseDataEnforceAdmins; - required_pull_request_reviews: ReposGetBranchProtectionResponseDataRequiredPullRequestReviews; - restrictions: ReposGetBranchProtectionResponseDataRestrictions; - required_linear_history: ReposGetBranchProtectionResponseDataRequiredLinearHistory; - allow_force_pushes: ReposGetBranchProtectionResponseDataAllowForcePushes; - allow_deletions: ReposGetBranchProtectionResponseDataAllowDeletions; -}; -declare type ReposUpdateBranchProtectionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * Require status checks to pass before merging. Set to `null` to disable. - */ - required_status_checks: ReposUpdateBranchProtectionParamsRequiredStatusChecks | null; - /** - * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. - */ - enforce_admins: boolean | null; - /** - * Require at least one approving review on a pull request, before merging. Set to `null` to disable. - */ - required_pull_request_reviews: ReposUpdateBranchProtectionParamsRequiredPullRequestReviews | null; - /** - * 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. - */ - restrictions: ReposUpdateBranchProtectionParamsRestrictions | null; - /** - * 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. - */ - required_linear_history?: boolean; - /** - * 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_force_pushes?: boolean | null; - /** - * 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. - */ - allow_deletions?: boolean; -}; -declare type ReposUpdateBranchProtectionRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateBranchProtectionResponseDataAllowDeletions = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataAllowForcePushes = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredLinearHistory = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsAppsItem = { - id: number; - slug: string; - node_id: string; - owner: ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemPermissions; - events: Array; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictions = { - url: string; - users_url: string; - teams_url: string; - apps_url: string; - users: Array; - teams: Array; - apps: Array; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviews = { - url: string; - dismissal_restrictions: ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposUpdateBranchProtectionResponseDataEnforceAdmins = { - url: string; - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredStatusChecks = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposUpdateBranchProtectionResponseData = { - url: string; - required_status_checks: ReposUpdateBranchProtectionResponseDataRequiredStatusChecks; - enforce_admins: ReposUpdateBranchProtectionResponseDataEnforceAdmins; - required_pull_request_reviews: ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviews; - restrictions: ReposUpdateBranchProtectionResponseDataRestrictions; - required_linear_history: ReposUpdateBranchProtectionResponseDataRequiredLinearHistory; - allow_force_pushes: ReposUpdateBranchProtectionResponseDataAllowForcePushes; - allow_deletions: ReposUpdateBranchProtectionResponseDataAllowDeletions; -}; -declare type ReposRemoveBranchProtectionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveBranchProtectionRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchAdminEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchAdminEnforcementRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchAdminEnforcementResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposAddProtectedBranchAdminEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposAddProtectedBranchAdminEnforcementRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchAdminEnforcementResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposRemoveProtectedBranchAdminEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchAdminEnforcementRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseData = { - url: string; - dismissal_restrictions: ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * 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. - */ - dismissal_restrictions?: ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions; - /** - * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. - */ - dismiss_stale_reviews?: boolean; - /** - * Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed. - */ - require_code_owner_reviews?: boolean; - /** - * Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6. - */ - required_approving_review_count?: number; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseData = { - url: string; - dismissal_restrictions: ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredSignaturesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -} & RequiredPreview<"zzzax">; -declare type ReposGetProtectedBranchRequiredSignaturesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredSignaturesResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposAddProtectedBranchRequiredSignaturesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -} & RequiredPreview<"zzzax">; -declare type ReposAddProtectedBranchRequiredSignaturesRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchRequiredSignaturesResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposRemoveProtectedBranchRequiredSignaturesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -} & RequiredPreview<"zzzax">; -declare type ReposRemoveProtectedBranchRequiredSignaturesRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchRequiredStatusChecksRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredStatusChecksResponseData = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposUpdateProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * Require branches to be up to date before merging. - */ - strict?: boolean; - /** - * The list of status checks to require in order to merge into this branch - */ - contexts?: string[]; -}; -declare type ReposUpdateProtectedBranchRequiredStatusChecksRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateProtectedBranchRequiredStatusChecksResponseData = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposListProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * contexts parameter - */ - contexts: string[]; -}; -declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * contexts parameter - */ - contexts: string[]; -}; -declare type ReposAddProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * contexts parameter - */ - contexts: string[]; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposGetProtectedBranchRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchRestrictionsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataAppsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataAppsItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataAppsItem = { - id: number; - slug: string; - node_id: string; - owner: ReposGetProtectedBranchRestrictionsResponseDataAppsItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposGetProtectedBranchRestrictionsResponseDataAppsItemPermissions; - events: Array; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetProtectedBranchRestrictionsResponseData = { - url: string; - users_url: string; - teams_url: string; - apps_url: string; - users: Array; - teams: Array; - apps: Array; -}; -declare type ReposRemoveProtectedBranchRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetAppsWithAccessToProtectedBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposGetAppsWithAccessToProtectedBranchResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposGetAppsWithAccessToProtectedBranchResponseDataItemPermissions; - events: Array; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseData = Array; -declare type ReposReplaceProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * apps parameter - */ - apps: string[]; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposReplaceProtectedBranchAppRestrictionsResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposReplaceProtectedBranchAppRestrictionsResponseDataItemPermissions; - events: Array; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseData = Array; -declare type ReposAddProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * apps parameter - */ - apps: string[]; -}; -declare type ReposAddProtectedBranchAppRestrictionsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposAddProtectedBranchAppRestrictionsResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposAddProtectedBranchAppRestrictionsResponseDataItemPermissions; - events: Array; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseData = Array; -declare type ReposRemoveProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * apps parameter - */ - apps: string[]; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposRemoveProtectedBranchAppRestrictionsResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposRemoveProtectedBranchAppRestrictionsResponseDataItemPermissions; - events: Array; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseData = Array; -declare type ReposGetTeamsWithAccessToProtectedBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetTeamsWithAccessToProtectedBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetTeamsWithAccessToProtectedBranchResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetTeamsWithAccessToProtectedBranchResponseData = Array; -declare type ReposReplaceProtectedBranchTeamRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * teams parameter - */ - teams: string[]; -}; -declare type ReposReplaceProtectedBranchTeamRestrictionsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchTeamRestrictionsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposReplaceProtectedBranchTeamRestrictionsResponseData = Array; -declare type ReposAddProtectedBranchTeamRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * teams parameter - */ - teams: string[]; -}; -declare type ReposAddProtectedBranchTeamRestrictionsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchTeamRestrictionsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposAddProtectedBranchTeamRestrictionsResponseData = Array; -declare type ReposRemoveProtectedBranchTeamRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * teams parameter - */ - teams: string[]; -}; -declare type ReposRemoveProtectedBranchTeamRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchTeamRestrictionsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposRemoveProtectedBranchTeamRestrictionsResponseData = Array; -declare type ReposGetUsersWithAccessToProtectedBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetUsersWithAccessToProtectedBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetUsersWithAccessToProtectedBranchResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetUsersWithAccessToProtectedBranchResponseData = Array; -declare type ReposReplaceProtectedBranchUserRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * users parameter - */ - users: string[]; -}; -declare type ReposReplaceProtectedBranchUserRestrictionsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchUserRestrictionsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposReplaceProtectedBranchUserRestrictionsResponseData = Array; -declare type ReposAddProtectedBranchUserRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * users parameter - */ - users: string[]; -}; -declare type ReposAddProtectedBranchUserRestrictionsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchUserRestrictionsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddProtectedBranchUserRestrictionsResponseData = Array; -declare type ReposRemoveProtectedBranchUserRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * users parameter - */ - users: string[]; -}; -declare type ReposRemoveProtectedBranchUserRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchUserRestrictionsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposRemoveProtectedBranchUserRestrictionsResponseData = Array; -declare type ChecksCreateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the check. For example, "code-coverage". - */ - name: string; - /** - * The SHA of the commit. - */ - head_sha: string; - /** - * 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. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * 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`. - */ - started_at?: string; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. 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`. Only GitHub can change a check run conclusion to `stale`. - */ - conclusion?: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required"; - /** - * 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`. - */ - completed_at?: string; - /** - * 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://developer.github.com/v3/checks/runs/#output-object) description. - */ - output?: ChecksCreateParamsOutput; - /** - * 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://developer.github.com/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." - */ - actions?: ChecksCreateParamsActions[]; -} & RequiredPreview<"antiope">; -declare type ChecksCreateRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/check-runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksCreateResponseDataPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksCreateResponseDataPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksCreateResponseDataPullRequestsItemBaseRepo; -}; -declare type ChecksCreateResponseDataPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksCreateResponseDataPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksCreateResponseDataPullRequestsItemHeadRepo; -}; -declare type ChecksCreateResponseDataPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksCreateResponseDataPullRequestsItemHead; - base: ChecksCreateResponseDataPullRequestsItemBase; -}; -declare type ChecksCreateResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksCreateResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksCreateResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksCreateResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksCreateResponseDataAppPermissions; - events: Array; -}; -declare type ChecksCreateResponseDataCheckSuite = { - id: number; -}; -declare type ChecksCreateResponseDataOutput = { - title: string; - summary: string; - text: string; - annotations_count?: number; - annotations_url?: string; -}; -declare type ChecksCreateResponseData = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: null | string; - started_at: string; - completed_at: null | string; - output: ChecksCreateResponseDataOutput; - name: string; - check_suite: ChecksCreateResponseDataCheckSuite; - app: ChecksCreateResponseDataApp; - pull_requests: Array; -}; -declare type ChecksUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_run_id parameter - */ - check_run_id: number; - /** - * The name of the check. For example, "code-coverage". - */ - name?: string; - /** - * The URL of the integrator's site that has the full details of the check. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - started_at?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. - * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. Only GitHub can change a check run conclusion to `stale`. - */ - conclusion?: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required"; - /** - * 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`. - */ - completed_at?: string; - /** - * 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://developer.github.com/v3/checks/runs/#output-object-1) description. - */ - output?: ChecksUpdateParamsOutput; - /** - * 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://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." - */ - actions?: ChecksUpdateParamsActions[]; -} & RequiredPreview<"antiope">; -declare type ChecksUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/check-runs/:check_run_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksUpdateResponseDataPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksUpdateResponseDataPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksUpdateResponseDataPullRequestsItemBaseRepo; -}; -declare type ChecksUpdateResponseDataPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksUpdateResponseDataPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksUpdateResponseDataPullRequestsItemHeadRepo; -}; -declare type ChecksUpdateResponseDataPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksUpdateResponseDataPullRequestsItemHead; - base: ChecksUpdateResponseDataPullRequestsItemBase; -}; -declare type ChecksUpdateResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksUpdateResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksUpdateResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksUpdateResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksUpdateResponseDataAppPermissions; - events: Array; -}; -declare type ChecksUpdateResponseDataCheckSuite = { - id: number; -}; -declare type ChecksUpdateResponseDataOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksUpdateResponseData = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksUpdateResponseDataOutput; - name: string; - check_suite: ChecksUpdateResponseDataCheckSuite; - app: ChecksUpdateResponseDataApp; - pull_requests: Array; -}; -declare type ChecksGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_run_id parameter - */ - check_run_id: number; -} & RequiredPreview<"antiope">; -declare type ChecksGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-runs/:check_run_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksGetResponseDataPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksGetResponseDataPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksGetResponseDataPullRequestsItemBaseRepo; -}; -declare type ChecksGetResponseDataPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksGetResponseDataPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksGetResponseDataPullRequestsItemHeadRepo; -}; -declare type ChecksGetResponseDataPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksGetResponseDataPullRequestsItemHead; - base: ChecksGetResponseDataPullRequestsItemBase; -}; -declare type ChecksGetResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksGetResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksGetResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksGetResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksGetResponseDataAppPermissions; - events: Array; -}; -declare type ChecksGetResponseDataCheckSuite = { - id: number; -}; -declare type ChecksGetResponseDataOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksGetResponseData = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksGetResponseDataOutput; - name: string; - check_suite: ChecksGetResponseDataCheckSuite; - app: ChecksGetResponseDataApp; - pull_requests: Array; -}; -declare type ChecksListAnnotationsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_run_id parameter - */ - check_run_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListAnnotationsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListAnnotationsResponseDataItem = { - path: string; - start_line: number; - end_line: number; - start_column: number; - end_column: number; - annotation_level: string; - title: string; - message: string; - raw_details: string; -}; -declare type ChecksListAnnotationsResponseData = Array; -declare type ChecksCreateSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The sha of the head commit. - */ - head_sha: string; -} & RequiredPreview<"antiope">; -declare type ChecksCreateSuiteRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/check-suites"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksCreateSuiteResponseDataRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksCreateSuiteResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksCreateSuiteResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksCreateSuiteResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksCreateSuiteResponseDataRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksCreateSuiteResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksCreateSuiteResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksCreateSuiteResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksCreateSuiteResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksCreateSuiteResponseDataAppPermissions; - events: Array; -}; -declare type ChecksCreateSuiteResponseData = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksCreateSuiteResponseDataApp; - repository: ChecksCreateSuiteResponseDataRepository; -}; -declare type ChecksSetSuitesPreferencesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/v3/checks/suites/#auto_trigger_checks-object) description for details. - */ - auto_trigger_checks?: ChecksSetSuitesPreferencesParamsAutoTriggerChecks[]; -} & RequiredPreview<"antiope">; -declare type ChecksSetSuitesPreferencesRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/check-suites/preferences"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksSetSuitesPreferencesResponseDataRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksSetSuitesPreferencesResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksSetSuitesPreferencesResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksSetSuitesPreferencesResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksSetSuitesPreferencesResponseDataRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksSetSuitesPreferencesResponseDataPreferencesAutoTriggerChecksItem = { - app_id: number; - setting: boolean; -}; -declare type ChecksSetSuitesPreferencesResponseDataPreferences = { - auto_trigger_checks: Array; -}; -declare type ChecksSetSuitesPreferencesResponseData = { - preferences: ChecksSetSuitesPreferencesResponseDataPreferences; - repository: ChecksSetSuitesPreferencesResponseDataRepository; -}; -declare type ChecksGetSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_suite_id parameter - */ - check_suite_id: number; -} & RequiredPreview<"antiope">; -declare type ChecksGetSuiteRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-suites/:check_suite_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksGetSuiteResponseDataRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksGetSuiteResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksGetSuiteResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksGetSuiteResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksGetSuiteResponseDataRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksGetSuiteResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksGetSuiteResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksGetSuiteResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksGetSuiteResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksGetSuiteResponseDataAppPermissions; - events: Array; -}; -declare type ChecksGetSuiteResponseData = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksGetSuiteResponseDataApp; - repository: ChecksGetSuiteResponseDataRepository; -}; -declare type ChecksListForSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_suite_id parameter - */ - check_suite_id: number; - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListForSuiteRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBaseRepo; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHeadRepo; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHead; - base: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBase; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksListForSuiteResponseDataCheckRunsItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksListForSuiteResponseDataCheckRunsItemAppPermissions; - events: Array; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemCheckSuite = { - id: number; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItem = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksListForSuiteResponseDataCheckRunsItemOutput; - name: string; - check_suite: ChecksListForSuiteResponseDataCheckRunsItemCheckSuite; - app: ChecksListForSuiteResponseDataCheckRunsItemApp; - pull_requests: Array; -}; -declare type ChecksListForSuiteResponseData = { - total_count: number; - check_runs: Array; -}; -declare type ChecksRerequestSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_suite_id parameter - */ - check_suite_id: number; -} & RequiredPreview<"antiope">; -declare type ChecksRerequestSuiteRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodeScanningListAlertsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Set to `closed` to list only closed code scanning alerts. - */ - state?: string; - /** - * Returns a list of code scanning alerts for a specific brach reference. The `ref` must be formatted as `heads/`. - */ - ref?: string; -}; -declare type CodeScanningListAlertsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/code-scanning/alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodeScanningListAlertsForRepoResponseDataItem = { - rule_id: string; - rule_severity: string; - rule_description: string; - tool: string; - created_at: string; - open: boolean; - closed_by: null; - closed_at: null; - url: string; - html_url: string; -}; -declare type CodeScanningListAlertsForRepoResponseData = Array; -declare type CodeScanningGetAlertEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * alert_id parameter - */ - alert_id: number; -}; -declare type CodeScanningGetAlertRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/code-scanning/alerts/:alert_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodeScanningGetAlertResponseData = { - rule_id: string; - rule_severity: string; - rule_description: string; - tool: string; - created_at: string; - open: boolean; - closed_by: null; - closed_at: null; - url: string; - html_url: string; -}; -declare type ReposListCollaboratorsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCollaboratorsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/collaborators"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCollaboratorsResponseDataItemPermissions = { - pull: boolean; - push: boolean; - admin: boolean; -}; -declare type ReposListCollaboratorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - permissions: ReposListCollaboratorsResponseDataItemPermissions; -}; -declare type ReposListCollaboratorsResponseData = Array; -declare type ReposCheckCollaboratorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; -}; -declare type ReposCheckCollaboratorRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddCollaboratorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin" | "maintain" | "triage"; -}; -declare type ReposAddCollaboratorRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddCollaboratorResponseDataInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddCollaboratorResponseDataInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddCollaboratorResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddCollaboratorResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposAddCollaboratorResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposAddCollaboratorResponseData = { - id: number; - repository: ReposAddCollaboratorResponseDataRepository; - invitee: ReposAddCollaboratorResponseDataInvitee; - inviter: ReposAddCollaboratorResponseDataInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type ReposRemoveCollaboratorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; -}; -declare type ReposRemoveCollaboratorRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCollaboratorPermissionLevelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; -}; -declare type ReposGetCollaboratorPermissionLevelRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/collaborators/:username/permission"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCollaboratorPermissionLevelResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCollaboratorPermissionLevelResponseData = { - permission: string; - user: ReposGetCollaboratorPermissionLevelResponseDataUser; -}; -declare type ReposListCommitCommentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCommitCommentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommitCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommitCommentsResponseDataItem = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposListCommitCommentsResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type ReposListCommitCommentsResponseData = Array; -declare type ReposGetCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type ReposGetCommitCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCommitCommentResponseData = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposGetCommitCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type ReposUpdateCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The contents of the comment - */ - body: string; -}; -declare type ReposUpdateCommitCommentRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateCommitCommentResponseData = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposUpdateCommitCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type ReposDeleteCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type ReposDeleteCommitCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForCommitCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForCommitCommentResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForCommitCommentResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForCommitCommentResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForCommitCommentResponseData = Array; -declare type ReactionsCreateForCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForCommitCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForCommitCommentResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForCommitCommentResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForCommitCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommitsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`). - */ - sha?: string; - /** - * Only commits containing this file path will be returned. - */ - path?: string; - /** - * GitHub login or email address by which to filter by commit author. - */ - author?: string; - /** - * Only commits after 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`. - */ - since?: string; - /** - * 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`. - */ - until?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCommitsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommitsResponseDataItemParentsItem = { - url: string; - sha: string; -}; -declare type ReposListCommitsResponseDataItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommitsResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommitsResponseDataItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposListCommitsResponseDataItemCommitTree = { - url: string; - sha: string; -}; -declare type ReposListCommitsResponseDataItemCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposListCommitsResponseDataItemCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposListCommitsResponseDataItemCommit = { - url: string; - author: ReposListCommitsResponseDataItemCommitAuthor; - committer: ReposListCommitsResponseDataItemCommitCommitter; - message: string; - tree: ReposListCommitsResponseDataItemCommitTree; - comment_count: number; - verification: ReposListCommitsResponseDataItemCommitVerification; -}; -declare type ReposListCommitsResponseDataItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposListCommitsResponseDataItemCommit; - author: ReposListCommitsResponseDataItemAuthor; - committer: ReposListCommitsResponseDataItemCommitter; - parents: Array; -}; -declare type ReposListCommitsResponseData = Array; -declare type ReposListBranchesForHeadCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; -} & RequiredPreview<"groot">; -declare type ReposListBranchesForHeadCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListBranchesForHeadCommitResponseDataItemCommit = { - sha: string; - url: string; -}; -declare type ReposListBranchesForHeadCommitResponseDataItem = { - name: string; - commit: ReposListBranchesForHeadCommitResponseDataItemCommit; - protected: boolean; -}; -declare type ReposListBranchesForHeadCommitResponseData = Array; -declare type ReposListCommentsForCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCommentsForCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:commit_sha/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommentsForCommitResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommentsForCommitResponseDataItem = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposListCommentsForCommitResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type ReposListCommentsForCommitResponseData = Array; -declare type ReposCreateCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; - /** - * The contents of the comment. - */ - body: string; - /** - * Relative path of the file to comment on. - */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - /** - * **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. - */ - line?: number; -}; -declare type ReposCreateCommitCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/commits/:commit_sha/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateCommitCommentResponseData = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposCreateCommitCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"groot">; -declare type ReposListPullRequestsAssociatedWithCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:commit_sha/pulls"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksStatuses = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksCommits = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComment = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComments = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksComments = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksIssue = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksHtml = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksSelf = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinks = { - self: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksSelf; - html: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksHtml; - issue: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksIssue; - comments: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksComments; - review_comments: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComments; - review_comment: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComment; - commits: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksCommits; - statuses: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksStatuses; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBase = { - label: string; - ref: string; - sha: string; - user: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseUser; - repo: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepo; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHead = { - label: string; - ref: string; - sha: string; - user: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadUser; - repo: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepo; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItem = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: ReposListPullRequestsAssociatedWithCommitResponseDataItemUser; - body: string; - labels: Array; - milestone: ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: ReposListPullRequestsAssociatedWithCommitResponseDataItemAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: ReposListPullRequestsAssociatedWithCommitResponseDataItemHead; - base: ReposListPullRequestsAssociatedWithCommitResponseDataItemBase; - _links: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinks; - author_association: string; - draft: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseData = Array; -declare type ReposGetCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type ReposGetCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCommitResponseDataFilesItem = { - filename: string; - additions: number; - deletions: number; - changes: number; - status: string; - raw_url: string; - blob_url: string; - patch: string; -}; -declare type ReposGetCommitResponseDataStats = { - additions: number; - deletions: number; - total: number; -}; -declare type ReposGetCommitResponseDataParentsItem = { - url: string; - sha: string; -}; -declare type ReposGetCommitResponseDataCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCommitResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCommitResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposGetCommitResponseDataCommitTree = { - url: string; - sha: string; -}; -declare type ReposGetCommitResponseDataCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposGetCommitResponseDataCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposGetCommitResponseDataCommit = { - url: string; - author: ReposGetCommitResponseDataCommitAuthor; - committer: ReposGetCommitResponseDataCommitCommitter; - message: string; - tree: ReposGetCommitResponseDataCommitTree; - comment_count: number; - verification: ReposGetCommitResponseDataCommitVerification; -}; -declare type ReposGetCommitResponseData = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposGetCommitResponseDataCommit; - author: ReposGetCommitResponseDataAuthor; - committer: ReposGetCommitResponseDataCommitter; - parents: Array; - stats: ReposGetCommitResponseDataStats; - files: Array; -}; -declare type ChecksListForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/check-runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBaseRepo; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHeadRepo; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHead; - base: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBase; -}; -declare type ChecksListForRefResponseDataCheckRunsItemAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksListForRefResponseDataCheckRunsItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksListForRefResponseDataCheckRunsItemAppPermissions; - events: Array; -}; -declare type ChecksListForRefResponseDataCheckRunsItemCheckSuite = { - id: number; -}; -declare type ChecksListForRefResponseDataCheckRunsItemOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItem = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksListForRefResponseDataCheckRunsItemOutput; - name: string; - check_suite: ChecksListForRefResponseDataCheckRunsItemCheckSuite; - app: ChecksListForRefResponseDataCheckRunsItemApp; - pull_requests: Array; -}; -declare type ChecksListForRefResponseData = { - total_count: number; - check_runs: Array; -}; -declare type ChecksListSuitesForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Filters check suites by GitHub App `id`. - */ - app_id?: number; - /** - * Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/). - */ - check_name?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListSuitesForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/check-suites"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksListSuitesForRefResponseDataCheckSuitesItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksListSuitesForRefResponseDataCheckSuitesItemAppPermissions; - events: Array; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItem = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksListSuitesForRefResponseDataCheckSuitesItemApp; - repository: ChecksListSuitesForRefResponseDataCheckSuitesItemRepository; -}; -declare type ChecksListSuitesForRefResponseData = { - total_count: number; - check_suites: Array; -}; -declare type ReposGetCombinedStatusForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type ReposGetCombinedStatusForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/status"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCombinedStatusForRefResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCombinedStatusForRefResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetCombinedStatusForRefResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposGetCombinedStatusForRefResponseDataStatusesItem = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; -}; -declare type ReposGetCombinedStatusForRefResponseData = { - state: string; - statuses: Array; - sha: string; - total_count: number; - repository: ReposGetCombinedStatusForRefResponseDataRepository; - commit_url: string; - url: string; -}; -declare type ReposListStatusesForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListStatusesForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/statuses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListStatusesForRefResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListStatusesForRefResponseDataItem = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; - creator: ReposListStatusesForRefResponseDataItemCreator; -}; -declare type ReposListStatusesForRefResponseData = Array; -declare type CodesOfConductGetForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"scarlet-witch">; -declare type CodesOfConductGetForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/community/code_of_conduct"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetForRepoResponseData = { - key: string; - name: string; - url: string; - body: string; -}; -declare type ReposRetrieveCommunityProfileMetricsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposRetrieveCommunityProfileMetricsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/community/profile"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesReadme = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesLicense = { - name: string; - key: string; - spdx_id: string; - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesPullRequestTemplate = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesIssueTemplate = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesContributing = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesCodeOfConduct = { - name: string; - key: string; - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFiles = { - code_of_conduct: ReposRetrieveCommunityProfileMetricsResponseDataFilesCodeOfConduct; - contributing: ReposRetrieveCommunityProfileMetricsResponseDataFilesContributing; - issue_template: ReposRetrieveCommunityProfileMetricsResponseDataFilesIssueTemplate; - pull_request_template: ReposRetrieveCommunityProfileMetricsResponseDataFilesPullRequestTemplate; - license: ReposRetrieveCommunityProfileMetricsResponseDataFilesLicense; - readme: ReposRetrieveCommunityProfileMetricsResponseDataFilesReadme; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseData = { - health_percentage: number; - description: string; - documentation: boolean; - files: ReposRetrieveCommunityProfileMetricsResponseDataFiles; - updated_at: string; -}; -declare type ReposCompareCommitsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * base parameter - */ - base: string; - /** - * head parameter - */ - head: string; -}; -declare type ReposCompareCommitsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/compare/:base...:head"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCompareCommitsResponseDataFilesItem = { - sha: string; - filename: string; - status: string; - additions: number; - deletions: number; - changes: number; - blob_url: string; - raw_url: string; - contents_url: string; - patch: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemParentsItem = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataCommitsItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitTree = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommit = { - url: string; - author: ReposCompareCommitsResponseDataCommitsItemCommitAuthor; - committer: ReposCompareCommitsResponseDataCommitsItemCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseDataCommitsItemCommitTree; - comment_count: number; - verification: ReposCompareCommitsResponseDataCommitsItemCommitVerification; -}; -declare type ReposCompareCommitsResponseDataCommitsItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposCompareCommitsResponseDataCommitsItemCommit; - author: ReposCompareCommitsResponseDataCommitsItemAuthor; - committer: ReposCompareCommitsResponseDataCommitsItemCommitter; - parents: Array; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitParentsItem = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitTree = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommit = { - url: string; - author: ReposCompareCommitsResponseDataMergeBaseCommitCommitAuthor; - committer: ReposCompareCommitsResponseDataMergeBaseCommitCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseDataMergeBaseCommitCommitTree; - comment_count: number; - verification: ReposCompareCommitsResponseDataMergeBaseCommitCommitVerification; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommit = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposCompareCommitsResponseDataMergeBaseCommitCommit; - author: ReposCompareCommitsResponseDataMergeBaseCommitAuthor; - committer: ReposCompareCommitsResponseDataMergeBaseCommitCommitter; - parents: Array; -}; -declare type ReposCompareCommitsResponseDataBaseCommitParentsItem = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataBaseCommitAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitTree = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommit = { - url: string; - author: ReposCompareCommitsResponseDataBaseCommitCommitAuthor; - committer: ReposCompareCommitsResponseDataBaseCommitCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseDataBaseCommitCommitTree; - comment_count: number; - verification: ReposCompareCommitsResponseDataBaseCommitCommitVerification; -}; -declare type ReposCompareCommitsResponseDataBaseCommit = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposCompareCommitsResponseDataBaseCommitCommit; - author: ReposCompareCommitsResponseDataBaseCommitAuthor; - committer: ReposCompareCommitsResponseDataBaseCommitCommitter; - parents: Array; -}; -declare type ReposCompareCommitsResponseData = { - url: string; - html_url: string; - permalink_url: string; - diff_url: string; - patch_url: string; - base_commit: ReposCompareCommitsResponseDataBaseCommit; - merge_base_commit: ReposCompareCommitsResponseDataMergeBaseCommit; - status: string; - ahead_by: number; - behind_by: number; - total_commits: number; - commits: Array; - files: Array; -}; -declare type ReposGetContentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * path parameter - */ - path: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; -}; -declare type ReposGetContentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/contents/:path"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetContentsResponseDataItemLinks = { - self: string; - git: string; - html: string; -}; -declare type ReposGetContentsResponseDataItem = { - type: string; - size: number; - name: string; - path: string; - sha: string; - url: string; - git_url: string; - html_url: string; - download_url: string | null; - _links: ReposGetContentsResponseDataItemLinks; -}; -declare type ReposGetContentsResponseDataLinks = { - git: string; - self: string; - html: string; -}; -declare type ReposGetContentsResponseData = { - type: string; - encoding?: string; - size: number; - name: string; - path: string; - content?: string; - sha: string; - url: string; - git_url: string; - html_url: string; - download_url: string | null; - _links: ReposGetContentsResponseDataLinks; - target?: string; - submodule_git_url?: string; -} | Array; -declare type ReposCreateOrUpdateFileEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * path parameter - */ - path: string; - /** - * The commit message. - */ - message: string; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. - */ - sha?: string; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * The person that committed the file. Default: the authenticated user. - */ - committer?: ReposCreateOrUpdateFileParamsCommitter; - /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. - */ - author?: ReposCreateOrUpdateFileParamsAuthor; -}; -declare type ReposCreateOrUpdateFileRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/contents/:path"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitParentsItem = { - url: string; - html_url: string; - sha: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitTree = { - url: string; - sha: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitCommitter = { - date: string; - name: string; - email: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitAuthor = { - date: string; - name: string; - email: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommit = { - sha: string; - node_id: string; - url: string; - html_url: string; - author: ReposCreateOrUpdateFileResponseDataCommitAuthor; - committer: ReposCreateOrUpdateFileResponseDataCommitCommitter; - message: string; - tree: ReposCreateOrUpdateFileResponseDataCommitTree; - parents: Array; - verification: ReposCreateOrUpdateFileResponseDataCommitVerification; -}; -declare type ReposCreateOrUpdateFileResponseDataContentLinks = { - self: string; - git: string; - html: string; -}; -declare type ReposCreateOrUpdateFileResponseDataContent = { - name: string; - path: string; - sha: string; - size: number; - url: string; - html_url: string; - git_url: string; - download_url: string; - type: string; - _links: ReposCreateOrUpdateFileResponseDataContentLinks; -}; -declare type ReposCreateOrUpdateFileResponseData = { - content: ReposCreateOrUpdateFileResponseDataContent; - commit: ReposCreateOrUpdateFileResponseDataCommit; -}; -declare type ReposDeleteFileEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * path parameter - */ - path: string; - /** - * The commit message. - */ - message: string; - /** - * The blob SHA of the file being replaced. - */ - sha: string; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * object containing information about the committer. - */ - committer?: ReposDeleteFileParamsCommitter; - /** - * object containing information about the author. - */ - author?: ReposDeleteFileParamsAuthor; -}; -declare type ReposDeleteFileRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/contents/:path"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDeleteFileResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposDeleteFileResponseDataCommitParentsItem = { - url: string; - html_url: string; - sha: string; -}; -declare type ReposDeleteFileResponseDataCommitTree = { - url: string; - sha: string; -}; -declare type ReposDeleteFileResponseDataCommitCommitter = { - date: string; - name: string; - email: string; -}; -declare type ReposDeleteFileResponseDataCommitAuthor = { - date: string; - name: string; - email: string; -}; -declare type ReposDeleteFileResponseDataCommit = { - sha: string; - node_id: string; - url: string; - html_url: string; - author: ReposDeleteFileResponseDataCommitAuthor; - committer: ReposDeleteFileResponseDataCommitCommitter; - message: string; - tree: ReposDeleteFileResponseDataCommitTree; - parents: Array; - verification: ReposDeleteFileResponseDataCommitVerification; -}; -declare type ReposDeleteFileResponseData = { - content: null; - commit: ReposDeleteFileResponseDataCommit; -}; -declare type ReposListContributorsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Set to `1` or `true` to include anonymous contributors in results. - */ - anon?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListContributorsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/contributors"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListContributorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - contributions: number; -}; -declare type ReposListContributorsResponseData = Array; -declare type ReposListDeploymentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The SHA recorded at creation time. - */ - sha?: string; - /** - * The name of the ref. This can be a branch, tag, or SHA. - */ - ref?: string; - /** - * The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - /** - * The name of the environment that was deployed to (e.g., `staging` or `production`). - */ - environment?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDeploymentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeploymentsResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListDeploymentsResponseDataItemPayload = { - deploy: string; -}; -declare type ReposListDeploymentsResponseDataItem = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposListDeploymentsResponseDataItemPayload; - original_environment: string; - environment: string; - description: string; - creator: ReposListDeploymentsResponseDataItemCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; -}; -declare type ReposListDeploymentsResponseData = Array; -declare type ReposCreateDeploymentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The ref to deploy. This can be a branch, tag, or SHA. - */ - ref: string; - /** - * Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - /** - * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. - */ - auto_merge?: boolean; - /** - * The [status](https://developer.github.com/v3/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. - */ - required_contexts?: string[]; - /** - * JSON payload with extra information about the deployment. - */ - payload?: string; - /** - * Name for the target deployment environment (e.g., `production`, `staging`, `qa`). - */ - environment?: string; - /** - * Short description of the deployment. - */ - description?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - transient_environment?: boolean; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - production_environment?: boolean; -}; -declare type ReposCreateDeploymentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/deployments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateDeploymentResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateDeploymentResponseDataPayload = { - deploy: string; -}; -declare type ReposCreateDeploymentResponseData = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposCreateDeploymentResponseDataPayload; - original_environment: string; - environment: string; - description: string; - creator: ReposCreateDeploymentResponseDataCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; -}; -declare type ReposGetDeploymentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; -}; -declare type ReposGetDeploymentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments/:deployment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDeploymentResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetDeploymentResponseDataPayload = { - deploy: string; -}; -declare type ReposGetDeploymentResponseData = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposGetDeploymentResponseDataPayload; - original_environment: string; - environment: string; - description: string; - creator: ReposGetDeploymentResponseDataCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; -}; -declare type ReposDeleteDeploymentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; -}; -declare type ReposDeleteDeploymentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/deployments/:deployment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeploymentStatusesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDeploymentStatusesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeploymentStatusesResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListDeploymentStatusesResponseDataItem = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposListDeploymentStatusesResponseDataItemCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; -}; -declare type ReposListDeploymentStatusesResponseData = Array; -declare type ReposCreateDeploymentStatusEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; - /** - * 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://developer.github.com/v3/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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - state: "error" | "failure" | "inactive" | "in_progress" | "queued" | "pending" | "success"; - /** - * 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`. - */ - target_url?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - log_url?: string; - /** - * A short description of the status. The maximum description length is 140 characters. - */ - description?: string; - /** - * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - environment?: "production" | "staging" | "qa"; - /** - * Sets the URL for accessing your environment. Default: `""` - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - environment_url?: string; - /** - * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - auto_inactive?: boolean; -}; -declare type ReposCreateDeploymentStatusRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateDeploymentStatusResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateDeploymentStatusResponseData = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposCreateDeploymentStatusResponseDataCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; -}; -declare type ReposGetDeploymentStatusEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; - /** - * status_id parameter - */ - status_id: number; -}; -declare type ReposGetDeploymentStatusRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDeploymentStatusResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetDeploymentStatusResponseData = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposGetDeploymentStatusResponseDataCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; -}; -declare type ReposCreateDispatchEventEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * **Required:** A custom webhook event name. - */ - event_type?: string; - /** - * JSON payload with extra information about the webhook event that your action or worklow may use. - */ - client_payload?: ReposCreateDispatchEventParamsClientPayload; -}; -declare type ReposCreateDispatchEventRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/dispatches"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDownloadsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDownloadsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/downloads"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDownloadsResponseDataItem = { - url: string; - html_url: string; - id: number; - name: string; - description: string; - size: number; - download_count: number; - content_type: string; -}; -declare type ReposListDownloadsResponseData = Array; -declare type ReposGetDownloadEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * download_id parameter - */ - download_id: number; -}; -declare type ReposGetDownloadRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/downloads/:download_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDownloadResponseData = { - url: string; - html_url: string; - id: number; - name: string; - description: string; - size: number; - download_count: number; - content_type: string; -}; -declare type ReposDeleteDownloadEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * download_id parameter - */ - download_id: number; -}; -declare type ReposDeleteDownloadRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/downloads/:download_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListRepoEventsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListRepoEventsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The sort order. Can be either `newest`, `oldest`, or `stargazers`. - */ - sort?: "newest" | "oldest" | "stargazers"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListForksRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForksResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ReposListForksResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListForksResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListForksResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListForksResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListForksResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ReposListForksResponseDataItemLicense; -}; -declare type ReposListForksResponseData = Array; -declare type ReposCreateForkEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Optional parameter to specify the organization name if forking into an organization. - */ - organization?: string; -}; -declare type ReposCreateForkRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateForkResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateForkResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateForkResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateForkResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateForkResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type GitCreateBlobEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The new blob's content. - */ - content: string; - /** - * The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. - */ - encoding?: string; -}; -declare type GitCreateBlobRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/blobs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateBlobResponseData = { - url: string; - sha: string; -}; -declare type GitGetBlobEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * file_sha parameter - */ - file_sha: string; -}; -declare type GitGetBlobRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/blobs/:file_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetBlobResponseData = { - content: string; - encoding: string; - url: string; - sha: string; - size: number; -}; -declare type GitCreateCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The commit message - */ - message: string; - /** - * The SHA of the tree object this commit points to - */ - tree: string; - /** - * 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. - */ - parents: string[]; - /** - * 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. - */ - author?: GitCreateCommitParamsAuthor; - /** - * 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. - */ - committer?: GitCreateCommitParamsCommitter; - /** - * 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. - */ - signature?: string; -}; -declare type GitCreateCommitRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateCommitResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitCreateCommitResponseDataParentsItem = { - url: string; - sha: string; -}; -declare type GitCreateCommitResponseDataTree = { - url: string; - sha: string; -}; -declare type GitCreateCommitResponseDataCommitter = { - date: string; - name: string; - email: string; -}; -declare type GitCreateCommitResponseDataAuthor = { - date: string; - name: string; - email: string; -}; -declare type GitCreateCommitResponseData = { - sha: string; - node_id: string; - url: string; - author: GitCreateCommitResponseDataAuthor; - committer: GitCreateCommitResponseDataCommitter; - message: string; - tree: GitCreateCommitResponseDataTree; - parents: Array; - verification: GitCreateCommitResponseDataVerification; -}; -declare type GitGetCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; -}; -declare type GitGetCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/commits/:commit_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetCommitResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitGetCommitResponseDataParentsItem = { - url: string; - sha: string; -}; -declare type GitGetCommitResponseDataTree = { - url: string; - sha: string; -}; -declare type GitGetCommitResponseDataCommitter = { - date: string; - name: string; - email: string; -}; -declare type GitGetCommitResponseDataAuthor = { - date: string; - name: string; - email: string; -}; -declare type GitGetCommitResponseData = { - sha: string; - url: string; - author: GitGetCommitResponseDataAuthor; - committer: GitGetCommitResponseDataCommitter; - message: string; - tree: GitGetCommitResponseDataTree; - parents: Array; - verification: GitGetCommitResponseDataVerification; -}; -declare type GitListMatchingRefsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GitListMatchingRefsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/matching-refs/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitListMatchingRefsResponseDataItemObject = { - type: string; - sha: string; - url: string; -}; -declare type GitListMatchingRefsResponseDataItem = { - ref: string; - node_id: string; - url: string; - object: GitListMatchingRefsResponseDataItemObject; -}; -declare type GitListMatchingRefsResponseData = Array; -declare type GitGetRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type GitGetRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/ref/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetRefResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitGetRefResponseData = { - ref: string; - node_id: string; - url: string; - object: GitGetRefResponseDataObject; -}; -declare type GitCreateRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - ref: string; - /** - * The SHA1 value for this reference. - */ - sha: string; -}; -declare type GitCreateRefRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/refs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateRefResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitCreateRefResponseData = { - ref: string; - node_id: string; - url: string; - object: GitCreateRefResponseDataObject; -}; -declare type GitUpdateRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * The SHA1 value to set this reference to - */ - sha: string; - /** - * 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. - */ - force?: boolean; -}; -declare type GitUpdateRefRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/git/refs/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitUpdateRefResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitUpdateRefResponseData = { - ref: string; - node_id: string; - url: string; - object: GitUpdateRefResponseDataObject; -}; -declare type GitDeleteRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type GitDeleteRefRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/git/refs/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateTagEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The tag's name. This is typically a version (e.g., "v0.0.1"). - */ - tag: string; - /** - * The tag message. - */ - message: string; - /** - * The SHA of the git object this is tagging. - */ - object: string; - /** - * The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. - */ - type: "commit" | "tree" | "blob"; - /** - * An object with information about the individual creating the tag. - */ - tagger?: GitCreateTagParamsTagger; -}; -declare type GitCreateTagRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/tags"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateTagResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitCreateTagResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitCreateTagResponseDataTagger = { - name: string; - email: string; - date: string; -}; -declare type GitCreateTagResponseData = { - node_id: string; - tag: string; - sha: string; - url: string; - message: string; - tagger: GitCreateTagResponseDataTagger; - object: GitCreateTagResponseDataObject; - verification: GitCreateTagResponseDataVerification; -}; -declare type GitGetTagEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * tag_sha parameter - */ - tag_sha: string; -}; -declare type GitGetTagRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/tags/:tag_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetTagResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitGetTagResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitGetTagResponseDataTagger = { - name: string; - email: string; - date: string; -}; -declare type GitGetTagResponseData = { - node_id: string; - tag: string; - sha: string; - url: string; - message: string; - tagger: GitGetTagResponseDataTagger; - object: GitGetTagResponseDataObject; - verification: GitGetTagResponseDataVerification; -}; -declare type GitCreateTreeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. - */ - tree: GitCreateTreeParamsTree[]; - /** - * The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted. - */ - base_tree?: string; -}; -declare type GitCreateTreeRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/trees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateTreeResponseDataTreeItem = { - path: string; - mode: string; - type: string; - size: number; - sha: string; - url: string; -}; -declare type GitCreateTreeResponseData = { - sha: string; - url: string; - tree: Array; -}; -declare type GitGetTreeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * tree_sha parameter - */ - tree_sha: string; - /** - * recursive parameter - */ - recursive?: "1"; -}; -declare type GitGetTreeRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/trees/:tree_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetTreeResponseDataTreeItem = { - path: string; - mode: string; - type: string; - size?: number; - sha: string; - url: string; -}; -declare type GitGetTreeResponseData = { - sha: string; - url: string; - tree: Array; - truncated: boolean; -}; -declare type ReposListHooksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListHooksRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListHooksResponseDataItemLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposListHooksResponseDataItemConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposListHooksResponseDataItem = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposListHooksResponseDataItemConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposListHooksResponseDataItemLastResponse; -}; -declare type ReposListHooksResponseData = Array; -declare type ReposCreateHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. - */ - name?: string; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). - */ - config: ReposCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type ReposCreateHookRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateHookResponseDataLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposCreateHookResponseDataConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposCreateHookResponseData = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposCreateHookResponseDataConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposCreateHookResponseDataLastResponse; -}; -declare type ReposGetHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposGetHookRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetHookResponseDataLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposGetHookResponseDataConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposGetHookResponseData = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposGetHookResponseDataConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposGetHookResponseDataLastResponse; -}; -declare type ReposUpdateHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). - */ - config?: ReposUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events. - */ - events?: string[]; - /** - * Determines a list of events to be added to the list of events that the Hook triggers for. - */ - add_events?: string[]; - /** - * Determines a list of events to be removed from the list of events that the Hook triggers for. - */ - remove_events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type ReposUpdateHookRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateHookResponseDataLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposUpdateHookResponseDataConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposUpdateHookResponseData = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposUpdateHookResponseDataConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposUpdateHookResponseDataLastResponse; -}; -declare type ReposDeleteHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposDeleteHookRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposPingHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposPingHookRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/hooks/:hook_id/pings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposTestPushHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposTestPushHookRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/hooks/:hook_id/tests"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartImportEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The URL of the originating repository. - */ - vcs_url: string; - /** - * The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. - */ - vcs?: "subversion" | "git" | "mercurial" | "tfvc"; - /** - * If authentication is required, the username to provide to `vcs_url`. - */ - vcs_username?: string; - /** - * If authentication is required, the password to provide to `vcs_url`. - */ - vcs_password?: string; - /** - * For a tfvc import, the name of the project that is being imported. - */ - tfvc_project?: string; -}; -declare type MigrationsStartImportRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartImportResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - percent: number; - commit_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; -}; -declare type MigrationsGetImportProgressEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type MigrationsGetImportProgressRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetImportProgressResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; -}; -declare type MigrationsUpdateImportEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The username to provide to the originating repository. - */ - vcs_username?: string; - /** - * The password to provide to the originating repository. - */ - vcs_password?: string; -}; -declare type MigrationsUpdateImportRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsUpdateImportResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - url: string; - html_url: string; - authors_url: string; - repository_url: string; - tfvc_project?: string; - status_text?: string; - has_large_files?: boolean; - large_files_size?: number; - large_files_count?: number; - authors_count?: number; - percent?: number; - commit_count?: number; -}; -declare type MigrationsCancelImportEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type MigrationsCancelImportRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetCommitAuthorsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step. - */ - since?: string; -}; -declare type MigrationsGetCommitAuthorsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/import/authors"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetCommitAuthorsResponseDataItem = { - id: number; - remote_id: string; - remote_name: string; - email: string; - name: string; - url: string; - import_url: string; -}; -declare type MigrationsGetCommitAuthorsResponseData = Array; -declare type MigrationsMapCommitAuthorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * author_id parameter - */ - author_id: number; - /** - * The new Git author email. - */ - email?: string; - /** - * The new Git author name. - */ - name?: string; -}; -declare type MigrationsMapCommitAuthorRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/import/authors/:author_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsMapCommitAuthorResponseData = { - id: number; - remote_id: string; - remote_name: string; - email: string; - name: string; - url: string; - import_url: string; -}; -declare type MigrationsGetLargeFilesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type MigrationsGetLargeFilesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/import/large_files"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetLargeFilesResponseDataItem = { - ref_name: string; - path: string; - oid: string; - size: number; -}; -declare type MigrationsGetLargeFilesResponseData = Array; -declare type MigrationsSetLfsPreferenceEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). - */ - use_lfs: "opt_in" | "opt_out"; -}; -declare type MigrationsSetLfsPreferenceRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/import/lfs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsSetLfsPreferenceResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; -}; -declare type AppsGetRepoInstallationEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetRepoInstallationRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/installation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetRepoInstallationResponseDataPermissions = { - checks: string; - metadata: string; - contents: string; -}; -declare type AppsGetRepoInstallationResponseDataAccount = { - login: string; - id: number; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsGetRepoInstallationResponseData = { - id: number; - account: AppsGetRepoInstallationResponseDataAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetRepoInstallationResponseDataPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type InteractionsGetRestrictionsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"sombra">; -declare type InteractionsGetRestrictionsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsGetRestrictionsForRepoResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsAddOrUpdateRestrictionsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. - */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; -} & RequiredPreview<"sombra">; -declare type InteractionsAddOrUpdateRestrictionsForRepoRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsAddOrUpdateRestrictionsForRepoResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsRemoveRestrictionsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"sombra">; -declare type InteractionsRemoveRestrictionsForRepoRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListInvitationsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListInvitationsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListInvitationsResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsResponseDataItemInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListInvitationsResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposListInvitationsResponseDataItem = { - id: number; - repository: ReposListInvitationsResponseDataItemRepository; - invitee: ReposListInvitationsResponseDataItemInvitee; - inviter: ReposListInvitationsResponseDataItemInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type ReposListInvitationsResponseData = Array; -declare type ReposDeleteInvitationEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * invitation_id parameter - */ - invitation_id: number; -}; -declare type ReposDeleteInvitationRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateInvitationEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * invitation_id parameter - */ - invitation_id: number; - /** - * The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`. - */ - permissions?: "read" | "write" | "maintain" | "triage" | "admin"; -}; -declare type ReposUpdateInvitationRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateInvitationResponseDataInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateInvitationResponseDataInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateInvitationResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateInvitationResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateInvitationResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposUpdateInvitationResponseData = { - id: number; - repository: ReposUpdateInvitationResponseDataRepository; - invitee: ReposUpdateInvitationResponseDataInvitee; - inviter: ReposUpdateInvitationResponseDataInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type IssuesListForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - milestone?: string; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. - */ - assignee?: string; - /** - * The user that created the issue. - */ - creator?: string; - /** - * A user that's mentioned in the issue. - */ - mentioned?: string; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForRepoResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListForRepoResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForRepoResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListForRepoResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListForRepoResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForRepoResponseDataItemUser; - labels: Array; - assignee: IssuesListForRepoResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListForRepoResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForRepoResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesListForRepoResponseData = Array; -declare type IssuesCreateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The title of the issue. - */ - title: string; - /** - * The contents of the issue. - */ - body?: string; - /** - * 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.**_ - */ - assignee?: string; - /** - * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ - */ - milestone?: number; - /** - * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ - */ - labels?: string[]; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesCreateRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateResponseDataClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesCreateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesCreateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesCreateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesCreateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesCreateResponseDataUser; - labels: Array; - assignee: IssuesCreateResponseDataAssignee; - assignees: Array; - milestone: IssuesCreateResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesCreateResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesCreateResponseDataClosedBy; -}; -declare type IssuesListCommentsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Either `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * Either `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListCommentsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListCommentsForRepoResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListCommentsForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesListCommentsForRepoResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type IssuesListCommentsForRepoResponseData = Array; -declare type IssuesGetCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type IssuesGetCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetCommentResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesGetCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type IssuesUpdateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The contents of the comment. - */ - body: string; -}; -declare type IssuesUpdateCommentRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/issues/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateCommentResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesUpdateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type IssuesDeleteCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type IssuesDeleteCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForIssueCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueCommentResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForIssueCommentResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForIssueCommentResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForIssueCommentResponseData = Array; -declare type ReactionsCreateForIssueCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForIssueCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForIssueCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForIssueCommentResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForIssueCommentResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForIssueCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForIssueCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListEventsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForRepoResponseDataItemIssuePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListEventsForRepoResponseDataItemIssueMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssue = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListEventsForRepoResponseDataItemIssueUser; - labels: Array; - assignee: IssuesListEventsForRepoResponseDataItemIssueAssignee; - assignees: Array; - milestone: IssuesListEventsForRepoResponseDataItemIssueMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListEventsForRepoResponseDataItemIssuePullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesListEventsForRepoResponseDataItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsForRepoResponseDataItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; - issue: IssuesListEventsForRepoResponseDataItemIssue; -}; -declare type IssuesListEventsForRepoResponseData = Array; -declare type IssuesGetEventEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * event_id parameter - */ - event_id: number; -}; -declare type IssuesGetEventRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/events/:event_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetEventResponseDataIssuePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesGetEventResponseDataIssueMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssueMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetEventResponseDataIssueMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesGetEventResponseDataIssueAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssueAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssueLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesGetEventResponseDataIssueUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssue = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesGetEventResponseDataIssueUser; - labels: Array; - assignee: IssuesGetEventResponseDataIssueAssignee; - assignees: Array; - milestone: IssuesGetEventResponseDataIssueMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesGetEventResponseDataIssuePullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesGetEventResponseDataActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseData = { - id: number; - node_id: string; - url: string; - actor: IssuesGetEventResponseDataActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; - issue: IssuesGetEventResponseDataIssue; -}; -declare type IssuesGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; -}; -declare type IssuesGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetResponseDataClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesGetResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesGetResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesGetResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesGetResponseDataUser; - labels: Array; - assignee: IssuesGetResponseDataAssignee; - assignees: Array; - milestone: IssuesGetResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesGetResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesGetResponseDataClosedBy; -}; -declare type IssuesUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The title of the issue. - */ - title?: string; - /** - * The contents of the issue. - */ - body?: string; - /** - * Login for the user that this issue should be assigned to. **This field is deprecated.** - */ - assignee?: string; - /** - * State of the issue. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ - */ - milestone?: number | null; - /** - * 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._ - */ - labels?: string[]; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/issues/:issue_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateResponseDataClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesUpdateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesUpdateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesUpdateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesUpdateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesUpdateResponseDataUser; - labels: Array; - assignee: IssuesUpdateResponseDataAssignee; - assignees: Array; - milestone: IssuesUpdateResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesUpdateResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesUpdateResponseDataClosedBy; -}; -declare type IssuesAddAssigneesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesAddAssigneesRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/assignees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesAddAssigneesResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesAddAssigneesResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesAddAssigneesResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesAddAssigneesResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesAddAssigneesResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesAddAssigneesResponseDataUser; - labels: Array; - assignee: IssuesAddAssigneesResponseDataAssignee; - assignees: Array; - milestone: IssuesAddAssigneesResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesAddAssigneesResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesRemoveAssigneesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesRemoveAssigneesRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/assignees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesRemoveAssigneesResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesRemoveAssigneesResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesRemoveAssigneesResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesRemoveAssigneesResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesRemoveAssigneesResponseDataUser; - labels: Array; - assignee: IssuesRemoveAssigneesResponseDataAssignee; - assignees: Array; - milestone: IssuesRemoveAssigneesResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesRemoveAssigneesResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesListCommentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListCommentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListCommentsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesListCommentsResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type IssuesListCommentsResponseData = Array; -declare type IssuesCreateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The contents of the comment. - */ - body: string; -}; -declare type IssuesCreateCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateCommentResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesCreateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type IssuesListEventsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListEventsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsResponseDataItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsResponseDataItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsResponseDataItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; -}; -declare type IssuesListEventsResponseData = Array; -declare type IssuesListLabelsOnIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListLabelsOnIssueRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsOnIssueResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListLabelsOnIssueResponseData = Array; -declare type IssuesAddLabelsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels: string[]; -}; -declare type IssuesAddLabelsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesAddLabelsResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesAddLabelsResponseData = Array; -declare type IssuesReplaceAllLabelsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels?: string[]; -}; -declare type IssuesReplaceAllLabelsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesReplaceAllLabelsResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesReplaceAllLabelsResponseData = Array; -declare type IssuesRemoveAllLabelsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; -}; -declare type IssuesRemoveAllLabelsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesRemoveLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * name parameter - */ - name: string; -}; -declare type IssuesRemoveLabelRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesRemoveLabelResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesRemoveLabelResponseData = Array; -declare type IssuesLockEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * 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` - */ - lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; -}; -declare type IssuesLockRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/issues/:issue_number/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUnlockEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; -}; -declare type IssuesUnlockRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForIssueRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForIssueResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForIssueResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForIssueResponseData = Array; -declare type ReactionsCreateForIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForIssueRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForIssueResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForIssueResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForIssueResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForIssueRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForTimelineEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"mockingbird">; -declare type IssuesListEventsForTimelineRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/timeline"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForTimelineResponseDataItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForTimelineResponseDataItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsForTimelineResponseDataItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; -}; -declare type IssuesListEventsForTimelineResponseData = Array; -declare type ReposListDeployKeysEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDeployKeysRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeployKeysResponseDataItem = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; -}; -declare type ReposListDeployKeysResponseData = Array; -declare type ReposAddDeployKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * A name for the key. - */ - title?: string; - /** - * The contents of the key. - */ - key: string; - /** - * 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/)." - */ - read_only?: boolean; -}; -declare type ReposAddDeployKeyRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddDeployKeyResponseData = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; -}; -declare type ReposGetDeployKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * key_id parameter - */ - key_id: number; -}; -declare type ReposGetDeployKeyRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDeployKeyResponseData = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; -}; -declare type ReposRemoveDeployKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * key_id parameter - */ - key_id: number; -}; -declare type ReposRemoveDeployKeyRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListLabelsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListLabelsForRepoResponseData = Array; -declare type IssuesCreateLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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.com](http://emoji-cheat-sheet.com/). - */ - name: string; - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color: string; - /** - * A short description of the label. - */ - description?: string; -}; -declare type IssuesCreateLabelRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateLabelResponseData = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesGetLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type IssuesGetLabelRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetLabelResponseData = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesUpdateLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; - /** - * 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.com](http://emoji-cheat-sheet.com/). - */ - new_name?: string; - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color?: string; - /** - * A short description of the label. - */ - description?: string; -}; -declare type IssuesUpdateLabelRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateLabelResponseData = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesDeleteLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type IssuesDeleteLabelRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListLanguagesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposListLanguagesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/languages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListLanguagesResponseData = { - C: number; - Python: number; -}; -declare type LicensesGetForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type LicensesGetForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/license"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type LicensesGetForRepoResponseDataLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type LicensesGetForRepoResponseDataLinks = { - self: string; - git: string; - html: string; -}; -declare type LicensesGetForRepoResponseData = { - name: string; - path: string; - sha: string; - size: number; - url: string; - html_url: string; - git_url: string; - download_url: string; - type: string; - content: string; - encoding: string; - _links: LicensesGetForRepoResponseDataLinks; - license: LicensesGetForRepoResponseDataLicense; -}; -declare type ReposMergeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the base branch that the head will be merged into. - */ - base: string; - /** - * The head to merge. This can be a branch name or a commit SHA1. - */ - head: string; - /** - * Commit message to use for the merge commit. If omitted, a default message will be used. - */ - commit_message?: string; -}; -declare type ReposMergeRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/merges"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposMergeResponseDataParentsItem = { - sha: string; - url: string; -}; -declare type ReposMergeResponseDataCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposMergeResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposMergeResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposMergeResponseDataCommitTree = { - sha: string; - url: string; -}; -declare type ReposMergeResponseDataCommitCommitter = { - name: string; - date: string; - email: string; -}; -declare type ReposMergeResponseDataCommitAuthor = { - name: string; - date: string; - email: string; -}; -declare type ReposMergeResponseDataCommit = { - author: ReposMergeResponseDataCommitAuthor; - committer: ReposMergeResponseDataCommitCommitter; - message: string; - tree: ReposMergeResponseDataCommitTree; - url: string; - comment_count: number; - verification: ReposMergeResponseDataCommitVerification; -}; -declare type ReposMergeResponseData = { - sha: string; - node_id: string; - commit: ReposMergeResponseDataCommit; - url: string; - html_url: string; - comments_url: string; - author: ReposMergeResponseDataAuthor; - committer: ReposMergeResponseDataCommitter; - parents: Array; -}; -declare type IssuesListMilestonesForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The state of the milestone. Either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * What to sort results by. Either `due_on` or `completeness`. - */ - sort?: "due_on" | "completeness"; - /** - * The direction of the sort. Either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListMilestonesForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/milestones"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListMilestonesForRepoResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListMilestonesForRepoResponseDataItem = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListMilestonesForRepoResponseDataItemCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListMilestonesForRepoResponseData = Array; -declare type IssuesCreateMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The title of the milestone. - */ - title: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; -}; -declare type IssuesCreateMilestoneRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/milestones"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateMilestoneResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateMilestoneResponseData = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesCreateMilestoneResponseDataCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesGetMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; -}; -declare type IssuesGetMilestoneRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/milestones/:milestone_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetMilestoneResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetMilestoneResponseData = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetMilestoneResponseDataCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesUpdateMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; - /** - * The title of the milestone. - */ - title?: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; -}; -declare type IssuesUpdateMilestoneRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/milestones/:milestone_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateMilestoneResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateMilestoneResponseData = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesUpdateMilestoneResponseDataCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesDeleteMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; -}; -declare type IssuesDeleteMilestoneRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/milestones/:milestone_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListLabelsForMilestoneRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/milestones/:milestone_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForMilestoneResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListLabelsForMilestoneResponseData = Array; -declare type ActivityListRepoNotificationsForAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * 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`. - */ - since?: string; - /** - * 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`. - */ - before?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItem = { - id: string; - repository: ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepository; - subject: ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseData = Array; -declare type ActivityMarkRepoNotificationsAsReadEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - last_read_at?: string; -}; -declare type ActivityMarkRepoNotificationsAsReadRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPagesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetPagesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPagesResponseDataSource = { - branch: string; - directory: string; -}; -declare type ReposGetPagesResponseData = { - url: string; - status: string; - cname: string; - custom_404: boolean; - html_url: string; - source: ReposGetPagesResponseDataSource; -}; -declare type ReposEnablePagesSiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * source parameter - */ - source?: ReposEnablePagesSiteParamsSource; -} & RequiredPreview<"switcheroo">; -declare type ReposEnablePagesSiteRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposEnablePagesSiteResponseDataSource = { - branch: string; - directory: string; -}; -declare type ReposEnablePagesSiteResponseData = { - url: string; - status: string; - cname: string; - custom_404: boolean; - html_url: string; - source: ReposEnablePagesSiteResponseDataSource; -}; -declare type ReposDisablePagesSiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"switcheroo">; -declare type ReposDisablePagesSiteRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateInformationAboutPagesSiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/)." - */ - cname?: string; - /** - * 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"`. - */ - source?: '"gh-pages"' | '"master"' | '"master /docs"'; -}; -declare type ReposUpdateInformationAboutPagesSiteRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRequestPageBuildEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposRequestPageBuildRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pages/builds"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRequestPageBuildResponseData = { - url: string; - status: string; -}; -declare type ReposListPagesBuildsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListPagesBuildsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages/builds"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListPagesBuildsResponseDataItemPusher = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPagesBuildsResponseDataItemError = { - message: null; -}; -declare type ReposListPagesBuildsResponseDataItem = { - url: string; - status: string; - error: ReposListPagesBuildsResponseDataItemError; - pusher: ReposListPagesBuildsResponseDataItemPusher; - commit: string; - duration: number; - created_at: string; - updated_at: string; -}; -declare type ReposListPagesBuildsResponseData = Array; -declare type ReposGetLatestPagesBuildEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetLatestPagesBuildRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages/builds/latest"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetLatestPagesBuildResponseDataPusher = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetLatestPagesBuildResponseDataError = { - message: null; -}; -declare type ReposGetLatestPagesBuildResponseData = { - url: string; - status: string; - error: ReposGetLatestPagesBuildResponseDataError; - pusher: ReposGetLatestPagesBuildResponseDataPusher; - commit: string; - duration: number; - created_at: string; - updated_at: string; -}; -declare type ReposGetPagesBuildEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * build_id parameter - */ - build_id: number; -}; -declare type ReposGetPagesBuildRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages/builds/:build_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPagesBuildResponseDataPusher = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetPagesBuildResponseDataError = { - message: null; -}; -declare type ReposGetPagesBuildResponseData = { - url: string; - status: string; - error: ReposGetPagesBuildResponseDataError; - pusher: ReposGetPagesBuildResponseDataPusher; - commit: string; - duration: number; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListForRepoResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListForRepoResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForRepoResponseDataItemCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForRepoResponseData = Array; -declare type ProjectsCreateForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the project. - */ - name: string; - /** - * The description of the project. - */ - body?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateForRepoRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateForRepoResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateForRepoResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForRepoResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type PullsListEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Either `open`, `closed`, or `all` to filter by state. - */ - state?: "open" | "closed" | "all"; - /** - * 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`. - */ - head?: string; - /** - * Filter pulls by base branch name. Example: `gh-pages`. - */ - base?: string; - /** - * 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). - */ - sort?: "created" | "updated" | "popularity" | "long-running"; - /** - * The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListResponseDataItemLinksStatuses = { - href: string; -}; -declare type PullsListResponseDataItemLinksCommits = { - href: string; -}; -declare type PullsListResponseDataItemLinksReviewComment = { - href: string; -}; -declare type PullsListResponseDataItemLinksReviewComments = { - href: string; -}; -declare type PullsListResponseDataItemLinksComments = { - href: string; -}; -declare type PullsListResponseDataItemLinksIssue = { - href: string; -}; -declare type PullsListResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsListResponseDataItemLinks = { - self: PullsListResponseDataItemLinksSelf; - html: PullsListResponseDataItemLinksHtml; - issue: PullsListResponseDataItemLinksIssue; - comments: PullsListResponseDataItemLinksComments; - review_comments: PullsListResponseDataItemLinksReviewComments; - review_comment: PullsListResponseDataItemLinksReviewComment; - commits: PullsListResponseDataItemLinksCommits; - statuses: PullsListResponseDataItemLinksStatuses; -}; -declare type PullsListResponseDataItemBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsListResponseDataItemBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsListResponseDataItemBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsListResponseDataItemBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsListResponseDataItemBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemBase = { - label: string; - ref: string; - sha: string; - user: PullsListResponseDataItemBaseUser; - repo: PullsListResponseDataItemBaseRepo; -}; -declare type PullsListResponseDataItemHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsListResponseDataItemHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsListResponseDataItemHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsListResponseDataItemHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsListResponseDataItemHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemHead = { - label: string; - ref: string; - sha: string; - user: PullsListResponseDataItemHeadUser; - repo: PullsListResponseDataItemHeadRepo; -}; -declare type PullsListResponseDataItemRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsListResponseDataItemRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsListResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsListResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsListResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItem = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsListResponseDataItemUser; - body: string; - labels: Array; - milestone: PullsListResponseDataItemMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsListResponseDataItemAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsListResponseDataItemHead; - base: PullsListResponseDataItemBase; - _links: PullsListResponseDataItemLinks; - author_association: string; - draft: boolean; -}; -declare type PullsListResponseData = Array; -declare type PullsCreateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The title of the new pull request. - */ - title: string; - /** - * 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`. - */ - head: string; - /** - * 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. - */ - base: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - /** - * 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. - */ - draft?: boolean; -}; -declare type PullsCreateRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateResponseDataMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataLinksStatuses = { - href: string; -}; -declare type PullsCreateResponseDataLinksCommits = { - href: string; -}; -declare type PullsCreateResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsCreateResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsCreateResponseDataLinksComments = { - href: string; -}; -declare type PullsCreateResponseDataLinksIssue = { - href: string; -}; -declare type PullsCreateResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateResponseDataLinks = { - self: PullsCreateResponseDataLinksSelf; - html: PullsCreateResponseDataLinksHtml; - issue: PullsCreateResponseDataLinksIssue; - comments: PullsCreateResponseDataLinksComments; - review_comments: PullsCreateResponseDataLinksReviewComments; - review_comment: PullsCreateResponseDataLinksReviewComment; - commits: PullsCreateResponseDataLinksCommits; - statuses: PullsCreateResponseDataLinksStatuses; -}; -declare type PullsCreateResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsCreateResponseDataBaseUser; - repo: PullsCreateResponseDataBaseRepo; -}; -declare type PullsCreateResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsCreateResponseDataHeadUser; - repo: PullsCreateResponseDataHeadRepo; -}; -declare type PullsCreateResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsCreateResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsCreateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsCreateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsCreateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsCreateResponseDataUser; - body: string; - labels: Array; - milestone: PullsCreateResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsCreateResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsCreateResponseDataHead; - base: PullsCreateResponseDataBase; - _links: PullsCreateResponseDataLinks; - author_association: string; - draft: boolean; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsCreateResponseDataMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; -}; -declare type PullsListCommentsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListCommentsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListCommentsForRepoResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsListCommentsForRepoResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListCommentsForRepoResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsListCommentsForRepoResponseDataItemLinks = { - self: PullsListCommentsForRepoResponseDataItemLinksSelf; - html: PullsListCommentsForRepoResponseDataItemLinksHtml; - pull_request: PullsListCommentsForRepoResponseDataItemLinksPullRequest; -}; -declare type PullsListCommentsForRepoResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommentsForRepoResponseDataItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsListCommentsForRepoResponseDataItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsListCommentsForRepoResponseDataItemLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsListCommentsForRepoResponseData = Array; -declare type PullsGetCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type PullsGetCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetCommentResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsGetCommentResponseDataLinksHtml = { - href: string; -}; -declare type PullsGetCommentResponseDataLinksSelf = { - href: string; -}; -declare type PullsGetCommentResponseDataLinks = { - self: PullsGetCommentResponseDataLinksSelf; - html: PullsGetCommentResponseDataLinksHtml; - pull_request: PullsGetCommentResponseDataLinksPullRequest; -}; -declare type PullsGetCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetCommentResponseData = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsGetCommentResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsGetCommentResponseDataLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsUpdateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The text of the reply to the review comment. - */ - body: string; -}; -declare type PullsUpdateCommentRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateCommentResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsUpdateCommentResponseDataLinksHtml = { - href: string; -}; -declare type PullsUpdateCommentResponseDataLinksSelf = { - href: string; -}; -declare type PullsUpdateCommentResponseDataLinks = { - self: PullsUpdateCommentResponseDataLinksSelf; - html: PullsUpdateCommentResponseDataLinksHtml; - pull_request: PullsUpdateCommentResponseDataLinksPullRequest; -}; -declare type PullsUpdateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateCommentResponseData = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsUpdateCommentResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsUpdateCommentResponseDataLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsDeleteCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type PullsDeleteCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForPullRequestReviewCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForPullRequestReviewCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForPullRequestReviewCommentResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForPullRequestReviewCommentResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForPullRequestReviewCommentResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForPullRequestReviewCommentResponseData = Array; -declare type ReactionsCreateForPullRequestReviewCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForPullRequestReviewCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForPullRequestReviewCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForPullRequestReviewCommentResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForPullRequestReviewCommentResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForPullRequestCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForPullRequestCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; -}; -declare type PullsGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetResponseDataMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataLinksStatuses = { - href: string; -}; -declare type PullsGetResponseDataLinksCommits = { - href: string; -}; -declare type PullsGetResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsGetResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsGetResponseDataLinksComments = { - href: string; -}; -declare type PullsGetResponseDataLinksIssue = { - href: string; -}; -declare type PullsGetResponseDataLinksHtml = { - href: string; -}; -declare type PullsGetResponseDataLinksSelf = { - href: string; -}; -declare type PullsGetResponseDataLinks = { - self: PullsGetResponseDataLinksSelf; - html: PullsGetResponseDataLinksHtml; - issue: PullsGetResponseDataLinksIssue; - comments: PullsGetResponseDataLinksComments; - review_comments: PullsGetResponseDataLinksReviewComments; - review_comment: PullsGetResponseDataLinksReviewComment; - commits: PullsGetResponseDataLinksCommits; - statuses: PullsGetResponseDataLinksStatuses; -}; -declare type PullsGetResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsGetResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsGetResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsGetResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsGetResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsGetResponseDataBaseUser; - repo: PullsGetResponseDataBaseRepo; -}; -declare type PullsGetResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsGetResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsGetResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsGetResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsGetResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsGetResponseDataHeadUser; - repo: PullsGetResponseDataHeadRepo; -}; -declare type PullsGetResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsGetResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsGetResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsGetResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsGetResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsGetResponseDataUser; - body: string; - labels: Array; - milestone: PullsGetResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsGetResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsGetResponseDataHead; - base: PullsGetResponseDataBase; - _links: PullsGetResponseDataLinks; - author_association: string; - draft: boolean; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsGetResponseDataMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; -}; -declare type PullsUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * The title of the pull request. - */ - title?: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * State of this Pull Request. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * 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. - */ - base?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; -}; -declare type PullsUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/pulls/:pull_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateResponseDataMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataLinksStatuses = { - href: string; -}; -declare type PullsUpdateResponseDataLinksCommits = { - href: string; -}; -declare type PullsUpdateResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsUpdateResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsUpdateResponseDataLinksComments = { - href: string; -}; -declare type PullsUpdateResponseDataLinksIssue = { - href: string; -}; -declare type PullsUpdateResponseDataLinksHtml = { - href: string; -}; -declare type PullsUpdateResponseDataLinksSelf = { - href: string; -}; -declare type PullsUpdateResponseDataLinks = { - self: PullsUpdateResponseDataLinksSelf; - html: PullsUpdateResponseDataLinksHtml; - issue: PullsUpdateResponseDataLinksIssue; - comments: PullsUpdateResponseDataLinksComments; - review_comments: PullsUpdateResponseDataLinksReviewComments; - review_comment: PullsUpdateResponseDataLinksReviewComment; - commits: PullsUpdateResponseDataLinksCommits; - statuses: PullsUpdateResponseDataLinksStatuses; -}; -declare type PullsUpdateResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsUpdateResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsUpdateResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsUpdateResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsUpdateResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsUpdateResponseDataBaseUser; - repo: PullsUpdateResponseDataBaseRepo; -}; -declare type PullsUpdateResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsUpdateResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsUpdateResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsUpdateResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsUpdateResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsUpdateResponseDataHeadUser; - repo: PullsUpdateResponseDataHeadRepo; -}; -declare type PullsUpdateResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsUpdateResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsUpdateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsUpdateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsUpdateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsUpdateResponseDataUser; - body: string; - labels: Array; - milestone: PullsUpdateResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsUpdateResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsUpdateResponseDataHead; - base: PullsUpdateResponseDataBase; - _links: PullsUpdateResponseDataLinks; - author_association: string; - draft: boolean; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsUpdateResponseDataMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; -}; -declare type PullsListCommentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListCommentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListCommentsResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsListCommentsResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListCommentsResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsListCommentsResponseDataItemLinks = { - self: PullsListCommentsResponseDataItemLinksSelf; - html: PullsListCommentsResponseDataItemLinksHtml; - pull_request: PullsListCommentsResponseDataItemLinksPullRequest; -}; -declare type PullsListCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommentsResponseDataItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsListCommentsResponseDataItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsListCommentsResponseDataItemLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsListCommentsResponseData = Array; -declare type PullsCreateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; -}; -declare type PullsCreateCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateCommentResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsCreateCommentResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateCommentResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateCommentResponseDataLinks = { - self: PullsCreateCommentResponseDataLinksSelf; - html: PullsCreateCommentResponseDataLinksHtml; - pull_request: PullsCreateCommentResponseDataLinksPullRequest; -}; -declare type PullsCreateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateCommentResponseData = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsCreateCommentResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsCreateCommentResponseDataLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsCreateReviewCommentReplyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The text of the review comment. - */ - body: string; -}; -declare type PullsCreateReviewCommentReplyRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinks = { - self: PullsCreateReviewCommentReplyResponseDataLinksSelf; - html: PullsCreateReviewCommentReplyResponseDataLinksHtml; - pull_request: PullsCreateReviewCommentReplyResponseDataLinksPullRequest; -}; -declare type PullsCreateReviewCommentReplyResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewCommentReplyResponseData = { - url: string; - pull_request_review_id: number; - id: number; - node_id: string; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - user: PullsCreateReviewCommentReplyResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsCreateReviewCommentReplyResponseDataLinks; -}; -declare type PullsListCommitsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListCommitsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListCommitsResponseDataItemParentsItem = { - url: string; - sha: string; -}; -declare type PullsListCommitsResponseDataItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommitsResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommitsResponseDataItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type PullsListCommitsResponseDataItemCommitTree = { - url: string; - sha: string; -}; -declare type PullsListCommitsResponseDataItemCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type PullsListCommitsResponseDataItemCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type PullsListCommitsResponseDataItemCommit = { - url: string; - author: PullsListCommitsResponseDataItemCommitAuthor; - committer: PullsListCommitsResponseDataItemCommitCommitter; - message: string; - tree: PullsListCommitsResponseDataItemCommitTree; - comment_count: number; - verification: PullsListCommitsResponseDataItemCommitVerification; -}; -declare type PullsListCommitsResponseDataItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: PullsListCommitsResponseDataItemCommit; - author: PullsListCommitsResponseDataItemAuthor; - committer: PullsListCommitsResponseDataItemCommitter; - parents: Array; -}; -declare type PullsListCommitsResponseData = Array; -declare type PullsListFilesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListFilesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/files"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListFilesResponseDataItem = { - sha: string; - filename: string; - status: string; - additions: number; - deletions: number; - changes: number; - blob_url: string; - raw_url: string; - contents_url: string; - patch: string; -}; -declare type PullsListFilesResponseData = Array; -declare type PullsCheckIfMergedEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; -}; -declare type PullsCheckIfMergedRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/merge"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsMergeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Title for the automatic commit message. - */ - commit_title?: string; - /** - * Extra detail to append to automatic commit message. - */ - commit_message?: string; - /** - * SHA that pull request head must match to allow merge. - */ - sha?: string; - /** - * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. - */ - merge_method?: "merge" | "squash" | "rebase"; -}; -declare type PullsMergeRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/merge"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsMergeResponseData = { - sha: string; - merged: boolean; - message: string; -}; -declare type PullsListReviewRequestsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListReviewRequestsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListReviewRequestsResponseDataTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsListReviewRequestsResponseDataUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListReviewRequestsResponseData = { - users: Array; - teams: Array; -}; -declare type PullsCreateReviewRequestEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * An array of user `login`s that will be requested. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be requested. - */ - team_reviewers?: string[]; -}; -declare type PullsCreateReviewRequestRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateReviewRequestResponseDataLinksStatuses = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksCommits = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksComments = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksIssue = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinks = { - self: PullsCreateReviewRequestResponseDataLinksSelf; - html: PullsCreateReviewRequestResponseDataLinksHtml; - issue: PullsCreateReviewRequestResponseDataLinksIssue; - comments: PullsCreateReviewRequestResponseDataLinksComments; - review_comments: PullsCreateReviewRequestResponseDataLinksReviewComments; - review_comment: PullsCreateReviewRequestResponseDataLinksReviewComment; - commits: PullsCreateReviewRequestResponseDataLinksCommits; - statuses: PullsCreateReviewRequestResponseDataLinksStatuses; -}; -declare type PullsCreateReviewRequestResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateReviewRequestResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateReviewRequestResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateReviewRequestResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateReviewRequestResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsCreateReviewRequestResponseDataBaseUser; - repo: PullsCreateReviewRequestResponseDataBaseRepo; -}; -declare type PullsCreateReviewRequestResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateReviewRequestResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateReviewRequestResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateReviewRequestResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateReviewRequestResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsCreateReviewRequestResponseDataHeadUser; - repo: PullsCreateReviewRequestResponseDataHeadRepo; -}; -declare type PullsCreateReviewRequestResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsCreateReviewRequestResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsCreateReviewRequestResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsCreateReviewRequestResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsCreateReviewRequestResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsCreateReviewRequestResponseDataUser; - body: string; - labels: Array; - milestone: PullsCreateReviewRequestResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsCreateReviewRequestResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsCreateReviewRequestResponseDataHead; - base: PullsCreateReviewRequestResponseDataBase; - _links: PullsCreateReviewRequestResponseDataLinks; - author_association: string; - draft: boolean; -}; -declare type PullsDeleteReviewRequestEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * An array of user `login`s that will be removed. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be removed. - */ - team_reviewers?: string[]; -}; -declare type PullsDeleteReviewRequestRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListReviewsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListReviewsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListReviewsResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsListReviewsResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListReviewsResponseDataItemLinks = { - html: PullsListReviewsResponseDataItemLinksHtml; - pull_request: PullsListReviewsResponseDataItemLinksPullRequest; -}; -declare type PullsListReviewsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListReviewsResponseDataItem = { - id: number; - node_id: string; - user: PullsListReviewsResponseDataItemUser; - body: string; - submitted_at: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsListReviewsResponseDataItemLinks; -}; -declare type PullsListReviewsResponseData = Array; -declare type PullsCreateReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * 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. - */ - commit_id?: string; - /** - * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. - */ - body?: string; - /** - * 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://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready. - */ - event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - /** - * Use the following table to specify the location, destination, and contents of the draft review comment. - */ - comments?: PullsCreateReviewParamsComments[]; -}; -declare type PullsCreateReviewRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsCreateReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateReviewResponseDataLinks = { - html: PullsCreateReviewResponseDataLinksHtml; - pull_request: PullsCreateReviewResponseDataLinksPullRequest; -}; -declare type PullsCreateReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewResponseData = { - id: number; - node_id: string; - user: PullsCreateReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsCreateReviewResponseDataLinks; -}; -declare type PullsGetReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; -}; -declare type PullsGetReviewRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsGetReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsGetReviewResponseDataLinks = { - html: PullsGetReviewResponseDataLinksHtml; - pull_request: PullsGetReviewResponseDataLinksPullRequest; -}; -declare type PullsGetReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetReviewResponseData = { - id: number; - node_id: string; - user: PullsGetReviewResponseDataUser; - body: string; - submitted_at: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsGetReviewResponseDataLinks; -}; -declare type PullsDeletePendingReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; -}; -declare type PullsDeletePendingReviewRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsDeletePendingReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsDeletePendingReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsDeletePendingReviewResponseDataLinks = { - html: PullsDeletePendingReviewResponseDataLinksHtml; - pull_request: PullsDeletePendingReviewResponseDataLinksPullRequest; -}; -declare type PullsDeletePendingReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsDeletePendingReviewResponseData = { - id: number; - node_id: string; - user: PullsDeletePendingReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsDeletePendingReviewResponseDataLinks; -}; -declare type PullsUpdateReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * The body text of the pull request review. - */ - body: string; -}; -declare type PullsUpdateReviewRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsUpdateReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsUpdateReviewResponseDataLinks = { - html: PullsUpdateReviewResponseDataLinksHtml; - pull_request: PullsUpdateReviewResponseDataLinksPullRequest; -}; -declare type PullsUpdateReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateReviewResponseData = { - id: number; - node_id: string; - user: PullsUpdateReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsUpdateReviewResponseDataLinks; -}; -declare type PullsGetCommentsForReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsGetCommentsForReviewRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinks = { - self: PullsGetCommentsForReviewResponseDataItemLinksSelf; - html: PullsGetCommentsForReviewResponseDataItemLinksHtml; - pull_request: PullsGetCommentsForReviewResponseDataItemLinksPullRequest; -}; -declare type PullsGetCommentsForReviewResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetCommentsForReviewResponseDataItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsGetCommentsForReviewResponseDataItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsGetCommentsForReviewResponseDataItemLinks; -}; -declare type PullsGetCommentsForReviewResponseData = Array; -declare type PullsDismissReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * The message for the pull request review dismissal - */ - message: string; -}; -declare type PullsDismissReviewRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsDismissReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsDismissReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsDismissReviewResponseDataLinks = { - html: PullsDismissReviewResponseDataLinksHtml; - pull_request: PullsDismissReviewResponseDataLinksPullRequest; -}; -declare type PullsDismissReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsDismissReviewResponseData = { - id: number; - node_id: string; - user: PullsDismissReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsDismissReviewResponseDataLinks; -}; -declare type PullsSubmitReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * The body text of the pull request review - */ - body?: string; - /** - * 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. - */ - event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; -}; -declare type PullsSubmitReviewRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsSubmitReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsSubmitReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsSubmitReviewResponseDataLinks = { - html: PullsSubmitReviewResponseDataLinksHtml; - pull_request: PullsSubmitReviewResponseDataLinksPullRequest; -}; -declare type PullsSubmitReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsSubmitReviewResponseData = { - id: number; - node_id: string; - user: PullsSubmitReviewResponseDataUser; - body: string; - submitted_at: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsSubmitReviewResponseDataLinks; -}; -declare type PullsUpdateBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * 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 on a repository](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. - */ - expected_head_sha?: string; -} & RequiredPreview<"lydian">; -declare type PullsUpdateBranchRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateBranchResponseData = { - message: string; - url: string; -}; -declare type ReposGetReadmeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; -}; -declare type ReposGetReadmeRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/readme"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReadmeResponseDataLinks = { - git: string; - self: string; - html: string; -}; -declare type ReposGetReadmeResponseData = { - type: string; - encoding: string; - size: number; - name: string; - path: string; - content: string; - sha: string; - url: string; - git_url: string; - html_url: string; - download_url: string; - _links: ReposGetReadmeResponseDataLinks; -}; -declare type ReposListReleasesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListReleasesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListReleasesResponseDataItemAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListReleasesResponseDataItemAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposListReleasesResponseDataItemAssetsItemUploader; -}; -declare type ReposListReleasesResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListReleasesResponseDataItem = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposListReleasesResponseDataItemAuthor; - assets: Array; -}; -declare type ReposListReleasesResponseData = Array; -declare type ReposCreateReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the tag. - */ - tag_name: string; - /** - * 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`). - */ - target_commitish?: string; - /** - * The name of the release. - */ - name?: string; - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` to create a draft (unpublished) release, `false` to create a published one. - */ - draft?: boolean; - /** - * `true` to identify the release as a prerelease. `false` to identify the release as a full release. - */ - prerelease?: boolean; -}; -declare type ReposCreateReleaseRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/releases"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposCreateReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposGetReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * asset_id parameter - */ - asset_id: number; -}; -declare type ReposGetReleaseAssetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/assets/:asset_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReleaseAssetResponseDataUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseAssetResponseData = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseAssetResponseDataUploader; -}; -declare type ReposUpdateReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * asset_id parameter - */ - asset_id: number; - /** - * The file name of the asset. - */ - name?: string; - /** - * An alternate short description of the asset. Used in place of the filename. - */ - label?: string; -}; -declare type ReposUpdateReleaseAssetRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/releases/assets/:asset_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateReleaseAssetResponseDataUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateReleaseAssetResponseData = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUpdateReleaseAssetResponseDataUploader; -}; -declare type ReposDeleteReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * asset_id parameter - */ - asset_id: number; -}; -declare type ReposDeleteReleaseAssetRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/releases/assets/:asset_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetLatestReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetLatestReleaseRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/latest"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetLatestReleaseResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetLatestReleaseResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetLatestReleaseResponseDataAssetsItemUploader; -}; -declare type ReposGetLatestReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetLatestReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetLatestReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposGetReleaseByTagEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * tag parameter - */ - tag: string; -}; -declare type ReposGetReleaseByTagRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/tags/:tag"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReleaseByTagResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseByTagResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseByTagResponseDataAssetsItemUploader; -}; -declare type ReposGetReleaseByTagResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseByTagResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetReleaseByTagResponseDataAuthor; - assets: Array; -}; -declare type ReposGetReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; -}; -declare type ReposGetReleaseRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/:release_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReleaseResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseResponseDataAssetsItemUploader; -}; -declare type ReposGetReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposUpdateReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; - /** - * The name of the tag. - */ - tag_name?: string; - /** - * 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`). - */ - target_commitish?: string; - /** - * The name of the release. - */ - name?: string; - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` makes the release a draft, and `false` publishes the release. - */ - draft?: boolean; - /** - * `true` to identify the release as a prerelease, `false` to identify the release as a full release. - */ - prerelease?: boolean; -}; -declare type ReposUpdateReleaseRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/releases/:release_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateReleaseResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateReleaseResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUpdateReleaseResponseDataAssetsItemUploader; -}; -declare type ReposUpdateReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposUpdateReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposDeleteReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; -}; -declare type ReposDeleteReleaseRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/releases/:release_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListAssetsForReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListAssetsForReleaseRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/:release_id/assets"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListAssetsForReleaseResponseDataItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListAssetsForReleaseResponseDataItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposListAssetsForReleaseResponseDataItemUploader; -}; -declare type ReposListAssetsForReleaseResponseData = Array; -declare type ReposUploadReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; - /** - * name parameter - */ - name?: string; - /** - * label parameter - */ - label?: string; - /** - * The raw file data - */ - data: string; - /** - * The URL origin (protocol + host name + port) is included in `upload_url` returned in the response of the "Create a release" endpoint - */ - origin?: string; - /** - * For https://api.github.com, set `baseUrl` to `https://uploads.github.com`. For GitHub Enterprise Server, set it to `/api/uploads` - */ - baseUrl: string; -} & { - headers: { - "content-type": string; - }; -}; -declare type ReposUploadReleaseAssetRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/releases/:release_id/assets{?name,label}"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUploadReleaseAssetResponseDataUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUploadReleaseAssetResponseData = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUploadReleaseAssetResponseDataUploader; -}; -declare type ActivityListStargazersForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListStargazersForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stargazers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListStargazersForRepoResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListStargazersForRepoResponseData = Array; -declare type ReposGetCodeFrequencyStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetCodeFrequencyStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/code_frequency"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCodeFrequencyStatsResponseData = Array>; -declare type ReposGetCommitActivityStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetCommitActivityStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/commit_activity"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCommitActivityStatsResponseDataItem = { - days: Array; - total: number; - week: number; -}; -declare type ReposGetCommitActivityStatsResponseData = Array; -declare type ReposGetContributorsStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetContributorsStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/contributors"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetContributorsStatsResponseDataItemWeeksItem = { - w: string; - a: number; - d: number; - c: number; -}; -declare type ReposGetContributorsStatsResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetContributorsStatsResponseDataItem = { - author: ReposGetContributorsStatsResponseDataItemAuthor; - total: number; - weeks: Array; -}; -declare type ReposGetContributorsStatsResponseData = Array; -declare type ReposGetParticipationStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetParticipationStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/participation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetParticipationStatsResponseData = { - all: Array; - owner: Array; -}; -declare type ReposGetPunchCardStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetPunchCardStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/punch_card"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPunchCardStatsResponseData = Array>; -declare type ReposCreateStatusEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * sha parameter - */ - sha: string; - /** - * The state of the status. Can be one of `error`, `failure`, `pending`, or `success`. - */ - state: "error" | "failure" | "pending" | "success"; - /** - * 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` - */ - target_url?: string; - /** - * A short description of the status. - */ - description?: string; - /** - * A string label to differentiate this status from the status of other systems. - */ - context?: string; -}; -declare type ReposCreateStatusRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/statuses/:sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateStatusResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateStatusResponseData = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; - creator: ReposCreateStatusResponseDataCreator; -}; -declare type ActivityListWatchersForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListWatchersForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/subscribers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListWatchersForRepoResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListWatchersForRepoResponseData = Array; -declare type ActivityGetRepoSubscriptionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityGetRepoSubscriptionRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetRepoSubscriptionResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - repository_url: string; -}; -declare type ActivitySetRepoSubscriptionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Determines if notifications should be received from this repository. - */ - subscribed?: boolean; - /** - * Determines if all notifications should be blocked from this repository. - */ - ignored?: boolean; -}; -declare type ActivitySetRepoSubscriptionRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivitySetRepoSubscriptionResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - repository_url: string; -}; -declare type ActivityDeleteRepoSubscriptionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityDeleteRepoSubscriptionRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListTagsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListTagsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/tags"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListTagsResponseDataItemCommit = { - sha: string; - url: string; -}; -declare type ReposListTagsResponseDataItem = { - name: string; - commit: ReposListTagsResponseDataItemCommit; - zipball_url: string; - tarball_url: string; -}; -declare type ReposListTagsResponseData = Array; -declare type ReposListTeamsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListTeamsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListTeamsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposListTeamsResponseData = Array; -declare type ReposGetAllTopicsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"mercy">; -declare type ReposGetAllTopicsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/topics"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetAllTopicsResponseData = { - names: Array; -}; -declare type ReposReplaceAllTopicsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - names: string[]; -} & RequiredPreview<"mercy">; -declare type ReposReplaceAllTopicsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/topics"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceAllTopicsResponseData = { - names: Array; -}; -declare type ReposGetClonesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; -}; -declare type ReposGetClonesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/clones"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetClonesResponseDataClonesItem = { - timestamp: string; - count: number; - uniques: number; -}; -declare type ReposGetClonesResponseData = { - count: number; - uniques: number; - clones: Array; -}; -declare type ReposGetTopPathsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetTopPathsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/popular/paths"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetTopPathsResponseDataItem = { - path: string; - title: string; - count: number; - uniques: number; -}; -declare type ReposGetTopPathsResponseData = Array; -declare type ReposGetTopReferrersEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetTopReferrersRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/popular/referrers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetTopReferrersResponseDataItem = { - referrer: string; - count: number; - uniques: number; -}; -declare type ReposGetTopReferrersResponseData = Array; -declare type ReposGetViewsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; -}; -declare type ReposGetViewsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/views"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetViewsResponseDataViewsItem = { - timestamp: string; - count: number; - uniques: number; -}; -declare type ReposGetViewsResponseData = { - count: number; - uniques: number; - views: Array; -}; -declare type ReposTransferEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * **Required:** The username or organization name the repository will be transferred to. - */ - new_owner?: string; - /** - * ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. - */ - team_ids?: number[]; -}; -declare type ReposTransferRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/transfer"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposTransferResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposTransferResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposTransferResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposTransferResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposTransferResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposCheckVulnerabilityAlertsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"dorian">; -declare type ReposCheckVulnerabilityAlertsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/vulnerability-alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposEnableVulnerabilityAlertsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"dorian">; -declare type ReposEnableVulnerabilityAlertsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/vulnerability-alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDisableVulnerabilityAlertsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"dorian">; -declare type ReposDisableVulnerabilityAlertsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/vulnerability-alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetArchiveLinkEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * archive_format parameter - */ - archive_format: string; - /** - * ref parameter - */ - ref: string; -}; -declare type ReposGetArchiveLinkRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/:archive_format/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateUsingTemplateEndpoint = { - /** - * template_owner parameter - */ - template_owner: string; - /** - * template_repo parameter - */ - template_repo: string; - /** - * 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. - */ - owner?: string; - /** - * The name of the new repository. - */ - name: string; - /** - * A short description of the new repository. - */ - description?: string; - /** - * Either `true` to create a new private repository or `false` to create a new public one. - */ - private?: boolean; -} & RequiredPreview<"baptiste">; -declare type ReposCreateUsingTemplateRequestOptions = { - method: "POST"; - url: "/repos/:template_owner/:template_repo/generate"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateUsingTemplateResponseDataTemplateRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateUsingTemplateResponseDataTemplateRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateUsingTemplateResponseDataTemplateRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateUsingTemplateResponseDataTemplateRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateUsingTemplateResponseDataTemplateRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposCreateUsingTemplateResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateUsingTemplateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateUsingTemplateResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateUsingTemplateResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateUsingTemplateResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: ReposCreateUsingTemplateResponseDataTemplateRepository; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListPublicEndpoint = { - /** - * The integer ID of the last repository that you've seen. - */ - since?: number; -}; -declare type ReposListPublicRequestOptions = { - method: "GET"; - url: "/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListPublicResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPublicResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListPublicResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposListPublicResponseData = Array; -declare type ScimListProvisionedIdentitiesEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Used for pagination: the index of the first result to return. - */ - startIndex?: number; - /** - * Used for pagination: the number of results to return. - */ - count?: number; - /** - * Filters results using the equals query parameter operator (`eq`). You can filter results that are equal to `id`, `userName`, `emails`, and `external_id`. For example, to search for an identity with the `userName` Octocat, you would use this query: `?filter=userName%20eq%20\"Octocat\"`. - */ - filter?: string; -}; -declare type ScimListProvisionedIdentitiesRequestOptions = { - method: "GET"; - url: "/scim/v2/organizations/:org/Users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItemMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItemEmailsItem = { - value: string; - primary: boolean; - type: string; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItemName = { - givenName: string; - familyName: string; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItem = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimListProvisionedIdentitiesResponseDataResourcesItemName; - emails: Array; - active: boolean; - meta: ScimListProvisionedIdentitiesResponseDataResourcesItemMeta; -}; -declare type ScimListProvisionedIdentitiesResponseData = { - schemas: Array; - totalResults: number; - itemsPerPage: number; - startIndex: number; - Resources: Array; -}; -declare type ScimProvisionAndInviteUsersEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ScimProvisionAndInviteUsersRequestOptions = { - method: "POST"; - url: "/scim/v2/organizations/:org/Users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimProvisionAndInviteUsersResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimProvisionAndInviteUsersResponseDataEmailsItem = { - value: string; - type: string; - primary: boolean; -}; -declare type ScimProvisionAndInviteUsersResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimProvisionAndInviteUsersResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimProvisionAndInviteUsersResponseDataName; - emails: Array; - active: boolean; - meta: ScimProvisionAndInviteUsersResponseDataMeta; -}; -declare type ScimGetProvisioningDetailsForUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimGetProvisioningDetailsForUserRequestOptions = { - method: "GET"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimGetProvisioningDetailsForUserResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimGetProvisioningDetailsForUserResponseDataEmailsItem = { - value: string; - type: string; - primary: boolean; -}; -declare type ScimGetProvisioningDetailsForUserResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimGetProvisioningDetailsForUserResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimGetProvisioningDetailsForUserResponseDataName; - emails: Array; - active: boolean; - meta: ScimGetProvisioningDetailsForUserResponseDataMeta; -}; -declare type ScimReplaceProvisionedUserInformationEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimReplaceProvisionedUserInformationRequestOptions = { - method: "PUT"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimReplaceProvisionedUserInformationResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimReplaceProvisionedUserInformationResponseDataEmailsItem = { - value: string; - type: string; - primary: boolean; -}; -declare type ScimReplaceProvisionedUserInformationResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimReplaceProvisionedUserInformationResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimReplaceProvisionedUserInformationResponseDataName; - emails: Array; - active: boolean; - meta: ScimReplaceProvisionedUserInformationResponseDataMeta; -}; -declare type ScimUpdateUserAttributeEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimUpdateUserAttributeRequestOptions = { - method: "PATCH"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimUpdateUserAttributeResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimUpdateUserAttributeResponseDataEmailsItem = { - value: string; - type: string; - primary?: boolean; -}; -declare type ScimUpdateUserAttributeResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimUpdateUserAttributeResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimUpdateUserAttributeResponseDataName; - emails: Array; - active: boolean; - meta: ScimUpdateUserAttributeResponseDataMeta; -}; -declare type ScimRemoveUserFromOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimRemoveUserFromOrgRequestOptions = { - method: "DELETE"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchCodeEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching code](https://help.github.com/articles/searching-code/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "indexed"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchCodeRequestOptions = { - method: "GET"; - url: "/search/code"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchCodeResponseDataItemsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCodeResponseDataItemsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: SearchCodeResponseDataItemsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; -}; -declare type SearchCodeResponseDataItemsItem = { - name: string; - path: string; - sha: string; - url: string; - git_url: string; - html_url: string; - repository: SearchCodeResponseDataItemsItemRepository; - score: number; -}; -declare type SearchCodeResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchCommitsEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching commits](https://help.github.com/articles/searching-commits/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "author-date" | "committer-date"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"cloak">; -declare type SearchCommitsRequestOptions = { - method: "GET"; - url: "/search/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchCommitsResponseDataItemsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCommitsResponseDataItemsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: SearchCommitsResponseDataItemsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type SearchCommitsResponseDataItemsItemParentsItem = { - url: string; - html_url: string; - sha: string; -}; -declare type SearchCommitsResponseDataItemsItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCommitsResponseDataItemsItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCommitsResponseDataItemsItemCommitTree = { - url: string; - sha: string; -}; -declare type SearchCommitsResponseDataItemsItemCommitCommitter = { - date: string; - name: string; - email: string; -}; -declare type SearchCommitsResponseDataItemsItemCommitAuthor = { - date: string; - name: string; - email: string; -}; -declare type SearchCommitsResponseDataItemsItemCommit = { - url: string; - author: SearchCommitsResponseDataItemsItemCommitAuthor; - committer: SearchCommitsResponseDataItemsItemCommitCommitter; - message: string; - tree: SearchCommitsResponseDataItemsItemCommitTree; - comment_count: number; -}; -declare type SearchCommitsResponseDataItemsItem = { - url: string; - sha: string; - html_url: string; - comments_url: string; - commit: SearchCommitsResponseDataItemsItemCommit; - author: SearchCommitsResponseDataItemsItemAuthor; - committer: SearchCommitsResponseDataItemsItemCommitter; - parents: Array; - repository: SearchCommitsResponseDataItemsItemRepository; - score: number; -}; -declare type SearchCommitsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchIssuesAndPullRequestsEndpoint = { - /** - * 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://developer.github.com/v3/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. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "comments" | "reactions" | "reactions-+1" | "reactions--1" | "reactions-smile" | "reactions-thinking_face" | "reactions-heart" | "reactions-tada" | "interactions" | "created" | "updated"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchIssuesAndPullRequestsRequestOptions = { - method: "GET"; - url: "/search/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItemPullRequest = { - html_url: null; - diff_url: null; - patch_url: null; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - color: string; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItem = { - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - id: number; - node_id: string; - number: number; - title: string; - user: SearchIssuesAndPullRequestsResponseDataItemsItemUser; - labels: Array; - state: string; - assignee: null; - milestone: null; - comments: number; - created_at: string; - updated_at: string; - closed_at: null; - pull_request: SearchIssuesAndPullRequestsResponseDataItemsItemPullRequest; - body: string; - score: number; -}; -declare type SearchIssuesAndPullRequestsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchLabelsEndpoint = { - /** - * The id of the repository. - */ - repository_id: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). - */ - q: string; - /** - * Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "created" | "updated"; - /** - * 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`. - */ - order?: "desc" | "asc"; -}; -declare type SearchLabelsRequestOptions = { - method: "GET"; - url: "/search/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchLabelsResponseDataItemsItem = { - id: number; - node_id: string; - url: string; - name: string; - color: string; - default: boolean; - description: string; - score: number; -}; -declare type SearchLabelsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchReposEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "stars" | "forks" | "help-wanted-issues" | "updated"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchReposRequestOptions = { - method: "GET"; - url: "/search/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchReposResponseDataItemsItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - received_events_url: string; - type: string; -}; -declare type SearchReposResponseDataItemsItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: SearchReposResponseDataItemsItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - created_at: string; - updated_at: string; - pushed_at: string; - homepage: string; - size: number; - stargazers_count: number; - watchers_count: number; - language: string; - forks_count: number; - open_issues_count: number; - master_branch: string; - default_branch: string; - score: number; -}; -declare type SearchReposResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchTopicsEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). - */ - q: string; -}; -declare type SearchTopicsRequestOptions = { - method: "GET"; - url: "/search/topics"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchTopicsResponseDataItemsItem = { - name: string; - display_name: string; - short_description: string; - description: string; - created_by: string; - released: string; - created_at: string; - updated_at: string; - featured: boolean; - curated: boolean; - score: number; -}; -declare type SearchTopicsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchUsersEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching users](https://help.github.com/articles/searching-users/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "followers" | "repositories" | "joined"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchUsersRequestOptions = { - method: "GET"; - url: "/search/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchUsersResponseDataItemsItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - received_events_url: string; - type: string; - score: number; -}; -declare type SearchUsersResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type TeamsGetLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; -}; -declare type TeamsGetLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetLegacyResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsGetLegacyResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsGetLegacyResponseDataOrganization; -}; -declare type TeamsUpdateLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * 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. - */ - privacy?: "secret" | "closed"; - /** - * **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. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; -}; -declare type TeamsUpdateLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateLegacyResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsUpdateLegacyResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsUpdateLegacyResponseDataOrganization; -}; -declare type TeamsDeleteLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; -}; -declare type TeamsDeleteLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsLegacyResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionsLegacyResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionsLegacyResponseDataItem = { - author: TeamsListDiscussionsLegacyResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsListDiscussionsLegacyResponseDataItemReactions; -}; -declare type TeamsListDiscussionsLegacyResponseData = Array; -declare type TeamsCreateDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * The discussion post's title. - */ - title: string; - /** - * The discussion post's body text. - */ - body: string; - /** - * 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. - */ - private?: boolean; -}; -declare type TeamsCreateDiscussionLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionLegacyResponseData = { - author: TeamsCreateDiscussionLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionLegacyResponseDataReactions; -}; -declare type TeamsGetDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsGetDiscussionLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionLegacyResponseData = { - author: TeamsGetDiscussionLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionLegacyResponseDataReactions; -}; -declare type TeamsUpdateDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion post's title. - */ - title?: string; - /** - * The discussion post's body text. - */ - body?: string; -}; -declare type TeamsUpdateDiscussionLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionLegacyResponseData = { - author: TeamsUpdateDiscussionLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: string; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionLegacyResponseDataReactions; -}; -declare type TeamsDeleteDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsDeleteDiscussionLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionCommentsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsLegacyResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionCommentsLegacyResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionCommentsLegacyResponseDataItem = { - author: TeamsListDiscussionCommentsLegacyResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsListDiscussionCommentsLegacyResponseDataItemReactions; -}; -declare type TeamsListDiscussionCommentsLegacyResponseData = Array; -declare type TeamsCreateDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsCreateDiscussionCommentLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseData = { - author: TeamsCreateDiscussionCommentLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionCommentLegacyResponseDataReactions; -}; -declare type TeamsGetDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsGetDiscussionCommentLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionCommentLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionCommentLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionCommentLegacyResponseData = { - author: TeamsGetDiscussionCommentLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionCommentLegacyResponseDataReactions; -}; -declare type TeamsUpdateDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsUpdateDiscussionCommentLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseData = { - author: TeamsUpdateDiscussionCommentLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: string; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionCommentLegacyResponseDataReactions; -}; -declare type TeamsDeleteDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsDeleteDiscussionCommentLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionCommentLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentLegacyResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseData = Array; -declare type ReactionsCreateForTeamDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionCommentLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionCommentLegacyResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionCommentLegacyResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentLegacyResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionLegacyResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseData = Array; -declare type ReactionsCreateForTeamDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionLegacyResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionLegacyResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionLegacyResponseDataUser; - content: string; - created_at: string; -}; -declare type TeamsListPendingInvitationsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListPendingInvitationsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListPendingInvitationsLegacyResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListPendingInvitationsLegacyResponseDataItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: TeamsListPendingInvitationsLegacyResponseDataItemInviter; - team_count: number; - invitation_team_url: string; -}; -declare type TeamsListPendingInvitationsLegacyResponseData = Array; -declare type TeamsListMembersLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListMembersLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListMembersLegacyResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListMembersLegacyResponseData = Array; -declare type TeamsGetMemberLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsGetMemberLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddMemberLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsAddMemberLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddMemberLegacyResponseDataErrorsItem = { - code: string; - field: string; - resource: string; -}; -declare type TeamsAddMemberLegacyResponseData = { - message: string; - errors: Array; -}; -declare type TeamsRemoveMemberLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsRemoveMemberLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetMembershipLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsGetMembershipLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetMembershipLegacyResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsAddOrUpdateMembershipLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - role?: "member" | "maintainer"; -}; -declare type TeamsAddOrUpdateMembershipLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateMembershipLegacyResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsRemoveMembershipLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsRemoveMembershipLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type TeamsListProjectsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsLegacyResponseDataItemPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsListProjectsLegacyResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListProjectsLegacyResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsListProjectsLegacyResponseDataItemCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsListProjectsLegacyResponseDataItemPermissions; -}; -declare type TeamsListProjectsLegacyResponseData = Array; -declare type TeamsReviewProjectLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type TeamsReviewProjectLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsReviewProjectLegacyResponseDataPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsReviewProjectLegacyResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsReviewProjectLegacyResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsReviewProjectLegacyResponseDataCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsReviewProjectLegacyResponseDataPermissions; -}; -declare type TeamsAddOrUpdateProjectLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * project_id parameter - */ - project_id: number; - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; -} & RequiredPreview<"inertia">; -declare type TeamsAddOrUpdateProjectLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateProjectLegacyResponseData = { - message: string; - documentation_url: string; -}; -declare type TeamsRemoveProjectLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * project_id parameter - */ - project_id: number; -}; -declare type TeamsRemoveProjectLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListReposLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposLegacyResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type TeamsListReposLegacyResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsListReposLegacyResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListReposLegacyResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsListReposLegacyResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsListReposLegacyResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: TeamsListReposLegacyResponseDataItemLicense; -}; -declare type TeamsListReposLegacyResponseData = Array; -declare type TeamsCheckManagesRepoLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsCheckManagesRepoLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoLegacyResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoLegacyResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoLegacyResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoLegacyResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseData = { - organization: TeamsCheckManagesRepoLegacyResponseDataOrganization; - parent: TeamsCheckManagesRepoLegacyResponseDataParent; - source: TeamsCheckManagesRepoLegacyResponseDataSource; - permissions: TeamsCheckManagesRepoLegacyResponseDataPermissions; -}; -declare type TeamsAddOrUpdateRepoLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; -}; -declare type TeamsAddOrUpdateRepoLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsRemoveRepoLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsRemoveRepoLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsForLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; -}; -declare type TeamsListIdPGroupsForLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsForLegacyResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsListIdPGroupsForLegacyResponseData = { - groups: Array; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. - */ - groups: TeamsCreateOrUpdateIdPGroupConnectionsLegacyParamsGroups[]; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyResponseData = { - groups: Array; -}; -declare type TeamsListChildLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListChildLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListChildLegacyResponseDataItemParent = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; -}; -declare type TeamsListChildLegacyResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: TeamsListChildLegacyResponseDataItemParent; -}; -declare type TeamsListChildLegacyResponseData = Array; -declare type UsersGetAuthenticatedEndpoint = {}; -declare type UsersGetAuthenticatedRequestOptions = { - method: "GET"; - url: "/user"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetAuthenticatedResponseDataPlan = { - name: string; - space: number; - private_repos: number; - collaborators: number; -}; -declare type UsersGetAuthenticatedResponseData = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - private_gists?: number; - total_private_repos?: number; - owned_private_repos?: number; - disk_usage?: number; - collaborators?: number; - two_factor_authentication?: boolean; - plan?: UsersGetAuthenticatedResponseDataPlan; -}; -declare type UsersUpdateAuthenticatedEndpoint = { - /** - * The new name of the user. - */ - name?: string; - /** - * The publicly visible email address of the user. - */ - email?: string; - /** - * The new blog URL of the user. - */ - blog?: string; - /** - * The new company of the user. - */ - company?: string; - /** - * The new location of the user. - */ - location?: string; - /** - * The new hiring availability of the user. - */ - hireable?: boolean; - /** - * The new short biography of the user. - */ - bio?: string; -}; -declare type UsersUpdateAuthenticatedRequestOptions = { - method: "PATCH"; - url: "/user"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersUpdateAuthenticatedResponseDataPlan = { - name: string; - space: number; - private_repos: number; - collaborators: number; -}; -declare type UsersUpdateAuthenticatedResponseData = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - private_gists: number; - total_private_repos: number; - owned_private_repos: number; - disk_usage: number; - collaborators: number; - two_factor_authentication: boolean; - plan: UsersUpdateAuthenticatedResponseDataPlan; -}; -declare type UsersListBlockedEndpoint = {}; -declare type UsersListBlockedRequestOptions = { - method: "GET"; - url: "/user/blocks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListBlockedResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListBlockedResponseData = Array; -declare type UsersCheckBlockedEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersCheckBlockedRequestOptions = { - method: "GET"; - url: "/user/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersBlockEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersBlockRequestOptions = { - method: "PUT"; - url: "/user/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersUnblockEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersUnblockRequestOptions = { - method: "DELETE"; - url: "/user/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersTogglePrimaryEmailVisibilityEndpoint = { - /** - * Specify the _primary_ email address that needs a visibility change. - */ - email: string; - /** - * Use `public` to enable an authenticated user to view the specified email address, or use `private` so this primary email address cannot be seen publicly. - */ - visibility: string; -}; -declare type UsersTogglePrimaryEmailVisibilityRequestOptions = { - method: "PATCH"; - url: "/user/email/visibility"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersTogglePrimaryEmailVisibilityResponseDataItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string; -}; -declare type UsersTogglePrimaryEmailVisibilityResponseData = Array; -declare type UsersListEmailsEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListEmailsRequestOptions = { - method: "GET"; - url: "/user/emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListEmailsResponseDataItem = { - email: string; - verified: boolean; - primary: boolean; - visibility: string; -}; -declare type UsersListEmailsResponseData = Array; -declare type UsersAddEmailsEndpoint = { - /** - * Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; -}; -declare type UsersAddEmailsRequestOptions = { - method: "POST"; - url: "/user/emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersAddEmailsResponseDataItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string | null; -}; -declare type UsersAddEmailsResponseData = Array; -declare type UsersDeleteEmailsEndpoint = { - /** - * Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; -}; -declare type UsersDeleteEmailsRequestOptions = { - method: "DELETE"; - url: "/user/emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowersForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/followers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForAuthenticatedUserResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowersForAuthenticatedUserResponseData = Array; -declare type UsersListFollowedByAuthenticatedEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowedByAuthenticatedRequestOptions = { - method: "GET"; - url: "/user/following"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowedByAuthenticatedResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowedByAuthenticatedResponseData = Array; -declare type UsersCheckFollowingEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersCheckFollowingRequestOptions = { - method: "GET"; - url: "/user/following/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersFollowEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersFollowRequestOptions = { - method: "PUT"; - url: "/user/following/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersUnfollowEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersUnfollowRequestOptions = { - method: "DELETE"; - url: "/user/following/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListGpgKeysEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListGpgKeysRequestOptions = { - method: "GET"; - url: "/user/gpg_keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListGpgKeysResponseDataItemSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysResponseDataItemEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersListGpgKeysResponseDataItem = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysResponseData = Array; -declare type UsersCreateGpgKeyEndpoint = { - /** - * Your GPG key, generated in ASCII-armored format. See "[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)" for help creating a GPG key. - */ - armored_public_key?: string; -}; -declare type UsersCreateGpgKeyRequestOptions = { - method: "POST"; - url: "/user/gpg_keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersCreateGpgKeyResponseDataSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersCreateGpgKeyResponseDataEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersCreateGpgKeyResponseData = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersGetGpgKeyEndpoint = { - /** - * gpg_key_id parameter - */ - gpg_key_id: number; -}; -declare type UsersGetGpgKeyRequestOptions = { - method: "GET"; - url: "/user/gpg_keys/:gpg_key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetGpgKeyResponseDataSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersGetGpgKeyResponseDataEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersGetGpgKeyResponseData = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersDeleteGpgKeyEndpoint = { - /** - * gpg_key_id parameter - */ - gpg_key_id: number; -}; -declare type UsersDeleteGpgKeyRequestOptions = { - method: "DELETE"; - url: "/user/gpg_keys/:gpg_key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationsForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListInstallationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/installations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url?: string; - issues_url?: string; - members_url?: string; - public_members_url?: string; - avatar_url: string; - description?: string; - gravatar_id?: string; - html_url?: string; - followers_url?: string; - following_url?: string; - gists_url?: string; - starred_url?: string; - subscriptions_url?: string; - organizations_url?: string; - received_events_url?: string; - type?: string; - site_admin?: boolean; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItem = { - id: number; - account: AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemPermissions; - events: Array; - single_file_name: string; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseData = { - total_count: number; - installations: Array; -}; -declare type AppsListInstallationReposForAuthenticatedUserEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListInstallationReposForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/installations/:installation_id/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseData = { - total_count: number; - repositories: Array; -}; -declare type AppsAddRepoToInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; - /** - * repository_id parameter - */ - repository_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsAddRepoToInstallationRequestOptions = { - method: "PUT"; - url: "/user/installations/:installation_id/repositories/:repository_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsRemoveRepoFromInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; - /** - * repository_id parameter - */ - repository_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsRemoveRepoFromInstallationRequestOptions = { - method: "DELETE"; - url: "/user/installations/:installation_id/repositories/:repository_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForAuthenticatedUserEndpoint = { - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListForAuthenticatedUserResponseDataItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForAuthenticatedUserResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForAuthenticatedUserResponseDataItemUser; - labels: Array; - assignee: IssuesListForAuthenticatedUserResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListForAuthenticatedUserResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForAuthenticatedUserResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListForAuthenticatedUserResponseDataItemRepository; -}; -declare type IssuesListForAuthenticatedUserResponseData = Array; -declare type UsersListPublicKeysEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListPublicKeysRequestOptions = { - method: "GET"; - url: "/user/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListPublicKeysResponseDataItem = { - key_id: string; - key: string; -}; -declare type UsersListPublicKeysResponseData = Array; -declare type UsersCreatePublicKeyEndpoint = { - /** - * A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air". - */ - title?: string; - /** - * The public SSH key to add to your GitHub account. See "[Generating a new SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)" for guidance on how to create a public SSH key. - */ - key?: string; -}; -declare type UsersCreatePublicKeyRequestOptions = { - method: "POST"; - url: "/user/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersCreatePublicKeyResponseData = { - key_id: string; - key: string; -}; -declare type UsersGetPublicKeyEndpoint = { - /** - * key_id parameter - */ - key_id: number; -}; -declare type UsersGetPublicKeyRequestOptions = { - method: "GET"; - url: "/user/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetPublicKeyResponseData = { - key_id: string; - key: string; -}; -declare type UsersDeletePublicKeyEndpoint = { - /** - * key_id parameter - */ - key_id: number; -}; -declare type UsersDeletePublicKeyRequestOptions = { - method: "DELETE"; - url: "/user/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListSubscriptionsForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListSubscriptionsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/marketplace_purchases"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseDataItemPlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseDataItemAccount = { - login: string; - id: number; - url: string; - email: null; - organization_billing_email: string; - type: string; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseDataItem = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - account: AppsListSubscriptionsForAuthenticatedUserResponseDataItemAccount; - plan: AppsListSubscriptionsForAuthenticatedUserResponseDataItemPlan; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseData = Array; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedRequestOptions = { - method: "GET"; - url: "/user/marketplace_purchases/stubbed"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemPlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemAccount = { - login: string; - id: number; - url: string; - email: null; - organization_billing_email: string; - type: string; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItem = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - account: AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemAccount; - plan: AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemPlan; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseData = Array; -declare type OrgsListMembershipsEndpoint = { - /** - * 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. - */ - state?: "active" | "pending"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListMembershipsRequestOptions = { - method: "GET"; - url: "/user/memberships/orgs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListMembershipsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListMembershipsResponseDataItemOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListMembershipsResponseDataItem = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsListMembershipsResponseDataItemOrganization; - user: OrgsListMembershipsResponseDataItemUser; -}; -declare type OrgsListMembershipsResponseData = Array; -declare type OrgsGetMembershipForAuthenticatedUserEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsGetMembershipForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/memberships/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsGetMembershipForAuthenticatedUserResponseDataOrganization; - user: OrgsGetMembershipForAuthenticatedUserResponseDataUser; -}; -declare type OrgsUpdateMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The state that the membership should be in. Only `"active"` will be accepted. - */ - state: "active"; -}; -declare type OrgsUpdateMembershipRequestOptions = { - method: "PATCH"; - url: "/user/memberships/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUpdateMembershipResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsUpdateMembershipResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsUpdateMembershipResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsUpdateMembershipResponseDataOrganization; - user: OrgsUpdateMembershipResponseDataUser; -}; -declare type MigrationsStartForAuthenticatedUserEndpoint = { - /** - * An array of repositories to include in the migration. - */ - repositories: string[]; - /** - * Locks the `repositories` to prevent changes during the migration when set to `true`. - */ - lock_repositories?: boolean; - /** - * Does not include attachments uploaded to GitHub.com in the migration data when set to `true`. Excluding attachments will reduce the migration archive file size. - */ - exclude_attachments?: boolean; -}; -declare type MigrationsStartForAuthenticatedUserRequestOptions = { - method: "POST"; - url: "/user/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsStartForAuthenticatedUserResponseData = { - id: number; - owner: MigrationsStartForAuthenticatedUserResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItem = { - id: number; - owner: MigrationsListForAuthenticatedUserResponseDataItemOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForAuthenticatedUserResponseData = Array; -declare type MigrationsGetStatusForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsGetStatusForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/migrations/:migration_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseData = { - id: number; - owner: MigrationsGetStatusForAuthenticatedUserResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsGetArchiveForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsGetArchiveForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsDeleteArchiveForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsDeleteArchiveForAuthenticatedUserRequestOptions = { - method: "DELETE"; - url: "/user/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsUnlockRepoForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; - /** - * repo_name parameter - */ - repo_name: string; -} & RequiredPreview<"wyandotte">; -declare type MigrationsUnlockRepoForAuthenticatedUserRequestOptions = { - method: "DELETE"; - url: "/user/migrations/:migration_id/repos/:repo_name/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/orgs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListForAuthenticatedUserResponseDataItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListForAuthenticatedUserResponseData = Array; -declare type ProjectsCreateForAuthenticatedUserEndpoint = { - /** - * The name of the project. - */ - name: string; - /** - * The description of the project. - */ - body?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateForAuthenticatedUserRequestOptions = { - method: "POST"; - url: "/user/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateForAuthenticatedUserResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateForAuthenticatedUserResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForAuthenticatedUserResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type UsersListPublicEmailsEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListPublicEmailsRequestOptions = { - method: "GET"; - url: "/user/public_emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListPublicEmailsResponseDataItem = { - email: string; - verified: boolean; - primary: boolean; - visibility: string; -}; -declare type UsersListPublicEmailsResponseData = Array; -declare type ReposListForAuthenticatedUserEndpoint = { - /** - * Can be one of `all`, `public`, or `private`. - */ - visibility?: "all" | "public" | "private"; - /** - * 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. - */ - affiliation?: string; - /** - * Can be one of `all`, `owner`, `public`, `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**. - */ - type?: "all" | "owner" | "public" | "private" | "member"; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateForAuthenticatedUserEndpoint = { - /** - * The name of the repository. - */ - name: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to create a private repository or `false` to create a public one. - */ - private?: boolean; - /** - * 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`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. - * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * 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". - */ - gitignore_template?: string; - /** - * 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". - */ - license_template?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; -}; -declare type ReposCreateForAuthenticatedUserRequestOptions = { - method: "POST"; - url: "/user/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateForAuthenticatedUserResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateForAuthenticatedUserResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateForAuthenticatedUserResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateForAuthenticatedUserResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateForAuthenticatedUserResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListInvitationsForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListInvitationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/repository_invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListInvitationsForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItem = { - id: number; - repository: ReposListInvitationsForAuthenticatedUserResponseDataItemRepository; - invitee: ReposListInvitationsForAuthenticatedUserResponseDataItemInvitee; - inviter: ReposListInvitationsForAuthenticatedUserResponseDataItemInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseData = Array; -declare type ReposAcceptInvitationEndpoint = { - /** - * invitation_id parameter - */ - invitation_id: number; -}; -declare type ReposAcceptInvitationRequestOptions = { - method: "PATCH"; - url: "/user/repository_invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDeclineInvitationEndpoint = { - /** - * invitation_id parameter - */ - invitation_id: number; -}; -declare type ReposDeclineInvitationRequestOptions = { - method: "DELETE"; - url: "/user/repository_invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByAuthenticatedUserEndpoint = { - /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). - */ - sort?: "created" | "updated"; - /** - * One of `asc` (ascending) or `desc` (descending). - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListReposStarredByAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/starred"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposStarredByAuthenticatedUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposStarredByAuthenticatedUserResponseDataItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseData = Array; -declare type ActivityCheckRepoIsStarredByAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityCheckRepoIsStarredByAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/starred/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityStarRepoForAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityStarRepoForAuthenticatedUserRequestOptions = { - method: "PUT"; - url: "/user/starred/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityUnstarRepoForAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityUnstarRepoForAuthenticatedUserRequestOptions = { - method: "DELETE"; - url: "/user/starred/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListWatchedReposForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListWatchedReposForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/subscriptions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListWatchedReposForAuthenticatedUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListWatchedReposForAuthenticatedUserResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ActivityListWatchedReposForAuthenticatedUserResponseDataItemLicense; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseData = Array; -declare type ActivityCheckWatchingRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityCheckWatchingRepoLegacyRequestOptions = { - method: "GET"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityWatchRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityWatchRepoLegacyRequestOptions = { - method: "PUT"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityStopWatchingRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityStopWatchingRepoLegacyRequestOptions = { - method: "DELETE"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListForAuthenticatedUserResponseDataItemOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsListForAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsListForAuthenticatedUserResponseDataItemOrganization; -}; -declare type TeamsListForAuthenticatedUserResponseData = Array; -declare type MigrationsListReposForUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListReposForUserRequestOptions = { - method: "GET"; - url: "/user/:migration_id/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListReposForUserResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type MigrationsListReposForUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListReposForUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListReposForUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListReposForUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListReposForUserResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: MigrationsListReposForUserResponseDataItemLicense; -}; -declare type MigrationsListReposForUserResponseData = Array; -declare type UsersListEndpoint = { - /** - * The integer ID of the last User that you've seen. - */ - since?: string; -}; -declare type UsersListRequestOptions = { - method: "GET"; - url: "/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListResponseData = Array; -declare type UsersGetByUsernameEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersGetByUsernameRequestOptions = { - method: "GET"; - url: "/users/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetByUsernameResponseDataPlan = { - name: string; - space: number; - collaborators: number; - private_repos: number; -}; -declare type UsersGetByUsernameResponseData = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - plan?: UsersGetByUsernameResponseDataPlan; -}; -declare type ActivityListEventsForAuthenticatedUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListEventsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/users/:username/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListOrgEventsForAuthenticatedUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListOrgEventsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/users/:username/events/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListPublicEventsForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListPublicEventsForUserRequestOptions = { - method: "GET"; - url: "/users/:username/events/public"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowersForUserRequestOptions = { - method: "GET"; - url: "/users/:username/followers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForUserResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowersForUserResponseData = Array; -declare type UsersListFollowingForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowingForUserRequestOptions = { - method: "GET"; - url: "/users/:username/following"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowingForUserResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowingForUserResponseData = Array; -declare type UsersCheckFollowingForUserEndpoint = { - /** - * username parameter - */ - username: string; + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "put">; /** - * target_user parameter + * @see https://docs.github.com/rest/reference/pulls#update-a-review-for-a-pull-request */ - target_user: string; -}; -declare type UsersCheckFollowingForUserRequestOptions = { - method: "GET"; - url: "/users/:username/following/:target_user"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/gists"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListForUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListForUserResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListForUserResponseDataItemFiles = { - "hello_world.rb": GistsListForUserResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListForUserResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListForUserResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListForUserResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListForUserResponseData = Array; -declare type UsersListGpgKeysForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListGpgKeysForUserRequestOptions = { - method: "GET"; - url: "/users/:username/gpg_keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListGpgKeysForUserResponseDataItemSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysForUserResponseDataItemEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersListGpgKeysForUserResponseDataItem = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysForUserResponseData = Array; -declare type UsersGetContextForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * 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_type?: "organization" | "repository" | "issue" | "pull_request"; - /** - * Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. - */ - subject_id?: string; -}; -declare type UsersGetContextForUserRequestOptions = { - method: "GET"; - url: "/users/:username/hovercard"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetContextForUserResponseDataContextsItem = { - message: string; - octicon: string; -}; -declare type UsersGetContextForUserResponseData = { - contexts: Array; -}; -declare type AppsGetUserInstallationEndpoint = { - /** - * username parameter - */ - username: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetUserInstallationRequestOptions = { - method: "GET"; - url: "/users/:username/installation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetUserInstallationResponseDataPermissions = { - checks: string; - metadata: string; - contents: string; -}; -declare type AppsGetUserInstallationResponseDataAccount = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsGetUserInstallationResponseData = { - id: number; - account: AppsGetUserInstallationResponseDataAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetUserInstallationResponseDataPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type UsersListPublicKeysForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListPublicKeysForUserRequestOptions = { - method: "GET"; - url: "/users/:username/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListPublicKeysForUserResponseDataItem = { - id: number; - key: string; -}; -declare type UsersListPublicKeysForUserResponseData = Array; -declare type OrgsListForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/orgs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListForUserResponseDataItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListForUserResponseData = Array; -declare type ProjectsListForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListForUserResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListForUserResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForUserResponseDataItemCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForUserResponseData = Array; -declare type ActivityListReceivedEventsForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListReceivedEventsForUserRequestOptions = { - method: "GET"; - url: "/users/:username/received_events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReceivedPublicEventsForUserEndpoint = { + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "put">; /** - * username parameter + * @see https://docs.github.com/rest/reference/pulls#dismiss-a-review-for-a-pull-request */ - username: string; + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/v3/pulls/#update-a-pull-request-branch */ - per_page?: number; + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/update-branch", "put", "lydian">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/activity#set-a-repository-subscription */ - page?: number; -}; -declare type ActivityListReceivedPublicEventsForUserRequestOptions = { - method: "GET"; - url: "/users/:username/received_events/public"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForUserEndpoint = { + "PUT /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "put">; /** - * username parameter + * @see https://docs.github.com/v3/repos/#replace-all-repository-topics */ - username: string; + "PUT /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "put", "mercy">; /** - * Can be one of `all`, `owner`, `member`. + * @see https://docs.github.com/v3/repos/#enable-vulnerability-alerts */ - type?: "all" | "owner" | "member"; + "PUT /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "put", "dorian">; /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. + * @see https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-group */ - sort?: "created" | "updated" | "pushed" | "full_name"; + "PUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "put">; /** - * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` + * @see https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-user */ - direction?: "asc" | "desc"; + "PUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/v3/scim/#set-scim-information-for-a-provisioned-user */ - per_page?: number; + "PUT /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/teams#add-team-member-legacy */ - page?: number; -}; -declare type ReposListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByUserEndpoint = { + "PUT /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "put">; /** - * username parameter + * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user-legacy */ - username: string; + "PUT /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "put">; /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). + * @see https://docs.github.com/v3/teams/#add-or-update-team-project-permissions-legacy */ - sort?: "created" | "updated"; + "PUT /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "put", "inertia">; /** - * One of `asc` (ascending) or `desc` (descending). + * @see https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy */ - direction?: "asc" | "desc"; + "PUT /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/users#block-a-user */ - per_page?: number; + "PUT /user/blocks/{username}": Operation<"/user/blocks/{username}", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/users#follow-a-user */ - page?: number; -}; -declare type ActivityListReposStarredByUserRequestOptions = { - method: "GET"; - url: "/users/:username/starred"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListReposStarredByUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListReposStarredByUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposStarredByUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposStarredByUserResponseDataItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ActivityListReposStarredByUserResponseData = Array; -declare type ActivityListReposWatchedByUserEndpoint = { + "PUT /user/following/{username}": Operation<"/user/following/{username}", "put">; /** - * username parameter + * @see https://docs.github.com/rest/reference/apps#add-a-repository-to-an-app-installation */ - username: string; + "PUT /user/installations/{installation_id}/repositories/{repository_id}": Operation<"/user/installations/{installation_id}/repositories/{repository_id}", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-your-public-repositories */ - per_page?: number; + "PUT /user/interaction-limits": Operation<"/user/interaction-limits", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/activity#star-a-repository-for-the-authenticated-user */ - page?: number; -}; -declare type ActivityListReposWatchedByUserRequestOptions = { - method: "GET"; - url: "/users/:username/subscriptions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposWatchedByUserResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ActivityListReposWatchedByUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListReposWatchedByUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListReposWatchedByUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposWatchedByUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposWatchedByUserResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ActivityListReposWatchedByUserResponseDataItemLicense; -}; -declare type ActivityListReposWatchedByUserResponseData = Array; -declare type AppsCreateInstallationTokenParamsPermissions = {}; -declare type GistsCreateParamsFiles = { - content?: string; -}; -declare type GistsUpdateParamsFiles = { - content?: string; - filename?: string; -}; -declare type OrgsCreateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type OrgsUpdateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgParamsGroups = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type ReposUpdateBranchProtectionParamsRequiredStatusChecks = { - strict: boolean; - contexts: string[]; -}; -declare type ReposUpdateBranchProtectionParamsRequiredPullRequestReviews = { - dismissal_restrictions?: ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews?: boolean; - require_code_owner_reviews?: boolean; - required_approving_review_count?: number; -}; -declare type ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions = { - users?: string[]; - teams?: string[]; -}; -declare type ReposUpdateBranchProtectionParamsRestrictions = { - users: string[]; - teams: string[]; - apps?: string[]; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions = { - users?: string[]; - teams?: string[]; -}; -declare type ChecksCreateParamsOutput = { - title: string; - summary: string; - text?: string; - annotations?: ChecksCreateParamsOutputAnnotations[]; - images?: ChecksCreateParamsOutputImages[]; -}; -declare type ChecksCreateParamsOutputAnnotations = { - path: string; - start_line: number; - end_line: number; - start_column?: number; - end_column?: number; - annotation_level: "notice" | "warning" | "failure"; - message: string; - title?: string; - raw_details?: string; -}; -declare type ChecksCreateParamsOutputImages = { - alt: string; - image_url: string; - caption?: string; -}; -declare type ChecksCreateParamsActions = { - label: string; - description: string; - identifier: string; -}; -declare type ChecksUpdateParamsOutput = { - title?: string; - summary: string; - text?: string; - annotations?: ChecksUpdateParamsOutputAnnotations[]; - images?: ChecksUpdateParamsOutputImages[]; -}; -declare type ChecksUpdateParamsOutputAnnotations = { - path: string; - start_line: number; - end_line: number; - start_column?: number; - end_column?: number; - annotation_level: "notice" | "warning" | "failure"; - message: string; - title?: string; - raw_details?: string; -}; -declare type ChecksUpdateParamsOutputImages = { - alt: string; - image_url: string; - caption?: string; -}; -declare type ChecksUpdateParamsActions = { - label: string; - description: string; - identifier: string; -}; -declare type ChecksSetSuitesPreferencesParamsAutoTriggerChecks = { - app_id: number; - setting: boolean; -}; -declare type ReposCreateOrUpdateFileParamsCommitter = { - name: string; - email: string; -}; -declare type ReposCreateOrUpdateFileParamsAuthor = { - name: string; - email: string; -}; -declare type ReposDeleteFileParamsCommitter = { - name?: string; - email?: string; -}; -declare type ReposDeleteFileParamsAuthor = { - name?: string; - email?: string; -}; -declare type ReposCreateDispatchEventParamsClientPayload = {}; -declare type GitCreateCommitParamsAuthor = { - name?: string; - email?: string; - date?: string; -}; -declare type GitCreateCommitParamsCommitter = { - name?: string; - email?: string; - date?: string; -}; -declare type GitCreateTagParamsTagger = { - name?: string; - email?: string; - date?: string; -}; -declare type GitCreateTreeParamsTree = { - path?: string; - mode?: "100644" | "100755" | "040000" | "160000" | "120000"; - type?: "blob" | "tree" | "commit"; - sha?: string | null; - content?: string; -}; -declare type ReposCreateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type ReposUpdateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type ReposEnablePagesSiteParamsSource = { - branch?: "master" | "gh-pages"; - path?: string; -}; -declare type PullsCreateReviewParamsComments = { - path: string; - position: number; - body: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyParamsGroups = { - group_id: string; - group_name: string; - group_description: string; -}; + "PUT /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "put">; +} export {}; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/index.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/index.d.ts index 5d2d5ae09..004ae9b22 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/index.d.ts +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/index.d.ts @@ -4,6 +4,7 @@ export * from "./EndpointInterface"; export * from "./EndpointOptions"; export * from "./Fetch"; export * from "./OctokitResponse"; +export * from "./RequestError"; export * from "./RequestHeaders"; export * from "./RequestInterface"; export * from "./RequestMethod"; diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-web/index.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-web/index.js index 3c0cafc19..ce27278ed 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-web/index.js +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-web/index.js @@ -1,4 +1,4 @@ -const VERSION = "2.16.2"; +const VERSION = "6.0.3"; export { VERSION }; //# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/package.json b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/package.json index 9036e41f7..1176062e4 100644 --- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/package.json +++ b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/types", "description": "Shared TypeScript definitions for Octokit projects", - "version": "2.16.2", + "version": "6.0.3", "license": "MIT", "files": [ "dist-*/", @@ -18,26 +18,28 @@ ], "repository": "https://github.com/octokit/types.ts", "dependencies": { + "@octokit/openapi-types": "^1.2.0", "@types/node": ">= 8" }, "devDependencies": { - "@gimenete/type-writer": "^0.1.5", "@octokit/graphql": "^4.2.2", "@pika/pack": "^0.5.0", "@pika/plugin-build-node": "^0.9.0", "@pika/plugin-build-web": "^0.9.0", "@pika/plugin-ts-standard-pkg": "^0.9.0", "handlebars": "^4.7.6", + "json-schema-to-typescript": "^10.0.0", "lodash.set": "^4.3.2", "npm-run-all": "^4.1.5", + "openapi-typescript": "^2.3.1", "pascal-case": "^3.1.1", "prettier": "^2.0.0", "semantic-release": "^17.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", "sort-keys": "^4.0.0", "string-to-jsdoc-comment": "^1.0.0", - "typedoc": "^0.17.0", - "typescript": "^3.6.4" + "typedoc": "^0.19.0", + "typescript": "^4.0.2" }, "publishConfig": { "access": "public" diff --git a/node_modules/@octokit/plugin-paginate-rest/package.json b/node_modules/@octokit/plugin-paginate-rest/package.json index a8f9f8879..15b57619f 100644 --- a/node_modules/@octokit/plugin-paginate-rest/package.json +++ b/node_modules/@octokit/plugin-paginate-rest/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/plugin-paginate-rest", "description": "Octokit plugin to paginate REST API endpoint responses", - "version": "1.1.2", + "version": "2.6.2", "license": "MIT", "files": [ "dist-*/", @@ -17,24 +17,29 @@ ], "repository": "https://github.com/octokit/plugin-paginate-rest.js", "dependencies": { - "@octokit/types": "^2.0.1" + "@octokit/types": "^6.0.1" + }, + "peerDependencies": { + "@octokit/core": ">=2" }, "devDependencies": { - "@octokit/core": "^2.0.0", + "@octokit/core": "^3.0.0", + "@octokit/plugin-rest-endpoint-methods": "^4.0.0", "@pika/pack": "^0.5.0", - "@pika/plugin-build-node": "^0.8.1", - "@pika/plugin-build-web": "^0.8.1", - "@pika/plugin-ts-standard-pkg": "^0.8.1", + "@pika/plugin-build-node": "^0.9.0", + "@pika/plugin-build-web": "^0.9.0", + "@pika/plugin-ts-standard-pkg": "^0.9.0", "@types/fetch-mock": "^7.3.1", - "@types/jest": "^24.0.18", - "@types/node": "^13.1.0", - "fetch-mock": "^8.0.0", - "jest": "^24.9.0", - "prettier": "^1.18.2", + "@types/jest": "^26.0.0", + "@types/node": "^14.0.4", + "fetch-mock": "^9.0.0", + "jest": "^26.0.1", + "npm-run-all": "^4.1.5", + "prettier": "^2.0.4", "semantic-release": "^17.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", - "ts-jest": "^24.1.0", - "typescript": "^3.7.2" + "ts-jest": "^26.0.0", + "typescript": "^4.0.2" }, "publishConfig": { "access": "public" diff --git a/node_modules/@octokit/plugin-request-log/README.md b/node_modules/@octokit/plugin-request-log/README.md index 151886b3a..cbc8f1b4d 100644 --- a/node_modules/@octokit/plugin-request-log/README.md +++ b/node_modules/@octokit/plugin-request-log/README.md @@ -4,7 +4,6 @@ [![@latest](https://img.shields.io/npm/v/@octokit/plugin-request-log.svg)](https://www.npmjs.com/package/@octokit/plugin-request-log) [![Build Status](https://github.com/octokit/plugin-request-log.js/workflows/Test/badge.svg)](https://github.com/octokit/plugin-request-log.js/actions?workflow=Test) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/plugin-request-log.js.svg)](https://greenkeeper.io/) ## Usage @@ -14,12 +13,12 @@ Browsers -Load `@octokit/plugin-request-log` and [`@octokit/core`](https://github.com/octokit/core.js) (or core-compatible module) directly from [cdn.pika.dev](https://cdn.pika.dev) +Load `@octokit/plugin-request-log` and [`@octokit/core`](https://github.com/octokit/core.js) (or core-compatible module) directly from [cdn.skypack.dev](https://cdn.skypack.dev) ```html ``` @@ -56,8 +55,8 @@ In order to log all request options, the `log.debug` option needs to be set. We const octokit = new MyOctokit({ log: require("console-log-level")({ auth: "secret123", - level: "info" - }) + level: "info", + }), }); ``` diff --git a/node_modules/@octokit/plugin-request-log/dist-node/index.js b/node_modules/@octokit/plugin-request-log/dist-node/index.js index 83c09ef99..60b651fe1 100644 --- a/node_modules/@octokit/plugin-request-log/dist-node/index.js +++ b/node_modules/@octokit/plugin-request-log/dist-node/index.js @@ -2,7 +2,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); -const VERSION = "1.0.0"; +const VERSION = "1.0.2"; /** * @param octokit Octokit instance diff --git a/node_modules/@octokit/plugin-request-log/dist-node/index.js.map b/node_modules/@octokit/plugin-request-log/dist-node/index.js.map index 3d13ca222..26ad363e6 100644 --- a/node_modules/@octokit/plugin-request-log/dist-node/index.js.map +++ b/node_modules/@octokit/plugin-request-log/dist-node/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.0.0\";\n","import { VERSION } from \"./version\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function requestLog(octokit) {\n octokit.hook.wrap(\"request\", (request, options) => {\n octokit.log.debug(\"request\", options);\n const start = Date.now();\n const requestOptions = octokit.request.endpoint.parse(options);\n const path = requestOptions.url.replace(options.baseUrl, \"\");\n return request(options)\n .then(response => {\n octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);\n return response;\n })\n .catch(error => {\n octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() -\n start}ms`);\n throw error;\n });\n });\n}\nrequestLog.VERSION = VERSION;\n"],"names":["VERSION","requestLog","octokit","hook","wrap","request","options","log","debug","start","Date","now","requestOptions","endpoint","parse","path","url","replace","baseUrl","then","response","info","method","status","catch","error"],"mappings":";;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;ACCP;;;;;AAIA,AAAO,SAASC,UAAT,CAAoBC,OAApB,EAA6B;AAChCA,EAAAA,OAAO,CAACC,IAAR,CAAaC,IAAb,CAAkB,SAAlB,EAA6B,CAACC,OAAD,EAAUC,OAAV,KAAsB;AAC/CJ,IAAAA,OAAO,CAACK,GAAR,CAAYC,KAAZ,CAAkB,SAAlB,EAA6BF,OAA7B;AACA,UAAMG,KAAK,GAAGC,IAAI,CAACC,GAAL,EAAd;AACA,UAAMC,cAAc,GAAGV,OAAO,CAACG,OAAR,CAAgBQ,QAAhB,CAAyBC,KAAzB,CAA+BR,OAA/B,CAAvB;AACA,UAAMS,IAAI,GAAGH,cAAc,CAACI,GAAf,CAAmBC,OAAnB,CAA2BX,OAAO,CAACY,OAAnC,EAA4C,EAA5C,CAAb;AACA,WAAOb,OAAO,CAACC,OAAD,CAAP,CACFa,IADE,CACGC,QAAQ,IAAI;AAClBlB,MAAAA,OAAO,CAACK,GAAR,CAAYc,IAAZ,CAAkB,GAAET,cAAc,CAACU,MAAO,IAAGP,IAAK,MAAKK,QAAQ,CAACG,MAAO,OAAMb,IAAI,CAACC,GAAL,KAAaF,KAAM,IAAhG;AACA,aAAOW,QAAP;AACH,KAJM,EAKFI,KALE,CAKIC,KAAK,IAAI;AAChBvB,MAAAA,OAAO,CAACK,GAAR,CAAYc,IAAZ,CAAkB,GAAET,cAAc,CAACU,MAAO,IAAGP,IAAK,MAAKU,KAAK,CAACF,MAAO,OAAMb,IAAI,CAACC,GAAL,KACtEF,KAAM,IADV;AAEA,YAAMgB,KAAN;AACH,KATM,CAAP;AAUH,GAfD;AAgBH;AACDxB,UAAU,CAACD,OAAX,GAAqBA,OAArB;;;;"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.0.2\";\n","import { VERSION } from \"./version\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function requestLog(octokit) {\n octokit.hook.wrap(\"request\", (request, options) => {\n octokit.log.debug(\"request\", options);\n const start = Date.now();\n const requestOptions = octokit.request.endpoint.parse(options);\n const path = requestOptions.url.replace(options.baseUrl, \"\");\n return request(options)\n .then((response) => {\n octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);\n return response;\n })\n .catch((error) => {\n octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);\n throw error;\n });\n });\n}\nrequestLog.VERSION = VERSION;\n"],"names":["VERSION","requestLog","octokit","hook","wrap","request","options","log","debug","start","Date","now","requestOptions","endpoint","parse","path","url","replace","baseUrl","then","response","info","method","status","catch","error"],"mappings":";;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;ACCP;;;;;AAIA,AAAO,SAASC,UAAT,CAAoBC,OAApB,EAA6B;AAChCA,EAAAA,OAAO,CAACC,IAAR,CAAaC,IAAb,CAAkB,SAAlB,EAA6B,CAACC,OAAD,EAAUC,OAAV,KAAsB;AAC/CJ,IAAAA,OAAO,CAACK,GAAR,CAAYC,KAAZ,CAAkB,SAAlB,EAA6BF,OAA7B;AACA,UAAMG,KAAK,GAAGC,IAAI,CAACC,GAAL,EAAd;AACA,UAAMC,cAAc,GAAGV,OAAO,CAACG,OAAR,CAAgBQ,QAAhB,CAAyBC,KAAzB,CAA+BR,OAA/B,CAAvB;AACA,UAAMS,IAAI,GAAGH,cAAc,CAACI,GAAf,CAAmBC,OAAnB,CAA2BX,OAAO,CAACY,OAAnC,EAA4C,EAA5C,CAAb;AACA,WAAOb,OAAO,CAACC,OAAD,CAAP,CACFa,IADE,CACIC,QAAD,IAAc;AACpBlB,MAAAA,OAAO,CAACK,GAAR,CAAYc,IAAZ,CAAkB,GAAET,cAAc,CAACU,MAAO,IAAGP,IAAK,MAAKK,QAAQ,CAACG,MAAO,OAAMb,IAAI,CAACC,GAAL,KAAaF,KAAM,IAAhG;AACA,aAAOW,QAAP;AACH,KAJM,EAKFI,KALE,CAKKC,KAAD,IAAW;AAClBvB,MAAAA,OAAO,CAACK,GAAR,CAAYc,IAAZ,CAAkB,GAAET,cAAc,CAACU,MAAO,IAAGP,IAAK,MAAKU,KAAK,CAACF,MAAO,OAAMb,IAAI,CAACC,GAAL,KAAaF,KAAM,IAA7F;AACA,YAAMgB,KAAN;AACH,KARM,CAAP;AASH,GAdD;AAeH;AACDxB,UAAU,CAACD,OAAX,GAAqBA,OAArB;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/plugin-request-log/dist-src/index.js b/node_modules/@octokit/plugin-request-log/dist-src/index.js index aa849220d..033cc8405 100644 --- a/node_modules/@octokit/plugin-request-log/dist-src/index.js +++ b/node_modules/@octokit/plugin-request-log/dist-src/index.js @@ -10,13 +10,12 @@ export function requestLog(octokit) { const requestOptions = octokit.request.endpoint.parse(options); const path = requestOptions.url.replace(options.baseUrl, ""); return request(options) - .then(response => { + .then((response) => { octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`); return response; }) - .catch(error => { - octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - - start}ms`); + .catch((error) => { + octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`); throw error; }); }); diff --git a/node_modules/@octokit/plugin-request-log/dist-src/version.js b/node_modules/@octokit/plugin-request-log/dist-src/version.js index aa2575bab..956106291 100644 --- a/node_modules/@octokit/plugin-request-log/dist-src/version.js +++ b/node_modules/@octokit/plugin-request-log/dist-src/version.js @@ -1 +1 @@ -export const VERSION = "1.0.0"; +export const VERSION = "1.0.2"; diff --git a/node_modules/@octokit/plugin-request-log/dist-types/index.d.ts b/node_modules/@octokit/plugin-request-log/dist-types/index.d.ts index 5c28712b9..dc62f632a 100644 --- a/node_modules/@octokit/plugin-request-log/dist-types/index.d.ts +++ b/node_modules/@octokit/plugin-request-log/dist-types/index.d.ts @@ -1,4 +1,4 @@ -import { Octokit } from "@octokit/core"; +import type { Octokit } from "@octokit/core"; /** * @param octokit Octokit instance * @param options Options passed to Octokit constructor diff --git a/node_modules/@octokit/plugin-request-log/dist-types/version.d.ts b/node_modules/@octokit/plugin-request-log/dist-types/version.d.ts index 5743c2ab5..9f861b6cd 100644 --- a/node_modules/@octokit/plugin-request-log/dist-types/version.d.ts +++ b/node_modules/@octokit/plugin-request-log/dist-types/version.d.ts @@ -1 +1 @@ -export declare const VERSION = "1.0.0"; +export declare const VERSION = "1.0.2"; diff --git a/node_modules/@octokit/plugin-request-log/dist-web/index.js b/node_modules/@octokit/plugin-request-log/dist-web/index.js index 9c06f702f..ac4050d52 100644 --- a/node_modules/@octokit/plugin-request-log/dist-web/index.js +++ b/node_modules/@octokit/plugin-request-log/dist-web/index.js @@ -1,4 +1,4 @@ -const VERSION = "1.0.0"; +const VERSION = "1.0.2"; /** * @param octokit Octokit instance @@ -11,13 +11,12 @@ function requestLog(octokit) { const requestOptions = octokit.request.endpoint.parse(options); const path = requestOptions.url.replace(options.baseUrl, ""); return request(options) - .then(response => { + .then((response) => { octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`); return response; }) - .catch(error => { - octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - - start}ms`); + .catch((error) => { + octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`); throw error; }); }); diff --git a/node_modules/@octokit/plugin-request-log/dist-web/index.js.map b/node_modules/@octokit/plugin-request-log/dist-web/index.js.map index 59145b1dc..c691579d7 100644 --- a/node_modules/@octokit/plugin-request-log/dist-web/index.js.map +++ b/node_modules/@octokit/plugin-request-log/dist-web/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.0.0\";\n","import { VERSION } from \"./version\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function requestLog(octokit) {\n octokit.hook.wrap(\"request\", (request, options) => {\n octokit.log.debug(\"request\", options);\n const start = Date.now();\n const requestOptions = octokit.request.endpoint.parse(options);\n const path = requestOptions.url.replace(options.baseUrl, \"\");\n return request(options)\n .then(response => {\n octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);\n return response;\n })\n .catch(error => {\n octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() -\n start}ms`);\n throw error;\n });\n });\n}\nrequestLog.VERSION = VERSION;\n"],"names":[],"mappings":"AAAO,MAAM,OAAO,GAAG,mBAAmB;;ACC1C;AACA;AACA;AACA;AACA,AAAO,SAAS,UAAU,CAAC,OAAO,EAAE;AACpC,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK;AACvD,QAAQ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC9C,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AACjC,QAAQ,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACvE,QAAQ,MAAM,IAAI,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AACrE,QAAQ,OAAO,OAAO,CAAC,OAAO,CAAC;AAC/B,aAAa,IAAI,CAAC,QAAQ,IAAI;AAC9B,YAAY,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AACjH,YAAY,OAAO,QAAQ,CAAC;AAC5B,SAAS,CAAC;AACV,aAAa,KAAK,CAAC,KAAK,IAAI;AAC5B,YAAY,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE;AAChG,gBAAgB,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3B,YAAY,MAAM,KAAK,CAAC;AACxB,SAAS,CAAC,CAAC;AACX,KAAK,CAAC,CAAC;AACP,CAAC;AACD,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;;;;"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.0.2\";\n","import { VERSION } from \"./version\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function requestLog(octokit) {\n octokit.hook.wrap(\"request\", (request, options) => {\n octokit.log.debug(\"request\", options);\n const start = Date.now();\n const requestOptions = octokit.request.endpoint.parse(options);\n const path = requestOptions.url.replace(options.baseUrl, \"\");\n return request(options)\n .then((response) => {\n octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);\n return response;\n })\n .catch((error) => {\n octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);\n throw error;\n });\n });\n}\nrequestLog.VERSION = VERSION;\n"],"names":[],"mappings":"AAAO,MAAM,OAAO,GAAG,mBAAmB;;ACC1C;AACA;AACA;AACA;AACA,AAAO,SAAS,UAAU,CAAC,OAAO,EAAE;AACpC,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK;AACvD,QAAQ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC9C,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AACjC,QAAQ,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACvE,QAAQ,MAAM,IAAI,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AACrE,QAAQ,OAAO,OAAO,CAAC,OAAO,CAAC;AAC/B,aAAa,IAAI,CAAC,CAAC,QAAQ,KAAK;AAChC,YAAY,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AACjH,YAAY,OAAO,QAAQ,CAAC;AAC5B,SAAS,CAAC;AACV,aAAa,KAAK,CAAC,CAAC,KAAK,KAAK;AAC9B,YAAY,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9G,YAAY,MAAM,KAAK,CAAC;AACxB,SAAS,CAAC,CAAC;AACX,KAAK,CAAC,CAAC;AACP,CAAC;AACD,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/plugin-request-log/package.json b/node_modules/@octokit/plugin-request-log/package.json index 82a1d12ed..bd1bb2da4 100644 --- a/node_modules/@octokit/plugin-request-log/package.json +++ b/node_modules/@octokit/plugin-request-log/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/plugin-request-log", "description": "Log all requests and request errors", - "version": "1.0.0", + "version": "1.0.2", "license": "MIT", "files": [ "dist-*/", @@ -17,21 +17,24 @@ ], "repository": "https://github.com/octokit/plugin-request-log.js", "dependencies": {}, + "peerDependencies": { + "@octokit/core": ">=3" + }, "devDependencies": { - "@octokit/core": "^2.1.2", + "@octokit/core": "^3.0.0", "@pika/pack": "^0.5.0", - "@pika/plugin-build-node": "^0.8.1", - "@pika/plugin-build-web": "^0.8.1", - "@pika/plugin-ts-standard-pkg": "^0.8.1", + "@pika/plugin-build-node": "^0.9.0", + "@pika/plugin-build-web": "^0.9.0", + "@pika/plugin-ts-standard-pkg": "^0.9.0", "@types/fetch-mock": "^7.3.2", - "@types/jest": "^24.0.25", - "@types/node": "^13.1.6", - "fetch-mock": "^8.3.1", - "jest": "^24.9.0", - "prettier": "^1.19.1", - "semantic-release": "^16.0.1", + "@types/jest": "^26.0.0", + "@types/node": "^14.0.4", + "fetch-mock": "^9.0.0", + "jest": "^25.1.0", + "prettier": "^2.0.1", + "semantic-release": "^17.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", - "ts-jest": "^24.3.0", + "ts-jest": "^25.0.0", "typescript": "^3.7.4" }, "publishConfig": { diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/README.md b/node_modules/@octokit/plugin-rest-endpoint-methods/README.md index 2c3ae5c17..0658dee6e 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/README.md +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/README.md @@ -4,7 +4,6 @@ [![@latest](https://img.shields.io/npm/v/@octokit/plugin-rest-endpoint-methods.svg)](https://www.npmjs.com/package/@octokit/plugin-rest-endpoint-methods) [![Build Status](https://github.com/octokit/plugin-rest-endpoint-methods.js/workflows/Test/badge.svg)](https://github.com/octokit/plugin-rest-endpoint-methods.js/actions?workflow=Test) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/plugin-rest-endpoint-methods.js.svg)](https://greenkeeper.io/) ## Usage @@ -14,12 +13,12 @@ Browsers -Load `@octokit/plugin-rest-endpoint-methods` and [`@octokit/core`](https://github.com/octokit/core.js) (or core-compatible module) directly from [cdn.pika.dev](https://cdn.pika.dev) +Load `@octokit/plugin-rest-endpoint-methods` and [`@octokit/core`](https://github.com/octokit/core.js) (or core-compatible module) directly from [cdn.skypack.dev](https://cdn.skypack.dev) ```html ``` @@ -33,7 +32,7 @@ Install with `npm install @octokit/core @octokit/plugin-rest-endpoint-methods`. ```js const { Octokit } = require("@octokit/core"); const { - restEndpointMethods + restEndpointMethods, } = require("@octokit/plugin-rest-endpoint-methods"); ``` @@ -45,2669 +44,25 @@ const { const MyOctokit = Octokit.plugin(restEndpointMethods); const octokit = new MyOctokit({ auth: "secret123" }); -// https://developer.github.com/v3/apps/#get-the-authenticated-github-app -octokit.apps.getAuthenticated(); - -// https://developer.github.com/v3/apps/#create-a-github-app-from-a-manifest -octokit.apps.createFromManifest({ code }); - -// https://developer.github.com/v3/apps/#list-installations -octokit.apps.listInstallations(); - -// https://developer.github.com/v3/apps/#get-an-installation -octokit.apps.getInstallation({ installation_id }); - -// https://developer.github.com/v3/apps/#delete-an-installation -octokit.apps.deleteInstallation({ installation_id }); - -// https://developer.github.com/v3/apps/#create-a-new-installation-token -octokit.apps.createInstallationToken({ - installation_id, - repository_ids, - permissions -}); - -// https://developer.github.com/v3/oauth_authorizations/#list-your-grants -octokit.oauthAuthorizations.listGrants(); - -// https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant -octokit.oauthAuthorizations.getGrant({ grant_id }); - -// https://developer.github.com/v3/oauth_authorizations/#delete-a-grant -octokit.oauthAuthorizations.deleteGrant({ grant_id }); - -// https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-authorization -octokit.apps.deleteAuthorization({ client_id, access_token }); - -// https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application -octokit.apps.revokeGrantForApplication({ client_id, access_token }); - -// DEPRECATED: octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() -octokit.oauthAuthorizations.revokeGrantForApplication({ - client_id, - access_token -}); - -// https://developer.github.com/v3/apps/oauth_applications/#check-a-token -octokit.apps.checkToken({ client_id, access_token }); - -// https://developer.github.com/v3/apps/oauth_applications/#reset-a-token -octokit.apps.resetToken({ client_id, access_token }); - -// https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-token -octokit.apps.deleteToken({ client_id, access_token }); - -// https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization -octokit.apps.checkAuthorization({ client_id, access_token }); - -// DEPRECATED: octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() -octokit.oauthAuthorizations.checkAuthorization({ client_id, access_token }); - -// https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization -octokit.apps.resetAuthorization({ client_id, access_token }); - -// DEPRECATED: octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() -octokit.oauthAuthorizations.resetAuthorization({ client_id, access_token }); - -// https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application -octokit.apps.revokeAuthorizationForApplication({ client_id, access_token }); - -// DEPRECATED: octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() -octokit.oauthAuthorizations.revokeAuthorizationForApplication({ - client_id, - access_token -}); - -// https://developer.github.com/v3/apps/#get-a-single-github-app -octokit.apps.getBySlug({ app_slug }); - -// https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations -octokit.oauthAuthorizations.listAuthorizations(); - -// https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization -octokit.oauthAuthorizations.createAuthorization({ - scopes, - note, - note_url, - client_id, - client_secret, - fingerprint -}); - -// https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app -octokit.oauthAuthorizations.getOrCreateAuthorizationForApp({ - client_id, - client_secret, - scopes, - note, - note_url, - fingerprint -}); - -// https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint -octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint({ - client_id, - fingerprint, - client_secret, - scopes, - note, - note_url -}); - -// DEPRECATED: octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() -octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint({ - client_id, - fingerprint, - client_secret, - scopes, - note, - note_url -}); - -// https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization -octokit.oauthAuthorizations.getAuthorization({ authorization_id }); - -// https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization -octokit.oauthAuthorizations.updateAuthorization({ - authorization_id, - scopes, - add_scopes, - remove_scopes, - note, - note_url, - fingerprint -}); - -// https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization -octokit.oauthAuthorizations.deleteAuthorization({ authorization_id }); - -// https://developer.github.com/v3/codes_of_conduct/#list-all-codes-of-conduct -octokit.codesOfConduct.listConductCodes(); - -// https://developer.github.com/v3/codes_of_conduct/#get-an-individual-code-of-conduct -octokit.codesOfConduct.getConductCode({ key }); - -// https://developer.github.com/v3/apps/installations/#create-a-content-attachment -octokit.apps.createContentAttachment({ content_reference_id, title, body }); - -// https://developer.github.com/v3/emojis/#emojis -octokit.emojis.get(); - -// https://developer.github.com/v3/activity/events/#list-public-events -octokit.activity.listPublicEvents(); - -// https://developer.github.com/v3/activity/feeds/#list-feeds -octokit.activity.listFeeds(); - -// https://developer.github.com/v3/gists/#list-a-users-gists -octokit.gists.list({ since }); - -// https://developer.github.com/v3/gists/#create-a-gist -octokit.gists.create({ files, description, public }); - -// https://developer.github.com/v3/gists/#list-all-public-gists -octokit.gists.listPublic({ since }); - -// https://developer.github.com/v3/gists/#list-starred-gists -octokit.gists.listStarred({ since }); - -// https://developer.github.com/v3/gists/#get-a-single-gist -octokit.gists.get({ gist_id }); - -// https://developer.github.com/v3/gists/#edit-a-gist -octokit.gists.update({ gist_id, description, files }); - -// https://developer.github.com/v3/gists/#delete-a-gist -octokit.gists.delete({ gist_id }); - -// https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist -octokit.gists.listComments({ gist_id }); - -// https://developer.github.com/v3/gists/comments/#create-a-comment -octokit.gists.createComment({ gist_id, body }); - -// https://developer.github.com/v3/gists/comments/#get-a-single-comment -octokit.gists.getComment({ gist_id, comment_id }); - -// https://developer.github.com/v3/gists/comments/#edit-a-comment -octokit.gists.updateComment({ gist_id, comment_id, body }); - -// https://developer.github.com/v3/gists/comments/#delete-a-comment -octokit.gists.deleteComment({ gist_id, comment_id }); - -// https://developer.github.com/v3/gists/#list-gist-commits -octokit.gists.listCommits({ gist_id }); - -// https://developer.github.com/v3/gists/#fork-a-gist -octokit.gists.fork({ gist_id }); - -// https://developer.github.com/v3/gists/#list-gist-forks -octokit.gists.listForks({ gist_id }); - -// https://developer.github.com/v3/gists/#star-a-gist -octokit.gists.star({ gist_id }); - -// https://developer.github.com/v3/gists/#unstar-a-gist -octokit.gists.unstar({ gist_id }); - -// https://developer.github.com/v3/gists/#check-if-a-gist-is-starred -octokit.gists.checkIsStarred({ gist_id }); - -// https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist -octokit.gists.getRevision({ gist_id, sha }); - -// https://developer.github.com/v3/gitignore/#listing-available-templates -octokit.gitignore.listTemplates(); - -// https://developer.github.com/v3/gitignore/#get-a-single-template -octokit.gitignore.getTemplate({ name }); - -// https://developer.github.com/v3/apps/installations/#list-repositories -octokit.apps.listRepos(); - -// https://developer.github.com/v3/apps/installations/#revoke-an-installation-token -octokit.apps.revokeInstallationToken(); - -// https://developer.github.com/v3/issues/#list-issues -octokit.issues.list({ filter, state, labels, sort, direction, since }); - -// https://developer.github.com/v3/licenses/#list-commonly-used-licenses -octokit.licenses.listCommonlyUsed(); - -// DEPRECATED: octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() -octokit.licenses.list(); - -// https://developer.github.com/v3/licenses/#get-an-individual-license -octokit.licenses.get({ license }); - -// https://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document -octokit.markdown.render({ text, mode, context }); - -// https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode -octokit.markdown.renderRaw({ data }); - -// https://developer.github.com/v3/apps/marketplace/#check-if-a-github-account-is-associated-with-any-marketplace-listing -octokit.apps.checkAccountIsAssociatedWithAny({ account_id }); - -// https://developer.github.com/v3/apps/marketplace/#list-all-plans-for-your-marketplace-listing -octokit.apps.listPlans(); - -// https://developer.github.com/v3/apps/marketplace/#list-all-github-accounts-user-or-organization-on-a-specific-plan -octokit.apps.listAccountsUserOrOrgOnPlan({ plan_id, sort, direction }); - -// https://developer.github.com/v3/apps/marketplace/#check-if-a-github-account-is-associated-with-any-marketplace-listing -octokit.apps.checkAccountIsAssociatedWithAnyStubbed({ account_id }); - -// https://developer.github.com/v3/apps/marketplace/#list-all-plans-for-your-marketplace-listing -octokit.apps.listPlansStubbed(); - -// https://developer.github.com/v3/apps/marketplace/#list-all-github-accounts-user-or-organization-on-a-specific-plan -octokit.apps.listAccountsUserOrOrgOnPlanStubbed({ plan_id, sort, direction }); - -// https://developer.github.com/v3/meta/#meta -octokit.meta.get(); - -// https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories -octokit.activity.listPublicEventsForRepoNetwork({ owner, repo }); - -// https://developer.github.com/v3/activity/notifications/#list-your-notifications -octokit.activity.listNotifications({ all, participating, since, before }); - -// https://developer.github.com/v3/activity/notifications/#mark-as-read -octokit.activity.markAsRead({ last_read_at }); - -// https://developer.github.com/v3/activity/notifications/#view-a-single-thread -octokit.activity.getThread({ thread_id }); - -// https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read -octokit.activity.markThreadAsRead({ thread_id }); - -// https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription -octokit.activity.getThreadSubscription({ thread_id }); - -// https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription -octokit.activity.setThreadSubscription({ thread_id, ignored }); - -// https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription -octokit.activity.deleteThreadSubscription({ thread_id }); - -// https://developer.github.com/v3/orgs/#list-all-organizations -octokit.orgs.list({ since }); - -// https://developer.github.com/v3/orgs/#get-an-organization -octokit.orgs.get({ org }); - -// https://developer.github.com/v3/orgs/#edit-an-organization -octokit.orgs.update({ - org, - billing_email, - company, - email, - location, - name, - description, - has_organization_projects, - has_repository_projects, - default_repository_permission, - members_can_create_repositories, - members_can_create_internal_repositories, - members_can_create_private_repositories, - members_can_create_public_repositories, - members_allowed_repository_creation_type -}); - -// https://developer.github.com/v3/orgs/blocking/#list-blocked-users -octokit.orgs.listBlockedUsers({ org }); - -// https://developer.github.com/v3/orgs/blocking/#check-whether-a-user-is-blocked-from-an-organization -octokit.orgs.checkBlockedUser({ org, username }); - -// https://developer.github.com/v3/orgs/blocking/#block-a-user -octokit.orgs.blockUser({ org, username }); - -// https://developer.github.com/v3/orgs/blocking/#unblock-a-user -octokit.orgs.unblockUser({ org, username }); - -// https://developer.github.com/v3/activity/events/#list-public-events-for-an-organization -octokit.activity.listPublicEventsForOrg({ org }); - -// https://developer.github.com/v3/orgs/hooks/#list-hooks -octokit.orgs.listHooks({ org }); - -// https://developer.github.com/v3/orgs/hooks/#create-a-hook -octokit.orgs.createHook({ org, name, config, events, active }); - -// https://developer.github.com/v3/orgs/hooks/#get-single-hook -octokit.orgs.getHook({ org, hook_id }); - -// https://developer.github.com/v3/orgs/hooks/#edit-a-hook -octokit.orgs.updateHook({ org, hook_id, config, events, active }); - -// https://developer.github.com/v3/orgs/hooks/#delete-a-hook -octokit.orgs.deleteHook({ org, hook_id }); - -// https://developer.github.com/v3/orgs/hooks/#ping-a-hook -octokit.orgs.pingHook({ org, hook_id }); - -// https://developer.github.com/v3/apps/#get-an-organization-installation -octokit.apps.getOrgInstallation({ org }); - -// DEPRECATED: octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() -octokit.apps.findOrgInstallation({ org }); - -// https://developer.github.com/v3/orgs/#list-installations-for-an-organization -octokit.orgs.listInstallations({ org }); - -// https://developer.github.com/v3/interactions/orgs/#get-interaction-restrictions-for-an-organization -octokit.interactions.getRestrictionsForOrg({ org }); - -// https://developer.github.com/v3/interactions/orgs/#add-or-update-interaction-restrictions-for-an-organization -octokit.interactions.addOrUpdateRestrictionsForOrg({ org, limit }); - -// https://developer.github.com/v3/interactions/orgs/#remove-interaction-restrictions-for-an-organization -octokit.interactions.removeRestrictionsForOrg({ org }); - -// https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations -octokit.orgs.listPendingInvitations({ org }); - -// https://developer.github.com/v3/orgs/members/#create-organization-invitation -octokit.orgs.createInvitation({ org, invitee_id, email, role, team_ids }); - -// https://developer.github.com/v3/orgs/members/#list-organization-invitation-teams -octokit.orgs.listInvitationTeams({ org, invitation_id }); - -// https://developer.github.com/v3/issues/#list-issues -octokit.issues.listForOrg({ - org, - filter, - state, - labels, - sort, - direction, - since -}); - -// https://developer.github.com/v3/orgs/members/#members-list -octokit.orgs.listMembers({ org, filter, role }); - -// https://developer.github.com/v3/orgs/members/#check-membership -octokit.orgs.checkMembership({ org, username }); - -// https://developer.github.com/v3/orgs/members/#remove-a-member -octokit.orgs.removeMember({ org, username }); - -// https://developer.github.com/v3/orgs/members/#get-organization-membership -octokit.orgs.getMembership({ org, username }); - -// https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership -octokit.orgs.addOrUpdateMembership({ org, username, role }); - -// https://developer.github.com/v3/orgs/members/#remove-organization-membership -octokit.orgs.removeMembership({ org, username }); - -// https://developer.github.com/v3/migrations/orgs/#start-an-organization-migration -octokit.migrations.startForOrg({ - org, - repositories, - lock_repositories, - exclude_attachments -}); - -// https://developer.github.com/v3/migrations/orgs/#list-organization-migrations -octokit.migrations.listForOrg({ org }); - -// https://developer.github.com/v3/migrations/orgs/#get-the-status-of-an-organization-migration -octokit.migrations.getStatusForOrg({ org, migration_id }); - -// https://developer.github.com/v3/migrations/orgs/#download-an-organization-migration-archive -octokit.migrations.downloadArchiveForOrg({ org, migration_id }); - -// DEPRECATED: octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() -octokit.migrations.getArchiveForOrg({ org, migration_id }); - -// https://developer.github.com/v3/migrations/orgs/#delete-an-organization-migration-archive -octokit.migrations.deleteArchiveForOrg({ org, migration_id }); - -// https://developer.github.com/v3/migrations/orgs/#unlock-an-organization-repository -octokit.migrations.unlockRepoForOrg({ org, migration_id, repo_name }); - -// https://developer.github.com/v3/migrations/orgs/#list-repositories-in-an-organization-migration -octokit.migrations.listReposForOrg({ org, migration_id }); - -// https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators -octokit.orgs.listOutsideCollaborators({ org, filter }); - -// https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator -octokit.orgs.removeOutsideCollaborator({ org, username }); - -// https://developer.github.com/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator -octokit.orgs.convertMemberToOutsideCollaborator({ org, username }); - -// https://developer.github.com/v3/projects/#list-organization-projects -octokit.projects.listForOrg({ org, state }); - -// https://developer.github.com/v3/projects/#create-an-organization-project -octokit.projects.createForOrg({ org, name, body }); - -// https://developer.github.com/v3/orgs/members/#public-members-list -octokit.orgs.listPublicMembers({ org }); - -// https://developer.github.com/v3/orgs/members/#check-public-membership -octokit.orgs.checkPublicMembership({ org, username }); - -// https://developer.github.com/v3/orgs/members/#publicize-a-users-membership -octokit.orgs.publicizeMembership({ org, username }); - -// https://developer.github.com/v3/orgs/members/#conceal-a-users-membership -octokit.orgs.concealMembership({ org, username }); - -// https://developer.github.com/v3/repos/#list-organization-repositories -octokit.repos.listForOrg({ org, type, sort, direction }); - -// https://developer.github.com/v3/repos/#create -octokit.repos.createInOrg({ - org, - name, - description, - homepage, - private, - visibility, - has_issues, - has_projects, - has_wiki, - is_template, - team_id, - auto_init, - gitignore_template, - license_template, - allow_squash_merge, - allow_merge_commit, - allow_rebase_merge, - delete_branch_on_merge -}); - -// https://developer.github.com/v3/teams/#list-teams -octokit.teams.list({ org }); - -// https://developer.github.com/v3/teams/#create-team -octokit.teams.create({ - org, - name, - description, - maintainers, - repo_names, - privacy, - permission, - parent_team_id -}); - -// https://developer.github.com/v3/teams/#get-team-by-name -octokit.teams.getByName({ org, team_slug }); - -// https://developer.github.com/v3/teams/#edit-team -octokit.teams.updateInOrg({ - org, - team_slug, - name, - description, - privacy, - permission, - parent_team_id -}); - -// https://developer.github.com/v3/teams/#delete-team -octokit.teams.deleteInOrg({ org, team_slug }); - -// https://developer.github.com/v3/teams/discussions/#list-discussions -octokit.teams.listDiscussionsInOrg({ org, team_slug, direction }); - -// https://developer.github.com/v3/teams/discussions/#create-a-discussion -octokit.teams.createDiscussionInOrg({ org, team_slug, title, body, private }); - -// https://developer.github.com/v3/teams/discussions/#get-a-single-discussion -octokit.teams.getDiscussionInOrg({ org, team_slug, discussion_number }); - -// https://developer.github.com/v3/teams/discussions/#edit-a-discussion -octokit.teams.updateDiscussionInOrg({ - org, - team_slug, - discussion_number, - title, - body -}); - -// https://developer.github.com/v3/teams/discussions/#delete-a-discussion -octokit.teams.deleteDiscussionInOrg({ org, team_slug, discussion_number }); - -// https://developer.github.com/v3/teams/discussion_comments/#list-comments -octokit.teams.listDiscussionCommentsInOrg({ - org, - team_slug, - discussion_number, - direction -}); - -// https://developer.github.com/v3/teams/discussion_comments/#create-a-comment -octokit.teams.createDiscussionCommentInOrg({ - org, - team_slug, - discussion_number, - body -}); - -// https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment -octokit.teams.getDiscussionCommentInOrg({ - org, - team_slug, - discussion_number, - comment_number -}); - -// https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment -octokit.teams.updateDiscussionCommentInOrg({ - org, - team_slug, - discussion_number, - comment_number, - body -}); - -// https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment -octokit.teams.deleteDiscussionCommentInOrg({ - org, - team_slug, - discussion_number, - comment_number -}); - -// https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment -octokit.reactions.listForTeamDiscussionCommentInOrg({ - org, - team_slug, - discussion_number, - comment_number, - content -}); - -// https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment -octokit.reactions.createForTeamDiscussionCommentInOrg({ - org, - team_slug, - discussion_number, - comment_number, - content -}); - -// https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion -octokit.reactions.listForTeamDiscussionInOrg({ - org, - team_slug, - discussion_number, - content -}); - -// https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion -octokit.reactions.createForTeamDiscussionInOrg({ - org, - team_slug, - discussion_number, - content -}); - -// https://developer.github.com/v3/teams/members/#list-pending-team-invitations -octokit.teams.listPendingInvitationsInOrg({ org, team_slug }); - -// https://developer.github.com/v3/teams/members/#list-team-members -octokit.teams.listMembersInOrg({ org, team_slug, role }); - -// https://developer.github.com/v3/teams/members/#get-team-membership -octokit.teams.getMembershipInOrg({ org, team_slug, username }); - -// https://developer.github.com/v3/teams/members/#add-or-update-team-membership -octokit.teams.addOrUpdateMembershipInOrg({ org, team_slug, username, role }); - -// https://developer.github.com/v3/teams/members/#remove-team-membership -octokit.teams.removeMembershipInOrg({ org, team_slug, username }); - -// https://developer.github.com/v3/teams/#list-team-projects -octokit.teams.listProjectsInOrg({ org, team_slug }); - -// https://developer.github.com/v3/teams/#review-a-team-project -octokit.teams.reviewProjectInOrg({ org, team_slug, project_id }); - -// https://developer.github.com/v3/teams/#add-or-update-team-project -octokit.teams.addOrUpdateProjectInOrg({ - org, - team_slug, - project_id, - permission -}); - -// https://developer.github.com/v3/teams/#remove-team-project -octokit.teams.removeProjectInOrg({ org, team_slug, project_id }); - -// https://developer.github.com/v3/teams/#list-team-repos -octokit.teams.listReposInOrg({ org, team_slug }); - -// https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository -octokit.teams.checkManagesRepoInOrg({ org, team_slug, owner, repo }); - -// https://developer.github.com/v3/teams/#add-or-update-team-repository -octokit.teams.addOrUpdateRepoInOrg({ org, team_slug, owner, repo, permission }); - -// https://developer.github.com/v3/teams/#remove-team-repository -octokit.teams.removeRepoInOrg({ org, team_slug, owner, repo }); - -// https://developer.github.com/v3/teams/#list-child-teams -octokit.teams.listChildInOrg({ org, team_slug }); - -// https://developer.github.com/v3/projects/cards/#get-a-project-card -octokit.projects.getCard({ card_id }); - -// https://developer.github.com/v3/projects/cards/#update-a-project-card -octokit.projects.updateCard({ card_id, note, archived }); - -// https://developer.github.com/v3/projects/cards/#delete-a-project-card -octokit.projects.deleteCard({ card_id }); - -// https://developer.github.com/v3/projects/cards/#move-a-project-card -octokit.projects.moveCard({ card_id, position, column_id }); - -// https://developer.github.com/v3/projects/columns/#get-a-project-column -octokit.projects.getColumn({ column_id }); - -// https://developer.github.com/v3/projects/columns/#update-a-project-column -octokit.projects.updateColumn({ column_id, name }); - -// https://developer.github.com/v3/projects/columns/#delete-a-project-column -octokit.projects.deleteColumn({ column_id }); - -// https://developer.github.com/v3/projects/cards/#list-project-cards -octokit.projects.listCards({ column_id, archived_state }); - -// https://developer.github.com/v3/projects/cards/#create-a-project-card -octokit.projects.createCard({ column_id, note, content_id, content_type }); - -// https://developer.github.com/v3/projects/columns/#move-a-project-column -octokit.projects.moveColumn({ column_id, position }); - -// https://developer.github.com/v3/projects/#get-a-project -octokit.projects.get({ project_id }); - -// https://developer.github.com/v3/projects/#update-a-project -octokit.projects.update({ - project_id, - name, - body, - state, - organization_permission, - private -}); - -// https://developer.github.com/v3/projects/#delete-a-project -octokit.projects.delete({ project_id }); - -// https://developer.github.com/v3/projects/collaborators/#list-collaborators -octokit.projects.listCollaborators({ project_id, affiliation }); - -// https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator -octokit.projects.addCollaborator({ project_id, username, permission }); - -// https://developer.github.com/v3/projects/collaborators/#remove-user-as-a-collaborator -octokit.projects.removeCollaborator({ project_id, username }); - -// https://developer.github.com/v3/projects/collaborators/#review-a-users-permission-level -octokit.projects.reviewUserPermissionLevel({ project_id, username }); - -// https://developer.github.com/v3/projects/columns/#list-project-columns -octokit.projects.listColumns({ project_id }); - -// https://developer.github.com/v3/projects/columns/#create-a-project-column -octokit.projects.createColumn({ project_id, name }); - -// https://developer.github.com/v3/rate_limit/#get-your-current-rate-limit-status -octokit.rateLimit.get(); - -// https://developer.github.com/v3/reactions/#delete-a-reaction -octokit.reactions.delete({ reaction_id }); - -// https://developer.github.com/v3/repos/#get -octokit.repos.get({ owner, repo }); - -// https://developer.github.com/v3/repos/#edit -octokit.repos.update({ - owner, - repo, - name, - description, - homepage, - private, - visibility, - has_issues, - has_projects, - has_wiki, - is_template, - default_branch, - allow_squash_merge, - allow_merge_commit, - allow_rebase_merge, - delete_branch_on_merge, - archived -}); - -// https://developer.github.com/v3/repos/#delete-a-repository -octokit.repos.delete({ owner, repo }); - -// https://developer.github.com/v3/actions/artifacts/#get-an-artifact -octokit.actions.getArtifact({ owner, repo, artifact_id }); - -// https://developer.github.com/v3/actions/artifacts/#delete-an-artifact -octokit.actions.deleteArtifact({ owner, repo, artifact_id }); - -// https://developer.github.com/v3/actions/artifacts/#download-an-artifact -octokit.actions.downloadArtifact({ owner, repo, artifact_id, archive_format }); - -// https://developer.github.com/v3/actions/workflow_jobs/#get-a-workflow-job -octokit.actions.getWorkflowJob({ owner, repo, job_id }); - -// https://developer.github.com/v3/actions/workflow_jobs/#list-workflow-job-logs -octokit.actions.listWorkflowJobLogs({ owner, repo, job_id }); - -// https://developer.github.com/v3/actions/self_hosted_runners/#list-self-hosted-runners-for-a-repository -octokit.actions.listSelfHostedRunnersForRepo({ owner, repo }); - -// https://developer.github.com/v3/actions/self_hosted_runners/#list-downloads-for-the-self-hosted-runner-application -octokit.actions.listDownloadsForSelfHostedRunnerApplication({ owner, repo }); - -// https://developer.github.com/v3/actions/self_hosted_runners/#create-a-registration-token -octokit.actions.createRegistrationToken({ owner, repo }); - -// https://developer.github.com/v3/actions/self_hosted_runners/#create-a-remove-token -octokit.actions.createRemoveToken({ owner, repo }); - -// https://developer.github.com/v3/actions/self_hosted_runners/#get-a-self-hosted-runner -octokit.actions.getSelfHostedRunner({ owner, repo, runner_id }); - -// https://developer.github.com/v3/actions/self_hosted_runners/#remove-a-self-hosted-runner -octokit.actions.removeSelfHostedRunner({ owner, repo, runner_id }); - -// https://developer.github.com/v3/actions/workflow_runs/#list-repository-workflow-runs -octokit.actions.listRepoWorkflowRuns({ - owner, - repo, - actor, - branch, - event, - status -}); - -// https://developer.github.com/v3/actions/workflow_runs/#get-a-workflow-run -octokit.actions.getWorkflowRun({ owner, repo, run_id }); - -// https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts -octokit.actions.listWorkflowRunArtifacts({ owner, repo, run_id }); - -// https://developer.github.com/v3/actions/workflow_runs/#cancel-a-workflow-run -octokit.actions.cancelWorkflowRun({ owner, repo, run_id }); - -// https://developer.github.com/v3/actions/workflow_jobs/#list-jobs-for-a-workflow-run -octokit.actions.listJobsForWorkflowRun({ owner, repo, run_id }); - -// https://developer.github.com/v3/actions/workflow_runs/#list-workflow-run-logs -octokit.actions.listWorkflowRunLogs({ owner, repo, run_id }); - -// https://developer.github.com/v3/actions/workflow_runs/#re-run-a-workflow -octokit.actions.reRunWorkflow({ owner, repo, run_id }); - -// https://developer.github.com/v3/actions/secrets/#list-secrets-for-a-repository -octokit.actions.listSecretsForRepo({ owner, repo }); - -// https://developer.github.com/v3/actions/secrets/#get-your-public-key -octokit.actions.getPublicKey({ owner, repo }); - -// https://developer.github.com/v3/actions/secrets/#get-a-secret -octokit.actions.getSecret({ owner, repo, name }); - -// https://developer.github.com/v3/actions/secrets/#create-or-update-a-secret-for-a-repository -octokit.actions.createOrUpdateSecretForRepo({ - owner, - repo, - name, - encrypted_value, - key_id -}); - -// https://developer.github.com/v3/actions/secrets/#delete-a-secret-from-a-repository -octokit.actions.deleteSecretFromRepo({ owner, repo, name }); - -// https://developer.github.com/v3/actions/workflows/#list-repository-workflows -octokit.actions.listRepoWorkflows({ owner, repo }); - -// https://developer.github.com/v3/actions/workflows/#get-a-workflow -octokit.actions.getWorkflow({ owner, repo, workflow_id }); - -// https://developer.github.com/v3/actions/workflow_runs/#list-workflow-runs -octokit.actions.listWorkflowRuns({ - owner, - repo, - workflow_id, - actor, - branch, - event, - status -}); - -// https://developer.github.com/v3/issues/assignees/#list-assignees -octokit.issues.listAssignees({ owner, repo }); - -// https://developer.github.com/v3/issues/assignees/#check-assignee -octokit.issues.checkAssignee({ owner, repo, assignee }); - -// https://developer.github.com/v3/repos/#enable-automated-security-fixes -octokit.repos.enableAutomatedSecurityFixes({ owner, repo }); - -// https://developer.github.com/v3/repos/#disable-automated-security-fixes -octokit.repos.disableAutomatedSecurityFixes({ owner, repo }); - -// https://developer.github.com/v3/repos/branches/#list-branches -octokit.repos.listBranches({ owner, repo, protected }); - -// https://developer.github.com/v3/repos/branches/#get-branch -octokit.repos.getBranch({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#get-branch-protection -octokit.repos.getBranchProtection({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#update-branch-protection -octokit.repos.updateBranchProtection({ - owner, - repo, - branch, - required_status_checks, - enforce_admins, - required_pull_request_reviews, - restrictions, - required_linear_history, - allow_force_pushes, - allow_deletions -}); - -// https://developer.github.com/v3/repos/branches/#remove-branch-protection -octokit.repos.removeBranchProtection({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#get-admin-enforcement-of-protected-branch -octokit.repos.getProtectedBranchAdminEnforcement({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#add-admin-enforcement-of-protected-branch -octokit.repos.addProtectedBranchAdminEnforcement({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#remove-admin-enforcement-of-protected-branch -octokit.repos.removeProtectedBranchAdminEnforcement({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch -octokit.repos.getProtectedBranchPullRequestReviewEnforcement({ - owner, - repo, - branch -}); - -// https://developer.github.com/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch -octokit.repos.updateProtectedBranchPullRequestReviewEnforcement({ - owner, - repo, - branch, - dismissal_restrictions, - dismiss_stale_reviews, - require_code_owner_reviews, - required_approving_review_count -}); - -// https://developer.github.com/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch -octokit.repos.removeProtectedBranchPullRequestReviewEnforcement({ - owner, - repo, - branch -}); - -// https://developer.github.com/v3/repos/branches/#get-required-signatures-of-protected-branch -octokit.repos.getProtectedBranchRequiredSignatures({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#add-required-signatures-of-protected-branch -octokit.repos.addProtectedBranchRequiredSignatures({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#remove-required-signatures-of-protected-branch -octokit.repos.removeProtectedBranchRequiredSignatures({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#get-required-status-checks-of-protected-branch -octokit.repos.getProtectedBranchRequiredStatusChecks({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#update-required-status-checks-of-protected-branch -octokit.repos.updateProtectedBranchRequiredStatusChecks({ - owner, - repo, - branch, - strict, - contexts -}); - -// https://developer.github.com/v3/repos/branches/#remove-required-status-checks-of-protected-branch -octokit.repos.removeProtectedBranchRequiredStatusChecks({ - owner, - repo, - branch -}); - -// https://developer.github.com/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch -octokit.repos.listProtectedBranchRequiredStatusChecksContexts({ - owner, - repo, - branch -}); - -// https://developer.github.com/v3/repos/branches/#replace-required-status-checks-contexts-of-protected-branch -octokit.repos.replaceProtectedBranchRequiredStatusChecksContexts({ - owner, - repo, - branch, - contexts -}); - -// https://developer.github.com/v3/repos/branches/#add-required-status-checks-contexts-of-protected-branch -octokit.repos.addProtectedBranchRequiredStatusChecksContexts({ - owner, - repo, - branch, - contexts -}); - -// https://developer.github.com/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch -octokit.repos.removeProtectedBranchRequiredStatusChecksContexts({ - owner, - repo, - branch, - contexts -}); - -// https://developer.github.com/v3/repos/branches/#get-restrictions-of-protected-branch -octokit.repos.getProtectedBranchRestrictions({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#remove-restrictions-of-protected-branch -octokit.repos.removeProtectedBranchRestrictions({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#list-apps-with-access-to-protected-branch -octokit.repos.getAppsWithAccessToProtectedBranch({ owner, repo, branch }); - -// DEPRECATED: octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() -octokit.repos.listAppsWithAccessToProtectedBranch({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#replace-app-restrictions-of-protected-branch -octokit.repos.replaceProtectedBranchAppRestrictions({ - owner, - repo, - branch, - apps -}); - -// https://developer.github.com/v3/repos/branches/#add-app-restrictions-of-protected-branch -octokit.repos.addProtectedBranchAppRestrictions({ owner, repo, branch, apps }); - -// https://developer.github.com/v3/repos/branches/#remove-app-restrictions-of-protected-branch -octokit.repos.removeProtectedBranchAppRestrictions({ - owner, - repo, - branch, - apps -}); - -// https://developer.github.com/v3/repos/branches/#list-teams-with-access-to-protected-branch -octokit.repos.getTeamsWithAccessToProtectedBranch({ owner, repo, branch }); - -// DEPRECATED: octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() -octokit.repos.listProtectedBranchTeamRestrictions({ owner, repo, branch }); - -// DEPRECATED: octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() -octokit.repos.listTeamsWithAccessToProtectedBranch({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#replace-team-restrictions-of-protected-branch -octokit.repos.replaceProtectedBranchTeamRestrictions({ - owner, - repo, - branch, - teams -}); - -// https://developer.github.com/v3/repos/branches/#add-team-restrictions-of-protected-branch -octokit.repos.addProtectedBranchTeamRestrictions({ - owner, - repo, - branch, - teams -}); - -// https://developer.github.com/v3/repos/branches/#remove-team-restrictions-of-protected-branch -octokit.repos.removeProtectedBranchTeamRestrictions({ - owner, - repo, - branch, - teams -}); - -// https://developer.github.com/v3/repos/branches/#list-users-with-access-to-protected-branch -octokit.repos.getUsersWithAccessToProtectedBranch({ owner, repo, branch }); - -// DEPRECATED: octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() -octokit.repos.listProtectedBranchUserRestrictions({ owner, repo, branch }); - -// DEPRECATED: octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() -octokit.repos.listUsersWithAccessToProtectedBranch({ owner, repo, branch }); - -// https://developer.github.com/v3/repos/branches/#replace-user-restrictions-of-protected-branch -octokit.repos.replaceProtectedBranchUserRestrictions({ - owner, - repo, - branch, - users -}); - -// https://developer.github.com/v3/repos/branches/#add-user-restrictions-of-protected-branch -octokit.repos.addProtectedBranchUserRestrictions({ - owner, - repo, - branch, - users -}); - -// https://developer.github.com/v3/repos/branches/#remove-user-restrictions-of-protected-branch -octokit.repos.removeProtectedBranchUserRestrictions({ - owner, - repo, - branch, - users -}); - -// https://developer.github.com/v3/checks/runs/#create-a-check-run -octokit.checks.create({ - owner, - repo, - name, - head_sha, - details_url, - external_id, - status, - started_at, - conclusion, - completed_at, - output, - actions -}); - -// https://developer.github.com/v3/checks/runs/#update-a-check-run -octokit.checks.update({ - owner, - repo, - check_run_id, - name, - details_url, - external_id, - started_at, - status, - conclusion, - completed_at, - output, - actions -}); - -// https://developer.github.com/v3/checks/runs/#get-a-single-check-run -octokit.checks.get({ owner, repo, check_run_id }); - -// https://developer.github.com/v3/checks/runs/#list-annotations-for-a-check-run -octokit.checks.listAnnotations({ owner, repo, check_run_id }); - -// https://developer.github.com/v3/checks/suites/#create-a-check-suite -octokit.checks.createSuite({ owner, repo, head_sha }); - -// https://developer.github.com/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository -octokit.checks.setSuitesPreferences({ owner, repo, auto_trigger_checks }); - -// https://developer.github.com/v3/checks/suites/#get-a-single-check-suite -octokit.checks.getSuite({ owner, repo, check_suite_id }); - -// https://developer.github.com/v3/checks/runs/#list-check-runs-in-a-check-suite -octokit.checks.listForSuite({ - owner, - repo, - check_suite_id, - check_name, - status, - filter -}); - -// https://developer.github.com/v3/checks/suites/#rerequest-check-suite -octokit.checks.rerequestSuite({ owner, repo, check_suite_id }); - -// https://developer.github.com/v3/repos/collaborators/#list-collaborators -octokit.repos.listCollaborators({ owner, repo, affiliation }); - -// https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator -octokit.repos.checkCollaborator({ owner, repo, username }); - -// https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator -octokit.repos.addCollaborator({ owner, repo, username, permission }); - -// https://developer.github.com/v3/repos/collaborators/#remove-user-as-a-collaborator -octokit.repos.removeCollaborator({ owner, repo, username }); - -// https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level -octokit.repos.getCollaboratorPermissionLevel({ owner, repo, username }); - -// https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository -octokit.repos.listCommitComments({ owner, repo }); - -// https://developer.github.com/v3/repos/comments/#get-a-single-commit-comment -octokit.repos.getCommitComment({ owner, repo, comment_id }); - -// https://developer.github.com/v3/repos/comments/#update-a-commit-comment -octokit.repos.updateCommitComment({ owner, repo, comment_id, body }); - -// https://developer.github.com/v3/repos/comments/#delete-a-commit-comment -octokit.repos.deleteCommitComment({ owner, repo, comment_id }); - -// https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment -octokit.reactions.listForCommitComment({ owner, repo, comment_id, content }); - -// https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment -octokit.reactions.createForCommitComment({ owner, repo, comment_id, content }); - -// https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository -octokit.repos.listCommits({ owner, repo, sha, path, author, since, until }); - -// https://developer.github.com/v3/repos/commits/#list-branches-for-head-commit -octokit.repos.listBranchesForHeadCommit({ owner, repo, commit_sha }); - -// https://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit -octokit.repos.listCommentsForCommit({ owner, repo, commit_sha }); - -// https://developer.github.com/v3/repos/comments/#create-a-commit-comment -octokit.repos.createCommitComment({ - owner, - repo, - commit_sha, - body, - path, - position, - line -}); - -// https://developer.github.com/v3/repos/commits/#list-pull-requests-associated-with-commit -octokit.repos.listPullRequestsAssociatedWithCommit({ owner, repo, commit_sha }); - -// https://developer.github.com/v3/repos/commits/#get-a-single-commit -octokit.repos.getCommit({ owner, repo, ref }); - -// https://developer.github.com/v3/checks/runs/#list-check-runs-for-a-specific-ref -octokit.checks.listForRef({ owner, repo, ref, check_name, status, filter }); - -// https://developer.github.com/v3/checks/suites/#list-check-suites-for-a-specific-ref -octokit.checks.listSuitesForRef({ owner, repo, ref, app_id, check_name }); - -// https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref -octokit.repos.getCombinedStatusForRef({ owner, repo, ref }); - -// https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref -octokit.repos.listStatusesForRef({ owner, repo, ref }); - -// https://developer.github.com/v3/codes_of_conduct/#get-the-contents-of-a-repositorys-code-of-conduct -octokit.codesOfConduct.getForRepo({ owner, repo }); - -// https://developer.github.com/v3/repos/community/#retrieve-community-profile-metrics -octokit.repos.retrieveCommunityProfileMetrics({ owner, repo }); - -// https://developer.github.com/v3/repos/commits/#compare-two-commits -octokit.repos.compareCommits({ owner, repo, base, head }); - -// https://developer.github.com/v3/repos/contents/#get-contents -octokit.repos.getContents({ owner, repo, path, ref }); - -// https://developer.github.com/v3/repos/contents/#create-or-update-a-file -octokit.repos.createOrUpdateFile({ - owner, - repo, - path, - message, - content, - sha, - branch, - committer, - author -}); - -// DEPRECATED: octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() -octokit.repos.createFile({ - owner, - repo, - path, - message, - content, - sha, - branch, - committer, - author -}); - -// DEPRECATED: octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() -octokit.repos.updateFile({ - owner, - repo, - path, - message, - content, - sha, - branch, - committer, - author -}); - -// https://developer.github.com/v3/repos/contents/#delete-a-file -octokit.repos.deleteFile({ - owner, - repo, - path, - message, - sha, - branch, - committer, - author -}); - -// https://developer.github.com/v3/repos/#list-contributors -octokit.repos.listContributors({ owner, repo, anon }); - -// https://developer.github.com/v3/repos/deployments/#list-deployments -octokit.repos.listDeployments({ owner, repo, sha, ref, task, environment }); - -// https://developer.github.com/v3/repos/deployments/#create-a-deployment -octokit.repos.createDeployment({ - owner, - repo, - ref, - task, - auto_merge, - required_contexts, - payload, - environment, - description, - transient_environment, - production_environment -}); - -// https://developer.github.com/v3/repos/deployments/#get-a-single-deployment -octokit.repos.getDeployment({ owner, repo, deployment_id }); - -// https://developer.github.com/v3/repos/deployments/#list-deployment-statuses -octokit.repos.listDeploymentStatuses({ owner, repo, deployment_id }); - -// https://developer.github.com/v3/repos/deployments/#create-a-deployment-status -octokit.repos.createDeploymentStatus({ - owner, - repo, - deployment_id, - state, - target_url, - log_url, - description, - environment, - environment_url, - auto_inactive -}); - -// https://developer.github.com/v3/repos/deployments/#get-a-single-deployment-status -octokit.repos.getDeploymentStatus({ owner, repo, deployment_id, status_id }); - -// https://developer.github.com/v3/repos/#create-a-repository-dispatch-event -octokit.repos.createDispatchEvent({ owner, repo, event_type, client_payload }); - -// https://developer.github.com/v3/repos/downloads/#list-downloads-for-a-repository -octokit.repos.listDownloads({ owner, repo }); - -// https://developer.github.com/v3/repos/downloads/#get-a-single-download -octokit.repos.getDownload({ owner, repo, download_id }); - -// https://developer.github.com/v3/repos/downloads/#delete-a-download -octokit.repos.deleteDownload({ owner, repo, download_id }); - -// https://developer.github.com/v3/activity/events/#list-repository-events -octokit.activity.listRepoEvents({ owner, repo }); - -// https://developer.github.com/v3/repos/forks/#list-forks -octokit.repos.listForks({ owner, repo, sort }); - -// https://developer.github.com/v3/repos/forks/#create-a-fork -octokit.repos.createFork({ owner, repo, organization }); - -// https://developer.github.com/v3/git/blobs/#create-a-blob -octokit.git.createBlob({ owner, repo, content, encoding }); - -// https://developer.github.com/v3/git/blobs/#get-a-blob -octokit.git.getBlob({ owner, repo, file_sha }); - -// https://developer.github.com/v3/git/commits/#create-a-commit -octokit.git.createCommit({ - owner, - repo, - message, - tree, - parents, - author, - committer, - signature -}); - -// https://developer.github.com/v3/git/commits/#get-a-commit -octokit.git.getCommit({ owner, repo, commit_sha }); - -// https://developer.github.com/v3/git/refs/#list-matching-references -octokit.git.listMatchingRefs({ owner, repo, ref }); - -// https://developer.github.com/v3/git/refs/#get-a-single-reference -octokit.git.getRef({ owner, repo, ref }); - -// https://developer.github.com/v3/git/refs/#create-a-reference -octokit.git.createRef({ owner, repo, ref, sha }); - -// https://developer.github.com/v3/git/refs/#update-a-reference -octokit.git.updateRef({ owner, repo, ref, sha, force }); - -// https://developer.github.com/v3/git/refs/#delete-a-reference -octokit.git.deleteRef({ owner, repo, ref }); - -// https://developer.github.com/v3/git/tags/#create-a-tag-object -octokit.git.createTag({ owner, repo, tag, message, object, type, tagger }); - -// https://developer.github.com/v3/git/tags/#get-a-tag -octokit.git.getTag({ owner, repo, tag_sha }); - -// https://developer.github.com/v3/git/trees/#create-a-tree -octokit.git.createTree({ owner, repo, tree, base_tree }); - -// https://developer.github.com/v3/git/trees/#get-a-tree -octokit.git.getTree({ owner, repo, tree_sha, recursive }); - -// https://developer.github.com/v3/repos/hooks/#list-hooks -octokit.repos.listHooks({ owner, repo }); - -// https://developer.github.com/v3/repos/hooks/#create-a-hook -octokit.repos.createHook({ owner, repo, name, config, events, active }); - -// https://developer.github.com/v3/repos/hooks/#get-single-hook -octokit.repos.getHook({ owner, repo, hook_id }); - -// https://developer.github.com/v3/repos/hooks/#edit-a-hook -octokit.repos.updateHook({ - owner, - repo, - hook_id, - config, - events, - add_events, - remove_events, - active -}); - -// https://developer.github.com/v3/repos/hooks/#delete-a-hook -octokit.repos.deleteHook({ owner, repo, hook_id }); - -// https://developer.github.com/v3/repos/hooks/#ping-a-hook -octokit.repos.pingHook({ owner, repo, hook_id }); - -// https://developer.github.com/v3/repos/hooks/#test-a-push-hook -octokit.repos.testPushHook({ owner, repo, hook_id }); - -// https://developer.github.com/v3/migrations/source_imports/#start-an-import -octokit.migrations.startImport({ - owner, - repo, - vcs_url, - vcs, - vcs_username, - vcs_password, - tfvc_project -}); - -// https://developer.github.com/v3/migrations/source_imports/#get-import-progress -octokit.migrations.getImportProgress({ owner, repo }); - -// https://developer.github.com/v3/migrations/source_imports/#update-existing-import -octokit.migrations.updateImport({ owner, repo, vcs_username, vcs_password }); - -// https://developer.github.com/v3/migrations/source_imports/#cancel-an-import -octokit.migrations.cancelImport({ owner, repo }); - -// https://developer.github.com/v3/migrations/source_imports/#get-commit-authors -octokit.migrations.getCommitAuthors({ owner, repo, since }); - -// https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author -octokit.migrations.mapCommitAuthor({ owner, repo, author_id, email, name }); - -// https://developer.github.com/v3/migrations/source_imports/#get-large-files -octokit.migrations.getLargeFiles({ owner, repo }); - -// https://developer.github.com/v3/migrations/source_imports/#set-git-lfs-preference -octokit.migrations.setLfsPreference({ owner, repo, use_lfs }); - -// https://developer.github.com/v3/apps/#get-a-repository-installation -octokit.apps.getRepoInstallation({ owner, repo }); - -// DEPRECATED: octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() -octokit.apps.findRepoInstallation({ owner, repo }); - -// https://developer.github.com/v3/interactions/repos/#get-interaction-restrictions-for-a-repository -octokit.interactions.getRestrictionsForRepo({ owner, repo }); - -// https://developer.github.com/v3/interactions/repos/#add-or-update-interaction-restrictions-for-a-repository -octokit.interactions.addOrUpdateRestrictionsForRepo({ owner, repo, limit }); - -// https://developer.github.com/v3/interactions/repos/#remove-interaction-restrictions-for-a-repository -octokit.interactions.removeRestrictionsForRepo({ owner, repo }); - -// https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository -octokit.repos.listInvitations({ owner, repo }); - -// https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation -octokit.repos.deleteInvitation({ owner, repo, invitation_id }); - -// https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation -octokit.repos.updateInvitation({ owner, repo, invitation_id, permissions }); - -// https://developer.github.com/v3/issues/#list-issues-for-a-repository -octokit.issues.listForRepo({ - owner, - repo, - milestone, - state, - assignee, - creator, - mentioned, - labels, - sort, - direction, - since -}); - -// https://developer.github.com/v3/issues/#create-an-issue -octokit.issues.create({ - owner, - repo, - title, - body, - assignee, - milestone, - labels, - assignees -}); - -// https://developer.github.com/v3/issues/comments/#list-comments-in-a-repository -octokit.issues.listCommentsForRepo({ owner, repo, sort, direction, since }); - -// https://developer.github.com/v3/issues/comments/#get-a-single-comment -octokit.issues.getComment({ owner, repo, comment_id }); - -// https://developer.github.com/v3/issues/comments/#edit-a-comment -octokit.issues.updateComment({ owner, repo, comment_id, body }); - -// https://developer.github.com/v3/issues/comments/#delete-a-comment -octokit.issues.deleteComment({ owner, repo, comment_id }); - -// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment -octokit.reactions.listForIssueComment({ owner, repo, comment_id, content }); - -// https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment -octokit.reactions.createForIssueComment({ owner, repo, comment_id, content }); - -// https://developer.github.com/v3/issues/events/#list-events-for-a-repository -octokit.issues.listEventsForRepo({ owner, repo }); - -// https://developer.github.com/v3/issues/events/#get-a-single-event -octokit.issues.getEvent({ owner, repo, event_id }); - -// https://developer.github.com/v3/issues/#get-a-single-issue -octokit.issues.get({ owner, repo, issue_number }); - -// https://developer.github.com/v3/issues/#edit-an-issue -octokit.issues.update({ - owner, - repo, - issue_number, - title, - body, - assignee, - state, - milestone, - labels, - assignees -}); - -// https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue -octokit.issues.addAssignees({ owner, repo, issue_number, assignees }); - -// https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue -octokit.issues.removeAssignees({ owner, repo, issue_number, assignees }); - -// https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue -octokit.issues.listComments({ owner, repo, issue_number, since }); - -// https://developer.github.com/v3/issues/comments/#create-a-comment -octokit.issues.createComment({ owner, repo, issue_number, body }); - -// https://developer.github.com/v3/issues/events/#list-events-for-an-issue -octokit.issues.listEvents({ owner, repo, issue_number }); - -// https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue -octokit.issues.listLabelsOnIssue({ owner, repo, issue_number }); - -// https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue -octokit.issues.addLabels({ owner, repo, issue_number, labels }); - -// https://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue -octokit.issues.replaceLabels({ owner, repo, issue_number, labels }); - -// https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue -octokit.issues.removeLabels({ owner, repo, issue_number }); - -// https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue -octokit.issues.removeLabel({ owner, repo, issue_number, name }); - -// https://developer.github.com/v3/issues/#lock-an-issue -octokit.issues.lock({ owner, repo, issue_number, lock_reason }); - -// https://developer.github.com/v3/issues/#unlock-an-issue -octokit.issues.unlock({ owner, repo, issue_number }); - -// https://developer.github.com/v3/reactions/#list-reactions-for-an-issue -octokit.reactions.listForIssue({ owner, repo, issue_number, content }); - -// https://developer.github.com/v3/reactions/#create-reaction-for-an-issue -octokit.reactions.createForIssue({ owner, repo, issue_number, content }); - -// https://developer.github.com/v3/issues/timeline/#list-events-for-an-issue -octokit.issues.listEventsForTimeline({ owner, repo, issue_number }); - -// https://developer.github.com/v3/repos/keys/#list-deploy-keys -octokit.repos.listDeployKeys({ owner, repo }); - -// https://developer.github.com/v3/repos/keys/#add-a-new-deploy-key -octokit.repos.addDeployKey({ owner, repo, title, key, read_only }); - -// https://developer.github.com/v3/repos/keys/#get-a-deploy-key -octokit.repos.getDeployKey({ owner, repo, key_id }); - -// https://developer.github.com/v3/repos/keys/#remove-a-deploy-key -octokit.repos.removeDeployKey({ owner, repo, key_id }); - -// https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository -octokit.issues.listLabelsForRepo({ owner, repo }); - -// https://developer.github.com/v3/issues/labels/#create-a-label -octokit.issues.createLabel({ owner, repo, name, color, description }); - -// https://developer.github.com/v3/issues/labels/#get-a-single-label -octokit.issues.getLabel({ owner, repo, name }); - -// https://developer.github.com/v3/issues/labels/#update-a-label -octokit.issues.updateLabel({ owner, repo, name, new_name, color, description }); - -// https://developer.github.com/v3/issues/labels/#delete-a-label -octokit.issues.deleteLabel({ owner, repo, name }); - -// https://developer.github.com/v3/repos/#list-languages -octokit.repos.listLanguages({ owner, repo }); - -// https://developer.github.com/v3/licenses/#get-the-contents-of-a-repositorys-license -octokit.licenses.getForRepo({ owner, repo }); - -// https://developer.github.com/v3/repos/merging/#perform-a-merge -octokit.repos.merge({ owner, repo, base, head, commit_message }); - -// https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository -octokit.issues.listMilestonesForRepo({ owner, repo, state, sort, direction }); - -// https://developer.github.com/v3/issues/milestones/#create-a-milestone -octokit.issues.createMilestone({ - owner, - repo, - title, - state, - description, - due_on -}); - -// https://developer.github.com/v3/issues/milestones/#get-a-single-milestone -octokit.issues.getMilestone({ owner, repo, milestone_number }); - -// https://developer.github.com/v3/issues/milestones/#update-a-milestone -octokit.issues.updateMilestone({ - owner, - repo, - milestone_number, - title, - state, - description, - due_on -}); - -// https://developer.github.com/v3/issues/milestones/#delete-a-milestone -octokit.issues.deleteMilestone({ owner, repo, milestone_number }); - -// https://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone -octokit.issues.listLabelsForMilestone({ owner, repo, milestone_number }); - -// https://developer.github.com/v3/activity/notifications/#list-your-notifications-in-a-repository -octokit.activity.listNotificationsForRepo({ - owner, - repo, - all, - participating, - since, - before -}); - -// https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository -octokit.activity.markNotificationsAsReadForRepo({ owner, repo, last_read_at }); - -// https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site -octokit.repos.getPages({ owner, repo }); - -// https://developer.github.com/v3/repos/pages/#enable-a-pages-site -octokit.repos.enablePagesSite({ owner, repo, source }); - -// https://developer.github.com/v3/repos/pages/#disable-a-pages-site -octokit.repos.disablePagesSite({ owner, repo }); - -// https://developer.github.com/v3/repos/pages/#update-information-about-a-pages-site -octokit.repos.updateInformationAboutPagesSite({ owner, repo, cname, source }); - -// https://developer.github.com/v3/repos/pages/#request-a-page-build -octokit.repos.requestPageBuild({ owner, repo }); - -// https://developer.github.com/v3/repos/pages/#list-pages-builds -octokit.repos.listPagesBuilds({ owner, repo }); - -// https://developer.github.com/v3/repos/pages/#get-latest-pages-build -octokit.repos.getLatestPagesBuild({ owner, repo }); - -// https://developer.github.com/v3/repos/pages/#get-a-specific-pages-build -octokit.repos.getPagesBuild({ owner, repo, build_id }); - -// https://developer.github.com/v3/projects/#list-repository-projects -octokit.projects.listForRepo({ owner, repo, state }); - -// https://developer.github.com/v3/projects/#create-a-repository-project -octokit.projects.createForRepo({ owner, repo, name, body }); - -// https://developer.github.com/v3/pulls/#list-pull-requests -octokit.pulls.list({ owner, repo, state, head, base, sort, direction }); - -// https://developer.github.com/v3/pulls/#create-a-pull-request -octokit.pulls.create({ - owner, - repo, - title, - head, - base, - body, - maintainer_can_modify, - draft -}); - -// https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository -octokit.pulls.listCommentsForRepo({ owner, repo, sort, direction, since }); - -// https://developer.github.com/v3/pulls/comments/#get-a-single-comment -octokit.pulls.getComment({ owner, repo, comment_id }); - -// https://developer.github.com/v3/pulls/comments/#edit-a-comment -octokit.pulls.updateComment({ owner, repo, comment_id, body }); - -// https://developer.github.com/v3/pulls/comments/#delete-a-comment -octokit.pulls.deleteComment({ owner, repo, comment_id }); - -// https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment -octokit.reactions.listForPullRequestReviewComment({ - owner, - repo, - comment_id, - content -}); - -// https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment -octokit.reactions.createForPullRequestReviewComment({ - owner, - repo, - comment_id, - content -}); - -// https://developer.github.com/v3/pulls/#get-a-single-pull-request -octokit.pulls.get({ owner, repo, pull_number }); - -// https://developer.github.com/v3/pulls/#update-a-pull-request -octokit.pulls.update({ - owner, - repo, - pull_number, - title, - body, - state, - base, - maintainer_can_modify -}); - -// https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request -octokit.pulls.listComments({ - owner, - repo, - pull_number, - sort, - direction, - since -}); - -// https://developer.github.com/v3/pulls/comments/#create-a-comment -octokit.pulls.createComment({ - owner, - repo, - pull_number, - body, - commit_id, - path, - position, - side, - line, - start_line, - start_side, - in_reply_to -}); - -// DEPRECATED: octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() -octokit.pulls.createCommentReply({ - owner, - repo, - pull_number, - body, - commit_id, - path, - position, - side, - line, - start_line, - start_side, - in_reply_to -}); - -// https://developer.github.com/v3/pulls/comments/#create-a-review-comment-reply -octokit.pulls.createReviewCommentReply({ - owner, - repo, - pull_number, - comment_id, - body -}); - -// https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request -octokit.pulls.listCommits({ owner, repo, pull_number }); - -// https://developer.github.com/v3/pulls/#list-pull-requests-files -octokit.pulls.listFiles({ owner, repo, pull_number }); - -// https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged -octokit.pulls.checkIfMerged({ owner, repo, pull_number }); - -// https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button -octokit.pulls.merge({ - owner, - repo, - pull_number, - commit_title, - commit_message, - sha, - merge_method -}); - -// https://developer.github.com/v3/pulls/review_requests/#list-review-requests -octokit.pulls.listReviewRequests({ owner, repo, pull_number }); - -// https://developer.github.com/v3/pulls/review_requests/#create-a-review-request -octokit.pulls.createReviewRequest({ - owner, - repo, - pull_number, - reviewers, - team_reviewers -}); - -// https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request -octokit.pulls.deleteReviewRequest({ - owner, - repo, - pull_number, - reviewers, - team_reviewers -}); - -// https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request -octokit.pulls.listReviews({ owner, repo, pull_number }); - -// https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review -octokit.pulls.createReview({ - owner, - repo, - pull_number, - commit_id, - body, - event, - comments -}); - -// https://developer.github.com/v3/pulls/reviews/#get-a-single-review -octokit.pulls.getReview({ owner, repo, pull_number, review_id }); - -// https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review -octokit.pulls.deletePendingReview({ owner, repo, pull_number, review_id }); - -// https://developer.github.com/v3/pulls/reviews/#update-a-pull-request-review -octokit.pulls.updateReview({ owner, repo, pull_number, review_id, body }); - -// https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review -octokit.pulls.getCommentsForReview({ owner, repo, pull_number, review_id }); - -// https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review -octokit.pulls.dismissReview({ owner, repo, pull_number, review_id, message }); - -// https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review -octokit.pulls.submitReview({ - owner, - repo, - pull_number, - review_id, - body, - event -}); - -// https://developer.github.com/v3/pulls/#update-a-pull-request-branch -octokit.pulls.updateBranch({ owner, repo, pull_number, expected_head_sha }); - -// https://developer.github.com/v3/repos/contents/#get-the-readme -octokit.repos.getReadme({ owner, repo, ref }); - -// https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository -octokit.repos.listReleases({ owner, repo }); - -// https://developer.github.com/v3/repos/releases/#create-a-release -octokit.repos.createRelease({ - owner, - repo, - tag_name, - target_commitish, - name, - body, - draft, - prerelease -}); - -// https://developer.github.com/v3/repos/releases/#get-a-single-release-asset -octokit.repos.getReleaseAsset({ owner, repo, asset_id }); - -// https://developer.github.com/v3/repos/releases/#edit-a-release-asset -octokit.repos.updateReleaseAsset({ owner, repo, asset_id, name, label }); - -// https://developer.github.com/v3/repos/releases/#delete-a-release-asset -octokit.repos.deleteReleaseAsset({ owner, repo, asset_id }); - -// https://developer.github.com/v3/repos/releases/#get-the-latest-release -octokit.repos.getLatestRelease({ owner, repo }); - -// https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name -octokit.repos.getReleaseByTag({ owner, repo, tag }); - -// https://developer.github.com/v3/repos/releases/#get-a-single-release -octokit.repos.getRelease({ owner, repo, release_id }); - -// https://developer.github.com/v3/repos/releases/#edit-a-release -octokit.repos.updateRelease({ - owner, - repo, - release_id, - tag_name, - target_commitish, - name, - body, - draft, - prerelease -}); - -// https://developer.github.com/v3/repos/releases/#delete-a-release -octokit.repos.deleteRelease({ owner, repo, release_id }); - -// https://developer.github.com/v3/repos/releases/#list-assets-for-a-release -octokit.repos.listAssetsForRelease({ owner, repo, release_id }); - -// https://developer.github.com/v3/repos/releases/#upload-a-release-asset -octokit.repos.uploadReleaseAsset({ - owner, - repo, - release_id, - name, - label, - data, - origin -}); - -// https://developer.github.com/v3/activity/starring/#list-stargazers -octokit.activity.listStargazersForRepo({ owner, repo }); - -// https://developer.github.com/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week -octokit.repos.getCodeFrequencyStats({ owner, repo }); - -// https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data -octokit.repos.getCommitActivityStats({ owner, repo }); - -// https://developer.github.com/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts -octokit.repos.getContributorsStats({ owner, repo }); - -// https://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repository-owner-and-everyone-else -octokit.repos.getParticipationStats({ owner, repo }); - -// https://developer.github.com/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day -octokit.repos.getPunchCardStats({ owner, repo }); - -// https://developer.github.com/v3/repos/statuses/#create-a-status -octokit.repos.createStatus({ - owner, - repo, - sha, - state, - target_url, - description, - context -}); - -// https://developer.github.com/v3/activity/watching/#list-watchers -octokit.activity.listWatchersForRepo({ owner, repo }); - -// https://developer.github.com/v3/activity/watching/#get-a-repository-subscription -octokit.activity.getRepoSubscription({ owner, repo }); - -// https://developer.github.com/v3/activity/watching/#set-a-repository-subscription -octokit.activity.setRepoSubscription({ owner, repo, subscribed, ignored }); - -// https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription -octokit.activity.deleteRepoSubscription({ owner, repo }); - -// https://developer.github.com/v3/repos/#list-tags -octokit.repos.listTags({ owner, repo }); - -// https://developer.github.com/v3/repos/#list-teams -octokit.repos.listTeams({ owner, repo }); - -// https://developer.github.com/v3/repos/#list-all-topics-for-a-repository -octokit.repos.listTopics({ owner, repo }); - -// https://developer.github.com/v3/repos/#replace-all-topics-for-a-repository -octokit.repos.replaceTopics({ owner, repo, names }); - -// https://developer.github.com/v3/repos/traffic/#clones -octokit.repos.getClones({ owner, repo, per }); - -// https://developer.github.com/v3/repos/traffic/#list-paths -octokit.repos.getTopPaths({ owner, repo }); - -// https://developer.github.com/v3/repos/traffic/#list-referrers -octokit.repos.getTopReferrers({ owner, repo }); - -// https://developer.github.com/v3/repos/traffic/#views -octokit.repos.getViews({ owner, repo, per }); - -// https://developer.github.com/v3/repos/#transfer-a-repository -octokit.repos.transfer({ owner, repo, new_owner, team_ids }); - -// https://developer.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository -octokit.repos.checkVulnerabilityAlerts({ owner, repo }); - -// https://developer.github.com/v3/repos/#enable-vulnerability-alerts -octokit.repos.enableVulnerabilityAlerts({ owner, repo }); - -// https://developer.github.com/v3/repos/#disable-vulnerability-alerts -octokit.repos.disableVulnerabilityAlerts({ owner, repo }); - -// https://developer.github.com/v3/repos/contents/#get-archive-link -octokit.repos.getArchiveLink({ owner, repo, archive_format, ref }); - -// https://developer.github.com/v3/repos/#create-repository-using-a-repository-template -octokit.repos.createUsingTemplate({ - template_owner, - template_repo, - owner, - name, - description, - private -}); - -// https://developer.github.com/v3/repos/#list-all-public-repositories -octokit.repos.listPublic({ since }); - -// https://developer.github.com/v3/search/#search-code -octokit.search.code({ q, sort, order }); - -// https://developer.github.com/v3/search/#search-commits -octokit.search.commits({ q, sort, order }); - -// https://developer.github.com/v3/search/#search-issues-and-pull-requests -octokit.search.issuesAndPullRequests({ q, sort, order }); - -// DEPRECATED: octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() -octokit.search.issues({ q, sort, order }); - -// https://developer.github.com/v3/search/#search-labels -octokit.search.labels({ repository_id, q, sort, order }); - -// https://developer.github.com/v3/search/#search-repositories -octokit.search.repos({ q, sort, order }); - -// https://developer.github.com/v3/search/#search-topics -octokit.search.topics({ q }); - -// https://developer.github.com/v3/search/#search-users -octokit.search.users({ q, sort, order }); - -// https://developer.github.com/v3/teams/#get-team-legacy -octokit.teams.getLegacy({ team_id }); - -// DEPRECATED: octokit.teams.get() has been renamed to octokit.teams.getLegacy() -octokit.teams.get({ team_id }); - -// https://developer.github.com/v3/teams/#edit-team-legacy -octokit.teams.updateLegacy({ - team_id, - name, - description, - privacy, - permission, - parent_team_id -}); - -// DEPRECATED: octokit.teams.update() has been renamed to octokit.teams.updateLegacy() -octokit.teams.update({ - team_id, - name, - description, - privacy, - permission, - parent_team_id -}); - -// https://developer.github.com/v3/teams/#delete-team-legacy -octokit.teams.deleteLegacy({ team_id }); - -// DEPRECATED: octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() -octokit.teams.delete({ team_id }); - -// https://developer.github.com/v3/teams/discussions/#list-discussions-legacy -octokit.teams.listDiscussionsLegacy({ team_id, direction }); - -// DEPRECATED: octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() -octokit.teams.listDiscussions({ team_id, direction }); - -// https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy -octokit.teams.createDiscussionLegacy({ team_id, title, body, private }); - -// DEPRECATED: octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() -octokit.teams.createDiscussion({ team_id, title, body, private }); - -// https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy -octokit.teams.getDiscussionLegacy({ team_id, discussion_number }); - -// DEPRECATED: octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() -octokit.teams.getDiscussion({ team_id, discussion_number }); - -// https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy -octokit.teams.updateDiscussionLegacy({ - team_id, - discussion_number, - title, - body -}); - -// DEPRECATED: octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() -octokit.teams.updateDiscussion({ team_id, discussion_number, title, body }); - -// https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy -octokit.teams.deleteDiscussionLegacy({ team_id, discussion_number }); - -// DEPRECATED: octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() -octokit.teams.deleteDiscussion({ team_id, discussion_number }); - -// https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy -octokit.teams.listDiscussionCommentsLegacy({ - team_id, - discussion_number, - direction -}); - -// DEPRECATED: octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() -octokit.teams.listDiscussionComments({ team_id, discussion_number, direction }); - -// https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy -octokit.teams.createDiscussionCommentLegacy({ - team_id, - discussion_number, - body -}); - -// DEPRECATED: octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() -octokit.teams.createDiscussionComment({ team_id, discussion_number, body }); - -// https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy -octokit.teams.getDiscussionCommentLegacy({ - team_id, - discussion_number, - comment_number -}); - -// DEPRECATED: octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() -octokit.teams.getDiscussionComment({ - team_id, - discussion_number, - comment_number -}); - -// https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy -octokit.teams.updateDiscussionCommentLegacy({ - team_id, - discussion_number, - comment_number, - body -}); - -// DEPRECATED: octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() -octokit.teams.updateDiscussionComment({ - team_id, - discussion_number, - comment_number, - body -}); - -// https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy -octokit.teams.deleteDiscussionCommentLegacy({ - team_id, - discussion_number, - comment_number -}); - -// DEPRECATED: octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() -octokit.teams.deleteDiscussionComment({ - team_id, - discussion_number, - comment_number -}); - -// https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy -octokit.reactions.listForTeamDiscussionCommentLegacy({ - team_id, - discussion_number, - comment_number, - content -}); - -// DEPRECATED: octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() -octokit.reactions.listForTeamDiscussionComment({ - team_id, - discussion_number, - comment_number, - content -}); - -// https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy -octokit.reactions.createForTeamDiscussionCommentLegacy({ - team_id, - discussion_number, - comment_number, - content -}); - -// DEPRECATED: octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() -octokit.reactions.createForTeamDiscussionComment({ - team_id, - discussion_number, - comment_number, - content -}); - -// https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy -octokit.reactions.listForTeamDiscussionLegacy({ - team_id, - discussion_number, - content -}); - -// DEPRECATED: octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() -octokit.reactions.listForTeamDiscussion({ - team_id, - discussion_number, - content -}); - -// https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy -octokit.reactions.createForTeamDiscussionLegacy({ - team_id, - discussion_number, - content -}); - -// DEPRECATED: octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() -octokit.reactions.createForTeamDiscussion({ - team_id, - discussion_number, - content -}); - -// https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy -octokit.teams.listPendingInvitationsLegacy({ team_id }); - -// DEPRECATED: octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() -octokit.teams.listPendingInvitations({ team_id }); - -// https://developer.github.com/v3/teams/members/#list-team-members-legacy -octokit.teams.listMembersLegacy({ team_id, role }); - -// DEPRECATED: octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() -octokit.teams.listMembers({ team_id, role }); - -// https://developer.github.com/v3/teams/members/#get-team-member-legacy -octokit.teams.getMemberLegacy({ team_id, username }); - -// DEPRECATED: octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() -octokit.teams.getMember({ team_id, username }); - -// https://developer.github.com/v3/teams/members/#add-team-member-legacy -octokit.teams.addMemberLegacy({ team_id, username }); - -// DEPRECATED: octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() -octokit.teams.addMember({ team_id, username }); - -// https://developer.github.com/v3/teams/members/#remove-team-member-legacy -octokit.teams.removeMemberLegacy({ team_id, username }); - -// DEPRECATED: octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() -octokit.teams.removeMember({ team_id, username }); - -// https://developer.github.com/v3/teams/members/#get-team-membership-legacy -octokit.teams.getMembershipLegacy({ team_id, username }); - -// DEPRECATED: octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() -octokit.teams.getMembership({ team_id, username }); - -// https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy -octokit.teams.addOrUpdateMembershipLegacy({ team_id, username, role }); - -// DEPRECATED: octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() -octokit.teams.addOrUpdateMembership({ team_id, username, role }); - -// https://developer.github.com/v3/teams/members/#remove-team-membership-legacy -octokit.teams.removeMembershipLegacy({ team_id, username }); - -// DEPRECATED: octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() -octokit.teams.removeMembership({ team_id, username }); - -// https://developer.github.com/v3/teams/#list-team-projects-legacy -octokit.teams.listProjectsLegacy({ team_id }); - -// DEPRECATED: octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() -octokit.teams.listProjects({ team_id }); - -// https://developer.github.com/v3/teams/#review-a-team-project-legacy -octokit.teams.reviewProjectLegacy({ team_id, project_id }); - -// DEPRECATED: octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() -octokit.teams.reviewProject({ team_id, project_id }); - -// https://developer.github.com/v3/teams/#add-or-update-team-project-legacy -octokit.teams.addOrUpdateProjectLegacy({ team_id, project_id, permission }); - -// DEPRECATED: octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() -octokit.teams.addOrUpdateProject({ team_id, project_id, permission }); - -// https://developer.github.com/v3/teams/#remove-team-project-legacy -octokit.teams.removeProjectLegacy({ team_id, project_id }); - -// DEPRECATED: octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() -octokit.teams.removeProject({ team_id, project_id }); - -// https://developer.github.com/v3/teams/#list-team-repos-legacy -octokit.teams.listReposLegacy({ team_id }); - -// DEPRECATED: octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() -octokit.teams.listRepos({ team_id }); - -// https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy -octokit.teams.checkManagesRepoLegacy({ team_id, owner, repo }); - -// DEPRECATED: octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() -octokit.teams.checkManagesRepo({ team_id, owner, repo }); - -// https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy -octokit.teams.addOrUpdateRepoLegacy({ team_id, owner, repo, permission }); - -// DEPRECATED: octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() -octokit.teams.addOrUpdateRepo({ team_id, owner, repo, permission }); - -// https://developer.github.com/v3/teams/#remove-team-repository-legacy -octokit.teams.removeRepoLegacy({ team_id, owner, repo }); - -// DEPRECATED: octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() -octokit.teams.removeRepo({ team_id, owner, repo }); - -// https://developer.github.com/v3/teams/#list-child-teams-legacy -octokit.teams.listChildLegacy({ team_id }); - -// DEPRECATED: octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() -octokit.teams.listChild({ team_id }); - // https://developer.github.com/v3/users/#get-the-authenticated-user octokit.users.getAuthenticated(); +``` -// https://developer.github.com/v3/users/#update-the-authenticated-user -octokit.users.updateAuthenticated({ - name, - email, - blog, - company, - location, - hireable, - bio -}); - -// https://developer.github.com/v3/users/blocking/#list-blocked-users -octokit.users.listBlocked(); - -// https://developer.github.com/v3/users/blocking/#check-whether-youve-blocked-a-user -octokit.users.checkBlocked({ username }); - -// https://developer.github.com/v3/users/blocking/#block-a-user -octokit.users.block({ username }); - -// https://developer.github.com/v3/users/blocking/#unblock-a-user -octokit.users.unblock({ username }); - -// https://developer.github.com/v3/users/emails/#toggle-primary-email-visibility -octokit.users.togglePrimaryEmailVisibility({ email, visibility }); - -// https://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user -octokit.users.listEmails(); - -// https://developer.github.com/v3/users/emails/#add-email-addresses -octokit.users.addEmails({ emails }); - -// https://developer.github.com/v3/users/emails/#delete-email-addresses -octokit.users.deleteEmails({ emails }); - -// https://developer.github.com/v3/users/followers/#list-followers-of-a-user -octokit.users.listFollowersForAuthenticatedUser(); - -// https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user -octokit.users.listFollowingForAuthenticatedUser(); - -// https://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user -octokit.users.checkFollowing({ username }); - -// https://developer.github.com/v3/users/followers/#follow-a-user -octokit.users.follow({ username }); - -// https://developer.github.com/v3/users/followers/#unfollow-a-user -octokit.users.unfollow({ username }); - -// https://developer.github.com/v3/users/gpg_keys/#list-your-gpg-keys -octokit.users.listGpgKeys(); - -// https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key -octokit.users.createGpgKey({ armored_public_key }); - -// https://developer.github.com/v3/users/gpg_keys/#get-a-single-gpg-key -octokit.users.getGpgKey({ gpg_key_id }); - -// https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key -octokit.users.deleteGpgKey({ gpg_key_id }); - -// https://developer.github.com/v3/apps/installations/#list-installations-for-a-user -octokit.apps.listInstallationsForAuthenticatedUser(); - -// https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation -octokit.apps.listInstallationReposForAuthenticatedUser({ installation_id }); - -// https://developer.github.com/v3/apps/installations/#add-repository-to-installation -octokit.apps.addRepoToInstallation({ installation_id, repository_id }); - -// https://developer.github.com/v3/apps/installations/#remove-repository-from-installation -octokit.apps.removeRepoFromInstallation({ installation_id, repository_id }); - -// https://developer.github.com/v3/issues/#list-issues -octokit.issues.listForAuthenticatedUser({ - filter, - state, - labels, - sort, - direction, - since -}); - -// https://developer.github.com/v3/users/keys/#list-your-public-keys -octokit.users.listPublicKeys(); - -// https://developer.github.com/v3/users/keys/#create-a-public-key -octokit.users.createPublicKey({ title, key }); - -// https://developer.github.com/v3/users/keys/#get-a-single-public-key -octokit.users.getPublicKey({ key_id }); - -// https://developer.github.com/v3/users/keys/#delete-a-public-key -octokit.users.deletePublicKey({ key_id }); - -// https://developer.github.com/v3/apps/marketplace/#get-a-users-marketplace-purchases -octokit.apps.listMarketplacePurchasesForAuthenticatedUser(); - -// https://developer.github.com/v3/apps/marketplace/#get-a-users-marketplace-purchases -octokit.apps.listMarketplacePurchasesForAuthenticatedUserStubbed(); - -// https://developer.github.com/v3/orgs/members/#list-your-organization-memberships -octokit.orgs.listMemberships({ state }); - -// https://developer.github.com/v3/orgs/members/#get-your-organization-membership -octokit.orgs.getMembershipForAuthenticatedUser({ org }); - -// https://developer.github.com/v3/orgs/members/#edit-your-organization-membership -octokit.orgs.updateMembership({ org, state }); - -// https://developer.github.com/v3/migrations/users/#start-a-user-migration -octokit.migrations.startForAuthenticatedUser({ - repositories, - lock_repositories, - exclude_attachments -}); - -// https://developer.github.com/v3/migrations/users/#list-user-migrations -octokit.migrations.listForAuthenticatedUser(); - -// https://developer.github.com/v3/migrations/users/#get-the-status-of-a-user-migration -octokit.migrations.getStatusForAuthenticatedUser({ migration_id }); - -// https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive -octokit.migrations.getArchiveForAuthenticatedUser({ migration_id }); - -// https://developer.github.com/v3/migrations/users/#delete-a-user-migration-archive -octokit.migrations.deleteArchiveForAuthenticatedUser({ migration_id }); - -// https://developer.github.com/v3/migrations/users/#unlock-a-user-repository -octokit.migrations.unlockRepoForAuthenticatedUser({ migration_id, repo_name }); - -// https://developer.github.com/v3/orgs/#list-your-organizations -octokit.orgs.listForAuthenticatedUser(); - -// https://developer.github.com/v3/projects/#create-a-user-project -octokit.projects.createForAuthenticatedUser({ name, body }); - -// https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-a-user -octokit.users.listPublicEmails(); - -// https://developer.github.com/v3/repos/#list-your-repositories -octokit.repos.list({ visibility, affiliation, type, sort, direction }); - -// https://developer.github.com/v3/repos/#create -octokit.repos.createForAuthenticatedUser({ - name, - description, - homepage, - private, - visibility, - has_issues, - has_projects, - has_wiki, - is_template, - team_id, - auto_init, - gitignore_template, - license_template, - allow_squash_merge, - allow_merge_commit, - allow_rebase_merge, - delete_branch_on_merge -}); - -// https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations -octokit.repos.listInvitationsForAuthenticatedUser(); - -// https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation -octokit.repos.acceptInvitation({ invitation_id }); - -// https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation -octokit.repos.declineInvitation({ invitation_id }); - -// https://developer.github.com/v3/activity/starring/#list-repositories-being-starred -octokit.activity.listReposStarredByAuthenticatedUser({ sort, direction }); - -// https://developer.github.com/v3/activity/starring/#check-if-you-are-starring-a-repository -octokit.activity.checkStarringRepo({ owner, repo }); - -// https://developer.github.com/v3/activity/starring/#star-a-repository -octokit.activity.starRepo({ owner, repo }); - -// https://developer.github.com/v3/activity/starring/#unstar-a-repository -octokit.activity.unstarRepo({ owner, repo }); - -// https://developer.github.com/v3/activity/watching/#list-repositories-being-watched -octokit.activity.listWatchedReposForAuthenticatedUser(); - -// https://developer.github.com/v3/teams/#list-user-teams -octokit.teams.listForAuthenticatedUser(); - -// https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration -octokit.migrations.listReposForUser({ migration_id }); - -// https://developer.github.com/v3/users/#get-all-users -octokit.users.list({ since }); - -// https://developer.github.com/v3/users/#get-a-single-user -octokit.users.getByUsername({ username }); - -// https://developer.github.com/v3/activity/events/#list-events-performed-by-a-user -octokit.activity.listEventsForUser({ username }); - -// https://developer.github.com/v3/activity/events/#list-events-for-an-organization -octokit.activity.listEventsForOrg({ username, org }); - -// https://developer.github.com/v3/activity/events/#list-public-events-performed-by-a-user -octokit.activity.listPublicEventsForUser({ username }); - -// https://developer.github.com/v3/users/followers/#list-followers-of-a-user -octokit.users.listFollowersForUser({ username }); - -// https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user -octokit.users.listFollowingForUser({ username }); - -// https://developer.github.com/v3/users/followers/#check-if-one-user-follows-another -octokit.users.checkFollowingForUser({ username, target_user }); - -// https://developer.github.com/v3/gists/#list-a-users-gists -octokit.gists.listPublicForUser({ username, since }); - -// https://developer.github.com/v3/users/gpg_keys/#list-gpg-keys-for-a-user -octokit.users.listGpgKeysForUser({ username }); - -// https://developer.github.com/v3/users/#get-contextual-information-about-a-user -octokit.users.getContextForUser({ username, subject_type, subject_id }); - -// https://developer.github.com/v3/apps/#get-a-user-installation -octokit.apps.getUserInstallation({ username }); - -// DEPRECATED: octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() -octokit.apps.findUserInstallation({ username }); - -// https://developer.github.com/v3/users/keys/#list-public-keys-for-a-user -octokit.users.listPublicKeysForUser({ username }); - -// https://developer.github.com/v3/orgs/#list-user-organizations -octokit.orgs.listForUser({ username }); - -// https://developer.github.com/v3/projects/#list-user-projects -octokit.projects.listForUser({ username, state }); - -// https://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received -octokit.activity.listReceivedEventsForUser({ username }); - -// https://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received -octokit.activity.listReceivedPublicEventsForUser({ username }); - -// https://developer.github.com/v3/repos/#list-user-repositories -octokit.repos.listForUser({ username, type, sort, direction }); - -// https://developer.github.com/v3/activity/starring/#list-repositories-being-starred -octokit.activity.listReposStarredByUser({ username, sort, direction }); - -// https://developer.github.com/v3/activity/watching/#list-repositories-being-watched -octokit.activity.listReposWatchedByUser({ username }); +There is one method for each REST API endpoint documented at [https://developer.github.com/v3](https://developer.github.com/v3). All endpoint methods are documented in the [docs/](docs/) folder, e.g. [docs/users/getAuthenticated.md](docs/users/getAuthenticated.md) -// https://developer.github.com/v3/repos/commits/#get-a-single-commit -octokit.repos.getCommitRefSha({ owner, ref, repo }); +## TypeScript -// https://developer.github.com/v3/git/refs/#get-all-references -octokit.git.listRefs({ owner, repo, namespace }); +Parameter and response types for all endpoint methods exported as `{ RestEndpointMethodTypes }`. -// https://developer.github.com/v3/issues/labels/#update-a-label -octokit.issues.updateLabel({ - owner, - repo, - current_name, - color, - name, - description -}); +Example -// https://developer.github.com/v3/pulls/#create-a-pull-request -octokit.pulls.createFromIssue({ - owner, - repo, - base, - draft, - head, - issue, - maintainer_can_modify, - owner, - repo -}); +```ts +import { RestEndpointMethodTypes } from "@octokit/plugin-rest-endpoint-methods"; -// https://developer.github.com/v3/repos/releases/#upload-a-release-asset -octokit.repos.uploadReleaseAsset({ data, headers, label, name, url }); +type UpdateLabelParameters = RestEndpointMethodTypes["issues"]["updateLabel"]["parameters"]; +type UpdateLabelResponse = RestEndpointMethodTypes["issues"]["updateLabel"]["response"]; ``` -There is one method for each REST API endpoint documented at [https://developer.github.com/v3](https://developer.github.com/v3). - ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md) diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js index f391f5e33..5510842be 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js @@ -2,13162 +2,1110 @@ Object.defineProperty(exports, '__esModule', { value: true }); -var deprecation = require('deprecation'); - -var endpointsByScope = { +const Endpoints = { actions: { - cancelWorkflowRun: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/cancel" - }, - createOrUpdateSecretForRepo: { - method: "PUT", - params: { - encrypted_value: { - type: "string" - }, - key_id: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - createRegistrationToken: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/runners/registration-token" - }, - createRemoveToken: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/runners/remove-token" - }, - deleteArtifact: { - method: "DELETE", - params: { - artifact_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id" - }, - deleteSecretFromRepo: { - method: "DELETE", - params: { - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - downloadArtifact: { - method: "GET", - params: { - archive_format: { - required: true, - type: "string" - }, - artifact_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format" - }, - getArtifact: { - method: "GET", - params: { - artifact_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id" - }, - getPublicKey: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/secrets/public-key" - }, - getSecret: { - method: "GET", - params: { - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - getSelfHostedRunner: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - runner_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runners/:runner_id" - }, - getWorkflow: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - workflow_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/workflows/:workflow_id" - }, - getWorkflowJob: { - method: "GET", - params: { - job_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/jobs/:job_id" - }, - getWorkflowRun: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id" - }, - listDownloadsForSelfHostedRunnerApplication: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/runners/downloads" - }, - listJobsForWorkflowRun: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/jobs" - }, - listRepoWorkflowRuns: { - method: "GET", - params: { - actor: { - type: "string" - }, - branch: { - type: "string" - }, - event: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - status: { - enum: ["completed", "status", "conclusion"], - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/runs" - }, - listRepoWorkflows: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/workflows" - }, - listSecretsForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/secrets" - }, - listSelfHostedRunnersForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/runners" - }, - listWorkflowJobLogs: { - method: "GET", - params: { - job_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/actions/jobs/:job_id/logs" - }, - listWorkflowRunArtifacts: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts" - }, - listWorkflowRunLogs: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/logs" - }, - listWorkflowRuns: { - method: "GET", - params: { - actor: { - type: "string" - }, - branch: { - type: "string" - }, - event: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - status: { - enum: ["completed", "status", "conclusion"], - type: "string" - }, - workflow_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs" - }, - reRunWorkflow: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - run_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/rerun" - }, - removeSelfHostedRunner: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - runner_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/actions/runners/:runner_id" - } + addSelectedRepoToOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"], + cancelWorkflowRun: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"], + createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"], + createOrUpdateRepoSecret: ["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"], + createRegistrationTokenForOrg: ["POST /orgs/{org}/actions/runners/registration-token"], + createRegistrationTokenForRepo: ["POST /repos/{owner}/{repo}/actions/runners/registration-token"], + createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"], + createRemoveTokenForRepo: ["POST /repos/{owner}/{repo}/actions/runners/remove-token"], + createWorkflowDispatch: ["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"], + deleteArtifact: ["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"], + deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"], + deleteRepoSecret: ["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"], + deleteSelfHostedRunnerFromOrg: ["DELETE /orgs/{org}/actions/runners/{runner_id}"], + deleteSelfHostedRunnerFromRepo: ["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"], + deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"], + deleteWorkflowRunLogs: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"], + disableSelectedRepositoryGithubActionsOrganization: ["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"], + disableWorkflow: ["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"], + downloadArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"], + downloadJobLogsForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"], + downloadWorkflowRunLogs: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"], + enableSelectedRepositoryGithubActionsOrganization: ["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"], + enableWorkflow: ["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"], + getAllowedActionsOrganization: ["GET /orgs/{org}/actions/permissions/selected-actions"], + getAllowedActionsRepository: ["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"], + getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"], + getGithubActionsPermissionsOrganization: ["GET /orgs/{org}/actions/permissions"], + getGithubActionsPermissionsRepository: ["GET /repos/{owner}/{repo}/actions/permissions"], + getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"], + getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"], + getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"], + getRepoPermissions: ["GET /repos/{owner}/{repo}/actions/permissions", {}, { + renamed: ["actions", "getGithubActionsPermissionsRepository"] + }], + getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"], + getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"], + getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"], + getSelfHostedRunnerForRepo: ["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"], + getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"], + getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"], + getWorkflowRunUsage: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"], + getWorkflowUsage: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"], + listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"], + listJobsForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"], + listOrgSecrets: ["GET /orgs/{org}/actions/secrets"], + listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"], + listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"], + listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"], + listRunnerApplicationsForRepo: ["GET /repos/{owner}/{repo}/actions/runners/downloads"], + listSelectedReposForOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"], + listSelectedRepositoriesEnabledGithubActionsOrganization: ["GET /orgs/{org}/actions/permissions/repositories"], + listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"], + listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"], + listWorkflowRunArtifacts: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"], + listWorkflowRuns: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"], + listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"], + reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"], + removeSelectedRepoFromOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"], + setAllowedActionsOrganization: ["PUT /orgs/{org}/actions/permissions/selected-actions"], + setAllowedActionsRepository: ["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"], + setGithubActionsPermissionsOrganization: ["PUT /orgs/{org}/actions/permissions"], + setGithubActionsPermissionsRepository: ["PUT /repos/{owner}/{repo}/actions/permissions"], + setSelectedReposForOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"], + setSelectedRepositoriesEnabledGithubActionsOrganization: ["PUT /orgs/{org}/actions/permissions/repositories"] }, activity: { - checkStarringRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/user/starred/:owner/:repo" - }, - deleteRepoSubscription: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/subscription" - }, - deleteThreadSubscription: { - method: "DELETE", - params: { - thread_id: { - required: true, - type: "integer" - } - }, - url: "/notifications/threads/:thread_id/subscription" - }, - getRepoSubscription: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/subscription" - }, - getThread: { - method: "GET", - params: { - thread_id: { - required: true, - type: "integer" - } - }, - url: "/notifications/threads/:thread_id" - }, - getThreadSubscription: { - method: "GET", - params: { - thread_id: { - required: true, - type: "integer" - } - }, - url: "/notifications/threads/:thread_id/subscription" - }, - listEventsForOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/events/orgs/:org" - }, - listEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/events" - }, - listFeeds: { - method: "GET", - params: {}, - url: "/feeds" - }, - listNotifications: { - method: "GET", - params: { - all: { - type: "boolean" - }, - before: { - type: "string" - }, - page: { - type: "integer" - }, - participating: { - type: "boolean" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - } - }, - url: "/notifications" - }, - listNotificationsForRepo: { - method: "GET", - params: { - all: { - type: "boolean" - }, - before: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - participating: { - type: "boolean" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - } - }, - url: "/repos/:owner/:repo/notifications" - }, - listPublicEvents: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/events" - }, - listPublicEventsForOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/events" - }, - listPublicEventsForRepoNetwork: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/networks/:owner/:repo/events" - }, - listPublicEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/events/public" - }, - listReceivedEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/received_events" - }, - listReceivedPublicEventsForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/received_events/public" - }, - listRepoEvents: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/events" - }, - listReposStarredByAuthenticatedUser: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - sort: { - enum: ["created", "updated"], - type: "string" - } - }, - url: "/user/starred" - }, - listReposStarredByUser: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - sort: { - enum: ["created", "updated"], - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/starred" - }, - listReposWatchedByUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/subscriptions" - }, - listStargazersForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/stargazers" - }, - listWatchedReposForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/subscriptions" - }, - listWatchersForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/subscribers" - }, - markAsRead: { - method: "PUT", - params: { - last_read_at: { - type: "string" - } - }, - url: "/notifications" - }, - markNotificationsAsReadForRepo: { - method: "PUT", - params: { - last_read_at: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/notifications" - }, - markThreadAsRead: { - method: "PATCH", - params: { - thread_id: { - required: true, - type: "integer" - } - }, - url: "/notifications/threads/:thread_id" - }, - setRepoSubscription: { - method: "PUT", - params: { - ignored: { - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - subscribed: { - type: "boolean" - } - }, - url: "/repos/:owner/:repo/subscription" - }, - setThreadSubscription: { - method: "PUT", - params: { - ignored: { - type: "boolean" - }, - thread_id: { - required: true, - type: "integer" - } - }, - url: "/notifications/threads/:thread_id/subscription" - }, - starRepo: { - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/user/starred/:owner/:repo" - }, - unstarRepo: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/user/starred/:owner/:repo" - } + checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"], + deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"], + deleteThreadSubscription: ["DELETE /notifications/threads/{thread_id}/subscription"], + getFeeds: ["GET /feeds"], + getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"], + getThread: ["GET /notifications/threads/{thread_id}"], + getThreadSubscriptionForAuthenticatedUser: ["GET /notifications/threads/{thread_id}/subscription"], + listEventsForAuthenticatedUser: ["GET /users/{username}/events"], + listNotificationsForAuthenticatedUser: ["GET /notifications"], + listOrgEventsForAuthenticatedUser: ["GET /users/{username}/events/orgs/{org}"], + listPublicEvents: ["GET /events"], + listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"], + listPublicEventsForUser: ["GET /users/{username}/events/public"], + listPublicOrgEvents: ["GET /orgs/{org}/events"], + listReceivedEventsForUser: ["GET /users/{username}/received_events"], + listReceivedPublicEventsForUser: ["GET /users/{username}/received_events/public"], + listRepoEvents: ["GET /repos/{owner}/{repo}/events"], + listRepoNotificationsForAuthenticatedUser: ["GET /repos/{owner}/{repo}/notifications"], + listReposStarredByAuthenticatedUser: ["GET /user/starred"], + listReposStarredByUser: ["GET /users/{username}/starred"], + listReposWatchedByUser: ["GET /users/{username}/subscriptions"], + listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"], + listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"], + listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"], + markNotificationsAsRead: ["PUT /notifications"], + markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"], + markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"], + setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"], + setThreadSubscription: ["PUT /notifications/threads/{thread_id}/subscription"], + starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"], + unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"] }, apps: { - addRepoToInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "PUT", - params: { - installation_id: { - required: true, - type: "integer" - }, - repository_id: { - required: true, - type: "integer" - } - }, - url: "/user/installations/:installation_id/repositories/:repository_id" - }, - checkAccountIsAssociatedWithAny: { - method: "GET", - params: { - account_id: { - required: true, - type: "integer" - } - }, - url: "/marketplace_listing/accounts/:account_id" - }, - checkAccountIsAssociatedWithAnyStubbed: { - method: "GET", - params: { - account_id: { - required: true, - type: "integer" - } - }, - url: "/marketplace_listing/stubbed/accounts/:account_id" - }, - checkAuthorization: { - deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization", - method: "GET", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - checkToken: { - headers: { - accept: "application/vnd.github.doctor-strange-preview+json" - }, - method: "POST", - params: { - access_token: { - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/token" - }, - createContentAttachment: { - headers: { - accept: "application/vnd.github.corsair-preview+json" - }, - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - content_reference_id: { - required: true, - type: "integer" - }, - title: { - required: true, - type: "string" - } - }, - url: "/content_references/:content_reference_id/attachments" - }, - createFromManifest: { - headers: { - accept: "application/vnd.github.fury-preview+json" - }, - method: "POST", - params: { - code: { - required: true, - type: "string" - } - }, - url: "/app-manifests/:code/conversions" - }, - createInstallationToken: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "POST", - params: { - installation_id: { - required: true, - type: "integer" - }, - permissions: { - type: "object" - }, - repository_ids: { - type: "integer[]" - } - }, - url: "/app/installations/:installation_id/access_tokens" - }, - deleteAuthorization: { - headers: { - accept: "application/vnd.github.doctor-strange-preview+json" - }, - method: "DELETE", - params: { - access_token: { - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/grant" - }, - deleteInstallation: { - headers: { - accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json" - }, - method: "DELETE", - params: { - installation_id: { - required: true, - type: "integer" - } - }, - url: "/app/installations/:installation_id" - }, - deleteToken: { - headers: { - accept: "application/vnd.github.doctor-strange-preview+json" - }, - method: "DELETE", - params: { - access_token: { - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/token" - }, - findOrgInstallation: { - deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)", - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/installation" - }, - findRepoInstallation: { - deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)", - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/installation" - }, - findUserInstallation: { - deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)", - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/installation" - }, - getAuthenticated: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: {}, - url: "/app" - }, - getBySlug: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - app_slug: { - required: true, - type: "string" - } - }, - url: "/apps/:app_slug" - }, - getInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - installation_id: { - required: true, - type: "integer" - } - }, - url: "/app/installations/:installation_id" - }, - getOrgInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/installation" - }, - getRepoInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/installation" - }, - getUserInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/installation" - }, - listAccountsUserOrOrgOnPlan: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - plan_id: { - required: true, - type: "integer" - }, - sort: { - enum: ["created", "updated"], - type: "string" - } - }, - url: "/marketplace_listing/plans/:plan_id/accounts" - }, - listAccountsUserOrOrgOnPlanStubbed: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - plan_id: { - required: true, - type: "integer" - }, - sort: { - enum: ["created", "updated"], - type: "string" - } - }, - url: "/marketplace_listing/stubbed/plans/:plan_id/accounts" - }, - listInstallationReposForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - installation_id: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/installations/:installation_id/repositories" - }, - listInstallations: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/app/installations" - }, - listInstallationsForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/installations" - }, - listMarketplacePurchasesForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/marketplace_purchases" - }, - listMarketplacePurchasesForAuthenticatedUserStubbed: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/marketplace_purchases/stubbed" - }, - listPlans: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/marketplace_listing/plans" - }, - listPlansStubbed: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/marketplace_listing/stubbed/plans" - }, - listRepos: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/installation/repositories" - }, - removeRepoFromInstallation: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "DELETE", - params: { - installation_id: { - required: true, - type: "integer" - }, - repository_id: { - required: true, - type: "integer" - } - }, - url: "/user/installations/:installation_id/repositories/:repository_id" - }, - resetAuthorization: { - deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization", - method: "POST", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - resetToken: { - headers: { - accept: "application/vnd.github.doctor-strange-preview+json" - }, - method: "PATCH", - params: { - access_token: { - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/token" - }, - revokeAuthorizationForApplication: { - deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application", - method: "DELETE", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeGrantForApplication: { - deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application", - method: "DELETE", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/grants/:access_token" - }, - revokeInstallationToken: { - headers: { - accept: "application/vnd.github.gambit-preview+json" - }, - method: "DELETE", - params: {}, - url: "/installation/token" - } + addRepoToInstallation: ["PUT /user/installations/{installation_id}/repositories/{repository_id}"], + checkToken: ["POST /applications/{client_id}/token"], + createContentAttachment: ["POST /content_references/{content_reference_id}/attachments", { + mediaType: { + previews: ["corsair"] + } + }], + createFromManifest: ["POST /app-manifests/{code}/conversions"], + createInstallationAccessToken: ["POST /app/installations/{installation_id}/access_tokens"], + deleteAuthorization: ["DELETE /applications/{client_id}/grant"], + deleteInstallation: ["DELETE /app/installations/{installation_id}"], + deleteToken: ["DELETE /applications/{client_id}/token"], + getAuthenticated: ["GET /app"], + getBySlug: ["GET /apps/{app_slug}"], + getInstallation: ["GET /app/installations/{installation_id}"], + getOrgInstallation: ["GET /orgs/{org}/installation"], + getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"], + getSubscriptionPlanForAccount: ["GET /marketplace_listing/accounts/{account_id}"], + getSubscriptionPlanForAccountStubbed: ["GET /marketplace_listing/stubbed/accounts/{account_id}"], + getUserInstallation: ["GET /users/{username}/installation"], + getWebhookConfigForApp: ["GET /app/hook/config"], + listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"], + listAccountsForPlanStubbed: ["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"], + listInstallationReposForAuthenticatedUser: ["GET /user/installations/{installation_id}/repositories"], + listInstallations: ["GET /app/installations"], + listInstallationsForAuthenticatedUser: ["GET /user/installations"], + listPlans: ["GET /marketplace_listing/plans"], + listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"], + listReposAccessibleToInstallation: ["GET /installation/repositories"], + listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"], + listSubscriptionsForAuthenticatedUserStubbed: ["GET /user/marketplace_purchases/stubbed"], + removeRepoFromInstallation: ["DELETE /user/installations/{installation_id}/repositories/{repository_id}"], + resetToken: ["PATCH /applications/{client_id}/token"], + revokeInstallationAccessToken: ["DELETE /installation/token"], + suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"], + unsuspendInstallation: ["DELETE /app/installations/{installation_id}/suspended"], + updateWebhookConfigForApp: ["PATCH /app/hook/config"] + }, + billing: { + getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"], + getGithubActionsBillingUser: ["GET /users/{username}/settings/billing/actions"], + getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"], + getGithubPackagesBillingUser: ["GET /users/{username}/settings/billing/packages"], + getSharedStorageBillingOrg: ["GET /orgs/{org}/settings/billing/shared-storage"], + getSharedStorageBillingUser: ["GET /users/{username}/settings/billing/shared-storage"] }, checks: { - create: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "POST", - params: { - actions: { - type: "object[]" - }, - "actions[].description": { - required: true, - type: "string" - }, - "actions[].identifier": { - required: true, - type: "string" - }, - "actions[].label": { - required: true, - type: "string" - }, - completed_at: { - type: "string" - }, - conclusion: { - enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"], - type: "string" - }, - details_url: { - type: "string" - }, - external_id: { - type: "string" - }, - head_sha: { - required: true, - type: "string" - }, - name: { - required: true, - type: "string" - }, - output: { - type: "object" - }, - "output.annotations": { - type: "object[]" - }, - "output.annotations[].annotation_level": { - enum: ["notice", "warning", "failure"], - required: true, - type: "string" - }, - "output.annotations[].end_column": { - type: "integer" - }, - "output.annotations[].end_line": { - required: true, - type: "integer" - }, - "output.annotations[].message": { - required: true, - type: "string" - }, - "output.annotations[].path": { - required: true, - type: "string" - }, - "output.annotations[].raw_details": { - type: "string" - }, - "output.annotations[].start_column": { - type: "integer" - }, - "output.annotations[].start_line": { - required: true, - type: "integer" - }, - "output.annotations[].title": { - type: "string" - }, - "output.images": { - type: "object[]" - }, - "output.images[].alt": { - required: true, - type: "string" - }, - "output.images[].caption": { - type: "string" - }, - "output.images[].image_url": { - required: true, - type: "string" - }, - "output.summary": { - required: true, - type: "string" - }, - "output.text": { - type: "string" - }, - "output.title": { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - started_at: { - type: "string" - }, - status: { - enum: ["queued", "in_progress", "completed"], - type: "string" - } - }, - url: "/repos/:owner/:repo/check-runs" - }, - createSuite: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "POST", - params: { - head_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/check-suites" - }, - get: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - check_run_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id" - }, - getSuite: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - check_suite_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id" - }, - listAnnotations: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - check_run_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations" - }, - listForRef: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - check_name: { - type: "string" - }, - filter: { - enum: ["latest", "all"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - status: { - enum: ["queued", "in_progress", "completed"], - type: "string" - } - }, - url: "/repos/:owner/:repo/commits/:ref/check-runs" - }, - listForSuite: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - check_name: { - type: "string" - }, - check_suite_id: { - required: true, - type: "integer" - }, - filter: { - enum: ["latest", "all"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - status: { - enum: ["queued", "in_progress", "completed"], - type: "string" - } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs" - }, - listSuitesForRef: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "GET", - params: { - app_id: { - type: "integer" - }, - check_name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/commits/:ref/check-suites" - }, - rerequestSuite: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "POST", - params: { - check_suite_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest" - }, - setSuitesPreferences: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "PATCH", - params: { - auto_trigger_checks: { - type: "object[]" - }, - "auto_trigger_checks[].app_id": { - required: true, - type: "integer" - }, - "auto_trigger_checks[].setting": { - required: true, - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/check-suites/preferences" - }, - update: { - headers: { - accept: "application/vnd.github.antiope-preview+json" - }, - method: "PATCH", - params: { - actions: { - type: "object[]" - }, - "actions[].description": { - required: true, - type: "string" - }, - "actions[].identifier": { - required: true, - type: "string" - }, - "actions[].label": { - required: true, - type: "string" - }, - check_run_id: { - required: true, - type: "integer" - }, - completed_at: { - type: "string" - }, - conclusion: { - enum: ["success", "failure", "neutral", "cancelled", "timed_out", "action_required"], - type: "string" - }, - details_url: { - type: "string" - }, - external_id: { - type: "string" - }, - name: { - type: "string" - }, - output: { - type: "object" - }, - "output.annotations": { - type: "object[]" - }, - "output.annotations[].annotation_level": { - enum: ["notice", "warning", "failure"], - required: true, - type: "string" - }, - "output.annotations[].end_column": { - type: "integer" - }, - "output.annotations[].end_line": { - required: true, - type: "integer" - }, - "output.annotations[].message": { - required: true, - type: "string" - }, - "output.annotations[].path": { - required: true, - type: "string" - }, - "output.annotations[].raw_details": { - type: "string" - }, - "output.annotations[].start_column": { - type: "integer" - }, - "output.annotations[].start_line": { - required: true, - type: "integer" - }, - "output.annotations[].title": { - type: "string" - }, - "output.images": { - type: "object[]" - }, - "output.images[].alt": { - required: true, - type: "string" - }, - "output.images[].caption": { - type: "string" - }, - "output.images[].image_url": { - required: true, - type: "string" - }, - "output.summary": { - required: true, - type: "string" - }, - "output.text": { - type: "string" - }, - "output.title": { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - started_at: { - type: "string" - }, - status: { - enum: ["queued", "in_progress", "completed"], - type: "string" - } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id" - } + create: ["POST /repos/{owner}/{repo}/check-runs"], + createSuite: ["POST /repos/{owner}/{repo}/check-suites"], + get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"], + getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"], + listAnnotations: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"], + listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"], + listForSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"], + listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"], + rerequestSuite: ["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"], + setSuitesPreferences: ["PATCH /repos/{owner}/{repo}/check-suites/preferences"], + update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"] + }, + codeScanning: { + getAlert: ["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", {}, { + renamedParameters: { + alert_id: "alert_number" + } + }], + listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"], + listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"], + updateAlert: ["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"], + uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"] }, codesOfConduct: { - getConductCode: { - headers: { - accept: "application/vnd.github.scarlet-witch-preview+json" - }, - method: "GET", - params: { - key: { - required: true, - type: "string" - } - }, - url: "/codes_of_conduct/:key" - }, - getForRepo: { - headers: { - accept: "application/vnd.github.scarlet-witch-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/community/code_of_conduct" - }, - listConductCodes: { - headers: { - accept: "application/vnd.github.scarlet-witch-preview+json" - }, - method: "GET", - params: {}, - url: "/codes_of_conduct" - } + getAllCodesOfConduct: ["GET /codes_of_conduct", { + mediaType: { + previews: ["scarlet-witch"] + } + }], + getConductCode: ["GET /codes_of_conduct/{key}", { + mediaType: { + previews: ["scarlet-witch"] + } + }], + getForRepo: ["GET /repos/{owner}/{repo}/community/code_of_conduct", { + mediaType: { + previews: ["scarlet-witch"] + } + }] }, emojis: { - get: { - method: "GET", - params: {}, - url: "/emojis" - } + get: ["GET /emojis"] + }, + enterpriseAdmin: { + disableSelectedOrganizationGithubActionsEnterprise: ["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"], + enableSelectedOrganizationGithubActionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"], + getAllowedActionsEnterprise: ["GET /enterprises/{enterprise}/actions/permissions/selected-actions"], + getGithubActionsPermissionsEnterprise: ["GET /enterprises/{enterprise}/actions/permissions"], + listSelectedOrganizationsEnabledGithubActionsEnterprise: ["GET /enterprises/{enterprise}/actions/permissions/organizations"], + setAllowedActionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"], + setGithubActionsPermissionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions"], + setSelectedOrganizationsEnabledGithubActionsEnterprise: ["PUT /enterprises/{enterprise}/actions/permissions/organizations"] }, gists: { - checkIsStarred: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/star" - }, - create: { - method: "POST", - params: { - description: { - type: "string" - }, - files: { - required: true, - type: "object" - }, - "files.content": { - type: "string" - }, - public: { - type: "boolean" - } - }, - url: "/gists" - }, - createComment: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/comments" - }, - delete: { - method: "DELETE", - params: { - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { - required: true, - type: "integer" - }, - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/comments/:comment_id" - }, - fork: { - method: "POST", - params: { - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/forks" - }, - get: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id" - }, - getComment: { - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/comments/:comment_id" - }, - getRevision: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/:sha" - }, - list: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - } - }, - url: "/gists" - }, - listComments: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/gists/:gist_id/comments" - }, - listCommits: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/gists/:gist_id/commits" - }, - listForks: { - method: "GET", - params: { - gist_id: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/gists/:gist_id/forks" - }, - listPublic: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - } - }, - url: "/gists/public" - }, - listPublicForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/gists" - }, - listStarred: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - } - }, - url: "/gists/starred" - }, - star: { - method: "PUT", - params: { - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/star" - }, - unstar: { - method: "DELETE", - params: { - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/star" - }, - update: { - method: "PATCH", - params: { - description: { - type: "string" - }, - files: { - type: "object" - }, - "files.content": { - type: "string" - }, - "files.filename": { - type: "string" - }, - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id" - }, - updateComment: { - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_id: { - required: true, - type: "integer" - }, - gist_id: { - required: true, - type: "string" - } - }, - url: "/gists/:gist_id/comments/:comment_id" - } + checkIsStarred: ["GET /gists/{gist_id}/star"], + create: ["POST /gists"], + createComment: ["POST /gists/{gist_id}/comments"], + delete: ["DELETE /gists/{gist_id}"], + deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"], + fork: ["POST /gists/{gist_id}/forks"], + get: ["GET /gists/{gist_id}"], + getComment: ["GET /gists/{gist_id}/comments/{comment_id}"], + getRevision: ["GET /gists/{gist_id}/{sha}"], + list: ["GET /gists"], + listComments: ["GET /gists/{gist_id}/comments"], + listCommits: ["GET /gists/{gist_id}/commits"], + listForUser: ["GET /users/{username}/gists"], + listForks: ["GET /gists/{gist_id}/forks"], + listPublic: ["GET /gists/public"], + listStarred: ["GET /gists/starred"], + star: ["PUT /gists/{gist_id}/star"], + unstar: ["DELETE /gists/{gist_id}/star"], + update: ["PATCH /gists/{gist_id}"], + updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"] }, git: { - createBlob: { - method: "POST", - params: { - content: { - required: true, - type: "string" - }, - encoding: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/blobs" - }, - createCommit: { - method: "POST", - params: { - author: { - type: "object" - }, - "author.date": { - type: "string" - }, - "author.email": { - type: "string" - }, - "author.name": { - type: "string" - }, - committer: { - type: "object" - }, - "committer.date": { - type: "string" - }, - "committer.email": { - type: "string" - }, - "committer.name": { - type: "string" - }, - message: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - parents: { - required: true, - type: "string[]" - }, - repo: { - required: true, - type: "string" - }, - signature: { - type: "string" - }, - tree: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/commits" - }, - createRef: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/refs" - }, - createTag: { - method: "POST", - params: { - message: { - required: true, - type: "string" - }, - object: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - tag: { - required: true, - type: "string" - }, - tagger: { - type: "object" - }, - "tagger.date": { - type: "string" - }, - "tagger.email": { - type: "string" - }, - "tagger.name": { - type: "string" - }, - type: { - enum: ["commit", "tree", "blob"], - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/tags" - }, - createTree: { - method: "POST", - params: { - base_tree: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - tree: { - required: true, - type: "object[]" - }, - "tree[].content": { - type: "string" - }, - "tree[].mode": { - enum: ["100644", "100755", "040000", "160000", "120000"], - type: "string" - }, - "tree[].path": { - type: "string" - }, - "tree[].sha": { - allowNull: true, - type: "string" - }, - "tree[].type": { - enum: ["blob", "tree", "commit"], - type: "string" - } - }, - url: "/repos/:owner/:repo/git/trees" - }, - deleteRef: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/refs/:ref" - }, - getBlob: { - method: "GET", - params: { - file_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/blobs/:file_sha" - }, - getCommit: { - method: "GET", - params: { - commit_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/commits/:commit_sha" - }, - getRef: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/ref/:ref" - }, - getTag: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - tag_sha: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/tags/:tag_sha" - }, - getTree: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - recursive: { - enum: ["1"], - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - tree_sha: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/trees/:tree_sha" - }, - listMatchingRefs: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/matching-refs/:ref" - }, - listRefs: { - method: "GET", - params: { - namespace: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/refs/:namespace" - }, - updateRef: { - method: "PATCH", - params: { - force: { - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/refs/:ref" - } + createBlob: ["POST /repos/{owner}/{repo}/git/blobs"], + createCommit: ["POST /repos/{owner}/{repo}/git/commits"], + createRef: ["POST /repos/{owner}/{repo}/git/refs"], + createTag: ["POST /repos/{owner}/{repo}/git/tags"], + createTree: ["POST /repos/{owner}/{repo}/git/trees"], + deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"], + getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"], + getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"], + getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"], + getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"], + getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"], + listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"], + updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"] }, gitignore: { - getTemplate: { - method: "GET", - params: { - name: { - required: true, - type: "string" - } - }, - url: "/gitignore/templates/:name" - }, - listTemplates: { - method: "GET", - params: {}, - url: "/gitignore/templates" - } + getAllTemplates: ["GET /gitignore/templates"], + getTemplate: ["GET /gitignore/templates/{name}"] }, interactions: { - addOrUpdateRestrictionsForOrg: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "PUT", - params: { - limit: { - enum: ["existing_users", "contributors_only", "collaborators_only"], - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/interaction-limits" - }, - addOrUpdateRestrictionsForRepo: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "PUT", - params: { - limit: { - enum: ["existing_users", "contributors_only", "collaborators_only"], - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/interaction-limits" - }, - getRestrictionsForOrg: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/interaction-limits" - }, - getRestrictionsForRepo: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/interaction-limits" - }, - removeRestrictionsForOrg: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "DELETE", - params: { - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/interaction-limits" - }, - removeRestrictionsForRepo: { - headers: { - accept: "application/vnd.github.sombra-preview+json" - }, - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/interaction-limits" - } + getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"], + getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"], + getRestrictionsForYourPublicRepos: ["GET /user/interaction-limits"], + removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"], + removeRestrictionsForRepo: ["DELETE /repos/{owner}/{repo}/interaction-limits"], + removeRestrictionsForYourPublicRepos: ["DELETE /user/interaction-limits"], + setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"], + setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"], + setRestrictionsForYourPublicRepos: ["PUT /user/interaction-limits"] }, issues: { - addAssignees: { - method: "POST", - params: { - assignees: { - type: "string[]" - }, - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/assignees" - }, - addLabels: { - method: "POST", - params: { - issue_number: { - required: true, - type: "integer" - }, - labels: { - required: true, - type: "string[]" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - checkAssignee: { - method: "GET", - params: { - assignee: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/assignees/:assignee" - }, - create: { - method: "POST", - params: { - assignee: { - type: "string" - }, - assignees: { - type: "string[]" - }, - body: { - type: "string" - }, - labels: { - type: "string[]" - }, - milestone: { - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - title: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues" - }, - createComment: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/comments" - }, - createLabel: { - method: "POST", - params: { - color: { - required: true, - type: "string" - }, - description: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/labels" - }, - createMilestone: { - method: "POST", - params: { - description: { - type: "string" - }, - due_on: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["open", "closed"], - type: "string" - }, - title: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/milestones" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - deleteLabel: { - method: "DELETE", - params: { - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/labels/:name" - }, - deleteMilestone: { - method: "DELETE", - params: { - milestone_number: { - required: true, - type: "integer" - }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - }, - get: { - method: "GET", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number" - }, - getComment: { - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - getEvent: { - method: "GET", - params: { - event_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/events/:event_id" - }, - getLabel: { - method: "GET", - params: { - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/labels/:name" - }, - getMilestone: { - method: "GET", - params: { - milestone_number: { - required: true, - type: "integer" - }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - }, - list: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated", "comments"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" - } - }, - url: "/issues" - }, - listAssignees: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/assignees" - }, - listComments: { - method: "GET", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/comments" - }, - listCommentsForRepo: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated"], - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/comments" - }, - listEvents: { - method: "GET", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/events" - }, - listEventsForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/events" - }, - listEventsForTimeline: { - headers: { - accept: "application/vnd.github.mockingbird-preview+json" - }, - method: "GET", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/timeline" - }, - listForAuthenticatedUser: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated", "comments"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" - } - }, - url: "/user/issues" - }, - listForOrg: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { - type: "string" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated", "comments"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" - } - }, - url: "/orgs/:org/issues" - }, - listForRepo: { - method: "GET", - params: { - assignee: { - type: "string" - }, - creator: { - type: "string" - }, - direction: { - enum: ["asc", "desc"], - type: "string" - }, - labels: { - type: "string" - }, - mentioned: { - type: "string" - }, - milestone: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated", "comments"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" - } - }, - url: "/repos/:owner/:repo/issues" - }, - listLabelsForMilestone: { - method: "GET", - params: { - milestone_number: { - required: true, - type: "integer" - }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number/labels" - }, - listLabelsForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/labels" - }, - listLabelsOnIssue: { - method: "GET", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - listMilestonesForRepo: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sort: { - enum: ["due_on", "completeness"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" - } - }, - url: "/repos/:owner/:repo/milestones" - }, - lock: { - method: "PUT", - params: { - issue_number: { - required: true, - type: "integer" - }, - lock_reason: { - enum: ["off-topic", "too heated", "resolved", "spam"], - type: "string" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/lock" - }, - removeAssignees: { - method: "DELETE", - params: { - assignees: { - type: "string[]" - }, - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/assignees" - }, - removeLabel: { - method: "DELETE", - params: { - issue_number: { - required: true, - type: "integer" - }, - name: { - required: true, - type: "string" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels/:name" - }, - removeLabels: { - method: "DELETE", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - replaceLabels: { - method: "PUT", - params: { - issue_number: { - required: true, - type: "integer" - }, - labels: { - type: "string[]" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - unlock: { - method: "DELETE", - params: { - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/lock" - }, - update: { - method: "PATCH", - params: { - assignee: { - type: "string" - }, - assignees: { - type: "string[]" - }, - body: { - type: "string" - }, - issue_number: { - required: true, - type: "integer" - }, - labels: { - type: "string[]" - }, - milestone: { - allowNull: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["open", "closed"], - type: "string" - }, - title: { - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number" - }, - updateComment: { - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - updateLabel: { - method: "PATCH", - params: { - color: { - type: "string" - }, - current_name: { - required: true, - type: "string" - }, - description: { - type: "string" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/labels/:current_name" - }, - updateMilestone: { - method: "PATCH", - params: { - description: { - type: "string" - }, - due_on: { - type: "string" - }, - milestone_number: { - required: true, - type: "integer" - }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["open", "closed"], - type: "string" - }, - title: { - type: "string" - } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - } + addAssignees: ["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"], + addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"], + checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"], + create: ["POST /repos/{owner}/{repo}/issues"], + createComment: ["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"], + createLabel: ["POST /repos/{owner}/{repo}/labels"], + createMilestone: ["POST /repos/{owner}/{repo}/milestones"], + deleteComment: ["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"], + deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"], + deleteMilestone: ["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"], + get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"], + getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"], + getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"], + getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"], + getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"], + list: ["GET /issues"], + listAssignees: ["GET /repos/{owner}/{repo}/assignees"], + listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"], + listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"], + listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"], + listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"], + listEventsForTimeline: ["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline", { + mediaType: { + previews: ["mockingbird"] + } + }], + listForAuthenticatedUser: ["GET /user/issues"], + listForOrg: ["GET /orgs/{org}/issues"], + listForRepo: ["GET /repos/{owner}/{repo}/issues"], + listLabelsForMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"], + listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"], + listLabelsOnIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"], + listMilestones: ["GET /repos/{owner}/{repo}/milestones"], + lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"], + removeAllLabels: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"], + removeAssignees: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"], + removeLabel: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"], + setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"], + unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"], + update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"], + updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"], + updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"], + updateMilestone: ["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"] }, licenses: { - get: { - method: "GET", - params: { - license: { - required: true, - type: "string" - } - }, - url: "/licenses/:license" - }, - getForRepo: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/license" - }, - list: { - deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)", - method: "GET", - params: {}, - url: "/licenses" - }, - listCommonlyUsed: { - method: "GET", - params: {}, - url: "/licenses" - } + get: ["GET /licenses/{license}"], + getAllCommonlyUsed: ["GET /licenses"], + getForRepo: ["GET /repos/{owner}/{repo}/license"] }, markdown: { - render: { - method: "POST", - params: { - context: { - type: "string" - }, - mode: { - enum: ["markdown", "gfm"], - type: "string" - }, - text: { - required: true, - type: "string" - } - }, - url: "/markdown" - }, - renderRaw: { + render: ["POST /markdown"], + renderRaw: ["POST /markdown/raw", { headers: { "content-type": "text/plain; charset=utf-8" - }, - method: "POST", - params: { - data: { - mapTo: "data", - required: true, - type: "string" - } - }, - url: "/markdown/raw" - } + } + }] }, meta: { - get: { - method: "GET", - params: {}, - url: "/meta" - } - }, - migrations: { - cancelImport: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/import" - }, - deleteArchiveForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "DELETE", - params: { - migration_id: { - required: true, - type: "integer" - } - }, - url: "/user/migrations/:migration_id/archive" - }, - deleteArchiveForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "DELETE", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - downloadArchiveForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - getArchiveForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - } - }, - url: "/user/migrations/:migration_id/archive" - }, - getArchiveForOrg: { - deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)", - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - getCommitAuthors: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - } - }, - url: "/repos/:owner/:repo/import/authors" - }, - getImportProgress: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/import" - }, - getLargeFiles: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/import/large_files" - }, - getStatusForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - } - }, - url: "/user/migrations/:migration_id" - }, - getStatusForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/migrations/:migration_id" - }, - listForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/migrations" - }, - listForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/migrations" - }, - listReposForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/migrations/:migration_id/repositories" - }, - listReposForUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "GET", - params: { - migration_id: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/:migration_id/repositories" - }, - mapCommitAuthor: { - method: "PATCH", - params: { - author_id: { - required: true, - type: "integer" - }, - email: { - type: "string" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/import/authors/:author_id" - }, - setLfsPreference: { - method: "PATCH", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - use_lfs: { - enum: ["opt_in", "opt_out"], - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/import/lfs" - }, - startForAuthenticatedUser: { - method: "POST", - params: { - exclude_attachments: { - type: "boolean" - }, - lock_repositories: { - type: "boolean" - }, - repositories: { - required: true, - type: "string[]" - } - }, - url: "/user/migrations" - }, - startForOrg: { - method: "POST", - params: { - exclude_attachments: { - type: "boolean" - }, - lock_repositories: { - type: "boolean" - }, - org: { - required: true, - type: "string" - }, - repositories: { - required: true, - type: "string[]" - } - }, - url: "/orgs/:org/migrations" - }, - startImport: { - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - tfvc_project: { - type: "string" - }, - vcs: { - enum: ["subversion", "git", "mercurial", "tfvc"], - type: "string" - }, - vcs_password: { - type: "string" - }, - vcs_url: { - required: true, - type: "string" - }, - vcs_username: { - type: "string" - } - }, - url: "/repos/:owner/:repo/import" - }, - unlockRepoForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "DELETE", - params: { - migration_id: { - required: true, - type: "integer" - }, - repo_name: { - required: true, - type: "string" - } - }, - url: "/user/migrations/:migration_id/repos/:repo_name/lock" - }, - unlockRepoForOrg: { - headers: { - accept: "application/vnd.github.wyandotte-preview+json" - }, - method: "DELETE", - params: { - migration_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - repo_name: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock" - }, - updateImport: { - method: "PATCH", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - vcs_password: { - type: "string" - }, - vcs_username: { - type: "string" - } - }, - url: "/repos/:owner/:repo/import" - } - }, - oauthAuthorizations: { - checkAuthorization: { - deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)", - method: "GET", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - createAuthorization: { - deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization", - method: "POST", - params: { - client_id: { - type: "string" - }, - client_secret: { - type: "string" - }, - fingerprint: { - type: "string" - }, - note: { - required: true, - type: "string" - }, - note_url: { - type: "string" - }, - scopes: { - type: "string[]" - } - }, - url: "/authorizations" - }, - deleteAuthorization: { - deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization", - method: "DELETE", - params: { - authorization_id: { - required: true, - type: "integer" - } - }, - url: "/authorizations/:authorization_id" - }, - deleteGrant: { - deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant", - method: "DELETE", - params: { - grant_id: { - required: true, - type: "integer" - } - }, - url: "/applications/grants/:grant_id" - }, - getAuthorization: { - deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization", - method: "GET", - params: { - authorization_id: { - required: true, - type: "integer" - } - }, - url: "/authorizations/:authorization_id" - }, - getGrant: { - deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant", - method: "GET", - params: { - grant_id: { - required: true, - type: "integer" - } - }, - url: "/applications/grants/:grant_id" - }, - getOrCreateAuthorizationForApp: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app", - method: "PUT", - params: { - client_id: { - required: true, - type: "string" - }, - client_secret: { - required: true, - type: "string" - }, - fingerprint: { - type: "string" - }, - note: { - type: "string" - }, - note_url: { - type: "string" - }, - scopes: { - type: "string[]" - } - }, - url: "/authorizations/clients/:client_id" - }, - getOrCreateAuthorizationForAppAndFingerprint: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint", - method: "PUT", - params: { - client_id: { - required: true, - type: "string" - }, - client_secret: { - required: true, - type: "string" - }, - fingerprint: { - required: true, - type: "string" - }, - note: { - type: "string" - }, - note_url: { - type: "string" - }, - scopes: { - type: "string[]" - } - }, - url: "/authorizations/clients/:client_id/:fingerprint" - }, - getOrCreateAuthorizationForAppFingerprint: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)", - method: "PUT", - params: { - client_id: { - required: true, - type: "string" - }, - client_secret: { - required: true, - type: "string" - }, - fingerprint: { - required: true, - type: "string" - }, - note: { - type: "string" - }, - note_url: { - type: "string" - }, - scopes: { - type: "string[]" - } - }, - url: "/authorizations/clients/:client_id/:fingerprint" - }, - listAuthorizations: { - deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/authorizations" - }, - listGrants: { - deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/applications/grants" - }, - resetAuthorization: { - deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)", - method: "POST", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeAuthorizationForApplication: { - deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)", - method: "DELETE", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeGrantForApplication: { - deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)", - method: "DELETE", - params: { - access_token: { - required: true, - type: "string" - }, - client_id: { - required: true, - type: "string" - } - }, - url: "/applications/:client_id/grants/:access_token" - }, - updateAuthorization: { - deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization", - method: "PATCH", - params: { - add_scopes: { - type: "string[]" - }, - authorization_id: { - required: true, - type: "integer" - }, - fingerprint: { - type: "string" - }, - note: { - type: "string" - }, - note_url: { - type: "string" - }, - remove_scopes: { - type: "string[]" - }, - scopes: { - type: "string[]" - } - }, - url: "/authorizations/:authorization_id" - } - }, - orgs: { - addOrUpdateMembership: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - role: { - enum: ["admin", "member"], - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/memberships/:username" - }, - blockUser: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/blocks/:username" - }, - checkBlockedUser: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/blocks/:username" - }, - checkMembership: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/members/:username" - }, - checkPublicMembership: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/public_members/:username" - }, - concealMembership: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/public_members/:username" - }, - convertMemberToOutsideCollaborator: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/outside_collaborators/:username" - }, - createHook: { - method: "POST", - params: { - active: { - type: "boolean" - }, - config: { - required: true, - type: "object" - }, - "config.content_type": { - type: "string" - }, - "config.insecure_ssl": { - type: "string" - }, - "config.secret": { - type: "string" - }, - "config.url": { - required: true, - type: "string" - }, - events: { - type: "string[]" - }, - name: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/hooks" - }, - createInvitation: { - method: "POST", - params: { - email: { - type: "string" - }, - invitee_id: { - type: "integer" - }, - org: { - required: true, - type: "string" - }, - role: { - enum: ["admin", "direct_member", "billing_manager"], - type: "string" - }, - team_ids: { - type: "integer[]" - } - }, - url: "/orgs/:org/invitations" - }, - deleteHook: { - method: "DELETE", - params: { - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - get: { - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org" - }, - getHook: { - method: "GET", - params: { - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - getMembership: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/memberships/:username" - }, - getMembershipForAuthenticatedUser: { - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - url: "/user/memberships/orgs/:org" - }, - list: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "integer" - } - }, - url: "/organizations" - }, - listBlockedUsers: { - method: "GET", - params: { - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/blocks" - }, - listForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/orgs" - }, - listForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/orgs" - }, - listHooks: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/hooks" - }, - listInstallations: { - headers: { - accept: "application/vnd.github.machine-man-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/installations" - }, - listInvitationTeams: { - method: "GET", - params: { - invitation_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/invitations/:invitation_id/teams" - }, - listMembers: { - method: "GET", - params: { - filter: { - enum: ["2fa_disabled", "all"], - type: "string" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - role: { - enum: ["all", "admin", "member"], - type: "string" - } - }, - url: "/orgs/:org/members" - }, - listMemberships: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - state: { - enum: ["active", "pending"], - type: "string" - } - }, - url: "/user/memberships/orgs" - }, - listOutsideCollaborators: { - method: "GET", - params: { - filter: { - enum: ["2fa_disabled", "all"], - type: "string" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/outside_collaborators" - }, - listPendingInvitations: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/invitations" - }, - listPublicMembers: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/public_members" - }, - pingHook: { - method: "POST", - params: { - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/hooks/:hook_id/pings" - }, - publicizeMembership: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/public_members/:username" - }, - removeMember: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/members/:username" - }, - removeMembership: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/memberships/:username" - }, - removeOutsideCollaborator: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/outside_collaborators/:username" - }, - unblockUser: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/blocks/:username" - }, - update: { - method: "PATCH", - params: { - billing_email: { - type: "string" - }, - company: { - type: "string" - }, - default_repository_permission: { - enum: ["read", "write", "admin", "none"], - type: "string" - }, - description: { - type: "string" - }, - email: { - type: "string" - }, - has_organization_projects: { - type: "boolean" - }, - has_repository_projects: { - type: "boolean" - }, - location: { - type: "string" - }, - members_allowed_repository_creation_type: { - enum: ["all", "private", "none"], - type: "string" - }, - members_can_create_internal_repositories: { - type: "boolean" - }, - members_can_create_private_repositories: { - type: "boolean" - }, - members_can_create_public_repositories: { - type: "boolean" - }, - members_can_create_repositories: { - type: "boolean" - }, - name: { - type: "string" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org" - }, - updateHook: { - method: "PATCH", - params: { - active: { - type: "boolean" - }, - config: { - type: "object" - }, - "config.content_type": { - type: "string" - }, - "config.insecure_ssl": { - type: "string" - }, - "config.secret": { - type: "string" - }, - "config.url": { - required: true, - type: "string" - }, - events: { - type: "string[]" - }, - hook_id: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - updateMembership: { - method: "PATCH", - params: { - org: { - required: true, - type: "string" - }, - state: { - enum: ["active"], - required: true, - type: "string" - } - }, - url: "/user/memberships/orgs/:org" - } + get: ["GET /meta"], + getOctocat: ["GET /octocat"], + getZen: ["GET /zen"], + root: ["GET /"] }, - projects: { - addCollaborator: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PUT", - params: { - permission: { - enum: ["read", "write", "admin"], - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/projects/:project_id/collaborators/:username" - }, - createCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - column_id: { - required: true, - type: "integer" - }, - content_id: { - type: "integer" - }, - content_type: { - type: "string" - }, - note: { - type: "string" - } - }, - url: "/projects/columns/:column_id/cards" - }, - createColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - name: { - required: true, - type: "string" - }, - project_id: { - required: true, - type: "integer" - } - }, - url: "/projects/:project_id/columns" - }, - createForAuthenticatedUser: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - body: { - type: "string" - }, - name: { - required: true, - type: "string" - } - }, - url: "/user/projects" - }, - createForOrg: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - body: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/projects" - }, - createForRepo: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - body: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/projects" - }, - delete: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - project_id: { - required: true, - type: "integer" - } - }, - url: "/projects/:project_id" - }, - deleteCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - card_id: { - required: true, - type: "integer" - } - }, - url: "/projects/columns/cards/:card_id" - }, - deleteColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - column_id: { - required: true, - type: "integer" - } - }, - url: "/projects/columns/:column_id" - }, - get: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - project_id: { - required: true, - type: "integer" - } - }, - url: "/projects/:project_id" - }, - getCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - card_id: { - required: true, - type: "integer" - } - }, - url: "/projects/columns/cards/:card_id" - }, - getColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - column_id: { - required: true, - type: "integer" - } - }, - url: "/projects/columns/:column_id" - }, - listCards: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - archived_state: { - enum: ["all", "archived", "not_archived"], - type: "string" - }, - column_id: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/projects/columns/:column_id/cards" - }, - listCollaborators: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - affiliation: { - enum: ["outside", "direct", "all"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - project_id: { - required: true, - type: "integer" - } - }, - url: "/projects/:project_id/collaborators" - }, - listColumns: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - project_id: { - required: true, - type: "integer" - } - }, - url: "/projects/:project_id/columns" - }, - listForOrg: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" - } - }, - url: "/orgs/:org/projects" - }, - listForRepo: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" - } - }, - url: "/repos/:owner/:repo/projects" - }, - listForUser: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/projects" - }, - moveCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - card_id: { - required: true, - type: "integer" - }, - column_id: { - type: "integer" - }, - position: { - required: true, - type: "string", - validation: "^(top|bottom|after:\\d+)$" - } - }, - url: "/projects/columns/cards/:card_id/moves" - }, - moveColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "POST", - params: { - column_id: { - required: true, - type: "integer" - }, - position: { - required: true, - type: "string", - validation: "^(first|last|after:\\d+)$" - } - }, - url: "/projects/columns/:column_id/moves" - }, - removeCollaborator: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "DELETE", - params: { - project_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/projects/:project_id/collaborators/:username" - }, - reviewUserPermissionLevel: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - project_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/projects/:project_id/collaborators/:username/permission" - }, - update: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PATCH", - params: { - body: { - type: "string" - }, - name: { - type: "string" - }, - organization_permission: { - type: "string" - }, - private: { - type: "boolean" - }, - project_id: { - required: true, - type: "integer" - }, - state: { - enum: ["open", "closed"], - type: "string" - } - }, - url: "/projects/:project_id" - }, - updateCard: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PATCH", - params: { - archived: { - type: "boolean" - }, - card_id: { - required: true, - type: "integer" - }, - note: { - type: "string" - } - }, - url: "/projects/columns/cards/:card_id" - }, - updateColumn: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PATCH", - params: { - column_id: { - required: true, - type: "integer" - }, - name: { - required: true, - type: "string" - } - }, - url: "/projects/columns/:column_id" - } - }, - pulls: { - checkIfMerged: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/merge" - }, - create: { - method: "POST", - params: { - base: { - required: true, - type: "string" - }, - body: { - type: "string" - }, - draft: { - type: "boolean" - }, - head: { - required: true, - type: "string" - }, - maintainer_can_modify: { - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - title: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls" - }, - createComment: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - commit_id: { - required: true, - type: "string" - }, - in_reply_to: { - deprecated: true, - description: "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.", - type: "integer" - }, - line: { - type: "integer" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - position: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - side: { - enum: ["LEFT", "RIGHT"], - type: "string" - }, - start_line: { - type: "integer" - }, - start_side: { - enum: ["LEFT", "RIGHT", "side"], - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - createCommentReply: { - deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)", - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - commit_id: { - required: true, - type: "string" - }, - in_reply_to: { - deprecated: true, - description: "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.", - type: "integer" - }, - line: { - type: "integer" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - position: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - side: { - enum: ["LEFT", "RIGHT"], - type: "string" - }, - start_line: { - type: "integer" - }, - start_side: { - enum: ["LEFT", "RIGHT", "side"], - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - createFromIssue: { - deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request", - method: "POST", - params: { - base: { - required: true, - type: "string" - }, - draft: { - type: "boolean" - }, - head: { - required: true, - type: "string" - }, - issue: { - required: true, - type: "integer" - }, - maintainer_can_modify: { - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls" - }, - createReview: { - method: "POST", - params: { - body: { - type: "string" - }, - comments: { - type: "object[]" - }, - "comments[].body": { - required: true, - type: "string" - }, - "comments[].path": { - required: true, - type: "string" - }, - "comments[].position": { - required: true, - type: "integer" - }, - commit_id: { - type: "string" - }, - event: { - enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"], - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews" - }, - createReviewCommentReply: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies" - }, - createReviewRequest: { - method: "POST", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - reviewers: { - type: "string[]" - }, - team_reviewers: { - type: "string[]" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - deletePendingReview: { - method: "DELETE", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - }, - deleteReviewRequest: { - method: "DELETE", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - reviewers: { - type: "string[]" - }, - team_reviewers: { - type: "string[]" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - dismissReview: { - method: "PUT", - params: { - message: { - required: true, - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals" - }, - get: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number" - }, - getComment: { - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - getCommentsForReview: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments" - }, - getReview: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - }, - list: { - method: "GET", - params: { - base: { - type: "string" - }, - direction: { - enum: ["asc", "desc"], - type: "string" - }, - head: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sort: { - enum: ["created", "updated", "popularity", "long-running"], - type: "string" - }, - state: { - enum: ["open", "closed", "all"], - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls" - }, - listComments: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated"], - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - listCommentsForRepo: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - since: { - type: "string" - }, - sort: { - enum: ["created", "updated"], - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/comments" - }, - listCommits: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/commits" - }, - listFiles: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/files" - }, - listReviewRequests: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - listReviews: { - method: "GET", - params: { - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews" - }, - merge: { - method: "PUT", - params: { - commit_message: { - type: "string" - }, - commit_title: { - type: "string" - }, - merge_method: { - enum: ["merge", "squash", "rebase"], - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/merge" - }, - submitReview: { - method: "POST", - params: { - body: { - type: "string" - }, - event: { - enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"], - required: true, - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events" - }, - update: { - method: "PATCH", - params: { - base: { - type: "string" - }, - body: { - type: "string" - }, - maintainer_can_modify: { - type: "boolean" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["open", "closed"], - type: "string" - }, - title: { - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number" - }, - updateBranch: { - headers: { - accept: "application/vnd.github.lydian-preview+json" - }, - method: "PUT", - params: { - expected_head_sha: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/update-branch" - }, - updateComment: { - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - updateReview: { - method: "PUT", - params: { - body: { - required: true, - type: "string" - }, - number: { - alias: "pull_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - pull_number: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - review_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - } - }, - rateLimit: { - get: { - method: "GET", - params: {}, - url: "/rate_limit" - } - }, - reactions: { - createForCommitComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/comments/:comment_id/reactions" - }, - createForIssue: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/reactions" - }, - createForIssueComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions" - }, - createForPullRequestReviewComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" - }, - createForTeamDiscussion: { - deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - createForTeamDiscussionComment: { - deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionCommentInOrg: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionCommentLegacy: { - deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionInOrg: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" - }, - createForTeamDiscussionLegacy: { - deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "POST", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - delete: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "DELETE", - params: { - reaction_id: { - required: true, - type: "integer" - } - }, - url: "/reactions/:reaction_id" - }, - listForCommitComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/comments/:comment_id/reactions" - }, - listForIssue: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - issue_number: { - required: true, - type: "integer" - }, - number: { - alias: "issue_number", - deprecated: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/:issue_number/reactions" - }, - listForIssueComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions" - }, - listForPullRequestReviewComment: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" - }, - listForTeamDiscussion: { - deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - listForTeamDiscussionComment: { - deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionCommentInOrg: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionCommentLegacy: { - deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionInOrg: { - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" - }, - listForTeamDiscussionLegacy: { - deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy", - headers: { - accept: "application/vnd.github.squirrel-girl-preview+json" - }, - method: "GET", - params: { - content: { - enum: ["+1", "-1", "laugh", "confused", "heart", "hooray", "rocket", "eyes"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - } - }, - repos: { - acceptInvitation: { - method: "PATCH", - params: { - invitation_id: { - required: true, - type: "integer" - } - }, - url: "/user/repository_invitations/:invitation_id" - }, - addCollaborator: { - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - repo: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - addDeployKey: { - method: "POST", - params: { - key: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - read_only: { - type: "boolean" - }, - repo: { - required: true, - type: "string" - }, - title: { - type: "string" - } - }, - url: "/repos/:owner/:repo/keys" - }, - addProtectedBranchAdminEnforcement: { - method: "POST", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - addProtectedBranchAppRestrictions: { - method: "POST", - params: { - apps: { - mapTo: "data", - required: true, - type: "string[]" - }, - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - addProtectedBranchRequiredSignatures: { - headers: { - accept: "application/vnd.github.zzzax-preview+json" - }, - method: "POST", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - addProtectedBranchRequiredStatusChecksContexts: { - method: "POST", - params: { - branch: { - required: true, - type: "string" - }, - contexts: { - mapTo: "data", - required: true, - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - addProtectedBranchTeamRestrictions: { - method: "POST", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - teams: { - mapTo: "data", - required: true, - type: "string[]" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - addProtectedBranchUserRestrictions: { - method: "POST", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - users: { - mapTo: "data", - required: true, - type: "string[]" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - checkCollaborator: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - checkVulnerabilityAlerts: { - headers: { - accept: "application/vnd.github.dorian-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - compareCommits: { - method: "GET", - params: { - base: { - required: true, - type: "string" - }, - head: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/compare/:base...:head" - }, - createCommitComment: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - commit_sha: { - required: true, - type: "string" - }, - line: { - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - path: { - type: "string" - }, - position: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sha: { - alias: "commit_sha", - deprecated: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/comments" - }, - createDeployment: { - method: "POST", - params: { - auto_merge: { - type: "boolean" - }, - description: { - type: "string" - }, - environment: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - payload: { - type: "string" - }, - production_environment: { - type: "boolean" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - required_contexts: { - type: "string[]" - }, - task: { - type: "string" - }, - transient_environment: { - type: "boolean" - } - }, - url: "/repos/:owner/:repo/deployments" - }, - createDeploymentStatus: { - method: "POST", - params: { - auto_inactive: { - type: "boolean" - }, - deployment_id: { - required: true, - type: "integer" - }, - description: { - type: "string" - }, - environment: { - enum: ["production", "staging", "qa"], - type: "string" - }, - environment_url: { - type: "string" - }, - log_url: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - state: { - enum: ["error", "failure", "inactive", "in_progress", "queued", "pending", "success"], - required: true, - type: "string" - }, - target_url: { - type: "string" - } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses" - }, - createDispatchEvent: { - method: "POST", - params: { - client_payload: { - type: "object" - }, - event_type: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/dispatches" - }, - createFile: { - deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)", - method: "PUT", - params: { - author: { - type: "object" - }, - "author.email": { - required: true, - type: "string" - }, - "author.name": { - required: true, - type: "string" - }, - branch: { - type: "string" - }, - committer: { - type: "object" - }, - "committer.email": { - required: true, - type: "string" - }, - "committer.name": { - required: true, - type: "string" - }, - content: { - required: true, - type: "string" - }, - message: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" - } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - createForAuthenticatedUser: { - method: "POST", - params: { - allow_merge_commit: { - type: "boolean" - }, - allow_rebase_merge: { - type: "boolean" - }, - allow_squash_merge: { - type: "boolean" - }, - auto_init: { - type: "boolean" - }, - delete_branch_on_merge: { - type: "boolean" - }, - description: { - type: "string" - }, - gitignore_template: { - type: "string" - }, - has_issues: { - type: "boolean" - }, - has_projects: { - type: "boolean" - }, - has_wiki: { - type: "boolean" - }, - homepage: { - type: "string" - }, - is_template: { - type: "boolean" - }, - license_template: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - team_id: { - type: "integer" - }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" - } - }, - url: "/user/repos" - }, - createFork: { - method: "POST", - params: { - organization: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/forks" - }, - createHook: { - method: "POST", - params: { - active: { - type: "boolean" - }, - config: { - required: true, - type: "object" - }, - "config.content_type": { - type: "string" - }, - "config.insecure_ssl": { - type: "string" - }, - "config.secret": { - type: "string" - }, - "config.url": { - required: true, - type: "string" - }, - events: { - type: "string[]" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/hooks" - }, - createInOrg: { - method: "POST", - params: { - allow_merge_commit: { - type: "boolean" - }, - allow_rebase_merge: { - type: "boolean" - }, - allow_squash_merge: { - type: "boolean" - }, - auto_init: { - type: "boolean" - }, - delete_branch_on_merge: { - type: "boolean" - }, - description: { - type: "string" - }, - gitignore_template: { - type: "string" - }, - has_issues: { - type: "boolean" - }, - has_projects: { - type: "boolean" - }, - has_wiki: { - type: "boolean" - }, - homepage: { - type: "string" - }, - is_template: { - type: "boolean" - }, - license_template: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - team_id: { - type: "integer" - }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" - } - }, - url: "/orgs/:org/repos" - }, - createOrUpdateFile: { - method: "PUT", - params: { - author: { - type: "object" - }, - "author.email": { - required: true, - type: "string" - }, - "author.name": { - required: true, - type: "string" - }, - branch: { - type: "string" - }, - committer: { - type: "object" - }, - "committer.email": { - required: true, - type: "string" - }, - "committer.name": { - required: true, - type: "string" - }, - content: { - required: true, - type: "string" - }, - message: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" - } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - createRelease: { - method: "POST", - params: { - body: { - type: "string" - }, - draft: { - type: "boolean" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - prerelease: { - type: "boolean" - }, - repo: { - required: true, - type: "string" - }, - tag_name: { - required: true, - type: "string" - }, - target_commitish: { - type: "string" - } - }, - url: "/repos/:owner/:repo/releases" - }, - createStatus: { - method: "POST", - params: { - context: { - type: "string" - }, - description: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" - }, - state: { - enum: ["error", "failure", "pending", "success"], - required: true, - type: "string" - }, - target_url: { - type: "string" - } - }, - url: "/repos/:owner/:repo/statuses/:sha" - }, - createUsingTemplate: { - headers: { - accept: "application/vnd.github.baptiste-preview+json" - }, - method: "POST", - params: { - description: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - owner: { - type: "string" - }, - private: { - type: "boolean" - }, - template_owner: { - required: true, - type: "string" - }, - template_repo: { - required: true, - type: "string" - } - }, - url: "/repos/:template_owner/:template_repo/generate" - }, - declineInvitation: { - method: "DELETE", - params: { - invitation_id: { - required: true, - type: "integer" - } - }, - url: "/user/repository_invitations/:invitation_id" - }, - delete: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo" - }, - deleteCommitComment: { - method: "DELETE", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - deleteDownload: { - method: "DELETE", - params: { - download_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/downloads/:download_id" - }, - deleteFile: { - method: "DELETE", - params: { - author: { - type: "object" - }, - "author.email": { - type: "string" - }, - "author.name": { - type: "string" - }, - branch: { - type: "string" - }, - committer: { - type: "object" - }, - "committer.email": { - type: "string" - }, - "committer.name": { - type: "string" - }, - message: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - deleteHook: { - method: "DELETE", - params: { - hook_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - deleteInvitation: { - method: "DELETE", - params: { - invitation_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/invitations/:invitation_id" - }, - deleteRelease: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - release_id: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - deleteReleaseAsset: { - method: "DELETE", - params: { - asset_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - disableAutomatedSecurityFixes: { - headers: { - accept: "application/vnd.github.london-preview+json" - }, - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/automated-security-fixes" - }, - disablePagesSite: { - headers: { - accept: "application/vnd.github.switcheroo-preview+json" - }, - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pages" - }, - disableVulnerabilityAlerts: { - headers: { - accept: "application/vnd.github.dorian-preview+json" - }, - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - enableAutomatedSecurityFixes: { - headers: { - accept: "application/vnd.github.london-preview+json" - }, - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/automated-security-fixes" - }, - enablePagesSite: { - headers: { - accept: "application/vnd.github.switcheroo-preview+json" - }, - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - source: { - type: "object" - }, - "source.branch": { - enum: ["master", "gh-pages"], - type: "string" - }, - "source.path": { - type: "string" - } - }, - url: "/repos/:owner/:repo/pages" - }, - enableVulnerabilityAlerts: { - headers: { - accept: "application/vnd.github.dorian-preview+json" - }, - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - get: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo" - }, - getAppsWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - getArchiveLink: { - method: "GET", - params: { - archive_format: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/:archive_format/:ref" - }, - getBranch: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch" - }, - getBranchProtection: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - getClones: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - per: { - enum: ["day", "week"], - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/traffic/clones" - }, - getCodeFrequencyStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/stats/code_frequency" - }, - getCollaboratorPermissionLevel: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/collaborators/:username/permission" - }, - getCombinedStatusForRef: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/commits/:ref/status" - }, - getCommit: { - method: "GET", - params: { - commit_sha: { - alias: "ref", - deprecated: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - alias: "ref", - deprecated: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/commits/:ref" - }, - getCommitActivityStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/stats/commit_activity" - }, - getCommitComment: { - method: "GET", - params: { - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - getCommitRefSha: { - deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit", - headers: { - accept: "application/vnd.github.v3.sha" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/commits/:ref" - }, - getContents: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - ref: { - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - getContributorsStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/stats/contributors" - }, - getDeployKey: { - method: "GET", - params: { - key_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/keys/:key_id" - }, - getDeployment: { - method: "GET", - params: { - deployment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id" - }, - getDeploymentStatus: { - method: "GET", - params: { - deployment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - status_id: { - required: true, - type: "integer" - } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id" - }, - getDownload: { - method: "GET", - params: { - download_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/downloads/:download_id" - }, - getHook: { - method: "GET", - params: { - hook_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - getLatestPagesBuild: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pages/builds/latest" - }, - getLatestRelease: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/releases/latest" - }, - getPages: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pages" - }, - getPagesBuild: { - method: "GET", - params: { - build_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pages/builds/:build_id" - }, - getParticipationStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/stats/participation" - }, - getProtectedBranchAdminEnforcement: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - getProtectedBranchPullRequestReviewEnforcement: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - getProtectedBranchRequiredSignatures: { - headers: { - accept: "application/vnd.github.zzzax-preview+json" - }, - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - getProtectedBranchRequiredStatusChecks: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - getProtectedBranchRestrictions: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - getPunchCardStats: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/stats/punch_card" - }, - getReadme: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - ref: { - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/readme" - }, - getRelease: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - release_id: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - getReleaseAsset: { - method: "GET", - params: { - asset_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - getReleaseByTag: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - tag: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/releases/tags/:tag" - }, - getTeamsWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - getTopPaths: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/traffic/popular/paths" - }, - getTopReferrers: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/traffic/popular/referrers" - }, - getUsersWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - getViews: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - per: { - enum: ["day", "week"], - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/traffic/views" - }, - list: { - method: "GET", - params: { - affiliation: { - type: "string" - }, - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { - enum: ["all", "owner", "public", "private", "member"], - type: "string" - }, - visibility: { - enum: ["all", "public", "private"], - type: "string" - } - }, - url: "/user/repos" - }, - listAppsWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - listAssetsForRelease: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - release_id: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/releases/:release_id/assets" - }, - listBranches: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - protected: { - type: "boolean" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches" - }, - listBranchesForHeadCommit: { - headers: { - accept: "application/vnd.github.groot-preview+json" - }, - method: "GET", - params: { - commit_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head" - }, - listCollaborators: { - method: "GET", - params: { - affiliation: { - enum: ["outside", "direct", "all"], - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/collaborators" - }, - listCommentsForCommit: { - method: "GET", - params: { - commit_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - alias: "commit_sha", - deprecated: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/comments" - }, - listCommitComments: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/comments" - }, - listCommits: { - method: "GET", - params: { - author: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - path: { - type: "string" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" - }, - since: { - type: "string" - }, - until: { - type: "string" - } - }, - url: "/repos/:owner/:repo/commits" - }, - listContributors: { - method: "GET", - params: { - anon: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/contributors" - }, - listDeployKeys: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/keys" - }, - listDeploymentStatuses: { - method: "GET", - params: { - deployment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses" - }, - listDeployments: { - method: "GET", - params: { - environment: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" - }, - task: { - type: "string" - } - }, - url: "/repos/:owner/:repo/deployments" - }, - listDownloads: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/downloads" - }, - listForOrg: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { - enum: ["all", "public", "private", "forks", "sources", "member", "internal"], - type: "string" - } - }, - url: "/orgs/:org/repos" - }, - listForUser: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { - enum: ["all", "owner", "member"], - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/repos" - }, - listForks: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - sort: { - enum: ["newest", "oldest", "stargazers"], - type: "string" - } - }, - url: "/repos/:owner/:repo/forks" - }, - listHooks: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/hooks" - }, - listInvitations: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/invitations" - }, - listInvitationsForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/repository_invitations" - }, - listLanguages: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/languages" - }, - listPagesBuilds: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pages/builds" - }, - listProtectedBranchRequiredStatusChecksContexts: { - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - listProtectedBranchTeamRestrictions: { - deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)", - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - listProtectedBranchUserRestrictions: { - deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)", - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - listPublic: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "integer" - } - }, - url: "/repositories" - }, - listPullRequestsAssociatedWithCommit: { - headers: { - accept: "application/vnd.github.groot-preview+json" - }, - method: "GET", - params: { - commit_sha: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/pulls" - }, - listReleases: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/releases" - }, - listStatusesForRef: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - ref: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/commits/:ref/statuses" - }, - listTags: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/tags" - }, - listTeams: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/teams" - }, - listTeamsWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - listTopics: { - headers: { - accept: "application/vnd.github.mercy-preview+json" - }, - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/topics" - }, - listUsersWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - merge: { - method: "POST", - params: { - base: { - required: true, - type: "string" - }, - commit_message: { - type: "string" - }, - head: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/merges" - }, - pingHook: { - method: "POST", - params: { - hook_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/hooks/:hook_id/pings" - }, - removeBranchProtection: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - removeCollaborator: { - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - removeDeployKey: { - method: "DELETE", - params: { - key_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/keys/:key_id" - }, - removeProtectedBranchAdminEnforcement: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - removeProtectedBranchAppRestrictions: { - method: "DELETE", - params: { - apps: { - mapTo: "data", - required: true, - type: "string[]" - }, - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - removeProtectedBranchPullRequestReviewEnforcement: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - removeProtectedBranchRequiredSignatures: { - headers: { - accept: "application/vnd.github.zzzax-preview+json" - }, - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - removeProtectedBranchRequiredStatusChecks: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - removeProtectedBranchRequiredStatusChecksContexts: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - contexts: { - mapTo: "data", - required: true, - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - removeProtectedBranchRestrictions: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - removeProtectedBranchTeamRestrictions: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - teams: { - mapTo: "data", - required: true, - type: "string[]" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - removeProtectedBranchUserRestrictions: { - method: "DELETE", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - users: { - mapTo: "data", - required: true, - type: "string[]" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - replaceProtectedBranchAppRestrictions: { - method: "PUT", - params: { - apps: { - mapTo: "data", - required: true, - type: "string[]" - }, - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - replaceProtectedBranchRequiredStatusChecksContexts: { - method: "PUT", - params: { - branch: { - required: true, - type: "string" - }, - contexts: { - mapTo: "data", - required: true, - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - replaceProtectedBranchTeamRestrictions: { - method: "PUT", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - teams: { - mapTo: "data", - required: true, - type: "string[]" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - replaceProtectedBranchUserRestrictions: { - method: "PUT", - params: { - branch: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - users: { - mapTo: "data", - required: true, - type: "string[]" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - replaceTopics: { - headers: { - accept: "application/vnd.github.mercy-preview+json" - }, - method: "PUT", - params: { - names: { - required: true, - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/topics" - }, - requestPageBuild: { - method: "POST", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/pages/builds" - }, - retrieveCommunityProfileMetrics: { - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/community/profile" - }, - testPushHook: { - method: "POST", - params: { - hook_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/hooks/:hook_id/tests" - }, - transfer: { - method: "POST", - params: { - new_owner: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_ids: { - type: "integer[]" - } - }, - url: "/repos/:owner/:repo/transfer" - }, - update: { - method: "PATCH", - params: { - allow_merge_commit: { - type: "boolean" - }, - allow_rebase_merge: { - type: "boolean" - }, - allow_squash_merge: { - type: "boolean" - }, - archived: { - type: "boolean" - }, - default_branch: { - type: "string" - }, - delete_branch_on_merge: { - type: "boolean" - }, - description: { - type: "string" - }, - has_issues: { - type: "boolean" - }, - has_projects: { - type: "boolean" - }, - has_wiki: { - type: "boolean" - }, - homepage: { - type: "string" - }, - is_template: { - type: "boolean" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - repo: { - required: true, - type: "string" - }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" - } - }, - url: "/repos/:owner/:repo" - }, - updateBranchProtection: { - method: "PUT", - params: { - allow_deletions: { - type: "boolean" - }, - allow_force_pushes: { - allowNull: true, - type: "boolean" - }, - branch: { - required: true, - type: "string" - }, - enforce_admins: { - allowNull: true, - required: true, - type: "boolean" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - required_linear_history: { - type: "boolean" - }, - required_pull_request_reviews: { - allowNull: true, - required: true, - type: "object" - }, - "required_pull_request_reviews.dismiss_stale_reviews": { - type: "boolean" - }, - "required_pull_request_reviews.dismissal_restrictions": { - type: "object" - }, - "required_pull_request_reviews.dismissal_restrictions.teams": { - type: "string[]" - }, - "required_pull_request_reviews.dismissal_restrictions.users": { - type: "string[]" - }, - "required_pull_request_reviews.require_code_owner_reviews": { - type: "boolean" - }, - "required_pull_request_reviews.required_approving_review_count": { - type: "integer" - }, - required_status_checks: { - allowNull: true, - required: true, - type: "object" - }, - "required_status_checks.contexts": { - required: true, - type: "string[]" - }, - "required_status_checks.strict": { - required: true, - type: "boolean" - }, - restrictions: { - allowNull: true, - required: true, - type: "object" - }, - "restrictions.apps": { - type: "string[]" - }, - "restrictions.teams": { - required: true, - type: "string[]" - }, - "restrictions.users": { - required: true, - type: "string[]" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - updateCommitComment: { - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - updateFile: { - deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)", - method: "PUT", - params: { - author: { - type: "object" - }, - "author.email": { - required: true, - type: "string" - }, - "author.name": { - required: true, - type: "string" - }, - branch: { - type: "string" - }, - committer: { - type: "object" - }, - "committer.email": { - required: true, - type: "string" - }, - "committer.name": { - required: true, - type: "string" - }, - content: { - required: true, - type: "string" - }, - message: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - path: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - sha: { - type: "string" - } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - updateHook: { - method: "PATCH", - params: { - active: { - type: "boolean" - }, - add_events: { - type: "string[]" - }, - config: { - type: "object" - }, - "config.content_type": { - type: "string" - }, - "config.insecure_ssl": { - type: "string" - }, - "config.secret": { - type: "string" - }, - "config.url": { - required: true, - type: "string" - }, - events: { - type: "string[]" - }, - hook_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - remove_events: { - type: "string[]" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - updateInformationAboutPagesSite: { - method: "PUT", - params: { - cname: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - source: { - enum: ['"gh-pages"', '"master"', '"master /docs"'], - type: "string" - } - }, - url: "/repos/:owner/:repo/pages" - }, - updateInvitation: { - method: "PATCH", - params: { - invitation_id: { - required: true, - type: "integer" - }, - owner: { - required: true, - type: "string" - }, - permissions: { - enum: ["read", "write", "admin"], - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/invitations/:invitation_id" - }, - updateProtectedBranchPullRequestReviewEnforcement: { - method: "PATCH", - params: { - branch: { - required: true, - type: "string" - }, - dismiss_stale_reviews: { - type: "boolean" - }, - dismissal_restrictions: { - type: "object" - }, - "dismissal_restrictions.teams": { - type: "string[]" - }, - "dismissal_restrictions.users": { - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - require_code_owner_reviews: { - type: "boolean" - }, - required_approving_review_count: { - type: "integer" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - updateProtectedBranchRequiredStatusChecks: { - method: "PATCH", - params: { - branch: { - required: true, - type: "string" - }, - contexts: { - type: "string[]" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - strict: { - type: "boolean" - } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - updateRelease: { - method: "PATCH", - params: { - body: { - type: "string" - }, - draft: { - type: "boolean" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - prerelease: { - type: "boolean" - }, - release_id: { - required: true, - type: "integer" - }, - repo: { - required: true, - type: "string" - }, - tag_name: { - type: "string" - }, - target_commitish: { - type: "string" - } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - updateReleaseAsset: { - method: "PATCH", - params: { - asset_id: { - required: true, - type: "integer" - }, - label: { - type: "string" - }, - name: { - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - uploadReleaseAsset: { - method: "POST", - params: { - data: { - mapTo: "data", - required: true, - type: "string | object" - }, - file: { - alias: "data", - deprecated: true, - type: "string | object" - }, - headers: { - required: true, - type: "object" - }, - "headers.content-length": { - required: true, - type: "integer" - }, - "headers.content-type": { - required: true, - type: "string" - }, - label: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - url: { - required: true, - type: "string" - } - }, - url: ":url" - } + migrations: { + cancelImport: ["DELETE /repos/{owner}/{repo}/import"], + deleteArchiveForAuthenticatedUser: ["DELETE /user/migrations/{migration_id}/archive", { + mediaType: { + previews: ["wyandotte"] + } + }], + deleteArchiveForOrg: ["DELETE /orgs/{org}/migrations/{migration_id}/archive", { + mediaType: { + previews: ["wyandotte"] + } + }], + downloadArchiveForOrg: ["GET /orgs/{org}/migrations/{migration_id}/archive", { + mediaType: { + previews: ["wyandotte"] + } + }], + getArchiveForAuthenticatedUser: ["GET /user/migrations/{migration_id}/archive", { + mediaType: { + previews: ["wyandotte"] + } + }], + getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"], + getImportStatus: ["GET /repos/{owner}/{repo}/import"], + getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"], + getStatusForAuthenticatedUser: ["GET /user/migrations/{migration_id}", { + mediaType: { + previews: ["wyandotte"] + } + }], + getStatusForOrg: ["GET /orgs/{org}/migrations/{migration_id}", { + mediaType: { + previews: ["wyandotte"] + } + }], + listForAuthenticatedUser: ["GET /user/migrations", { + mediaType: { + previews: ["wyandotte"] + } + }], + listForOrg: ["GET /orgs/{org}/migrations", { + mediaType: { + previews: ["wyandotte"] + } + }], + listReposForOrg: ["GET /orgs/{org}/migrations/{migration_id}/repositories", { + mediaType: { + previews: ["wyandotte"] + } + }], + listReposForUser: ["GET /user/migrations/{migration_id}/repositories", { + mediaType: { + previews: ["wyandotte"] + } + }], + mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"], + setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"], + startForAuthenticatedUser: ["POST /user/migrations"], + startForOrg: ["POST /orgs/{org}/migrations"], + startImport: ["PUT /repos/{owner}/{repo}/import"], + unlockRepoForAuthenticatedUser: ["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock", { + mediaType: { + previews: ["wyandotte"] + } + }], + unlockRepoForOrg: ["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock", { + mediaType: { + previews: ["wyandotte"] + } + }], + updateImport: ["PATCH /repos/{owner}/{repo}/import"] + }, + orgs: { + blockUser: ["PUT /orgs/{org}/blocks/{username}"], + checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"], + checkMembershipForUser: ["GET /orgs/{org}/members/{username}"], + checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"], + convertMemberToOutsideCollaborator: ["PUT /orgs/{org}/outside_collaborators/{username}"], + createInvitation: ["POST /orgs/{org}/invitations"], + createWebhook: ["POST /orgs/{org}/hooks"], + deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"], + get: ["GET /orgs/{org}"], + getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"], + getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"], + getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"], + getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"], + list: ["GET /organizations"], + listAppInstallations: ["GET /orgs/{org}/installations"], + listBlockedUsers: ["GET /orgs/{org}/blocks"], + listForAuthenticatedUser: ["GET /user/orgs"], + listForUser: ["GET /users/{username}/orgs"], + listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"], + listMembers: ["GET /orgs/{org}/members"], + listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"], + listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"], + listPendingInvitations: ["GET /orgs/{org}/invitations"], + listPublicMembers: ["GET /orgs/{org}/public_members"], + listWebhooks: ["GET /orgs/{org}/hooks"], + pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"], + removeMember: ["DELETE /orgs/{org}/members/{username}"], + removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"], + removeOutsideCollaborator: ["DELETE /orgs/{org}/outside_collaborators/{username}"], + removePublicMembershipForAuthenticatedUser: ["DELETE /orgs/{org}/public_members/{username}"], + setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"], + setPublicMembershipForAuthenticatedUser: ["PUT /orgs/{org}/public_members/{username}"], + unblockUser: ["DELETE /orgs/{org}/blocks/{username}"], + update: ["PATCH /orgs/{org}"], + updateMembershipForAuthenticatedUser: ["PATCH /user/memberships/orgs/{org}"], + updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"], + updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"] + }, + projects: { + addCollaborator: ["PUT /projects/{project_id}/collaborators/{username}", { + mediaType: { + previews: ["inertia"] + } + }], + createCard: ["POST /projects/columns/{column_id}/cards", { + mediaType: { + previews: ["inertia"] + } + }], + createColumn: ["POST /projects/{project_id}/columns", { + mediaType: { + previews: ["inertia"] + } + }], + createForAuthenticatedUser: ["POST /user/projects", { + mediaType: { + previews: ["inertia"] + } + }], + createForOrg: ["POST /orgs/{org}/projects", { + mediaType: { + previews: ["inertia"] + } + }], + createForRepo: ["POST /repos/{owner}/{repo}/projects", { + mediaType: { + previews: ["inertia"] + } + }], + delete: ["DELETE /projects/{project_id}", { + mediaType: { + previews: ["inertia"] + } + }], + deleteCard: ["DELETE /projects/columns/cards/{card_id}", { + mediaType: { + previews: ["inertia"] + } + }], + deleteColumn: ["DELETE /projects/columns/{column_id}", { + mediaType: { + previews: ["inertia"] + } + }], + get: ["GET /projects/{project_id}", { + mediaType: { + previews: ["inertia"] + } + }], + getCard: ["GET /projects/columns/cards/{card_id}", { + mediaType: { + previews: ["inertia"] + } + }], + getColumn: ["GET /projects/columns/{column_id}", { + mediaType: { + previews: ["inertia"] + } + }], + getPermissionForUser: ["GET /projects/{project_id}/collaborators/{username}/permission", { + mediaType: { + previews: ["inertia"] + } + }], + listCards: ["GET /projects/columns/{column_id}/cards", { + mediaType: { + previews: ["inertia"] + } + }], + listCollaborators: ["GET /projects/{project_id}/collaborators", { + mediaType: { + previews: ["inertia"] + } + }], + listColumns: ["GET /projects/{project_id}/columns", { + mediaType: { + previews: ["inertia"] + } + }], + listForOrg: ["GET /orgs/{org}/projects", { + mediaType: { + previews: ["inertia"] + } + }], + listForRepo: ["GET /repos/{owner}/{repo}/projects", { + mediaType: { + previews: ["inertia"] + } + }], + listForUser: ["GET /users/{username}/projects", { + mediaType: { + previews: ["inertia"] + } + }], + moveCard: ["POST /projects/columns/cards/{card_id}/moves", { + mediaType: { + previews: ["inertia"] + } + }], + moveColumn: ["POST /projects/columns/{column_id}/moves", { + mediaType: { + previews: ["inertia"] + } + }], + removeCollaborator: ["DELETE /projects/{project_id}/collaborators/{username}", { + mediaType: { + previews: ["inertia"] + } + }], + update: ["PATCH /projects/{project_id}", { + mediaType: { + previews: ["inertia"] + } + }], + updateCard: ["PATCH /projects/columns/cards/{card_id}", { + mediaType: { + previews: ["inertia"] + } + }], + updateColumn: ["PATCH /projects/columns/{column_id}", { + mediaType: { + previews: ["inertia"] + } + }] + }, + pulls: { + checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"], + create: ["POST /repos/{owner}/{repo}/pulls"], + createReplyForReviewComment: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"], + createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"], + createReviewComment: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"], + deletePendingReview: ["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"], + deleteReviewComment: ["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"], + dismissReview: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"], + get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"], + getReview: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"], + getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"], + list: ["GET /repos/{owner}/{repo}/pulls"], + listCommentsForReview: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"], + listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"], + listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"], + listRequestedReviewers: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"], + listReviewComments: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"], + listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"], + listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"], + merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"], + removeRequestedReviewers: ["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"], + requestReviewers: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"], + submitReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"], + update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"], + updateBranch: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch", { + mediaType: { + previews: ["lydian"] + } + }], + updateReview: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"], + updateReviewComment: ["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"] + }, + rateLimit: { + get: ["GET /rate_limit"] + }, + reactions: { + createForCommitComment: ["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + createForIssue: ["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + createForIssueComment: ["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + createForPullRequestReviewComment: ["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + createForTeamDiscussionCommentInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + createForTeamDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + deleteForCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + deleteForIssue: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + deleteForIssueComment: ["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + deleteForPullRequestComment: ["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + deleteForTeamDiscussion: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + deleteForTeamDiscussionComment: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + deleteLegacy: ["DELETE /reactions/{reaction_id}", { + mediaType: { + previews: ["squirrel-girl"] + } + }, { + deprecated: "octokit.reactions.deleteLegacy() is deprecated, see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy" + }], + listForCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + listForIssue: ["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + listForIssueComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + listForPullRequestReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + listForTeamDiscussionCommentInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }], + listForTeamDiscussionInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", { + mediaType: { + previews: ["squirrel-girl"] + } + }] + }, + repos: { + acceptInvitation: ["PATCH /user/repository_invitations/{invitation_id}"], + addAppAccessRestrictions: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", {}, { + mapToData: "apps" + }], + addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"], + addStatusCheckContexts: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", {}, { + mapToData: "contexts" + }], + addTeamAccessRestrictions: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", {}, { + mapToData: "teams" + }], + addUserAccessRestrictions: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", {}, { + mapToData: "users" + }], + checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"], + checkVulnerabilityAlerts: ["GET /repos/{owner}/{repo}/vulnerability-alerts", { + mediaType: { + previews: ["dorian"] + } + }], + compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"], + createCommitComment: ["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"], + createCommitSignatureProtection: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", { + mediaType: { + previews: ["zzzax"] + } + }], + createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"], + createDeployKey: ["POST /repos/{owner}/{repo}/keys"], + createDeployment: ["POST /repos/{owner}/{repo}/deployments"], + createDeploymentStatus: ["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"], + createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"], + createForAuthenticatedUser: ["POST /user/repos"], + createFork: ["POST /repos/{owner}/{repo}/forks"], + createInOrg: ["POST /orgs/{org}/repos"], + createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"], + createPagesSite: ["POST /repos/{owner}/{repo}/pages", { + mediaType: { + previews: ["switcheroo"] + } + }], + createRelease: ["POST /repos/{owner}/{repo}/releases"], + createUsingTemplate: ["POST /repos/{template_owner}/{template_repo}/generate", { + mediaType: { + previews: ["baptiste"] + } + }], + createWebhook: ["POST /repos/{owner}/{repo}/hooks"], + declineInvitation: ["DELETE /user/repository_invitations/{invitation_id}"], + delete: ["DELETE /repos/{owner}/{repo}"], + deleteAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"], + deleteAdminBranchProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"], + deleteBranchProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"], + deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"], + deleteCommitSignatureProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", { + mediaType: { + previews: ["zzzax"] + } + }], + deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"], + deleteDeployment: ["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"], + deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"], + deleteInvitation: ["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"], + deletePagesSite: ["DELETE /repos/{owner}/{repo}/pages", { + mediaType: { + previews: ["switcheroo"] + } + }], + deletePullRequestReviewProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"], + deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"], + deleteReleaseAsset: ["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"], + deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"], + disableAutomatedSecurityFixes: ["DELETE /repos/{owner}/{repo}/automated-security-fixes", { + mediaType: { + previews: ["london"] + } + }], + disableVulnerabilityAlerts: ["DELETE /repos/{owner}/{repo}/vulnerability-alerts", { + mediaType: { + previews: ["dorian"] + } + }], + downloadArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}", {}, { + renamed: ["repos", "downloadZipballArchive"] + }], + downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"], + downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"], + enableAutomatedSecurityFixes: ["PUT /repos/{owner}/{repo}/automated-security-fixes", { + mediaType: { + previews: ["london"] + } + }], + enableVulnerabilityAlerts: ["PUT /repos/{owner}/{repo}/vulnerability-alerts", { + mediaType: { + previews: ["dorian"] + } + }], + get: ["GET /repos/{owner}/{repo}"], + getAccessRestrictions: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"], + getAdminBranchProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"], + getAllStatusCheckContexts: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"], + getAllTopics: ["GET /repos/{owner}/{repo}/topics", { + mediaType: { + previews: ["mercy"] + } + }], + getAppsWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"], + getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"], + getBranchProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection"], + getClones: ["GET /repos/{owner}/{repo}/traffic/clones"], + getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"], + getCollaboratorPermissionLevel: ["GET /repos/{owner}/{repo}/collaborators/{username}/permission"], + getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"], + getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"], + getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"], + getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"], + getCommitSignatureProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", { + mediaType: { + previews: ["zzzax"] + } + }], + getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"], + getContent: ["GET /repos/{owner}/{repo}/contents/{path}"], + getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"], + getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"], + getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"], + getDeploymentStatus: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"], + getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"], + getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"], + getPages: ["GET /repos/{owner}/{repo}/pages"], + getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"], + getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"], + getPullRequestReviewProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"], + getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"], + getReadme: ["GET /repos/{owner}/{repo}/readme"], + getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"], + getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"], + getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"], + getStatusChecksProtection: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"], + getTeamsWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"], + getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"], + getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"], + getUsersWithAccessToProtectedBranch: ["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"], + getViews: ["GET /repos/{owner}/{repo}/traffic/views"], + getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"], + getWebhookConfigForRepo: ["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"], + listBranches: ["GET /repos/{owner}/{repo}/branches"], + listBranchesForHeadCommit: ["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", { + mediaType: { + previews: ["groot"] + } + }], + listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"], + listCommentsForCommit: ["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"], + listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"], + listCommitStatusesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/statuses"], + listCommits: ["GET /repos/{owner}/{repo}/commits"], + listContributors: ["GET /repos/{owner}/{repo}/contributors"], + listDeployKeys: ["GET /repos/{owner}/{repo}/keys"], + listDeploymentStatuses: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"], + listDeployments: ["GET /repos/{owner}/{repo}/deployments"], + listForAuthenticatedUser: ["GET /user/repos"], + listForOrg: ["GET /orgs/{org}/repos"], + listForUser: ["GET /users/{username}/repos"], + listForks: ["GET /repos/{owner}/{repo}/forks"], + listInvitations: ["GET /repos/{owner}/{repo}/invitations"], + listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"], + listLanguages: ["GET /repos/{owner}/{repo}/languages"], + listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"], + listPublic: ["GET /repositories"], + listPullRequestsAssociatedWithCommit: ["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls", { + mediaType: { + previews: ["groot"] + } + }], + listReleaseAssets: ["GET /repos/{owner}/{repo}/releases/{release_id}/assets"], + listReleases: ["GET /repos/{owner}/{repo}/releases"], + listTags: ["GET /repos/{owner}/{repo}/tags"], + listTeams: ["GET /repos/{owner}/{repo}/teams"], + listWebhooks: ["GET /repos/{owner}/{repo}/hooks"], + merge: ["POST /repos/{owner}/{repo}/merges"], + pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"], + removeAppAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", {}, { + mapToData: "apps" + }], + removeCollaborator: ["DELETE /repos/{owner}/{repo}/collaborators/{username}"], + removeStatusCheckContexts: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", {}, { + mapToData: "contexts" + }], + removeStatusCheckProtection: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"], + removeTeamAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", {}, { + mapToData: "teams" + }], + removeUserAccessRestrictions: ["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", {}, { + mapToData: "users" + }], + replaceAllTopics: ["PUT /repos/{owner}/{repo}/topics", { + mediaType: { + previews: ["mercy"] + } + }], + requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"], + setAdminBranchProtection: ["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"], + setAppAccessRestrictions: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", {}, { + mapToData: "apps" + }], + setStatusCheckContexts: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", {}, { + mapToData: "contexts" + }], + setTeamAccessRestrictions: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", {}, { + mapToData: "teams" + }], + setUserAccessRestrictions: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", {}, { + mapToData: "users" + }], + testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"], + transfer: ["POST /repos/{owner}/{repo}/transfer"], + update: ["PATCH /repos/{owner}/{repo}"], + updateBranchProtection: ["PUT /repos/{owner}/{repo}/branches/{branch}/protection"], + updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"], + updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"], + updateInvitation: ["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"], + updatePullRequestReviewProtection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"], + updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"], + updateReleaseAsset: ["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"], + updateStatusCheckPotection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", {}, { + renamed: ["repos", "updateStatusCheckProtection"] + }], + updateStatusCheckProtection: ["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"], + updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"], + updateWebhookConfigForRepo: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"], + uploadReleaseAsset: ["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}", { + baseUrl: "https://uploads.github.com" + }] }, search: { - code: { - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["indexed"], - type: "string" - } - }, - url: "/search/code" - }, - commits: { - headers: { - accept: "application/vnd.github.cloak-preview+json" - }, - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["author-date", "committer-date"], - type: "string" - } - }, - url: "/search/commits" - }, - issues: { - deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)", - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"], - type: "string" - } - }, - url: "/search/issues" - }, - issuesAndPullRequests: { - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["comments", "reactions", "reactions-+1", "reactions--1", "reactions-smile", "reactions-thinking_face", "reactions-heart", "reactions-tada", "interactions", "created", "updated"], - type: "string" - } - }, - url: "/search/issues" - }, - labels: { - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - q: { - required: true, - type: "string" - }, - repository_id: { - required: true, - type: "integer" - }, - sort: { - enum: ["created", "updated"], - type: "string" - } - }, - url: "/search/labels" - }, - repos: { - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["stars", "forks", "help-wanted-issues", "updated"], - type: "string" - } - }, - url: "/search/repositories" - }, - topics: { - method: "GET", - params: { - q: { - required: true, - type: "string" - } - }, - url: "/search/topics" - }, - users: { - method: "GET", - params: { - order: { - enum: ["desc", "asc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - q: { - required: true, - type: "string" - }, - sort: { - enum: ["followers", "repositories", "joined"], - type: "string" - } - }, - url: "/search/users" - } + code: ["GET /search/code"], + commits: ["GET /search/commits", { + mediaType: { + previews: ["cloak"] + } + }], + issuesAndPullRequests: ["GET /search/issues"], + labels: ["GET /search/labels"], + repos: ["GET /search/repositories"], + topics: ["GET /search/topics", { + mediaType: { + previews: ["mercy"] + } + }], + users: ["GET /search/users"] }, teams: { - addMember: { - deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)", - method: "PUT", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/members/:username" - }, - addMemberLegacy: { - deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy", - method: "PUT", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/members/:username" - }, - addOrUpdateMembership: { - deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)", - method: "PUT", - params: { - role: { - enum: ["member", "maintainer"], - type: "string" - }, - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/memberships/:username" - }, - addOrUpdateMembershipInOrg: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - role: { - enum: ["member", "maintainer"], - type: "string" - }, - team_slug: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - addOrUpdateMembershipLegacy: { - deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy", - method: "PUT", - params: { - role: { - enum: ["member", "maintainer"], - type: "string" - }, - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/memberships/:username" - }, - addOrUpdateProject: { - deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PUT", - params: { - permission: { - enum: ["read", "write", "admin"], - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/projects/:project_id" - }, - addOrUpdateProjectInOrg: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - permission: { - enum: ["read", "write", "admin"], - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - addOrUpdateProjectLegacy: { - deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "PUT", - params: { - permission: { - enum: ["read", "write", "admin"], - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/projects/:project_id" - }, - addOrUpdateRepo: { - deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)", - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - addOrUpdateRepoInOrg: { - method: "PUT", - params: { - org: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - addOrUpdateRepoLegacy: { - deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy", - method: "PUT", - params: { - owner: { - required: true, - type: "string" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - checkManagesRepo: { - deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)", - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - checkManagesRepoInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - checkManagesRepoLegacy: { - deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy", - method: "GET", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - create: { - method: "POST", - params: { - description: { - type: "string" - }, - maintainers: { - type: "string[]" - }, - name: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - }, - parent_team_id: { - type: "integer" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - privacy: { - enum: ["secret", "closed"], - type: "string" - }, - repo_names: { - type: "string[]" - } - }, - url: "/orgs/:org/teams" - }, - createDiscussion: { - deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)", - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - team_id: { - required: true, - type: "integer" - }, - title: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/discussions" - }, - createDiscussionComment: { - deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)", - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - createDiscussionCommentInOrg: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" - }, - createDiscussionCommentLegacy: { - deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy", - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - createDiscussionInOrg: { - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - team_slug: { - required: true, - type: "string" - }, - title: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions" - }, - createDiscussionLegacy: { - deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy", - method: "POST", - params: { - body: { - required: true, - type: "string" - }, - private: { - type: "boolean" - }, - team_id: { - required: true, - type: "integer" - }, - title: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/discussions" - }, - delete: { - deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id" - }, - deleteDiscussion: { - deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)", - method: "DELETE", - params: { - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - deleteDiscussionComment: { - deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)", - method: "DELETE", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionCommentInOrg: { - method: "DELETE", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionCommentLegacy: { - deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy", - method: "DELETE", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionInOrg: { - method: "DELETE", - params: { - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - deleteDiscussionLegacy: { - deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy", - method: "DELETE", - params: { - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - deleteInOrg: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug" - }, - deleteLegacy: { - deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id" - }, - get: { - deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id" - }, - getByName: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug" - }, - getDiscussion: { - deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)", - method: "GET", - params: { - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - getDiscussionComment: { - deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)", - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionCommentInOrg: { - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionCommentLegacy: { - deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy", - method: "GET", - params: { - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionInOrg: { - method: "GET", - params: { - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - getDiscussionLegacy: { - deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy", - method: "GET", - params: { - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - getLegacy: { - deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id" - }, - getMember: { - deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/members/:username" - }, - getMemberLegacy: { - deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/members/:username" - }, - getMembership: { - deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/memberships/:username" - }, - getMembershipInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - getMembershipLegacy: { - deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy", - method: "GET", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/memberships/:username" - }, - list: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/orgs/:org/teams" - }, - listChild: { - deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/teams" - }, - listChildInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/teams" - }, - listChildLegacy: { - deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/teams" - }, - listDiscussionComments: { - deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)", - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - listDiscussionCommentsInOrg: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" - }, - listDiscussionCommentsLegacy: { - deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy", - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - listDiscussions: { - deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)", - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions" - }, - listDiscussionsInOrg: { - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions" - }, - listDiscussionsLegacy: { - deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy", - method: "GET", - params: { - direction: { - enum: ["asc", "desc"], - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions" - }, - listForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/teams" - }, - listMembers: { - deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - role: { - enum: ["member", "maintainer", "all"], - type: "string" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/members" - }, - listMembersInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - role: { - enum: ["member", "maintainer", "all"], - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/members" - }, - listMembersLegacy: { - deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - role: { - enum: ["member", "maintainer", "all"], - type: "string" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/members" - }, - listPendingInvitations: { - deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/invitations" - }, - listPendingInvitationsInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/invitations" - }, - listPendingInvitationsLegacy: { - deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/invitations" - }, - listProjects: { - deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/projects" - }, - listProjectsInOrg: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/projects" - }, - listProjectsLegacy: { - deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/projects" - }, - listRepos: { - deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/repos" - }, - listReposInOrg: { - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/repos" - }, - listReposLegacy: { - deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy", - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/repos" - }, - removeMember: { - deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/members/:username" - }, - removeMemberLegacy: { - deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/members/:username" - }, - removeMembership: { - deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/memberships/:username" - }, - removeMembershipInOrg: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - removeMembershipLegacy: { - deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy", - method: "DELETE", - params: { - team_id: { - required: true, - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/teams/:team_id/memberships/:username" - }, - removeProject: { - deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)", - method: "DELETE", - params: { - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/projects/:project_id" - }, - removeProjectInOrg: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - removeProjectLegacy: { - deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy", - method: "DELETE", - params: { - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/projects/:project_id" - }, - removeRepo: { - deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)", - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - removeRepoInOrg: { - method: "DELETE", - params: { - org: { - required: true, - type: "string" - }, - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - removeRepoLegacy: { - deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy", - method: "DELETE", - params: { - owner: { - required: true, - type: "string" - }, - repo: { - required: true, - type: "string" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - reviewProject: { - deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/projects/:project_id" - }, - reviewProjectInOrg: { - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - org: { - required: true, - type: "string" - }, - project_id: { - required: true, - type: "integer" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - reviewProjectLegacy: { - deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy", - headers: { - accept: "application/vnd.github.inertia-preview+json" - }, - method: "GET", - params: { - project_id: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/projects/:project_id" - }, - update: { - deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)", - method: "PATCH", - params: { - description: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - parent_team_id: { - type: "integer" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - privacy: { - enum: ["secret", "closed"], - type: "string" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id" - }, - updateDiscussion: { - deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)", - method: "PATCH", - params: { - body: { - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - }, - title: { - type: "string" - } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - updateDiscussionComment: { - deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)", - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionCommentInOrg: { - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionCommentLegacy: { - deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy", - method: "PATCH", - params: { - body: { - required: true, - type: "string" - }, - comment_number: { - required: true, - type: "integer" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionInOrg: { - method: "PATCH", - params: { - body: { - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - org: { - required: true, - type: "string" - }, - team_slug: { - required: true, - type: "string" - }, - title: { - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - updateDiscussionLegacy: { - deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy", - method: "PATCH", - params: { - body: { - type: "string" - }, - discussion_number: { - required: true, - type: "integer" - }, - team_id: { - required: true, - type: "integer" - }, - title: { - type: "string" - } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - updateInOrg: { - method: "PATCH", - params: { - description: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - org: { - required: true, - type: "string" - }, - parent_team_id: { - type: "integer" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - privacy: { - enum: ["secret", "closed"], - type: "string" - }, - team_slug: { - required: true, - type: "string" - } - }, - url: "/orgs/:org/teams/:team_slug" - }, - updateLegacy: { - deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy", - method: "PATCH", - params: { - description: { - type: "string" - }, - name: { - required: true, - type: "string" - }, - parent_team_id: { - type: "integer" - }, - permission: { - enum: ["pull", "push", "admin"], - type: "string" - }, - privacy: { - enum: ["secret", "closed"], - type: "string" - }, - team_id: { - required: true, - type: "integer" - } - }, - url: "/teams/:team_id" - } + addOrUpdateMembershipForUserInOrg: ["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"], + addOrUpdateProjectPermissionsInOrg: ["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}", { + mediaType: { + previews: ["inertia"] + } + }], + addOrUpdateRepoPermissionsInOrg: ["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"], + checkPermissionsForProjectInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}", { + mediaType: { + previews: ["inertia"] + } + }], + checkPermissionsForRepoInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"], + create: ["POST /orgs/{org}/teams"], + createDiscussionCommentInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"], + createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"], + deleteDiscussionCommentInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"], + deleteDiscussionInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"], + deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"], + getByName: ["GET /orgs/{org}/teams/{team_slug}"], + getDiscussionCommentInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"], + getDiscussionInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"], + getMembershipForUserInOrg: ["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"], + list: ["GET /orgs/{org}/teams"], + listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"], + listDiscussionCommentsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"], + listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"], + listForAuthenticatedUser: ["GET /user/teams"], + listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"], + listPendingInvitationsInOrg: ["GET /orgs/{org}/teams/{team_slug}/invitations"], + listProjectsInOrg: ["GET /orgs/{org}/teams/{team_slug}/projects", { + mediaType: { + previews: ["inertia"] + } + }], + listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"], + removeMembershipForUserInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"], + removeProjectInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"], + removeRepoInOrg: ["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"], + updateDiscussionCommentInOrg: ["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"], + updateDiscussionInOrg: ["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"], + updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"] }, users: { - addEmails: { - method: "POST", - params: { - emails: { - required: true, - type: "string[]" - } - }, - url: "/user/emails" - }, - block: { - method: "PUT", - params: { - username: { - required: true, - type: "string" - } - }, - url: "/user/blocks/:username" - }, - checkBlocked: { - method: "GET", - params: { - username: { - required: true, - type: "string" - } - }, - url: "/user/blocks/:username" - }, - checkFollowing: { - method: "GET", - params: { - username: { - required: true, - type: "string" - } - }, - url: "/user/following/:username" - }, - checkFollowingForUser: { - method: "GET", - params: { - target_user: { - required: true, - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/following/:target_user" - }, - createGpgKey: { - method: "POST", - params: { - armored_public_key: { - type: "string" - } - }, - url: "/user/gpg_keys" - }, - createPublicKey: { - method: "POST", - params: { - key: { - type: "string" - }, - title: { - type: "string" - } - }, - url: "/user/keys" - }, - deleteEmails: { - method: "DELETE", - params: { - emails: { - required: true, - type: "string[]" - } - }, - url: "/user/emails" - }, - deleteGpgKey: { - method: "DELETE", - params: { - gpg_key_id: { - required: true, - type: "integer" - } - }, - url: "/user/gpg_keys/:gpg_key_id" - }, - deletePublicKey: { - method: "DELETE", - params: { - key_id: { - required: true, - type: "integer" - } - }, - url: "/user/keys/:key_id" - }, - follow: { - method: "PUT", - params: { - username: { - required: true, - type: "string" - } - }, - url: "/user/following/:username" - }, - getAuthenticated: { - method: "GET", - params: {}, - url: "/user" - }, - getByUsername: { - method: "GET", - params: { - username: { - required: true, - type: "string" - } - }, - url: "/users/:username" - }, - getContextForUser: { - method: "GET", - params: { - subject_id: { - type: "string" - }, - subject_type: { - enum: ["organization", "repository", "issue", "pull_request"], - type: "string" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/hovercard" - }, - getGpgKey: { - method: "GET", - params: { - gpg_key_id: { - required: true, - type: "integer" - } - }, - url: "/user/gpg_keys/:gpg_key_id" - }, - getPublicKey: { - method: "GET", - params: { - key_id: { - required: true, - type: "integer" - } - }, - url: "/user/keys/:key_id" - }, - list: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - since: { - type: "string" - } - }, - url: "/users" - }, - listBlocked: { - method: "GET", - params: {}, - url: "/user/blocks" - }, - listEmails: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/emails" - }, - listFollowersForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/followers" - }, - listFollowersForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/followers" - }, - listFollowingForAuthenticatedUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/following" - }, - listFollowingForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/following" - }, - listGpgKeys: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/gpg_keys" - }, - listGpgKeysForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/gpg_keys" - }, - listPublicEmails: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/public_emails" - }, - listPublicKeys: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - } - }, - url: "/user/keys" - }, - listPublicKeysForUser: { - method: "GET", - params: { - page: { - type: "integer" - }, - per_page: { - type: "integer" - }, - username: { - required: true, - type: "string" - } - }, - url: "/users/:username/keys" - }, - togglePrimaryEmailVisibility: { - method: "PATCH", - params: { - email: { - required: true, - type: "string" - }, - visibility: { - required: true, - type: "string" - } - }, - url: "/user/email/visibility" - }, - unblock: { - method: "DELETE", - params: { - username: { - required: true, - type: "string" - } - }, - url: "/user/blocks/:username" - }, - unfollow: { - method: "DELETE", - params: { - username: { - required: true, - type: "string" - } - }, - url: "/user/following/:username" - }, - updateAuthenticated: { - method: "PATCH", - params: { - bio: { - type: "string" - }, - blog: { - type: "string" - }, - company: { - type: "string" - }, - email: { - type: "string" - }, - hireable: { - type: "boolean" - }, - location: { - type: "string" - }, - name: { - type: "string" - } - }, - url: "/user" - } + addEmailForAuthenticated: ["POST /user/emails"], + block: ["PUT /user/blocks/{username}"], + checkBlocked: ["GET /user/blocks/{username}"], + checkFollowingForUser: ["GET /users/{username}/following/{target_user}"], + checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"], + createGpgKeyForAuthenticated: ["POST /user/gpg_keys"], + createPublicSshKeyForAuthenticated: ["POST /user/keys"], + deleteEmailForAuthenticated: ["DELETE /user/emails"], + deleteGpgKeyForAuthenticated: ["DELETE /user/gpg_keys/{gpg_key_id}"], + deletePublicSshKeyForAuthenticated: ["DELETE /user/keys/{key_id}"], + follow: ["PUT /user/following/{username}"], + getAuthenticated: ["GET /user"], + getByUsername: ["GET /users/{username}"], + getContextForUser: ["GET /users/{username}/hovercard"], + getGpgKeyForAuthenticated: ["GET /user/gpg_keys/{gpg_key_id}"], + getPublicSshKeyForAuthenticated: ["GET /user/keys/{key_id}"], + list: ["GET /users"], + listBlockedByAuthenticated: ["GET /user/blocks"], + listEmailsForAuthenticated: ["GET /user/emails"], + listFollowedByAuthenticated: ["GET /user/following"], + listFollowersForAuthenticatedUser: ["GET /user/followers"], + listFollowersForUser: ["GET /users/{username}/followers"], + listFollowingForUser: ["GET /users/{username}/following"], + listGpgKeysForAuthenticated: ["GET /user/gpg_keys"], + listGpgKeysForUser: ["GET /users/{username}/gpg_keys"], + listPublicEmailsForAuthenticated: ["GET /user/public_emails"], + listPublicKeysForUser: ["GET /users/{username}/keys"], + listPublicSshKeysForAuthenticated: ["GET /user/keys"], + setPrimaryEmailVisibilityForAuthenticated: ["PATCH /user/email/visibility"], + unblock: ["DELETE /user/blocks/{username}"], + unfollow: ["DELETE /user/following/{username}"], + updateAuthenticated: ["PATCH /user"] } }; -const VERSION = "2.4.0"; +const VERSION = "4.3.1"; -function registerEndpoints(octokit, routes) { - Object.keys(routes).forEach(namespaceName => { - if (!octokit[namespaceName]) { - octokit[namespaceName] = {}; - } +function endpointsToMethods(octokit, endpointsMap) { + const newMethods = {}; - Object.keys(routes[namespaceName]).forEach(apiName => { - const apiOptions = routes[namespaceName][apiName]; - const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => { - if (typeof apiOptions[key] !== "undefined") { - map[key] = apiOptions[key]; - } + for (const [scope, endpoints] of Object.entries(endpointsMap)) { + for (const [methodName, endpoint] of Object.entries(endpoints)) { + const [route, defaults, decorations] = endpoint; + const [method, url] = route.split(/ /); + const endpointDefaults = Object.assign({ + method, + url + }, defaults); - return map; - }, {}); - endpointDefaults.request = { - validate: apiOptions.params - }; - let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters. - // Not the most elegant solution, but we don’t want to move deprecation - // logic into octokit/endpoint.js as it’s out of scope + if (!newMethods[scope]) { + newMethods[scope] = {}; + } - const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated); + const scopeMethods = newMethods[scope]; - if (hasDeprecatedParam) { - const patch = patchForDeprecation.bind(null, octokit, apiOptions); - request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`); - request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`); - request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`); + if (decorations) { + scopeMethods[methodName] = decorate(octokit, scope, methodName, endpointDefaults, decorations); + continue; } - if (apiOptions.deprecated) { - octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() { - octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`)); - octokit[namespaceName][apiName] = request; - return request.apply(null, arguments); - }, request); - return; - } + scopeMethods[methodName] = octokit.request.defaults(endpointDefaults); + } + } - octokit[namespaceName][apiName] = request; - }); - }); + return newMethods; } -function patchForDeprecation(octokit, apiOptions, method, methodName) { - const patchedMethod = options => { - options = Object.assign({}, options); - Object.keys(options).forEach(key => { - if (apiOptions.params[key] && apiOptions.params[key].deprecated) { - const aliasKey = apiOptions.params[key].alias; - octokit.log.warn(new deprecation.Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`)); +function decorate(octokit, scope, methodName, defaults, decorations) { + const requestWithDefaults = octokit.request.defaults(defaults); + /* istanbul ignore next */ - if (!(aliasKey in options)) { - options[aliasKey] = options[key]; - } + function withDecorations(...args) { + // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488 + let options = requestWithDefaults.endpoint.merge(...args); // There are currently no other decorations than `.mapToData` + + if (decorations.mapToData) { + options = Object.assign({}, options, { + data: options[decorations.mapToData], + [decorations.mapToData]: undefined + }); + return requestWithDefaults(options); + } - delete options[key]; + if (decorations.renamed) { + const [newScope, newMethodName] = decorations.renamed; + octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`); + } + + if (decorations.deprecated) { + octokit.log.warn(decorations.deprecated); + } + + if (decorations.renamedParameters) { + // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488 + const options = requestWithDefaults.endpoint.merge(...args); + + for (const [name, alias] of Object.entries(decorations.renamedParameters)) { + if (name in options) { + octokit.log.warn(`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`); + + if (!(alias in options)) { + options[alias] = options[name]; + } + + delete options[name]; + } } - }); - return method(options); - }; - Object.keys(method).forEach(key => { - patchedMethod[key] = method[key]; - }); - return patchedMethod; + return requestWithDefaults(options); + } // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488 + + + return requestWithDefaults(...args); + } + + return Object.assign(withDecorations, requestWithDefaults); } /** @@ -13172,23 +1120,7 @@ function patchForDeprecation(octokit, apiOptions, method, methodName) { */ function restEndpointMethods(octokit) { - // @ts-ignore - octokit.registerEndpoints = registerEndpoints.bind(null, octokit); - registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility - // See https://github.com/octokit/rest.js/pull/1134 - - [["gitdata", "git"], ["authorization", "oauthAuthorizations"], ["pullRequests", "pulls"]].forEach(([deprecatedScope, scope]) => { - Object.defineProperty(octokit, deprecatedScope, { - get() { - octokit.log.warn( // @ts-ignore - new deprecation.Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); // @ts-ignore - - return octokit[scope]; - } - - }); - }); - return {}; + return endpointsToMethods(octokit, Endpoints); } restEndpointMethods.VERSION = VERSION; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js.map b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js.map index 32beda91c..1d6d83933 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js.map +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/generated/endpoints.js","../dist-src/version.js","../dist-src/register-endpoints.js","../dist-src/index.js"],"sourcesContent":["export default {\n actions: {\n cancelWorkflowRun: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id/cancel\"\n },\n createOrUpdateSecretForRepo: {\n method: \"PUT\",\n params: {\n encrypted_value: { type: \"string\" },\n key_id: { type: \"string\" },\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/secrets/:name\"\n },\n createRegistrationToken: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/runners/registration-token\"\n },\n createRemoveToken: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/runners/remove-token\"\n },\n deleteArtifact: {\n method: \"DELETE\",\n params: {\n artifact_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/artifacts/:artifact_id\"\n },\n deleteSecretFromRepo: {\n method: \"DELETE\",\n params: {\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/secrets/:name\"\n },\n downloadArtifact: {\n method: \"GET\",\n params: {\n archive_format: { required: true, type: \"string\" },\n artifact_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format\"\n },\n getArtifact: {\n method: \"GET\",\n params: {\n artifact_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/artifacts/:artifact_id\"\n },\n getPublicKey: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/secrets/public-key\"\n },\n getSecret: {\n method: \"GET\",\n params: {\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/secrets/:name\"\n },\n getSelfHostedRunner: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n runner_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runners/:runner_id\"\n },\n getWorkflow: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n workflow_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/workflows/:workflow_id\"\n },\n getWorkflowJob: {\n method: \"GET\",\n params: {\n job_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/jobs/:job_id\"\n },\n getWorkflowRun: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id\"\n },\n listDownloadsForSelfHostedRunnerApplication: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/runners/downloads\"\n },\n listJobsForWorkflowRun: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id/jobs\"\n },\n listRepoWorkflowRuns: {\n method: \"GET\",\n params: {\n actor: { type: \"string\" },\n branch: { type: \"string\" },\n event: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n status: { enum: [\"completed\", \"status\", \"conclusion\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/runs\"\n },\n listRepoWorkflows: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/workflows\"\n },\n listSecretsForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/secrets\"\n },\n listSelfHostedRunnersForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/runners\"\n },\n listWorkflowJobLogs: {\n method: \"GET\",\n params: {\n job_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/jobs/:job_id/logs\"\n },\n listWorkflowRunArtifacts: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id/artifacts\"\n },\n listWorkflowRunLogs: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id/logs\"\n },\n listWorkflowRuns: {\n method: \"GET\",\n params: {\n actor: { type: \"string\" },\n branch: { type: \"string\" },\n event: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n status: { enum: [\"completed\", \"status\", \"conclusion\"], type: \"string\" },\n workflow_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/workflows/:workflow_id/runs\"\n },\n reRunWorkflow: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id/rerun\"\n },\n removeSelfHostedRunner: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n runner_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runners/:runner_id\"\n }\n },\n activity: {\n checkStarringRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/user/starred/:owner/:repo\"\n },\n deleteRepoSubscription: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/subscription\"\n },\n deleteThreadSubscription: {\n method: \"DELETE\",\n params: { thread_id: { required: true, type: \"integer\" } },\n url: \"/notifications/threads/:thread_id/subscription\"\n },\n getRepoSubscription: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/subscription\"\n },\n getThread: {\n method: \"GET\",\n params: { thread_id: { required: true, type: \"integer\" } },\n url: \"/notifications/threads/:thread_id\"\n },\n getThreadSubscription: {\n method: \"GET\",\n params: { thread_id: { required: true, type: \"integer\" } },\n url: \"/notifications/threads/:thread_id/subscription\"\n },\n listEventsForOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/events/orgs/:org\"\n },\n listEventsForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/events\"\n },\n listFeeds: { method: \"GET\", params: {}, url: \"/feeds\" },\n listNotifications: {\n method: \"GET\",\n params: {\n all: { type: \"boolean\" },\n before: { type: \"string\" },\n page: { type: \"integer\" },\n participating: { type: \"boolean\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" }\n },\n url: \"/notifications\"\n },\n listNotificationsForRepo: {\n method: \"GET\",\n params: {\n all: { type: \"boolean\" },\n before: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n participating: { type: \"boolean\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/notifications\"\n },\n listPublicEvents: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/events\"\n },\n listPublicEventsForOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/events\"\n },\n listPublicEventsForRepoNetwork: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/networks/:owner/:repo/events\"\n },\n listPublicEventsForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/events/public\"\n },\n listReceivedEventsForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/received_events\"\n },\n listReceivedPublicEventsForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/received_events/public\"\n },\n listRepoEvents: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/events\"\n },\n listReposStarredByAuthenticatedUser: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/user/starred\"\n },\n listReposStarredByUser: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/starred\"\n },\n listReposWatchedByUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/subscriptions\"\n },\n listStargazersForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stargazers\"\n },\n listWatchedReposForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/subscriptions\"\n },\n listWatchersForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/subscribers\"\n },\n markAsRead: {\n method: \"PUT\",\n params: { last_read_at: { type: \"string\" } },\n url: \"/notifications\"\n },\n markNotificationsAsReadForRepo: {\n method: \"PUT\",\n params: {\n last_read_at: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/notifications\"\n },\n markThreadAsRead: {\n method: \"PATCH\",\n params: { thread_id: { required: true, type: \"integer\" } },\n url: \"/notifications/threads/:thread_id\"\n },\n setRepoSubscription: {\n method: \"PUT\",\n params: {\n ignored: { type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n subscribed: { type: \"boolean\" }\n },\n url: \"/repos/:owner/:repo/subscription\"\n },\n setThreadSubscription: {\n method: \"PUT\",\n params: {\n ignored: { type: \"boolean\" },\n thread_id: { required: true, type: \"integer\" }\n },\n url: \"/notifications/threads/:thread_id/subscription\"\n },\n starRepo: {\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/user/starred/:owner/:repo\"\n },\n unstarRepo: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/user/starred/:owner/:repo\"\n }\n },\n apps: {\n addRepoToInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"PUT\",\n params: {\n installation_id: { required: true, type: \"integer\" },\n repository_id: { required: true, type: \"integer\" }\n },\n url: \"/user/installations/:installation_id/repositories/:repository_id\"\n },\n checkAccountIsAssociatedWithAny: {\n method: \"GET\",\n params: { account_id: { required: true, type: \"integer\" } },\n url: \"/marketplace_listing/accounts/:account_id\"\n },\n checkAccountIsAssociatedWithAnyStubbed: {\n method: \"GET\",\n params: { account_id: { required: true, type: \"integer\" } },\n url: \"/marketplace_listing/stubbed/accounts/:account_id\"\n },\n checkAuthorization: {\n deprecated: \"octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization\",\n method: \"GET\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n checkToken: {\n headers: { accept: \"application/vnd.github.doctor-strange-preview+json\" },\n method: \"POST\",\n params: {\n access_token: { type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/token\"\n },\n createContentAttachment: {\n headers: { accept: \"application/vnd.github.corsair-preview+json\" },\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n content_reference_id: { required: true, type: \"integer\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/content_references/:content_reference_id/attachments\"\n },\n createFromManifest: {\n headers: { accept: \"application/vnd.github.fury-preview+json\" },\n method: \"POST\",\n params: { code: { required: true, type: \"string\" } },\n url: \"/app-manifests/:code/conversions\"\n },\n createInstallationToken: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"POST\",\n params: {\n installation_id: { required: true, type: \"integer\" },\n permissions: { type: \"object\" },\n repository_ids: { type: \"integer[]\" }\n },\n url: \"/app/installations/:installation_id/access_tokens\"\n },\n deleteAuthorization: {\n headers: { accept: \"application/vnd.github.doctor-strange-preview+json\" },\n method: \"DELETE\",\n params: {\n access_token: { type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/grant\"\n },\n deleteInstallation: {\n headers: {\n accept: \"application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json\"\n },\n method: \"DELETE\",\n params: { installation_id: { required: true, type: \"integer\" } },\n url: \"/app/installations/:installation_id\"\n },\n deleteToken: {\n headers: { accept: \"application/vnd.github.doctor-strange-preview+json\" },\n method: \"DELETE\",\n params: {\n access_token: { type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/token\"\n },\n findOrgInstallation: {\n deprecated: \"octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)\",\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org/installation\"\n },\n findRepoInstallation: {\n deprecated: \"octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)\",\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/installation\"\n },\n findUserInstallation: {\n deprecated: \"octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)\",\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/users/:username/installation\"\n },\n getAuthenticated: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: {},\n url: \"/app\"\n },\n getBySlug: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { app_slug: { required: true, type: \"string\" } },\n url: \"/apps/:app_slug\"\n },\n getInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { installation_id: { required: true, type: \"integer\" } },\n url: \"/app/installations/:installation_id\"\n },\n getOrgInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org/installation\"\n },\n getRepoInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/installation\"\n },\n getUserInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/users/:username/installation\"\n },\n listAccountsUserOrOrgOnPlan: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n plan_id: { required: true, type: \"integer\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/marketplace_listing/plans/:plan_id/accounts\"\n },\n listAccountsUserOrOrgOnPlanStubbed: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n plan_id: { required: true, type: \"integer\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/marketplace_listing/stubbed/plans/:plan_id/accounts\"\n },\n listInstallationReposForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: {\n installation_id: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/user/installations/:installation_id/repositories\"\n },\n listInstallations: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/app/installations\"\n },\n listInstallationsForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/installations\"\n },\n listMarketplacePurchasesForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/marketplace_purchases\"\n },\n listMarketplacePurchasesForAuthenticatedUserStubbed: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/marketplace_purchases/stubbed\"\n },\n listPlans: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/marketplace_listing/plans\"\n },\n listPlansStubbed: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/marketplace_listing/stubbed/plans\"\n },\n listRepos: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/installation/repositories\"\n },\n removeRepoFromInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"DELETE\",\n params: {\n installation_id: { required: true, type: \"integer\" },\n repository_id: { required: true, type: \"integer\" }\n },\n url: \"/user/installations/:installation_id/repositories/:repository_id\"\n },\n resetAuthorization: {\n deprecated: \"octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization\",\n method: \"POST\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n resetToken: {\n headers: { accept: \"application/vnd.github.doctor-strange-preview+json\" },\n method: \"PATCH\",\n params: {\n access_token: { type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/token\"\n },\n revokeAuthorizationForApplication: {\n deprecated: \"octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application\",\n method: \"DELETE\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n revokeGrantForApplication: {\n deprecated: \"octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application\",\n method: \"DELETE\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/grants/:access_token\"\n },\n revokeInstallationToken: {\n headers: { accept: \"application/vnd.github.gambit-preview+json\" },\n method: \"DELETE\",\n params: {},\n url: \"/installation/token\"\n }\n },\n checks: {\n create: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"POST\",\n params: {\n actions: { type: \"object[]\" },\n \"actions[].description\": { required: true, type: \"string\" },\n \"actions[].identifier\": { required: true, type: \"string\" },\n \"actions[].label\": { required: true, type: \"string\" },\n completed_at: { type: \"string\" },\n conclusion: {\n enum: [\n \"success\",\n \"failure\",\n \"neutral\",\n \"cancelled\",\n \"timed_out\",\n \"action_required\"\n ],\n type: \"string\"\n },\n details_url: { type: \"string\" },\n external_id: { type: \"string\" },\n head_sha: { required: true, type: \"string\" },\n name: { required: true, type: \"string\" },\n output: { type: \"object\" },\n \"output.annotations\": { type: \"object[]\" },\n \"output.annotations[].annotation_level\": {\n enum: [\"notice\", \"warning\", \"failure\"],\n required: true,\n type: \"string\"\n },\n \"output.annotations[].end_column\": { type: \"integer\" },\n \"output.annotations[].end_line\": { required: true, type: \"integer\" },\n \"output.annotations[].message\": { required: true, type: \"string\" },\n \"output.annotations[].path\": { required: true, type: \"string\" },\n \"output.annotations[].raw_details\": { type: \"string\" },\n \"output.annotations[].start_column\": { type: \"integer\" },\n \"output.annotations[].start_line\": { required: true, type: \"integer\" },\n \"output.annotations[].title\": { type: \"string\" },\n \"output.images\": { type: \"object[]\" },\n \"output.images[].alt\": { required: true, type: \"string\" },\n \"output.images[].caption\": { type: \"string\" },\n \"output.images[].image_url\": { required: true, type: \"string\" },\n \"output.summary\": { required: true, type: \"string\" },\n \"output.text\": { type: \"string\" },\n \"output.title\": { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n started_at: { type: \"string\" },\n status: { enum: [\"queued\", \"in_progress\", \"completed\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-runs\"\n },\n createSuite: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"POST\",\n params: {\n head_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-suites\"\n },\n get: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n check_run_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-runs/:check_run_id\"\n },\n getSuite: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n check_suite_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-suites/:check_suite_id\"\n },\n listAnnotations: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n check_run_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-runs/:check_run_id/annotations\"\n },\n listForRef: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n check_name: { type: \"string\" },\n filter: { enum: [\"latest\", \"all\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n status: { enum: [\"queued\", \"in_progress\", \"completed\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref/check-runs\"\n },\n listForSuite: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n check_name: { type: \"string\" },\n check_suite_id: { required: true, type: \"integer\" },\n filter: { enum: [\"latest\", \"all\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n status: { enum: [\"queued\", \"in_progress\", \"completed\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-suites/:check_suite_id/check-runs\"\n },\n listSuitesForRef: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n app_id: { type: \"integer\" },\n check_name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref/check-suites\"\n },\n rerequestSuite: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"POST\",\n params: {\n check_suite_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-suites/:check_suite_id/rerequest\"\n },\n setSuitesPreferences: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"PATCH\",\n params: {\n auto_trigger_checks: { type: \"object[]\" },\n \"auto_trigger_checks[].app_id\": { required: true, type: \"integer\" },\n \"auto_trigger_checks[].setting\": { required: true, type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-suites/preferences\"\n },\n update: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"PATCH\",\n params: {\n actions: { type: \"object[]\" },\n \"actions[].description\": { required: true, type: \"string\" },\n \"actions[].identifier\": { required: true, type: \"string\" },\n \"actions[].label\": { required: true, type: \"string\" },\n check_run_id: { required: true, type: \"integer\" },\n completed_at: { type: \"string\" },\n conclusion: {\n enum: [\n \"success\",\n \"failure\",\n \"neutral\",\n \"cancelled\",\n \"timed_out\",\n \"action_required\"\n ],\n type: \"string\"\n },\n details_url: { type: \"string\" },\n external_id: { type: \"string\" },\n name: { type: \"string\" },\n output: { type: \"object\" },\n \"output.annotations\": { type: \"object[]\" },\n \"output.annotations[].annotation_level\": {\n enum: [\"notice\", \"warning\", \"failure\"],\n required: true,\n type: \"string\"\n },\n \"output.annotations[].end_column\": { type: \"integer\" },\n \"output.annotations[].end_line\": { required: true, type: \"integer\" },\n \"output.annotations[].message\": { required: true, type: \"string\" },\n \"output.annotations[].path\": { required: true, type: \"string\" },\n \"output.annotations[].raw_details\": { type: \"string\" },\n \"output.annotations[].start_column\": { type: \"integer\" },\n \"output.annotations[].start_line\": { required: true, type: \"integer\" },\n \"output.annotations[].title\": { type: \"string\" },\n \"output.images\": { type: \"object[]\" },\n \"output.images[].alt\": { required: true, type: \"string\" },\n \"output.images[].caption\": { type: \"string\" },\n \"output.images[].image_url\": { required: true, type: \"string\" },\n \"output.summary\": { required: true, type: \"string\" },\n \"output.text\": { type: \"string\" },\n \"output.title\": { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n started_at: { type: \"string\" },\n status: { enum: [\"queued\", \"in_progress\", \"completed\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-runs/:check_run_id\"\n }\n },\n codesOfConduct: {\n getConductCode: {\n headers: { accept: \"application/vnd.github.scarlet-witch-preview+json\" },\n method: \"GET\",\n params: { key: { required: true, type: \"string\" } },\n url: \"/codes_of_conduct/:key\"\n },\n getForRepo: {\n headers: { accept: \"application/vnd.github.scarlet-witch-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/community/code_of_conduct\"\n },\n listConductCodes: {\n headers: { accept: \"application/vnd.github.scarlet-witch-preview+json\" },\n method: \"GET\",\n params: {},\n url: \"/codes_of_conduct\"\n }\n },\n emojis: { get: { method: \"GET\", params: {}, url: \"/emojis\" } },\n gists: {\n checkIsStarred: {\n method: \"GET\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id/star\"\n },\n create: {\n method: \"POST\",\n params: {\n description: { type: \"string\" },\n files: { required: true, type: \"object\" },\n \"files.content\": { type: \"string\" },\n public: { type: \"boolean\" }\n },\n url: \"/gists\"\n },\n createComment: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n gist_id: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id/comments\"\n },\n delete: {\n method: \"DELETE\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id\"\n },\n deleteComment: {\n method: \"DELETE\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n gist_id: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id/comments/:comment_id\"\n },\n fork: {\n method: \"POST\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id/forks\"\n },\n get: {\n method: \"GET\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id\"\n },\n getComment: {\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n gist_id: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id/comments/:comment_id\"\n },\n getRevision: {\n method: \"GET\",\n params: {\n gist_id: { required: true, type: \"string\" },\n sha: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id/:sha\"\n },\n list: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" }\n },\n url: \"/gists\"\n },\n listComments: {\n method: \"GET\",\n params: {\n gist_id: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/gists/:gist_id/comments\"\n },\n listCommits: {\n method: \"GET\",\n params: {\n gist_id: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/gists/:gist_id/commits\"\n },\n listForks: {\n method: \"GET\",\n params: {\n gist_id: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/gists/:gist_id/forks\"\n },\n listPublic: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" }\n },\n url: \"/gists/public\"\n },\n listPublicForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/gists\"\n },\n listStarred: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" }\n },\n url: \"/gists/starred\"\n },\n star: {\n method: \"PUT\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id/star\"\n },\n unstar: {\n method: \"DELETE\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id/star\"\n },\n update: {\n method: \"PATCH\",\n params: {\n description: { type: \"string\" },\n files: { type: \"object\" },\n \"files.content\": { type: \"string\" },\n \"files.filename\": { type: \"string\" },\n gist_id: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id\"\n },\n updateComment: {\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_id: { required: true, type: \"integer\" },\n gist_id: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id/comments/:comment_id\"\n }\n },\n git: {\n createBlob: {\n method: \"POST\",\n params: {\n content: { required: true, type: \"string\" },\n encoding: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/blobs\"\n },\n createCommit: {\n method: \"POST\",\n params: {\n author: { type: \"object\" },\n \"author.date\": { type: \"string\" },\n \"author.email\": { type: \"string\" },\n \"author.name\": { type: \"string\" },\n committer: { type: \"object\" },\n \"committer.date\": { type: \"string\" },\n \"committer.email\": { type: \"string\" },\n \"committer.name\": { type: \"string\" },\n message: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n parents: { required: true, type: \"string[]\" },\n repo: { required: true, type: \"string\" },\n signature: { type: \"string\" },\n tree: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/commits\"\n },\n createRef: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/refs\"\n },\n createTag: {\n method: \"POST\",\n params: {\n message: { required: true, type: \"string\" },\n object: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n tag: { required: true, type: \"string\" },\n tagger: { type: \"object\" },\n \"tagger.date\": { type: \"string\" },\n \"tagger.email\": { type: \"string\" },\n \"tagger.name\": { type: \"string\" },\n type: {\n enum: [\"commit\", \"tree\", \"blob\"],\n required: true,\n type: \"string\"\n }\n },\n url: \"/repos/:owner/:repo/git/tags\"\n },\n createTree: {\n method: \"POST\",\n params: {\n base_tree: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n tree: { required: true, type: \"object[]\" },\n \"tree[].content\": { type: \"string\" },\n \"tree[].mode\": {\n enum: [\"100644\", \"100755\", \"040000\", \"160000\", \"120000\"],\n type: \"string\"\n },\n \"tree[].path\": { type: \"string\" },\n \"tree[].sha\": { allowNull: true, type: \"string\" },\n \"tree[].type\": { enum: [\"blob\", \"tree\", \"commit\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/trees\"\n },\n deleteRef: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/refs/:ref\"\n },\n getBlob: {\n method: \"GET\",\n params: {\n file_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/blobs/:file_sha\"\n },\n getCommit: {\n method: \"GET\",\n params: {\n commit_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/commits/:commit_sha\"\n },\n getRef: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/ref/:ref\"\n },\n getTag: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n tag_sha: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/tags/:tag_sha\"\n },\n getTree: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n recursive: { enum: [\"1\"], type: \"integer\" },\n repo: { required: true, type: \"string\" },\n tree_sha: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/trees/:tree_sha\"\n },\n listMatchingRefs: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/matching-refs/:ref\"\n },\n listRefs: {\n method: \"GET\",\n params: {\n namespace: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/refs/:namespace\"\n },\n updateRef: {\n method: \"PATCH\",\n params: {\n force: { type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/refs/:ref\"\n }\n },\n gitignore: {\n getTemplate: {\n method: \"GET\",\n params: { name: { required: true, type: \"string\" } },\n url: \"/gitignore/templates/:name\"\n },\n listTemplates: { method: \"GET\", params: {}, url: \"/gitignore/templates\" }\n },\n interactions: {\n addOrUpdateRestrictionsForOrg: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"PUT\",\n params: {\n limit: {\n enum: [\"existing_users\", \"contributors_only\", \"collaborators_only\"],\n required: true,\n type: \"string\"\n },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/interaction-limits\"\n },\n addOrUpdateRestrictionsForRepo: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"PUT\",\n params: {\n limit: {\n enum: [\"existing_users\", \"contributors_only\", \"collaborators_only\"],\n required: true,\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/interaction-limits\"\n },\n getRestrictionsForOrg: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org/interaction-limits\"\n },\n getRestrictionsForRepo: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/interaction-limits\"\n },\n removeRestrictionsForOrg: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"DELETE\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org/interaction-limits\"\n },\n removeRestrictionsForRepo: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/interaction-limits\"\n }\n },\n issues: {\n addAssignees: {\n method: \"POST\",\n params: {\n assignees: { type: \"string[]\" },\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/assignees\"\n },\n addLabels: {\n method: \"POST\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n labels: { required: true, type: \"string[]\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/labels\"\n },\n checkAssignee: {\n method: \"GET\",\n params: {\n assignee: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/assignees/:assignee\"\n },\n create: {\n method: \"POST\",\n params: {\n assignee: { type: \"string\" },\n assignees: { type: \"string[]\" },\n body: { type: \"string\" },\n labels: { type: \"string[]\" },\n milestone: { type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues\"\n },\n createComment: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/comments\"\n },\n createLabel: {\n method: \"POST\",\n params: {\n color: { required: true, type: \"string\" },\n description: { type: \"string\" },\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/labels\"\n },\n createMilestone: {\n method: \"POST\",\n params: {\n description: { type: \"string\" },\n due_on: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n state: { enum: [\"open\", \"closed\"], type: \"string\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones\"\n },\n deleteComment: {\n method: \"DELETE\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments/:comment_id\"\n },\n deleteLabel: {\n method: \"DELETE\",\n params: {\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/labels/:name\"\n },\n deleteMilestone: {\n method: \"DELETE\",\n params: {\n milestone_number: { required: true, type: \"integer\" },\n number: {\n alias: \"milestone_number\",\n deprecated: true,\n type: \"integer\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones/:milestone_number\"\n },\n get: {\n method: \"GET\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number\"\n },\n getComment: {\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments/:comment_id\"\n },\n getEvent: {\n method: \"GET\",\n params: {\n event_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/events/:event_id\"\n },\n getLabel: {\n method: \"GET\",\n params: {\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/labels/:name\"\n },\n getMilestone: {\n method: \"GET\",\n params: {\n milestone_number: { required: true, type: \"integer\" },\n number: {\n alias: \"milestone_number\",\n deprecated: true,\n type: \"integer\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones/:milestone_number\"\n },\n list: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n filter: {\n enum: [\"assigned\", \"created\", \"mentioned\", \"subscribed\", \"all\"],\n type: \"string\"\n },\n labels: { type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\", \"comments\"], type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/issues\"\n },\n listAssignees: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/assignees\"\n },\n listComments: {\n method: \"GET\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/comments\"\n },\n listCommentsForRepo: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments\"\n },\n listEvents: {\n method: \"GET\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/events\"\n },\n listEventsForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/events\"\n },\n listEventsForTimeline: {\n headers: { accept: \"application/vnd.github.mockingbird-preview+json\" },\n method: \"GET\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/timeline\"\n },\n listForAuthenticatedUser: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n filter: {\n enum: [\"assigned\", \"created\", \"mentioned\", \"subscribed\", \"all\"],\n type: \"string\"\n },\n labels: { type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\", \"comments\"], type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/user/issues\"\n },\n listForOrg: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n filter: {\n enum: [\"assigned\", \"created\", \"mentioned\", \"subscribed\", \"all\"],\n type: \"string\"\n },\n labels: { type: \"string\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\", \"comments\"], type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/orgs/:org/issues\"\n },\n listForRepo: {\n method: \"GET\",\n params: {\n assignee: { type: \"string\" },\n creator: { type: \"string\" },\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n labels: { type: \"string\" },\n mentioned: { type: \"string\" },\n milestone: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\", \"comments\"], type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues\"\n },\n listLabelsForMilestone: {\n method: \"GET\",\n params: {\n milestone_number: { required: true, type: \"integer\" },\n number: {\n alias: \"milestone_number\",\n deprecated: true,\n type: \"integer\"\n },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones/:milestone_number/labels\"\n },\n listLabelsForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/labels\"\n },\n listLabelsOnIssue: {\n method: \"GET\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/labels\"\n },\n listMilestonesForRepo: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sort: { enum: [\"due_on\", \"completeness\"], type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones\"\n },\n lock: {\n method: \"PUT\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n lock_reason: {\n enum: [\"off-topic\", \"too heated\", \"resolved\", \"spam\"],\n type: \"string\"\n },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/lock\"\n },\n removeAssignees: {\n method: \"DELETE\",\n params: {\n assignees: { type: \"string[]\" },\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/assignees\"\n },\n removeLabel: {\n method: \"DELETE\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n name: { required: true, type: \"string\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/labels/:name\"\n },\n removeLabels: {\n method: \"DELETE\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/labels\"\n },\n replaceLabels: {\n method: \"PUT\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n labels: { type: \"string[]\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/labels\"\n },\n unlock: {\n method: \"DELETE\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/lock\"\n },\n update: {\n method: \"PATCH\",\n params: {\n assignee: { type: \"string\" },\n assignees: { type: \"string[]\" },\n body: { type: \"string\" },\n issue_number: { required: true, type: \"integer\" },\n labels: { type: \"string[]\" },\n milestone: { allowNull: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n state: { enum: [\"open\", \"closed\"], type: \"string\" },\n title: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number\"\n },\n updateComment: {\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments/:comment_id\"\n },\n updateLabel: {\n method: \"PATCH\",\n params: {\n color: { type: \"string\" },\n current_name: { required: true, type: \"string\" },\n description: { type: \"string\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/labels/:current_name\"\n },\n updateMilestone: {\n method: \"PATCH\",\n params: {\n description: { type: \"string\" },\n due_on: { type: \"string\" },\n milestone_number: { required: true, type: \"integer\" },\n number: {\n alias: \"milestone_number\",\n deprecated: true,\n type: \"integer\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n state: { enum: [\"open\", \"closed\"], type: \"string\" },\n title: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones/:milestone_number\"\n }\n },\n licenses: {\n get: {\n method: \"GET\",\n params: { license: { required: true, type: \"string\" } },\n url: \"/licenses/:license\"\n },\n getForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/license\"\n },\n list: {\n deprecated: \"octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)\",\n method: \"GET\",\n params: {},\n url: \"/licenses\"\n },\n listCommonlyUsed: { method: \"GET\", params: {}, url: \"/licenses\" }\n },\n markdown: {\n render: {\n method: \"POST\",\n params: {\n context: { type: \"string\" },\n mode: { enum: [\"markdown\", \"gfm\"], type: \"string\" },\n text: { required: true, type: \"string\" }\n },\n url: \"/markdown\"\n },\n renderRaw: {\n headers: { \"content-type\": \"text/plain; charset=utf-8\" },\n method: \"POST\",\n params: { data: { mapTo: \"data\", required: true, type: \"string\" } },\n url: \"/markdown/raw\"\n }\n },\n meta: { get: { method: \"GET\", params: {}, url: \"/meta\" } },\n migrations: {\n cancelImport: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import\"\n },\n deleteArchiveForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"DELETE\",\n params: { migration_id: { required: true, type: \"integer\" } },\n url: \"/user/migrations/:migration_id/archive\"\n },\n deleteArchiveForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"DELETE\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/migrations/:migration_id/archive\"\n },\n downloadArchiveForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/migrations/:migration_id/archive\"\n },\n getArchiveForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: { migration_id: { required: true, type: \"integer\" } },\n url: \"/user/migrations/:migration_id/archive\"\n },\n getArchiveForOrg: {\n deprecated: \"octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)\",\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/migrations/:migration_id/archive\"\n },\n getCommitAuthors: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import/authors\"\n },\n getImportProgress: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import\"\n },\n getLargeFiles: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import/large_files\"\n },\n getStatusForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: { migration_id: { required: true, type: \"integer\" } },\n url: \"/user/migrations/:migration_id\"\n },\n getStatusForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/migrations/:migration_id\"\n },\n listForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/migrations\"\n },\n listForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/migrations\"\n },\n listReposForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/migrations/:migration_id/repositories\"\n },\n listReposForUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/user/:migration_id/repositories\"\n },\n mapCommitAuthor: {\n method: \"PATCH\",\n params: {\n author_id: { required: true, type: \"integer\" },\n email: { type: \"string\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import/authors/:author_id\"\n },\n setLfsPreference: {\n method: \"PATCH\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n use_lfs: { enum: [\"opt_in\", \"opt_out\"], required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import/lfs\"\n },\n startForAuthenticatedUser: {\n method: \"POST\",\n params: {\n exclude_attachments: { type: \"boolean\" },\n lock_repositories: { type: \"boolean\" },\n repositories: { required: true, type: \"string[]\" }\n },\n url: \"/user/migrations\"\n },\n startForOrg: {\n method: \"POST\",\n params: {\n exclude_attachments: { type: \"boolean\" },\n lock_repositories: { type: \"boolean\" },\n org: { required: true, type: \"string\" },\n repositories: { required: true, type: \"string[]\" }\n },\n url: \"/orgs/:org/migrations\"\n },\n startImport: {\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n tfvc_project: { type: \"string\" },\n vcs: {\n enum: [\"subversion\", \"git\", \"mercurial\", \"tfvc\"],\n type: \"string\"\n },\n vcs_password: { type: \"string\" },\n vcs_url: { required: true, type: \"string\" },\n vcs_username: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import\"\n },\n unlockRepoForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"DELETE\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n repo_name: { required: true, type: \"string\" }\n },\n url: \"/user/migrations/:migration_id/repos/:repo_name/lock\"\n },\n unlockRepoForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"DELETE\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n repo_name: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/migrations/:migration_id/repos/:repo_name/lock\"\n },\n updateImport: {\n method: \"PATCH\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n vcs_password: { type: \"string\" },\n vcs_username: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import\"\n }\n },\n oauthAuthorizations: {\n checkAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)\",\n method: \"GET\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n createAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization\",\n method: \"POST\",\n params: {\n client_id: { type: \"string\" },\n client_secret: { type: \"string\" },\n fingerprint: { type: \"string\" },\n note: { required: true, type: \"string\" },\n note_url: { type: \"string\" },\n scopes: { type: \"string[]\" }\n },\n url: \"/authorizations\"\n },\n deleteAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization\",\n method: \"DELETE\",\n params: { authorization_id: { required: true, type: \"integer\" } },\n url: \"/authorizations/:authorization_id\"\n },\n deleteGrant: {\n deprecated: \"octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant\",\n method: \"DELETE\",\n params: { grant_id: { required: true, type: \"integer\" } },\n url: \"/applications/grants/:grant_id\"\n },\n getAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization\",\n method: \"GET\",\n params: { authorization_id: { required: true, type: \"integer\" } },\n url: \"/authorizations/:authorization_id\"\n },\n getGrant: {\n deprecated: \"octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant\",\n method: \"GET\",\n params: { grant_id: { required: true, type: \"integer\" } },\n url: \"/applications/grants/:grant_id\"\n },\n getOrCreateAuthorizationForApp: {\n deprecated: \"octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app\",\n method: \"PUT\",\n params: {\n client_id: { required: true, type: \"string\" },\n client_secret: { required: true, type: \"string\" },\n fingerprint: { type: \"string\" },\n note: { type: \"string\" },\n note_url: { type: \"string\" },\n scopes: { type: \"string[]\" }\n },\n url: \"/authorizations/clients/:client_id\"\n },\n getOrCreateAuthorizationForAppAndFingerprint: {\n deprecated: \"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint\",\n method: \"PUT\",\n params: {\n client_id: { required: true, type: \"string\" },\n client_secret: { required: true, type: \"string\" },\n fingerprint: { required: true, type: \"string\" },\n note: { type: \"string\" },\n note_url: { type: \"string\" },\n scopes: { type: \"string[]\" }\n },\n url: \"/authorizations/clients/:client_id/:fingerprint\"\n },\n getOrCreateAuthorizationForAppFingerprint: {\n deprecated: \"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)\",\n method: \"PUT\",\n params: {\n client_id: { required: true, type: \"string\" },\n client_secret: { required: true, type: \"string\" },\n fingerprint: { required: true, type: \"string\" },\n note: { type: \"string\" },\n note_url: { type: \"string\" },\n scopes: { type: \"string[]\" }\n },\n url: \"/authorizations/clients/:client_id/:fingerprint\"\n },\n listAuthorizations: {\n deprecated: \"octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations\",\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/authorizations\"\n },\n listGrants: {\n deprecated: \"octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants\",\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/applications/grants\"\n },\n resetAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)\",\n method: \"POST\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n revokeAuthorizationForApplication: {\n deprecated: \"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)\",\n method: \"DELETE\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n revokeGrantForApplication: {\n deprecated: \"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)\",\n method: \"DELETE\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/grants/:access_token\"\n },\n updateAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization\",\n method: \"PATCH\",\n params: {\n add_scopes: { type: \"string[]\" },\n authorization_id: { required: true, type: \"integer\" },\n fingerprint: { type: \"string\" },\n note: { type: \"string\" },\n note_url: { type: \"string\" },\n remove_scopes: { type: \"string[]\" },\n scopes: { type: \"string[]\" }\n },\n url: \"/authorizations/:authorization_id\"\n }\n },\n orgs: {\n addOrUpdateMembership: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n role: { enum: [\"admin\", \"member\"], type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/memberships/:username\"\n },\n blockUser: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/blocks/:username\"\n },\n checkBlockedUser: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/blocks/:username\"\n },\n checkMembership: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/members/:username\"\n },\n checkPublicMembership: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/public_members/:username\"\n },\n concealMembership: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/public_members/:username\"\n },\n convertMemberToOutsideCollaborator: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/outside_collaborators/:username\"\n },\n createHook: {\n method: \"POST\",\n params: {\n active: { type: \"boolean\" },\n config: { required: true, type: \"object\" },\n \"config.content_type\": { type: \"string\" },\n \"config.insecure_ssl\": { type: \"string\" },\n \"config.secret\": { type: \"string\" },\n \"config.url\": { required: true, type: \"string\" },\n events: { type: \"string[]\" },\n name: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/hooks\"\n },\n createInvitation: {\n method: \"POST\",\n params: {\n email: { type: \"string\" },\n invitee_id: { type: \"integer\" },\n org: { required: true, type: \"string\" },\n role: {\n enum: [\"admin\", \"direct_member\", \"billing_manager\"],\n type: \"string\"\n },\n team_ids: { type: \"integer[]\" }\n },\n url: \"/orgs/:org/invitations\"\n },\n deleteHook: {\n method: \"DELETE\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/hooks/:hook_id\"\n },\n get: {\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org\"\n },\n getHook: {\n method: \"GET\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/hooks/:hook_id\"\n },\n getMembership: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/memberships/:username\"\n },\n getMembershipForAuthenticatedUser: {\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/user/memberships/orgs/:org\"\n },\n list: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"integer\" }\n },\n url: \"/organizations\"\n },\n listBlockedUsers: {\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org/blocks\"\n },\n listForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/orgs\"\n },\n listForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/orgs\"\n },\n listHooks: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/hooks\"\n },\n listInstallations: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/installations\"\n },\n listInvitationTeams: {\n method: \"GET\",\n params: {\n invitation_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/invitations/:invitation_id/teams\"\n },\n listMembers: {\n method: \"GET\",\n params: {\n filter: { enum: [\"2fa_disabled\", \"all\"], type: \"string\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n role: { enum: [\"all\", \"admin\", \"member\"], type: \"string\" }\n },\n url: \"/orgs/:org/members\"\n },\n listMemberships: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n state: { enum: [\"active\", \"pending\"], type: \"string\" }\n },\n url: \"/user/memberships/orgs\"\n },\n listOutsideCollaborators: {\n method: \"GET\",\n params: {\n filter: { enum: [\"2fa_disabled\", \"all\"], type: \"string\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/outside_collaborators\"\n },\n listPendingInvitations: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/invitations\"\n },\n listPublicMembers: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/public_members\"\n },\n pingHook: {\n method: \"POST\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/hooks/:hook_id/pings\"\n },\n publicizeMembership: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/public_members/:username\"\n },\n removeMember: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/members/:username\"\n },\n removeMembership: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/memberships/:username\"\n },\n removeOutsideCollaborator: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/outside_collaborators/:username\"\n },\n unblockUser: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/blocks/:username\"\n },\n update: {\n method: \"PATCH\",\n params: {\n billing_email: { type: \"string\" },\n company: { type: \"string\" },\n default_repository_permission: {\n enum: [\"read\", \"write\", \"admin\", \"none\"],\n type: \"string\"\n },\n description: { type: \"string\" },\n email: { type: \"string\" },\n has_organization_projects: { type: \"boolean\" },\n has_repository_projects: { type: \"boolean\" },\n location: { type: \"string\" },\n members_allowed_repository_creation_type: {\n enum: [\"all\", \"private\", \"none\"],\n type: \"string\"\n },\n members_can_create_internal_repositories: { type: \"boolean\" },\n members_can_create_private_repositories: { type: \"boolean\" },\n members_can_create_public_repositories: { type: \"boolean\" },\n members_can_create_repositories: { type: \"boolean\" },\n name: { type: \"string\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org\"\n },\n updateHook: {\n method: \"PATCH\",\n params: {\n active: { type: \"boolean\" },\n config: { type: \"object\" },\n \"config.content_type\": { type: \"string\" },\n \"config.insecure_ssl\": { type: \"string\" },\n \"config.secret\": { type: \"string\" },\n \"config.url\": { required: true, type: \"string\" },\n events: { type: \"string[]\" },\n hook_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/hooks/:hook_id\"\n },\n updateMembership: {\n method: \"PATCH\",\n params: {\n org: { required: true, type: \"string\" },\n state: { enum: [\"active\"], required: true, type: \"string\" }\n },\n url: \"/user/memberships/orgs/:org\"\n }\n },\n projects: {\n addCollaborator: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PUT\",\n params: {\n permission: { enum: [\"read\", \"write\", \"admin\"], type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/projects/:project_id/collaborators/:username\"\n },\n createCard: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n column_id: { required: true, type: \"integer\" },\n content_id: { type: \"integer\" },\n content_type: { type: \"string\" },\n note: { type: \"string\" }\n },\n url: \"/projects/columns/:column_id/cards\"\n },\n createColumn: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n name: { required: true, type: \"string\" },\n project_id: { required: true, type: \"integer\" }\n },\n url: \"/projects/:project_id/columns\"\n },\n createForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n name: { required: true, type: \"string\" }\n },\n url: \"/user/projects\"\n },\n createForOrg: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n name: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/projects\"\n },\n createForRepo: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/projects\"\n },\n delete: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"DELETE\",\n params: { project_id: { required: true, type: \"integer\" } },\n url: \"/projects/:project_id\"\n },\n deleteCard: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"DELETE\",\n params: { card_id: { required: true, type: \"integer\" } },\n url: \"/projects/columns/cards/:card_id\"\n },\n deleteColumn: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"DELETE\",\n params: { column_id: { required: true, type: \"integer\" } },\n url: \"/projects/columns/:column_id\"\n },\n get: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: { project_id: { required: true, type: \"integer\" } },\n url: \"/projects/:project_id\"\n },\n getCard: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: { card_id: { required: true, type: \"integer\" } },\n url: \"/projects/columns/cards/:card_id\"\n },\n getColumn: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: { column_id: { required: true, type: \"integer\" } },\n url: \"/projects/columns/:column_id\"\n },\n listCards: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n archived_state: {\n enum: [\"all\", \"archived\", \"not_archived\"],\n type: \"string\"\n },\n column_id: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/projects/columns/:column_id/cards\"\n },\n listCollaborators: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n affiliation: { enum: [\"outside\", \"direct\", \"all\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n project_id: { required: true, type: \"integer\" }\n },\n url: \"/projects/:project_id/collaborators\"\n },\n listColumns: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n project_id: { required: true, type: \"integer\" }\n },\n url: \"/projects/:project_id/columns\"\n },\n listForOrg: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/orgs/:org/projects\"\n },\n listForRepo: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/projects\"\n },\n listForUser: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/projects\"\n },\n moveCard: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n card_id: { required: true, type: \"integer\" },\n column_id: { type: \"integer\" },\n position: {\n required: true,\n type: \"string\",\n validation: \"^(top|bottom|after:\\\\d+)$\"\n }\n },\n url: \"/projects/columns/cards/:card_id/moves\"\n },\n moveColumn: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n column_id: { required: true, type: \"integer\" },\n position: {\n required: true,\n type: \"string\",\n validation: \"^(first|last|after:\\\\d+)$\"\n }\n },\n url: \"/projects/columns/:column_id/moves\"\n },\n removeCollaborator: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"DELETE\",\n params: {\n project_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/projects/:project_id/collaborators/:username\"\n },\n reviewUserPermissionLevel: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n project_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/projects/:project_id/collaborators/:username/permission\"\n },\n update: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PATCH\",\n params: {\n body: { type: \"string\" },\n name: { type: \"string\" },\n organization_permission: { type: \"string\" },\n private: { type: \"boolean\" },\n project_id: { required: true, type: \"integer\" },\n state: { enum: [\"open\", \"closed\"], type: \"string\" }\n },\n url: \"/projects/:project_id\"\n },\n updateCard: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PATCH\",\n params: {\n archived: { type: \"boolean\" },\n card_id: { required: true, type: \"integer\" },\n note: { type: \"string\" }\n },\n url: \"/projects/columns/cards/:card_id\"\n },\n updateColumn: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PATCH\",\n params: {\n column_id: { required: true, type: \"integer\" },\n name: { required: true, type: \"string\" }\n },\n url: \"/projects/columns/:column_id\"\n }\n },\n pulls: {\n checkIfMerged: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/merge\"\n },\n create: {\n method: \"POST\",\n params: {\n base: { required: true, type: \"string\" },\n body: { type: \"string\" },\n draft: { type: \"boolean\" },\n head: { required: true, type: \"string\" },\n maintainer_can_modify: { type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls\"\n },\n createComment: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n commit_id: { required: true, type: \"string\" },\n in_reply_to: {\n deprecated: true,\n description: \"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 type: \"integer\"\n },\n line: { type: \"integer\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n position: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n side: { enum: [\"LEFT\", \"RIGHT\"], type: \"string\" },\n start_line: { type: \"integer\" },\n start_side: { enum: [\"LEFT\", \"RIGHT\", \"side\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/comments\"\n },\n createCommentReply: {\n deprecated: \"octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)\",\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n commit_id: { required: true, type: \"string\" },\n in_reply_to: {\n deprecated: true,\n description: \"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 type: \"integer\"\n },\n line: { type: \"integer\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n position: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n side: { enum: [\"LEFT\", \"RIGHT\"], type: \"string\" },\n start_line: { type: \"integer\" },\n start_side: { enum: [\"LEFT\", \"RIGHT\", \"side\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/comments\"\n },\n createFromIssue: {\n deprecated: \"octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request\",\n method: \"POST\",\n params: {\n base: { required: true, type: \"string\" },\n draft: { type: \"boolean\" },\n head: { required: true, type: \"string\" },\n issue: { required: true, type: \"integer\" },\n maintainer_can_modify: { type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls\"\n },\n createReview: {\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n comments: { type: \"object[]\" },\n \"comments[].body\": { required: true, type: \"string\" },\n \"comments[].path\": { required: true, type: \"string\" },\n \"comments[].position\": { required: true, type: \"integer\" },\n commit_id: { type: \"string\" },\n event: {\n enum: [\"APPROVE\", \"REQUEST_CHANGES\", \"COMMENT\"],\n type: \"string\"\n },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews\"\n },\n createReviewCommentReply: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies\"\n },\n createReviewRequest: {\n method: \"POST\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n reviewers: { type: \"string[]\" },\n team_reviewers: { type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers\"\n },\n deleteComment: {\n method: \"DELETE\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments/:comment_id\"\n },\n deletePendingReview: {\n method: \"DELETE\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id\"\n },\n deleteReviewRequest: {\n method: \"DELETE\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n reviewers: { type: \"string[]\" },\n team_reviewers: { type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers\"\n },\n dismissReview: {\n method: \"PUT\",\n params: {\n message: { required: true, type: \"string\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals\"\n },\n get: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number\"\n },\n getComment: {\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments/:comment_id\"\n },\n getCommentsForReview: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments\"\n },\n getReview: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id\"\n },\n list: {\n method: \"GET\",\n params: {\n base: { type: \"string\" },\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n head: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sort: {\n enum: [\"created\", \"updated\", \"popularity\", \"long-running\"],\n type: \"string\"\n },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls\"\n },\n listComments: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/comments\"\n },\n listCommentsForRepo: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments\"\n },\n listCommits: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/commits\"\n },\n listFiles: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/files\"\n },\n listReviewRequests: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers\"\n },\n listReviews: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews\"\n },\n merge: {\n method: \"PUT\",\n params: {\n commit_message: { type: \"string\" },\n commit_title: { type: \"string\" },\n merge_method: { enum: [\"merge\", \"squash\", \"rebase\"], type: \"string\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/merge\"\n },\n submitReview: {\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n event: {\n enum: [\"APPROVE\", \"REQUEST_CHANGES\", \"COMMENT\"],\n required: true,\n type: \"string\"\n },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events\"\n },\n update: {\n method: \"PATCH\",\n params: {\n base: { type: \"string\" },\n body: { type: \"string\" },\n maintainer_can_modify: { type: \"boolean\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n state: { enum: [\"open\", \"closed\"], type: \"string\" },\n title: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number\"\n },\n updateBranch: {\n headers: { accept: \"application/vnd.github.lydian-preview+json\" },\n method: \"PUT\",\n params: {\n expected_head_sha: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/update-branch\"\n },\n updateComment: {\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments/:comment_id\"\n },\n updateReview: {\n method: \"PUT\",\n params: {\n body: { required: true, type: \"string\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id\"\n }\n },\n rateLimit: { get: { method: \"GET\", params: {}, url: \"/rate_limit\" } },\n reactions: {\n createForCommitComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments/:comment_id/reactions\"\n },\n createForIssue: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/reactions\"\n },\n createForIssueComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments/:comment_id/reactions\"\n },\n createForPullRequestReviewComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments/:comment_id/reactions\"\n },\n createForTeamDiscussion: {\n deprecated: \"octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/reactions\"\n },\n createForTeamDiscussionComment: {\n deprecated: \"octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n createForTeamDiscussionCommentInOrg: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n createForTeamDiscussionCommentLegacy: {\n deprecated: \"octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n createForTeamDiscussionInOrg: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions\"\n },\n createForTeamDiscussionLegacy: {\n deprecated: \"octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/reactions\"\n },\n delete: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"DELETE\",\n params: { reaction_id: { required: true, type: \"integer\" } },\n url: \"/reactions/:reaction_id\"\n },\n listForCommitComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments/:comment_id/reactions\"\n },\n listForIssue: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/reactions\"\n },\n listForIssueComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments/:comment_id/reactions\"\n },\n listForPullRequestReviewComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments/:comment_id/reactions\"\n },\n listForTeamDiscussion: {\n deprecated: \"octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/reactions\"\n },\n listForTeamDiscussionComment: {\n deprecated: \"octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n listForTeamDiscussionCommentInOrg: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n listForTeamDiscussionCommentLegacy: {\n deprecated: \"octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n listForTeamDiscussionInOrg: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions\"\n },\n listForTeamDiscussionLegacy: {\n deprecated: \"octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/reactions\"\n }\n },\n repos: {\n acceptInvitation: {\n method: \"PATCH\",\n params: { invitation_id: { required: true, type: \"integer\" } },\n url: \"/user/repository_invitations/:invitation_id\"\n },\n addCollaborator: {\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n repo: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/collaborators/:username\"\n },\n addDeployKey: {\n method: \"POST\",\n params: {\n key: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n read_only: { type: \"boolean\" },\n repo: { required: true, type: \"string\" },\n title: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/keys\"\n },\n addProtectedBranchAdminEnforcement: {\n method: \"POST\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/enforce_admins\"\n },\n addProtectedBranchAppRestrictions: {\n method: \"POST\",\n params: {\n apps: { mapTo: \"data\", required: true, type: \"string[]\" },\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps\"\n },\n addProtectedBranchRequiredSignatures: {\n headers: { accept: \"application/vnd.github.zzzax-preview+json\" },\n method: \"POST\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_signatures\"\n },\n addProtectedBranchRequiredStatusChecksContexts: {\n method: \"POST\",\n params: {\n branch: { required: true, type: \"string\" },\n contexts: { mapTo: \"data\", required: true, type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts\"\n },\n addProtectedBranchTeamRestrictions: {\n method: \"POST\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n teams: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n addProtectedBranchUserRestrictions: {\n method: \"POST\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n users: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n checkCollaborator: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/collaborators/:username\"\n },\n checkVulnerabilityAlerts: {\n headers: { accept: \"application/vnd.github.dorian-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/vulnerability-alerts\"\n },\n compareCommits: {\n method: \"GET\",\n params: {\n base: { required: true, type: \"string\" },\n head: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/compare/:base...:head\"\n },\n createCommitComment: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n commit_sha: { required: true, type: \"string\" },\n line: { type: \"integer\" },\n owner: { required: true, type: \"string\" },\n path: { type: \"string\" },\n position: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sha: { alias: \"commit_sha\", deprecated: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:commit_sha/comments\"\n },\n createDeployment: {\n method: \"POST\",\n params: {\n auto_merge: { type: \"boolean\" },\n description: { type: \"string\" },\n environment: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n payload: { type: \"string\" },\n production_environment: { type: \"boolean\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n required_contexts: { type: \"string[]\" },\n task: { type: \"string\" },\n transient_environment: { type: \"boolean\" }\n },\n url: \"/repos/:owner/:repo/deployments\"\n },\n createDeploymentStatus: {\n method: \"POST\",\n params: {\n auto_inactive: { type: \"boolean\" },\n deployment_id: { required: true, type: \"integer\" },\n description: { type: \"string\" },\n environment: { enum: [\"production\", \"staging\", \"qa\"], type: \"string\" },\n environment_url: { type: \"string\" },\n log_url: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n state: {\n enum: [\n \"error\",\n \"failure\",\n \"inactive\",\n \"in_progress\",\n \"queued\",\n \"pending\",\n \"success\"\n ],\n required: true,\n type: \"string\"\n },\n target_url: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/deployments/:deployment_id/statuses\"\n },\n createDispatchEvent: {\n method: \"POST\",\n params: {\n client_payload: { type: \"object\" },\n event_type: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/dispatches\"\n },\n createFile: {\n deprecated: \"octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)\",\n method: \"PUT\",\n params: {\n author: { type: \"object\" },\n \"author.email\": { required: true, type: \"string\" },\n \"author.name\": { required: true, type: \"string\" },\n branch: { type: \"string\" },\n committer: { type: \"object\" },\n \"committer.email\": { required: true, type: \"string\" },\n \"committer.name\": { required: true, type: \"string\" },\n content: { required: true, type: \"string\" },\n message: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contents/:path\"\n },\n createForAuthenticatedUser: {\n method: \"POST\",\n params: {\n allow_merge_commit: { type: \"boolean\" },\n allow_rebase_merge: { type: \"boolean\" },\n allow_squash_merge: { type: \"boolean\" },\n auto_init: { type: \"boolean\" },\n delete_branch_on_merge: { type: \"boolean\" },\n description: { type: \"string\" },\n gitignore_template: { type: \"string\" },\n has_issues: { type: \"boolean\" },\n has_projects: { type: \"boolean\" },\n has_wiki: { type: \"boolean\" },\n homepage: { type: \"string\" },\n is_template: { type: \"boolean\" },\n license_template: { type: \"string\" },\n name: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n team_id: { type: \"integer\" },\n visibility: {\n enum: [\"public\", \"private\", \"visibility\", \"internal\"],\n type: \"string\"\n }\n },\n url: \"/user/repos\"\n },\n createFork: {\n method: \"POST\",\n params: {\n organization: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/forks\"\n },\n createHook: {\n method: \"POST\",\n params: {\n active: { type: \"boolean\" },\n config: { required: true, type: \"object\" },\n \"config.content_type\": { type: \"string\" },\n \"config.insecure_ssl\": { type: \"string\" },\n \"config.secret\": { type: \"string\" },\n \"config.url\": { required: true, type: \"string\" },\n events: { type: \"string[]\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks\"\n },\n createInOrg: {\n method: \"POST\",\n params: {\n allow_merge_commit: { type: \"boolean\" },\n allow_rebase_merge: { type: \"boolean\" },\n allow_squash_merge: { type: \"boolean\" },\n auto_init: { type: \"boolean\" },\n delete_branch_on_merge: { type: \"boolean\" },\n description: { type: \"string\" },\n gitignore_template: { type: \"string\" },\n has_issues: { type: \"boolean\" },\n has_projects: { type: \"boolean\" },\n has_wiki: { type: \"boolean\" },\n homepage: { type: \"string\" },\n is_template: { type: \"boolean\" },\n license_template: { type: \"string\" },\n name: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n team_id: { type: \"integer\" },\n visibility: {\n enum: [\"public\", \"private\", \"visibility\", \"internal\"],\n type: \"string\"\n }\n },\n url: \"/orgs/:org/repos\"\n },\n createOrUpdateFile: {\n method: \"PUT\",\n params: {\n author: { type: \"object\" },\n \"author.email\": { required: true, type: \"string\" },\n \"author.name\": { required: true, type: \"string\" },\n branch: { type: \"string\" },\n committer: { type: \"object\" },\n \"committer.email\": { required: true, type: \"string\" },\n \"committer.name\": { required: true, type: \"string\" },\n content: { required: true, type: \"string\" },\n message: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contents/:path\"\n },\n createRelease: {\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n draft: { type: \"boolean\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n prerelease: { type: \"boolean\" },\n repo: { required: true, type: \"string\" },\n tag_name: { required: true, type: \"string\" },\n target_commitish: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases\"\n },\n createStatus: {\n method: \"POST\",\n params: {\n context: { type: \"string\" },\n description: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { required: true, type: \"string\" },\n state: {\n enum: [\"error\", \"failure\", \"pending\", \"success\"],\n required: true,\n type: \"string\"\n },\n target_url: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/statuses/:sha\"\n },\n createUsingTemplate: {\n headers: { accept: \"application/vnd.github.baptiste-preview+json\" },\n method: \"POST\",\n params: {\n description: { type: \"string\" },\n name: { required: true, type: \"string\" },\n owner: { type: \"string\" },\n private: { type: \"boolean\" },\n template_owner: { required: true, type: \"string\" },\n template_repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:template_owner/:template_repo/generate\"\n },\n declineInvitation: {\n method: \"DELETE\",\n params: { invitation_id: { required: true, type: \"integer\" } },\n url: \"/user/repository_invitations/:invitation_id\"\n },\n delete: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo\"\n },\n deleteCommitComment: {\n method: \"DELETE\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments/:comment_id\"\n },\n deleteDownload: {\n method: \"DELETE\",\n params: {\n download_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/downloads/:download_id\"\n },\n deleteFile: {\n method: \"DELETE\",\n params: {\n author: { type: \"object\" },\n \"author.email\": { type: \"string\" },\n \"author.name\": { type: \"string\" },\n branch: { type: \"string\" },\n committer: { type: \"object\" },\n \"committer.email\": { type: \"string\" },\n \"committer.name\": { type: \"string\" },\n message: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contents/:path\"\n },\n deleteHook: {\n method: \"DELETE\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks/:hook_id\"\n },\n deleteInvitation: {\n method: \"DELETE\",\n params: {\n invitation_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/invitations/:invitation_id\"\n },\n deleteRelease: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n release_id: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/:release_id\"\n },\n deleteReleaseAsset: {\n method: \"DELETE\",\n params: {\n asset_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/assets/:asset_id\"\n },\n disableAutomatedSecurityFixes: {\n headers: { accept: \"application/vnd.github.london-preview+json\" },\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/automated-security-fixes\"\n },\n disablePagesSite: {\n headers: { accept: \"application/vnd.github.switcheroo-preview+json\" },\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages\"\n },\n disableVulnerabilityAlerts: {\n headers: { accept: \"application/vnd.github.dorian-preview+json\" },\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/vulnerability-alerts\"\n },\n enableAutomatedSecurityFixes: {\n headers: { accept: \"application/vnd.github.london-preview+json\" },\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/automated-security-fixes\"\n },\n enablePagesSite: {\n headers: { accept: \"application/vnd.github.switcheroo-preview+json\" },\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n source: { type: \"object\" },\n \"source.branch\": { enum: [\"master\", \"gh-pages\"], type: \"string\" },\n \"source.path\": { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages\"\n },\n enableVulnerabilityAlerts: {\n headers: { accept: \"application/vnd.github.dorian-preview+json\" },\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/vulnerability-alerts\"\n },\n get: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo\"\n },\n getAppsWithAccessToProtectedBranch: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps\"\n },\n getArchiveLink: {\n method: \"GET\",\n params: {\n archive_format: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/:archive_format/:ref\"\n },\n getBranch: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch\"\n },\n getBranchProtection: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection\"\n },\n getClones: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n per: { enum: [\"day\", \"week\"], type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/traffic/clones\"\n },\n getCodeFrequencyStats: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stats/code_frequency\"\n },\n getCollaboratorPermissionLevel: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/collaborators/:username/permission\"\n },\n getCombinedStatusForRef: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref/status\"\n },\n getCommit: {\n method: \"GET\",\n params: {\n commit_sha: { alias: \"ref\", deprecated: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { alias: \"ref\", deprecated: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref\"\n },\n getCommitActivityStats: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stats/commit_activity\"\n },\n getCommitComment: {\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments/:comment_id\"\n },\n getCommitRefSha: {\n deprecated: \"octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit\",\n headers: { accept: \"application/vnd.github.v3.sha\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref\"\n },\n getContents: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n ref: { type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contents/:path\"\n },\n getContributorsStats: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stats/contributors\"\n },\n getDeployKey: {\n method: \"GET\",\n params: {\n key_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/keys/:key_id\"\n },\n getDeployment: {\n method: \"GET\",\n params: {\n deployment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/deployments/:deployment_id\"\n },\n getDeploymentStatus: {\n method: \"GET\",\n params: {\n deployment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n status_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id\"\n },\n getDownload: {\n method: \"GET\",\n params: {\n download_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/downloads/:download_id\"\n },\n getHook: {\n method: \"GET\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks/:hook_id\"\n },\n getLatestPagesBuild: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages/builds/latest\"\n },\n getLatestRelease: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/latest\"\n },\n getPages: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages\"\n },\n getPagesBuild: {\n method: \"GET\",\n params: {\n build_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages/builds/:build_id\"\n },\n getParticipationStats: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stats/participation\"\n },\n getProtectedBranchAdminEnforcement: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/enforce_admins\"\n },\n getProtectedBranchPullRequestReviewEnforcement: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews\"\n },\n getProtectedBranchRequiredSignatures: {\n headers: { accept: \"application/vnd.github.zzzax-preview+json\" },\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_signatures\"\n },\n getProtectedBranchRequiredStatusChecks: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks\"\n },\n getProtectedBranchRestrictions: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions\"\n },\n getPunchCardStats: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stats/punch_card\"\n },\n getReadme: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/readme\"\n },\n getRelease: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n release_id: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/:release_id\"\n },\n getReleaseAsset: {\n method: \"GET\",\n params: {\n asset_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/assets/:asset_id\"\n },\n getReleaseByTag: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n tag: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/tags/:tag\"\n },\n getTeamsWithAccessToProtectedBranch: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n getTopPaths: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/traffic/popular/paths\"\n },\n getTopReferrers: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/traffic/popular/referrers\"\n },\n getUsersWithAccessToProtectedBranch: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n getViews: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n per: { enum: [\"day\", \"week\"], type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/traffic/views\"\n },\n list: {\n method: \"GET\",\n params: {\n affiliation: { type: \"string\" },\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n sort: {\n enum: [\"created\", \"updated\", \"pushed\", \"full_name\"],\n type: \"string\"\n },\n type: {\n enum: [\"all\", \"owner\", \"public\", \"private\", \"member\"],\n type: \"string\"\n },\n visibility: { enum: [\"all\", \"public\", \"private\"], type: \"string\" }\n },\n url: \"/user/repos\"\n },\n listAppsWithAccessToProtectedBranch: {\n deprecated: \"octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)\",\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps\"\n },\n listAssetsForRelease: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n release_id: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/:release_id/assets\"\n },\n listBranches: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n protected: { type: \"boolean\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches\"\n },\n listBranchesForHeadCommit: {\n headers: { accept: \"application/vnd.github.groot-preview+json\" },\n method: \"GET\",\n params: {\n commit_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:commit_sha/branches-where-head\"\n },\n listCollaborators: {\n method: \"GET\",\n params: {\n affiliation: { enum: [\"outside\", \"direct\", \"all\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/collaborators\"\n },\n listCommentsForCommit: {\n method: \"GET\",\n params: {\n commit_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { alias: \"commit_sha\", deprecated: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:commit_sha/comments\"\n },\n listCommitComments: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments\"\n },\n listCommits: {\n method: \"GET\",\n params: {\n author: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n path: { type: \"string\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" },\n since: { type: \"string\" },\n until: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits\"\n },\n listContributors: {\n method: \"GET\",\n params: {\n anon: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contributors\"\n },\n listDeployKeys: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/keys\"\n },\n listDeploymentStatuses: {\n method: \"GET\",\n params: {\n deployment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/deployments/:deployment_id/statuses\"\n },\n listDeployments: {\n method: \"GET\",\n params: {\n environment: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" },\n task: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/deployments\"\n },\n listDownloads: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/downloads\"\n },\n listForOrg: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n sort: {\n enum: [\"created\", \"updated\", \"pushed\", \"full_name\"],\n type: \"string\"\n },\n type: {\n enum: [\n \"all\",\n \"public\",\n \"private\",\n \"forks\",\n \"sources\",\n \"member\",\n \"internal\"\n ],\n type: \"string\"\n }\n },\n url: \"/orgs/:org/repos\"\n },\n listForUser: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n sort: {\n enum: [\"created\", \"updated\", \"pushed\", \"full_name\"],\n type: \"string\"\n },\n type: { enum: [\"all\", \"owner\", \"member\"], type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/repos\"\n },\n listForks: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sort: { enum: [\"newest\", \"oldest\", \"stargazers\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/forks\"\n },\n listHooks: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks\"\n },\n listInvitations: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/invitations\"\n },\n listInvitationsForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/repository_invitations\"\n },\n listLanguages: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/languages\"\n },\n listPagesBuilds: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages/builds\"\n },\n listProtectedBranchRequiredStatusChecksContexts: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts\"\n },\n listProtectedBranchTeamRestrictions: {\n deprecated: \"octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)\",\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n listProtectedBranchUserRestrictions: {\n deprecated: \"octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)\",\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n listPublic: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"integer\" }\n },\n url: \"/repositories\"\n },\n listPullRequestsAssociatedWithCommit: {\n headers: { accept: \"application/vnd.github.groot-preview+json\" },\n method: \"GET\",\n params: {\n commit_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:commit_sha/pulls\"\n },\n listReleases: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases\"\n },\n listStatusesForRef: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref/statuses\"\n },\n listTags: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/tags\"\n },\n listTeams: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/teams\"\n },\n listTeamsWithAccessToProtectedBranch: {\n deprecated: \"octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)\",\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n listTopics: {\n headers: { accept: \"application/vnd.github.mercy-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/topics\"\n },\n listUsersWithAccessToProtectedBranch: {\n deprecated: \"octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)\",\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n merge: {\n method: \"POST\",\n params: {\n base: { required: true, type: \"string\" },\n commit_message: { type: \"string\" },\n head: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/merges\"\n },\n pingHook: {\n method: \"POST\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks/:hook_id/pings\"\n },\n removeBranchProtection: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection\"\n },\n removeCollaborator: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/collaborators/:username\"\n },\n removeDeployKey: {\n method: \"DELETE\",\n params: {\n key_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/keys/:key_id\"\n },\n removeProtectedBranchAdminEnforcement: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/enforce_admins\"\n },\n removeProtectedBranchAppRestrictions: {\n method: \"DELETE\",\n params: {\n apps: { mapTo: \"data\", required: true, type: \"string[]\" },\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps\"\n },\n removeProtectedBranchPullRequestReviewEnforcement: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews\"\n },\n removeProtectedBranchRequiredSignatures: {\n headers: { accept: \"application/vnd.github.zzzax-preview+json\" },\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_signatures\"\n },\n removeProtectedBranchRequiredStatusChecks: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks\"\n },\n removeProtectedBranchRequiredStatusChecksContexts: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n contexts: { mapTo: \"data\", required: true, type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts\"\n },\n removeProtectedBranchRestrictions: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions\"\n },\n removeProtectedBranchTeamRestrictions: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n teams: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n removeProtectedBranchUserRestrictions: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n users: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n replaceProtectedBranchAppRestrictions: {\n method: \"PUT\",\n params: {\n apps: { mapTo: \"data\", required: true, type: \"string[]\" },\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps\"\n },\n replaceProtectedBranchRequiredStatusChecksContexts: {\n method: \"PUT\",\n params: {\n branch: { required: true, type: \"string\" },\n contexts: { mapTo: \"data\", required: true, type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts\"\n },\n replaceProtectedBranchTeamRestrictions: {\n method: \"PUT\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n teams: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n replaceProtectedBranchUserRestrictions: {\n method: \"PUT\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n users: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n replaceTopics: {\n headers: { accept: \"application/vnd.github.mercy-preview+json\" },\n method: \"PUT\",\n params: {\n names: { required: true, type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/topics\"\n },\n requestPageBuild: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages/builds\"\n },\n retrieveCommunityProfileMetrics: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/community/profile\"\n },\n testPushHook: {\n method: \"POST\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks/:hook_id/tests\"\n },\n transfer: {\n method: \"POST\",\n params: {\n new_owner: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_ids: { type: \"integer[]\" }\n },\n url: \"/repos/:owner/:repo/transfer\"\n },\n update: {\n method: \"PATCH\",\n params: {\n allow_merge_commit: { type: \"boolean\" },\n allow_rebase_merge: { type: \"boolean\" },\n allow_squash_merge: { type: \"boolean\" },\n archived: { type: \"boolean\" },\n default_branch: { type: \"string\" },\n delete_branch_on_merge: { type: \"boolean\" },\n description: { type: \"string\" },\n has_issues: { type: \"boolean\" },\n has_projects: { type: \"boolean\" },\n has_wiki: { type: \"boolean\" },\n homepage: { type: \"string\" },\n is_template: { type: \"boolean\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n repo: { required: true, type: \"string\" },\n visibility: {\n enum: [\"public\", \"private\", \"visibility\", \"internal\"],\n type: \"string\"\n }\n },\n url: \"/repos/:owner/:repo\"\n },\n updateBranchProtection: {\n method: \"PUT\",\n params: {\n allow_deletions: { type: \"boolean\" },\n allow_force_pushes: { allowNull: true, type: \"boolean\" },\n branch: { required: true, type: \"string\" },\n enforce_admins: { allowNull: true, required: true, type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n required_linear_history: { type: \"boolean\" },\n required_pull_request_reviews: {\n allowNull: true,\n required: true,\n type: \"object\"\n },\n \"required_pull_request_reviews.dismiss_stale_reviews\": {\n type: \"boolean\"\n },\n \"required_pull_request_reviews.dismissal_restrictions\": {\n type: \"object\"\n },\n \"required_pull_request_reviews.dismissal_restrictions.teams\": {\n type: \"string[]\"\n },\n \"required_pull_request_reviews.dismissal_restrictions.users\": {\n type: \"string[]\"\n },\n \"required_pull_request_reviews.require_code_owner_reviews\": {\n type: \"boolean\"\n },\n \"required_pull_request_reviews.required_approving_review_count\": {\n type: \"integer\"\n },\n required_status_checks: {\n allowNull: true,\n required: true,\n type: \"object\"\n },\n \"required_status_checks.contexts\": { required: true, type: \"string[]\" },\n \"required_status_checks.strict\": { required: true, type: \"boolean\" },\n restrictions: { allowNull: true, required: true, type: \"object\" },\n \"restrictions.apps\": { type: \"string[]\" },\n \"restrictions.teams\": { required: true, type: \"string[]\" },\n \"restrictions.users\": { required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection\"\n },\n updateCommitComment: {\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments/:comment_id\"\n },\n updateFile: {\n deprecated: \"octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)\",\n method: \"PUT\",\n params: {\n author: { type: \"object\" },\n \"author.email\": { required: true, type: \"string\" },\n \"author.name\": { required: true, type: \"string\" },\n branch: { type: \"string\" },\n committer: { type: \"object\" },\n \"committer.email\": { required: true, type: \"string\" },\n \"committer.name\": { required: true, type: \"string\" },\n content: { required: true, type: \"string\" },\n message: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contents/:path\"\n },\n updateHook: {\n method: \"PATCH\",\n params: {\n active: { type: \"boolean\" },\n add_events: { type: \"string[]\" },\n config: { type: \"object\" },\n \"config.content_type\": { type: \"string\" },\n \"config.insecure_ssl\": { type: \"string\" },\n \"config.secret\": { type: \"string\" },\n \"config.url\": { required: true, type: \"string\" },\n events: { type: \"string[]\" },\n hook_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n remove_events: { type: \"string[]\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks/:hook_id\"\n },\n updateInformationAboutPagesSite: {\n method: \"PUT\",\n params: {\n cname: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n source: {\n enum: ['\"gh-pages\"', '\"master\"', '\"master /docs\"'],\n type: \"string\"\n }\n },\n url: \"/repos/:owner/:repo/pages\"\n },\n updateInvitation: {\n method: \"PATCH\",\n params: {\n invitation_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n permissions: { enum: [\"read\", \"write\", \"admin\"], type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/invitations/:invitation_id\"\n },\n updateProtectedBranchPullRequestReviewEnforcement: {\n method: \"PATCH\",\n params: {\n branch: { required: true, type: \"string\" },\n dismiss_stale_reviews: { type: \"boolean\" },\n dismissal_restrictions: { type: \"object\" },\n \"dismissal_restrictions.teams\": { type: \"string[]\" },\n \"dismissal_restrictions.users\": { type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n require_code_owner_reviews: { type: \"boolean\" },\n required_approving_review_count: { type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews\"\n },\n updateProtectedBranchRequiredStatusChecks: {\n method: \"PATCH\",\n params: {\n branch: { required: true, type: \"string\" },\n contexts: { type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n strict: { type: \"boolean\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks\"\n },\n updateRelease: {\n method: \"PATCH\",\n params: {\n body: { type: \"string\" },\n draft: { type: \"boolean\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n prerelease: { type: \"boolean\" },\n release_id: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n tag_name: { type: \"string\" },\n target_commitish: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/:release_id\"\n },\n updateReleaseAsset: {\n method: \"PATCH\",\n params: {\n asset_id: { required: true, type: \"integer\" },\n label: { type: \"string\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/assets/:asset_id\"\n },\n uploadReleaseAsset: {\n method: \"POST\",\n params: {\n data: { mapTo: \"data\", required: true, type: \"string | object\" },\n file: { alias: \"data\", deprecated: true, type: \"string | object\" },\n headers: { required: true, type: \"object\" },\n \"headers.content-length\": { required: true, type: \"integer\" },\n \"headers.content-type\": { required: true, type: \"string\" },\n label: { type: \"string\" },\n name: { required: true, type: \"string\" },\n url: { required: true, type: \"string\" }\n },\n url: \":url\"\n }\n },\n search: {\n code: {\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: { enum: [\"indexed\"], type: \"string\" }\n },\n url: \"/search/code\"\n },\n commits: {\n headers: { accept: \"application/vnd.github.cloak-preview+json\" },\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: { enum: [\"author-date\", \"committer-date\"], type: \"string\" }\n },\n url: \"/search/commits\"\n },\n issues: {\n deprecated: \"octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)\",\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: {\n enum: [\n \"comments\",\n \"reactions\",\n \"reactions-+1\",\n \"reactions--1\",\n \"reactions-smile\",\n \"reactions-thinking_face\",\n \"reactions-heart\",\n \"reactions-tada\",\n \"interactions\",\n \"created\",\n \"updated\"\n ],\n type: \"string\"\n }\n },\n url: \"/search/issues\"\n },\n issuesAndPullRequests: {\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: {\n enum: [\n \"comments\",\n \"reactions\",\n \"reactions-+1\",\n \"reactions--1\",\n \"reactions-smile\",\n \"reactions-thinking_face\",\n \"reactions-heart\",\n \"reactions-tada\",\n \"interactions\",\n \"created\",\n \"updated\"\n ],\n type: \"string\"\n }\n },\n url: \"/search/issues\"\n },\n labels: {\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n q: { required: true, type: \"string\" },\n repository_id: { required: true, type: \"integer\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/search/labels\"\n },\n repos: {\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: {\n enum: [\"stars\", \"forks\", \"help-wanted-issues\", \"updated\"],\n type: \"string\"\n }\n },\n url: \"/search/repositories\"\n },\n topics: {\n method: \"GET\",\n params: { q: { required: true, type: \"string\" } },\n url: \"/search/topics\"\n },\n users: {\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: { enum: [\"followers\", \"repositories\", \"joined\"], type: \"string\" }\n },\n url: \"/search/users\"\n }\n },\n teams: {\n addMember: {\n deprecated: \"octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)\",\n method: \"PUT\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n addMemberLegacy: {\n deprecated: \"octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy\",\n method: \"PUT\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n addOrUpdateMembership: {\n deprecated: \"octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)\",\n method: \"PUT\",\n params: {\n role: { enum: [\"member\", \"maintainer\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n addOrUpdateMembershipInOrg: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n role: { enum: [\"member\", \"maintainer\"], type: \"string\" },\n team_slug: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/memberships/:username\"\n },\n addOrUpdateMembershipLegacy: {\n deprecated: \"octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy\",\n method: \"PUT\",\n params: {\n role: { enum: [\"member\", \"maintainer\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n addOrUpdateProject: {\n deprecated: \"octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PUT\",\n params: {\n permission: { enum: [\"read\", \"write\", \"admin\"], type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n addOrUpdateProjectInOrg: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n permission: { enum: [\"read\", \"write\", \"admin\"], type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/projects/:project_id\"\n },\n addOrUpdateProjectLegacy: {\n deprecated: \"octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PUT\",\n params: {\n permission: { enum: [\"read\", \"write\", \"admin\"], type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n addOrUpdateRepo: {\n deprecated: \"octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)\",\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n addOrUpdateRepoInOrg: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/repos/:owner/:repo\"\n },\n addOrUpdateRepoLegacy: {\n deprecated: \"octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy\",\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n checkManagesRepo: {\n deprecated: \"octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n checkManagesRepoInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/repos/:owner/:repo\"\n },\n checkManagesRepoLegacy: {\n deprecated: \"octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy\",\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n create: {\n method: \"POST\",\n params: {\n description: { type: \"string\" },\n maintainers: { type: \"string[]\" },\n name: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" },\n parent_team_id: { type: \"integer\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n privacy: { enum: [\"secret\", \"closed\"], type: \"string\" },\n repo_names: { type: \"string[]\" }\n },\n url: \"/orgs/:org/teams\"\n },\n createDiscussion: {\n deprecated: \"octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)\",\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n team_id: { required: true, type: \"integer\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/discussions\"\n },\n createDiscussionComment: {\n deprecated: \"octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)\",\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments\"\n },\n createDiscussionCommentInOrg: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments\"\n },\n createDiscussionCommentLegacy: {\n deprecated: \"octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy\",\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments\"\n },\n createDiscussionInOrg: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n team_slug: { required: true, type: \"string\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions\"\n },\n createDiscussionLegacy: {\n deprecated: \"octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy\",\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n team_id: { required: true, type: \"integer\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/discussions\"\n },\n delete: {\n deprecated: \"octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: { team_id: { required: true, type: \"integer\" } },\n url: \"/teams/:team_id\"\n },\n deleteDiscussion: {\n deprecated: \"octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n deleteDiscussionComment: {\n deprecated: \"octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n deleteDiscussionCommentInOrg: {\n method: \"DELETE\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number\"\n },\n deleteDiscussionCommentLegacy: {\n deprecated: \"octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy\",\n method: \"DELETE\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n deleteDiscussionInOrg: {\n method: \"DELETE\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number\"\n },\n deleteDiscussionLegacy: {\n deprecated: \"octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy\",\n method: \"DELETE\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n deleteInOrg: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug\"\n },\n deleteLegacy: {\n deprecated: \"octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy\",\n method: \"DELETE\",\n params: { team_id: { required: true, type: \"integer\" } },\n url: \"/teams/:team_id\"\n },\n get: {\n deprecated: \"octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)\",\n method: \"GET\",\n params: { team_id: { required: true, type: \"integer\" } },\n url: \"/teams/:team_id\"\n },\n getByName: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug\"\n },\n getDiscussion: {\n deprecated: \"octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n getDiscussionComment: {\n deprecated: \"octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n getDiscussionCommentInOrg: {\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number\"\n },\n getDiscussionCommentLegacy: {\n deprecated: \"octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy\",\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n getDiscussionInOrg: {\n method: \"GET\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number\"\n },\n getDiscussionLegacy: {\n deprecated: \"octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy\",\n method: \"GET\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n getLegacy: {\n deprecated: \"octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy\",\n method: \"GET\",\n params: { team_id: { required: true, type: \"integer\" } },\n url: \"/teams/:team_id\"\n },\n getMember: {\n deprecated: \"octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n getMemberLegacy: {\n deprecated: \"octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy\",\n method: \"GET\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n getMembership: {\n deprecated: \"octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n getMembershipInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/memberships/:username\"\n },\n getMembershipLegacy: {\n deprecated: \"octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy\",\n method: \"GET\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n list: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/teams\"\n },\n listChild: {\n deprecated: \"octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/teams\"\n },\n listChildInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/teams\"\n },\n listChildLegacy: {\n deprecated: \"octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/teams\"\n },\n listDiscussionComments: {\n deprecated: \"octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments\"\n },\n listDiscussionCommentsInOrg: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments\"\n },\n listDiscussionCommentsLegacy: {\n deprecated: \"octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy\",\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments\"\n },\n listDiscussions: {\n deprecated: \"octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions\"\n },\n listDiscussionsInOrg: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions\"\n },\n listDiscussionsLegacy: {\n deprecated: \"octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy\",\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions\"\n },\n listForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/teams\"\n },\n listMembers: {\n deprecated: \"octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n role: { enum: [\"member\", \"maintainer\", \"all\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/members\"\n },\n listMembersInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n role: { enum: [\"member\", \"maintainer\", \"all\"], type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/members\"\n },\n listMembersLegacy: {\n deprecated: \"octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n role: { enum: [\"member\", \"maintainer\", \"all\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/members\"\n },\n listPendingInvitations: {\n deprecated: \"octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/invitations\"\n },\n listPendingInvitationsInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/invitations\"\n },\n listPendingInvitationsLegacy: {\n deprecated: \"octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/invitations\"\n },\n listProjects: {\n deprecated: \"octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects\"\n },\n listProjectsInOrg: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/projects\"\n },\n listProjectsLegacy: {\n deprecated: \"octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects\"\n },\n listRepos: {\n deprecated: \"octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos\"\n },\n listReposInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/repos\"\n },\n listReposLegacy: {\n deprecated: \"octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos\"\n },\n removeMember: {\n deprecated: \"octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n removeMemberLegacy: {\n deprecated: \"octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy\",\n method: \"DELETE\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n removeMembership: {\n deprecated: \"octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n removeMembershipInOrg: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/memberships/:username\"\n },\n removeMembershipLegacy: {\n deprecated: \"octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy\",\n method: \"DELETE\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n removeProject: {\n deprecated: \"octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n removeProjectInOrg: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/projects/:project_id\"\n },\n removeProjectLegacy: {\n deprecated: \"octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy\",\n method: \"DELETE\",\n params: {\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n removeRepo: {\n deprecated: \"octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n removeRepoInOrg: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/repos/:owner/:repo\"\n },\n removeRepoLegacy: {\n deprecated: \"octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy\",\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n reviewProject: {\n deprecated: \"octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n reviewProjectInOrg: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/projects/:project_id\"\n },\n reviewProjectLegacy: {\n deprecated: \"octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n update: {\n deprecated: \"octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)\",\n method: \"PATCH\",\n params: {\n description: { type: \"string\" },\n name: { required: true, type: \"string\" },\n parent_team_id: { type: \"integer\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n privacy: { enum: [\"secret\", \"closed\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id\"\n },\n updateDiscussion: {\n deprecated: \"octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)\",\n method: \"PATCH\",\n params: {\n body: { type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" },\n title: { type: \"string\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n updateDiscussionComment: {\n deprecated: \"octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)\",\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n updateDiscussionCommentInOrg: {\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number\"\n },\n updateDiscussionCommentLegacy: {\n deprecated: \"octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy\",\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n updateDiscussionInOrg: {\n method: \"PATCH\",\n params: {\n body: { type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" },\n title: { type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number\"\n },\n updateDiscussionLegacy: {\n deprecated: \"octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy\",\n method: \"PATCH\",\n params: {\n body: { type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" },\n title: { type: \"string\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n updateInOrg: {\n method: \"PATCH\",\n params: {\n description: { type: \"string\" },\n name: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" },\n parent_team_id: { type: \"integer\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n privacy: { enum: [\"secret\", \"closed\"], type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug\"\n },\n updateLegacy: {\n deprecated: \"octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy\",\n method: \"PATCH\",\n params: {\n description: { type: \"string\" },\n name: { required: true, type: \"string\" },\n parent_team_id: { type: \"integer\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n privacy: { enum: [\"secret\", \"closed\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id\"\n }\n },\n users: {\n addEmails: {\n method: \"POST\",\n params: { emails: { required: true, type: \"string[]\" } },\n url: \"/user/emails\"\n },\n block: {\n method: \"PUT\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/blocks/:username\"\n },\n checkBlocked: {\n method: \"GET\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/blocks/:username\"\n },\n checkFollowing: {\n method: \"GET\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/following/:username\"\n },\n checkFollowingForUser: {\n method: \"GET\",\n params: {\n target_user: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/following/:target_user\"\n },\n createGpgKey: {\n method: \"POST\",\n params: { armored_public_key: { type: \"string\" } },\n url: \"/user/gpg_keys\"\n },\n createPublicKey: {\n method: \"POST\",\n params: { key: { type: \"string\" }, title: { type: \"string\" } },\n url: \"/user/keys\"\n },\n deleteEmails: {\n method: \"DELETE\",\n params: { emails: { required: true, type: \"string[]\" } },\n url: \"/user/emails\"\n },\n deleteGpgKey: {\n method: \"DELETE\",\n params: { gpg_key_id: { required: true, type: \"integer\" } },\n url: \"/user/gpg_keys/:gpg_key_id\"\n },\n deletePublicKey: {\n method: \"DELETE\",\n params: { key_id: { required: true, type: \"integer\" } },\n url: \"/user/keys/:key_id\"\n },\n follow: {\n method: \"PUT\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/following/:username\"\n },\n getAuthenticated: { method: \"GET\", params: {}, url: \"/user\" },\n getByUsername: {\n method: \"GET\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/users/:username\"\n },\n getContextForUser: {\n method: \"GET\",\n params: {\n subject_id: { type: \"string\" },\n subject_type: {\n enum: [\"organization\", \"repository\", \"issue\", \"pull_request\"],\n type: \"string\"\n },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/hovercard\"\n },\n getGpgKey: {\n method: \"GET\",\n params: { gpg_key_id: { required: true, type: \"integer\" } },\n url: \"/user/gpg_keys/:gpg_key_id\"\n },\n getPublicKey: {\n method: \"GET\",\n params: { key_id: { required: true, type: \"integer\" } },\n url: \"/user/keys/:key_id\"\n },\n list: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" }\n },\n url: \"/users\"\n },\n listBlocked: { method: \"GET\", params: {}, url: \"/user/blocks\" },\n listEmails: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/emails\"\n },\n listFollowersForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/followers\"\n },\n listFollowersForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/followers\"\n },\n listFollowingForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/following\"\n },\n listFollowingForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/following\"\n },\n listGpgKeys: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/gpg_keys\"\n },\n listGpgKeysForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/gpg_keys\"\n },\n listPublicEmails: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/public_emails\"\n },\n listPublicKeys: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/keys\"\n },\n listPublicKeysForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/keys\"\n },\n togglePrimaryEmailVisibility: {\n method: \"PATCH\",\n params: {\n email: { required: true, type: \"string\" },\n visibility: { required: true, type: \"string\" }\n },\n url: \"/user/email/visibility\"\n },\n unblock: {\n method: \"DELETE\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/blocks/:username\"\n },\n unfollow: {\n method: \"DELETE\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/following/:username\"\n },\n updateAuthenticated: {\n method: \"PATCH\",\n params: {\n bio: { type: \"string\" },\n blog: { type: \"string\" },\n company: { type: \"string\" },\n email: { type: \"string\" },\n hireable: { type: \"boolean\" },\n location: { type: \"string\" },\n name: { type: \"string\" }\n },\n url: \"/user\"\n }\n }\n};\n","export const VERSION = \"2.4.0\";\n","import { Deprecation } from \"deprecation\";\nexport function registerEndpoints(octokit, routes) {\n Object.keys(routes).forEach(namespaceName => {\n if (!octokit[namespaceName]) {\n octokit[namespaceName] = {};\n }\n Object.keys(routes[namespaceName]).forEach(apiName => {\n const apiOptions = routes[namespaceName][apiName];\n const endpointDefaults = [\"method\", \"url\", \"headers\"].reduce((map, key) => {\n if (typeof apiOptions[key] !== \"undefined\") {\n map[key] = apiOptions[key];\n }\n return map;\n }, {});\n endpointDefaults.request = {\n validate: apiOptions.params\n };\n let request = octokit.request.defaults(endpointDefaults);\n // patch request & endpoint methods to support deprecated parameters.\n // Not the most elegant solution, but we don’t want to move deprecation\n // logic into octokit/endpoint.js as it’s out of scope\n const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated);\n if (hasDeprecatedParam) {\n const patch = patchForDeprecation.bind(null, octokit, apiOptions);\n request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`);\n request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`);\n request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`);\n }\n if (apiOptions.deprecated) {\n octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() {\n octokit.log.warn(new Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`));\n octokit[namespaceName][apiName] = request;\n return request.apply(null, arguments);\n }, request);\n return;\n }\n octokit[namespaceName][apiName] = request;\n });\n });\n}\nfunction patchForDeprecation(octokit, apiOptions, method, methodName) {\n const patchedMethod = (options) => {\n options = Object.assign({}, options);\n Object.keys(options).forEach(key => {\n if (apiOptions.params[key] && apiOptions.params[key].deprecated) {\n const aliasKey = apiOptions.params[key].alias;\n octokit.log.warn(new Deprecation(`[@octokit/rest] \"${key}\" parameter is deprecated for \"${methodName}\". Use \"${aliasKey}\" instead`));\n if (!(aliasKey in options)) {\n options[aliasKey] = options[key];\n }\n delete options[key];\n }\n });\n return method(options);\n };\n Object.keys(method).forEach(key => {\n patchedMethod[key] = method[key];\n });\n return patchedMethod;\n}\n","import { Deprecation } from \"deprecation\";\nimport endpointsByScope from \"./generated/endpoints\";\nimport { VERSION } from \"./version\";\nimport { registerEndpoints } from \"./register-endpoints\";\n/**\n * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary\n * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is\n * done, we will remove the registerEndpoints methods and return the methods\n * directly as with the other plugins. At that point we will also remove the\n * legacy workarounds and deprecations.\n *\n * See the plan at\n * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1\n */\nexport function restEndpointMethods(octokit) {\n // @ts-ignore\n octokit.registerEndpoints = registerEndpoints.bind(null, octokit);\n registerEndpoints(octokit, endpointsByScope);\n // Aliasing scopes for backward compatibility\n // See https://github.com/octokit/rest.js/pull/1134\n [\n [\"gitdata\", \"git\"],\n [\"authorization\", \"oauthAuthorizations\"],\n [\"pullRequests\", \"pulls\"]\n ].forEach(([deprecatedScope, scope]) => {\n Object.defineProperty(octokit, deprecatedScope, {\n get() {\n octokit.log.warn(\n // @ts-ignore\n new Deprecation(`[@octokit/plugin-rest-endpoint-methods] \"octokit.${deprecatedScope}.*\" methods are deprecated, use \"octokit.${scope}.*\" instead`));\n // @ts-ignore\n return octokit[scope];\n }\n });\n });\n return {};\n}\nrestEndpointMethods.VERSION = VERSION;\n"],"names":["actions","cancelWorkflowRun","method","params","owner","required","type","repo","run_id","url","createOrUpdateSecretForRepo","encrypted_value","key_id","name","createRegistrationToken","createRemoveToken","deleteArtifact","artifact_id","deleteSecretFromRepo","downloadArtifact","archive_format","getArtifact","getPublicKey","getSecret","page","per_page","getSelfHostedRunner","runner_id","getWorkflow","workflow_id","getWorkflowJob","job_id","getWorkflowRun","listDownloadsForSelfHostedRunnerApplication","listJobsForWorkflowRun","listRepoWorkflowRuns","actor","branch","event","status","enum","listRepoWorkflows","listSecretsForRepo","listSelfHostedRunnersForRepo","listWorkflowJobLogs","listWorkflowRunArtifacts","listWorkflowRunLogs","listWorkflowRuns","reRunWorkflow","removeSelfHostedRunner","activity","checkStarringRepo","deleteRepoSubscription","deleteThreadSubscription","thread_id","getRepoSubscription","getThread","getThreadSubscription","listEventsForOrg","org","username","listEventsForUser","listFeeds","listNotifications","all","before","participating","since","listNotificationsForRepo","listPublicEvents","listPublicEventsForOrg","listPublicEventsForRepoNetwork","listPublicEventsForUser","listReceivedEventsForUser","listReceivedPublicEventsForUser","listRepoEvents","listReposStarredByAuthenticatedUser","direction","sort","listReposStarredByUser","listReposWatchedByUser","listStargazersForRepo","listWatchedReposForAuthenticatedUser","listWatchersForRepo","markAsRead","last_read_at","markNotificationsAsReadForRepo","markThreadAsRead","setRepoSubscription","ignored","subscribed","setThreadSubscription","starRepo","unstarRepo","apps","addRepoToInstallation","headers","accept","installation_id","repository_id","checkAccountIsAssociatedWithAny","account_id","checkAccountIsAssociatedWithAnyStubbed","checkAuthorization","deprecated","access_token","client_id","checkToken","createContentAttachment","body","content_reference_id","title","createFromManifest","code","createInstallationToken","permissions","repository_ids","deleteAuthorization","deleteInstallation","deleteToken","findOrgInstallation","findRepoInstallation","findUserInstallation","getAuthenticated","getBySlug","app_slug","getInstallation","getOrgInstallation","getRepoInstallation","getUserInstallation","listAccountsUserOrOrgOnPlan","plan_id","listAccountsUserOrOrgOnPlanStubbed","listInstallationReposForAuthenticatedUser","listInstallations","listInstallationsForAuthenticatedUser","listMarketplacePurchasesForAuthenticatedUser","listMarketplacePurchasesForAuthenticatedUserStubbed","listPlans","listPlansStubbed","listRepos","removeRepoFromInstallation","resetAuthorization","resetToken","revokeAuthorizationForApplication","revokeGrantForApplication","revokeInstallationToken","checks","create","completed_at","conclusion","details_url","external_id","head_sha","output","started_at","createSuite","get","check_run_id","getSuite","check_suite_id","listAnnotations","listForRef","check_name","filter","ref","listForSuite","listSuitesForRef","app_id","rerequestSuite","setSuitesPreferences","auto_trigger_checks","update","codesOfConduct","getConductCode","key","getForRepo","listConductCodes","emojis","gists","checkIsStarred","gist_id","description","files","public","createComment","delete","deleteComment","comment_id","fork","getComment","getRevision","sha","list","listComments","listCommits","listForks","listPublic","listPublicForUser","listStarred","star","unstar","updateComment","git","createBlob","content","encoding","createCommit","author","committer","message","parents","signature","tree","createRef","createTag","object","tag","tagger","createTree","base_tree","allowNull","deleteRef","getBlob","file_sha","getCommit","commit_sha","getRef","getTag","tag_sha","getTree","recursive","tree_sha","listMatchingRefs","listRefs","namespace","updateRef","force","gitignore","getTemplate","listTemplates","interactions","addOrUpdateRestrictionsForOrg","limit","addOrUpdateRestrictionsForRepo","getRestrictionsForOrg","getRestrictionsForRepo","removeRestrictionsForOrg","removeRestrictionsForRepo","issues","addAssignees","assignees","issue_number","number","alias","addLabels","labels","checkAssignee","assignee","milestone","createLabel","color","createMilestone","due_on","state","deleteLabel","deleteMilestone","milestone_number","getEvent","event_id","getLabel","getMilestone","listAssignees","listCommentsForRepo","listEvents","listEventsForRepo","listEventsForTimeline","listForAuthenticatedUser","listForOrg","listForRepo","creator","mentioned","listLabelsForMilestone","listLabelsForRepo","listLabelsOnIssue","listMilestonesForRepo","lock","lock_reason","removeAssignees","removeLabel","removeLabels","replaceLabels","unlock","updateLabel","current_name","updateMilestone","licenses","license","listCommonlyUsed","markdown","render","context","mode","text","renderRaw","data","mapTo","meta","migrations","cancelImport","deleteArchiveForAuthenticatedUser","migration_id","deleteArchiveForOrg","downloadArchiveForOrg","getArchiveForAuthenticatedUser","getArchiveForOrg","getCommitAuthors","getImportProgress","getLargeFiles","getStatusForAuthenticatedUser","getStatusForOrg","listReposForOrg","listReposForUser","mapCommitAuthor","author_id","email","setLfsPreference","use_lfs","startForAuthenticatedUser","exclude_attachments","lock_repositories","repositories","startForOrg","startImport","tfvc_project","vcs","vcs_password","vcs_url","vcs_username","unlockRepoForAuthenticatedUser","repo_name","unlockRepoForOrg","updateImport","oauthAuthorizations","createAuthorization","client_secret","fingerprint","note","note_url","scopes","authorization_id","deleteGrant","grant_id","getAuthorization","getGrant","getOrCreateAuthorizationForApp","getOrCreateAuthorizationForAppAndFingerprint","getOrCreateAuthorizationForAppFingerprint","listAuthorizations","listGrants","updateAuthorization","add_scopes","remove_scopes","orgs","addOrUpdateMembership","role","blockUser","checkBlockedUser","checkMembership","checkPublicMembership","concealMembership","convertMemberToOutsideCollaborator","createHook","active","config","events","createInvitation","invitee_id","team_ids","deleteHook","hook_id","getHook","getMembership","getMembershipForAuthenticatedUser","listBlockedUsers","listForUser","listHooks","listInvitationTeams","invitation_id","listMembers","listMemberships","listOutsideCollaborators","listPendingInvitations","listPublicMembers","pingHook","publicizeMembership","removeMember","removeMembership","removeOutsideCollaborator","unblockUser","billing_email","company","default_repository_permission","has_organization_projects","has_repository_projects","location","members_allowed_repository_creation_type","members_can_create_internal_repositories","members_can_create_private_repositories","members_can_create_public_repositories","members_can_create_repositories","updateHook","updateMembership","projects","addCollaborator","permission","project_id","createCard","column_id","content_id","content_type","createColumn","createForAuthenticatedUser","createForOrg","createForRepo","deleteCard","card_id","deleteColumn","getCard","getColumn","listCards","archived_state","listCollaborators","affiliation","listColumns","moveCard","position","validation","moveColumn","removeCollaborator","reviewUserPermissionLevel","organization_permission","private","updateCard","archived","updateColumn","pulls","checkIfMerged","pull_number","base","draft","head","maintainer_can_modify","commit_id","in_reply_to","line","path","side","start_line","start_side","createCommentReply","createFromIssue","issue","createReview","comments","createReviewCommentReply","createReviewRequest","reviewers","team_reviewers","deletePendingReview","review_id","deleteReviewRequest","dismissReview","getCommentsForReview","getReview","listFiles","listReviewRequests","listReviews","merge","commit_message","commit_title","merge_method","submitReview","updateBranch","expected_head_sha","updateReview","rateLimit","reactions","createForCommitComment","createForIssue","createForIssueComment","createForPullRequestReviewComment","createForTeamDiscussion","discussion_number","team_id","createForTeamDiscussionComment","comment_number","createForTeamDiscussionCommentInOrg","team_slug","createForTeamDiscussionCommentLegacy","createForTeamDiscussionInOrg","createForTeamDiscussionLegacy","reaction_id","listForCommitComment","listForIssue","listForIssueComment","listForPullRequestReviewComment","listForTeamDiscussion","listForTeamDiscussionComment","listForTeamDiscussionCommentInOrg","listForTeamDiscussionCommentLegacy","listForTeamDiscussionInOrg","listForTeamDiscussionLegacy","repos","acceptInvitation","addDeployKey","read_only","addProtectedBranchAdminEnforcement","addProtectedBranchAppRestrictions","addProtectedBranchRequiredSignatures","addProtectedBranchRequiredStatusChecksContexts","contexts","addProtectedBranchTeamRestrictions","teams","addProtectedBranchUserRestrictions","users","checkCollaborator","checkVulnerabilityAlerts","compareCommits","createCommitComment","createDeployment","auto_merge","environment","payload","production_environment","required_contexts","task","transient_environment","createDeploymentStatus","auto_inactive","deployment_id","environment_url","log_url","target_url","createDispatchEvent","client_payload","event_type","createFile","allow_merge_commit","allow_rebase_merge","allow_squash_merge","auto_init","delete_branch_on_merge","gitignore_template","has_issues","has_projects","has_wiki","homepage","is_template","license_template","visibility","createFork","organization","createInOrg","createOrUpdateFile","createRelease","prerelease","tag_name","target_commitish","createStatus","createUsingTemplate","template_owner","template_repo","declineInvitation","deleteCommitComment","deleteDownload","download_id","deleteFile","deleteInvitation","deleteRelease","release_id","deleteReleaseAsset","asset_id","disableAutomatedSecurityFixes","disablePagesSite","disableVulnerabilityAlerts","enableAutomatedSecurityFixes","enablePagesSite","source","enableVulnerabilityAlerts","getAppsWithAccessToProtectedBranch","getArchiveLink","getBranch","getBranchProtection","getClones","per","getCodeFrequencyStats","getCollaboratorPermissionLevel","getCombinedStatusForRef","getCommitActivityStats","getCommitComment","getCommitRefSha","getContents","getContributorsStats","getDeployKey","getDeployment","getDeploymentStatus","status_id","getDownload","getLatestPagesBuild","getLatestRelease","getPages","getPagesBuild","build_id","getParticipationStats","getProtectedBranchAdminEnforcement","getProtectedBranchPullRequestReviewEnforcement","getProtectedBranchRequiredSignatures","getProtectedBranchRequiredStatusChecks","getProtectedBranchRestrictions","getPunchCardStats","getReadme","getRelease","getReleaseAsset","getReleaseByTag","getTeamsWithAccessToProtectedBranch","getTopPaths","getTopReferrers","getUsersWithAccessToProtectedBranch","getViews","listAppsWithAccessToProtectedBranch","listAssetsForRelease","listBranches","protected","listBranchesForHeadCommit","listCommentsForCommit","listCommitComments","until","listContributors","anon","listDeployKeys","listDeploymentStatuses","listDeployments","listDownloads","listInvitations","listInvitationsForAuthenticatedUser","listLanguages","listPagesBuilds","listProtectedBranchRequiredStatusChecksContexts","listProtectedBranchTeamRestrictions","listProtectedBranchUserRestrictions","listPullRequestsAssociatedWithCommit","listReleases","listStatusesForRef","listTags","listTeams","listTeamsWithAccessToProtectedBranch","listTopics","listUsersWithAccessToProtectedBranch","removeBranchProtection","removeDeployKey","removeProtectedBranchAdminEnforcement","removeProtectedBranchAppRestrictions","removeProtectedBranchPullRequestReviewEnforcement","removeProtectedBranchRequiredSignatures","removeProtectedBranchRequiredStatusChecks","removeProtectedBranchRequiredStatusChecksContexts","removeProtectedBranchRestrictions","removeProtectedBranchTeamRestrictions","removeProtectedBranchUserRestrictions","replaceProtectedBranchAppRestrictions","replaceProtectedBranchRequiredStatusChecksContexts","replaceProtectedBranchTeamRestrictions","replaceProtectedBranchUserRestrictions","replaceTopics","names","requestPageBuild","retrieveCommunityProfileMetrics","testPushHook","transfer","new_owner","default_branch","updateBranchProtection","allow_deletions","allow_force_pushes","enforce_admins","required_linear_history","required_pull_request_reviews","required_status_checks","restrictions","updateCommitComment","updateFile","add_events","remove_events","updateInformationAboutPagesSite","cname","updateInvitation","updateProtectedBranchPullRequestReviewEnforcement","dismiss_stale_reviews","dismissal_restrictions","require_code_owner_reviews","required_approving_review_count","updateProtectedBranchRequiredStatusChecks","strict","updateRelease","updateReleaseAsset","label","uploadReleaseAsset","file","search","order","q","commits","issuesAndPullRequests","topics","addMember","addMemberLegacy","addOrUpdateMembershipInOrg","addOrUpdateMembershipLegacy","addOrUpdateProject","addOrUpdateProjectInOrg","addOrUpdateProjectLegacy","addOrUpdateRepo","addOrUpdateRepoInOrg","addOrUpdateRepoLegacy","checkManagesRepo","checkManagesRepoInOrg","checkManagesRepoLegacy","maintainers","parent_team_id","privacy","repo_names","createDiscussion","createDiscussionComment","createDiscussionCommentInOrg","createDiscussionCommentLegacy","createDiscussionInOrg","createDiscussionLegacy","deleteDiscussion","deleteDiscussionComment","deleteDiscussionCommentInOrg","deleteDiscussionCommentLegacy","deleteDiscussionInOrg","deleteDiscussionLegacy","deleteInOrg","deleteLegacy","getByName","getDiscussion","getDiscussionComment","getDiscussionCommentInOrg","getDiscussionCommentLegacy","getDiscussionInOrg","getDiscussionLegacy","getLegacy","getMember","getMemberLegacy","getMembershipInOrg","getMembershipLegacy","listChild","listChildInOrg","listChildLegacy","listDiscussionComments","listDiscussionCommentsInOrg","listDiscussionCommentsLegacy","listDiscussions","listDiscussionsInOrg","listDiscussionsLegacy","listMembersInOrg","listMembersLegacy","listPendingInvitationsInOrg","listPendingInvitationsLegacy","listProjects","listProjectsInOrg","listProjectsLegacy","listReposInOrg","listReposLegacy","removeMemberLegacy","removeMembershipInOrg","removeMembershipLegacy","removeProject","removeProjectInOrg","removeProjectLegacy","removeRepo","removeRepoInOrg","removeRepoLegacy","reviewProject","reviewProjectInOrg","reviewProjectLegacy","updateDiscussion","updateDiscussionComment","updateDiscussionCommentInOrg","updateDiscussionCommentLegacy","updateDiscussionInOrg","updateDiscussionLegacy","updateInOrg","updateLegacy","addEmails","emails","block","checkBlocked","checkFollowing","checkFollowingForUser","target_user","createGpgKey","armored_public_key","createPublicKey","deleteEmails","deleteGpgKey","gpg_key_id","deletePublicKey","follow","getByUsername","getContextForUser","subject_id","subject_type","getGpgKey","listBlocked","listEmails","listFollowersForAuthenticatedUser","listFollowersForUser","listFollowingForAuthenticatedUser","listFollowingForUser","listGpgKeys","listGpgKeysForUser","listPublicEmails","listPublicKeys","listPublicKeysForUser","togglePrimaryEmailVisibility","unblock","unfollow","updateAuthenticated","bio","blog","hireable","VERSION","registerEndpoints","octokit","routes","Object","keys","forEach","namespaceName","apiName","apiOptions","endpointDefaults","reduce","map","request","validate","defaults","hasDeprecatedParam","find","patch","patchForDeprecation","bind","endpoint","assign","deprecatedEndpointMethod","log","warn","Deprecation","apply","arguments","methodName","patchedMethod","options","aliasKey","restEndpointMethods","endpointsByScope","deprecatedScope","scope","defineProperty"],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/generated/endpoints.js","../dist-src/version.js","../dist-src/endpoints-to-methods.js","../dist-src/index.js"],"sourcesContent":["const Endpoints = {\n actions: {\n addSelectedRepoToOrgSecret: [\n \"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\",\n ],\n cancelWorkflowRun: [\n \"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel\",\n ],\n createOrUpdateOrgSecret: [\"PUT /orgs/{org}/actions/secrets/{secret_name}\"],\n createOrUpdateRepoSecret: [\n \"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}\",\n ],\n createRegistrationTokenForOrg: [\n \"POST /orgs/{org}/actions/runners/registration-token\",\n ],\n createRegistrationTokenForRepo: [\n \"POST /repos/{owner}/{repo}/actions/runners/registration-token\",\n ],\n createRemoveTokenForOrg: [\"POST /orgs/{org}/actions/runners/remove-token\"],\n createRemoveTokenForRepo: [\n \"POST /repos/{owner}/{repo}/actions/runners/remove-token\",\n ],\n createWorkflowDispatch: [\n \"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches\",\n ],\n deleteArtifact: [\n \"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\",\n ],\n deleteOrgSecret: [\"DELETE /orgs/{org}/actions/secrets/{secret_name}\"],\n deleteRepoSecret: [\n \"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}\",\n ],\n deleteSelfHostedRunnerFromOrg: [\n \"DELETE /orgs/{org}/actions/runners/{runner_id}\",\n ],\n deleteSelfHostedRunnerFromRepo: [\n \"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}\",\n ],\n deleteWorkflowRun: [\"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}\"],\n deleteWorkflowRunLogs: [\n \"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs\",\n ],\n disableSelectedRepositoryGithubActionsOrganization: [\n \"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}\",\n ],\n disableWorkflow: [\n \"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable\",\n ],\n downloadArtifact: [\n \"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}\",\n ],\n downloadJobLogsForWorkflowRun: [\n \"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs\",\n ],\n downloadWorkflowRunLogs: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs\",\n ],\n enableSelectedRepositoryGithubActionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}\",\n ],\n enableWorkflow: [\n \"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable\",\n ],\n getAllowedActionsOrganization: [\n \"GET /orgs/{org}/actions/permissions/selected-actions\",\n ],\n getAllowedActionsRepository: [\n \"GET /repos/{owner}/{repo}/actions/permissions/selected-actions\",\n ],\n getArtifact: [\"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\"],\n getGithubActionsPermissionsOrganization: [\n \"GET /orgs/{org}/actions/permissions\",\n ],\n getGithubActionsPermissionsRepository: [\n \"GET /repos/{owner}/{repo}/actions/permissions\",\n ],\n getJobForWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/jobs/{job_id}\"],\n getOrgPublicKey: [\"GET /orgs/{org}/actions/secrets/public-key\"],\n getOrgSecret: [\"GET /orgs/{org}/actions/secrets/{secret_name}\"],\n getRepoPermissions: [\n \"GET /repos/{owner}/{repo}/actions/permissions\",\n {},\n { renamed: [\"actions\", \"getGithubActionsPermissionsRepository\"] },\n ],\n getRepoPublicKey: [\"GET /repos/{owner}/{repo}/actions/secrets/public-key\"],\n getRepoSecret: [\"GET /repos/{owner}/{repo}/actions/secrets/{secret_name}\"],\n getSelfHostedRunnerForOrg: [\"GET /orgs/{org}/actions/runners/{runner_id}\"],\n getSelfHostedRunnerForRepo: [\n \"GET /repos/{owner}/{repo}/actions/runners/{runner_id}\",\n ],\n getWorkflow: [\"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}\"],\n getWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}\"],\n getWorkflowRunUsage: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing\",\n ],\n getWorkflowUsage: [\n \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing\",\n ],\n listArtifactsForRepo: [\"GET /repos/{owner}/{repo}/actions/artifacts\"],\n listJobsForWorkflowRun: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs\",\n ],\n listOrgSecrets: [\"GET /orgs/{org}/actions/secrets\"],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/actions/secrets\"],\n listRepoWorkflows: [\"GET /repos/{owner}/{repo}/actions/workflows\"],\n listRunnerApplicationsForOrg: [\"GET /orgs/{org}/actions/runners/downloads\"],\n listRunnerApplicationsForRepo: [\n \"GET /repos/{owner}/{repo}/actions/runners/downloads\",\n ],\n listSelectedReposForOrgSecret: [\n \"GET /orgs/{org}/actions/secrets/{secret_name}/repositories\",\n ],\n listSelectedRepositoriesEnabledGithubActionsOrganization: [\n \"GET /orgs/{org}/actions/permissions/repositories\",\n ],\n listSelfHostedRunnersForOrg: [\"GET /orgs/{org}/actions/runners\"],\n listSelfHostedRunnersForRepo: [\"GET /repos/{owner}/{repo}/actions/runners\"],\n listWorkflowRunArtifacts: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts\",\n ],\n listWorkflowRuns: [\n \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\",\n ],\n listWorkflowRunsForRepo: [\"GET /repos/{owner}/{repo}/actions/runs\"],\n reRunWorkflow: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun\"],\n removeSelectedRepoFromOrgSecret: [\n \"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\",\n ],\n setAllowedActionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions/selected-actions\",\n ],\n setAllowedActionsRepository: [\n \"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions\",\n ],\n setGithubActionsPermissionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions\",\n ],\n setGithubActionsPermissionsRepository: [\n \"PUT /repos/{owner}/{repo}/actions/permissions\",\n ],\n setSelectedReposForOrgSecret: [\n \"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories\",\n ],\n setSelectedRepositoriesEnabledGithubActionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions/repositories\",\n ],\n },\n activity: {\n checkRepoIsStarredByAuthenticatedUser: [\"GET /user/starred/{owner}/{repo}\"],\n deleteRepoSubscription: [\"DELETE /repos/{owner}/{repo}/subscription\"],\n deleteThreadSubscription: [\n \"DELETE /notifications/threads/{thread_id}/subscription\",\n ],\n getFeeds: [\"GET /feeds\"],\n getRepoSubscription: [\"GET /repos/{owner}/{repo}/subscription\"],\n getThread: [\"GET /notifications/threads/{thread_id}\"],\n getThreadSubscriptionForAuthenticatedUser: [\n \"GET /notifications/threads/{thread_id}/subscription\",\n ],\n listEventsForAuthenticatedUser: [\"GET /users/{username}/events\"],\n listNotificationsForAuthenticatedUser: [\"GET /notifications\"],\n listOrgEventsForAuthenticatedUser: [\n \"GET /users/{username}/events/orgs/{org}\",\n ],\n listPublicEvents: [\"GET /events\"],\n listPublicEventsForRepoNetwork: [\"GET /networks/{owner}/{repo}/events\"],\n listPublicEventsForUser: [\"GET /users/{username}/events/public\"],\n listPublicOrgEvents: [\"GET /orgs/{org}/events\"],\n listReceivedEventsForUser: [\"GET /users/{username}/received_events\"],\n listReceivedPublicEventsForUser: [\n \"GET /users/{username}/received_events/public\",\n ],\n listRepoEvents: [\"GET /repos/{owner}/{repo}/events\"],\n listRepoNotificationsForAuthenticatedUser: [\n \"GET /repos/{owner}/{repo}/notifications\",\n ],\n listReposStarredByAuthenticatedUser: [\"GET /user/starred\"],\n listReposStarredByUser: [\"GET /users/{username}/starred\"],\n listReposWatchedByUser: [\"GET /users/{username}/subscriptions\"],\n listStargazersForRepo: [\"GET /repos/{owner}/{repo}/stargazers\"],\n listWatchedReposForAuthenticatedUser: [\"GET /user/subscriptions\"],\n listWatchersForRepo: [\"GET /repos/{owner}/{repo}/subscribers\"],\n markNotificationsAsRead: [\"PUT /notifications\"],\n markRepoNotificationsAsRead: [\"PUT /repos/{owner}/{repo}/notifications\"],\n markThreadAsRead: [\"PATCH /notifications/threads/{thread_id}\"],\n setRepoSubscription: [\"PUT /repos/{owner}/{repo}/subscription\"],\n setThreadSubscription: [\n \"PUT /notifications/threads/{thread_id}/subscription\",\n ],\n starRepoForAuthenticatedUser: [\"PUT /user/starred/{owner}/{repo}\"],\n unstarRepoForAuthenticatedUser: [\"DELETE /user/starred/{owner}/{repo}\"],\n },\n apps: {\n addRepoToInstallation: [\n \"PUT /user/installations/{installation_id}/repositories/{repository_id}\",\n ],\n checkToken: [\"POST /applications/{client_id}/token\"],\n createContentAttachment: [\n \"POST /content_references/{content_reference_id}/attachments\",\n { mediaType: { previews: [\"corsair\"] } },\n ],\n createFromManifest: [\"POST /app-manifests/{code}/conversions\"],\n createInstallationAccessToken: [\n \"POST /app/installations/{installation_id}/access_tokens\",\n ],\n deleteAuthorization: [\"DELETE /applications/{client_id}/grant\"],\n deleteInstallation: [\"DELETE /app/installations/{installation_id}\"],\n deleteToken: [\"DELETE /applications/{client_id}/token\"],\n getAuthenticated: [\"GET /app\"],\n getBySlug: [\"GET /apps/{app_slug}\"],\n getInstallation: [\"GET /app/installations/{installation_id}\"],\n getOrgInstallation: [\"GET /orgs/{org}/installation\"],\n getRepoInstallation: [\"GET /repos/{owner}/{repo}/installation\"],\n getSubscriptionPlanForAccount: [\n \"GET /marketplace_listing/accounts/{account_id}\",\n ],\n getSubscriptionPlanForAccountStubbed: [\n \"GET /marketplace_listing/stubbed/accounts/{account_id}\",\n ],\n getUserInstallation: [\"GET /users/{username}/installation\"],\n getWebhookConfigForApp: [\"GET /app/hook/config\"],\n listAccountsForPlan: [\"GET /marketplace_listing/plans/{plan_id}/accounts\"],\n listAccountsForPlanStubbed: [\n \"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts\",\n ],\n listInstallationReposForAuthenticatedUser: [\n \"GET /user/installations/{installation_id}/repositories\",\n ],\n listInstallations: [\"GET /app/installations\"],\n listInstallationsForAuthenticatedUser: [\"GET /user/installations\"],\n listPlans: [\"GET /marketplace_listing/plans\"],\n listPlansStubbed: [\"GET /marketplace_listing/stubbed/plans\"],\n listReposAccessibleToInstallation: [\"GET /installation/repositories\"],\n listSubscriptionsForAuthenticatedUser: [\"GET /user/marketplace_purchases\"],\n listSubscriptionsForAuthenticatedUserStubbed: [\n \"GET /user/marketplace_purchases/stubbed\",\n ],\n removeRepoFromInstallation: [\n \"DELETE /user/installations/{installation_id}/repositories/{repository_id}\",\n ],\n resetToken: [\"PATCH /applications/{client_id}/token\"],\n revokeInstallationAccessToken: [\"DELETE /installation/token\"],\n suspendInstallation: [\"PUT /app/installations/{installation_id}/suspended\"],\n unsuspendInstallation: [\n \"DELETE /app/installations/{installation_id}/suspended\",\n ],\n updateWebhookConfigForApp: [\"PATCH /app/hook/config\"],\n },\n billing: {\n getGithubActionsBillingOrg: [\"GET /orgs/{org}/settings/billing/actions\"],\n getGithubActionsBillingUser: [\n \"GET /users/{username}/settings/billing/actions\",\n ],\n getGithubPackagesBillingOrg: [\"GET /orgs/{org}/settings/billing/packages\"],\n getGithubPackagesBillingUser: [\n \"GET /users/{username}/settings/billing/packages\",\n ],\n getSharedStorageBillingOrg: [\n \"GET /orgs/{org}/settings/billing/shared-storage\",\n ],\n getSharedStorageBillingUser: [\n \"GET /users/{username}/settings/billing/shared-storage\",\n ],\n },\n checks: {\n create: [\"POST /repos/{owner}/{repo}/check-runs\"],\n createSuite: [\"POST /repos/{owner}/{repo}/check-suites\"],\n get: [\"GET /repos/{owner}/{repo}/check-runs/{check_run_id}\"],\n getSuite: [\"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}\"],\n listAnnotations: [\n \"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\",\n ],\n listForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/check-runs\"],\n listForSuite: [\n \"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\",\n ],\n listSuitesForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/check-suites\"],\n rerequestSuite: [\n \"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest\",\n ],\n setSuitesPreferences: [\n \"PATCH /repos/{owner}/{repo}/check-suites/preferences\",\n ],\n update: [\"PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}\"],\n },\n codeScanning: {\n getAlert: [\n \"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\",\n {},\n { renamedParameters: { alert_id: \"alert_number\" } },\n ],\n listAlertsForRepo: [\"GET /repos/{owner}/{repo}/code-scanning/alerts\"],\n listRecentAnalyses: [\"GET /repos/{owner}/{repo}/code-scanning/analyses\"],\n updateAlert: [\n \"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\",\n ],\n uploadSarif: [\"POST /repos/{owner}/{repo}/code-scanning/sarifs\"],\n },\n codesOfConduct: {\n getAllCodesOfConduct: [\n \"GET /codes_of_conduct\",\n { mediaType: { previews: [\"scarlet-witch\"] } },\n ],\n getConductCode: [\n \"GET /codes_of_conduct/{key}\",\n { mediaType: { previews: [\"scarlet-witch\"] } },\n ],\n getForRepo: [\n \"GET /repos/{owner}/{repo}/community/code_of_conduct\",\n { mediaType: { previews: [\"scarlet-witch\"] } },\n ],\n },\n emojis: { get: [\"GET /emojis\"] },\n enterpriseAdmin: {\n disableSelectedOrganizationGithubActionsEnterprise: [\n \"DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\",\n ],\n enableSelectedOrganizationGithubActionsEnterprise: [\n \"PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\",\n ],\n getAllowedActionsEnterprise: [\n \"GET /enterprises/{enterprise}/actions/permissions/selected-actions\",\n ],\n getGithubActionsPermissionsEnterprise: [\n \"GET /enterprises/{enterprise}/actions/permissions\",\n ],\n listSelectedOrganizationsEnabledGithubActionsEnterprise: [\n \"GET /enterprises/{enterprise}/actions/permissions/organizations\",\n ],\n setAllowedActionsEnterprise: [\n \"PUT /enterprises/{enterprise}/actions/permissions/selected-actions\",\n ],\n setGithubActionsPermissionsEnterprise: [\n \"PUT /enterprises/{enterprise}/actions/permissions\",\n ],\n setSelectedOrganizationsEnabledGithubActionsEnterprise: [\n \"PUT /enterprises/{enterprise}/actions/permissions/organizations\",\n ],\n },\n gists: {\n checkIsStarred: [\"GET /gists/{gist_id}/star\"],\n create: [\"POST /gists\"],\n createComment: [\"POST /gists/{gist_id}/comments\"],\n delete: [\"DELETE /gists/{gist_id}\"],\n deleteComment: [\"DELETE /gists/{gist_id}/comments/{comment_id}\"],\n fork: [\"POST /gists/{gist_id}/forks\"],\n get: [\"GET /gists/{gist_id}\"],\n getComment: [\"GET /gists/{gist_id}/comments/{comment_id}\"],\n getRevision: [\"GET /gists/{gist_id}/{sha}\"],\n list: [\"GET /gists\"],\n listComments: [\"GET /gists/{gist_id}/comments\"],\n listCommits: [\"GET /gists/{gist_id}/commits\"],\n listForUser: [\"GET /users/{username}/gists\"],\n listForks: [\"GET /gists/{gist_id}/forks\"],\n listPublic: [\"GET /gists/public\"],\n listStarred: [\"GET /gists/starred\"],\n star: [\"PUT /gists/{gist_id}/star\"],\n unstar: [\"DELETE /gists/{gist_id}/star\"],\n update: [\"PATCH /gists/{gist_id}\"],\n updateComment: [\"PATCH /gists/{gist_id}/comments/{comment_id}\"],\n },\n git: {\n createBlob: [\"POST /repos/{owner}/{repo}/git/blobs\"],\n createCommit: [\"POST /repos/{owner}/{repo}/git/commits\"],\n createRef: [\"POST /repos/{owner}/{repo}/git/refs\"],\n createTag: [\"POST /repos/{owner}/{repo}/git/tags\"],\n createTree: [\"POST /repos/{owner}/{repo}/git/trees\"],\n deleteRef: [\"DELETE /repos/{owner}/{repo}/git/refs/{ref}\"],\n getBlob: [\"GET /repos/{owner}/{repo}/git/blobs/{file_sha}\"],\n getCommit: [\"GET /repos/{owner}/{repo}/git/commits/{commit_sha}\"],\n getRef: [\"GET /repos/{owner}/{repo}/git/ref/{ref}\"],\n getTag: [\"GET /repos/{owner}/{repo}/git/tags/{tag_sha}\"],\n getTree: [\"GET /repos/{owner}/{repo}/git/trees/{tree_sha}\"],\n listMatchingRefs: [\"GET /repos/{owner}/{repo}/git/matching-refs/{ref}\"],\n updateRef: [\"PATCH /repos/{owner}/{repo}/git/refs/{ref}\"],\n },\n gitignore: {\n getAllTemplates: [\"GET /gitignore/templates\"],\n getTemplate: [\"GET /gitignore/templates/{name}\"],\n },\n interactions: {\n getRestrictionsForOrg: [\"GET /orgs/{org}/interaction-limits\"],\n getRestrictionsForRepo: [\"GET /repos/{owner}/{repo}/interaction-limits\"],\n getRestrictionsForYourPublicRepos: [\"GET /user/interaction-limits\"],\n removeRestrictionsForOrg: [\"DELETE /orgs/{org}/interaction-limits\"],\n removeRestrictionsForRepo: [\n \"DELETE /repos/{owner}/{repo}/interaction-limits\",\n ],\n removeRestrictionsForYourPublicRepos: [\"DELETE /user/interaction-limits\"],\n setRestrictionsForOrg: [\"PUT /orgs/{org}/interaction-limits\"],\n setRestrictionsForRepo: [\"PUT /repos/{owner}/{repo}/interaction-limits\"],\n setRestrictionsForYourPublicRepos: [\"PUT /user/interaction-limits\"],\n },\n issues: {\n addAssignees: [\n \"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees\",\n ],\n addLabels: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n checkUserCanBeAssigned: [\"GET /repos/{owner}/{repo}/assignees/{assignee}\"],\n create: [\"POST /repos/{owner}/{repo}/issues\"],\n createComment: [\n \"POST /repos/{owner}/{repo}/issues/{issue_number}/comments\",\n ],\n createLabel: [\"POST /repos/{owner}/{repo}/labels\"],\n createMilestone: [\"POST /repos/{owner}/{repo}/milestones\"],\n deleteComment: [\n \"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}\",\n ],\n deleteLabel: [\"DELETE /repos/{owner}/{repo}/labels/{name}\"],\n deleteMilestone: [\n \"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}\",\n ],\n get: [\"GET /repos/{owner}/{repo}/issues/{issue_number}\"],\n getComment: [\"GET /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n getEvent: [\"GET /repos/{owner}/{repo}/issues/events/{event_id}\"],\n getLabel: [\"GET /repos/{owner}/{repo}/labels/{name}\"],\n getMilestone: [\"GET /repos/{owner}/{repo}/milestones/{milestone_number}\"],\n list: [\"GET /issues\"],\n listAssignees: [\"GET /repos/{owner}/{repo}/assignees\"],\n listComments: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/comments\"],\n listCommentsForRepo: [\"GET /repos/{owner}/{repo}/issues/comments\"],\n listEvents: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/events\"],\n listEventsForRepo: [\"GET /repos/{owner}/{repo}/issues/events\"],\n listEventsForTimeline: [\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\",\n { mediaType: { previews: [\"mockingbird\"] } },\n ],\n listForAuthenticatedUser: [\"GET /user/issues\"],\n listForOrg: [\"GET /orgs/{org}/issues\"],\n listForRepo: [\"GET /repos/{owner}/{repo}/issues\"],\n listLabelsForMilestone: [\n \"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\",\n ],\n listLabelsForRepo: [\"GET /repos/{owner}/{repo}/labels\"],\n listLabelsOnIssue: [\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/labels\",\n ],\n listMilestones: [\"GET /repos/{owner}/{repo}/milestones\"],\n lock: [\"PUT /repos/{owner}/{repo}/issues/{issue_number}/lock\"],\n removeAllLabels: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels\",\n ],\n removeAssignees: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees\",\n ],\n removeLabel: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}\",\n ],\n setLabels: [\"PUT /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n unlock: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock\"],\n update: [\"PATCH /repos/{owner}/{repo}/issues/{issue_number}\"],\n updateComment: [\"PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n updateLabel: [\"PATCH /repos/{owner}/{repo}/labels/{name}\"],\n updateMilestone: [\n \"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}\",\n ],\n },\n licenses: {\n get: [\"GET /licenses/{license}\"],\n getAllCommonlyUsed: [\"GET /licenses\"],\n getForRepo: [\"GET /repos/{owner}/{repo}/license\"],\n },\n markdown: {\n render: [\"POST /markdown\"],\n renderRaw: [\n \"POST /markdown/raw\",\n { headers: { \"content-type\": \"text/plain; charset=utf-8\" } },\n ],\n },\n meta: {\n get: [\"GET /meta\"],\n getOctocat: [\"GET /octocat\"],\n getZen: [\"GET /zen\"],\n root: [\"GET /\"],\n },\n migrations: {\n cancelImport: [\"DELETE /repos/{owner}/{repo}/import\"],\n deleteArchiveForAuthenticatedUser: [\n \"DELETE /user/migrations/{migration_id}/archive\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n deleteArchiveForOrg: [\n \"DELETE /orgs/{org}/migrations/{migration_id}/archive\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n downloadArchiveForOrg: [\n \"GET /orgs/{org}/migrations/{migration_id}/archive\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n getArchiveForAuthenticatedUser: [\n \"GET /user/migrations/{migration_id}/archive\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n getCommitAuthors: [\"GET /repos/{owner}/{repo}/import/authors\"],\n getImportStatus: [\"GET /repos/{owner}/{repo}/import\"],\n getLargeFiles: [\"GET /repos/{owner}/{repo}/import/large_files\"],\n getStatusForAuthenticatedUser: [\n \"GET /user/migrations/{migration_id}\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n getStatusForOrg: [\n \"GET /orgs/{org}/migrations/{migration_id}\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n listForAuthenticatedUser: [\n \"GET /user/migrations\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n listForOrg: [\n \"GET /orgs/{org}/migrations\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n listReposForOrg: [\n \"GET /orgs/{org}/migrations/{migration_id}/repositories\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n listReposForUser: [\n \"GET /user/migrations/{migration_id}/repositories\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n mapCommitAuthor: [\"PATCH /repos/{owner}/{repo}/import/authors/{author_id}\"],\n setLfsPreference: [\"PATCH /repos/{owner}/{repo}/import/lfs\"],\n startForAuthenticatedUser: [\"POST /user/migrations\"],\n startForOrg: [\"POST /orgs/{org}/migrations\"],\n startImport: [\"PUT /repos/{owner}/{repo}/import\"],\n unlockRepoForAuthenticatedUser: [\n \"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n unlockRepoForOrg: [\n \"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n updateImport: [\"PATCH /repos/{owner}/{repo}/import\"],\n },\n orgs: {\n blockUser: [\"PUT /orgs/{org}/blocks/{username}\"],\n checkBlockedUser: [\"GET /orgs/{org}/blocks/{username}\"],\n checkMembershipForUser: [\"GET /orgs/{org}/members/{username}\"],\n checkPublicMembershipForUser: [\"GET /orgs/{org}/public_members/{username}\"],\n convertMemberToOutsideCollaborator: [\n \"PUT /orgs/{org}/outside_collaborators/{username}\",\n ],\n createInvitation: [\"POST /orgs/{org}/invitations\"],\n createWebhook: [\"POST /orgs/{org}/hooks\"],\n deleteWebhook: [\"DELETE /orgs/{org}/hooks/{hook_id}\"],\n get: [\"GET /orgs/{org}\"],\n getMembershipForAuthenticatedUser: [\"GET /user/memberships/orgs/{org}\"],\n getMembershipForUser: [\"GET /orgs/{org}/memberships/{username}\"],\n getWebhook: [\"GET /orgs/{org}/hooks/{hook_id}\"],\n getWebhookConfigForOrg: [\"GET /orgs/{org}/hooks/{hook_id}/config\"],\n list: [\"GET /organizations\"],\n listAppInstallations: [\"GET /orgs/{org}/installations\"],\n listBlockedUsers: [\"GET /orgs/{org}/blocks\"],\n listForAuthenticatedUser: [\"GET /user/orgs\"],\n listForUser: [\"GET /users/{username}/orgs\"],\n listInvitationTeams: [\"GET /orgs/{org}/invitations/{invitation_id}/teams\"],\n listMembers: [\"GET /orgs/{org}/members\"],\n listMembershipsForAuthenticatedUser: [\"GET /user/memberships/orgs\"],\n listOutsideCollaborators: [\"GET /orgs/{org}/outside_collaborators\"],\n listPendingInvitations: [\"GET /orgs/{org}/invitations\"],\n listPublicMembers: [\"GET /orgs/{org}/public_members\"],\n listWebhooks: [\"GET /orgs/{org}/hooks\"],\n pingWebhook: [\"POST /orgs/{org}/hooks/{hook_id}/pings\"],\n removeMember: [\"DELETE /orgs/{org}/members/{username}\"],\n removeMembershipForUser: [\"DELETE /orgs/{org}/memberships/{username}\"],\n removeOutsideCollaborator: [\n \"DELETE /orgs/{org}/outside_collaborators/{username}\",\n ],\n removePublicMembershipForAuthenticatedUser: [\n \"DELETE /orgs/{org}/public_members/{username}\",\n ],\n setMembershipForUser: [\"PUT /orgs/{org}/memberships/{username}\"],\n setPublicMembershipForAuthenticatedUser: [\n \"PUT /orgs/{org}/public_members/{username}\",\n ],\n unblockUser: [\"DELETE /orgs/{org}/blocks/{username}\"],\n update: [\"PATCH /orgs/{org}\"],\n updateMembershipForAuthenticatedUser: [\n \"PATCH /user/memberships/orgs/{org}\",\n ],\n updateWebhook: [\"PATCH /orgs/{org}/hooks/{hook_id}\"],\n updateWebhookConfigForOrg: [\"PATCH /orgs/{org}/hooks/{hook_id}/config\"],\n },\n projects: {\n addCollaborator: [\n \"PUT /projects/{project_id}/collaborators/{username}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n createCard: [\n \"POST /projects/columns/{column_id}/cards\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n createColumn: [\n \"POST /projects/{project_id}/columns\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n createForAuthenticatedUser: [\n \"POST /user/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n createForOrg: [\n \"POST /orgs/{org}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n createForRepo: [\n \"POST /repos/{owner}/{repo}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n delete: [\n \"DELETE /projects/{project_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n deleteCard: [\n \"DELETE /projects/columns/cards/{card_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n deleteColumn: [\n \"DELETE /projects/columns/{column_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n get: [\n \"GET /projects/{project_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n getCard: [\n \"GET /projects/columns/cards/{card_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n getColumn: [\n \"GET /projects/columns/{column_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n getPermissionForUser: [\n \"GET /projects/{project_id}/collaborators/{username}/permission\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listCards: [\n \"GET /projects/columns/{column_id}/cards\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listCollaborators: [\n \"GET /projects/{project_id}/collaborators\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listColumns: [\n \"GET /projects/{project_id}/columns\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listForOrg: [\n \"GET /orgs/{org}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listForRepo: [\n \"GET /repos/{owner}/{repo}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listForUser: [\n \"GET /users/{username}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n moveCard: [\n \"POST /projects/columns/cards/{card_id}/moves\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n moveColumn: [\n \"POST /projects/columns/{column_id}/moves\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n removeCollaborator: [\n \"DELETE /projects/{project_id}/collaborators/{username}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n update: [\n \"PATCH /projects/{project_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n updateCard: [\n \"PATCH /projects/columns/cards/{card_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n updateColumn: [\n \"PATCH /projects/columns/{column_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n },\n pulls: {\n checkIfMerged: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/merge\"],\n create: [\"POST /repos/{owner}/{repo}/pulls\"],\n createReplyForReviewComment: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies\",\n ],\n createReview: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews\"],\n createReviewComment: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments\",\n ],\n deletePendingReview: [\n \"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\",\n ],\n deleteReviewComment: [\n \"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}\",\n ],\n dismissReview: [\n \"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals\",\n ],\n get: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}\"],\n getReview: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\",\n ],\n getReviewComment: [\"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}\"],\n list: [\"GET /repos/{owner}/{repo}/pulls\"],\n listCommentsForReview: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\",\n ],\n listCommits: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\"],\n listFiles: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/files\"],\n listRequestedReviewers: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\",\n ],\n listReviewComments: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\",\n ],\n listReviewCommentsForRepo: [\"GET /repos/{owner}/{repo}/pulls/comments\"],\n listReviews: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\"],\n merge: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge\"],\n removeRequestedReviewers: [\n \"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\",\n ],\n requestReviewers: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\",\n ],\n submitReview: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events\",\n ],\n update: [\"PATCH /repos/{owner}/{repo}/pulls/{pull_number}\"],\n updateBranch: [\n \"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch\",\n { mediaType: { previews: [\"lydian\"] } },\n ],\n updateReview: [\n \"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\",\n ],\n updateReviewComment: [\n \"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}\",\n ],\n },\n rateLimit: { get: [\"GET /rate_limit\"] },\n reactions: {\n createForCommitComment: [\n \"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n createForIssue: [\n \"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n createForIssueComment: [\n \"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n createForPullRequestReviewComment: [\n \"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n createForTeamDiscussionCommentInOrg: [\n \"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n createForTeamDiscussionInOrg: [\n \"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForCommitComment: [\n \"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForIssue: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForIssueComment: [\n \"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForPullRequestComment: [\n \"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForTeamDiscussion: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForTeamDiscussionComment: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteLegacy: [\n \"DELETE /reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n {\n deprecated: \"octokit.reactions.deleteLegacy() is deprecated, see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy\",\n },\n ],\n listForCommitComment: [\n \"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n listForIssue: [\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n listForIssueComment: [\n \"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n listForPullRequestReviewComment: [\n \"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n listForTeamDiscussionCommentInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n listForTeamDiscussionInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n },\n repos: {\n acceptInvitation: [\"PATCH /user/repository_invitations/{invitation_id}\"],\n addAppAccessRestrictions: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n {},\n { mapToData: \"apps\" },\n ],\n addCollaborator: [\"PUT /repos/{owner}/{repo}/collaborators/{username}\"],\n addStatusCheckContexts: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n {},\n { mapToData: \"contexts\" },\n ],\n addTeamAccessRestrictions: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n {},\n { mapToData: \"teams\" },\n ],\n addUserAccessRestrictions: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n {},\n { mapToData: \"users\" },\n ],\n checkCollaborator: [\"GET /repos/{owner}/{repo}/collaborators/{username}\"],\n checkVulnerabilityAlerts: [\n \"GET /repos/{owner}/{repo}/vulnerability-alerts\",\n { mediaType: { previews: [\"dorian\"] } },\n ],\n compareCommits: [\"GET /repos/{owner}/{repo}/compare/{base}...{head}\"],\n createCommitComment: [\n \"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments\",\n ],\n createCommitSignatureProtection: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\",\n { mediaType: { previews: [\"zzzax\"] } },\n ],\n createCommitStatus: [\"POST /repos/{owner}/{repo}/statuses/{sha}\"],\n createDeployKey: [\"POST /repos/{owner}/{repo}/keys\"],\n createDeployment: [\"POST /repos/{owner}/{repo}/deployments\"],\n createDeploymentStatus: [\n \"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\",\n ],\n createDispatchEvent: [\"POST /repos/{owner}/{repo}/dispatches\"],\n createForAuthenticatedUser: [\"POST /user/repos\"],\n createFork: [\"POST /repos/{owner}/{repo}/forks\"],\n createInOrg: [\"POST /orgs/{org}/repos\"],\n createOrUpdateFileContents: [\"PUT /repos/{owner}/{repo}/contents/{path}\"],\n createPagesSite: [\n \"POST /repos/{owner}/{repo}/pages\",\n { mediaType: { previews: [\"switcheroo\"] } },\n ],\n createRelease: [\"POST /repos/{owner}/{repo}/releases\"],\n createUsingTemplate: [\n \"POST /repos/{template_owner}/{template_repo}/generate\",\n { mediaType: { previews: [\"baptiste\"] } },\n ],\n createWebhook: [\"POST /repos/{owner}/{repo}/hooks\"],\n declineInvitation: [\"DELETE /user/repository_invitations/{invitation_id}\"],\n delete: [\"DELETE /repos/{owner}/{repo}\"],\n deleteAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\",\n ],\n deleteAdminBranchProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\",\n ],\n deleteBranchProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection\",\n ],\n deleteCommitComment: [\"DELETE /repos/{owner}/{repo}/comments/{comment_id}\"],\n deleteCommitSignatureProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\",\n { mediaType: { previews: [\"zzzax\"] } },\n ],\n deleteDeployKey: [\"DELETE /repos/{owner}/{repo}/keys/{key_id}\"],\n deleteDeployment: [\n \"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}\",\n ],\n deleteFile: [\"DELETE /repos/{owner}/{repo}/contents/{path}\"],\n deleteInvitation: [\n \"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}\",\n ],\n deletePagesSite: [\n \"DELETE /repos/{owner}/{repo}/pages\",\n { mediaType: { previews: [\"switcheroo\"] } },\n ],\n deletePullRequestReviewProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\",\n ],\n deleteRelease: [\"DELETE /repos/{owner}/{repo}/releases/{release_id}\"],\n deleteReleaseAsset: [\n \"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}\",\n ],\n deleteWebhook: [\"DELETE /repos/{owner}/{repo}/hooks/{hook_id}\"],\n disableAutomatedSecurityFixes: [\n \"DELETE /repos/{owner}/{repo}/automated-security-fixes\",\n { mediaType: { previews: [\"london\"] } },\n ],\n disableVulnerabilityAlerts: [\n \"DELETE /repos/{owner}/{repo}/vulnerability-alerts\",\n { mediaType: { previews: [\"dorian\"] } },\n ],\n downloadArchive: [\n \"GET /repos/{owner}/{repo}/zipball/{ref}\",\n {},\n { renamed: [\"repos\", \"downloadZipballArchive\"] },\n ],\n downloadTarballArchive: [\"GET /repos/{owner}/{repo}/tarball/{ref}\"],\n downloadZipballArchive: [\"GET /repos/{owner}/{repo}/zipball/{ref}\"],\n enableAutomatedSecurityFixes: [\n \"PUT /repos/{owner}/{repo}/automated-security-fixes\",\n { mediaType: { previews: [\"london\"] } },\n ],\n enableVulnerabilityAlerts: [\n \"PUT /repos/{owner}/{repo}/vulnerability-alerts\",\n { mediaType: { previews: [\"dorian\"] } },\n ],\n get: [\"GET /repos/{owner}/{repo}\"],\n getAccessRestrictions: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\",\n ],\n getAdminBranchProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\",\n ],\n getAllStatusCheckContexts: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n ],\n getAllTopics: [\n \"GET /repos/{owner}/{repo}/topics\",\n { mediaType: { previews: [\"mercy\"] } },\n ],\n getAppsWithAccessToProtectedBranch: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n ],\n getBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}\"],\n getBranchProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection\",\n ],\n getClones: [\"GET /repos/{owner}/{repo}/traffic/clones\"],\n getCodeFrequencyStats: [\"GET /repos/{owner}/{repo}/stats/code_frequency\"],\n getCollaboratorPermissionLevel: [\n \"GET /repos/{owner}/{repo}/collaborators/{username}/permission\",\n ],\n getCombinedStatusForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/status\"],\n getCommit: [\"GET /repos/{owner}/{repo}/commits/{ref}\"],\n getCommitActivityStats: [\"GET /repos/{owner}/{repo}/stats/commit_activity\"],\n getCommitComment: [\"GET /repos/{owner}/{repo}/comments/{comment_id}\"],\n getCommitSignatureProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\",\n { mediaType: { previews: [\"zzzax\"] } },\n ],\n getCommunityProfileMetrics: [\"GET /repos/{owner}/{repo}/community/profile\"],\n getContent: [\"GET /repos/{owner}/{repo}/contents/{path}\"],\n getContributorsStats: [\"GET /repos/{owner}/{repo}/stats/contributors\"],\n getDeployKey: [\"GET /repos/{owner}/{repo}/keys/{key_id}\"],\n getDeployment: [\"GET /repos/{owner}/{repo}/deployments/{deployment_id}\"],\n getDeploymentStatus: [\n \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}\",\n ],\n getLatestPagesBuild: [\"GET /repos/{owner}/{repo}/pages/builds/latest\"],\n getLatestRelease: [\"GET /repos/{owner}/{repo}/releases/latest\"],\n getPages: [\"GET /repos/{owner}/{repo}/pages\"],\n getPagesBuild: [\"GET /repos/{owner}/{repo}/pages/builds/{build_id}\"],\n getParticipationStats: [\"GET /repos/{owner}/{repo}/stats/participation\"],\n getPullRequestReviewProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\",\n ],\n getPunchCardStats: [\"GET /repos/{owner}/{repo}/stats/punch_card\"],\n getReadme: [\"GET /repos/{owner}/{repo}/readme\"],\n getRelease: [\"GET /repos/{owner}/{repo}/releases/{release_id}\"],\n getReleaseAsset: [\"GET /repos/{owner}/{repo}/releases/assets/{asset_id}\"],\n getReleaseByTag: [\"GET /repos/{owner}/{repo}/releases/tags/{tag}\"],\n getStatusChecksProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\",\n ],\n getTeamsWithAccessToProtectedBranch: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n ],\n getTopPaths: [\"GET /repos/{owner}/{repo}/traffic/popular/paths\"],\n getTopReferrers: [\"GET /repos/{owner}/{repo}/traffic/popular/referrers\"],\n getUsersWithAccessToProtectedBranch: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n ],\n getViews: [\"GET /repos/{owner}/{repo}/traffic/views\"],\n getWebhook: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}\"],\n getWebhookConfigForRepo: [\n \"GET /repos/{owner}/{repo}/hooks/{hook_id}/config\",\n ],\n listBranches: [\"GET /repos/{owner}/{repo}/branches\"],\n listBranchesForHeadCommit: [\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head\",\n { mediaType: { previews: [\"groot\"] } },\n ],\n listCollaborators: [\"GET /repos/{owner}/{repo}/collaborators\"],\n listCommentsForCommit: [\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\",\n ],\n listCommitCommentsForRepo: [\"GET /repos/{owner}/{repo}/comments\"],\n listCommitStatusesForRef: [\n \"GET /repos/{owner}/{repo}/commits/{ref}/statuses\",\n ],\n listCommits: [\"GET /repos/{owner}/{repo}/commits\"],\n listContributors: [\"GET /repos/{owner}/{repo}/contributors\"],\n listDeployKeys: [\"GET /repos/{owner}/{repo}/keys\"],\n listDeploymentStatuses: [\n \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\",\n ],\n listDeployments: [\"GET /repos/{owner}/{repo}/deployments\"],\n listForAuthenticatedUser: [\"GET /user/repos\"],\n listForOrg: [\"GET /orgs/{org}/repos\"],\n listForUser: [\"GET /users/{username}/repos\"],\n listForks: [\"GET /repos/{owner}/{repo}/forks\"],\n listInvitations: [\"GET /repos/{owner}/{repo}/invitations\"],\n listInvitationsForAuthenticatedUser: [\"GET /user/repository_invitations\"],\n listLanguages: [\"GET /repos/{owner}/{repo}/languages\"],\n listPagesBuilds: [\"GET /repos/{owner}/{repo}/pages/builds\"],\n listPublic: [\"GET /repositories\"],\n listPullRequestsAssociatedWithCommit: [\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\",\n { mediaType: { previews: [\"groot\"] } },\n ],\n listReleaseAssets: [\n \"GET /repos/{owner}/{repo}/releases/{release_id}/assets\",\n ],\n listReleases: [\"GET /repos/{owner}/{repo}/releases\"],\n listTags: [\"GET /repos/{owner}/{repo}/tags\"],\n listTeams: [\"GET /repos/{owner}/{repo}/teams\"],\n listWebhooks: [\"GET /repos/{owner}/{repo}/hooks\"],\n merge: [\"POST /repos/{owner}/{repo}/merges\"],\n pingWebhook: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/pings\"],\n removeAppAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n {},\n { mapToData: \"apps\" },\n ],\n removeCollaborator: [\n \"DELETE /repos/{owner}/{repo}/collaborators/{username}\",\n ],\n removeStatusCheckContexts: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n {},\n { mapToData: \"contexts\" },\n ],\n removeStatusCheckProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\",\n ],\n removeTeamAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n {},\n { mapToData: \"teams\" },\n ],\n removeUserAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n {},\n { mapToData: \"users\" },\n ],\n replaceAllTopics: [\n \"PUT /repos/{owner}/{repo}/topics\",\n { mediaType: { previews: [\"mercy\"] } },\n ],\n requestPagesBuild: [\"POST /repos/{owner}/{repo}/pages/builds\"],\n setAdminBranchProtection: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\",\n ],\n setAppAccessRestrictions: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n {},\n { mapToData: \"apps\" },\n ],\n setStatusCheckContexts: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n {},\n { mapToData: \"contexts\" },\n ],\n setTeamAccessRestrictions: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n {},\n { mapToData: \"teams\" },\n ],\n setUserAccessRestrictions: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n {},\n { mapToData: \"users\" },\n ],\n testPushWebhook: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/tests\"],\n transfer: [\"POST /repos/{owner}/{repo}/transfer\"],\n update: [\"PATCH /repos/{owner}/{repo}\"],\n updateBranchProtection: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection\",\n ],\n updateCommitComment: [\"PATCH /repos/{owner}/{repo}/comments/{comment_id}\"],\n updateInformationAboutPagesSite: [\"PUT /repos/{owner}/{repo}/pages\"],\n updateInvitation: [\n \"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}\",\n ],\n updatePullRequestReviewProtection: [\n \"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\",\n ],\n updateRelease: [\"PATCH /repos/{owner}/{repo}/releases/{release_id}\"],\n updateReleaseAsset: [\n \"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}\",\n ],\n updateStatusCheckPotection: [\n \"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\",\n {},\n { renamed: [\"repos\", \"updateStatusCheckProtection\"] },\n ],\n updateStatusCheckProtection: [\n \"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\",\n ],\n updateWebhook: [\"PATCH /repos/{owner}/{repo}/hooks/{hook_id}\"],\n updateWebhookConfigForRepo: [\n \"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config\",\n ],\n uploadReleaseAsset: [\n \"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}\",\n { baseUrl: \"https://uploads.github.com\" },\n ],\n },\n search: {\n code: [\"GET /search/code\"],\n commits: [\"GET /search/commits\", { mediaType: { previews: [\"cloak\"] } }],\n issuesAndPullRequests: [\"GET /search/issues\"],\n labels: [\"GET /search/labels\"],\n repos: [\"GET /search/repositories\"],\n topics: [\"GET /search/topics\", { mediaType: { previews: [\"mercy\"] } }],\n users: [\"GET /search/users\"],\n },\n teams: {\n addOrUpdateMembershipForUserInOrg: [\n \"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}\",\n ],\n addOrUpdateProjectPermissionsInOrg: [\n \"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n addOrUpdateRepoPermissionsInOrg: [\n \"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\",\n ],\n checkPermissionsForProjectInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n checkPermissionsForRepoInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\",\n ],\n create: [\"POST /orgs/{org}/teams\"],\n createDiscussionCommentInOrg: [\n \"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\",\n ],\n createDiscussionInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions\"],\n deleteDiscussionCommentInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\",\n ],\n deleteDiscussionInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\",\n ],\n deleteInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}\"],\n getByName: [\"GET /orgs/{org}/teams/{team_slug}\"],\n getDiscussionCommentInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\",\n ],\n getDiscussionInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\",\n ],\n getMembershipForUserInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/memberships/{username}\",\n ],\n list: [\"GET /orgs/{org}/teams\"],\n listChildInOrg: [\"GET /orgs/{org}/teams/{team_slug}/teams\"],\n listDiscussionCommentsInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\",\n ],\n listDiscussionsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions\"],\n listForAuthenticatedUser: [\"GET /user/teams\"],\n listMembersInOrg: [\"GET /orgs/{org}/teams/{team_slug}/members\"],\n listPendingInvitationsInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/invitations\",\n ],\n listProjectsInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listReposInOrg: [\"GET /orgs/{org}/teams/{team_slug}/repos\"],\n removeMembershipForUserInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}\",\n ],\n removeProjectInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}\",\n ],\n removeRepoInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\",\n ],\n updateDiscussionCommentInOrg: [\n \"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\",\n ],\n updateDiscussionInOrg: [\n \"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\",\n ],\n updateInOrg: [\"PATCH /orgs/{org}/teams/{team_slug}\"],\n },\n users: {\n addEmailForAuthenticated: [\"POST /user/emails\"],\n block: [\"PUT /user/blocks/{username}\"],\n checkBlocked: [\"GET /user/blocks/{username}\"],\n checkFollowingForUser: [\"GET /users/{username}/following/{target_user}\"],\n checkPersonIsFollowedByAuthenticated: [\"GET /user/following/{username}\"],\n createGpgKeyForAuthenticated: [\"POST /user/gpg_keys\"],\n createPublicSshKeyForAuthenticated: [\"POST /user/keys\"],\n deleteEmailForAuthenticated: [\"DELETE /user/emails\"],\n deleteGpgKeyForAuthenticated: [\"DELETE /user/gpg_keys/{gpg_key_id}\"],\n deletePublicSshKeyForAuthenticated: [\"DELETE /user/keys/{key_id}\"],\n follow: [\"PUT /user/following/{username}\"],\n getAuthenticated: [\"GET /user\"],\n getByUsername: [\"GET /users/{username}\"],\n getContextForUser: [\"GET /users/{username}/hovercard\"],\n getGpgKeyForAuthenticated: [\"GET /user/gpg_keys/{gpg_key_id}\"],\n getPublicSshKeyForAuthenticated: [\"GET /user/keys/{key_id}\"],\n list: [\"GET /users\"],\n listBlockedByAuthenticated: [\"GET /user/blocks\"],\n listEmailsForAuthenticated: [\"GET /user/emails\"],\n listFollowedByAuthenticated: [\"GET /user/following\"],\n listFollowersForAuthenticatedUser: [\"GET /user/followers\"],\n listFollowersForUser: [\"GET /users/{username}/followers\"],\n listFollowingForUser: [\"GET /users/{username}/following\"],\n listGpgKeysForAuthenticated: [\"GET /user/gpg_keys\"],\n listGpgKeysForUser: [\"GET /users/{username}/gpg_keys\"],\n listPublicEmailsForAuthenticated: [\"GET /user/public_emails\"],\n listPublicKeysForUser: [\"GET /users/{username}/keys\"],\n listPublicSshKeysForAuthenticated: [\"GET /user/keys\"],\n setPrimaryEmailVisibilityForAuthenticated: [\"PATCH /user/email/visibility\"],\n unblock: [\"DELETE /user/blocks/{username}\"],\n unfollow: [\"DELETE /user/following/{username}\"],\n updateAuthenticated: [\"PATCH /user\"],\n },\n};\nexport default Endpoints;\n","export const VERSION = \"4.3.1\";\n","export function endpointsToMethods(octokit, endpointsMap) {\n const newMethods = {};\n for (const [scope, endpoints] of Object.entries(endpointsMap)) {\n for (const [methodName, endpoint] of Object.entries(endpoints)) {\n const [route, defaults, decorations] = endpoint;\n const [method, url] = route.split(/ /);\n const endpointDefaults = Object.assign({ method, url }, defaults);\n if (!newMethods[scope]) {\n newMethods[scope] = {};\n }\n const scopeMethods = newMethods[scope];\n if (decorations) {\n scopeMethods[methodName] = decorate(octokit, scope, methodName, endpointDefaults, decorations);\n continue;\n }\n scopeMethods[methodName] = octokit.request.defaults(endpointDefaults);\n }\n }\n return newMethods;\n}\nfunction decorate(octokit, scope, methodName, defaults, decorations) {\n const requestWithDefaults = octokit.request.defaults(defaults);\n /* istanbul ignore next */\n function withDecorations(...args) {\n // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n let options = requestWithDefaults.endpoint.merge(...args);\n // There are currently no other decorations than `.mapToData`\n if (decorations.mapToData) {\n options = Object.assign({}, options, {\n data: options[decorations.mapToData],\n [decorations.mapToData]: undefined,\n });\n return requestWithDefaults(options);\n }\n if (decorations.renamed) {\n const [newScope, newMethodName] = decorations.renamed;\n octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`);\n }\n if (decorations.deprecated) {\n octokit.log.warn(decorations.deprecated);\n }\n if (decorations.renamedParameters) {\n // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n const options = requestWithDefaults.endpoint.merge(...args);\n for (const [name, alias] of Object.entries(decorations.renamedParameters)) {\n if (name in options) {\n octokit.log.warn(`\"${name}\" parameter is deprecated for \"octokit.${scope}.${methodName}()\". Use \"${alias}\" instead`);\n if (!(alias in options)) {\n options[alias] = options[name];\n }\n delete options[name];\n }\n }\n return requestWithDefaults(options);\n }\n // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n return requestWithDefaults(...args);\n }\n return Object.assign(withDecorations, requestWithDefaults);\n}\n","import ENDPOINTS from \"./generated/endpoints\";\nimport { VERSION } from \"./version\";\nimport { endpointsToMethods } from \"./endpoints-to-methods\";\n/**\n * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary\n * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is\n * done, we will remove the registerEndpoints methods and return the methods\n * directly as with the other plugins. At that point we will also remove the\n * legacy workarounds and deprecations.\n *\n * See the plan at\n * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1\n */\nexport function restEndpointMethods(octokit) {\n return endpointsToMethods(octokit, ENDPOINTS);\n}\nrestEndpointMethods.VERSION = VERSION;\n"],"names":["Endpoints","actions","addSelectedRepoToOrgSecret","cancelWorkflowRun","createOrUpdateOrgSecret","createOrUpdateRepoSecret","createRegistrationTokenForOrg","createRegistrationTokenForRepo","createRemoveTokenForOrg","createRemoveTokenForRepo","createWorkflowDispatch","deleteArtifact","deleteOrgSecret","deleteRepoSecret","deleteSelfHostedRunnerFromOrg","deleteSelfHostedRunnerFromRepo","deleteWorkflowRun","deleteWorkflowRunLogs","disableSelectedRepositoryGithubActionsOrganization","disableWorkflow","downloadArtifact","downloadJobLogsForWorkflowRun","downloadWorkflowRunLogs","enableSelectedRepositoryGithubActionsOrganization","enableWorkflow","getAllowedActionsOrganization","getAllowedActionsRepository","getArtifact","getGithubActionsPermissionsOrganization","getGithubActionsPermissionsRepository","getJobForWorkflowRun","getOrgPublicKey","getOrgSecret","getRepoPermissions","renamed","getRepoPublicKey","getRepoSecret","getSelfHostedRunnerForOrg","getSelfHostedRunnerForRepo","getWorkflow","getWorkflowRun","getWorkflowRunUsage","getWorkflowUsage","listArtifactsForRepo","listJobsForWorkflowRun","listOrgSecrets","listRepoSecrets","listRepoWorkflows","listRunnerApplicationsForOrg","listRunnerApplicationsForRepo","listSelectedReposForOrgSecret","listSelectedRepositoriesEnabledGithubActionsOrganization","listSelfHostedRunnersForOrg","listSelfHostedRunnersForRepo","listWorkflowRunArtifacts","listWorkflowRuns","listWorkflowRunsForRepo","reRunWorkflow","removeSelectedRepoFromOrgSecret","setAllowedActionsOrganization","setAllowedActionsRepository","setGithubActionsPermissionsOrganization","setGithubActionsPermissionsRepository","setSelectedReposForOrgSecret","setSelectedRepositoriesEnabledGithubActionsOrganization","activity","checkRepoIsStarredByAuthenticatedUser","deleteRepoSubscription","deleteThreadSubscription","getFeeds","getRepoSubscription","getThread","getThreadSubscriptionForAuthenticatedUser","listEventsForAuthenticatedUser","listNotificationsForAuthenticatedUser","listOrgEventsForAuthenticatedUser","listPublicEvents","listPublicEventsForRepoNetwork","listPublicEventsForUser","listPublicOrgEvents","listReceivedEventsForUser","listReceivedPublicEventsForUser","listRepoEvents","listRepoNotificationsForAuthenticatedUser","listReposStarredByAuthenticatedUser","listReposStarredByUser","listReposWatchedByUser","listStargazersForRepo","listWatchedReposForAuthenticatedUser","listWatchersForRepo","markNotificationsAsRead","markRepoNotificationsAsRead","markThreadAsRead","setRepoSubscription","setThreadSubscription","starRepoForAuthenticatedUser","unstarRepoForAuthenticatedUser","apps","addRepoToInstallation","checkToken","createContentAttachment","mediaType","previews","createFromManifest","createInstallationAccessToken","deleteAuthorization","deleteInstallation","deleteToken","getAuthenticated","getBySlug","getInstallation","getOrgInstallation","getRepoInstallation","getSubscriptionPlanForAccount","getSubscriptionPlanForAccountStubbed","getUserInstallation","getWebhookConfigForApp","listAccountsForPlan","listAccountsForPlanStubbed","listInstallationReposForAuthenticatedUser","listInstallations","listInstallationsForAuthenticatedUser","listPlans","listPlansStubbed","listReposAccessibleToInstallation","listSubscriptionsForAuthenticatedUser","listSubscriptionsForAuthenticatedUserStubbed","removeRepoFromInstallation","resetToken","revokeInstallationAccessToken","suspendInstallation","unsuspendInstallation","updateWebhookConfigForApp","billing","getGithubActionsBillingOrg","getGithubActionsBillingUser","getGithubPackagesBillingOrg","getGithubPackagesBillingUser","getSharedStorageBillingOrg","getSharedStorageBillingUser","checks","create","createSuite","get","getSuite","listAnnotations","listForRef","listForSuite","listSuitesForRef","rerequestSuite","setSuitesPreferences","update","codeScanning","getAlert","renamedParameters","alert_id","listAlertsForRepo","listRecentAnalyses","updateAlert","uploadSarif","codesOfConduct","getAllCodesOfConduct","getConductCode","getForRepo","emojis","enterpriseAdmin","disableSelectedOrganizationGithubActionsEnterprise","enableSelectedOrganizationGithubActionsEnterprise","getAllowedActionsEnterprise","getGithubActionsPermissionsEnterprise","listSelectedOrganizationsEnabledGithubActionsEnterprise","setAllowedActionsEnterprise","setGithubActionsPermissionsEnterprise","setSelectedOrganizationsEnabledGithubActionsEnterprise","gists","checkIsStarred","createComment","delete","deleteComment","fork","getComment","getRevision","list","listComments","listCommits","listForUser","listForks","listPublic","listStarred","star","unstar","updateComment","git","createBlob","createCommit","createRef","createTag","createTree","deleteRef","getBlob","getCommit","getRef","getTag","getTree","listMatchingRefs","updateRef","gitignore","getAllTemplates","getTemplate","interactions","getRestrictionsForOrg","getRestrictionsForRepo","getRestrictionsForYourPublicRepos","removeRestrictionsForOrg","removeRestrictionsForRepo","removeRestrictionsForYourPublicRepos","setRestrictionsForOrg","setRestrictionsForRepo","setRestrictionsForYourPublicRepos","issues","addAssignees","addLabels","checkUserCanBeAssigned","createLabel","createMilestone","deleteLabel","deleteMilestone","getEvent","getLabel","getMilestone","listAssignees","listCommentsForRepo","listEvents","listEventsForRepo","listEventsForTimeline","listForAuthenticatedUser","listForOrg","listForRepo","listLabelsForMilestone","listLabelsForRepo","listLabelsOnIssue","listMilestones","lock","removeAllLabels","removeAssignees","removeLabel","setLabels","unlock","updateLabel","updateMilestone","licenses","getAllCommonlyUsed","markdown","render","renderRaw","headers","meta","getOctocat","getZen","root","migrations","cancelImport","deleteArchiveForAuthenticatedUser","deleteArchiveForOrg","downloadArchiveForOrg","getArchiveForAuthenticatedUser","getCommitAuthors","getImportStatus","getLargeFiles","getStatusForAuthenticatedUser","getStatusForOrg","listReposForOrg","listReposForUser","mapCommitAuthor","setLfsPreference","startForAuthenticatedUser","startForOrg","startImport","unlockRepoForAuthenticatedUser","unlockRepoForOrg","updateImport","orgs","blockUser","checkBlockedUser","checkMembershipForUser","checkPublicMembershipForUser","convertMemberToOutsideCollaborator","createInvitation","createWebhook","deleteWebhook","getMembershipForAuthenticatedUser","getMembershipForUser","getWebhook","getWebhookConfigForOrg","listAppInstallations","listBlockedUsers","listInvitationTeams","listMembers","listMembershipsForAuthenticatedUser","listOutsideCollaborators","listPendingInvitations","listPublicMembers","listWebhooks","pingWebhook","removeMember","removeMembershipForUser","removeOutsideCollaborator","removePublicMembershipForAuthenticatedUser","setMembershipForUser","setPublicMembershipForAuthenticatedUser","unblockUser","updateMembershipForAuthenticatedUser","updateWebhook","updateWebhookConfigForOrg","projects","addCollaborator","createCard","createColumn","createForAuthenticatedUser","createForOrg","createForRepo","deleteCard","deleteColumn","getCard","getColumn","getPermissionForUser","listCards","listCollaborators","listColumns","moveCard","moveColumn","removeCollaborator","updateCard","updateColumn","pulls","checkIfMerged","createReplyForReviewComment","createReview","createReviewComment","deletePendingReview","deleteReviewComment","dismissReview","getReview","getReviewComment","listCommentsForReview","listFiles","listRequestedReviewers","listReviewComments","listReviewCommentsForRepo","listReviews","merge","removeRequestedReviewers","requestReviewers","submitReview","updateBranch","updateReview","updateReviewComment","rateLimit","reactions","createForCommitComment","createForIssue","createForIssueComment","createForPullRequestReviewComment","createForTeamDiscussionCommentInOrg","createForTeamDiscussionInOrg","deleteForCommitComment","deleteForIssue","deleteForIssueComment","deleteForPullRequestComment","deleteForTeamDiscussion","deleteForTeamDiscussionComment","deleteLegacy","deprecated","listForCommitComment","listForIssue","listForIssueComment","listForPullRequestReviewComment","listForTeamDiscussionCommentInOrg","listForTeamDiscussionInOrg","repos","acceptInvitation","addAppAccessRestrictions","mapToData","addStatusCheckContexts","addTeamAccessRestrictions","addUserAccessRestrictions","checkCollaborator","checkVulnerabilityAlerts","compareCommits","createCommitComment","createCommitSignatureProtection","createCommitStatus","createDeployKey","createDeployment","createDeploymentStatus","createDispatchEvent","createFork","createInOrg","createOrUpdateFileContents","createPagesSite","createRelease","createUsingTemplate","declineInvitation","deleteAccessRestrictions","deleteAdminBranchProtection","deleteBranchProtection","deleteCommitComment","deleteCommitSignatureProtection","deleteDeployKey","deleteDeployment","deleteFile","deleteInvitation","deletePagesSite","deletePullRequestReviewProtection","deleteRelease","deleteReleaseAsset","disableAutomatedSecurityFixes","disableVulnerabilityAlerts","downloadArchive","downloadTarballArchive","downloadZipballArchive","enableAutomatedSecurityFixes","enableVulnerabilityAlerts","getAccessRestrictions","getAdminBranchProtection","getAllStatusCheckContexts","getAllTopics","getAppsWithAccessToProtectedBranch","getBranch","getBranchProtection","getClones","getCodeFrequencyStats","getCollaboratorPermissionLevel","getCombinedStatusForRef","getCommitActivityStats","getCommitComment","getCommitSignatureProtection","getCommunityProfileMetrics","getContent","getContributorsStats","getDeployKey","getDeployment","getDeploymentStatus","getLatestPagesBuild","getLatestRelease","getPages","getPagesBuild","getParticipationStats","getPullRequestReviewProtection","getPunchCardStats","getReadme","getRelease","getReleaseAsset","getReleaseByTag","getStatusChecksProtection","getTeamsWithAccessToProtectedBranch","getTopPaths","getTopReferrers","getUsersWithAccessToProtectedBranch","getViews","getWebhookConfigForRepo","listBranches","listBranchesForHeadCommit","listCommentsForCommit","listCommitCommentsForRepo","listCommitStatusesForRef","listContributors","listDeployKeys","listDeploymentStatuses","listDeployments","listInvitations","listInvitationsForAuthenticatedUser","listLanguages","listPagesBuilds","listPullRequestsAssociatedWithCommit","listReleaseAssets","listReleases","listTags","listTeams","removeAppAccessRestrictions","removeStatusCheckContexts","removeStatusCheckProtection","removeTeamAccessRestrictions","removeUserAccessRestrictions","replaceAllTopics","requestPagesBuild","setAdminBranchProtection","setAppAccessRestrictions","setStatusCheckContexts","setTeamAccessRestrictions","setUserAccessRestrictions","testPushWebhook","transfer","updateBranchProtection","updateCommitComment","updateInformationAboutPagesSite","updateInvitation","updatePullRequestReviewProtection","updateRelease","updateReleaseAsset","updateStatusCheckPotection","updateStatusCheckProtection","updateWebhookConfigForRepo","uploadReleaseAsset","baseUrl","search","code","commits","issuesAndPullRequests","labels","topics","users","teams","addOrUpdateMembershipForUserInOrg","addOrUpdateProjectPermissionsInOrg","addOrUpdateRepoPermissionsInOrg","checkPermissionsForProjectInOrg","checkPermissionsForRepoInOrg","createDiscussionCommentInOrg","createDiscussionInOrg","deleteDiscussionCommentInOrg","deleteDiscussionInOrg","deleteInOrg","getByName","getDiscussionCommentInOrg","getDiscussionInOrg","getMembershipForUserInOrg","listChildInOrg","listDiscussionCommentsInOrg","listDiscussionsInOrg","listMembersInOrg","listPendingInvitationsInOrg","listProjectsInOrg","listReposInOrg","removeMembershipForUserInOrg","removeProjectInOrg","removeRepoInOrg","updateDiscussionCommentInOrg","updateDiscussionInOrg","updateInOrg","addEmailForAuthenticated","block","checkBlocked","checkFollowingForUser","checkPersonIsFollowedByAuthenticated","createGpgKeyForAuthenticated","createPublicSshKeyForAuthenticated","deleteEmailForAuthenticated","deleteGpgKeyForAuthenticated","deletePublicSshKeyForAuthenticated","follow","getByUsername","getContextForUser","getGpgKeyForAuthenticated","getPublicSshKeyForAuthenticated","listBlockedByAuthenticated","listEmailsForAuthenticated","listFollowedByAuthenticated","listFollowersForAuthenticatedUser","listFollowersForUser","listFollowingForUser","listGpgKeysForAuthenticated","listGpgKeysForUser","listPublicEmailsForAuthenticated","listPublicKeysForUser","listPublicSshKeysForAuthenticated","setPrimaryEmailVisibilityForAuthenticated","unblock","unfollow","updateAuthenticated","VERSION","endpointsToMethods","octokit","endpointsMap","newMethods","scope","endpoints","Object","entries","methodName","endpoint","route","defaults","decorations","method","url","split","endpointDefaults","assign","scopeMethods","decorate","request","requestWithDefaults","withDecorations","args","options","data","undefined","newScope","newMethodName","log","warn","name","alias","restEndpointMethods","ENDPOINTS"],"mappings":";;;;AAAA,MAAMA,SAAS,GAAG;AACdC,EAAAA,OAAO,EAAE;AACLC,IAAAA,0BAA0B,EAAE,CACxB,4EADwB,CADvB;AAILC,IAAAA,iBAAiB,EAAE,CACf,yDADe,CAJd;AAOLC,IAAAA,uBAAuB,EAAE,CAAC,+CAAD,CAPpB;AAQLC,IAAAA,wBAAwB,EAAE,CACtB,yDADsB,CARrB;AAWLC,IAAAA,6BAA6B,EAAE,CAC3B,qDAD2B,CAX1B;AAcLC,IAAAA,8BAA8B,EAAE,CAC5B,+DAD4B,CAd3B;AAiBLC,IAAAA,uBAAuB,EAAE,CAAC,+CAAD,CAjBpB;AAkBLC,IAAAA,wBAAwB,EAAE,CACtB,yDADsB,CAlBrB;AAqBLC,IAAAA,sBAAsB,EAAE,CACpB,uEADoB,CArBnB;AAwBLC,IAAAA,cAAc,EAAE,CACZ,8DADY,CAxBX;AA2BLC,IAAAA,eAAe,EAAE,CAAC,kDAAD,CA3BZ;AA4BLC,IAAAA,gBAAgB,EAAE,CACd,4DADc,CA5Bb;AA+BLC,IAAAA,6BAA6B,EAAE,CAC3B,gDAD2B,CA/B1B;AAkCLC,IAAAA,8BAA8B,EAAE,CAC5B,0DAD4B,CAlC3B;AAqCLC,IAAAA,iBAAiB,EAAE,CAAC,oDAAD,CArCd;AAsCLC,IAAAA,qBAAqB,EAAE,CACnB,yDADmB,CAtClB;AAyCLC,IAAAA,kDAAkD,EAAE,CAChD,qEADgD,CAzC/C;AA4CLC,IAAAA,eAAe,EAAE,CACb,mEADa,CA5CZ;AA+CLC,IAAAA,gBAAgB,EAAE,CACd,4EADc,CA/Cb;AAkDLC,IAAAA,6BAA6B,EAAE,CAC3B,sDAD2B,CAlD1B;AAqDLC,IAAAA,uBAAuB,EAAE,CACrB,sDADqB,CArDpB;AAwDLC,IAAAA,iDAAiD,EAAE,CAC/C,kEAD+C,CAxD9C;AA2DLC,IAAAA,cAAc,EAAE,CACZ,kEADY,CA3DX;AA8DLC,IAAAA,6BAA6B,EAAE,CAC3B,sDAD2B,CA9D1B;AAiELC,IAAAA,2BAA2B,EAAE,CACzB,gEADyB,CAjExB;AAoELC,IAAAA,WAAW,EAAE,CAAC,2DAAD,CApER;AAqELC,IAAAA,uCAAuC,EAAE,CACrC,qCADqC,CArEpC;AAwELC,IAAAA,qCAAqC,EAAE,CACnC,+CADmC,CAxElC;AA2ELC,IAAAA,oBAAoB,EAAE,CAAC,iDAAD,CA3EjB;AA4ELC,IAAAA,eAAe,EAAE,CAAC,4CAAD,CA5EZ;AA6ELC,IAAAA,YAAY,EAAE,CAAC,+CAAD,CA7ET;AA8ELC,IAAAA,kBAAkB,EAAE,CAChB,+CADgB,EAEhB,EAFgB,EAGhB;AAAEC,MAAAA,OAAO,EAAE,CAAC,SAAD,EAAY,uCAAZ;AAAX,KAHgB,CA9Ef;AAmFLC,IAAAA,gBAAgB,EAAE,CAAC,sDAAD,CAnFb;AAoFLC,IAAAA,aAAa,EAAE,CAAC,yDAAD,CApFV;AAqFLC,IAAAA,yBAAyB,EAAE,CAAC,6CAAD,CArFtB;AAsFLC,IAAAA,0BAA0B,EAAE,CACxB,uDADwB,CAtFvB;AAyFLC,IAAAA,WAAW,EAAE,CAAC,2DAAD,CAzFR;AA0FLC,IAAAA,cAAc,EAAE,CAAC,iDAAD,CA1FX;AA2FLC,IAAAA,mBAAmB,EAAE,CACjB,wDADiB,CA3FhB;AA8FLC,IAAAA,gBAAgB,EAAE,CACd,kEADc,CA9Fb;AAiGLC,IAAAA,oBAAoB,EAAE,CAAC,6CAAD,CAjGjB;AAkGLC,IAAAA,sBAAsB,EAAE,CACpB,sDADoB,CAlGnB;AAqGLC,IAAAA,cAAc,EAAE,CAAC,iCAAD,CArGX;AAsGLC,IAAAA,eAAe,EAAE,CAAC,2CAAD,CAtGZ;AAuGLC,IAAAA,iBAAiB,EAAE,CAAC,6CAAD,CAvGd;AAwGLC,IAAAA,4BAA4B,EAAE,CAAC,2CAAD,CAxGzB;AAyGLC,IAAAA,6BAA6B,EAAE,CAC3B,qDAD2B,CAzG1B;AA4GLC,IAAAA,6BAA6B,EAAE,CAC3B,4DAD2B,CA5G1B;AA+GLC,IAAAA,wDAAwD,EAAE,CACtD,kDADsD,CA/GrD;AAkHLC,IAAAA,2BAA2B,EAAE,CAAC,iCAAD,CAlHxB;AAmHLC,IAAAA,4BAA4B,EAAE,CAAC,2CAAD,CAnHzB;AAoHLC,IAAAA,wBAAwB,EAAE,CACtB,2DADsB,CApHrB;AAuHLC,IAAAA,gBAAgB,EAAE,CACd,gEADc,CAvHb;AA0HLC,IAAAA,uBAAuB,EAAE,CAAC,wCAAD,CA1HpB;AA2HLC,IAAAA,aAAa,EAAE,CAAC,wDAAD,CA3HV;AA4HLC,IAAAA,+BAA+B,EAAE,CAC7B,+EAD6B,CA5H5B;AA+HLC,IAAAA,6BAA6B,EAAE,CAC3B,sDAD2B,CA/H1B;AAkILC,IAAAA,2BAA2B,EAAE,CACzB,gEADyB,CAlIxB;AAqILC,IAAAA,uCAAuC,EAAE,CACrC,qCADqC,CArIpC;AAwILC,IAAAA,qCAAqC,EAAE,CACnC,+CADmC,CAxIlC;AA2ILC,IAAAA,4BAA4B,EAAE,CAC1B,4DAD0B,CA3IzB;AA8ILC,IAAAA,uDAAuD,EAAE,CACrD,kDADqD;AA9IpD,GADK;AAmJdC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,qCAAqC,EAAE,CAAC,kCAAD,CADjC;AAENC,IAAAA,sBAAsB,EAAE,CAAC,2CAAD,CAFlB;AAGNC,IAAAA,wBAAwB,EAAE,CACtB,wDADsB,CAHpB;AAMNC,IAAAA,QAAQ,EAAE,CAAC,YAAD,CANJ;AAONC,IAAAA,mBAAmB,EAAE,CAAC,wCAAD,CAPf;AAQNC,IAAAA,SAAS,EAAE,CAAC,wCAAD,CARL;AASNC,IAAAA,yCAAyC,EAAE,CACvC,qDADuC,CATrC;AAYNC,IAAAA,8BAA8B,EAAE,CAAC,8BAAD,CAZ1B;AAaNC,IAAAA,qCAAqC,EAAE,CAAC,oBAAD,CAbjC;AAcNC,IAAAA,iCAAiC,EAAE,CAC/B,yCAD+B,CAd7B;AAiBNC,IAAAA,gBAAgB,EAAE,CAAC,aAAD,CAjBZ;AAkBNC,IAAAA,8BAA8B,EAAE,CAAC,qCAAD,CAlB1B;AAmBNC,IAAAA,uBAAuB,EAAE,CAAC,qCAAD,CAnBnB;AAoBNC,IAAAA,mBAAmB,EAAE,CAAC,wBAAD,CApBf;AAqBNC,IAAAA,yBAAyB,EAAE,CAAC,uCAAD,CArBrB;AAsBNC,IAAAA,+BAA+B,EAAE,CAC7B,8CAD6B,CAtB3B;AAyBNC,IAAAA,cAAc,EAAE,CAAC,kCAAD,CAzBV;AA0BNC,IAAAA,yCAAyC,EAAE,CACvC,yCADuC,CA1BrC;AA6BNC,IAAAA,mCAAmC,EAAE,CAAC,mBAAD,CA7B/B;AA8BNC,IAAAA,sBAAsB,EAAE,CAAC,+BAAD,CA9BlB;AA+BNC,IAAAA,sBAAsB,EAAE,CAAC,qCAAD,CA/BlB;AAgCNC,IAAAA,qBAAqB,EAAE,CAAC,sCAAD,CAhCjB;AAiCNC,IAAAA,oCAAoC,EAAE,CAAC,yBAAD,CAjChC;AAkCNC,IAAAA,mBAAmB,EAAE,CAAC,uCAAD,CAlCf;AAmCNC,IAAAA,uBAAuB,EAAE,CAAC,oBAAD,CAnCnB;AAoCNC,IAAAA,2BAA2B,EAAE,CAAC,yCAAD,CApCvB;AAqCNC,IAAAA,gBAAgB,EAAE,CAAC,0CAAD,CArCZ;AAsCNC,IAAAA,mBAAmB,EAAE,CAAC,wCAAD,CAtCf;AAuCNC,IAAAA,qBAAqB,EAAE,CACnB,qDADmB,CAvCjB;AA0CNC,IAAAA,4BAA4B,EAAE,CAAC,kCAAD,CA1CxB;AA2CNC,IAAAA,8BAA8B,EAAE,CAAC,qCAAD;AA3C1B,GAnJI;AAgMdC,EAAAA,IAAI,EAAE;AACFC,IAAAA,qBAAqB,EAAE,CACnB,wEADmB,CADrB;AAIFC,IAAAA,UAAU,EAAE,CAAC,sCAAD,CAJV;AAKFC,IAAAA,uBAAuB,EAAE,CACrB,6DADqB,EAErB;AAAEC,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFqB,CALvB;AASFC,IAAAA,kBAAkB,EAAE,CAAC,wCAAD,CATlB;AAUFC,IAAAA,6BAA6B,EAAE,CAC3B,yDAD2B,CAV7B;AAaFC,IAAAA,mBAAmB,EAAE,CAAC,wCAAD,CAbnB;AAcFC,IAAAA,kBAAkB,EAAE,CAAC,6CAAD,CAdlB;AAeFC,IAAAA,WAAW,EAAE,CAAC,wCAAD,CAfX;AAgBFC,IAAAA,gBAAgB,EAAE,CAAC,UAAD,CAhBhB;AAiBFC,IAAAA,SAAS,EAAE,CAAC,sBAAD,CAjBT;AAkBFC,IAAAA,eAAe,EAAE,CAAC,0CAAD,CAlBf;AAmBFC,IAAAA,kBAAkB,EAAE,CAAC,8BAAD,CAnBlB;AAoBFC,IAAAA,mBAAmB,EAAE,CAAC,wCAAD,CApBnB;AAqBFC,IAAAA,6BAA6B,EAAE,CAC3B,gDAD2B,CArB7B;AAwBFC,IAAAA,oCAAoC,EAAE,CAClC,wDADkC,CAxBpC;AA2BFC,IAAAA,mBAAmB,EAAE,CAAC,oCAAD,CA3BnB;AA4BFC,IAAAA,sBAAsB,EAAE,CAAC,sBAAD,CA5BtB;AA6BFC,IAAAA,mBAAmB,EAAE,CAAC,mDAAD,CA7BnB;AA8BFC,IAAAA,0BAA0B,EAAE,CACxB,2DADwB,CA9B1B;AAiCFC,IAAAA,yCAAyC,EAAE,CACvC,wDADuC,CAjCzC;AAoCFC,IAAAA,iBAAiB,EAAE,CAAC,wBAAD,CApCjB;AAqCFC,IAAAA,qCAAqC,EAAE,CAAC,yBAAD,CArCrC;AAsCFC,IAAAA,SAAS,EAAE,CAAC,gCAAD,CAtCT;AAuCFC,IAAAA,gBAAgB,EAAE,CAAC,wCAAD,CAvChB;AAwCFC,IAAAA,iCAAiC,EAAE,CAAC,gCAAD,CAxCjC;AAyCFC,IAAAA,qCAAqC,EAAE,CAAC,iCAAD,CAzCrC;AA0CFC,IAAAA,4CAA4C,EAAE,CAC1C,yCAD0C,CA1C5C;AA6CFC,IAAAA,0BAA0B,EAAE,CACxB,2EADwB,CA7C1B;AAgDFC,IAAAA,UAAU,EAAE,CAAC,uCAAD,CAhDV;AAiDFC,IAAAA,6BAA6B,EAAE,CAAC,4BAAD,CAjD7B;AAkDFC,IAAAA,mBAAmB,EAAE,CAAC,oDAAD,CAlDnB;AAmDFC,IAAAA,qBAAqB,EAAE,CACnB,uDADmB,CAnDrB;AAsDFC,IAAAA,yBAAyB,EAAE,CAAC,wBAAD;AAtDzB,GAhMQ;AAwPdC,EAAAA,OAAO,EAAE;AACLC,IAAAA,0BAA0B,EAAE,CAAC,0CAAD,CADvB;AAELC,IAAAA,2BAA2B,EAAE,CACzB,gDADyB,CAFxB;AAKLC,IAAAA,2BAA2B,EAAE,CAAC,2CAAD,CALxB;AAMLC,IAAAA,4BAA4B,EAAE,CAC1B,iDAD0B,CANzB;AASLC,IAAAA,0BAA0B,EAAE,CACxB,iDADwB,CATvB;AAYLC,IAAAA,2BAA2B,EAAE,CACzB,uDADyB;AAZxB,GAxPK;AAwQdC,EAAAA,MAAM,EAAE;AACJC,IAAAA,MAAM,EAAE,CAAC,uCAAD,CADJ;AAEJC,IAAAA,WAAW,EAAE,CAAC,yCAAD,CAFT;AAGJC,IAAAA,GAAG,EAAE,CAAC,qDAAD,CAHD;AAIJC,IAAAA,QAAQ,EAAE,CAAC,yDAAD,CAJN;AAKJC,IAAAA,eAAe,EAAE,CACb,iEADa,CALb;AAQJC,IAAAA,UAAU,EAAE,CAAC,oDAAD,CARR;AASJC,IAAAA,YAAY,EAAE,CACV,oEADU,CATV;AAYJC,IAAAA,gBAAgB,EAAE,CAAC,sDAAD,CAZd;AAaJC,IAAAA,cAAc,EAAE,CACZ,oEADY,CAbZ;AAgBJC,IAAAA,oBAAoB,EAAE,CAClB,sDADkB,CAhBlB;AAmBJC,IAAAA,MAAM,EAAE,CAAC,uDAAD;AAnBJ,GAxQM;AA6RdC,EAAAA,YAAY,EAAE;AACVC,IAAAA,QAAQ,EAAE,CACN,+DADM,EAEN,EAFM,EAGN;AAAEC,MAAAA,iBAAiB,EAAE;AAAEC,QAAAA,QAAQ,EAAE;AAAZ;AAArB,KAHM,CADA;AAMVC,IAAAA,iBAAiB,EAAE,CAAC,gDAAD,CANT;AAOVC,IAAAA,kBAAkB,EAAE,CAAC,kDAAD,CAPV;AAQVC,IAAAA,WAAW,EAAE,CACT,iEADS,CARH;AAWVC,IAAAA,WAAW,EAAE,CAAC,iDAAD;AAXH,GA7RA;AA0SdC,EAAAA,cAAc,EAAE;AACZC,IAAAA,oBAAoB,EAAE,CAClB,uBADkB,EAElB;AAAE5D,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFkB,CADV;AAKZ4D,IAAAA,cAAc,EAAE,CACZ,6BADY,EAEZ;AAAE7D,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFY,CALJ;AASZ6D,IAAAA,UAAU,EAAE,CACR,qDADQ,EAER;AAAE9D,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFQ;AATA,GA1SF;AAwTd8D,EAAAA,MAAM,EAAE;AAAErB,IAAAA,GAAG,EAAE,CAAC,aAAD;AAAP,GAxTM;AAyTdsB,EAAAA,eAAe,EAAE;AACbC,IAAAA,kDAAkD,EAAE,CAChD,6EADgD,CADvC;AAIbC,IAAAA,iDAAiD,EAAE,CAC/C,0EAD+C,CAJtC;AAObC,IAAAA,2BAA2B,EAAE,CACzB,oEADyB,CAPhB;AAUbC,IAAAA,qCAAqC,EAAE,CACnC,mDADmC,CAV1B;AAabC,IAAAA,uDAAuD,EAAE,CACrD,iEADqD,CAb5C;AAgBbC,IAAAA,2BAA2B,EAAE,CACzB,oEADyB,CAhBhB;AAmBbC,IAAAA,qCAAqC,EAAE,CACnC,mDADmC,CAnB1B;AAsBbC,IAAAA,sDAAsD,EAAE,CACpD,iEADoD;AAtB3C,GAzTH;AAmVdC,EAAAA,KAAK,EAAE;AACHC,IAAAA,cAAc,EAAE,CAAC,2BAAD,CADb;AAEHlC,IAAAA,MAAM,EAAE,CAAC,aAAD,CAFL;AAGHmC,IAAAA,aAAa,EAAE,CAAC,gCAAD,CAHZ;AAIHC,IAAAA,MAAM,EAAE,CAAC,yBAAD,CAJL;AAKHC,IAAAA,aAAa,EAAE,CAAC,+CAAD,CALZ;AAMHC,IAAAA,IAAI,EAAE,CAAC,6BAAD,CANH;AAOHpC,IAAAA,GAAG,EAAE,CAAC,sBAAD,CAPF;AAQHqC,IAAAA,UAAU,EAAE,CAAC,4CAAD,CART;AASHC,IAAAA,WAAW,EAAE,CAAC,4BAAD,CATV;AAUHC,IAAAA,IAAI,EAAE,CAAC,YAAD,CAVH;AAWHC,IAAAA,YAAY,EAAE,CAAC,+BAAD,CAXX;AAYHC,IAAAA,WAAW,EAAE,CAAC,8BAAD,CAZV;AAaHC,IAAAA,WAAW,EAAE,CAAC,6BAAD,CAbV;AAcHC,IAAAA,SAAS,EAAE,CAAC,4BAAD,CAdR;AAeHC,IAAAA,UAAU,EAAE,CAAC,mBAAD,CAfT;AAgBHC,IAAAA,WAAW,EAAE,CAAC,oBAAD,CAhBV;AAiBHC,IAAAA,IAAI,EAAE,CAAC,2BAAD,CAjBH;AAkBHC,IAAAA,MAAM,EAAE,CAAC,8BAAD,CAlBL;AAmBHvC,IAAAA,MAAM,EAAE,CAAC,wBAAD,CAnBL;AAoBHwC,IAAAA,aAAa,EAAE,CAAC,8CAAD;AApBZ,GAnVO;AAyWdC,EAAAA,GAAG,EAAE;AACDC,IAAAA,UAAU,EAAE,CAAC,sCAAD,CADX;AAEDC,IAAAA,YAAY,EAAE,CAAC,wCAAD,CAFb;AAGDC,IAAAA,SAAS,EAAE,CAAC,qCAAD,CAHV;AAIDC,IAAAA,SAAS,EAAE,CAAC,qCAAD,CAJV;AAKDC,IAAAA,UAAU,EAAE,CAAC,sCAAD,CALX;AAMDC,IAAAA,SAAS,EAAE,CAAC,6CAAD,CANV;AAODC,IAAAA,OAAO,EAAE,CAAC,gDAAD,CAPR;AAQDC,IAAAA,SAAS,EAAE,CAAC,oDAAD,CARV;AASDC,IAAAA,MAAM,EAAE,CAAC,yCAAD,CATP;AAUDC,IAAAA,MAAM,EAAE,CAAC,8CAAD,CAVP;AAWDC,IAAAA,OAAO,EAAE,CAAC,gDAAD,CAXR;AAYDC,IAAAA,gBAAgB,EAAE,CAAC,mDAAD,CAZjB;AAaDC,IAAAA,SAAS,EAAE,CAAC,4CAAD;AAbV,GAzWS;AAwXdC,EAAAA,SAAS,EAAE;AACPC,IAAAA,eAAe,EAAE,CAAC,0BAAD,CADV;AAEPC,IAAAA,WAAW,EAAE,CAAC,iCAAD;AAFN,GAxXG;AA4XdC,EAAAA,YAAY,EAAE;AACVC,IAAAA,qBAAqB,EAAE,CAAC,oCAAD,CADb;AAEVC,IAAAA,sBAAsB,EAAE,CAAC,8CAAD,CAFd;AAGVC,IAAAA,iCAAiC,EAAE,CAAC,8BAAD,CAHzB;AAIVC,IAAAA,wBAAwB,EAAE,CAAC,uCAAD,CAJhB;AAKVC,IAAAA,yBAAyB,EAAE,CACvB,iDADuB,CALjB;AAQVC,IAAAA,oCAAoC,EAAE,CAAC,iCAAD,CAR5B;AASVC,IAAAA,qBAAqB,EAAE,CAAC,oCAAD,CATb;AAUVC,IAAAA,sBAAsB,EAAE,CAAC,8CAAD,CAVd;AAWVC,IAAAA,iCAAiC,EAAE,CAAC,8BAAD;AAXzB,GA5XA;AAyYdC,EAAAA,MAAM,EAAE;AACJC,IAAAA,YAAY,EAAE,CACV,4DADU,CADV;AAIJC,IAAAA,SAAS,EAAE,CAAC,yDAAD,CAJP;AAKJC,IAAAA,sBAAsB,EAAE,CAAC,gDAAD,CALpB;AAMJjF,IAAAA,MAAM,EAAE,CAAC,mCAAD,CANJ;AAOJmC,IAAAA,aAAa,EAAE,CACX,2DADW,CAPX;AAUJ+C,IAAAA,WAAW,EAAE,CAAC,mCAAD,CAVT;AAWJC,IAAAA,eAAe,EAAE,CAAC,uCAAD,CAXb;AAYJ9C,IAAAA,aAAa,EAAE,CACX,2DADW,CAZX;AAeJ+C,IAAAA,WAAW,EAAE,CAAC,4CAAD,CAfT;AAgBJC,IAAAA,eAAe,EAAE,CACb,4DADa,CAhBb;AAmBJnF,IAAAA,GAAG,EAAE,CAAC,iDAAD,CAnBD;AAoBJqC,IAAAA,UAAU,EAAE,CAAC,wDAAD,CApBR;AAqBJ+C,IAAAA,QAAQ,EAAE,CAAC,oDAAD,CArBN;AAsBJC,IAAAA,QAAQ,EAAE,CAAC,yCAAD,CAtBN;AAuBJC,IAAAA,YAAY,EAAE,CAAC,yDAAD,CAvBV;AAwBJ/C,IAAAA,IAAI,EAAE,CAAC,aAAD,CAxBF;AAyBJgD,IAAAA,aAAa,EAAE,CAAC,qCAAD,CAzBX;AA0BJ/C,IAAAA,YAAY,EAAE,CAAC,0DAAD,CA1BV;AA2BJgD,IAAAA,mBAAmB,EAAE,CAAC,2CAAD,CA3BjB;AA4BJC,IAAAA,UAAU,EAAE,CAAC,wDAAD,CA5BR;AA6BJC,IAAAA,iBAAiB,EAAE,CAAC,yCAAD,CA7Bf;AA8BJC,IAAAA,qBAAqB,EAAE,CACnB,0DADmB,EAEnB;AAAErI,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,aAAD;AAAZ;AAAb,KAFmB,CA9BnB;AAkCJqI,IAAAA,wBAAwB,EAAE,CAAC,kBAAD,CAlCtB;AAmCJC,IAAAA,UAAU,EAAE,CAAC,wBAAD,CAnCR;AAoCJC,IAAAA,WAAW,EAAE,CAAC,kCAAD,CApCT;AAqCJC,IAAAA,sBAAsB,EAAE,CACpB,gEADoB,CArCpB;AAwCJC,IAAAA,iBAAiB,EAAE,CAAC,kCAAD,CAxCf;AAyCJC,IAAAA,iBAAiB,EAAE,CACf,wDADe,CAzCf;AA4CJC,IAAAA,cAAc,EAAE,CAAC,sCAAD,CA5CZ;AA6CJC,IAAAA,IAAI,EAAE,CAAC,sDAAD,CA7CF;AA8CJC,IAAAA,eAAe,EAAE,CACb,2DADa,CA9Cb;AAiDJC,IAAAA,eAAe,EAAE,CACb,8DADa,CAjDb;AAoDJC,IAAAA,WAAW,EAAE,CACT,kEADS,CApDT;AAuDJC,IAAAA,SAAS,EAAE,CAAC,wDAAD,CAvDP;AAwDJC,IAAAA,MAAM,EAAE,CAAC,yDAAD,CAxDJ;AAyDJhG,IAAAA,MAAM,EAAE,CAAC,mDAAD,CAzDJ;AA0DJwC,IAAAA,aAAa,EAAE,CAAC,0DAAD,CA1DX;AA2DJyD,IAAAA,WAAW,EAAE,CAAC,2CAAD,CA3DT;AA4DJC,IAAAA,eAAe,EAAE,CACb,2DADa;AA5Db,GAzYM;AAycdC,EAAAA,QAAQ,EAAE;AACN3G,IAAAA,GAAG,EAAE,CAAC,yBAAD,CADC;AAEN4G,IAAAA,kBAAkB,EAAE,CAAC,eAAD,CAFd;AAGNxF,IAAAA,UAAU,EAAE,CAAC,mCAAD;AAHN,GAzcI;AA8cdyF,EAAAA,QAAQ,EAAE;AACNC,IAAAA,MAAM,EAAE,CAAC,gBAAD,CADF;AAENC,IAAAA,SAAS,EAAE,CACP,oBADO,EAEP;AAAEC,MAAAA,OAAO,EAAE;AAAE,wBAAgB;AAAlB;AAAX,KAFO;AAFL,GA9cI;AAqddC,EAAAA,IAAI,EAAE;AACFjH,IAAAA,GAAG,EAAE,CAAC,WAAD,CADH;AAEFkH,IAAAA,UAAU,EAAE,CAAC,cAAD,CAFV;AAGFC,IAAAA,MAAM,EAAE,CAAC,UAAD,CAHN;AAIFC,IAAAA,IAAI,EAAE,CAAC,OAAD;AAJJ,GArdQ;AA2ddC,EAAAA,UAAU,EAAE;AACRC,IAAAA,YAAY,EAAE,CAAC,qCAAD,CADN;AAERC,IAAAA,iCAAiC,EAAE,CAC/B,gDAD+B,EAE/B;AAAEjK,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAF+B,CAF3B;AAMRiK,IAAAA,mBAAmB,EAAE,CACjB,sDADiB,EAEjB;AAAElK,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAFiB,CANb;AAURkK,IAAAA,qBAAqB,EAAE,CACnB,mDADmB,EAEnB;AAAEnK,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAFmB,CAVf;AAcRmK,IAAAA,8BAA8B,EAAE,CAC5B,6CAD4B,EAE5B;AAAEpK,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAF4B,CAdxB;AAkBRoK,IAAAA,gBAAgB,EAAE,CAAC,0CAAD,CAlBV;AAmBRC,IAAAA,eAAe,EAAE,CAAC,kCAAD,CAnBT;AAoBRC,IAAAA,aAAa,EAAE,CAAC,8CAAD,CApBP;AAqBRC,IAAAA,6BAA6B,EAAE,CAC3B,qCAD2B,EAE3B;AAAExK,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAF2B,CArBvB;AAyBRwK,IAAAA,eAAe,EAAE,CACb,2CADa,EAEb;AAAEzK,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAFa,CAzBT;AA6BRqI,IAAAA,wBAAwB,EAAE,CACtB,sBADsB,EAEtB;AAAEtI,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAFsB,CA7BlB;AAiCRsI,IAAAA,UAAU,EAAE,CACR,4BADQ,EAER;AAAEvI,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAFQ,CAjCJ;AAqCRyK,IAAAA,eAAe,EAAE,CACb,wDADa,EAEb;AAAE1K,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAFa,CArCT;AAyCR0K,IAAAA,gBAAgB,EAAE,CACd,kDADc,EAEd;AAAE3K,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAFc,CAzCV;AA6CR2K,IAAAA,eAAe,EAAE,CAAC,wDAAD,CA7CT;AA8CRC,IAAAA,gBAAgB,EAAE,CAAC,wCAAD,CA9CV;AA+CRC,IAAAA,yBAAyB,EAAE,CAAC,uBAAD,CA/CnB;AAgDRC,IAAAA,WAAW,EAAE,CAAC,6BAAD,CAhDL;AAiDRC,IAAAA,WAAW,EAAE,CAAC,kCAAD,CAjDL;AAkDRC,IAAAA,8BAA8B,EAAE,CAC5B,+DAD4B,EAE5B;AAAEjL,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAF4B,CAlDxB;AAsDRiL,IAAAA,gBAAgB,EAAE,CACd,qEADc,EAEd;AAAElL,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,WAAD;AAAZ;AAAb,KAFc,CAtDV;AA0DRkL,IAAAA,YAAY,EAAE,CAAC,oCAAD;AA1DN,GA3dE;AAuhBdC,EAAAA,IAAI,EAAE;AACFC,IAAAA,SAAS,EAAE,CAAC,mCAAD,CADT;AAEFC,IAAAA,gBAAgB,EAAE,CAAC,mCAAD,CAFhB;AAGFC,IAAAA,sBAAsB,EAAE,CAAC,oCAAD,CAHtB;AAIFC,IAAAA,4BAA4B,EAAE,CAAC,2CAAD,CAJ5B;AAKFC,IAAAA,kCAAkC,EAAE,CAChC,kDADgC,CALlC;AAQFC,IAAAA,gBAAgB,EAAE,CAAC,8BAAD,CARhB;AASFC,IAAAA,aAAa,EAAE,CAAC,wBAAD,CATb;AAUFC,IAAAA,aAAa,EAAE,CAAC,oCAAD,CAVb;AAWFlJ,IAAAA,GAAG,EAAE,CAAC,iBAAD,CAXH;AAYFmJ,IAAAA,iCAAiC,EAAE,CAAC,kCAAD,CAZjC;AAaFC,IAAAA,oBAAoB,EAAE,CAAC,wCAAD,CAbpB;AAcFC,IAAAA,UAAU,EAAE,CAAC,iCAAD,CAdV;AAeFC,IAAAA,sBAAsB,EAAE,CAAC,wCAAD,CAftB;AAgBF/G,IAAAA,IAAI,EAAE,CAAC,oBAAD,CAhBJ;AAiBFgH,IAAAA,oBAAoB,EAAE,CAAC,+BAAD,CAjBpB;AAkBFC,IAAAA,gBAAgB,EAAE,CAAC,wBAAD,CAlBhB;AAmBF5D,IAAAA,wBAAwB,EAAE,CAAC,gBAAD,CAnBxB;AAoBFlD,IAAAA,WAAW,EAAE,CAAC,4BAAD,CApBX;AAqBF+G,IAAAA,mBAAmB,EAAE,CAAC,mDAAD,CArBnB;AAsBFC,IAAAA,WAAW,EAAE,CAAC,yBAAD,CAtBX;AAuBFC,IAAAA,mCAAmC,EAAE,CAAC,4BAAD,CAvBnC;AAwBFC,IAAAA,wBAAwB,EAAE,CAAC,uCAAD,CAxBxB;AAyBFC,IAAAA,sBAAsB,EAAE,CAAC,6BAAD,CAzBtB;AA0BFC,IAAAA,iBAAiB,EAAE,CAAC,gCAAD,CA1BjB;AA2BFC,IAAAA,YAAY,EAAE,CAAC,uBAAD,CA3BZ;AA4BFC,IAAAA,WAAW,EAAE,CAAC,wCAAD,CA5BX;AA6BFC,IAAAA,YAAY,EAAE,CAAC,uCAAD,CA7BZ;AA8BFC,IAAAA,uBAAuB,EAAE,CAAC,2CAAD,CA9BvB;AA+BFC,IAAAA,yBAAyB,EAAE,CACvB,qDADuB,CA/BzB;AAkCFC,IAAAA,0CAA0C,EAAE,CACxC,8CADwC,CAlC1C;AAqCFC,IAAAA,oBAAoB,EAAE,CAAC,wCAAD,CArCpB;AAsCFC,IAAAA,uCAAuC,EAAE,CACrC,2CADqC,CAtCvC;AAyCFC,IAAAA,WAAW,EAAE,CAAC,sCAAD,CAzCX;AA0CF/J,IAAAA,MAAM,EAAE,CAAC,mBAAD,CA1CN;AA2CFgK,IAAAA,oCAAoC,EAAE,CAClC,oCADkC,CA3CpC;AA8CFC,IAAAA,aAAa,EAAE,CAAC,mCAAD,CA9Cb;AA+CFC,IAAAA,yBAAyB,EAAE,CAAC,0CAAD;AA/CzB,GAvhBQ;AAwkBdC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,eAAe,EAAE,CACb,qDADa,EAEb;AAAEtN,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFa,CADX;AAKNsN,IAAAA,UAAU,EAAE,CACR,0CADQ,EAER;AAAEvN,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFQ,CALN;AASNuN,IAAAA,YAAY,EAAE,CACV,qCADU,EAEV;AAAExN,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFU,CATR;AAaNwN,IAAAA,0BAA0B,EAAE,CACxB,qBADwB,EAExB;AAAEzN,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFwB,CAbtB;AAiBNyN,IAAAA,YAAY,EAAE,CACV,2BADU,EAEV;AAAE1N,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFU,CAjBR;AAqBN0N,IAAAA,aAAa,EAAE,CACX,qCADW,EAEX;AAAE3N,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFW,CArBT;AAyBN2E,IAAAA,MAAM,EAAE,CACJ,+BADI,EAEJ;AAAE5E,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFI,CAzBF;AA6BN2N,IAAAA,UAAU,EAAE,CACR,0CADQ,EAER;AAAE5N,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFQ,CA7BN;AAiCN4N,IAAAA,YAAY,EAAE,CACV,sCADU,EAEV;AAAE7N,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFU,CAjCR;AAqCNyC,IAAAA,GAAG,EAAE,CACD,4BADC,EAED;AAAE1C,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFC,CArCC;AAyCN6N,IAAAA,OAAO,EAAE,CACL,uCADK,EAEL;AAAE9N,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFK,CAzCH;AA6CN8N,IAAAA,SAAS,EAAE,CACP,mCADO,EAEP;AAAE/N,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFO,CA7CL;AAiDN+N,IAAAA,oBAAoB,EAAE,CAClB,gEADkB,EAElB;AAAEhO,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFkB,CAjDhB;AAqDNgO,IAAAA,SAAS,EAAE,CACP,yCADO,EAEP;AAAEjO,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFO,CArDL;AAyDNiO,IAAAA,iBAAiB,EAAE,CACf,0CADe,EAEf;AAAElO,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFe,CAzDb;AA6DNkO,IAAAA,WAAW,EAAE,CACT,oCADS,EAET;AAAEnO,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFS,CA7DP;AAiENsI,IAAAA,UAAU,EAAE,CACR,0BADQ,EAER;AAAEvI,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFQ,CAjEN;AAqENuI,IAAAA,WAAW,EAAE,CACT,oCADS,EAET;AAAExI,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFS,CArEP;AAyENmF,IAAAA,WAAW,EAAE,CACT,gCADS,EAET;AAAEpF,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFS,CAzEP;AA6ENmO,IAAAA,QAAQ,EAAE,CACN,8CADM,EAEN;AAAEpO,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFM,CA7EJ;AAiFNoO,IAAAA,UAAU,EAAE,CACR,0CADQ,EAER;AAAErO,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFQ,CAjFN;AAqFNqO,IAAAA,kBAAkB,EAAE,CAChB,wDADgB,EAEhB;AAAEtO,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFgB,CArFd;AAyFNiD,IAAAA,MAAM,EAAE,CACJ,8BADI,EAEJ;AAAElD,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFI,CAzFF;AA6FNsO,IAAAA,UAAU,EAAE,CACR,yCADQ,EAER;AAAEvO,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFQ,CA7FN;AAiGNuO,IAAAA,YAAY,EAAE,CACV,qCADU,EAEV;AAAExO,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFU;AAjGR,GAxkBI;AA8qBdwO,EAAAA,KAAK,EAAE;AACHC,IAAAA,aAAa,EAAE,CAAC,qDAAD,CADZ;AAEHlM,IAAAA,MAAM,EAAE,CAAC,kCAAD,CAFL;AAGHmM,IAAAA,2BAA2B,EAAE,CACzB,8EADyB,CAH1B;AAMHC,IAAAA,YAAY,EAAE,CAAC,wDAAD,CANX;AAOHC,IAAAA,mBAAmB,EAAE,CACjB,yDADiB,CAPlB;AAUHC,IAAAA,mBAAmB,EAAE,CACjB,sEADiB,CAVlB;AAaHC,IAAAA,mBAAmB,EAAE,CACjB,0DADiB,CAblB;AAgBHC,IAAAA,aAAa,EAAE,CACX,8EADW,CAhBZ;AAmBHtM,IAAAA,GAAG,EAAE,CAAC,+CAAD,CAnBF;AAoBHuM,IAAAA,SAAS,EAAE,CACP,mEADO,CApBR;AAuBHC,IAAAA,gBAAgB,EAAE,CAAC,uDAAD,CAvBf;AAwBHjK,IAAAA,IAAI,EAAE,CAAC,iCAAD,CAxBH;AAyBHkK,IAAAA,qBAAqB,EAAE,CACnB,4EADmB,CAzBpB;AA4BHhK,IAAAA,WAAW,EAAE,CAAC,uDAAD,CA5BV;AA6BHiK,IAAAA,SAAS,EAAE,CAAC,qDAAD,CA7BR;AA8BHC,IAAAA,sBAAsB,EAAE,CACpB,mEADoB,CA9BrB;AAiCHC,IAAAA,kBAAkB,EAAE,CAChB,wDADgB,CAjCjB;AAoCHC,IAAAA,yBAAyB,EAAE,CAAC,0CAAD,CApCxB;AAqCHC,IAAAA,WAAW,EAAE,CAAC,uDAAD,CArCV;AAsCHC,IAAAA,KAAK,EAAE,CAAC,qDAAD,CAtCJ;AAuCHC,IAAAA,wBAAwB,EAAE,CACtB,sEADsB,CAvCvB;AA0CHC,IAAAA,gBAAgB,EAAE,CACd,oEADc,CA1Cf;AA6CHC,IAAAA,YAAY,EAAE,CACV,2EADU,CA7CX;AAgDH1M,IAAAA,MAAM,EAAE,CAAC,iDAAD,CAhDL;AAiDH2M,IAAAA,YAAY,EAAE,CACV,6DADU,EAEV;AAAE7P,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,QAAD;AAAZ;AAAb,KAFU,CAjDX;AAqDH6P,IAAAA,YAAY,EAAE,CACV,mEADU,CArDX;AAwDHC,IAAAA,mBAAmB,EAAE,CACjB,yDADiB;AAxDlB,GA9qBO;AA0uBdC,EAAAA,SAAS,EAAE;AAAEtN,IAAAA,GAAG,EAAE,CAAC,iBAAD;AAAP,GA1uBG;AA2uBduN,EAAAA,SAAS,EAAE;AACPC,IAAAA,sBAAsB,EAAE,CACpB,4DADoB,EAEpB;AAAElQ,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFoB,CADjB;AAKPkQ,IAAAA,cAAc,EAAE,CACZ,4DADY,EAEZ;AAAEnQ,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFY,CALT;AASPmQ,IAAAA,qBAAqB,EAAE,CACnB,mEADmB,EAEnB;AAAEpQ,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFmB,CAThB;AAaPoQ,IAAAA,iCAAiC,EAAE,CAC/B,kEAD+B,EAE/B;AAAErQ,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAF+B,CAb5B;AAiBPqQ,IAAAA,mCAAmC,EAAE,CACjC,wGADiC,EAEjC;AAAEtQ,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFiC,CAjB9B;AAqBPsQ,IAAAA,4BAA4B,EAAE,CAC1B,8EAD0B,EAE1B;AAAEvQ,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAF0B,CArBvB;AAyBPuQ,IAAAA,sBAAsB,EAAE,CACpB,4EADoB,EAEpB;AAAExQ,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFoB,CAzBjB;AA6BPwQ,IAAAA,cAAc,EAAE,CACZ,4EADY,EAEZ;AAAEzQ,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFY,CA7BT;AAiCPyQ,IAAAA,qBAAqB,EAAE,CACnB,mFADmB,EAEnB;AAAE1Q,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFmB,CAjChB;AAqCP0Q,IAAAA,2BAA2B,EAAE,CACzB,kFADyB,EAEzB;AAAE3Q,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFyB,CArCtB;AAyCP2Q,IAAAA,uBAAuB,EAAE,CACrB,8FADqB,EAErB;AAAE5Q,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFqB,CAzClB;AA6CP4Q,IAAAA,8BAA8B,EAAE,CAC5B,wHAD4B,EAE5B;AAAE7Q,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAF4B,CA7CzB;AAiDP6Q,IAAAA,YAAY,EAAE,CACV,iCADU,EAEV;AAAE9Q,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFU,EAGV;AACI8Q,MAAAA,UAAU,EAAE;AADhB,KAHU,CAjDP;AAwDPC,IAAAA,oBAAoB,EAAE,CAClB,2DADkB,EAElB;AAAEhR,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFkB,CAxDf;AA4DPgR,IAAAA,YAAY,EAAE,CACV,2DADU,EAEV;AAAEjR,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFU,CA5DP;AAgEPiR,IAAAA,mBAAmB,EAAE,CACjB,kEADiB,EAEjB;AAAElR,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFiB,CAhEd;AAoEPkR,IAAAA,+BAA+B,EAAE,CAC7B,iEAD6B,EAE7B;AAAEnR,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAF6B,CApE1B;AAwEPmR,IAAAA,iCAAiC,EAAE,CAC/B,uGAD+B,EAE/B;AAAEpR,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAF+B,CAxE5B;AA4EPoR,IAAAA,0BAA0B,EAAE,CACxB,6EADwB,EAExB;AAAErR,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,eAAD;AAAZ;AAAb,KAFwB;AA5ErB,GA3uBG;AA4zBdqR,EAAAA,KAAK,EAAE;AACHC,IAAAA,gBAAgB,EAAE,CAAC,oDAAD,CADf;AAEHC,IAAAA,wBAAwB,EAAE,CACtB,2EADsB,EAEtB,EAFsB,EAGtB;AAAEC,MAAAA,SAAS,EAAE;AAAb,KAHsB,CAFvB;AAOHnE,IAAAA,eAAe,EAAE,CAAC,oDAAD,CAPd;AAQHoE,IAAAA,sBAAsB,EAAE,CACpB,yFADoB,EAEpB,EAFoB,EAGpB;AAAED,MAAAA,SAAS,EAAE;AAAb,KAHoB,CARrB;AAaHE,IAAAA,yBAAyB,EAAE,CACvB,4EADuB,EAEvB,EAFuB,EAGvB;AAAEF,MAAAA,SAAS,EAAE;AAAb,KAHuB,CAbxB;AAkBHG,IAAAA,yBAAyB,EAAE,CACvB,4EADuB,EAEvB,EAFuB,EAGvB;AAAEH,MAAAA,SAAS,EAAE;AAAb,KAHuB,CAlBxB;AAuBHI,IAAAA,iBAAiB,EAAE,CAAC,oDAAD,CAvBhB;AAwBHC,IAAAA,wBAAwB,EAAE,CACtB,gDADsB,EAEtB;AAAE9R,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,QAAD;AAAZ;AAAb,KAFsB,CAxBvB;AA4BH8R,IAAAA,cAAc,EAAE,CAAC,mDAAD,CA5Bb;AA6BHC,IAAAA,mBAAmB,EAAE,CACjB,0DADiB,CA7BlB;AAgCHC,IAAAA,+BAA+B,EAAE,CAC7B,6EAD6B,EAE7B;AAAEjS,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,OAAD;AAAZ;AAAb,KAF6B,CAhC9B;AAoCHiS,IAAAA,kBAAkB,EAAE,CAAC,2CAAD,CApCjB;AAqCHC,IAAAA,eAAe,EAAE,CAAC,iCAAD,CArCd;AAsCHC,IAAAA,gBAAgB,EAAE,CAAC,wCAAD,CAtCf;AAuCHC,IAAAA,sBAAsB,EAAE,CACpB,iEADoB,CAvCrB;AA0CHC,IAAAA,mBAAmB,EAAE,CAAC,uCAAD,CA1ClB;AA2CH7E,IAAAA,0BAA0B,EAAE,CAAC,kBAAD,CA3CzB;AA4CH8E,IAAAA,UAAU,EAAE,CAAC,kCAAD,CA5CT;AA6CHC,IAAAA,WAAW,EAAE,CAAC,wBAAD,CA7CV;AA8CHC,IAAAA,0BAA0B,EAAE,CAAC,2CAAD,CA9CzB;AA+CHC,IAAAA,eAAe,EAAE,CACb,kCADa,EAEb;AAAE1S,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,YAAD;AAAZ;AAAb,KAFa,CA/Cd;AAmDH0S,IAAAA,aAAa,EAAE,CAAC,qCAAD,CAnDZ;AAoDHC,IAAAA,mBAAmB,EAAE,CACjB,uDADiB,EAEjB;AAAE5S,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,UAAD;AAAZ;AAAb,KAFiB,CApDlB;AAwDH0L,IAAAA,aAAa,EAAE,CAAC,kCAAD,CAxDZ;AAyDHkH,IAAAA,iBAAiB,EAAE,CAAC,qDAAD,CAzDhB;AA0DHjO,IAAAA,MAAM,EAAE,CAAC,8BAAD,CA1DL;AA2DHkO,IAAAA,wBAAwB,EAAE,CACtB,wEADsB,CA3DvB;AA8DHC,IAAAA,2BAA2B,EAAE,CACzB,0EADyB,CA9D1B;AAiEHC,IAAAA,sBAAsB,EAAE,CACpB,2DADoB,CAjErB;AAoEHC,IAAAA,mBAAmB,EAAE,CAAC,oDAAD,CApElB;AAqEHC,IAAAA,+BAA+B,EAAE,CAC7B,+EAD6B,EAE7B;AAAElT,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,OAAD;AAAZ;AAAb,KAF6B,CArE9B;AAyEHkT,IAAAA,eAAe,EAAE,CAAC,4CAAD,CAzEd;AA0EHC,IAAAA,gBAAgB,EAAE,CACd,0DADc,CA1Ef;AA6EHC,IAAAA,UAAU,EAAE,CAAC,8CAAD,CA7ET;AA8EHC,IAAAA,gBAAgB,EAAE,CACd,0DADc,CA9Ef;AAiFHC,IAAAA,eAAe,EAAE,CACb,oCADa,EAEb;AAAEvT,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,YAAD;AAAZ;AAAb,KAFa,CAjFd;AAqFHuT,IAAAA,iCAAiC,EAAE,CAC/B,yFAD+B,CArFhC;AAwFHC,IAAAA,aAAa,EAAE,CAAC,oDAAD,CAxFZ;AAyFHC,IAAAA,kBAAkB,EAAE,CAChB,yDADgB,CAzFjB;AA4FH9H,IAAAA,aAAa,EAAE,CAAC,8CAAD,CA5FZ;AA6FH+H,IAAAA,6BAA6B,EAAE,CAC3B,uDAD2B,EAE3B;AAAE3T,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,QAAD;AAAZ;AAAb,KAF2B,CA7F5B;AAiGH2T,IAAAA,0BAA0B,EAAE,CACxB,mDADwB,EAExB;AAAE5T,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,QAAD;AAAZ;AAAb,KAFwB,CAjGzB;AAqGH4T,IAAAA,eAAe,EAAE,CACb,yCADa,EAEb,EAFa,EAGb;AAAEhY,MAAAA,OAAO,EAAE,CAAC,OAAD,EAAU,wBAAV;AAAX,KAHa,CArGd;AA0GHiY,IAAAA,sBAAsB,EAAE,CAAC,yCAAD,CA1GrB;AA2GHC,IAAAA,sBAAsB,EAAE,CAAC,yCAAD,CA3GrB;AA4GHC,IAAAA,4BAA4B,EAAE,CAC1B,oDAD0B,EAE1B;AAAEhU,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,QAAD;AAAZ;AAAb,KAF0B,CA5G3B;AAgHHgU,IAAAA,yBAAyB,EAAE,CACvB,gDADuB,EAEvB;AAAEjU,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,QAAD;AAAZ;AAAb,KAFuB,CAhHxB;AAoHHyC,IAAAA,GAAG,EAAE,CAAC,2BAAD,CApHF;AAqHHwR,IAAAA,qBAAqB,EAAE,CACnB,qEADmB,CArHpB;AAwHHC,IAAAA,wBAAwB,EAAE,CACtB,uEADsB,CAxHvB;AA2HHC,IAAAA,yBAAyB,EAAE,CACvB,wFADuB,CA3HxB;AA8HHC,IAAAA,YAAY,EAAE,CACV,kCADU,EAEV;AAAErU,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,OAAD;AAAZ;AAAb,KAFU,CA9HX;AAkIHqU,IAAAA,kCAAkC,EAAE,CAChC,0EADgC,CAlIjC;AAqIHC,IAAAA,SAAS,EAAE,CAAC,6CAAD,CArIR;AAsIHC,IAAAA,mBAAmB,EAAE,CACjB,wDADiB,CAtIlB;AAyIHC,IAAAA,SAAS,EAAE,CAAC,0CAAD,CAzIR;AA0IHC,IAAAA,qBAAqB,EAAE,CAAC,gDAAD,CA1IpB;AA2IHC,IAAAA,8BAA8B,EAAE,CAC5B,+DAD4B,CA3I7B;AA8IHC,IAAAA,uBAAuB,EAAE,CAAC,gDAAD,CA9ItB;AA+IHzO,IAAAA,SAAS,EAAE,CAAC,yCAAD,CA/IR;AAgJH0O,IAAAA,sBAAsB,EAAE,CAAC,iDAAD,CAhJrB;AAiJHC,IAAAA,gBAAgB,EAAE,CAAC,iDAAD,CAjJf;AAkJHC,IAAAA,4BAA4B,EAAE,CAC1B,4EAD0B,EAE1B;AAAE/U,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,OAAD;AAAZ;AAAb,KAF0B,CAlJ3B;AAsJH+U,IAAAA,0BAA0B,EAAE,CAAC,6CAAD,CAtJzB;AAuJHC,IAAAA,UAAU,EAAE,CAAC,2CAAD,CAvJT;AAwJHC,IAAAA,oBAAoB,EAAE,CAAC,8CAAD,CAxJnB;AAyJHC,IAAAA,YAAY,EAAE,CAAC,yCAAD,CAzJX;AA0JHC,IAAAA,aAAa,EAAE,CAAC,uDAAD,CA1JZ;AA2JHC,IAAAA,mBAAmB,EAAE,CACjB,4EADiB,CA3JlB;AA8JHC,IAAAA,mBAAmB,EAAE,CAAC,+CAAD,CA9JlB;AA+JHC,IAAAA,gBAAgB,EAAE,CAAC,2CAAD,CA/Jf;AAgKHC,IAAAA,QAAQ,EAAE,CAAC,iCAAD,CAhKP;AAiKHC,IAAAA,aAAa,EAAE,CAAC,mDAAD,CAjKZ;AAkKHC,IAAAA,qBAAqB,EAAE,CAAC,+CAAD,CAlKpB;AAmKHC,IAAAA,8BAA8B,EAAE,CAC5B,sFAD4B,CAnK7B;AAsKHC,IAAAA,iBAAiB,EAAE,CAAC,4CAAD,CAtKhB;AAuKHC,IAAAA,SAAS,EAAE,CAAC,kCAAD,CAvKR;AAwKHC,IAAAA,UAAU,EAAE,CAAC,iDAAD,CAxKT;AAyKHC,IAAAA,eAAe,EAAE,CAAC,sDAAD,CAzKd;AA0KHC,IAAAA,eAAe,EAAE,CAAC,+CAAD,CA1Kd;AA2KHC,IAAAA,yBAAyB,EAAE,CACvB,+EADuB,CA3KxB;AA8KHC,IAAAA,mCAAmC,EAAE,CACjC,2EADiC,CA9KlC;AAiLHC,IAAAA,WAAW,EAAE,CAAC,iDAAD,CAjLV;AAkLHC,IAAAA,eAAe,EAAE,CAAC,qDAAD,CAlLd;AAmLHC,IAAAA,mCAAmC,EAAE,CACjC,2EADiC,CAnLlC;AAsLHC,IAAAA,QAAQ,EAAE,CAAC,yCAAD,CAtLP;AAuLHvK,IAAAA,UAAU,EAAE,CAAC,2CAAD,CAvLT;AAwLHwK,IAAAA,uBAAuB,EAAE,CACrB,kDADqB,CAxLtB;AA2LHC,IAAAA,YAAY,EAAE,CAAC,oCAAD,CA3LX;AA4LHC,IAAAA,yBAAyB,EAAE,CACvB,oEADuB,EAEvB;AAAEzW,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,OAAD;AAAZ;AAAb,KAFuB,CA5LxB;AAgMHiO,IAAAA,iBAAiB,EAAE,CAAC,yCAAD,CAhMhB;AAiMHwI,IAAAA,qBAAqB,EAAE,CACnB,yDADmB,CAjMpB;AAoMHC,IAAAA,yBAAyB,EAAE,CAAC,oCAAD,CApMxB;AAqMHC,IAAAA,wBAAwB,EAAE,CACtB,kDADsB,CArMvB;AAwMHzR,IAAAA,WAAW,EAAE,CAAC,mCAAD,CAxMV;AAyMH0R,IAAAA,gBAAgB,EAAE,CAAC,wCAAD,CAzMf;AA0MHC,IAAAA,cAAc,EAAE,CAAC,gCAAD,CA1Mb;AA2MHC,IAAAA,sBAAsB,EAAE,CACpB,gEADoB,CA3MrB;AA8MHC,IAAAA,eAAe,EAAE,CAAC,uCAAD,CA9Md;AA+MH1O,IAAAA,wBAAwB,EAAE,CAAC,iBAAD,CA/MvB;AAgNHC,IAAAA,UAAU,EAAE,CAAC,uBAAD,CAhNT;AAiNHnD,IAAAA,WAAW,EAAE,CAAC,6BAAD,CAjNV;AAkNHC,IAAAA,SAAS,EAAE,CAAC,iCAAD,CAlNR;AAmNH4R,IAAAA,eAAe,EAAE,CAAC,uCAAD,CAnNd;AAoNHC,IAAAA,mCAAmC,EAAE,CAAC,kCAAD,CApNlC;AAqNHC,IAAAA,aAAa,EAAE,CAAC,qCAAD,CArNZ;AAsNHC,IAAAA,eAAe,EAAE,CAAC,wCAAD,CAtNd;AAuNH9R,IAAAA,UAAU,EAAE,CAAC,mBAAD,CAvNT;AAwNH+R,IAAAA,oCAAoC,EAAE,CAClC,sDADkC,EAElC;AAAErX,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,OAAD;AAAZ;AAAb,KAFkC,CAxNnC;AA4NHqX,IAAAA,iBAAiB,EAAE,CACf,wDADe,CA5NhB;AA+NHC,IAAAA,YAAY,EAAE,CAAC,oCAAD,CA/NX;AAgOHC,IAAAA,QAAQ,EAAE,CAAC,gCAAD,CAhOP;AAiOHC,IAAAA,SAAS,EAAE,CAAC,iCAAD,CAjOR;AAkOHhL,IAAAA,YAAY,EAAE,CAAC,iCAAD,CAlOX;AAmOHgD,IAAAA,KAAK,EAAE,CAAC,mCAAD,CAnOJ;AAoOH/C,IAAAA,WAAW,EAAE,CAAC,kDAAD,CApOV;AAqOHgL,IAAAA,2BAA2B,EAAE,CACzB,6EADyB,EAEzB,EAFyB,EAGzB;AAAEjG,MAAAA,SAAS,EAAE;AAAb,KAHyB,CArO1B;AA0OHnD,IAAAA,kBAAkB,EAAE,CAChB,uDADgB,CA1OjB;AA6OHqJ,IAAAA,yBAAyB,EAAE,CACvB,2FADuB,EAEvB,EAFuB,EAGvB;AAAElG,MAAAA,SAAS,EAAE;AAAb,KAHuB,CA7OxB;AAkPHmG,IAAAA,2BAA2B,EAAE,CACzB,kFADyB,CAlP1B;AAqPHC,IAAAA,4BAA4B,EAAE,CAC1B,8EAD0B,EAE1B,EAF0B,EAG1B;AAAEpG,MAAAA,SAAS,EAAE;AAAb,KAH0B,CArP3B;AA0PHqG,IAAAA,4BAA4B,EAAE,CAC1B,8EAD0B,EAE1B,EAF0B,EAG1B;AAAErG,MAAAA,SAAS,EAAE;AAAb,KAH0B,CA1P3B;AA+PHsG,IAAAA,gBAAgB,EAAE,CACd,kCADc,EAEd;AAAE/X,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,OAAD;AAAZ;AAAb,KAFc,CA/Pf;AAmQH+X,IAAAA,iBAAiB,EAAE,CAAC,yCAAD,CAnQhB;AAoQHC,IAAAA,wBAAwB,EAAE,CACtB,wEADsB,CApQvB;AAuQHC,IAAAA,wBAAwB,EAAE,CACtB,0EADsB,EAEtB,EAFsB,EAGtB;AAAEzG,MAAAA,SAAS,EAAE;AAAb,KAHsB,CAvQvB;AA4QH0G,IAAAA,sBAAsB,EAAE,CACpB,wFADoB,EAEpB,EAFoB,EAGpB;AAAE1G,MAAAA,SAAS,EAAE;AAAb,KAHoB,CA5QrB;AAiRH2G,IAAAA,yBAAyB,EAAE,CACvB,2EADuB,EAEvB,EAFuB,EAGvB;AAAE3G,MAAAA,SAAS,EAAE;AAAb,KAHuB,CAjRxB;AAsRH4G,IAAAA,yBAAyB,EAAE,CACvB,2EADuB,EAEvB,EAFuB,EAGvB;AAAE5G,MAAAA,SAAS,EAAE;AAAb,KAHuB,CAtRxB;AA2RH6G,IAAAA,eAAe,EAAE,CAAC,kDAAD,CA3Rd;AA4RHC,IAAAA,QAAQ,EAAE,CAAC,qCAAD,CA5RP;AA6RHrV,IAAAA,MAAM,EAAE,CAAC,6BAAD,CA7RL;AA8RHsV,IAAAA,sBAAsB,EAAE,CACpB,wDADoB,CA9RrB;AAiSHC,IAAAA,mBAAmB,EAAE,CAAC,mDAAD,CAjSlB;AAkSHC,IAAAA,+BAA+B,EAAE,CAAC,iCAAD,CAlS9B;AAmSHC,IAAAA,gBAAgB,EAAE,CACd,yDADc,CAnSf;AAsSHC,IAAAA,iCAAiC,EAAE,CAC/B,wFAD+B,CAtShC;AAySHC,IAAAA,aAAa,EAAE,CAAC,mDAAD,CAzSZ;AA0SHC,IAAAA,kBAAkB,EAAE,CAChB,wDADgB,CA1SjB;AA6SHC,IAAAA,0BAA0B,EAAE,CACxB,iFADwB,EAExB,EAFwB,EAGxB;AAAEld,MAAAA,OAAO,EAAE,CAAC,OAAD,EAAU,6BAAV;AAAX,KAHwB,CA7SzB;AAkTHmd,IAAAA,2BAA2B,EAAE,CACzB,iFADyB,CAlT1B;AAqTH7L,IAAAA,aAAa,EAAE,CAAC,6CAAD,CArTZ;AAsTH8L,IAAAA,0BAA0B,EAAE,CACxB,oDADwB,CAtTzB;AAyTHC,IAAAA,kBAAkB,EAAE,CAChB,sEADgB,EAEhB;AAAEC,MAAAA,OAAO,EAAE;AAAX,KAFgB;AAzTjB,GA5zBO;AA0nCdC,EAAAA,MAAM,EAAE;AACJC,IAAAA,IAAI,EAAE,CAAC,kBAAD,CADF;AAEJC,IAAAA,OAAO,EAAE,CAAC,qBAAD,EAAwB;AAAEtZ,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,OAAD;AAAZ;AAAb,KAAxB,CAFL;AAGJsZ,IAAAA,qBAAqB,EAAE,CAAC,oBAAD,CAHnB;AAIJC,IAAAA,MAAM,EAAE,CAAC,oBAAD,CAJJ;AAKJlI,IAAAA,KAAK,EAAE,CAAC,0BAAD,CALH;AAMJmI,IAAAA,MAAM,EAAE,CAAC,oBAAD,EAAuB;AAAEzZ,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,OAAD;AAAZ;AAAb,KAAvB,CANJ;AAOJyZ,IAAAA,KAAK,EAAE,CAAC,mBAAD;AAPH,GA1nCM;AAmoCdC,EAAAA,KAAK,EAAE;AACHC,IAAAA,iCAAiC,EAAE,CAC/B,0DAD+B,CADhC;AAIHC,IAAAA,kCAAkC,EAAE,CAChC,yDADgC,EAEhC;AAAE7Z,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFgC,CAJjC;AAQH6Z,IAAAA,+BAA+B,EAAE,CAC7B,wDAD6B,CAR9B;AAWHC,IAAAA,+BAA+B,EAAE,CAC7B,yDAD6B,EAE7B;AAAE/Z,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAF6B,CAX9B;AAeH+Z,IAAAA,4BAA4B,EAAE,CAC1B,wDAD0B,CAf3B;AAkBHxX,IAAAA,MAAM,EAAE,CAAC,wBAAD,CAlBL;AAmBHyX,IAAAA,4BAA4B,EAAE,CAC1B,6EAD0B,CAnB3B;AAsBHC,IAAAA,qBAAqB,EAAE,CAAC,gDAAD,CAtBpB;AAuBHC,IAAAA,4BAA4B,EAAE,CAC1B,gGAD0B,CAvB3B;AA0BHC,IAAAA,qBAAqB,EAAE,CACnB,sEADmB,CA1BpB;AA6BHC,IAAAA,WAAW,EAAE,CAAC,sCAAD,CA7BV;AA8BHC,IAAAA,SAAS,EAAE,CAAC,mCAAD,CA9BR;AA+BHC,IAAAA,yBAAyB,EAAE,CACvB,6FADuB,CA/BxB;AAkCHC,IAAAA,kBAAkB,EAAE,CAChB,mEADgB,CAlCjB;AAqCHC,IAAAA,yBAAyB,EAAE,CACvB,0DADuB,CArCxB;AAwCHxV,IAAAA,IAAI,EAAE,CAAC,uBAAD,CAxCH;AAyCHyV,IAAAA,cAAc,EAAE,CAAC,yCAAD,CAzCb;AA0CHC,IAAAA,2BAA2B,EAAE,CACzB,4EADyB,CA1C1B;AA6CHC,IAAAA,oBAAoB,EAAE,CAAC,+CAAD,CA7CnB;AA8CHtS,IAAAA,wBAAwB,EAAE,CAAC,iBAAD,CA9CvB;AA+CHuS,IAAAA,gBAAgB,EAAE,CAAC,2CAAD,CA/Cf;AAgDHC,IAAAA,2BAA2B,EAAE,CACzB,+CADyB,CAhD1B;AAmDHC,IAAAA,iBAAiB,EAAE,CACf,4CADe,EAEf;AAAE/a,MAAAA,SAAS,EAAE;AAAEC,QAAAA,QAAQ,EAAE,CAAC,SAAD;AAAZ;AAAb,KAFe,CAnDhB;AAuDH+a,IAAAA,cAAc,EAAE,CAAC,yCAAD,CAvDb;AAwDHC,IAAAA,4BAA4B,EAAE,CAC1B,6DAD0B,CAxD3B;AA2DHC,IAAAA,kBAAkB,EAAE,CAChB,4DADgB,CA3DjB;AA8DHC,IAAAA,eAAe,EAAE,CACb,2DADa,CA9Dd;AAiEHC,IAAAA,4BAA4B,EAAE,CAC1B,+FAD0B,CAjE3B;AAoEHC,IAAAA,qBAAqB,EAAE,CACnB,qEADmB,CApEpB;AAuEHC,IAAAA,WAAW,EAAE,CAAC,qCAAD;AAvEV,GAnoCO;AA4sCd5B,EAAAA,KAAK,EAAE;AACH6B,IAAAA,wBAAwB,EAAE,CAAC,mBAAD,CADvB;AAEHC,IAAAA,KAAK,EAAE,CAAC,6BAAD,CAFJ;AAGHC,IAAAA,YAAY,EAAE,CAAC,6BAAD,CAHX;AAIHC,IAAAA,qBAAqB,EAAE,CAAC,+CAAD,CAJpB;AAKHC,IAAAA,oCAAoC,EAAE,CAAC,gCAAD,CALnC;AAMHC,IAAAA,4BAA4B,EAAE,CAAC,qBAAD,CAN3B;AAOHC,IAAAA,kCAAkC,EAAE,CAAC,iBAAD,CAPjC;AAQHC,IAAAA,2BAA2B,EAAE,CAAC,qBAAD,CAR1B;AASHC,IAAAA,4BAA4B,EAAE,CAAC,oCAAD,CAT3B;AAUHC,IAAAA,kCAAkC,EAAE,CAAC,4BAAD,CAVjC;AAWHC,IAAAA,MAAM,EAAE,CAAC,gCAAD,CAXL;AAYH1b,IAAAA,gBAAgB,EAAE,CAAC,WAAD,CAZf;AAaH2b,IAAAA,aAAa,EAAE,CAAC,uBAAD,CAbZ;AAcHC,IAAAA,iBAAiB,EAAE,CAAC,iCAAD,CAdhB;AAeHC,IAAAA,yBAAyB,EAAE,CAAC,iCAAD,CAfxB;AAgBHC,IAAAA,+BAA+B,EAAE,CAAC,yBAAD,CAhB9B;AAiBHpX,IAAAA,IAAI,EAAE,CAAC,YAAD,CAjBH;AAkBHqX,IAAAA,0BAA0B,EAAE,CAAC,kBAAD,CAlBzB;AAmBHC,IAAAA,0BAA0B,EAAE,CAAC,kBAAD,CAnBzB;AAoBHC,IAAAA,2BAA2B,EAAE,CAAC,qBAAD,CApB1B;AAqBHC,IAAAA,iCAAiC,EAAE,CAAC,qBAAD,CArBhC;AAsBHC,IAAAA,oBAAoB,EAAE,CAAC,iCAAD,CAtBnB;AAuBHC,IAAAA,oBAAoB,EAAE,CAAC,iCAAD,CAvBnB;AAwBHC,IAAAA,2BAA2B,EAAE,CAAC,oBAAD,CAxB1B;AAyBHC,IAAAA,kBAAkB,EAAE,CAAC,gCAAD,CAzBjB;AA0BHC,IAAAA,gCAAgC,EAAE,CAAC,yBAAD,CA1B/B;AA2BHC,IAAAA,qBAAqB,EAAE,CAAC,4BAAD,CA3BpB;AA4BHC,IAAAA,iCAAiC,EAAE,CAAC,gBAAD,CA5BhC;AA6BHC,IAAAA,yCAAyC,EAAE,CAAC,8BAAD,CA7BxC;AA8BHC,IAAAA,OAAO,EAAE,CAAC,gCAAD,CA9BN;AA+BHC,IAAAA,QAAQ,EAAE,CAAC,mCAAD,CA/BP;AAgCHC,IAAAA,mBAAmB,EAAE,CAAC,aAAD;AAhClB;AA5sCO,CAAlB;;ACAO,MAAMC,OAAO,GAAG,mBAAhB;;ACAA,SAASC,kBAAT,CAA4BC,OAA5B,EAAqCC,YAArC,EAAmD;AACtD,QAAMC,UAAU,GAAG,EAAnB;;AACA,OAAK,MAAM,CAACC,KAAD,EAAQC,SAAR,CAAX,IAAiCC,MAAM,CAACC,OAAP,CAAeL,YAAf,CAAjC,EAA+D;AAC3D,SAAK,MAAM,CAACM,UAAD,EAAaC,QAAb,CAAX,IAAqCH,MAAM,CAACC,OAAP,CAAeF,SAAf,CAArC,EAAgE;AAC5D,YAAM,CAACK,KAAD,EAAQC,QAAR,EAAkBC,WAAlB,IAAiCH,QAAvC;AACA,YAAM,CAACI,MAAD,EAASC,GAAT,IAAgBJ,KAAK,CAACK,KAAN,CAAY,GAAZ,CAAtB;AACA,YAAMC,gBAAgB,GAAGV,MAAM,CAACW,MAAP,CAAc;AAAEJ,QAAAA,MAAF;AAAUC,QAAAA;AAAV,OAAd,EAA+BH,QAA/B,CAAzB;;AACA,UAAI,CAACR,UAAU,CAACC,KAAD,CAAf,EAAwB;AACpBD,QAAAA,UAAU,CAACC,KAAD,CAAV,GAAoB,EAApB;AACH;;AACD,YAAMc,YAAY,GAAGf,UAAU,CAACC,KAAD,CAA/B;;AACA,UAAIQ,WAAJ,EAAiB;AACbM,QAAAA,YAAY,CAACV,UAAD,CAAZ,GAA2BW,QAAQ,CAAClB,OAAD,EAAUG,KAAV,EAAiBI,UAAjB,EAA6BQ,gBAA7B,EAA+CJ,WAA/C,CAAnC;AACA;AACH;;AACDM,MAAAA,YAAY,CAACV,UAAD,CAAZ,GAA2BP,OAAO,CAACmB,OAAR,CAAgBT,QAAhB,CAAyBK,gBAAzB,CAA3B;AACH;AACJ;;AACD,SAAOb,UAAP;AACH;;AACD,SAASgB,QAAT,CAAkBlB,OAAlB,EAA2BG,KAA3B,EAAkCI,UAAlC,EAA8CG,QAA9C,EAAwDC,WAAxD,EAAqE;AACjE,QAAMS,mBAAmB,GAAGpB,OAAO,CAACmB,OAAR,CAAgBT,QAAhB,CAAyBA,QAAzB,CAA5B;AACA;;AACA,WAASW,eAAT,CAAyB,GAAGC,IAA5B,EAAkC;AAC9B;AACA,QAAIC,OAAO,GAAGH,mBAAmB,CAACZ,QAApB,CAA6BtO,KAA7B,CAAmC,GAAGoP,IAAtC,CAAd,CAF8B;;AAI9B,QAAIX,WAAW,CAACzM,SAAhB,EAA2B;AACvBqN,MAAAA,OAAO,GAAGlB,MAAM,CAACW,MAAP,CAAc,EAAd,EAAkBO,OAAlB,EAA2B;AACjCC,QAAAA,IAAI,EAAED,OAAO,CAACZ,WAAW,CAACzM,SAAb,CADoB;AAEjC,SAACyM,WAAW,CAACzM,SAAb,GAAyBuN;AAFQ,OAA3B,CAAV;AAIA,aAAOL,mBAAmB,CAACG,OAAD,CAA1B;AACH;;AACD,QAAIZ,WAAW,CAACriB,OAAhB,EAAyB;AACrB,YAAM,CAACojB,QAAD,EAAWC,aAAX,IAA4BhB,WAAW,CAACriB,OAA9C;AACA0hB,MAAAA,OAAO,CAAC4B,GAAR,CAAYC,IAAZ,CAAkB,WAAU1B,KAAM,IAAGI,UAAW,kCAAiCmB,QAAS,IAAGC,aAAc,IAA3G;AACH;;AACD,QAAIhB,WAAW,CAACnN,UAAhB,EAA4B;AACxBwM,MAAAA,OAAO,CAAC4B,GAAR,CAAYC,IAAZ,CAAiBlB,WAAW,CAACnN,UAA7B;AACH;;AACD,QAAImN,WAAW,CAAC7a,iBAAhB,EAAmC;AAC/B;AACA,YAAMyb,OAAO,GAAGH,mBAAmB,CAACZ,QAApB,CAA6BtO,KAA7B,CAAmC,GAAGoP,IAAtC,CAAhB;;AACA,WAAK,MAAM,CAACQ,IAAD,EAAOC,KAAP,CAAX,IAA4B1B,MAAM,CAACC,OAAP,CAAeK,WAAW,CAAC7a,iBAA3B,CAA5B,EAA2E;AACvE,YAAIgc,IAAI,IAAIP,OAAZ,EAAqB;AACjBvB,UAAAA,OAAO,CAAC4B,GAAR,CAAYC,IAAZ,CAAkB,IAAGC,IAAK,0CAAyC3B,KAAM,IAAGI,UAAW,aAAYwB,KAAM,WAAzG;;AACA,cAAI,EAAEA,KAAK,IAAIR,OAAX,CAAJ,EAAyB;AACrBA,YAAAA,OAAO,CAACQ,KAAD,CAAP,GAAiBR,OAAO,CAACO,IAAD,CAAxB;AACH;;AACD,iBAAOP,OAAO,CAACO,IAAD,CAAd;AACH;AACJ;;AACD,aAAOV,mBAAmB,CAACG,OAAD,CAA1B;AACH,KA/B6B;;;AAiC9B,WAAOH,mBAAmB,CAAC,GAAGE,IAAJ,CAA1B;AACH;;AACD,SAAOjB,MAAM,CAACW,MAAP,CAAcK,eAAd,EAA+BD,mBAA/B,CAAP;AACH;;ACxDD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,AAAO,SAASY,mBAAT,CAA6BhC,OAA7B,EAAsC;AACzC,SAAOD,kBAAkB,CAACC,OAAD,EAAUiC,SAAV,CAAzB;AACH;AACDD,mBAAmB,CAAClC,OAApB,GAA8BA,OAA9B;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js new file mode 100644 index 000000000..32c2f39a3 --- /dev/null +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js @@ -0,0 +1,60 @@ +export function endpointsToMethods(octokit, endpointsMap) { + const newMethods = {}; + for (const [scope, endpoints] of Object.entries(endpointsMap)) { + for (const [methodName, endpoint] of Object.entries(endpoints)) { + const [route, defaults, decorations] = endpoint; + const [method, url] = route.split(/ /); + const endpointDefaults = Object.assign({ method, url }, defaults); + if (!newMethods[scope]) { + newMethods[scope] = {}; + } + const scopeMethods = newMethods[scope]; + if (decorations) { + scopeMethods[methodName] = decorate(octokit, scope, methodName, endpointDefaults, decorations); + continue; + } + scopeMethods[methodName] = octokit.request.defaults(endpointDefaults); + } + } + return newMethods; +} +function decorate(octokit, scope, methodName, defaults, decorations) { + const requestWithDefaults = octokit.request.defaults(defaults); + /* istanbul ignore next */ + function withDecorations(...args) { + // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488 + let options = requestWithDefaults.endpoint.merge(...args); + // There are currently no other decorations than `.mapToData` + if (decorations.mapToData) { + options = Object.assign({}, options, { + data: options[decorations.mapToData], + [decorations.mapToData]: undefined, + }); + return requestWithDefaults(options); + } + if (decorations.renamed) { + const [newScope, newMethodName] = decorations.renamed; + octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`); + } + if (decorations.deprecated) { + octokit.log.warn(decorations.deprecated); + } + if (decorations.renamedParameters) { + // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488 + const options = requestWithDefaults.endpoint.merge(...args); + for (const [name, alias] of Object.entries(decorations.renamedParameters)) { + if (name in options) { + octokit.log.warn(`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`); + if (!(alias in options)) { + options[alias] = options[name]; + } + delete options[name]; + } + } + return requestWithDefaults(options); + } + // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488 + return requestWithDefaults(...args); + } + return Object.assign(withDecorations, requestWithDefaults); +} diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js index 90efed223..52ec14e44 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.js @@ -1,6624 +1,1264 @@ -export default { +const Endpoints = { actions: { - cancelWorkflowRun: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/cancel" - }, - createOrUpdateSecretForRepo: { - method: "PUT", - params: { - encrypted_value: { type: "string" }, - key_id: { type: "string" }, - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - createRegistrationToken: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/runners/registration-token" - }, - createRemoveToken: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/runners/remove-token" - }, - deleteArtifact: { - method: "DELETE", - params: { - artifact_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id" - }, - deleteSecretFromRepo: { - method: "DELETE", - params: { - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - downloadArtifact: { - method: "GET", - params: { - archive_format: { required: true, type: "string" }, - artifact_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format" - }, - getArtifact: { - method: "GET", - params: { - artifact_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id" - }, - getPublicKey: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/secrets/public-key" - }, - getSecret: { - method: "GET", - params: { - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - getSelfHostedRunner: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - runner_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runners/:runner_id" - }, - getWorkflow: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - workflow_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/workflows/:workflow_id" - }, - getWorkflowJob: { - method: "GET", - params: { - job_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/jobs/:job_id" - }, - getWorkflowRun: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id" - }, - listDownloadsForSelfHostedRunnerApplication: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/runners/downloads" - }, - listJobsForWorkflowRun: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/jobs" - }, - listRepoWorkflowRuns: { - method: "GET", - params: { - actor: { type: "string" }, - branch: { type: "string" }, - event: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - status: { enum: ["completed", "status", "conclusion"], type: "string" } - }, - url: "/repos/:owner/:repo/actions/runs" - }, - listRepoWorkflows: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/workflows" - }, - listSecretsForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/secrets" - }, - listSelfHostedRunnersForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/runners" - }, - listWorkflowJobLogs: { - method: "GET", - params: { - job_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/jobs/:job_id/logs" - }, - listWorkflowRunArtifacts: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts" - }, - listWorkflowRunLogs: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/logs" - }, - listWorkflowRuns: { - method: "GET", - params: { - actor: { type: "string" }, - branch: { type: "string" }, - event: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - status: { enum: ["completed", "status", "conclusion"], type: "string" }, - workflow_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs" - }, - reRunWorkflow: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/rerun" - }, - removeSelfHostedRunner: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - runner_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runners/:runner_id" - } + addSelectedRepoToOrgSecret: [ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", + ], + cancelWorkflowRun: [ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel", + ], + createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"], + createOrUpdateRepoSecret: [ + "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}", + ], + createRegistrationTokenForOrg: [ + "POST /orgs/{org}/actions/runners/registration-token", + ], + createRegistrationTokenForRepo: [ + "POST /repos/{owner}/{repo}/actions/runners/registration-token", + ], + createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"], + createRemoveTokenForRepo: [ + "POST /repos/{owner}/{repo}/actions/runners/remove-token", + ], + createWorkflowDispatch: [ + "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches", + ], + deleteArtifact: [ + "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}", + ], + deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"], + deleteRepoSecret: [ + "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}", + ], + deleteSelfHostedRunnerFromOrg: [ + "DELETE /orgs/{org}/actions/runners/{runner_id}", + ], + deleteSelfHostedRunnerFromRepo: [ + "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}", + ], + deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"], + deleteWorkflowRunLogs: [ + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs", + ], + disableSelectedRepositoryGithubActionsOrganization: [ + "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}", + ], + disableWorkflow: [ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable", + ], + downloadArtifact: [ + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}", + ], + downloadJobLogsForWorkflowRun: [ + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs", + ], + downloadWorkflowRunLogs: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs", + ], + enableSelectedRepositoryGithubActionsOrganization: [ + "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}", + ], + enableWorkflow: [ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable", + ], + getAllowedActionsOrganization: [ + "GET /orgs/{org}/actions/permissions/selected-actions", + ], + getAllowedActionsRepository: [ + "GET /repos/{owner}/{repo}/actions/permissions/selected-actions", + ], + getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"], + getGithubActionsPermissionsOrganization: [ + "GET /orgs/{org}/actions/permissions", + ], + getGithubActionsPermissionsRepository: [ + "GET /repos/{owner}/{repo}/actions/permissions", + ], + getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"], + getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"], + getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"], + getRepoPermissions: [ + "GET /repos/{owner}/{repo}/actions/permissions", + {}, + { renamed: ["actions", "getGithubActionsPermissionsRepository"] }, + ], + getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"], + getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"], + getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"], + getSelfHostedRunnerForRepo: [ + "GET /repos/{owner}/{repo}/actions/runners/{runner_id}", + ], + getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"], + getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"], + getWorkflowRunUsage: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing", + ], + getWorkflowUsage: [ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing", + ], + listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"], + listJobsForWorkflowRun: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs", + ], + listOrgSecrets: ["GET /orgs/{org}/actions/secrets"], + listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"], + listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"], + listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"], + listRunnerApplicationsForRepo: [ + "GET /repos/{owner}/{repo}/actions/runners/downloads", + ], + listSelectedReposForOrgSecret: [ + "GET /orgs/{org}/actions/secrets/{secret_name}/repositories", + ], + listSelectedRepositoriesEnabledGithubActionsOrganization: [ + "GET /orgs/{org}/actions/permissions/repositories", + ], + listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"], + listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"], + listWorkflowRunArtifacts: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", + ], + listWorkflowRuns: [ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", + ], + listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"], + reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"], + removeSelectedRepoFromOrgSecret: [ + "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", + ], + setAllowedActionsOrganization: [ + "PUT /orgs/{org}/actions/permissions/selected-actions", + ], + setAllowedActionsRepository: [ + "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions", + ], + setGithubActionsPermissionsOrganization: [ + "PUT /orgs/{org}/actions/permissions", + ], + setGithubActionsPermissionsRepository: [ + "PUT /repos/{owner}/{repo}/actions/permissions", + ], + setSelectedReposForOrgSecret: [ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories", + ], + setSelectedRepositoriesEnabledGithubActionsOrganization: [ + "PUT /orgs/{org}/actions/permissions/repositories", + ], }, activity: { - checkStarringRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/user/starred/:owner/:repo" - }, - deleteRepoSubscription: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/subscription" - }, - deleteThreadSubscription: { - method: "DELETE", - params: { thread_id: { required: true, type: "integer" } }, - url: "/notifications/threads/:thread_id/subscription" - }, - getRepoSubscription: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/subscription" - }, - getThread: { - method: "GET", - params: { thread_id: { required: true, type: "integer" } }, - url: "/notifications/threads/:thread_id" - }, - getThreadSubscription: { - method: "GET", - params: { thread_id: { required: true, type: "integer" } }, - url: "/notifications/threads/:thread_id/subscription" - }, - listEventsForOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/events/orgs/:org" - }, - listEventsForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/events" - }, - listFeeds: { method: "GET", params: {}, url: "/feeds" }, - listNotifications: { - method: "GET", - params: { - all: { type: "boolean" }, - before: { type: "string" }, - page: { type: "integer" }, - participating: { type: "boolean" }, - per_page: { type: "integer" }, - since: { type: "string" } - }, - url: "/notifications" - }, - listNotificationsForRepo: { - method: "GET", - params: { - all: { type: "boolean" }, - before: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - participating: { type: "boolean" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - since: { type: "string" } - }, - url: "/repos/:owner/:repo/notifications" - }, - listPublicEvents: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/events" - }, - listPublicEventsForOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/events" - }, - listPublicEventsForRepoNetwork: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/networks/:owner/:repo/events" - }, - listPublicEventsForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/events/public" - }, - listReceivedEventsForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/received_events" - }, - listReceivedPublicEventsForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/received_events/public" - }, - listRepoEvents: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/events" - }, - listReposStarredByAuthenticatedUser: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/user/starred" - }, - listReposStarredByUser: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - sort: { enum: ["created", "updated"], type: "string" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/starred" - }, - listReposWatchedByUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/subscriptions" - }, - listStargazersForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stargazers" - }, - listWatchedReposForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/subscriptions" - }, - listWatchersForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/subscribers" - }, - markAsRead: { - method: "PUT", - params: { last_read_at: { type: "string" } }, - url: "/notifications" - }, - markNotificationsAsReadForRepo: { - method: "PUT", - params: { - last_read_at: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/notifications" - }, - markThreadAsRead: { - method: "PATCH", - params: { thread_id: { required: true, type: "integer" } }, - url: "/notifications/threads/:thread_id" - }, - setRepoSubscription: { - method: "PUT", - params: { - ignored: { type: "boolean" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - subscribed: { type: "boolean" } - }, - url: "/repos/:owner/:repo/subscription" - }, - setThreadSubscription: { - method: "PUT", - params: { - ignored: { type: "boolean" }, - thread_id: { required: true, type: "integer" } - }, - url: "/notifications/threads/:thread_id/subscription" - }, - starRepo: { - method: "PUT", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/user/starred/:owner/:repo" - }, - unstarRepo: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/user/starred/:owner/:repo" - } + checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"], + deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"], + deleteThreadSubscription: [ + "DELETE /notifications/threads/{thread_id}/subscription", + ], + getFeeds: ["GET /feeds"], + getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"], + getThread: ["GET /notifications/threads/{thread_id}"], + getThreadSubscriptionForAuthenticatedUser: [ + "GET /notifications/threads/{thread_id}/subscription", + ], + listEventsForAuthenticatedUser: ["GET /users/{username}/events"], + listNotificationsForAuthenticatedUser: ["GET /notifications"], + listOrgEventsForAuthenticatedUser: [ + "GET /users/{username}/events/orgs/{org}", + ], + listPublicEvents: ["GET /events"], + listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"], + listPublicEventsForUser: ["GET /users/{username}/events/public"], + listPublicOrgEvents: ["GET /orgs/{org}/events"], + listReceivedEventsForUser: ["GET /users/{username}/received_events"], + listReceivedPublicEventsForUser: [ + "GET /users/{username}/received_events/public", + ], + listRepoEvents: ["GET /repos/{owner}/{repo}/events"], + listRepoNotificationsForAuthenticatedUser: [ + "GET /repos/{owner}/{repo}/notifications", + ], + listReposStarredByAuthenticatedUser: ["GET /user/starred"], + listReposStarredByUser: ["GET /users/{username}/starred"], + listReposWatchedByUser: ["GET /users/{username}/subscriptions"], + listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"], + listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"], + listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"], + markNotificationsAsRead: ["PUT /notifications"], + markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"], + markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"], + setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"], + setThreadSubscription: [ + "PUT /notifications/threads/{thread_id}/subscription", + ], + starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"], + unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"], }, apps: { - addRepoToInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "PUT", - params: { - installation_id: { required: true, type: "integer" }, - repository_id: { required: true, type: "integer" } - }, - url: "/user/installations/:installation_id/repositories/:repository_id" - }, - checkAccountIsAssociatedWithAny: { - method: "GET", - params: { account_id: { required: true, type: "integer" } }, - url: "/marketplace_listing/accounts/:account_id" - }, - checkAccountIsAssociatedWithAnyStubbed: { - method: "GET", - params: { account_id: { required: true, type: "integer" } }, - url: "/marketplace_listing/stubbed/accounts/:account_id" - }, - checkAuthorization: { - deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization", - method: "GET", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - checkToken: { - headers: { accept: "application/vnd.github.doctor-strange-preview+json" }, - method: "POST", - params: { - access_token: { type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/token" - }, - createContentAttachment: { - headers: { accept: "application/vnd.github.corsair-preview+json" }, - method: "POST", - params: { - body: { required: true, type: "string" }, - content_reference_id: { required: true, type: "integer" }, - title: { required: true, type: "string" } - }, - url: "/content_references/:content_reference_id/attachments" - }, - createFromManifest: { - headers: { accept: "application/vnd.github.fury-preview+json" }, - method: "POST", - params: { code: { required: true, type: "string" } }, - url: "/app-manifests/:code/conversions" - }, - createInstallationToken: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "POST", - params: { - installation_id: { required: true, type: "integer" }, - permissions: { type: "object" }, - repository_ids: { type: "integer[]" } - }, - url: "/app/installations/:installation_id/access_tokens" - }, - deleteAuthorization: { - headers: { accept: "application/vnd.github.doctor-strange-preview+json" }, - method: "DELETE", - params: { - access_token: { type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/grant" - }, - deleteInstallation: { - headers: { - accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json" - }, - method: "DELETE", - params: { installation_id: { required: true, type: "integer" } }, - url: "/app/installations/:installation_id" - }, - deleteToken: { - headers: { accept: "application/vnd.github.doctor-strange-preview+json" }, - method: "DELETE", - params: { - access_token: { type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/token" - }, - findOrgInstallation: { - deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)", - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org/installation" - }, - findRepoInstallation: { - deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)", - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/installation" - }, - findUserInstallation: { - deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)", - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { username: { required: true, type: "string" } }, - url: "/users/:username/installation" - }, - getAuthenticated: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: {}, - url: "/app" - }, - getBySlug: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { app_slug: { required: true, type: "string" } }, - url: "/apps/:app_slug" - }, - getInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { installation_id: { required: true, type: "integer" } }, - url: "/app/installations/:installation_id" - }, - getOrgInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org/installation" - }, - getRepoInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/installation" - }, - getUserInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { username: { required: true, type: "string" } }, - url: "/users/:username/installation" - }, - listAccountsUserOrOrgOnPlan: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - plan_id: { required: true, type: "integer" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/marketplace_listing/plans/:plan_id/accounts" - }, - listAccountsUserOrOrgOnPlanStubbed: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - plan_id: { required: true, type: "integer" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/marketplace_listing/stubbed/plans/:plan_id/accounts" - }, - listInstallationReposForAuthenticatedUser: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { - installation_id: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/user/installations/:installation_id/repositories" - }, - listInstallations: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/app/installations" - }, - listInstallationsForAuthenticatedUser: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/installations" - }, - listMarketplacePurchasesForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/marketplace_purchases" - }, - listMarketplacePurchasesForAuthenticatedUserStubbed: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/marketplace_purchases/stubbed" - }, - listPlans: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/marketplace_listing/plans" - }, - listPlansStubbed: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/marketplace_listing/stubbed/plans" - }, - listRepos: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/installation/repositories" - }, - removeRepoFromInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "DELETE", - params: { - installation_id: { required: true, type: "integer" }, - repository_id: { required: true, type: "integer" } - }, - url: "/user/installations/:installation_id/repositories/:repository_id" - }, - resetAuthorization: { - deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization", - method: "POST", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - resetToken: { - headers: { accept: "application/vnd.github.doctor-strange-preview+json" }, - method: "PATCH", - params: { - access_token: { type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/token" - }, - revokeAuthorizationForApplication: { - deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application", - method: "DELETE", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeGrantForApplication: { - deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application", - method: "DELETE", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/grants/:access_token" - }, - revokeInstallationToken: { - headers: { accept: "application/vnd.github.gambit-preview+json" }, - method: "DELETE", - params: {}, - url: "/installation/token" - } + addRepoToInstallation: [ + "PUT /user/installations/{installation_id}/repositories/{repository_id}", + ], + checkToken: ["POST /applications/{client_id}/token"], + createContentAttachment: [ + "POST /content_references/{content_reference_id}/attachments", + { mediaType: { previews: ["corsair"] } }, + ], + createFromManifest: ["POST /app-manifests/{code}/conversions"], + createInstallationAccessToken: [ + "POST /app/installations/{installation_id}/access_tokens", + ], + deleteAuthorization: ["DELETE /applications/{client_id}/grant"], + deleteInstallation: ["DELETE /app/installations/{installation_id}"], + deleteToken: ["DELETE /applications/{client_id}/token"], + getAuthenticated: ["GET /app"], + getBySlug: ["GET /apps/{app_slug}"], + getInstallation: ["GET /app/installations/{installation_id}"], + getOrgInstallation: ["GET /orgs/{org}/installation"], + getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"], + getSubscriptionPlanForAccount: [ + "GET /marketplace_listing/accounts/{account_id}", + ], + getSubscriptionPlanForAccountStubbed: [ + "GET /marketplace_listing/stubbed/accounts/{account_id}", + ], + getUserInstallation: ["GET /users/{username}/installation"], + getWebhookConfigForApp: ["GET /app/hook/config"], + listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"], + listAccountsForPlanStubbed: [ + "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts", + ], + listInstallationReposForAuthenticatedUser: [ + "GET /user/installations/{installation_id}/repositories", + ], + listInstallations: ["GET /app/installations"], + listInstallationsForAuthenticatedUser: ["GET /user/installations"], + listPlans: ["GET /marketplace_listing/plans"], + listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"], + listReposAccessibleToInstallation: ["GET /installation/repositories"], + listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"], + listSubscriptionsForAuthenticatedUserStubbed: [ + "GET /user/marketplace_purchases/stubbed", + ], + removeRepoFromInstallation: [ + "DELETE /user/installations/{installation_id}/repositories/{repository_id}", + ], + resetToken: ["PATCH /applications/{client_id}/token"], + revokeInstallationAccessToken: ["DELETE /installation/token"], + suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"], + unsuspendInstallation: [ + "DELETE /app/installations/{installation_id}/suspended", + ], + updateWebhookConfigForApp: ["PATCH /app/hook/config"], + }, + billing: { + getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"], + getGithubActionsBillingUser: [ + "GET /users/{username}/settings/billing/actions", + ], + getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"], + getGithubPackagesBillingUser: [ + "GET /users/{username}/settings/billing/packages", + ], + getSharedStorageBillingOrg: [ + "GET /orgs/{org}/settings/billing/shared-storage", + ], + getSharedStorageBillingUser: [ + "GET /users/{username}/settings/billing/shared-storage", + ], }, checks: { - create: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "POST", - params: { - actions: { type: "object[]" }, - "actions[].description": { required: true, type: "string" }, - "actions[].identifier": { required: true, type: "string" }, - "actions[].label": { required: true, type: "string" }, - completed_at: { type: "string" }, - conclusion: { - enum: [ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required" - ], - type: "string" - }, - details_url: { type: "string" }, - external_id: { type: "string" }, - head_sha: { required: true, type: "string" }, - name: { required: true, type: "string" }, - output: { type: "object" }, - "output.annotations": { type: "object[]" }, - "output.annotations[].annotation_level": { - enum: ["notice", "warning", "failure"], - required: true, - type: "string" - }, - "output.annotations[].end_column": { type: "integer" }, - "output.annotations[].end_line": { required: true, type: "integer" }, - "output.annotations[].message": { required: true, type: "string" }, - "output.annotations[].path": { required: true, type: "string" }, - "output.annotations[].raw_details": { type: "string" }, - "output.annotations[].start_column": { type: "integer" }, - "output.annotations[].start_line": { required: true, type: "integer" }, - "output.annotations[].title": { type: "string" }, - "output.images": { type: "object[]" }, - "output.images[].alt": { required: true, type: "string" }, - "output.images[].caption": { type: "string" }, - "output.images[].image_url": { required: true, type: "string" }, - "output.summary": { required: true, type: "string" }, - "output.text": { type: "string" }, - "output.title": { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - started_at: { type: "string" }, - status: { enum: ["queued", "in_progress", "completed"], type: "string" } - }, - url: "/repos/:owner/:repo/check-runs" - }, - createSuite: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "POST", - params: { - head_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-suites" - }, - get: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - check_run_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id" - }, - getSuite: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - check_suite_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id" - }, - listAnnotations: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - check_run_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations" - }, - listForRef: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - check_name: { type: "string" }, - filter: { enum: ["latest", "all"], type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - status: { enum: ["queued", "in_progress", "completed"], type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref/check-runs" - }, - listForSuite: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - check_name: { type: "string" }, - check_suite_id: { required: true, type: "integer" }, - filter: { enum: ["latest", "all"], type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - status: { enum: ["queued", "in_progress", "completed"], type: "string" } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs" - }, - listSuitesForRef: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - app_id: { type: "integer" }, - check_name: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref/check-suites" - }, - rerequestSuite: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "POST", - params: { - check_suite_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest" - }, - setSuitesPreferences: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "PATCH", - params: { - auto_trigger_checks: { type: "object[]" }, - "auto_trigger_checks[].app_id": { required: true, type: "integer" }, - "auto_trigger_checks[].setting": { required: true, type: "boolean" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-suites/preferences" - }, - update: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "PATCH", - params: { - actions: { type: "object[]" }, - "actions[].description": { required: true, type: "string" }, - "actions[].identifier": { required: true, type: "string" }, - "actions[].label": { required: true, type: "string" }, - check_run_id: { required: true, type: "integer" }, - completed_at: { type: "string" }, - conclusion: { - enum: [ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required" - ], - type: "string" - }, - details_url: { type: "string" }, - external_id: { type: "string" }, - name: { type: "string" }, - output: { type: "object" }, - "output.annotations": { type: "object[]" }, - "output.annotations[].annotation_level": { - enum: ["notice", "warning", "failure"], - required: true, - type: "string" - }, - "output.annotations[].end_column": { type: "integer" }, - "output.annotations[].end_line": { required: true, type: "integer" }, - "output.annotations[].message": { required: true, type: "string" }, - "output.annotations[].path": { required: true, type: "string" }, - "output.annotations[].raw_details": { type: "string" }, - "output.annotations[].start_column": { type: "integer" }, - "output.annotations[].start_line": { required: true, type: "integer" }, - "output.annotations[].title": { type: "string" }, - "output.images": { type: "object[]" }, - "output.images[].alt": { required: true, type: "string" }, - "output.images[].caption": { type: "string" }, - "output.images[].image_url": { required: true, type: "string" }, - "output.summary": { required: true, type: "string" }, - "output.text": { type: "string" }, - "output.title": { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - started_at: { type: "string" }, - status: { enum: ["queued", "in_progress", "completed"], type: "string" } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id" - } + create: ["POST /repos/{owner}/{repo}/check-runs"], + createSuite: ["POST /repos/{owner}/{repo}/check-suites"], + get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"], + getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"], + listAnnotations: [ + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", + ], + listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"], + listForSuite: [ + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", + ], + listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"], + rerequestSuite: [ + "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest", + ], + setSuitesPreferences: [ + "PATCH /repos/{owner}/{repo}/check-suites/preferences", + ], + update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"], + }, + codeScanning: { + getAlert: [ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", + {}, + { renamedParameters: { alert_id: "alert_number" } }, + ], + listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"], + listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"], + updateAlert: [ + "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", + ], + uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"], }, codesOfConduct: { - getConductCode: { - headers: { accept: "application/vnd.github.scarlet-witch-preview+json" }, - method: "GET", - params: { key: { required: true, type: "string" } }, - url: "/codes_of_conduct/:key" - }, - getForRepo: { - headers: { accept: "application/vnd.github.scarlet-witch-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/community/code_of_conduct" - }, - listConductCodes: { - headers: { accept: "application/vnd.github.scarlet-witch-preview+json" }, - method: "GET", - params: {}, - url: "/codes_of_conduct" - } + getAllCodesOfConduct: [ + "GET /codes_of_conduct", + { mediaType: { previews: ["scarlet-witch"] } }, + ], + getConductCode: [ + "GET /codes_of_conduct/{key}", + { mediaType: { previews: ["scarlet-witch"] } }, + ], + getForRepo: [ + "GET /repos/{owner}/{repo}/community/code_of_conduct", + { mediaType: { previews: ["scarlet-witch"] } }, + ], + }, + emojis: { get: ["GET /emojis"] }, + enterpriseAdmin: { + disableSelectedOrganizationGithubActionsEnterprise: [ + "DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}", + ], + enableSelectedOrganizationGithubActionsEnterprise: [ + "PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}", + ], + getAllowedActionsEnterprise: [ + "GET /enterprises/{enterprise}/actions/permissions/selected-actions", + ], + getGithubActionsPermissionsEnterprise: [ + "GET /enterprises/{enterprise}/actions/permissions", + ], + listSelectedOrganizationsEnabledGithubActionsEnterprise: [ + "GET /enterprises/{enterprise}/actions/permissions/organizations", + ], + setAllowedActionsEnterprise: [ + "PUT /enterprises/{enterprise}/actions/permissions/selected-actions", + ], + setGithubActionsPermissionsEnterprise: [ + "PUT /enterprises/{enterprise}/actions/permissions", + ], + setSelectedOrganizationsEnabledGithubActionsEnterprise: [ + "PUT /enterprises/{enterprise}/actions/permissions/organizations", + ], }, - emojis: { get: { method: "GET", params: {}, url: "/emojis" } }, gists: { - checkIsStarred: { - method: "GET", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id/star" - }, - create: { - method: "POST", - params: { - description: { type: "string" }, - files: { required: true, type: "object" }, - "files.content": { type: "string" }, - public: { type: "boolean" } - }, - url: "/gists" - }, - createComment: { - method: "POST", - params: { - body: { required: true, type: "string" }, - gist_id: { required: true, type: "string" } - }, - url: "/gists/:gist_id/comments" - }, - delete: { - method: "DELETE", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { required: true, type: "integer" }, - gist_id: { required: true, type: "string" } - }, - url: "/gists/:gist_id/comments/:comment_id" - }, - fork: { - method: "POST", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id/forks" - }, - get: { - method: "GET", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id" - }, - getComment: { - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - gist_id: { required: true, type: "string" } - }, - url: "/gists/:gist_id/comments/:comment_id" - }, - getRevision: { - method: "GET", - params: { - gist_id: { required: true, type: "string" }, - sha: { required: true, type: "string" } - }, - url: "/gists/:gist_id/:sha" - }, - list: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" } - }, - url: "/gists" - }, - listComments: { - method: "GET", - params: { - gist_id: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/gists/:gist_id/comments" - }, - listCommits: { - method: "GET", - params: { - gist_id: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/gists/:gist_id/commits" - }, - listForks: { - method: "GET", - params: { - gist_id: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/gists/:gist_id/forks" - }, - listPublic: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" } - }, - url: "/gists/public" - }, - listPublicForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/gists" - }, - listStarred: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" } - }, - url: "/gists/starred" - }, - star: { - method: "PUT", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id/star" - }, - unstar: { - method: "DELETE", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id/star" - }, - update: { - method: "PATCH", - params: { - description: { type: "string" }, - files: { type: "object" }, - "files.content": { type: "string" }, - "files.filename": { type: "string" }, - gist_id: { required: true, type: "string" } - }, - url: "/gists/:gist_id" - }, - updateComment: { - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_id: { required: true, type: "integer" }, - gist_id: { required: true, type: "string" } - }, - url: "/gists/:gist_id/comments/:comment_id" - } + checkIsStarred: ["GET /gists/{gist_id}/star"], + create: ["POST /gists"], + createComment: ["POST /gists/{gist_id}/comments"], + delete: ["DELETE /gists/{gist_id}"], + deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"], + fork: ["POST /gists/{gist_id}/forks"], + get: ["GET /gists/{gist_id}"], + getComment: ["GET /gists/{gist_id}/comments/{comment_id}"], + getRevision: ["GET /gists/{gist_id}/{sha}"], + list: ["GET /gists"], + listComments: ["GET /gists/{gist_id}/comments"], + listCommits: ["GET /gists/{gist_id}/commits"], + listForUser: ["GET /users/{username}/gists"], + listForks: ["GET /gists/{gist_id}/forks"], + listPublic: ["GET /gists/public"], + listStarred: ["GET /gists/starred"], + star: ["PUT /gists/{gist_id}/star"], + unstar: ["DELETE /gists/{gist_id}/star"], + update: ["PATCH /gists/{gist_id}"], + updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"], }, git: { - createBlob: { - method: "POST", - params: { - content: { required: true, type: "string" }, - encoding: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/blobs" - }, - createCommit: { - method: "POST", - params: { - author: { type: "object" }, - "author.date": { type: "string" }, - "author.email": { type: "string" }, - "author.name": { type: "string" }, - committer: { type: "object" }, - "committer.date": { type: "string" }, - "committer.email": { type: "string" }, - "committer.name": { type: "string" }, - message: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - parents: { required: true, type: "string[]" }, - repo: { required: true, type: "string" }, - signature: { type: "string" }, - tree: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/commits" - }, - createRef: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/refs" - }, - createTag: { - method: "POST", - params: { - message: { required: true, type: "string" }, - object: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - tag: { required: true, type: "string" }, - tagger: { type: "object" }, - "tagger.date": { type: "string" }, - "tagger.email": { type: "string" }, - "tagger.name": { type: "string" }, - type: { - enum: ["commit", "tree", "blob"], - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/tags" - }, - createTree: { - method: "POST", - params: { - base_tree: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - tree: { required: true, type: "object[]" }, - "tree[].content": { type: "string" }, - "tree[].mode": { - enum: ["100644", "100755", "040000", "160000", "120000"], - type: "string" - }, - "tree[].path": { type: "string" }, - "tree[].sha": { allowNull: true, type: "string" }, - "tree[].type": { enum: ["blob", "tree", "commit"], type: "string" } - }, - url: "/repos/:owner/:repo/git/trees" - }, - deleteRef: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/refs/:ref" - }, - getBlob: { - method: "GET", - params: { - file_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/blobs/:file_sha" - }, - getCommit: { - method: "GET", - params: { - commit_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/commits/:commit_sha" - }, - getRef: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/ref/:ref" - }, - getTag: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - tag_sha: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/tags/:tag_sha" - }, - getTree: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - recursive: { enum: ["1"], type: "integer" }, - repo: { required: true, type: "string" }, - tree_sha: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/trees/:tree_sha" - }, - listMatchingRefs: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/matching-refs/:ref" - }, - listRefs: { - method: "GET", - params: { - namespace: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/refs/:namespace" - }, - updateRef: { - method: "PATCH", - params: { - force: { type: "boolean" }, - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/refs/:ref" - } + createBlob: ["POST /repos/{owner}/{repo}/git/blobs"], + createCommit: ["POST /repos/{owner}/{repo}/git/commits"], + createRef: ["POST /repos/{owner}/{repo}/git/refs"], + createTag: ["POST /repos/{owner}/{repo}/git/tags"], + createTree: ["POST /repos/{owner}/{repo}/git/trees"], + deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"], + getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"], + getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"], + getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"], + getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"], + getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"], + listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"], + updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"], }, gitignore: { - getTemplate: { - method: "GET", - params: { name: { required: true, type: "string" } }, - url: "/gitignore/templates/:name" - }, - listTemplates: { method: "GET", params: {}, url: "/gitignore/templates" } + getAllTemplates: ["GET /gitignore/templates"], + getTemplate: ["GET /gitignore/templates/{name}"], }, interactions: { - addOrUpdateRestrictionsForOrg: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "PUT", - params: { - limit: { - enum: ["existing_users", "contributors_only", "collaborators_only"], - required: true, - type: "string" - }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/interaction-limits" - }, - addOrUpdateRestrictionsForRepo: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "PUT", - params: { - limit: { - enum: ["existing_users", "contributors_only", "collaborators_only"], - required: true, - type: "string" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/interaction-limits" - }, - getRestrictionsForOrg: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org/interaction-limits" - }, - getRestrictionsForRepo: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/interaction-limits" - }, - removeRestrictionsForOrg: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "DELETE", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org/interaction-limits" - }, - removeRestrictionsForRepo: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/interaction-limits" - } + getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"], + getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"], + getRestrictionsForYourPublicRepos: ["GET /user/interaction-limits"], + removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"], + removeRestrictionsForRepo: [ + "DELETE /repos/{owner}/{repo}/interaction-limits", + ], + removeRestrictionsForYourPublicRepos: ["DELETE /user/interaction-limits"], + setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"], + setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"], + setRestrictionsForYourPublicRepos: ["PUT /user/interaction-limits"], }, issues: { - addAssignees: { - method: "POST", - params: { - assignees: { type: "string[]" }, - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/assignees" - }, - addLabels: { - method: "POST", - params: { - issue_number: { required: true, type: "integer" }, - labels: { required: true, type: "string[]" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - checkAssignee: { - method: "GET", - params: { - assignee: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/assignees/:assignee" - }, - create: { - method: "POST", - params: { - assignee: { type: "string" }, - assignees: { type: "string[]" }, - body: { type: "string" }, - labels: { type: "string[]" }, - milestone: { type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - title: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues" - }, - createComment: { - method: "POST", - params: { - body: { required: true, type: "string" }, - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/comments" - }, - createLabel: { - method: "POST", - params: { - color: { required: true, type: "string" }, - description: { type: "string" }, - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/labels" - }, - createMilestone: { - method: "POST", - params: { - description: { type: "string" }, - due_on: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - state: { enum: ["open", "closed"], type: "string" }, - title: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/milestones" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - deleteLabel: { - method: "DELETE", - params: { - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/labels/:name" - }, - deleteMilestone: { - method: "DELETE", - params: { - milestone_number: { required: true, type: "integer" }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - }, - get: { - method: "GET", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number" - }, - getComment: { - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - getEvent: { - method: "GET", - params: { - event_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/events/:event_id" - }, - getLabel: { - method: "GET", - params: { - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/labels/:name" - }, - getMilestone: { - method: "GET", - params: { - milestone_number: { required: true, type: "integer" }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - }, - list: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" }, - sort: { enum: ["created", "updated", "comments"], type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/issues" - }, - listAssignees: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/assignees" - }, - listComments: { - method: "GET", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - since: { type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/comments" - }, - listCommentsForRepo: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - since: { type: "string" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments" - }, - listEvents: { - method: "GET", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/events" - }, - listEventsForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/events" - }, - listEventsForTimeline: { - headers: { accept: "application/vnd.github.mockingbird-preview+json" }, - method: "GET", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/timeline" - }, - listForAuthenticatedUser: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" }, - sort: { enum: ["created", "updated", "comments"], type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/user/issues" - }, - listForOrg: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { type: "string" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" }, - sort: { enum: ["created", "updated", "comments"], type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/orgs/:org/issues" - }, - listForRepo: { - method: "GET", - params: { - assignee: { type: "string" }, - creator: { type: "string" }, - direction: { enum: ["asc", "desc"], type: "string" }, - labels: { type: "string" }, - mentioned: { type: "string" }, - milestone: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - since: { type: "string" }, - sort: { enum: ["created", "updated", "comments"], type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/repos/:owner/:repo/issues" - }, - listLabelsForMilestone: { - method: "GET", - params: { - milestone_number: { required: true, type: "integer" }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number/labels" - }, - listLabelsForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/labels" - }, - listLabelsOnIssue: { - method: "GET", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - listMilestonesForRepo: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - sort: { enum: ["due_on", "completeness"], type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/repos/:owner/:repo/milestones" - }, - lock: { - method: "PUT", - params: { - issue_number: { required: true, type: "integer" }, - lock_reason: { - enum: ["off-topic", "too heated", "resolved", "spam"], - type: "string" - }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/lock" - }, - removeAssignees: { - method: "DELETE", - params: { - assignees: { type: "string[]" }, - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/assignees" - }, - removeLabel: { - method: "DELETE", - params: { - issue_number: { required: true, type: "integer" }, - name: { required: true, type: "string" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels/:name" - }, - removeLabels: { - method: "DELETE", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - replaceLabels: { - method: "PUT", - params: { - issue_number: { required: true, type: "integer" }, - labels: { type: "string[]" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - unlock: { - method: "DELETE", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/lock" - }, - update: { - method: "PATCH", - params: { - assignee: { type: "string" }, - assignees: { type: "string[]" }, - body: { type: "string" }, - issue_number: { required: true, type: "integer" }, - labels: { type: "string[]" }, - milestone: { allowNull: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - state: { enum: ["open", "closed"], type: "string" }, - title: { type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number" - }, - updateComment: { - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - updateLabel: { - method: "PATCH", - params: { - color: { type: "string" }, - current_name: { required: true, type: "string" }, - description: { type: "string" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/labels/:current_name" - }, - updateMilestone: { - method: "PATCH", - params: { - description: { type: "string" }, - due_on: { type: "string" }, - milestone_number: { required: true, type: "integer" }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - state: { enum: ["open", "closed"], type: "string" }, - title: { type: "string" } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - } + addAssignees: [ + "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees", + ], + addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"], + checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"], + create: ["POST /repos/{owner}/{repo}/issues"], + createComment: [ + "POST /repos/{owner}/{repo}/issues/{issue_number}/comments", + ], + createLabel: ["POST /repos/{owner}/{repo}/labels"], + createMilestone: ["POST /repos/{owner}/{repo}/milestones"], + deleteComment: [ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}", + ], + deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"], + deleteMilestone: [ + "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}", + ], + get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"], + getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"], + getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"], + getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"], + getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"], + list: ["GET /issues"], + listAssignees: ["GET /repos/{owner}/{repo}/assignees"], + listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"], + listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"], + listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"], + listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"], + listEventsForTimeline: [ + "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline", + { mediaType: { previews: ["mockingbird"] } }, + ], + listForAuthenticatedUser: ["GET /user/issues"], + listForOrg: ["GET /orgs/{org}/issues"], + listForRepo: ["GET /repos/{owner}/{repo}/issues"], + listLabelsForMilestone: [ + "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels", + ], + listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"], + listLabelsOnIssue: [ + "GET /repos/{owner}/{repo}/issues/{issue_number}/labels", + ], + listMilestones: ["GET /repos/{owner}/{repo}/milestones"], + lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"], + removeAllLabels: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels", + ], + removeAssignees: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees", + ], + removeLabel: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}", + ], + setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"], + unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"], + update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"], + updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"], + updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"], + updateMilestone: [ + "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}", + ], }, licenses: { - get: { - method: "GET", - params: { license: { required: true, type: "string" } }, - url: "/licenses/:license" - }, - getForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/license" - }, - list: { - deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)", - method: "GET", - params: {}, - url: "/licenses" - }, - listCommonlyUsed: { method: "GET", params: {}, url: "/licenses" } + get: ["GET /licenses/{license}"], + getAllCommonlyUsed: ["GET /licenses"], + getForRepo: ["GET /repos/{owner}/{repo}/license"], }, markdown: { - render: { - method: "POST", - params: { - context: { type: "string" }, - mode: { enum: ["markdown", "gfm"], type: "string" }, - text: { required: true, type: "string" } - }, - url: "/markdown" - }, - renderRaw: { - headers: { "content-type": "text/plain; charset=utf-8" }, - method: "POST", - params: { data: { mapTo: "data", required: true, type: "string" } }, - url: "/markdown/raw" - } + render: ["POST /markdown"], + renderRaw: [ + "POST /markdown/raw", + { headers: { "content-type": "text/plain; charset=utf-8" } }, + ], }, - meta: { get: { method: "GET", params: {}, url: "/meta" } }, - migrations: { - cancelImport: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/import" - }, - deleteArchiveForAuthenticatedUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "DELETE", - params: { migration_id: { required: true, type: "integer" } }, - url: "/user/migrations/:migration_id/archive" - }, - deleteArchiveForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "DELETE", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - downloadArchiveForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - getArchiveForAuthenticatedUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { migration_id: { required: true, type: "integer" } }, - url: "/user/migrations/:migration_id/archive" - }, - getArchiveForOrg: { - deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)", - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - getCommitAuthors: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - since: { type: "string" } - }, - url: "/repos/:owner/:repo/import/authors" - }, - getImportProgress: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/import" - }, - getLargeFiles: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/import/large_files" - }, - getStatusForAuthenticatedUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { migration_id: { required: true, type: "integer" } }, - url: "/user/migrations/:migration_id" - }, - getStatusForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/migrations/:migration_id" - }, - listForAuthenticatedUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/migrations" - }, - listForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/migrations" - }, - listReposForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/migrations/:migration_id/repositories" - }, - listReposForUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - migration_id: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/user/:migration_id/repositories" - }, - mapCommitAuthor: { - method: "PATCH", - params: { - author_id: { required: true, type: "integer" }, - email: { type: "string" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/import/authors/:author_id" - }, - setLfsPreference: { - method: "PATCH", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - use_lfs: { enum: ["opt_in", "opt_out"], required: true, type: "string" } - }, - url: "/repos/:owner/:repo/import/lfs" - }, - startForAuthenticatedUser: { - method: "POST", - params: { - exclude_attachments: { type: "boolean" }, - lock_repositories: { type: "boolean" }, - repositories: { required: true, type: "string[]" } - }, - url: "/user/migrations" - }, - startForOrg: { - method: "POST", - params: { - exclude_attachments: { type: "boolean" }, - lock_repositories: { type: "boolean" }, - org: { required: true, type: "string" }, - repositories: { required: true, type: "string[]" } - }, - url: "/orgs/:org/migrations" - }, - startImport: { - method: "PUT", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - tfvc_project: { type: "string" }, - vcs: { - enum: ["subversion", "git", "mercurial", "tfvc"], - type: "string" - }, - vcs_password: { type: "string" }, - vcs_url: { required: true, type: "string" }, - vcs_username: { type: "string" } - }, - url: "/repos/:owner/:repo/import" - }, - unlockRepoForAuthenticatedUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "DELETE", - params: { - migration_id: { required: true, type: "integer" }, - repo_name: { required: true, type: "string" } - }, - url: "/user/migrations/:migration_id/repos/:repo_name/lock" - }, - unlockRepoForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "DELETE", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - repo_name: { required: true, type: "string" } - }, - url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock" - }, - updateImport: { - method: "PATCH", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - vcs_password: { type: "string" }, - vcs_username: { type: "string" } - }, - url: "/repos/:owner/:repo/import" - } + meta: { + get: ["GET /meta"], + getOctocat: ["GET /octocat"], + getZen: ["GET /zen"], + root: ["GET /"], }, - oauthAuthorizations: { - checkAuthorization: { - deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)", - method: "GET", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - createAuthorization: { - deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization", - method: "POST", - params: { - client_id: { type: "string" }, - client_secret: { type: "string" }, - fingerprint: { type: "string" }, - note: { required: true, type: "string" }, - note_url: { type: "string" }, - scopes: { type: "string[]" } - }, - url: "/authorizations" - }, - deleteAuthorization: { - deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization", - method: "DELETE", - params: { authorization_id: { required: true, type: "integer" } }, - url: "/authorizations/:authorization_id" - }, - deleteGrant: { - deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant", - method: "DELETE", - params: { grant_id: { required: true, type: "integer" } }, - url: "/applications/grants/:grant_id" - }, - getAuthorization: { - deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization", - method: "GET", - params: { authorization_id: { required: true, type: "integer" } }, - url: "/authorizations/:authorization_id" - }, - getGrant: { - deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant", - method: "GET", - params: { grant_id: { required: true, type: "integer" } }, - url: "/applications/grants/:grant_id" - }, - getOrCreateAuthorizationForApp: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app", - method: "PUT", - params: { - client_id: { required: true, type: "string" }, - client_secret: { required: true, type: "string" }, - fingerprint: { type: "string" }, - note: { type: "string" }, - note_url: { type: "string" }, - scopes: { type: "string[]" } - }, - url: "/authorizations/clients/:client_id" - }, - getOrCreateAuthorizationForAppAndFingerprint: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint", - method: "PUT", - params: { - client_id: { required: true, type: "string" }, - client_secret: { required: true, type: "string" }, - fingerprint: { required: true, type: "string" }, - note: { type: "string" }, - note_url: { type: "string" }, - scopes: { type: "string[]" } - }, - url: "/authorizations/clients/:client_id/:fingerprint" - }, - getOrCreateAuthorizationForAppFingerprint: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)", - method: "PUT", - params: { - client_id: { required: true, type: "string" }, - client_secret: { required: true, type: "string" }, - fingerprint: { required: true, type: "string" }, - note: { type: "string" }, - note_url: { type: "string" }, - scopes: { type: "string[]" } - }, - url: "/authorizations/clients/:client_id/:fingerprint" - }, - listAuthorizations: { - deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations", - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/authorizations" - }, - listGrants: { - deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants", - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/applications/grants" - }, - resetAuthorization: { - deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)", - method: "POST", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeAuthorizationForApplication: { - deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)", - method: "DELETE", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeGrantForApplication: { - deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)", - method: "DELETE", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/grants/:access_token" - }, - updateAuthorization: { - deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization", - method: "PATCH", - params: { - add_scopes: { type: "string[]" }, - authorization_id: { required: true, type: "integer" }, - fingerprint: { type: "string" }, - note: { type: "string" }, - note_url: { type: "string" }, - remove_scopes: { type: "string[]" }, - scopes: { type: "string[]" } - }, - url: "/authorizations/:authorization_id" - } + migrations: { + cancelImport: ["DELETE /repos/{owner}/{repo}/import"], + deleteArchiveForAuthenticatedUser: [ + "DELETE /user/migrations/{migration_id}/archive", + { mediaType: { previews: ["wyandotte"] } }, + ], + deleteArchiveForOrg: [ + "DELETE /orgs/{org}/migrations/{migration_id}/archive", + { mediaType: { previews: ["wyandotte"] } }, + ], + downloadArchiveForOrg: [ + "GET /orgs/{org}/migrations/{migration_id}/archive", + { mediaType: { previews: ["wyandotte"] } }, + ], + getArchiveForAuthenticatedUser: [ + "GET /user/migrations/{migration_id}/archive", + { mediaType: { previews: ["wyandotte"] } }, + ], + getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"], + getImportStatus: ["GET /repos/{owner}/{repo}/import"], + getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"], + getStatusForAuthenticatedUser: [ + "GET /user/migrations/{migration_id}", + { mediaType: { previews: ["wyandotte"] } }, + ], + getStatusForOrg: [ + "GET /orgs/{org}/migrations/{migration_id}", + { mediaType: { previews: ["wyandotte"] } }, + ], + listForAuthenticatedUser: [ + "GET /user/migrations", + { mediaType: { previews: ["wyandotte"] } }, + ], + listForOrg: [ + "GET /orgs/{org}/migrations", + { mediaType: { previews: ["wyandotte"] } }, + ], + listReposForOrg: [ + "GET /orgs/{org}/migrations/{migration_id}/repositories", + { mediaType: { previews: ["wyandotte"] } }, + ], + listReposForUser: [ + "GET /user/migrations/{migration_id}/repositories", + { mediaType: { previews: ["wyandotte"] } }, + ], + mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"], + setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"], + startForAuthenticatedUser: ["POST /user/migrations"], + startForOrg: ["POST /orgs/{org}/migrations"], + startImport: ["PUT /repos/{owner}/{repo}/import"], + unlockRepoForAuthenticatedUser: [ + "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock", + { mediaType: { previews: ["wyandotte"] } }, + ], + unlockRepoForOrg: [ + "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock", + { mediaType: { previews: ["wyandotte"] } }, + ], + updateImport: ["PATCH /repos/{owner}/{repo}/import"], }, orgs: { - addOrUpdateMembership: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - role: { enum: ["admin", "member"], type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/memberships/:username" - }, - blockUser: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/blocks/:username" - }, - checkBlockedUser: { - method: "GET", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/blocks/:username" - }, - checkMembership: { - method: "GET", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/members/:username" - }, - checkPublicMembership: { - method: "GET", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/public_members/:username" - }, - concealMembership: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/public_members/:username" - }, - convertMemberToOutsideCollaborator: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/outside_collaborators/:username" - }, - createHook: { - method: "POST", - params: { - active: { type: "boolean" }, - config: { required: true, type: "object" }, - "config.content_type": { type: "string" }, - "config.insecure_ssl": { type: "string" }, - "config.secret": { type: "string" }, - "config.url": { required: true, type: "string" }, - events: { type: "string[]" }, - name: { required: true, type: "string" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/hooks" - }, - createInvitation: { - method: "POST", - params: { - email: { type: "string" }, - invitee_id: { type: "integer" }, - org: { required: true, type: "string" }, - role: { - enum: ["admin", "direct_member", "billing_manager"], - type: "string" - }, - team_ids: { type: "integer[]" } - }, - url: "/orgs/:org/invitations" - }, - deleteHook: { - method: "DELETE", - params: { - hook_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - get: { - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org" - }, - getHook: { - method: "GET", - params: { - hook_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - getMembership: { - method: "GET", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/memberships/:username" - }, - getMembershipForAuthenticatedUser: { - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/user/memberships/orgs/:org" - }, - list: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "integer" } - }, - url: "/organizations" - }, - listBlockedUsers: { - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org/blocks" - }, - listForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/orgs" - }, - listForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/orgs" - }, - listHooks: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/hooks" - }, - listInstallations: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/installations" - }, - listInvitationTeams: { - method: "GET", - params: { - invitation_id: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/invitations/:invitation_id/teams" - }, - listMembers: { - method: "GET", - params: { - filter: { enum: ["2fa_disabled", "all"], type: "string" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - role: { enum: ["all", "admin", "member"], type: "string" } - }, - url: "/orgs/:org/members" - }, - listMemberships: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - state: { enum: ["active", "pending"], type: "string" } - }, - url: "/user/memberships/orgs" - }, - listOutsideCollaborators: { - method: "GET", - params: { - filter: { enum: ["2fa_disabled", "all"], type: "string" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/outside_collaborators" - }, - listPendingInvitations: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/invitations" - }, - listPublicMembers: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/public_members" - }, - pingHook: { - method: "POST", - params: { - hook_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/hooks/:hook_id/pings" - }, - publicizeMembership: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/public_members/:username" - }, - removeMember: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/members/:username" - }, - removeMembership: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/memberships/:username" - }, - removeOutsideCollaborator: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/outside_collaborators/:username" - }, - unblockUser: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/blocks/:username" - }, - update: { - method: "PATCH", - params: { - billing_email: { type: "string" }, - company: { type: "string" }, - default_repository_permission: { - enum: ["read", "write", "admin", "none"], - type: "string" - }, - description: { type: "string" }, - email: { type: "string" }, - has_organization_projects: { type: "boolean" }, - has_repository_projects: { type: "boolean" }, - location: { type: "string" }, - members_allowed_repository_creation_type: { - enum: ["all", "private", "none"], - type: "string" - }, - members_can_create_internal_repositories: { type: "boolean" }, - members_can_create_private_repositories: { type: "boolean" }, - members_can_create_public_repositories: { type: "boolean" }, - members_can_create_repositories: { type: "boolean" }, - name: { type: "string" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org" - }, - updateHook: { - method: "PATCH", - params: { - active: { type: "boolean" }, - config: { type: "object" }, - "config.content_type": { type: "string" }, - "config.insecure_ssl": { type: "string" }, - "config.secret": { type: "string" }, - "config.url": { required: true, type: "string" }, - events: { type: "string[]" }, - hook_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - updateMembership: { - method: "PATCH", - params: { - org: { required: true, type: "string" }, - state: { enum: ["active"], required: true, type: "string" } - }, - url: "/user/memberships/orgs/:org" - } + blockUser: ["PUT /orgs/{org}/blocks/{username}"], + checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"], + checkMembershipForUser: ["GET /orgs/{org}/members/{username}"], + checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"], + convertMemberToOutsideCollaborator: [ + "PUT /orgs/{org}/outside_collaborators/{username}", + ], + createInvitation: ["POST /orgs/{org}/invitations"], + createWebhook: ["POST /orgs/{org}/hooks"], + deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"], + get: ["GET /orgs/{org}"], + getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"], + getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"], + getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"], + getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"], + list: ["GET /organizations"], + listAppInstallations: ["GET /orgs/{org}/installations"], + listBlockedUsers: ["GET /orgs/{org}/blocks"], + listForAuthenticatedUser: ["GET /user/orgs"], + listForUser: ["GET /users/{username}/orgs"], + listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"], + listMembers: ["GET /orgs/{org}/members"], + listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"], + listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"], + listPendingInvitations: ["GET /orgs/{org}/invitations"], + listPublicMembers: ["GET /orgs/{org}/public_members"], + listWebhooks: ["GET /orgs/{org}/hooks"], + pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"], + removeMember: ["DELETE /orgs/{org}/members/{username}"], + removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"], + removeOutsideCollaborator: [ + "DELETE /orgs/{org}/outside_collaborators/{username}", + ], + removePublicMembershipForAuthenticatedUser: [ + "DELETE /orgs/{org}/public_members/{username}", + ], + setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"], + setPublicMembershipForAuthenticatedUser: [ + "PUT /orgs/{org}/public_members/{username}", + ], + unblockUser: ["DELETE /orgs/{org}/blocks/{username}"], + update: ["PATCH /orgs/{org}"], + updateMembershipForAuthenticatedUser: [ + "PATCH /user/memberships/orgs/{org}", + ], + updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"], + updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"], }, projects: { - addCollaborator: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PUT", - params: { - permission: { enum: ["read", "write", "admin"], type: "string" }, - project_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/projects/:project_id/collaborators/:username" - }, - createCard: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - column_id: { required: true, type: "integer" }, - content_id: { type: "integer" }, - content_type: { type: "string" }, - note: { type: "string" } - }, - url: "/projects/columns/:column_id/cards" - }, - createColumn: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - name: { required: true, type: "string" }, - project_id: { required: true, type: "integer" } - }, - url: "/projects/:project_id/columns" - }, - createForAuthenticatedUser: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - body: { type: "string" }, - name: { required: true, type: "string" } - }, - url: "/user/projects" - }, - createForOrg: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - body: { type: "string" }, - name: { required: true, type: "string" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/projects" - }, - createForRepo: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - body: { type: "string" }, - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/projects" - }, - delete: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "DELETE", - params: { project_id: { required: true, type: "integer" } }, - url: "/projects/:project_id" - }, - deleteCard: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "DELETE", - params: { card_id: { required: true, type: "integer" } }, - url: "/projects/columns/cards/:card_id" - }, - deleteColumn: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "DELETE", - params: { column_id: { required: true, type: "integer" } }, - url: "/projects/columns/:column_id" - }, - get: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { project_id: { required: true, type: "integer" } }, - url: "/projects/:project_id" - }, - getCard: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { card_id: { required: true, type: "integer" } }, - url: "/projects/columns/cards/:card_id" - }, - getColumn: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { column_id: { required: true, type: "integer" } }, - url: "/projects/columns/:column_id" - }, - listCards: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - archived_state: { - enum: ["all", "archived", "not_archived"], - type: "string" - }, - column_id: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/projects/columns/:column_id/cards" - }, - listCollaborators: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - affiliation: { enum: ["outside", "direct", "all"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - project_id: { required: true, type: "integer" } - }, - url: "/projects/:project_id/collaborators" - }, - listColumns: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - project_id: { required: true, type: "integer" } - }, - url: "/projects/:project_id/columns" - }, - listForOrg: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/orgs/:org/projects" - }, - listForRepo: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/repos/:owner/:repo/projects" - }, - listForUser: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - state: { enum: ["open", "closed", "all"], type: "string" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/projects" - }, - moveCard: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - card_id: { required: true, type: "integer" }, - column_id: { type: "integer" }, - position: { - required: true, - type: "string", - validation: "^(top|bottom|after:\\d+)$" - } - }, - url: "/projects/columns/cards/:card_id/moves" - }, - moveColumn: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - column_id: { required: true, type: "integer" }, - position: { - required: true, - type: "string", - validation: "^(first|last|after:\\d+)$" - } - }, - url: "/projects/columns/:column_id/moves" - }, - removeCollaborator: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "DELETE", - params: { - project_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/projects/:project_id/collaborators/:username" - }, - reviewUserPermissionLevel: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - project_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/projects/:project_id/collaborators/:username/permission" - }, - update: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PATCH", - params: { - body: { type: "string" }, - name: { type: "string" }, - organization_permission: { type: "string" }, - private: { type: "boolean" }, - project_id: { required: true, type: "integer" }, - state: { enum: ["open", "closed"], type: "string" } - }, - url: "/projects/:project_id" - }, - updateCard: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PATCH", - params: { - archived: { type: "boolean" }, - card_id: { required: true, type: "integer" }, - note: { type: "string" } - }, - url: "/projects/columns/cards/:card_id" - }, - updateColumn: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PATCH", - params: { - column_id: { required: true, type: "integer" }, - name: { required: true, type: "string" } - }, - url: "/projects/columns/:column_id" - } + addCollaborator: [ + "PUT /projects/{project_id}/collaborators/{username}", + { mediaType: { previews: ["inertia"] } }, + ], + createCard: [ + "POST /projects/columns/{column_id}/cards", + { mediaType: { previews: ["inertia"] } }, + ], + createColumn: [ + "POST /projects/{project_id}/columns", + { mediaType: { previews: ["inertia"] } }, + ], + createForAuthenticatedUser: [ + "POST /user/projects", + { mediaType: { previews: ["inertia"] } }, + ], + createForOrg: [ + "POST /orgs/{org}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + createForRepo: [ + "POST /repos/{owner}/{repo}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + delete: [ + "DELETE /projects/{project_id}", + { mediaType: { previews: ["inertia"] } }, + ], + deleteCard: [ + "DELETE /projects/columns/cards/{card_id}", + { mediaType: { previews: ["inertia"] } }, + ], + deleteColumn: [ + "DELETE /projects/columns/{column_id}", + { mediaType: { previews: ["inertia"] } }, + ], + get: [ + "GET /projects/{project_id}", + { mediaType: { previews: ["inertia"] } }, + ], + getCard: [ + "GET /projects/columns/cards/{card_id}", + { mediaType: { previews: ["inertia"] } }, + ], + getColumn: [ + "GET /projects/columns/{column_id}", + { mediaType: { previews: ["inertia"] } }, + ], + getPermissionForUser: [ + "GET /projects/{project_id}/collaborators/{username}/permission", + { mediaType: { previews: ["inertia"] } }, + ], + listCards: [ + "GET /projects/columns/{column_id}/cards", + { mediaType: { previews: ["inertia"] } }, + ], + listCollaborators: [ + "GET /projects/{project_id}/collaborators", + { mediaType: { previews: ["inertia"] } }, + ], + listColumns: [ + "GET /projects/{project_id}/columns", + { mediaType: { previews: ["inertia"] } }, + ], + listForOrg: [ + "GET /orgs/{org}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + listForRepo: [ + "GET /repos/{owner}/{repo}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + listForUser: [ + "GET /users/{username}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + moveCard: [ + "POST /projects/columns/cards/{card_id}/moves", + { mediaType: { previews: ["inertia"] } }, + ], + moveColumn: [ + "POST /projects/columns/{column_id}/moves", + { mediaType: { previews: ["inertia"] } }, + ], + removeCollaborator: [ + "DELETE /projects/{project_id}/collaborators/{username}", + { mediaType: { previews: ["inertia"] } }, + ], + update: [ + "PATCH /projects/{project_id}", + { mediaType: { previews: ["inertia"] } }, + ], + updateCard: [ + "PATCH /projects/columns/cards/{card_id}", + { mediaType: { previews: ["inertia"] } }, + ], + updateColumn: [ + "PATCH /projects/columns/{column_id}", + { mediaType: { previews: ["inertia"] } }, + ], }, pulls: { - checkIfMerged: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/merge" - }, - create: { - method: "POST", - params: { - base: { required: true, type: "string" }, - body: { type: "string" }, - draft: { type: "boolean" }, - head: { required: true, type: "string" }, - maintainer_can_modify: { type: "boolean" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - title: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls" - }, - createComment: { - method: "POST", - params: { - body: { required: true, type: "string" }, - commit_id: { required: true, type: "string" }, - in_reply_to: { - deprecated: true, - description: "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.", - type: "integer" - }, - line: { type: "integer" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - position: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - side: { enum: ["LEFT", "RIGHT"], type: "string" }, - start_line: { type: "integer" }, - start_side: { enum: ["LEFT", "RIGHT", "side"], type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - createCommentReply: { - deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)", - method: "POST", - params: { - body: { required: true, type: "string" }, - commit_id: { required: true, type: "string" }, - in_reply_to: { - deprecated: true, - description: "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.", - type: "integer" - }, - line: { type: "integer" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - position: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - side: { enum: ["LEFT", "RIGHT"], type: "string" }, - start_line: { type: "integer" }, - start_side: { enum: ["LEFT", "RIGHT", "side"], type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - createFromIssue: { - deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request", - method: "POST", - params: { - base: { required: true, type: "string" }, - draft: { type: "boolean" }, - head: { required: true, type: "string" }, - issue: { required: true, type: "integer" }, - maintainer_can_modify: { type: "boolean" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls" - }, - createReview: { - method: "POST", - params: { - body: { type: "string" }, - comments: { type: "object[]" }, - "comments[].body": { required: true, type: "string" }, - "comments[].path": { required: true, type: "string" }, - "comments[].position": { required: true, type: "integer" }, - commit_id: { type: "string" }, - event: { - enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"], - type: "string" - }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews" - }, - createReviewCommentReply: { - method: "POST", - params: { - body: { required: true, type: "string" }, - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies" - }, - createReviewRequest: { - method: "POST", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - reviewers: { type: "string[]" }, - team_reviewers: { type: "string[]" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - deletePendingReview: { - method: "DELETE", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - }, - deleteReviewRequest: { - method: "DELETE", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - reviewers: { type: "string[]" }, - team_reviewers: { type: "string[]" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - dismissReview: { - method: "PUT", - params: { - message: { required: true, type: "string" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals" - }, - get: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number" - }, - getComment: { - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - getCommentsForReview: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments" - }, - getReview: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - }, - list: { - method: "GET", - params: { - base: { type: "string" }, - direction: { enum: ["asc", "desc"], type: "string" }, - head: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - sort: { - enum: ["created", "updated", "popularity", "long-running"], - type: "string" - }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/repos/:owner/:repo/pulls" - }, - listComments: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - since: { type: "string" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - listCommentsForRepo: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - since: { type: "string" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments" - }, - listCommits: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/commits" - }, - listFiles: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/files" - }, - listReviewRequests: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - listReviews: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews" - }, - merge: { - method: "PUT", - params: { - commit_message: { type: "string" }, - commit_title: { type: "string" }, - merge_method: { enum: ["merge", "squash", "rebase"], type: "string" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - sha: { type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/merge" - }, - submitReview: { - method: "POST", - params: { - body: { type: "string" }, - event: { - enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"], - required: true, - type: "string" - }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events" - }, - update: { - method: "PATCH", - params: { - base: { type: "string" }, - body: { type: "string" }, - maintainer_can_modify: { type: "boolean" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - state: { enum: ["open", "closed"], type: "string" }, - title: { type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number" - }, - updateBranch: { - headers: { accept: "application/vnd.github.lydian-preview+json" }, - method: "PUT", - params: { - expected_head_sha: { type: "string" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/update-branch" - }, - updateComment: { - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - updateReview: { - method: "PUT", - params: { - body: { required: true, type: "string" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - } + checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"], + create: ["POST /repos/{owner}/{repo}/pulls"], + createReplyForReviewComment: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies", + ], + createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"], + createReviewComment: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments", + ], + deletePendingReview: [ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", + ], + deleteReviewComment: [ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}", + ], + dismissReview: [ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals", + ], + get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"], + getReview: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", + ], + getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"], + list: ["GET /repos/{owner}/{repo}/pulls"], + listCommentsForReview: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", + ], + listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"], + listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"], + listRequestedReviewers: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", + ], + listReviewComments: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments", + ], + listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"], + listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"], + merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"], + removeRequestedReviewers: [ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", + ], + requestReviewers: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", + ], + submitReview: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events", + ], + update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"], + updateBranch: [ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch", + { mediaType: { previews: ["lydian"] } }, + ], + updateReview: [ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", + ], + updateReviewComment: [ + "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}", + ], }, - rateLimit: { get: { method: "GET", params: {}, url: "/rate_limit" } }, + rateLimit: { get: ["GET /rate_limit"] }, reactions: { - createForCommitComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments/:comment_id/reactions" - }, - createForIssue: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/reactions" - }, - createForIssueComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions" - }, - createForPullRequestReviewComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" - }, - createForTeamDiscussion: { - deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - createForTeamDiscussionComment: { - deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionCommentInOrg: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionCommentLegacy: { - deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionInOrg: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" - }, - createForTeamDiscussionLegacy: { - deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - delete: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "DELETE", - params: { reaction_id: { required: true, type: "integer" } }, - url: "/reactions/:reaction_id" - }, - listForCommitComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments/:comment_id/reactions" - }, - listForIssue: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/reactions" - }, - listForIssueComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions" - }, - listForPullRequestReviewComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" - }, - listForTeamDiscussion: { - deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - listForTeamDiscussionComment: { - deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionCommentInOrg: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionCommentLegacy: { - deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionInOrg: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" - }, - listForTeamDiscussionLegacy: { - deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - } + createForCommitComment: [ + "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + createForIssue: [ + "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + createForIssueComment: [ + "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + createForPullRequestReviewComment: [ + "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + createForTeamDiscussionCommentInOrg: [ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + createForTeamDiscussionInOrg: [ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForCommitComment: [ + "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForIssue: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForIssueComment: [ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForPullRequestComment: [ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForTeamDiscussion: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForTeamDiscussionComment: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteLegacy: [ + "DELETE /reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + { + deprecated: "octokit.reactions.deleteLegacy() is deprecated, see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy", + }, + ], + listForCommitComment: [ + "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + listForIssue: [ + "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + listForIssueComment: [ + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + listForPullRequestReviewComment: [ + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + listForTeamDiscussionCommentInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + listForTeamDiscussionInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], }, repos: { - acceptInvitation: { - method: "PATCH", - params: { invitation_id: { required: true, type: "integer" } }, - url: "/user/repository_invitations/:invitation_id" - }, - addCollaborator: { - method: "PUT", - params: { - owner: { required: true, type: "string" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - repo: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - addDeployKey: { - method: "POST", - params: { - key: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - read_only: { type: "boolean" }, - repo: { required: true, type: "string" }, - title: { type: "string" } - }, - url: "/repos/:owner/:repo/keys" - }, - addProtectedBranchAdminEnforcement: { - method: "POST", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - addProtectedBranchAppRestrictions: { - method: "POST", - params: { - apps: { mapTo: "data", required: true, type: "string[]" }, - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - addProtectedBranchRequiredSignatures: { - headers: { accept: "application/vnd.github.zzzax-preview+json" }, - method: "POST", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - addProtectedBranchRequiredStatusChecksContexts: { - method: "POST", - params: { - branch: { required: true, type: "string" }, - contexts: { mapTo: "data", required: true, type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - addProtectedBranchTeamRestrictions: { - method: "POST", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - teams: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - addProtectedBranchUserRestrictions: { - method: "POST", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - users: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - checkCollaborator: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - checkVulnerabilityAlerts: { - headers: { accept: "application/vnd.github.dorian-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - compareCommits: { - method: "GET", - params: { - base: { required: true, type: "string" }, - head: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/compare/:base...:head" - }, - createCommitComment: { - method: "POST", - params: { - body: { required: true, type: "string" }, - commit_sha: { required: true, type: "string" }, - line: { type: "integer" }, - owner: { required: true, type: "string" }, - path: { type: "string" }, - position: { type: "integer" }, - repo: { required: true, type: "string" }, - sha: { alias: "commit_sha", deprecated: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/comments" - }, - createDeployment: { - method: "POST", - params: { - auto_merge: { type: "boolean" }, - description: { type: "string" }, - environment: { type: "string" }, - owner: { required: true, type: "string" }, - payload: { type: "string" }, - production_environment: { type: "boolean" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - required_contexts: { type: "string[]" }, - task: { type: "string" }, - transient_environment: { type: "boolean" } - }, - url: "/repos/:owner/:repo/deployments" - }, - createDeploymentStatus: { - method: "POST", - params: { - auto_inactive: { type: "boolean" }, - deployment_id: { required: true, type: "integer" }, - description: { type: "string" }, - environment: { enum: ["production", "staging", "qa"], type: "string" }, - environment_url: { type: "string" }, - log_url: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - state: { - enum: [ - "error", - "failure", - "inactive", - "in_progress", - "queued", - "pending", - "success" - ], - required: true, - type: "string" - }, - target_url: { type: "string" } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses" - }, - createDispatchEvent: { - method: "POST", - params: { - client_payload: { type: "object" }, - event_type: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/dispatches" - }, - createFile: { - deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)", - method: "PUT", - params: { - author: { type: "object" }, - "author.email": { required: true, type: "string" }, - "author.name": { required: true, type: "string" }, - branch: { type: "string" }, - committer: { type: "object" }, - "committer.email": { required: true, type: "string" }, - "committer.name": { required: true, type: "string" }, - content: { required: true, type: "string" }, - message: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { type: "string" } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - createForAuthenticatedUser: { - method: "POST", - params: { - allow_merge_commit: { type: "boolean" }, - allow_rebase_merge: { type: "boolean" }, - allow_squash_merge: { type: "boolean" }, - auto_init: { type: "boolean" }, - delete_branch_on_merge: { type: "boolean" }, - description: { type: "string" }, - gitignore_template: { type: "string" }, - has_issues: { type: "boolean" }, - has_projects: { type: "boolean" }, - has_wiki: { type: "boolean" }, - homepage: { type: "string" }, - is_template: { type: "boolean" }, - license_template: { type: "string" }, - name: { required: true, type: "string" }, - private: { type: "boolean" }, - team_id: { type: "integer" }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" - } - }, - url: "/user/repos" - }, - createFork: { - method: "POST", - params: { - organization: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/forks" - }, - createHook: { - method: "POST", - params: { - active: { type: "boolean" }, - config: { required: true, type: "object" }, - "config.content_type": { type: "string" }, - "config.insecure_ssl": { type: "string" }, - "config.secret": { type: "string" }, - "config.url": { required: true, type: "string" }, - events: { type: "string[]" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks" - }, - createInOrg: { - method: "POST", - params: { - allow_merge_commit: { type: "boolean" }, - allow_rebase_merge: { type: "boolean" }, - allow_squash_merge: { type: "boolean" }, - auto_init: { type: "boolean" }, - delete_branch_on_merge: { type: "boolean" }, - description: { type: "string" }, - gitignore_template: { type: "string" }, - has_issues: { type: "boolean" }, - has_projects: { type: "boolean" }, - has_wiki: { type: "boolean" }, - homepage: { type: "string" }, - is_template: { type: "boolean" }, - license_template: { type: "string" }, - name: { required: true, type: "string" }, - org: { required: true, type: "string" }, - private: { type: "boolean" }, - team_id: { type: "integer" }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" - } - }, - url: "/orgs/:org/repos" - }, - createOrUpdateFile: { - method: "PUT", - params: { - author: { type: "object" }, - "author.email": { required: true, type: "string" }, - "author.name": { required: true, type: "string" }, - branch: { type: "string" }, - committer: { type: "object" }, - "committer.email": { required: true, type: "string" }, - "committer.name": { required: true, type: "string" }, - content: { required: true, type: "string" }, - message: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { type: "string" } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - createRelease: { - method: "POST", - params: { - body: { type: "string" }, - draft: { type: "boolean" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - prerelease: { type: "boolean" }, - repo: { required: true, type: "string" }, - tag_name: { required: true, type: "string" }, - target_commitish: { type: "string" } - }, - url: "/repos/:owner/:repo/releases" - }, - createStatus: { - method: "POST", - params: { - context: { type: "string" }, - description: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { required: true, type: "string" }, - state: { - enum: ["error", "failure", "pending", "success"], - required: true, - type: "string" - }, - target_url: { type: "string" } - }, - url: "/repos/:owner/:repo/statuses/:sha" - }, - createUsingTemplate: { - headers: { accept: "application/vnd.github.baptiste-preview+json" }, - method: "POST", - params: { - description: { type: "string" }, - name: { required: true, type: "string" }, - owner: { type: "string" }, - private: { type: "boolean" }, - template_owner: { required: true, type: "string" }, - template_repo: { required: true, type: "string" } - }, - url: "/repos/:template_owner/:template_repo/generate" - }, - declineInvitation: { - method: "DELETE", - params: { invitation_id: { required: true, type: "integer" } }, - url: "/user/repository_invitations/:invitation_id" - }, - delete: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo" - }, - deleteCommitComment: { - method: "DELETE", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - deleteDownload: { - method: "DELETE", - params: { - download_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/downloads/:download_id" - }, - deleteFile: { - method: "DELETE", - params: { - author: { type: "object" }, - "author.email": { type: "string" }, - "author.name": { type: "string" }, - branch: { type: "string" }, - committer: { type: "object" }, - "committer.email": { type: "string" }, - "committer.name": { type: "string" }, - message: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - deleteHook: { - method: "DELETE", - params: { - hook_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - deleteInvitation: { - method: "DELETE", - params: { - invitation_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/invitations/:invitation_id" - }, - deleteRelease: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - release_id: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - deleteReleaseAsset: { - method: "DELETE", - params: { - asset_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - disableAutomatedSecurityFixes: { - headers: { accept: "application/vnd.github.london-preview+json" }, - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/automated-security-fixes" - }, - disablePagesSite: { - headers: { accept: "application/vnd.github.switcheroo-preview+json" }, - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages" - }, - disableVulnerabilityAlerts: { - headers: { accept: "application/vnd.github.dorian-preview+json" }, - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - enableAutomatedSecurityFixes: { - headers: { accept: "application/vnd.github.london-preview+json" }, - method: "PUT", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/automated-security-fixes" - }, - enablePagesSite: { - headers: { accept: "application/vnd.github.switcheroo-preview+json" }, - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - source: { type: "object" }, - "source.branch": { enum: ["master", "gh-pages"], type: "string" }, - "source.path": { type: "string" } - }, - url: "/repos/:owner/:repo/pages" - }, - enableVulnerabilityAlerts: { - headers: { accept: "application/vnd.github.dorian-preview+json" }, - method: "PUT", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - get: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo" - }, - getAppsWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - getArchiveLink: { - method: "GET", - params: { - archive_format: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/:archive_format/:ref" - }, - getBranch: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch" - }, - getBranchProtection: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - getClones: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - per: { enum: ["day", "week"], type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/traffic/clones" - }, - getCodeFrequencyStats: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stats/code_frequency" - }, - getCollaboratorPermissionLevel: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/collaborators/:username/permission" - }, - getCombinedStatusForRef: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref/status" - }, - getCommit: { - method: "GET", - params: { - commit_sha: { alias: "ref", deprecated: true, type: "string" }, - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { alias: "ref", deprecated: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref" - }, - getCommitActivityStats: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stats/commit_activity" - }, - getCommitComment: { - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - getCommitRefSha: { - deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit", - headers: { accept: "application/vnd.github.v3.sha" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref" - }, - getContents: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - ref: { type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - getContributorsStats: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stats/contributors" - }, - getDeployKey: { - method: "GET", - params: { - key_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/keys/:key_id" - }, - getDeployment: { - method: "GET", - params: { - deployment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id" - }, - getDeploymentStatus: { - method: "GET", - params: { - deployment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - status_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id" - }, - getDownload: { - method: "GET", - params: { - download_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/downloads/:download_id" - }, - getHook: { - method: "GET", - params: { - hook_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - getLatestPagesBuild: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages/builds/latest" - }, - getLatestRelease: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/latest" - }, - getPages: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages" - }, - getPagesBuild: { - method: "GET", - params: { - build_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages/builds/:build_id" - }, - getParticipationStats: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stats/participation" - }, - getProtectedBranchAdminEnforcement: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - getProtectedBranchPullRequestReviewEnforcement: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - getProtectedBranchRequiredSignatures: { - headers: { accept: "application/vnd.github.zzzax-preview+json" }, - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - getProtectedBranchRequiredStatusChecks: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - getProtectedBranchRestrictions: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - getPunchCardStats: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stats/punch_card" - }, - getReadme: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - ref: { type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/readme" - }, - getRelease: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - release_id: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - getReleaseAsset: { - method: "GET", - params: { - asset_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - getReleaseByTag: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - tag: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/tags/:tag" - }, - getTeamsWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - getTopPaths: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/traffic/popular/paths" - }, - getTopReferrers: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/traffic/popular/referrers" - }, - getUsersWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - getViews: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - per: { enum: ["day", "week"], type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/traffic/views" - }, - list: { - method: "GET", - params: { - affiliation: { type: "string" }, - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { - enum: ["all", "owner", "public", "private", "member"], - type: "string" - }, - visibility: { enum: ["all", "public", "private"], type: "string" } - }, - url: "/user/repos" - }, - listAppsWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - listAssetsForRelease: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - release_id: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/:release_id/assets" - }, - listBranches: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - protected: { type: "boolean" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches" - }, - listBranchesForHeadCommit: { - headers: { accept: "application/vnd.github.groot-preview+json" }, - method: "GET", - params: { - commit_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head" - }, - listCollaborators: { - method: "GET", - params: { - affiliation: { enum: ["outside", "direct", "all"], type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/collaborators" - }, - listCommentsForCommit: { - method: "GET", - params: { - commit_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { alias: "commit_sha", deprecated: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/comments" - }, - listCommitComments: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments" - }, - listCommits: { - method: "GET", - params: { - author: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - path: { type: "string" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - sha: { type: "string" }, - since: { type: "string" }, - until: { type: "string" } - }, - url: "/repos/:owner/:repo/commits" - }, - listContributors: { - method: "GET", - params: { - anon: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/contributors" - }, - listDeployKeys: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/keys" - }, - listDeploymentStatuses: { - method: "GET", - params: { - deployment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses" - }, - listDeployments: { - method: "GET", - params: { - environment: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { type: "string" }, - repo: { required: true, type: "string" }, - sha: { type: "string" }, - task: { type: "string" } - }, - url: "/repos/:owner/:repo/deployments" - }, - listDownloads: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/downloads" - }, - listForOrg: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { - enum: [ - "all", - "public", - "private", - "forks", - "sources", - "member", - "internal" - ], - type: "string" - } - }, - url: "/orgs/:org/repos" - }, - listForUser: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { enum: ["all", "owner", "member"], type: "string" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/repos" - }, - listForks: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - sort: { enum: ["newest", "oldest", "stargazers"], type: "string" } - }, - url: "/repos/:owner/:repo/forks" - }, - listHooks: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks" - }, - listInvitations: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/invitations" - }, - listInvitationsForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/repository_invitations" - }, - listLanguages: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/languages" - }, - listPagesBuilds: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages/builds" - }, - listProtectedBranchRequiredStatusChecksContexts: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - listProtectedBranchTeamRestrictions: { - deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)", - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - listProtectedBranchUserRestrictions: { - deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)", - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - listPublic: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "integer" } - }, - url: "/repositories" - }, - listPullRequestsAssociatedWithCommit: { - headers: { accept: "application/vnd.github.groot-preview+json" }, - method: "GET", - params: { - commit_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/pulls" - }, - listReleases: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases" - }, - listStatusesForRef: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref/statuses" - }, - listTags: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/tags" - }, - listTeams: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/teams" - }, - listTeamsWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - listTopics: { - headers: { accept: "application/vnd.github.mercy-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/topics" - }, - listUsersWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - merge: { - method: "POST", - params: { - base: { required: true, type: "string" }, - commit_message: { type: "string" }, - head: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/merges" - }, - pingHook: { - method: "POST", - params: { - hook_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks/:hook_id/pings" - }, - removeBranchProtection: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - removeCollaborator: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - removeDeployKey: { - method: "DELETE", - params: { - key_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/keys/:key_id" - }, - removeProtectedBranchAdminEnforcement: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - removeProtectedBranchAppRestrictions: { - method: "DELETE", - params: { - apps: { mapTo: "data", required: true, type: "string[]" }, - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - removeProtectedBranchPullRequestReviewEnforcement: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - removeProtectedBranchRequiredSignatures: { - headers: { accept: "application/vnd.github.zzzax-preview+json" }, - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - removeProtectedBranchRequiredStatusChecks: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - removeProtectedBranchRequiredStatusChecksContexts: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - contexts: { mapTo: "data", required: true, type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - removeProtectedBranchRestrictions: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - removeProtectedBranchTeamRestrictions: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - teams: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - removeProtectedBranchUserRestrictions: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - users: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - replaceProtectedBranchAppRestrictions: { - method: "PUT", - params: { - apps: { mapTo: "data", required: true, type: "string[]" }, - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - replaceProtectedBranchRequiredStatusChecksContexts: { - method: "PUT", - params: { - branch: { required: true, type: "string" }, - contexts: { mapTo: "data", required: true, type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - replaceProtectedBranchTeamRestrictions: { - method: "PUT", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - teams: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - replaceProtectedBranchUserRestrictions: { - method: "PUT", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - users: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - replaceTopics: { - headers: { accept: "application/vnd.github.mercy-preview+json" }, - method: "PUT", - params: { - names: { required: true, type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/topics" - }, - requestPageBuild: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages/builds" - }, - retrieveCommunityProfileMetrics: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/community/profile" - }, - testPushHook: { - method: "POST", - params: { - hook_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks/:hook_id/tests" - }, - transfer: { - method: "POST", - params: { - new_owner: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_ids: { type: "integer[]" } - }, - url: "/repos/:owner/:repo/transfer" - }, - update: { - method: "PATCH", - params: { - allow_merge_commit: { type: "boolean" }, - allow_rebase_merge: { type: "boolean" }, - allow_squash_merge: { type: "boolean" }, - archived: { type: "boolean" }, - default_branch: { type: "string" }, - delete_branch_on_merge: { type: "boolean" }, - description: { type: "string" }, - has_issues: { type: "boolean" }, - has_projects: { type: "boolean" }, - has_wiki: { type: "boolean" }, - homepage: { type: "string" }, - is_template: { type: "boolean" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - private: { type: "boolean" }, - repo: { required: true, type: "string" }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" - } - }, - url: "/repos/:owner/:repo" - }, - updateBranchProtection: { - method: "PUT", - params: { - allow_deletions: { type: "boolean" }, - allow_force_pushes: { allowNull: true, type: "boolean" }, - branch: { required: true, type: "string" }, - enforce_admins: { allowNull: true, required: true, type: "boolean" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - required_linear_history: { type: "boolean" }, - required_pull_request_reviews: { - allowNull: true, - required: true, - type: "object" - }, - "required_pull_request_reviews.dismiss_stale_reviews": { - type: "boolean" - }, - "required_pull_request_reviews.dismissal_restrictions": { - type: "object" - }, - "required_pull_request_reviews.dismissal_restrictions.teams": { - type: "string[]" - }, - "required_pull_request_reviews.dismissal_restrictions.users": { - type: "string[]" - }, - "required_pull_request_reviews.require_code_owner_reviews": { - type: "boolean" - }, - "required_pull_request_reviews.required_approving_review_count": { - type: "integer" - }, - required_status_checks: { - allowNull: true, - required: true, - type: "object" - }, - "required_status_checks.contexts": { required: true, type: "string[]" }, - "required_status_checks.strict": { required: true, type: "boolean" }, - restrictions: { allowNull: true, required: true, type: "object" }, - "restrictions.apps": { type: "string[]" }, - "restrictions.teams": { required: true, type: "string[]" }, - "restrictions.users": { required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - updateCommitComment: { - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - updateFile: { - deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)", - method: "PUT", - params: { - author: { type: "object" }, - "author.email": { required: true, type: "string" }, - "author.name": { required: true, type: "string" }, - branch: { type: "string" }, - committer: { type: "object" }, - "committer.email": { required: true, type: "string" }, - "committer.name": { required: true, type: "string" }, - content: { required: true, type: "string" }, - message: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { type: "string" } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - updateHook: { - method: "PATCH", - params: { - active: { type: "boolean" }, - add_events: { type: "string[]" }, - config: { type: "object" }, - "config.content_type": { type: "string" }, - "config.insecure_ssl": { type: "string" }, - "config.secret": { type: "string" }, - "config.url": { required: true, type: "string" }, - events: { type: "string[]" }, - hook_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - remove_events: { type: "string[]" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - updateInformationAboutPagesSite: { - method: "PUT", - params: { - cname: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - source: { - enum: ['"gh-pages"', '"master"', '"master /docs"'], - type: "string" - } - }, - url: "/repos/:owner/:repo/pages" - }, - updateInvitation: { - method: "PATCH", - params: { - invitation_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - permissions: { enum: ["read", "write", "admin"], type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/invitations/:invitation_id" - }, - updateProtectedBranchPullRequestReviewEnforcement: { - method: "PATCH", - params: { - branch: { required: true, type: "string" }, - dismiss_stale_reviews: { type: "boolean" }, - dismissal_restrictions: { type: "object" }, - "dismissal_restrictions.teams": { type: "string[]" }, - "dismissal_restrictions.users": { type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - require_code_owner_reviews: { type: "boolean" }, - required_approving_review_count: { type: "integer" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - updateProtectedBranchRequiredStatusChecks: { - method: "PATCH", - params: { - branch: { required: true, type: "string" }, - contexts: { type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - strict: { type: "boolean" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - updateRelease: { - method: "PATCH", - params: { - body: { type: "string" }, - draft: { type: "boolean" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - prerelease: { type: "boolean" }, - release_id: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - tag_name: { type: "string" }, - target_commitish: { type: "string" } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - updateReleaseAsset: { - method: "PATCH", - params: { - asset_id: { required: true, type: "integer" }, - label: { type: "string" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - uploadReleaseAsset: { - method: "POST", - params: { - data: { mapTo: "data", required: true, type: "string | object" }, - file: { alias: "data", deprecated: true, type: "string | object" }, - headers: { required: true, type: "object" }, - "headers.content-length": { required: true, type: "integer" }, - "headers.content-type": { required: true, type: "string" }, - label: { type: "string" }, - name: { required: true, type: "string" }, - url: { required: true, type: "string" } - }, - url: ":url" - } + acceptInvitation: ["PATCH /user/repository_invitations/{invitation_id}"], + addAppAccessRestrictions: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + {}, + { mapToData: "apps" }, + ], + addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"], + addStatusCheckContexts: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + {}, + { mapToData: "contexts" }, + ], + addTeamAccessRestrictions: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + {}, + { mapToData: "teams" }, + ], + addUserAccessRestrictions: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + {}, + { mapToData: "users" }, + ], + checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"], + checkVulnerabilityAlerts: [ + "GET /repos/{owner}/{repo}/vulnerability-alerts", + { mediaType: { previews: ["dorian"] } }, + ], + compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"], + createCommitComment: [ + "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments", + ], + createCommitSignatureProtection: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + { mediaType: { previews: ["zzzax"] } }, + ], + createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"], + createDeployKey: ["POST /repos/{owner}/{repo}/keys"], + createDeployment: ["POST /repos/{owner}/{repo}/deployments"], + createDeploymentStatus: [ + "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses", + ], + createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"], + createForAuthenticatedUser: ["POST /user/repos"], + createFork: ["POST /repos/{owner}/{repo}/forks"], + createInOrg: ["POST /orgs/{org}/repos"], + createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"], + createPagesSite: [ + "POST /repos/{owner}/{repo}/pages", + { mediaType: { previews: ["switcheroo"] } }, + ], + createRelease: ["POST /repos/{owner}/{repo}/releases"], + createUsingTemplate: [ + "POST /repos/{template_owner}/{template_repo}/generate", + { mediaType: { previews: ["baptiste"] } }, + ], + createWebhook: ["POST /repos/{owner}/{repo}/hooks"], + declineInvitation: ["DELETE /user/repository_invitations/{invitation_id}"], + delete: ["DELETE /repos/{owner}/{repo}"], + deleteAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions", + ], + deleteAdminBranchProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + ], + deleteBranchProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection", + ], + deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"], + deleteCommitSignatureProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + { mediaType: { previews: ["zzzax"] } }, + ], + deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"], + deleteDeployment: [ + "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}", + ], + deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"], + deleteInvitation: [ + "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}", + ], + deletePagesSite: [ + "DELETE /repos/{owner}/{repo}/pages", + { mediaType: { previews: ["switcheroo"] } }, + ], + deletePullRequestReviewProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", + ], + deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"], + deleteReleaseAsset: [ + "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}", + ], + deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"], + disableAutomatedSecurityFixes: [ + "DELETE /repos/{owner}/{repo}/automated-security-fixes", + { mediaType: { previews: ["london"] } }, + ], + disableVulnerabilityAlerts: [ + "DELETE /repos/{owner}/{repo}/vulnerability-alerts", + { mediaType: { previews: ["dorian"] } }, + ], + downloadArchive: [ + "GET /repos/{owner}/{repo}/zipball/{ref}", + {}, + { renamed: ["repos", "downloadZipballArchive"] }, + ], + downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"], + downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"], + enableAutomatedSecurityFixes: [ + "PUT /repos/{owner}/{repo}/automated-security-fixes", + { mediaType: { previews: ["london"] } }, + ], + enableVulnerabilityAlerts: [ + "PUT /repos/{owner}/{repo}/vulnerability-alerts", + { mediaType: { previews: ["dorian"] } }, + ], + get: ["GET /repos/{owner}/{repo}"], + getAccessRestrictions: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions", + ], + getAdminBranchProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + ], + getAllStatusCheckContexts: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + ], + getAllTopics: [ + "GET /repos/{owner}/{repo}/topics", + { mediaType: { previews: ["mercy"] } }, + ], + getAppsWithAccessToProtectedBranch: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + ], + getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"], + getBranchProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection", + ], + getClones: ["GET /repos/{owner}/{repo}/traffic/clones"], + getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"], + getCollaboratorPermissionLevel: [ + "GET /repos/{owner}/{repo}/collaborators/{username}/permission", + ], + getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"], + getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"], + getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"], + getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"], + getCommitSignatureProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + { mediaType: { previews: ["zzzax"] } }, + ], + getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"], + getContent: ["GET /repos/{owner}/{repo}/contents/{path}"], + getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"], + getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"], + getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"], + getDeploymentStatus: [ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", + ], + getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"], + getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"], + getPages: ["GET /repos/{owner}/{repo}/pages"], + getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"], + getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"], + getPullRequestReviewProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", + ], + getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"], + getReadme: ["GET /repos/{owner}/{repo}/readme"], + getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"], + getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"], + getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"], + getStatusChecksProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + ], + getTeamsWithAccessToProtectedBranch: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + ], + getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"], + getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"], + getUsersWithAccessToProtectedBranch: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + ], + getViews: ["GET /repos/{owner}/{repo}/traffic/views"], + getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"], + getWebhookConfigForRepo: [ + "GET /repos/{owner}/{repo}/hooks/{hook_id}/config", + ], + listBranches: ["GET /repos/{owner}/{repo}/branches"], + listBranchesForHeadCommit: [ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", + { mediaType: { previews: ["groot"] } }, + ], + listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"], + listCommentsForCommit: [ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments", + ], + listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"], + listCommitStatusesForRef: [ + "GET /repos/{owner}/{repo}/commits/{ref}/statuses", + ], + listCommits: ["GET /repos/{owner}/{repo}/commits"], + listContributors: ["GET /repos/{owner}/{repo}/contributors"], + listDeployKeys: ["GET /repos/{owner}/{repo}/keys"], + listDeploymentStatuses: [ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses", + ], + listDeployments: ["GET /repos/{owner}/{repo}/deployments"], + listForAuthenticatedUser: ["GET /user/repos"], + listForOrg: ["GET /orgs/{org}/repos"], + listForUser: ["GET /users/{username}/repos"], + listForks: ["GET /repos/{owner}/{repo}/forks"], + listInvitations: ["GET /repos/{owner}/{repo}/invitations"], + listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"], + listLanguages: ["GET /repos/{owner}/{repo}/languages"], + listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"], + listPublic: ["GET /repositories"], + listPullRequestsAssociatedWithCommit: [ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls", + { mediaType: { previews: ["groot"] } }, + ], + listReleaseAssets: [ + "GET /repos/{owner}/{repo}/releases/{release_id}/assets", + ], + listReleases: ["GET /repos/{owner}/{repo}/releases"], + listTags: ["GET /repos/{owner}/{repo}/tags"], + listTeams: ["GET /repos/{owner}/{repo}/teams"], + listWebhooks: ["GET /repos/{owner}/{repo}/hooks"], + merge: ["POST /repos/{owner}/{repo}/merges"], + pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"], + removeAppAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + {}, + { mapToData: "apps" }, + ], + removeCollaborator: [ + "DELETE /repos/{owner}/{repo}/collaborators/{username}", + ], + removeStatusCheckContexts: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + {}, + { mapToData: "contexts" }, + ], + removeStatusCheckProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + ], + removeTeamAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + {}, + { mapToData: "teams" }, + ], + removeUserAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + {}, + { mapToData: "users" }, + ], + replaceAllTopics: [ + "PUT /repos/{owner}/{repo}/topics", + { mediaType: { previews: ["mercy"] } }, + ], + requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"], + setAdminBranchProtection: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + ], + setAppAccessRestrictions: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + {}, + { mapToData: "apps" }, + ], + setStatusCheckContexts: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + {}, + { mapToData: "contexts" }, + ], + setTeamAccessRestrictions: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + {}, + { mapToData: "teams" }, + ], + setUserAccessRestrictions: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + {}, + { mapToData: "users" }, + ], + testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"], + transfer: ["POST /repos/{owner}/{repo}/transfer"], + update: ["PATCH /repos/{owner}/{repo}"], + updateBranchProtection: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection", + ], + updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"], + updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"], + updateInvitation: [ + "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}", + ], + updatePullRequestReviewProtection: [ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", + ], + updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"], + updateReleaseAsset: [ + "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}", + ], + updateStatusCheckPotection: [ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + {}, + { renamed: ["repos", "updateStatusCheckProtection"] }, + ], + updateStatusCheckProtection: [ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + ], + updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"], + updateWebhookConfigForRepo: [ + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config", + ], + uploadReleaseAsset: [ + "POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}", + { baseUrl: "https://uploads.github.com" }, + ], }, search: { - code: { - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { enum: ["indexed"], type: "string" } - }, - url: "/search/code" - }, - commits: { - headers: { accept: "application/vnd.github.cloak-preview+json" }, - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { enum: ["author-date", "committer-date"], type: "string" } - }, - url: "/search/commits" - }, - issues: { - deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)", - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { - enum: [ - "comments", - "reactions", - "reactions-+1", - "reactions--1", - "reactions-smile", - "reactions-thinking_face", - "reactions-heart", - "reactions-tada", - "interactions", - "created", - "updated" - ], - type: "string" - } - }, - url: "/search/issues" - }, - issuesAndPullRequests: { - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { - enum: [ - "comments", - "reactions", - "reactions-+1", - "reactions--1", - "reactions-smile", - "reactions-thinking_face", - "reactions-heart", - "reactions-tada", - "interactions", - "created", - "updated" - ], - type: "string" - } - }, - url: "/search/issues" - }, - labels: { - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - q: { required: true, type: "string" }, - repository_id: { required: true, type: "integer" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/search/labels" - }, - repos: { - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { - enum: ["stars", "forks", "help-wanted-issues", "updated"], - type: "string" - } - }, - url: "/search/repositories" - }, - topics: { - method: "GET", - params: { q: { required: true, type: "string" } }, - url: "/search/topics" - }, - users: { - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { enum: ["followers", "repositories", "joined"], type: "string" } - }, - url: "/search/users" - } + code: ["GET /search/code"], + commits: ["GET /search/commits", { mediaType: { previews: ["cloak"] } }], + issuesAndPullRequests: ["GET /search/issues"], + labels: ["GET /search/labels"], + repos: ["GET /search/repositories"], + topics: ["GET /search/topics", { mediaType: { previews: ["mercy"] } }], + users: ["GET /search/users"], }, teams: { - addMember: { - deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)", - method: "PUT", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - addMemberLegacy: { - deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy", - method: "PUT", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - addOrUpdateMembership: { - deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)", - method: "PUT", - params: { - role: { enum: ["member", "maintainer"], type: "string" }, - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - addOrUpdateMembershipInOrg: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - role: { enum: ["member", "maintainer"], type: "string" }, - team_slug: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - addOrUpdateMembershipLegacy: { - deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy", - method: "PUT", - params: { - role: { enum: ["member", "maintainer"], type: "string" }, - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - addOrUpdateProject: { - deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PUT", - params: { - permission: { enum: ["read", "write", "admin"], type: "string" }, - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - addOrUpdateProjectInOrg: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PUT", - params: { - org: { required: true, type: "string" }, - permission: { enum: ["read", "write", "admin"], type: "string" }, - project_id: { required: true, type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - addOrUpdateProjectLegacy: { - deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PUT", - params: { - permission: { enum: ["read", "write", "admin"], type: "string" }, - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - addOrUpdateRepo: { - deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)", - method: "PUT", - params: { - owner: { required: true, type: "string" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - addOrUpdateRepoInOrg: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - repo: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - addOrUpdateRepoLegacy: { - deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy", - method: "PUT", - params: { - owner: { required: true, type: "string" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - checkManagesRepo: { - deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)", - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - checkManagesRepoInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - checkManagesRepoLegacy: { - deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy", - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - create: { - method: "POST", - params: { - description: { type: "string" }, - maintainers: { type: "string[]" }, - name: { required: true, type: "string" }, - org: { required: true, type: "string" }, - parent_team_id: { type: "integer" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - privacy: { enum: ["secret", "closed"], type: "string" }, - repo_names: { type: "string[]" } - }, - url: "/orgs/:org/teams" - }, - createDiscussion: { - deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)", - method: "POST", - params: { - body: { required: true, type: "string" }, - private: { type: "boolean" }, - team_id: { required: true, type: "integer" }, - title: { required: true, type: "string" } - }, - url: "/teams/:team_id/discussions" - }, - createDiscussionComment: { - deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)", - method: "POST", - params: { - body: { required: true, type: "string" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - createDiscussionCommentInOrg: { - method: "POST", - params: { - body: { required: true, type: "string" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" - }, - createDiscussionCommentLegacy: { - deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy", - method: "POST", - params: { - body: { required: true, type: "string" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - createDiscussionInOrg: { - method: "POST", - params: { - body: { required: true, type: "string" }, - org: { required: true, type: "string" }, - private: { type: "boolean" }, - team_slug: { required: true, type: "string" }, - title: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions" - }, - createDiscussionLegacy: { - deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy", - method: "POST", - params: { - body: { required: true, type: "string" }, - private: { type: "boolean" }, - team_id: { required: true, type: "integer" }, - title: { required: true, type: "string" } - }, - url: "/teams/:team_id/discussions" - }, - delete: { - deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)", - method: "DELETE", - params: { team_id: { required: true, type: "integer" } }, - url: "/teams/:team_id" - }, - deleteDiscussion: { - deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)", - method: "DELETE", - params: { - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - deleteDiscussionComment: { - deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)", - method: "DELETE", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionCommentInOrg: { - method: "DELETE", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionCommentLegacy: { - deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy", - method: "DELETE", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionInOrg: { - method: "DELETE", - params: { - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - deleteDiscussionLegacy: { - deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy", - method: "DELETE", - params: { - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - deleteInOrg: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug" - }, - deleteLegacy: { - deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy", - method: "DELETE", - params: { team_id: { required: true, type: "integer" } }, - url: "/teams/:team_id" - }, - get: { - deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)", - method: "GET", - params: { team_id: { required: true, type: "integer" } }, - url: "/teams/:team_id" - }, - getByName: { - method: "GET", - params: { - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug" - }, - getDiscussion: { - deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)", - method: "GET", - params: { - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - getDiscussionComment: { - deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)", - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionCommentInOrg: { - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionCommentLegacy: { - deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy", - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionInOrg: { - method: "GET", - params: { - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - getDiscussionLegacy: { - deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy", - method: "GET", - params: { - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - getLegacy: { - deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy", - method: "GET", - params: { team_id: { required: true, type: "integer" } }, - url: "/teams/:team_id" - }, - getMember: { - deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)", - method: "GET", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - getMemberLegacy: { - deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy", - method: "GET", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - getMembership: { - deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)", - method: "GET", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - getMembershipInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - getMembershipLegacy: { - deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy", - method: "GET", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - list: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/teams" - }, - listChild: { - deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/teams" - }, - listChildInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/teams" - }, - listChildLegacy: { - deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/teams" - }, - listDiscussionComments: { - deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)", - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - listDiscussionCommentsInOrg: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" - }, - listDiscussionCommentsLegacy: { - deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy", - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - listDiscussions: { - deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)", - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions" - }, - listDiscussionsInOrg: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions" - }, - listDiscussionsLegacy: { - deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy", - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions" - }, - listForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/teams" - }, - listMembers: { - deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - role: { enum: ["member", "maintainer", "all"], type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/members" - }, - listMembersInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - role: { enum: ["member", "maintainer", "all"], type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/members" - }, - listMembersLegacy: { - deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - role: { enum: ["member", "maintainer", "all"], type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/members" - }, - listPendingInvitations: { - deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/invitations" - }, - listPendingInvitationsInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/invitations" - }, - listPendingInvitationsLegacy: { - deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/invitations" - }, - listProjects: { - deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects" - }, - listProjectsInOrg: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/projects" - }, - listProjectsLegacy: { - deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects" - }, - listRepos: { - deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos" - }, - listReposInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/repos" - }, - listReposLegacy: { - deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos" - }, - removeMember: { - deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)", - method: "DELETE", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - removeMemberLegacy: { - deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy", - method: "DELETE", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - removeMembership: { - deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)", - method: "DELETE", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - removeMembershipInOrg: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - removeMembershipLegacy: { - deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy", - method: "DELETE", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - removeProject: { - deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)", - method: "DELETE", - params: { - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - removeProjectInOrg: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - project_id: { required: true, type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - removeProjectLegacy: { - deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy", - method: "DELETE", - params: { - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - removeRepo: { - deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)", - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - removeRepoInOrg: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - removeRepoLegacy: { - deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy", - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - reviewProject: { - deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - reviewProjectInOrg: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - org: { required: true, type: "string" }, - project_id: { required: true, type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - reviewProjectLegacy: { - deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - update: { - deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)", - method: "PATCH", - params: { - description: { type: "string" }, - name: { required: true, type: "string" }, - parent_team_id: { type: "integer" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - privacy: { enum: ["secret", "closed"], type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id" - }, - updateDiscussion: { - deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)", - method: "PATCH", - params: { - body: { type: "string" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" }, - title: { type: "string" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - updateDiscussionComment: { - deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)", - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionCommentInOrg: { - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionCommentLegacy: { - deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy", - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionInOrg: { - method: "PATCH", - params: { - body: { type: "string" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" }, - title: { type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - updateDiscussionLegacy: { - deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy", - method: "PATCH", - params: { - body: { type: "string" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" }, - title: { type: "string" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - updateInOrg: { - method: "PATCH", - params: { - description: { type: "string" }, - name: { required: true, type: "string" }, - org: { required: true, type: "string" }, - parent_team_id: { type: "integer" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - privacy: { enum: ["secret", "closed"], type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug" - }, - updateLegacy: { - deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy", - method: "PATCH", - params: { - description: { type: "string" }, - name: { required: true, type: "string" }, - parent_team_id: { type: "integer" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - privacy: { enum: ["secret", "closed"], type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id" - } + addOrUpdateMembershipForUserInOrg: [ + "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}", + ], + addOrUpdateProjectPermissionsInOrg: [ + "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}", + { mediaType: { previews: ["inertia"] } }, + ], + addOrUpdateRepoPermissionsInOrg: [ + "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", + ], + checkPermissionsForProjectInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}", + { mediaType: { previews: ["inertia"] } }, + ], + checkPermissionsForRepoInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", + ], + create: ["POST /orgs/{org}/teams"], + createDiscussionCommentInOrg: [ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", + ], + createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"], + deleteDiscussionCommentInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", + ], + deleteDiscussionInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", + ], + deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"], + getByName: ["GET /orgs/{org}/teams/{team_slug}"], + getDiscussionCommentInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", + ], + getDiscussionInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", + ], + getMembershipForUserInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/memberships/{username}", + ], + list: ["GET /orgs/{org}/teams"], + listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"], + listDiscussionCommentsInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", + ], + listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"], + listForAuthenticatedUser: ["GET /user/teams"], + listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"], + listPendingInvitationsInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/invitations", + ], + listProjectsInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"], + removeMembershipForUserInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}", + ], + removeProjectInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}", + ], + removeRepoInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", + ], + updateDiscussionCommentInOrg: [ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", + ], + updateDiscussionInOrg: [ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", + ], + updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"], }, users: { - addEmails: { - method: "POST", - params: { emails: { required: true, type: "string[]" } }, - url: "/user/emails" - }, - block: { - method: "PUT", - params: { username: { required: true, type: "string" } }, - url: "/user/blocks/:username" - }, - checkBlocked: { - method: "GET", - params: { username: { required: true, type: "string" } }, - url: "/user/blocks/:username" - }, - checkFollowing: { - method: "GET", - params: { username: { required: true, type: "string" } }, - url: "/user/following/:username" - }, - checkFollowingForUser: { - method: "GET", - params: { - target_user: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/following/:target_user" - }, - createGpgKey: { - method: "POST", - params: { armored_public_key: { type: "string" } }, - url: "/user/gpg_keys" - }, - createPublicKey: { - method: "POST", - params: { key: { type: "string" }, title: { type: "string" } }, - url: "/user/keys" - }, - deleteEmails: { - method: "DELETE", - params: { emails: { required: true, type: "string[]" } }, - url: "/user/emails" - }, - deleteGpgKey: { - method: "DELETE", - params: { gpg_key_id: { required: true, type: "integer" } }, - url: "/user/gpg_keys/:gpg_key_id" - }, - deletePublicKey: { - method: "DELETE", - params: { key_id: { required: true, type: "integer" } }, - url: "/user/keys/:key_id" - }, - follow: { - method: "PUT", - params: { username: { required: true, type: "string" } }, - url: "/user/following/:username" - }, - getAuthenticated: { method: "GET", params: {}, url: "/user" }, - getByUsername: { - method: "GET", - params: { username: { required: true, type: "string" } }, - url: "/users/:username" - }, - getContextForUser: { - method: "GET", - params: { - subject_id: { type: "string" }, - subject_type: { - enum: ["organization", "repository", "issue", "pull_request"], - type: "string" - }, - username: { required: true, type: "string" } - }, - url: "/users/:username/hovercard" - }, - getGpgKey: { - method: "GET", - params: { gpg_key_id: { required: true, type: "integer" } }, - url: "/user/gpg_keys/:gpg_key_id" - }, - getPublicKey: { - method: "GET", - params: { key_id: { required: true, type: "integer" } }, - url: "/user/keys/:key_id" - }, - list: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" } - }, - url: "/users" - }, - listBlocked: { method: "GET", params: {}, url: "/user/blocks" }, - listEmails: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/emails" - }, - listFollowersForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/followers" - }, - listFollowersForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/followers" - }, - listFollowingForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/following" - }, - listFollowingForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/following" - }, - listGpgKeys: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/gpg_keys" - }, - listGpgKeysForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/gpg_keys" - }, - listPublicEmails: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/public_emails" - }, - listPublicKeys: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/keys" - }, - listPublicKeysForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/keys" - }, - togglePrimaryEmailVisibility: { - method: "PATCH", - params: { - email: { required: true, type: "string" }, - visibility: { required: true, type: "string" } - }, - url: "/user/email/visibility" - }, - unblock: { - method: "DELETE", - params: { username: { required: true, type: "string" } }, - url: "/user/blocks/:username" - }, - unfollow: { - method: "DELETE", - params: { username: { required: true, type: "string" } }, - url: "/user/following/:username" - }, - updateAuthenticated: { - method: "PATCH", - params: { - bio: { type: "string" }, - blog: { type: "string" }, - company: { type: "string" }, - email: { type: "string" }, - hireable: { type: "boolean" }, - location: { type: "string" }, - name: { type: "string" } - }, - url: "/user" - } - } + addEmailForAuthenticated: ["POST /user/emails"], + block: ["PUT /user/blocks/{username}"], + checkBlocked: ["GET /user/blocks/{username}"], + checkFollowingForUser: ["GET /users/{username}/following/{target_user}"], + checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"], + createGpgKeyForAuthenticated: ["POST /user/gpg_keys"], + createPublicSshKeyForAuthenticated: ["POST /user/keys"], + deleteEmailForAuthenticated: ["DELETE /user/emails"], + deleteGpgKeyForAuthenticated: ["DELETE /user/gpg_keys/{gpg_key_id}"], + deletePublicSshKeyForAuthenticated: ["DELETE /user/keys/{key_id}"], + follow: ["PUT /user/following/{username}"], + getAuthenticated: ["GET /user"], + getByUsername: ["GET /users/{username}"], + getContextForUser: ["GET /users/{username}/hovercard"], + getGpgKeyForAuthenticated: ["GET /user/gpg_keys/{gpg_key_id}"], + getPublicSshKeyForAuthenticated: ["GET /user/keys/{key_id}"], + list: ["GET /users"], + listBlockedByAuthenticated: ["GET /user/blocks"], + listEmailsForAuthenticated: ["GET /user/emails"], + listFollowedByAuthenticated: ["GET /user/following"], + listFollowersForAuthenticatedUser: ["GET /user/followers"], + listFollowersForUser: ["GET /users/{username}/followers"], + listFollowingForUser: ["GET /users/{username}/following"], + listGpgKeysForAuthenticated: ["GET /user/gpg_keys"], + listGpgKeysForUser: ["GET /users/{username}/gpg_keys"], + listPublicEmailsForAuthenticated: ["GET /user/public_emails"], + listPublicKeysForUser: ["GET /users/{username}/keys"], + listPublicSshKeysForAuthenticated: ["GET /user/keys"], + setPrimaryEmailVisibilityForAuthenticated: ["PATCH /user/email/visibility"], + unblock: ["DELETE /user/blocks/{username}"], + unfollow: ["DELETE /user/following/{username}"], + updateAuthenticated: ["PATCH /user"], + }, }; +export default Endpoints; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/method-types.js b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/method-types.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/method-types.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/parameters-and-response-types.js b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/parameters-and-response-types.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/parameters-and-response-types.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js index e44276748..0535b19eb 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js @@ -1,7 +1,6 @@ -import { Deprecation } from "deprecation"; -import endpointsByScope from "./generated/endpoints"; +import ENDPOINTS from "./generated/endpoints"; import { VERSION } from "./version"; -import { registerEndpoints } from "./register-endpoints"; +import { endpointsToMethods } from "./endpoints-to-methods"; /** * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is @@ -13,26 +12,6 @@ import { registerEndpoints } from "./register-endpoints"; * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1 */ export function restEndpointMethods(octokit) { - // @ts-ignore - octokit.registerEndpoints = registerEndpoints.bind(null, octokit); - registerEndpoints(octokit, endpointsByScope); - // Aliasing scopes for backward compatibility - // See https://github.com/octokit/rest.js/pull/1134 - [ - ["gitdata", "git"], - ["authorization", "oauthAuthorizations"], - ["pullRequests", "pulls"] - ].forEach(([deprecatedScope, scope]) => { - Object.defineProperty(octokit, deprecatedScope, { - get() { - octokit.log.warn( - // @ts-ignore - new Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); - // @ts-ignore - return octokit[scope]; - } - }); - }); - return {}; + return endpointsToMethods(octokit, ENDPOINTS); } restEndpointMethods.VERSION = VERSION; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/register-endpoints.js b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/register-endpoints.js deleted file mode 100644 index 7b0b3c231..000000000 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/register-endpoints.js +++ /dev/null @@ -1,60 +0,0 @@ -import { Deprecation } from "deprecation"; -export function registerEndpoints(octokit, routes) { - Object.keys(routes).forEach(namespaceName => { - if (!octokit[namespaceName]) { - octokit[namespaceName] = {}; - } - Object.keys(routes[namespaceName]).forEach(apiName => { - const apiOptions = routes[namespaceName][apiName]; - const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => { - if (typeof apiOptions[key] !== "undefined") { - map[key] = apiOptions[key]; - } - return map; - }, {}); - endpointDefaults.request = { - validate: apiOptions.params - }; - let request = octokit.request.defaults(endpointDefaults); - // patch request & endpoint methods to support deprecated parameters. - // Not the most elegant solution, but we don’t want to move deprecation - // logic into octokit/endpoint.js as it’s out of scope - const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated); - if (hasDeprecatedParam) { - const patch = patchForDeprecation.bind(null, octokit, apiOptions); - request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`); - request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`); - request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`); - } - if (apiOptions.deprecated) { - octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() { - octokit.log.warn(new Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`)); - octokit[namespaceName][apiName] = request; - return request.apply(null, arguments); - }, request); - return; - } - octokit[namespaceName][apiName] = request; - }); - }); -} -function patchForDeprecation(octokit, apiOptions, method, methodName) { - const patchedMethod = (options) => { - options = Object.assign({}, options); - Object.keys(options).forEach(key => { - if (apiOptions.params[key] && apiOptions.params[key].deprecated) { - const aliasKey = apiOptions.params[key].alias; - octokit.log.warn(new Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`)); - if (!(aliasKey in options)) { - options[aliasKey] = options[key]; - } - delete options[key]; - } - }); - return method(options); - }; - Object.keys(method).forEach(key => { - patchedMethod[key] = method[key]; - }); - return patchedMethod; -} diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/types.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js index 48b74baff..c51216ae1 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js @@ -1 +1 @@ -export const VERSION = "2.4.0"; +export const VERSION = "4.3.1"; diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/endpoints-to-methods.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/endpoints-to-methods.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/endpoints-to-methods.d.ts rename to node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/endpoints-to-methods.d.ts diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/endpoints.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/endpoints.d.ts index 528dd6e76..a3c1d92ad 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/endpoints.d.ts +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/endpoints.d.ts @@ -1,13085 +1,3 @@ -declare const _default: { - actions: { - cancelWorkflowRun: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - run_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createOrUpdateSecretForRepo: { - method: string; - params: { - encrypted_value: { - type: string; - }; - key_id: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createRegistrationToken: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createRemoveToken: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteArtifact: { - method: string; - params: { - artifact_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteSecretFromRepo: { - method: string; - params: { - name: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - downloadArtifact: { - method: string; - params: { - archive_format: { - required: boolean; - type: string; - }; - artifact_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getArtifact: { - method: string; - params: { - artifact_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getPublicKey: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getSecret: { - method: string; - params: { - name: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getSelfHostedRunner: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - runner_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getWorkflow: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - workflow_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getWorkflowJob: { - method: string; - params: { - job_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getWorkflowRun: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - run_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listDownloadsForSelfHostedRunnerApplication: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listJobsForWorkflowRun: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - run_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listRepoWorkflowRuns: { - method: string; - params: { - actor: { - type: string; - }; - branch: { - type: string; - }; - event: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - status: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listRepoWorkflows: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listSecretsForRepo: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listSelfHostedRunnersForRepo: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listWorkflowJobLogs: { - method: string; - params: { - job_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listWorkflowRunArtifacts: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - run_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listWorkflowRunLogs: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - run_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listWorkflowRuns: { - method: string; - params: { - actor: { - type: string; - }; - branch: { - type: string; - }; - event: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - status: { - enum: string[]; - type: string; - }; - workflow_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - reRunWorkflow: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - run_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeSelfHostedRunner: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - runner_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - activity: { - checkStarringRepo: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteRepoSubscription: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteThreadSubscription: { - method: string; - params: { - thread_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getRepoSubscription: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getThread: { - method: string; - params: { - thread_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getThreadSubscription: { - method: string; - params: { - thread_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listEventsForOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listEventsForUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listFeeds: { - method: string; - params: {}; - url: string; - }; - listNotifications: { - method: string; - params: { - all: { - type: string; - }; - before: { - type: string; - }; - page: { - type: string; - }; - participating: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - }; - url: string; - }; - listNotificationsForRepo: { - method: string; - params: { - all: { - type: string; - }; - before: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - participating: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - since: { - type: string; - }; - }; - url: string; - }; - listPublicEvents: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listPublicEventsForOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listPublicEventsForRepoNetwork: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listPublicEventsForUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listReceivedEventsForUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listReceivedPublicEventsForUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listRepoEvents: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listReposStarredByAuthenticatedUser: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listReposStarredByUser: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listReposWatchedByUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listStargazersForRepo: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listWatchedReposForAuthenticatedUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listWatchersForRepo: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - markAsRead: { - method: string; - params: { - last_read_at: { - type: string; - }; - }; - url: string; - }; - markNotificationsAsReadForRepo: { - method: string; - params: { - last_read_at: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - markThreadAsRead: { - method: string; - params: { - thread_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - setRepoSubscription: { - method: string; - params: { - ignored: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - subscribed: { - type: string; - }; - }; - url: string; - }; - setThreadSubscription: { - method: string; - params: { - ignored: { - type: string; - }; - thread_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - starRepo: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - unstarRepo: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - apps: { - addRepoToInstallation: { - headers: { - accept: string; - }; - method: string; - params: { - installation_id: { - required: boolean; - type: string; - }; - repository_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkAccountIsAssociatedWithAny: { - method: string; - params: { - account_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkAccountIsAssociatedWithAnyStubbed: { - method: string; - params: { - account_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkAuthorization: { - deprecated: string; - method: string; - params: { - access_token: { - required: boolean; - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkToken: { - headers: { - accept: string; - }; - method: string; - params: { - access_token: { - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createContentAttachment: { - headers: { - accept: string; - }; - method: string; - params: { - body: { - required: boolean; - type: string; - }; - content_reference_id: { - required: boolean; - type: string; - }; - title: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createFromManifest: { - headers: { - accept: string; - }; - method: string; - params: { - code: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createInstallationToken: { - headers: { - accept: string; - }; - method: string; - params: { - installation_id: { - required: boolean; - type: string; - }; - permissions: { - type: string; - }; - repository_ids: { - type: string; - }; - }; - url: string; - }; - deleteAuthorization: { - headers: { - accept: string; - }; - method: string; - params: { - access_token: { - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteInstallation: { - headers: { - accept: string; - }; - method: string; - params: { - installation_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteToken: { - headers: { - accept: string; - }; - method: string; - params: { - access_token: { - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - findOrgInstallation: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - findRepoInstallation: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - findUserInstallation: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getAuthenticated: { - headers: { - accept: string; - }; - method: string; - params: {}; - url: string; - }; - getBySlug: { - headers: { - accept: string; - }; - method: string; - params: { - app_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getInstallation: { - headers: { - accept: string; - }; - method: string; - params: { - installation_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getOrgInstallation: { - headers: { - accept: string; - }; - method: string; - params: { - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getRepoInstallation: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getUserInstallation: { - headers: { - accept: string; - }; - method: string; - params: { - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listAccountsUserOrOrgOnPlan: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - plan_id: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listAccountsUserOrOrgOnPlanStubbed: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - plan_id: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listInstallationReposForAuthenticatedUser: { - headers: { - accept: string; - }; - method: string; - params: { - installation_id: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listInstallations: { - headers: { - accept: string; - }; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listInstallationsForAuthenticatedUser: { - headers: { - accept: string; - }; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listMarketplacePurchasesForAuthenticatedUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listMarketplacePurchasesForAuthenticatedUserStubbed: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listPlans: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listPlansStubbed: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listRepos: { - headers: { - accept: string; - }; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - removeRepoFromInstallation: { - headers: { - accept: string; - }; - method: string; - params: { - installation_id: { - required: boolean; - type: string; - }; - repository_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - resetAuthorization: { - deprecated: string; - method: string; - params: { - access_token: { - required: boolean; - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - resetToken: { - headers: { - accept: string; - }; - method: string; - params: { - access_token: { - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - revokeAuthorizationForApplication: { - deprecated: string; - method: string; - params: { - access_token: { - required: boolean; - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - revokeGrantForApplication: { - deprecated: string; - method: string; - params: { - access_token: { - required: boolean; - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - revokeInstallationToken: { - headers: { - accept: string; - }; - method: string; - params: {}; - url: string; - }; - }; - checks: { - create: { - headers: { - accept: string; - }; - method: string; - params: { - actions: { - type: string; - }; - "actions[].description": { - required: boolean; - type: string; - }; - "actions[].identifier": { - required: boolean; - type: string; - }; - "actions[].label": { - required: boolean; - type: string; - }; - completed_at: { - type: string; - }; - conclusion: { - enum: string[]; - type: string; - }; - details_url: { - type: string; - }; - external_id: { - type: string; - }; - head_sha: { - required: boolean; - type: string; - }; - name: { - required: boolean; - type: string; - }; - output: { - type: string; - }; - "output.annotations": { - type: string; - }; - "output.annotations[].annotation_level": { - enum: string[]; - required: boolean; - type: string; - }; - "output.annotations[].end_column": { - type: string; - }; - "output.annotations[].end_line": { - required: boolean; - type: string; - }; - "output.annotations[].message": { - required: boolean; - type: string; - }; - "output.annotations[].path": { - required: boolean; - type: string; - }; - "output.annotations[].raw_details": { - type: string; - }; - "output.annotations[].start_column": { - type: string; - }; - "output.annotations[].start_line": { - required: boolean; - type: string; - }; - "output.annotations[].title": { - type: string; - }; - "output.images": { - type: string; - }; - "output.images[].alt": { - required: boolean; - type: string; - }; - "output.images[].caption": { - type: string; - }; - "output.images[].image_url": { - required: boolean; - type: string; - }; - "output.summary": { - required: boolean; - type: string; - }; - "output.text": { - type: string; - }; - "output.title": { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - started_at: { - type: string; - }; - status: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - createSuite: { - headers: { - accept: string; - }; - method: string; - params: { - head_sha: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - get: { - headers: { - accept: string; - }; - method: string; - params: { - check_run_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getSuite: { - headers: { - accept: string; - }; - method: string; - params: { - check_suite_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listAnnotations: { - headers: { - accept: string; - }; - method: string; - params: { - check_run_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForRef: { - headers: { - accept: string; - }; - method: string; - params: { - check_name: { - type: string; - }; - filter: { - enum: string[]; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - status: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listForSuite: { - headers: { - accept: string; - }; - method: string; - params: { - check_name: { - type: string; - }; - check_suite_id: { - required: boolean; - type: string; - }; - filter: { - enum: string[]; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - status: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listSuitesForRef: { - headers: { - accept: string; - }; - method: string; - params: { - app_id: { - type: string; - }; - check_name: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - rerequestSuite: { - headers: { - accept: string; - }; - method: string; - params: { - check_suite_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - setSuitesPreferences: { - headers: { - accept: string; - }; - method: string; - params: { - auto_trigger_checks: { - type: string; - }; - "auto_trigger_checks[].app_id": { - required: boolean; - type: string; - }; - "auto_trigger_checks[].setting": { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - update: { - headers: { - accept: string; - }; - method: string; - params: { - actions: { - type: string; - }; - "actions[].description": { - required: boolean; - type: string; - }; - "actions[].identifier": { - required: boolean; - type: string; - }; - "actions[].label": { - required: boolean; - type: string; - }; - check_run_id: { - required: boolean; - type: string; - }; - completed_at: { - type: string; - }; - conclusion: { - enum: string[]; - type: string; - }; - details_url: { - type: string; - }; - external_id: { - type: string; - }; - name: { - type: string; - }; - output: { - type: string; - }; - "output.annotations": { - type: string; - }; - "output.annotations[].annotation_level": { - enum: string[]; - required: boolean; - type: string; - }; - "output.annotations[].end_column": { - type: string; - }; - "output.annotations[].end_line": { - required: boolean; - type: string; - }; - "output.annotations[].message": { - required: boolean; - type: string; - }; - "output.annotations[].path": { - required: boolean; - type: string; - }; - "output.annotations[].raw_details": { - type: string; - }; - "output.annotations[].start_column": { - type: string; - }; - "output.annotations[].start_line": { - required: boolean; - type: string; - }; - "output.annotations[].title": { - type: string; - }; - "output.images": { - type: string; - }; - "output.images[].alt": { - required: boolean; - type: string; - }; - "output.images[].caption": { - type: string; - }; - "output.images[].image_url": { - required: boolean; - type: string; - }; - "output.summary": { - required: boolean; - type: string; - }; - "output.text": { - type: string; - }; - "output.title": { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - started_at: { - type: string; - }; - status: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - }; - codesOfConduct: { - getConductCode: { - headers: { - accept: string; - }; - method: string; - params: { - key: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getForRepo: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listConductCodes: { - headers: { - accept: string; - }; - method: string; - params: {}; - url: string; - }; - }; - emojis: { - get: { - method: string; - params: {}; - url: string; - }; - }; - gists: { - checkIsStarred: { - method: string; - params: { - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - create: { - method: string; - params: { - description: { - type: string; - }; - files: { - required: boolean; - type: string; - }; - "files.content": { - type: string; - }; - public: { - type: string; - }; - }; - url: string; - }; - createComment: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - delete: { - method: string; - params: { - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteComment: { - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - fork: { - method: string; - params: { - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - get: { - method: string; - params: { - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getComment: { - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getRevision: { - method: string; - params: { - gist_id: { - required: boolean; - type: string; - }; - sha: { - required: boolean; - type: string; - }; - }; - url: string; - }; - list: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - }; - url: string; - }; - listComments: { - method: string; - params: { - gist_id: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listCommits: { - method: string; - params: { - gist_id: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listForks: { - method: string; - params: { - gist_id: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listPublic: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - }; - url: string; - }; - listPublicForUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listStarred: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - }; - url: string; - }; - star: { - method: string; - params: { - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - unstar: { - method: string; - params: { - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - update: { - method: string; - params: { - description: { - type: string; - }; - files: { - type: string; - }; - "files.content": { - type: string; - }; - "files.filename": { - type: string; - }; - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateComment: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - comment_id: { - required: boolean; - type: string; - }; - gist_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - git: { - createBlob: { - method: string; - params: { - content: { - required: boolean; - type: string; - }; - encoding: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createCommit: { - method: string; - params: { - author: { - type: string; - }; - "author.date": { - type: string; - }; - "author.email": { - type: string; - }; - "author.name": { - type: string; - }; - committer: { - type: string; - }; - "committer.date": { - type: string; - }; - "committer.email": { - type: string; - }; - "committer.name": { - type: string; - }; - message: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - parents: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - signature: { - type: string; - }; - tree: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createRef: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createTag: { - method: string; - params: { - message: { - required: boolean; - type: string; - }; - object: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - tag: { - required: boolean; - type: string; - }; - tagger: { - type: string; - }; - "tagger.date": { - type: string; - }; - "tagger.email": { - type: string; - }; - "tagger.name": { - type: string; - }; - type: { - enum: string[]; - required: boolean; - type: string; - }; - }; - url: string; - }; - createTree: { - method: string; - params: { - base_tree: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - tree: { - required: boolean; - type: string; - }; - "tree[].content": { - type: string; - }; - "tree[].mode": { - enum: string[]; - type: string; - }; - "tree[].path": { - type: string; - }; - "tree[].sha": { - allowNull: boolean; - type: string; - }; - "tree[].type": { - enum: string[]; - type: string; - }; - }; - url: string; - }; - deleteRef: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getBlob: { - method: string; - params: { - file_sha: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getCommit: { - method: string; - params: { - commit_sha: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getRef: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getTag: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - tag_sha: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getTree: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - recursive: { - enum: string[]; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - tree_sha: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listMatchingRefs: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listRefs: { - method: string; - params: { - namespace: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateRef: { - method: string; - params: { - force: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - gitignore: { - getTemplate: { - method: string; - params: { - name: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listTemplates: { - method: string; - params: {}; - url: string; - }; - }; - interactions: { - addOrUpdateRestrictionsForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - limit: { - enum: string[]; - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addOrUpdateRestrictionsForRepo: { - headers: { - accept: string; - }; - method: string; - params: { - limit: { - enum: string[]; - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getRestrictionsForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getRestrictionsForRepo: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeRestrictionsForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeRestrictionsForRepo: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - issues: { - addAssignees: { - method: string; - params: { - assignees: { - type: string; - }; - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addLabels: { - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - labels: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkAssignee: { - method: string; - params: { - assignee: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - create: { - method: string; - params: { - assignee: { - type: string; - }; - assignees: { - type: string; - }; - body: { - type: string; - }; - labels: { - type: string; - }; - milestone: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - title: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createComment: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createLabel: { - method: string; - params: { - color: { - required: boolean; - type: string; - }; - description: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createMilestone: { - method: string; - params: { - description: { - type: string; - }; - due_on: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - title: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteComment: { - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteLabel: { - method: string; - params: { - name: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteMilestone: { - method: string; - params: { - milestone_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - get: { - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getComment: { - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getEvent: { - method: string; - params: { - event_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getLabel: { - method: string; - params: { - name: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getMilestone: { - method: string; - params: { - milestone_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - list: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - filter: { - enum: string[]; - type: string; - }; - labels: { - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listAssignees: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listComments: { - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - since: { - type: string; - }; - }; - url: string; - }; - listCommentsForRepo: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - since: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listEvents: { - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listEventsForRepo: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listEventsForTimeline: { - headers: { - accept: string; - }; - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForAuthenticatedUser: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - filter: { - enum: string[]; - type: string; - }; - labels: { - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listForOrg: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - filter: { - enum: string[]; - type: string; - }; - labels: { - type: string; - }; - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listForRepo: { - method: string; - params: { - assignee: { - type: string; - }; - creator: { - type: string; - }; - direction: { - enum: string[]; - type: string; - }; - labels: { - type: string; - }; - mentioned: { - type: string; - }; - milestone: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - since: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listLabelsForMilestone: { - method: string; - params: { - milestone_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listLabelsForRepo: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listLabelsOnIssue: { - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listMilestonesForRepo: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - lock: { - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - lock_reason: { - enum: string[]; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeAssignees: { - method: string; - params: { - assignees: { - type: string; - }; - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeLabel: { - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - name: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeLabels: { - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - replaceLabels: { - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - labels: { - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - unlock: { - method: string; - params: { - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - update: { - method: string; - params: { - assignee: { - type: string; - }; - assignees: { - type: string; - }; - body: { - type: string; - }; - issue_number: { - required: boolean; - type: string; - }; - labels: { - type: string; - }; - milestone: { - allowNull: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - title: { - type: string; - }; - }; - url: string; - }; - updateComment: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - comment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateLabel: { - method: string; - params: { - color: { - type: string; - }; - current_name: { - required: boolean; - type: string; - }; - description: { - type: string; - }; - name: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateMilestone: { - method: string; - params: { - description: { - type: string; - }; - due_on: { - type: string; - }; - milestone_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - title: { - type: string; - }; - }; - url: string; - }; - }; - licenses: { - get: { - method: string; - params: { - license: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getForRepo: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - list: { - deprecated: string; - method: string; - params: {}; - url: string; - }; - listCommonlyUsed: { - method: string; - params: {}; - url: string; - }; - }; - markdown: { - render: { - method: string; - params: { - context: { - type: string; - }; - mode: { - enum: string[]; - type: string; - }; - text: { - required: boolean; - type: string; - }; - }; - url: string; - }; - renderRaw: { - headers: { - "content-type": string; - }; - method: string; - params: { - data: { - mapTo: string; - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - meta: { - get: { - method: string; - params: {}; - url: string; - }; - }; - migrations: { - cancelImport: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteArchiveForAuthenticatedUser: { - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteArchiveForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - downloadArchiveForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getArchiveForAuthenticatedUser: { - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getArchiveForOrg: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getCommitAuthors: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - since: { - type: string; - }; - }; - url: string; - }; - getImportProgress: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getLargeFiles: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getStatusForAuthenticatedUser: { - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getStatusForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForAuthenticatedUser: { - headers: { - accept: string; - }; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listReposForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listReposForUser: { - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - mapCommitAuthor: { - method: string; - params: { - author_id: { - required: boolean; - type: string; - }; - email: { - type: string; - }; - name: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - setLfsPreference: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - use_lfs: { - enum: string[]; - required: boolean; - type: string; - }; - }; - url: string; - }; - startForAuthenticatedUser: { - method: string; - params: { - exclude_attachments: { - type: string; - }; - lock_repositories: { - type: string; - }; - repositories: { - required: boolean; - type: string; - }; - }; - url: string; - }; - startForOrg: { - method: string; - params: { - exclude_attachments: { - type: string; - }; - lock_repositories: { - type: string; - }; - org: { - required: boolean; - type: string; - }; - repositories: { - required: boolean; - type: string; - }; - }; - url: string; - }; - startImport: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - tfvc_project: { - type: string; - }; - vcs: { - enum: string[]; - type: string; - }; - vcs_password: { - type: string; - }; - vcs_url: { - required: boolean; - type: string; - }; - vcs_username: { - type: string; - }; - }; - url: string; - }; - unlockRepoForAuthenticatedUser: { - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - repo_name: { - required: boolean; - type: string; - }; - }; - url: string; - }; - unlockRepoForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - migration_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - repo_name: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateImport: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - vcs_password: { - type: string; - }; - vcs_username: { - type: string; - }; - }; - url: string; - }; - }; - oauthAuthorizations: { - checkAuthorization: { - deprecated: string; - method: string; - params: { - access_token: { - required: boolean; - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createAuthorization: { - deprecated: string; - method: string; - params: { - client_id: { - type: string; - }; - client_secret: { - type: string; - }; - fingerprint: { - type: string; - }; - note: { - required: boolean; - type: string; - }; - note_url: { - type: string; - }; - scopes: { - type: string; - }; - }; - url: string; - }; - deleteAuthorization: { - deprecated: string; - method: string; - params: { - authorization_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteGrant: { - deprecated: string; - method: string; - params: { - grant_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getAuthorization: { - deprecated: string; - method: string; - params: { - authorization_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getGrant: { - deprecated: string; - method: string; - params: { - grant_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getOrCreateAuthorizationForApp: { - deprecated: string; - method: string; - params: { - client_id: { - required: boolean; - type: string; - }; - client_secret: { - required: boolean; - type: string; - }; - fingerprint: { - type: string; - }; - note: { - type: string; - }; - note_url: { - type: string; - }; - scopes: { - type: string; - }; - }; - url: string; - }; - getOrCreateAuthorizationForAppAndFingerprint: { - deprecated: string; - method: string; - params: { - client_id: { - required: boolean; - type: string; - }; - client_secret: { - required: boolean; - type: string; - }; - fingerprint: { - required: boolean; - type: string; - }; - note: { - type: string; - }; - note_url: { - type: string; - }; - scopes: { - type: string; - }; - }; - url: string; - }; - getOrCreateAuthorizationForAppFingerprint: { - deprecated: string; - method: string; - params: { - client_id: { - required: boolean; - type: string; - }; - client_secret: { - required: boolean; - type: string; - }; - fingerprint: { - required: boolean; - type: string; - }; - note: { - type: string; - }; - note_url: { - type: string; - }; - scopes: { - type: string; - }; - }; - url: string; - }; - listAuthorizations: { - deprecated: string; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listGrants: { - deprecated: string; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - resetAuthorization: { - deprecated: string; - method: string; - params: { - access_token: { - required: boolean; - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - revokeAuthorizationForApplication: { - deprecated: string; - method: string; - params: { - access_token: { - required: boolean; - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - revokeGrantForApplication: { - deprecated: string; - method: string; - params: { - access_token: { - required: boolean; - type: string; - }; - client_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateAuthorization: { - deprecated: string; - method: string; - params: { - add_scopes: { - type: string; - }; - authorization_id: { - required: boolean; - type: string; - }; - fingerprint: { - type: string; - }; - note: { - type: string; - }; - note_url: { - type: string; - }; - remove_scopes: { - type: string; - }; - scopes: { - type: string; - }; - }; - url: string; - }; - }; - orgs: { - addOrUpdateMembership: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - role: { - enum: string[]; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - blockUser: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkBlockedUser: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkMembership: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkPublicMembership: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - concealMembership: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - convertMemberToOutsideCollaborator: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createHook: { - method: string; - params: { - active: { - type: string; - }; - config: { - required: boolean; - type: string; - }; - "config.content_type": { - type: string; - }; - "config.insecure_ssl": { - type: string; - }; - "config.secret": { - type: string; - }; - "config.url": { - required: boolean; - type: string; - }; - events: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createInvitation: { - method: string; - params: { - email: { - type: string; - }; - invitee_id: { - type: string; - }; - org: { - required: boolean; - type: string; - }; - role: { - enum: string[]; - type: string; - }; - team_ids: { - type: string; - }; - }; - url: string; - }; - deleteHook: { - method: string; - params: { - hook_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - get: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getHook: { - method: string; - params: { - hook_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getMembership: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getMembershipForAuthenticatedUser: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - list: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - }; - url: string; - }; - listBlockedUsers: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForAuthenticatedUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listForUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listHooks: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listInstallations: { - headers: { - accept: string; - }; - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listInvitationTeams: { - method: string; - params: { - invitation_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listMembers: { - method: string; - params: { - filter: { - enum: string[]; - type: string; - }; - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - role: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listMemberships: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - state: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listOutsideCollaborators: { - method: string; - params: { - filter: { - enum: string[]; - type: string; - }; - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listPendingInvitations: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listPublicMembers: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - pingHook: { - method: string; - params: { - hook_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - publicizeMembership: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeMember: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeMembership: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeOutsideCollaborator: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - unblockUser: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - update: { - method: string; - params: { - billing_email: { - type: string; - }; - company: { - type: string; - }; - default_repository_permission: { - enum: string[]; - type: string; - }; - description: { - type: string; - }; - email: { - type: string; - }; - has_organization_projects: { - type: string; - }; - has_repository_projects: { - type: string; - }; - location: { - type: string; - }; - members_allowed_repository_creation_type: { - enum: string[]; - type: string; - }; - members_can_create_internal_repositories: { - type: string; - }; - members_can_create_private_repositories: { - type: string; - }; - members_can_create_public_repositories: { - type: string; - }; - members_can_create_repositories: { - type: string; - }; - name: { - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateHook: { - method: string; - params: { - active: { - type: string; - }; - config: { - type: string; - }; - "config.content_type": { - type: string; - }; - "config.insecure_ssl": { - type: string; - }; - "config.secret": { - type: string; - }; - "config.url": { - required: boolean; - type: string; - }; - events: { - type: string; - }; - hook_id: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateMembership: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - state: { - enum: string[]; - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - projects: { - addCollaborator: { - headers: { - accept: string; - }; - method: string; - params: { - permission: { - enum: string[]; - type: string; - }; - project_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createCard: { - headers: { - accept: string; - }; - method: string; - params: { - column_id: { - required: boolean; - type: string; - }; - content_id: { - type: string; - }; - content_type: { - type: string; - }; - note: { - type: string; - }; - }; - url: string; - }; - createColumn: { - headers: { - accept: string; - }; - method: string; - params: { - name: { - required: boolean; - type: string; - }; - project_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForAuthenticatedUser: { - headers: { - accept: string; - }; - method: string; - params: { - body: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - body: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForRepo: { - headers: { - accept: string; - }; - method: string; - params: { - body: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - delete: { - headers: { - accept: string; - }; - method: string; - params: { - project_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteCard: { - headers: { - accept: string; - }; - method: string; - params: { - card_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteColumn: { - headers: { - accept: string; - }; - method: string; - params: { - column_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - get: { - headers: { - accept: string; - }; - method: string; - params: { - project_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getCard: { - headers: { - accept: string; - }; - method: string; - params: { - card_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getColumn: { - headers: { - accept: string; - }; - method: string; - params: { - column_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listCards: { - headers: { - accept: string; - }; - method: string; - params: { - archived_state: { - enum: string[]; - type: string; - }; - column_id: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listCollaborators: { - headers: { - accept: string; - }; - method: string; - params: { - affiliation: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - project_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listColumns: { - headers: { - accept: string; - }; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - project_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForOrg: { - headers: { - accept: string; - }; - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - state: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listForRepo: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listForUser: { - headers: { - accept: string; - }; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - state: { - enum: string[]; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - moveCard: { - headers: { - accept: string; - }; - method: string; - params: { - card_id: { - required: boolean; - type: string; - }; - column_id: { - type: string; - }; - position: { - required: boolean; - type: string; - validation: string; - }; - }; - url: string; - }; - moveColumn: { - headers: { - accept: string; - }; - method: string; - params: { - column_id: { - required: boolean; - type: string; - }; - position: { - required: boolean; - type: string; - validation: string; - }; - }; - url: string; - }; - removeCollaborator: { - headers: { - accept: string; - }; - method: string; - params: { - project_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - reviewUserPermissionLevel: { - headers: { - accept: string; - }; - method: string; - params: { - project_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - update: { - headers: { - accept: string; - }; - method: string; - params: { - body: { - type: string; - }; - name: { - type: string; - }; - organization_permission: { - type: string; - }; - private: { - type: string; - }; - project_id: { - required: boolean; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - updateCard: { - headers: { - accept: string; - }; - method: string; - params: { - archived: { - type: string; - }; - card_id: { - required: boolean; - type: string; - }; - note: { - type: string; - }; - }; - url: string; - }; - updateColumn: { - headers: { - accept: string; - }; - method: string; - params: { - column_id: { - required: boolean; - type: string; - }; - name: { - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - pulls: { - checkIfMerged: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - create: { - method: string; - params: { - base: { - required: boolean; - type: string; - }; - body: { - type: string; - }; - draft: { - type: string; - }; - head: { - required: boolean; - type: string; - }; - maintainer_can_modify: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - title: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createComment: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - commit_id: { - required: boolean; - type: string; - }; - in_reply_to: { - deprecated: boolean; - description: string; - type: string; - }; - line: { - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - path: { - required: boolean; - type: string; - }; - position: { - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - side: { - enum: string[]; - type: string; - }; - start_line: { - type: string; - }; - start_side: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - createCommentReply: { - deprecated: string; - method: string; - params: { - body: { - required: boolean; - type: string; - }; - commit_id: { - required: boolean; - type: string; - }; - in_reply_to: { - deprecated: boolean; - description: string; - type: string; - }; - line: { - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - path: { - required: boolean; - type: string; - }; - position: { - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - side: { - enum: string[]; - type: string; - }; - start_line: { - type: string; - }; - start_side: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - createFromIssue: { - deprecated: string; - method: string; - params: { - base: { - required: boolean; - type: string; - }; - draft: { - type: string; - }; - head: { - required: boolean; - type: string; - }; - issue: { - required: boolean; - type: string; - }; - maintainer_can_modify: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createReview: { - method: string; - params: { - body: { - type: string; - }; - comments: { - type: string; - }; - "comments[].body": { - required: boolean; - type: string; - }; - "comments[].path": { - required: boolean; - type: string; - }; - "comments[].position": { - required: boolean; - type: string; - }; - commit_id: { - type: string; - }; - event: { - enum: string[]; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createReviewCommentReply: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - comment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createReviewRequest: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - reviewers: { - type: string; - }; - team_reviewers: { - type: string; - }; - }; - url: string; - }; - deleteComment: { - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deletePendingReview: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - review_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteReviewRequest: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - reviewers: { - type: string; - }; - team_reviewers: { - type: string; - }; - }; - url: string; - }; - dismissReview: { - method: string; - params: { - message: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - review_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - get: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getComment: { - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getCommentsForReview: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - review_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getReview: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - review_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - list: { - method: string; - params: { - base: { - type: string; - }; - direction: { - enum: string[]; - type: string; - }; - head: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listComments: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - since: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listCommentsForRepo: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - since: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listCommits: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listFiles: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listReviewRequests: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listReviews: { - method: string; - params: { - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - merge: { - method: string; - params: { - commit_message: { - type: string; - }; - commit_title: { - type: string; - }; - merge_method: { - enum: string[]; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - type: string; - }; - }; - url: string; - }; - submitReview: { - method: string; - params: { - body: { - type: string; - }; - event: { - enum: string[]; - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - review_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - update: { - method: string; - params: { - base: { - type: string; - }; - body: { - type: string; - }; - maintainer_can_modify: { - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - state: { - enum: string[]; - type: string; - }; - title: { - type: string; - }; - }; - url: string; - }; - updateBranch: { - headers: { - accept: string; - }; - method: string; - params: { - expected_head_sha: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateComment: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - comment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateReview: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - pull_number: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - review_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - rateLimit: { - get: { - method: string; - params: {}; - url: string; - }; - }; - reactions: { - createForCommitComment: { - headers: { - accept: string; - }; - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForIssue: { - headers: { - accept: string; - }; - method: string; - params: { - content: { - enum: string[]; - required: boolean; - type: string; - }; - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForIssueComment: { - headers: { - accept: string; - }; - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForPullRequestReviewComment: { - headers: { - accept: string; - }; - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForTeamDiscussion: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - content: { - enum: string[]; - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForTeamDiscussionComment: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForTeamDiscussionCommentInOrg: { - headers: { - accept: string; - }; - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForTeamDiscussionCommentLegacy: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForTeamDiscussionInOrg: { - headers: { - accept: string; - }; - method: string; - params: { - content: { - enum: string[]; - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createForTeamDiscussionLegacy: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - content: { - enum: string[]; - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - delete: { - headers: { - accept: string; - }; - method: string; - params: { - reaction_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForCommitComment: { - headers: { - accept: string; - }; - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForIssue: { - headers: { - accept: string; - }; - method: string; - params: { - content: { - enum: string[]; - type: string; - }; - issue_number: { - required: boolean; - type: string; - }; - number: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForIssueComment: { - headers: { - accept: string; - }; - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForPullRequestReviewComment: { - headers: { - accept: string; - }; - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForTeamDiscussion: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - content: { - enum: string[]; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForTeamDiscussionComment: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForTeamDiscussionCommentInOrg: { - headers: { - accept: string; - }; - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForTeamDiscussionCommentLegacy: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - content: { - enum: string[]; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForTeamDiscussionInOrg: { - headers: { - accept: string; - }; - method: string; - params: { - content: { - enum: string[]; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForTeamDiscussionLegacy: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - content: { - enum: string[]; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - repos: { - acceptInvitation: { - method: string; - params: { - invitation_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addCollaborator: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - permission: { - enum: string[]; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addDeployKey: { - method: string; - params: { - key: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - read_only: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - title: { - type: string; - }; - }; - url: string; - }; - addProtectedBranchAdminEnforcement: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addProtectedBranchAppRestrictions: { - method: string; - params: { - apps: { - mapTo: string; - required: boolean; - type: string; - }; - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addProtectedBranchRequiredSignatures: { - headers: { - accept: string; - }; - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addProtectedBranchRequiredStatusChecksContexts: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - contexts: { - mapTo: string; - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addProtectedBranchTeamRestrictions: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - teams: { - mapTo: string; - required: boolean; - type: string; - }; - }; - url: string; - }; - addProtectedBranchUserRestrictions: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - users: { - mapTo: string; - required: boolean; - type: string; - }; - }; - url: string; - }; - checkCollaborator: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkVulnerabilityAlerts: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - compareCommits: { - method: string; - params: { - base: { - required: boolean; - type: string; - }; - head: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createCommitComment: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - commit_sha: { - required: boolean; - type: string; - }; - line: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - path: { - type: string; - }; - position: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - alias: string; - deprecated: boolean; - type: string; - }; - }; - url: string; - }; - createDeployment: { - method: string; - params: { - auto_merge: { - type: string; - }; - description: { - type: string; - }; - environment: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - payload: { - type: string; - }; - production_environment: { - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - required_contexts: { - type: string; - }; - task: { - type: string; - }; - transient_environment: { - type: string; - }; - }; - url: string; - }; - createDeploymentStatus: { - method: string; - params: { - auto_inactive: { - type: string; - }; - deployment_id: { - required: boolean; - type: string; - }; - description: { - type: string; - }; - environment: { - enum: string[]; - type: string; - }; - environment_url: { - type: string; - }; - log_url: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - state: { - enum: string[]; - required: boolean; - type: string; - }; - target_url: { - type: string; - }; - }; - url: string; - }; - createDispatchEvent: { - method: string; - params: { - client_payload: { - type: string; - }; - event_type: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createFile: { - deprecated: string; - method: string; - params: { - author: { - type: string; - }; - "author.email": { - required: boolean; - type: string; - }; - "author.name": { - required: boolean; - type: string; - }; - branch: { - type: string; - }; - committer: { - type: string; - }; - "committer.email": { - required: boolean; - type: string; - }; - "committer.name": { - required: boolean; - type: string; - }; - content: { - required: boolean; - type: string; - }; - message: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - path: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - type: string; - }; - }; - url: string; - }; - createForAuthenticatedUser: { - method: string; - params: { - allow_merge_commit: { - type: string; - }; - allow_rebase_merge: { - type: string; - }; - allow_squash_merge: { - type: string; - }; - auto_init: { - type: string; - }; - delete_branch_on_merge: { - type: string; - }; - description: { - type: string; - }; - gitignore_template: { - type: string; - }; - has_issues: { - type: string; - }; - has_projects: { - type: string; - }; - has_wiki: { - type: string; - }; - homepage: { - type: string; - }; - is_template: { - type: string; - }; - license_template: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - private: { - type: string; - }; - team_id: { - type: string; - }; - visibility: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - createFork: { - method: string; - params: { - organization: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createHook: { - method: string; - params: { - active: { - type: string; - }; - config: { - required: boolean; - type: string; - }; - "config.content_type": { - type: string; - }; - "config.insecure_ssl": { - type: string; - }; - "config.secret": { - type: string; - }; - "config.url": { - required: boolean; - type: string; - }; - events: { - type: string; - }; - name: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createInOrg: { - method: string; - params: { - allow_merge_commit: { - type: string; - }; - allow_rebase_merge: { - type: string; - }; - allow_squash_merge: { - type: string; - }; - auto_init: { - type: string; - }; - delete_branch_on_merge: { - type: string; - }; - description: { - type: string; - }; - gitignore_template: { - type: string; - }; - has_issues: { - type: string; - }; - has_projects: { - type: string; - }; - has_wiki: { - type: string; - }; - homepage: { - type: string; - }; - is_template: { - type: string; - }; - license_template: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - private: { - type: string; - }; - team_id: { - type: string; - }; - visibility: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - createOrUpdateFile: { - method: string; - params: { - author: { - type: string; - }; - "author.email": { - required: boolean; - type: string; - }; - "author.name": { - required: boolean; - type: string; - }; - branch: { - type: string; - }; - committer: { - type: string; - }; - "committer.email": { - required: boolean; - type: string; - }; - "committer.name": { - required: boolean; - type: string; - }; - content: { - required: boolean; - type: string; - }; - message: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - path: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - type: string; - }; - }; - url: string; - }; - createRelease: { - method: string; - params: { - body: { - type: string; - }; - draft: { - type: string; - }; - name: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - prerelease: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - tag_name: { - required: boolean; - type: string; - }; - target_commitish: { - type: string; - }; - }; - url: string; - }; - createStatus: { - method: string; - params: { - context: { - type: string; - }; - description: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - required: boolean; - type: string; - }; - state: { - enum: string[]; - required: boolean; - type: string; - }; - target_url: { - type: string; - }; - }; - url: string; - }; - createUsingTemplate: { - headers: { - accept: string; - }; - method: string; - params: { - description: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - owner: { - type: string; - }; - private: { - type: string; - }; - template_owner: { - required: boolean; - type: string; - }; - template_repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - declineInvitation: { - method: string; - params: { - invitation_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - delete: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteCommitComment: { - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteDownload: { - method: string; - params: { - download_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteFile: { - method: string; - params: { - author: { - type: string; - }; - "author.email": { - type: string; - }; - "author.name": { - type: string; - }; - branch: { - type: string; - }; - committer: { - type: string; - }; - "committer.email": { - type: string; - }; - "committer.name": { - type: string; - }; - message: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - path: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteHook: { - method: string; - params: { - hook_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteInvitation: { - method: string; - params: { - invitation_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteRelease: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - release_id: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteReleaseAsset: { - method: string; - params: { - asset_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - disableAutomatedSecurityFixes: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - disablePagesSite: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - disableVulnerabilityAlerts: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - enableAutomatedSecurityFixes: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - enablePagesSite: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - source: { - type: string; - }; - "source.branch": { - enum: string[]; - type: string; - }; - "source.path": { - type: string; - }; - }; - url: string; - }; - enableVulnerabilityAlerts: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - get: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getAppsWithAccessToProtectedBranch: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getArchiveLink: { - method: string; - params: { - archive_format: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getBranch: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getBranchProtection: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getClones: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - per: { - enum: string[]; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getCodeFrequencyStats: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getCollaboratorPermissionLevel: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getCombinedStatusForRef: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getCommit: { - method: string; - params: { - commit_sha: { - alias: string; - deprecated: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - alias: string; - deprecated: boolean; - type: string; - }; - }; - url: string; - }; - getCommitActivityStats: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getCommitComment: { - method: string; - params: { - comment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getCommitRefSha: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getContents: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - path: { - required: boolean; - type: string; - }; - ref: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getContributorsStats: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getDeployKey: { - method: string; - params: { - key_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getDeployment: { - method: string; - params: { - deployment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getDeploymentStatus: { - method: string; - params: { - deployment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - status_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getDownload: { - method: string; - params: { - download_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getHook: { - method: string; - params: { - hook_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getLatestPagesBuild: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getLatestRelease: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getPages: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getPagesBuild: { - method: string; - params: { - build_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getParticipationStats: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getProtectedBranchAdminEnforcement: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getProtectedBranchPullRequestReviewEnforcement: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getProtectedBranchRequiredSignatures: { - headers: { - accept: string; - }; - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getProtectedBranchRequiredStatusChecks: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getProtectedBranchRestrictions: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getPunchCardStats: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getReadme: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - ref: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getRelease: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - release_id: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getReleaseAsset: { - method: string; - params: { - asset_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getReleaseByTag: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - tag: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getTeamsWithAccessToProtectedBranch: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getTopPaths: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getTopReferrers: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getUsersWithAccessToProtectedBranch: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getViews: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - per: { - enum: string[]; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - list: { - method: string; - params: { - affiliation: { - type: string; - }; - direction: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - type: { - enum: string[]; - type: string; - }; - visibility: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listAppsWithAccessToProtectedBranch: { - deprecated: string; - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listAssetsForRelease: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - release_id: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listBranches: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - protected: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listBranchesForHeadCommit: { - headers: { - accept: string; - }; - method: string; - params: { - commit_sha: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listCollaborators: { - method: string; - params: { - affiliation: { - enum: string[]; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listCommentsForCommit: { - method: string; - params: { - commit_sha: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - ref: { - alias: string; - deprecated: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listCommitComments: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listCommits: { - method: string; - params: { - author: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - path: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - type: string; - }; - since: { - type: string; - }; - until: { - type: string; - }; - }; - url: string; - }; - listContributors: { - method: string; - params: { - anon: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listDeployKeys: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listDeploymentStatuses: { - method: string; - params: { - deployment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listDeployments: { - method: string; - params: { - environment: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - ref: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - type: string; - }; - task: { - type: string; - }; - }; - url: string; - }; - listDownloads: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForOrg: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - type: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listForUser: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - type: { - enum: string[]; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForks: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - listHooks: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listInvitations: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listInvitationsForAuthenticatedUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listLanguages: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listPagesBuilds: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listProtectedBranchRequiredStatusChecksContexts: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listProtectedBranchTeamRestrictions: { - deprecated: string; - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listProtectedBranchUserRestrictions: { - deprecated: string; - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listPublic: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - }; - url: string; - }; - listPullRequestsAssociatedWithCommit: { - headers: { - accept: string; - }; - method: string; - params: { - commit_sha: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listReleases: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listStatusesForRef: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - ref: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listTags: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listTeams: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listTeamsWithAccessToProtectedBranch: { - deprecated: string; - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listTopics: { - headers: { - accept: string; - }; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listUsersWithAccessToProtectedBranch: { - deprecated: string; - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - merge: { - method: string; - params: { - base: { - required: boolean; - type: string; - }; - commit_message: { - type: string; - }; - head: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - pingHook: { - method: string; - params: { - hook_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeBranchProtection: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeCollaborator: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeDeployKey: { - method: string; - params: { - key_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProtectedBranchAdminEnforcement: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProtectedBranchAppRestrictions: { - method: string; - params: { - apps: { - mapTo: string; - required: boolean; - type: string; - }; - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProtectedBranchPullRequestReviewEnforcement: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProtectedBranchRequiredSignatures: { - headers: { - accept: string; - }; - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProtectedBranchRequiredStatusChecks: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProtectedBranchRequiredStatusChecksContexts: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - contexts: { - mapTo: string; - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProtectedBranchRestrictions: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProtectedBranchTeamRestrictions: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - teams: { - mapTo: string; - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProtectedBranchUserRestrictions: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - users: { - mapTo: string; - required: boolean; - type: string; - }; - }; - url: string; - }; - replaceProtectedBranchAppRestrictions: { - method: string; - params: { - apps: { - mapTo: string; - required: boolean; - type: string; - }; - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - replaceProtectedBranchRequiredStatusChecksContexts: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - contexts: { - mapTo: string; - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - replaceProtectedBranchTeamRestrictions: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - teams: { - mapTo: string; - required: boolean; - type: string; - }; - }; - url: string; - }; - replaceProtectedBranchUserRestrictions: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - users: { - mapTo: string; - required: boolean; - type: string; - }; - }; - url: string; - }; - replaceTopics: { - headers: { - accept: string; - }; - method: string; - params: { - names: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - requestPageBuild: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - retrieveCommunityProfileMetrics: { - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - testPushHook: { - method: string; - params: { - hook_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - transfer: { - method: string; - params: { - new_owner: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - team_ids: { - type: string; - }; - }; - url: string; - }; - update: { - method: string; - params: { - allow_merge_commit: { - type: string; - }; - allow_rebase_merge: { - type: string; - }; - allow_squash_merge: { - type: string; - }; - archived: { - type: string; - }; - default_branch: { - type: string; - }; - delete_branch_on_merge: { - type: string; - }; - description: { - type: string; - }; - has_issues: { - type: string; - }; - has_projects: { - type: string; - }; - has_wiki: { - type: string; - }; - homepage: { - type: string; - }; - is_template: { - type: string; - }; - name: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - private: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - visibility: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - updateBranchProtection: { - method: string; - params: { - allow_deletions: { - type: string; - }; - allow_force_pushes: { - allowNull: boolean; - type: string; - }; - branch: { - required: boolean; - type: string; - }; - enforce_admins: { - allowNull: boolean; - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - required_linear_history: { - type: string; - }; - required_pull_request_reviews: { - allowNull: boolean; - required: boolean; - type: string; - }; - "required_pull_request_reviews.dismiss_stale_reviews": { - type: string; - }; - "required_pull_request_reviews.dismissal_restrictions": { - type: string; - }; - "required_pull_request_reviews.dismissal_restrictions.teams": { - type: string; - }; - "required_pull_request_reviews.dismissal_restrictions.users": { - type: string; - }; - "required_pull_request_reviews.require_code_owner_reviews": { - type: string; - }; - "required_pull_request_reviews.required_approving_review_count": { - type: string; - }; - required_status_checks: { - allowNull: boolean; - required: boolean; - type: string; - }; - "required_status_checks.contexts": { - required: boolean; - type: string; - }; - "required_status_checks.strict": { - required: boolean; - type: string; - }; - restrictions: { - allowNull: boolean; - required: boolean; - type: string; - }; - "restrictions.apps": { - type: string; - }; - "restrictions.teams": { - required: boolean; - type: string; - }; - "restrictions.users": { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateCommitComment: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - comment_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateFile: { - deprecated: string; - method: string; - params: { - author: { - type: string; - }; - "author.email": { - required: boolean; - type: string; - }; - "author.name": { - required: boolean; - type: string; - }; - branch: { - type: string; - }; - committer: { - type: string; - }; - "committer.email": { - required: boolean; - type: string; - }; - "committer.name": { - required: boolean; - type: string; - }; - content: { - required: boolean; - type: string; - }; - message: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - path: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - sha: { - type: string; - }; - }; - url: string; - }; - updateHook: { - method: string; - params: { - active: { - type: string; - }; - add_events: { - type: string; - }; - config: { - type: string; - }; - "config.content_type": { - type: string; - }; - "config.insecure_ssl": { - type: string; - }; - "config.secret": { - type: string; - }; - "config.url": { - required: boolean; - type: string; - }; - events: { - type: string; - }; - hook_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - remove_events: { - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateInformationAboutPagesSite: { - method: string; - params: { - cname: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - source: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - updateInvitation: { - method: string; - params: { - invitation_id: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - permissions: { - enum: string[]; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateProtectedBranchPullRequestReviewEnforcement: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - dismiss_stale_reviews: { - type: string; - }; - dismissal_restrictions: { - type: string; - }; - "dismissal_restrictions.teams": { - type: string; - }; - "dismissal_restrictions.users": { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - require_code_owner_reviews: { - type: string; - }; - required_approving_review_count: { - type: string; - }; - }; - url: string; - }; - updateProtectedBranchRequiredStatusChecks: { - method: string; - params: { - branch: { - required: boolean; - type: string; - }; - contexts: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - strict: { - type: string; - }; - }; - url: string; - }; - updateRelease: { - method: string; - params: { - body: { - type: string; - }; - draft: { - type: string; - }; - name: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - prerelease: { - type: string; - }; - release_id: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - tag_name: { - type: string; - }; - target_commitish: { - type: string; - }; - }; - url: string; - }; - updateReleaseAsset: { - method: string; - params: { - asset_id: { - required: boolean; - type: string; - }; - label: { - type: string; - }; - name: { - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - }; - url: string; - }; - uploadReleaseAsset: { - method: string; - params: { - data: { - mapTo: string; - required: boolean; - type: string; - }; - file: { - alias: string; - deprecated: boolean; - type: string; - }; - headers: { - required: boolean; - type: string; - }; - "headers.content-length": { - required: boolean; - type: string; - }; - "headers.content-type": { - required: boolean; - type: string; - }; - label: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - url: { - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - search: { - code: { - method: string; - params: { - order: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - q: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - commits: { - headers: { - accept: string; - }; - method: string; - params: { - order: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - q: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - issues: { - deprecated: string; - method: string; - params: { - order: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - q: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - issuesAndPullRequests: { - method: string; - params: { - order: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - q: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - labels: { - method: string; - params: { - order: { - enum: string[]; - type: string; - }; - q: { - required: boolean; - type: string; - }; - repository_id: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - repos: { - method: string; - params: { - order: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - q: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - topics: { - method: string; - params: { - q: { - required: boolean; - type: string; - }; - }; - url: string; - }; - users: { - method: string; - params: { - order: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - q: { - required: boolean; - type: string; - }; - sort: { - enum: string[]; - type: string; - }; - }; - url: string; - }; - }; - teams: { - addMember: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addMemberLegacy: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addOrUpdateMembership: { - deprecated: string; - method: string; - params: { - role: { - enum: string[]; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addOrUpdateMembershipInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - role: { - enum: string[]; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addOrUpdateMembershipLegacy: { - deprecated: string; - method: string; - params: { - role: { - enum: string[]; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addOrUpdateProject: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - permission: { - enum: string[]; - type: string; - }; - project_id: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addOrUpdateProjectInOrg: { - headers: { - accept: string; - }; - method: string; - params: { - org: { - required: boolean; - type: string; - }; - permission: { - enum: string[]; - type: string; - }; - project_id: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addOrUpdateProjectLegacy: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - permission: { - enum: string[]; - type: string; - }; - project_id: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addOrUpdateRepo: { - deprecated: string; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - permission: { - enum: string[]; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addOrUpdateRepoInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - permission: { - enum: string[]; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - addOrUpdateRepoLegacy: { - deprecated: string; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - permission: { - enum: string[]; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkManagesRepo: { - deprecated: string; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkManagesRepoInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkManagesRepoLegacy: { - deprecated: string; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - create: { - method: string; - params: { - description: { - type: string; - }; - maintainers: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - parent_team_id: { - type: string; - }; - permission: { - enum: string[]; - type: string; - }; - privacy: { - enum: string[]; - type: string; - }; - repo_names: { - type: string; - }; - }; - url: string; - }; - createDiscussion: { - deprecated: string; - method: string; - params: { - body: { - required: boolean; - type: string; - }; - private: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - title: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createDiscussionComment: { - deprecated: string; - method: string; - params: { - body: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createDiscussionCommentInOrg: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createDiscussionCommentLegacy: { - deprecated: string; - method: string; - params: { - body: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createDiscussionInOrg: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - private: { - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - title: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createDiscussionLegacy: { - deprecated: string; - method: string; - params: { - body: { - required: boolean; - type: string; - }; - private: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - title: { - required: boolean; - type: string; - }; - }; - url: string; - }; - delete: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteDiscussion: { - deprecated: string; - method: string; - params: { - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteDiscussionComment: { - deprecated: string; - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteDiscussionCommentInOrg: { - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteDiscussionCommentLegacy: { - deprecated: string; - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteDiscussionInOrg: { - method: string; - params: { - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteDiscussionLegacy: { - deprecated: string; - method: string; - params: { - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteLegacy: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - get: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getByName: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getDiscussion: { - deprecated: string; - method: string; - params: { - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getDiscussionComment: { - deprecated: string; - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getDiscussionCommentInOrg: { - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getDiscussionCommentLegacy: { - deprecated: string; - method: string; - params: { - comment_number: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getDiscussionInOrg: { - method: string; - params: { - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getDiscussionLegacy: { - deprecated: string; - method: string; - params: { - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getLegacy: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getMember: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getMemberLegacy: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getMembership: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getMembershipInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getMembershipLegacy: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - list: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listChild: { - deprecated: string; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listChildInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listChildLegacy: { - deprecated: string; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listDiscussionComments: { - deprecated: string; - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listDiscussionCommentsInOrg: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listDiscussionCommentsLegacy: { - deprecated: string; - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listDiscussions: { - deprecated: string; - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listDiscussionsInOrg: { - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listDiscussionsLegacy: { - deprecated: string; - method: string; - params: { - direction: { - enum: string[]; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listForAuthenticatedUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listMembers: { - deprecated: string; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - role: { - enum: string[]; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listMembersInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - role: { - enum: string[]; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listMembersLegacy: { - deprecated: string; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - role: { - enum: string[]; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listPendingInvitations: { - deprecated: string; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listPendingInvitationsInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listPendingInvitationsLegacy: { - deprecated: string; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listProjects: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listProjectsInOrg: { - headers: { - accept: string; - }; - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listProjectsLegacy: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listRepos: { - deprecated: string; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listReposInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - page: { - type: string; - }; - per_page: { - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listReposLegacy: { - deprecated: string; - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeMember: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeMemberLegacy: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeMembership: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeMembershipInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeMembershipLegacy: { - deprecated: string; - method: string; - params: { - team_id: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProject: { - deprecated: string; - method: string; - params: { - project_id: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProjectInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - project_id: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeProjectLegacy: { - deprecated: string; - method: string; - params: { - project_id: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeRepo: { - deprecated: string; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeRepoInOrg: { - method: string; - params: { - org: { - required: boolean; - type: string; - }; - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - removeRepoLegacy: { - deprecated: string; - method: string; - params: { - owner: { - required: boolean; - type: string; - }; - repo: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - reviewProject: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - project_id: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - reviewProjectInOrg: { - headers: { - accept: string; - }; - method: string; - params: { - org: { - required: boolean; - type: string; - }; - project_id: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - reviewProjectLegacy: { - deprecated: string; - headers: { - accept: string; - }; - method: string; - params: { - project_id: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - update: { - deprecated: string; - method: string; - params: { - description: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - parent_team_id: { - type: string; - }; - permission: { - enum: string[]; - type: string; - }; - privacy: { - enum: string[]; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateDiscussion: { - deprecated: string; - method: string; - params: { - body: { - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - title: { - type: string; - }; - }; - url: string; - }; - updateDiscussionComment: { - deprecated: string; - method: string; - params: { - body: { - required: boolean; - type: string; - }; - comment_number: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateDiscussionCommentInOrg: { - method: string; - params: { - body: { - required: boolean; - type: string; - }; - comment_number: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateDiscussionCommentLegacy: { - deprecated: string; - method: string; - params: { - body: { - required: boolean; - type: string; - }; - comment_number: { - required: boolean; - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateDiscussionInOrg: { - method: string; - params: { - body: { - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - title: { - type: string; - }; - }; - url: string; - }; - updateDiscussionLegacy: { - deprecated: string; - method: string; - params: { - body: { - type: string; - }; - discussion_number: { - required: boolean; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - title: { - type: string; - }; - }; - url: string; - }; - updateInOrg: { - method: string; - params: { - description: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - org: { - required: boolean; - type: string; - }; - parent_team_id: { - type: string; - }; - permission: { - enum: string[]; - type: string; - }; - privacy: { - enum: string[]; - type: string; - }; - team_slug: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateLegacy: { - deprecated: string; - method: string; - params: { - description: { - type: string; - }; - name: { - required: boolean; - type: string; - }; - parent_team_id: { - type: string; - }; - permission: { - enum: string[]; - type: string; - }; - privacy: { - enum: string[]; - type: string; - }; - team_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - }; - users: { - addEmails: { - method: string; - params: { - emails: { - required: boolean; - type: string; - }; - }; - url: string; - }; - block: { - method: string; - params: { - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkBlocked: { - method: string; - params: { - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkFollowing: { - method: string; - params: { - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - checkFollowingForUser: { - method: string; - params: { - target_user: { - required: boolean; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - createGpgKey: { - method: string; - params: { - armored_public_key: { - type: string; - }; - }; - url: string; - }; - createPublicKey: { - method: string; - params: { - key: { - type: string; - }; - title: { - type: string; - }; - }; - url: string; - }; - deleteEmails: { - method: string; - params: { - emails: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deleteGpgKey: { - method: string; - params: { - gpg_key_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - deletePublicKey: { - method: string; - params: { - key_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - follow: { - method: string; - params: { - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getAuthenticated: { - method: string; - params: {}; - url: string; - }; - getByUsername: { - method: string; - params: { - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getContextForUser: { - method: string; - params: { - subject_id: { - type: string; - }; - subject_type: { - enum: string[]; - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getGpgKey: { - method: string; - params: { - gpg_key_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - getPublicKey: { - method: string; - params: { - key_id: { - required: boolean; - type: string; - }; - }; - url: string; - }; - list: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - since: { - type: string; - }; - }; - url: string; - }; - listBlocked: { - method: string; - params: {}; - url: string; - }; - listEmails: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listFollowersForAuthenticatedUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listFollowersForUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listFollowingForAuthenticatedUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listFollowingForUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listGpgKeys: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listGpgKeysForUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - listPublicEmails: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listPublicKeys: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - }; - url: string; - }; - listPublicKeysForUser: { - method: string; - params: { - page: { - type: string; - }; - per_page: { - type: string; - }; - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - togglePrimaryEmailVisibility: { - method: string; - params: { - email: { - required: boolean; - type: string; - }; - visibility: { - required: boolean; - type: string; - }; - }; - url: string; - }; - unblock: { - method: string; - params: { - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - unfollow: { - method: string; - params: { - username: { - required: boolean; - type: string; - }; - }; - url: string; - }; - updateAuthenticated: { - method: string; - params: { - bio: { - type: string; - }; - blog: { - type: string; - }; - company: { - type: string; - }; - email: { - type: string; - }; - hireable: { - type: string; - }; - location: { - type: string; - }; - name: { - type: string; - }; - }; - url: string; - }; - }; -}; -export default _default; +import { EndpointsDefaultsAndDecorations } from "../types"; +declare const Endpoints: EndpointsDefaultsAndDecorations; +export default Endpoints; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types.d.ts new file mode 100644 index 000000000..85745ddf6 --- /dev/null +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/method-types.d.ts @@ -0,0 +1,7146 @@ +import { EndpointInterface, RequestInterface } from "@octokit/types"; +import { RestEndpointMethodTypes } from "./parameters-and-response-types"; +export declare type RestEndpointMethods = { + actions: { + /** + * Adds a repository to an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + addSelectedRepoToOrgSecret: { + (params?: RestEndpointMethodTypes["actions"]["addSelectedRepoToOrgSecret"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Cancels a workflow run using its `id`. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + cancelWorkflowRun: { + (params?: RestEndpointMethodTypes["actions"]["cancelWorkflowRun"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates or updates an organization secret with an encrypted value. Encrypt your secret using + * [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate using an access + * token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to + * use this endpoint. + * + * #### Example encrypting a secret using Node.js + * + * Encrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library. + * + * ``` + * const sodium = require('tweetsodium'); + * + * const key = "base64-encoded-public-key"; + * const value = "plain-text-secret"; + * + * // Convert the message and key to Uint8Array's (Buffer implements that interface) + * const messageBytes = Buffer.from(value); + * const keyBytes = Buffer.from(key, 'base64'); + * + * // Encrypt using LibSodium. + * const encryptedBytes = sodium.seal(messageBytes, keyBytes); + * + * // Base64 the encrypted secret + * const encrypted = Buffer.from(encryptedBytes).toString('base64'); + * + * console.log(encrypted); + * ``` + * + * + * #### Example encrypting a secret using Python + * + * Encrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/stable/public/#nacl-public-sealedbox) with Python 3. + * + * ``` + * from base64 import b64encode + * from nacl import encoding, public + * + * def encrypt(public_key: str, secret_value: str) -> str: + * """Encrypt a Unicode string using the public key.""" + * public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder()) + * sealed_box = public.SealedBox(public_key) + * encrypted = sealed_box.encrypt(secret_value.encode("utf-8")) + * return b64encode(encrypted).decode("utf-8") + * ``` + * + * #### Example encrypting a secret using C# + * + * Encrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package. + * + * ``` + * var secretValue = System.Text.Encoding.UTF8.GetBytes("mySecret"); + * var publicKey = Convert.FromBase64String("2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU="); + * + * var sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey); + * + * Console.WriteLine(Convert.ToBase64String(sealedPublicKeyBox)); + * ``` + * + * #### Example encrypting a secret using Ruby + * + * Encrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem. + * + * ```ruby + * require "rbnacl" + * require "base64" + * + * key = Base64.decode64("+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=") + * public_key = RbNaCl::PublicKey.new(key) + * + * box = RbNaCl::Boxes::Sealed.from_public_key(public_key) + * encrypted_secret = box.encrypt("my_secret") + * + * # Print the base64 encoded secret + * puts Base64.strict_encode64(encrypted_secret) + * ``` + */ + createOrUpdateOrgSecret: { + (params?: RestEndpointMethodTypes["actions"]["createOrUpdateOrgSecret"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates or updates a repository secret with an encrypted value. Encrypt your secret using + * [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). You must authenticate using an access + * token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use + * this endpoint. + * + * #### Example encrypting a secret using Node.js + * + * Encrypt your secret using the [tweetsodium](https://github.com/github/tweetsodium) library. + * + * ``` + * const sodium = require('tweetsodium'); + * + * const key = "base64-encoded-public-key"; + * const value = "plain-text-secret"; + * + * // Convert the message and key to Uint8Array's (Buffer implements that interface) + * const messageBytes = Buffer.from(value); + * const keyBytes = Buffer.from(key, 'base64'); + * + * // Encrypt using LibSodium. + * const encryptedBytes = sodium.seal(messageBytes, keyBytes); + * + * // Base64 the encrypted secret + * const encrypted = Buffer.from(encryptedBytes).toString('base64'); + * + * console.log(encrypted); + * ``` + * + * + * #### Example encrypting a secret using Python + * + * Encrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/stable/public/#nacl-public-sealedbox) with Python 3. + * + * ``` + * from base64 import b64encode + * from nacl import encoding, public + * + * def encrypt(public_key: str, secret_value: str) -> str: + * """Encrypt a Unicode string using the public key.""" + * public_key = public.PublicKey(public_key.encode("utf-8"), encoding.Base64Encoder()) + * sealed_box = public.SealedBox(public_key) + * encrypted = sealed_box.encrypt(secret_value.encode("utf-8")) + * return b64encode(encrypted).decode("utf-8") + * ``` + * + * #### Example encrypting a secret using C# + * + * Encrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package. + * + * ``` + * var secretValue = System.Text.Encoding.UTF8.GetBytes("mySecret"); + * var publicKey = Convert.FromBase64String("2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvvcCU="); + * + * var sealedPublicKeyBox = Sodium.SealedPublicKeyBox.Create(secretValue, publicKey); + * + * Console.WriteLine(Convert.ToBase64String(sealedPublicKeyBox)); + * ``` + * + * #### Example encrypting a secret using Ruby + * + * Encrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem. + * + * ```ruby + * require "rbnacl" + * require "base64" + * + * key = Base64.decode64("+ZYvJDZMHUfBkJdyq5Zm9SKqeuBQ4sj+6sfjlH4CgG0=") + * public_key = RbNaCl::PublicKey.new(key) + * + * box = RbNaCl::Boxes::Sealed.from_public_key(public_key) + * encrypted_secret = box.encrypt("my_secret") + * + * # Print the base64 encoded secret + * puts Base64.strict_encode64(encrypted_secret) + * ``` + */ + createOrUpdateRepoSecret: { + (params?: RestEndpointMethodTypes["actions"]["createOrUpdateRepoSecret"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns a token that you can pass to the `config` script. The token expires after one hour. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * #### Example using registration token + * + * Configure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint. + * + * ``` + * ./config.sh --url https://github.com/octo-org --token TOKEN + * ``` + */ + createRegistrationTokenForOrg: { + (params?: RestEndpointMethodTypes["actions"]["createRegistrationTokenForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns a token that you can pass to the `config` script. The token expires after one hour. You must authenticate + * using an access token with the `repo` scope to use this endpoint. + * + * #### Example using registration token + * + * Configure your self-hosted runner, replacing `TOKEN` with the registration token provided by this endpoint. + * + * ``` + * ./config.sh --url https://github.com/octo-org/octo-repo-artifacts --token TOKEN + * ``` + */ + createRegistrationTokenForRepo: { + (params?: RestEndpointMethodTypes["actions"]["createRegistrationTokenForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns a token that you can pass to the `config` script to remove a self-hosted runner from an organization. The token expires after one hour. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + * + * #### Example using remove token + * + * To remove your self-hosted runner from an organization, replace `TOKEN` with the remove token provided by this + * endpoint. + * + * ``` + * ./config.sh remove --token TOKEN + * ``` + */ + createRemoveTokenForOrg: { + (params?: RestEndpointMethodTypes["actions"]["createRemoveTokenForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns a token that you can pass to remove a self-hosted runner from a repository. The token expires after one hour. + * You must authenticate using an access token with the `repo` scope to use this endpoint. + * + * #### Example using remove token + * + * To remove your self-hosted runner from a repository, replace TOKEN with the remove token provided by this endpoint. + * + * ``` + * ./config.sh remove --token TOKEN + * ``` + */ + createRemoveTokenForRepo: { + (params?: RestEndpointMethodTypes["actions"]["createRemoveTokenForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. + * + * You must configure your GitHub Actions workflow to run when the [`workflow_dispatch` webhook](/developers/webhooks-and-events/webhook-events-and-payloads#workflow_dispatch) event occurs. The `inputs` are configured in the workflow file. For more information about how to configure the `workflow_dispatch` event in the workflow file, see "[Events that trigger workflows](/actions/reference/events-that-trigger-workflows#workflow_dispatch)." + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. For more information, see "[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line)." + */ + createWorkflowDispatch: { + (params?: RestEndpointMethodTypes["actions"]["createWorkflowDispatch"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deletes an artifact for a workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + deleteArtifact: { + (params?: RestEndpointMethodTypes["actions"]["deleteArtifact"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deletes a secret in an organization using the secret name. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + deleteOrgSecret: { + (params?: RestEndpointMethodTypes["actions"]["deleteOrgSecret"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deletes a secret in a repository using the secret name. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use this endpoint. + */ + deleteRepoSecret: { + (params?: RestEndpointMethodTypes["actions"]["deleteRepoSecret"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Forces the removal of a self-hosted runner from an organization. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + deleteSelfHostedRunnerFromOrg: { + (params?: RestEndpointMethodTypes["actions"]["deleteSelfHostedRunnerFromOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. + * + * You must authenticate using an access token with the `repo` + * scope to use this endpoint. + */ + deleteSelfHostedRunnerFromRepo: { + (params?: RestEndpointMethodTypes["actions"]["deleteSelfHostedRunnerFromRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Delete a specific workflow run. Anyone with write access to the repository can use this endpoint. If the repository is + * private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:write` permission to use + * this endpoint. + */ + deleteWorkflowRun: { + (params?: RestEndpointMethodTypes["actions"]["deleteWorkflowRun"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deletes all logs for a workflow run. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + deleteWorkflowRunLogs: { + (params?: RestEndpointMethodTypes["actions"]["deleteWorkflowRunLogs"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes a repository from the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + disableSelectedRepositoryGithubActionsOrganization: { + (params?: RestEndpointMethodTypes["actions"]["disableSelectedRepositoryGithubActionsOrganization"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Disables a workflow and sets the `state` of the workflow to `disabled_manually`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + disableWorkflow: { + (params?: RestEndpointMethodTypes["actions"]["disableWorkflow"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for `Location:` in + * the response header to find the URL for the download. The `:archive_format` must be `zip`. Anyone with read access to + * the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. + * GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + downloadArtifact: { + (params?: RestEndpointMethodTypes["actions"]["downloadArtifact"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look + * for `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can + * use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must + * have the `actions:read` permission to use this endpoint. + */ + downloadJobLogsForWorkflowRun: { + (params?: RestEndpointMethodTypes["actions"]["downloadJobLogsForWorkflowRun"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a redirect URL to download an archive of log files for a workflow run. This link expires after 1 minute. Look for + * `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can use + * this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have + * the `actions:read` permission to use this endpoint. + */ + downloadWorkflowRunLogs: { + (params?: RestEndpointMethodTypes["actions"]["downloadWorkflowRunLogs"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Adds a repository to the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + enableSelectedRepositoryGithubActionsOrganization: { + (params?: RestEndpointMethodTypes["actions"]["enableSelectedRepositoryGithubActionsOrganization"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Enables a workflow and sets the `state` of the workflow to `active`. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + enableWorkflow: { + (params?: RestEndpointMethodTypes["actions"]["enableWorkflow"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the selected actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)."" + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + getAllowedActionsOrganization: { + (params?: RestEndpointMethodTypes["actions"]["getAllowedActionsOrganization"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the settings for selected actions that are allowed in a repository. To use this endpoint, the repository policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)." + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API. + */ + getAllowedActionsRepository: { + (params?: RestEndpointMethodTypes["actions"]["getAllowedActionsRepository"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a specific artifact for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + getArtifact: { + (params?: RestEndpointMethodTypes["actions"]["getArtifact"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the GitHub Actions permissions policy for repositories and allowed actions in an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + getGithubActionsPermissionsOrganization: { + (params?: RestEndpointMethodTypes["actions"]["getGithubActionsPermissionsOrganization"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions allowed to run in the repository. + * + * You must authenticate using an access token with the `repo` scope to use this + * endpoint. GitHub Apps must have the `administration` repository permission to use this API. + */ + getGithubActionsPermissionsRepository: { + (params?: RestEndpointMethodTypes["actions"]["getGithubActionsPermissionsRepository"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a specific job in a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + getJobForWorkflowRun: { + (params?: RestEndpointMethodTypes["actions"]["getJobForWorkflowRun"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + getOrgPublicKey: { + (params?: RestEndpointMethodTypes["actions"]["getOrgPublicKey"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a single organization secret without revealing its encrypted value. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + getOrgSecret: { + (params?: RestEndpointMethodTypes["actions"]["getOrgSecret"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions allowed to run in the repository. + * + * You must authenticate using an access token with the `repo` scope to use this + * endpoint. GitHub Apps must have the `administration` repository permission to use this API. + * @deprecated octokit.actions.getRepoPermissions() has been renamed to octokit.actions.getGithubActionsPermissionsRepository() (2020-11-10) + */ + getRepoPermissions: { + (params?: RestEndpointMethodTypes["actions"]["getRepoPermissions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets your public key, which you need to encrypt secrets. You need to encrypt a secret before you can create or update secrets. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `secrets` repository permission to use this endpoint. + */ + getRepoPublicKey: { + (params?: RestEndpointMethodTypes["actions"]["getRepoPublicKey"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a single repository secret without revealing its encrypted value. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use this endpoint. + */ + getRepoSecret: { + (params?: RestEndpointMethodTypes["actions"]["getRepoSecret"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a specific self-hosted runner configured in an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + getSelfHostedRunnerForOrg: { + (params?: RestEndpointMethodTypes["actions"]["getSelfHostedRunnerForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a specific self-hosted runner configured in a repository. + * + * You must authenticate using an access token with the `repo` scope to use this + * endpoint. + */ + getSelfHostedRunnerForRepo: { + (params?: RestEndpointMethodTypes["actions"]["getSelfHostedRunnerForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a specific workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + getWorkflow: { + (params?: RestEndpointMethodTypes["actions"]["getWorkflow"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a specific workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + getWorkflowRun: { + (params?: RestEndpointMethodTypes["actions"]["getWorkflowRun"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Warning:** This GitHub Actions usage endpoint is currently in public beta and subject to change. For more information, see "[GitHub Actions API workflow usage](https://developer.github.com/changes/2020-05-15-actions-api-workflow-usage)." + * + * Gets the number of billable minutes and total run time for a specific workflow run. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". + * + * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + getWorkflowRunUsage: { + (params?: RestEndpointMethodTypes["actions"]["getWorkflowRunUsage"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Warning:** This GitHub Actions usage endpoint is currently in public beta and subject to change. For more information, see "[GitHub Actions API workflow usage](https://developer.github.com/changes/2020-05-15-actions-api-workflow-usage)." + * + * Gets the number of billable minutes used by a specific workflow during the current billing cycle. Billable minutes only apply to workflows in private repositories that use GitHub-hosted runners. Usage is listed for each GitHub-hosted runner operating system in milliseconds. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". + * + * You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + getWorkflowUsage: { + (params?: RestEndpointMethodTypes["actions"]["getWorkflowUsage"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all artifacts for a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + listArtifactsForRepo: { + (params?: RestEndpointMethodTypes["actions"]["listArtifactsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists jobs for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). + */ + listJobsForWorkflowRun: { + (params?: RestEndpointMethodTypes["actions"]["listJobsForWorkflowRun"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all secrets available in an organization without revealing their encrypted values. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + listOrgSecrets: { + (params?: RestEndpointMethodTypes["actions"]["listOrgSecrets"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all secrets available in a repository without revealing their encrypted values. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `secrets` repository permission to use this endpoint. + */ + listRepoSecrets: { + (params?: RestEndpointMethodTypes["actions"]["listRepoSecrets"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the workflows in a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + listRepoWorkflows: { + (params?: RestEndpointMethodTypes["actions"]["listRepoWorkflows"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists binaries for the runner application that you can download and run. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + listRunnerApplicationsForOrg: { + (params?: RestEndpointMethodTypes["actions"]["listRunnerApplicationsForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists binaries for the runner application that you can download and run. + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. + */ + listRunnerApplicationsForRepo: { + (params?: RestEndpointMethodTypes["actions"]["listRunnerApplicationsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all repositories that have been selected when the `visibility` for repository access to a secret is set to `selected`. You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + listSelectedReposForOrgSecret: { + (params?: RestEndpointMethodTypes["actions"]["listSelectedReposForOrgSecret"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + listSelectedRepositoriesEnabledGithubActionsOrganization: { + (params?: RestEndpointMethodTypes["actions"]["listSelectedRepositoriesEnabledGithubActionsOrganization"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all self-hosted runners configured in an organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. + */ + listSelfHostedRunnersForOrg: { + (params?: RestEndpointMethodTypes["actions"]["listSelfHostedRunnersForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all self-hosted runners configured in a repository. You must authenticate using an access token with the `repo` scope to use this endpoint. + */ + listSelfHostedRunnersForRepo: { + (params?: RestEndpointMethodTypes["actions"]["listSelfHostedRunnersForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists artifacts for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + listWorkflowRunArtifacts: { + (params?: RestEndpointMethodTypes["actions"]["listWorkflowRunArtifacts"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List all workflow runs for a workflow. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). + * + * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. + */ + listWorkflowRuns: { + (params?: RestEndpointMethodTypes["actions"]["listWorkflowRuns"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://docs.github.com/rest/overview/resources-in-the-rest-api#parameters). + * + * Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint. + */ + listWorkflowRunsForRepo: { + (params?: RestEndpointMethodTypes["actions"]["listWorkflowRunsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Re-runs your workflow run using its `id`. You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint. + */ + reRunWorkflow: { + (params?: RestEndpointMethodTypes["actions"]["reRunWorkflow"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes a repository from an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + removeSelectedRepoFromOrgSecret: { + (params?: RestEndpointMethodTypes["actions"]["removeSelectedRepoFromOrgSecret"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Sets the actions that are allowed in an organization. To use this endpoint, the organization permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." + * + * If the organization belongs to an enterprise that has `selected` actions set at the enterprise level, then you cannot override any of the enterprise's allowed actions settings. + * + * To use the `patterns_allowed` setting for private repositories, the organization must belong to an enterprise. If the organization does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories in the organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + setAllowedActionsOrganization: { + (params?: RestEndpointMethodTypes["actions"]["setAllowedActionsOrganization"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Sets the actions that are allowed in a repository. To use this endpoint, the repository permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for a repository](#set-github-actions-permissions-for-a-repository)." + * + * If the repository belongs to an organization or enterprise that has `selected` actions set at the organization or enterprise levels, then you cannot override any of the allowed actions settings. + * + * To use the `patterns_allowed` setting for private repositories, the repository must belong to an enterprise. If the repository does not belong to an enterprise, then the `patterns_allowed` setting only applies to public repositories. + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API. + */ + setAllowedActionsRepository: { + (params?: RestEndpointMethodTypes["actions"]["setAllowedActionsRepository"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Sets the GitHub Actions permissions policy for repositories and allowed actions in an organization. + * + * If the organization belongs to an enterprise that has set restrictive permissions at the enterprise level, such as `allowed_actions` to `selected` actions, then you cannot override them for the organization. + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + setGithubActionsPermissionsOrganization: { + (params?: RestEndpointMethodTypes["actions"]["setGithubActionsPermissionsOrganization"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions in the repository. + * + * If the repository belongs to an organization or enterprise that has set restrictive permissions at the organization or enterprise levels, such as `allowed_actions` to `selected` actions, then you cannot override them for the repository. + * + * You must authenticate using an access token with the `repo` scope to use this endpoint. GitHub Apps must have the `administration` repository permission to use this API. + */ + setGithubActionsPermissionsRepository: { + (params?: RestEndpointMethodTypes["actions"]["setGithubActionsPermissionsRepository"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Replaces all repositories for an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret). You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `secrets` organization permission to use this endpoint. + */ + setSelectedReposForOrgSecret: { + (params?: RestEndpointMethodTypes["actions"]["setSelectedReposForOrgSecret"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Replaces the list of selected repositories that are enabled for GitHub Actions in an organization. To use this endpoint, the organization permission policy for `enabled_repositories` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an organization](#set-github-actions-permissions-for-an-organization)." + * + * You must authenticate using an access token with the `admin:org` scope to use this endpoint. GitHub Apps must have the `administration` organization permission to use this API. + */ + setSelectedRepositoriesEnabledGithubActionsOrganization: { + (params?: RestEndpointMethodTypes["actions"]["setSelectedRepositoriesEnabledGithubActionsOrganization"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + activity: { + checkRepoIsStarredByAuthenticatedUser: { + (params?: RestEndpointMethodTypes["activity"]["checkRepoIsStarredByAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://docs.github.com/rest/reference/activity#set-a-repository-subscription). + */ + deleteRepoSubscription: { + (params?: RestEndpointMethodTypes["activity"]["deleteRepoSubscription"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Mutes all future notifications for a conversation until you comment on the thread or get an **@mention**. If you are watching the repository of the thread, you will still receive notifications. To ignore future notifications for a repository you are watching, use the [Set a thread subscription](https://docs.github.com/rest/reference/activity#set-a-thread-subscription) endpoint and set `ignore` to `true`. + */ + deleteThreadSubscription: { + (params?: RestEndpointMethodTypes["activity"]["deleteThreadSubscription"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * GitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user: + * + * * **Timeline**: The GitHub global public timeline + * * **User**: The public timeline for any user, using [URI template](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia) + * * **Current user public**: The public timeline for the authenticated user + * * **Current user**: The private timeline for the authenticated user + * * **Current user actor**: The private timeline for activity created by the authenticated user + * * **Current user organizations**: The private timeline for the organizations the authenticated user is a member of. + * * **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub. + * + * **Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens. + */ + getFeeds: { + (params?: RestEndpointMethodTypes["activity"]["getFeeds"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getRepoSubscription: { + (params?: RestEndpointMethodTypes["activity"]["getRepoSubscription"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getThread: { + (params?: RestEndpointMethodTypes["activity"]["getThread"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://docs.github.com/rest/reference/activity#get-a-repository-subscription). + * + * Note that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread. + */ + getThreadSubscriptionForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["activity"]["getThreadSubscriptionForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. + */ + listEventsForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["activity"]["listEventsForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List all notifications for the current user, sorted by most recently updated. + */ + listNotificationsForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["activity"]["listNotificationsForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This is the user's organization dashboard. You must be authenticated as the user to view this. + */ + listOrgEventsForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["activity"]["listOrgEventsForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago. + */ + listPublicEvents: { + (params?: RestEndpointMethodTypes["activity"]["listPublicEvents"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listPublicEventsForRepoNetwork: { + (params?: RestEndpointMethodTypes["activity"]["listPublicEventsForRepoNetwork"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listPublicEventsForUser: { + (params?: RestEndpointMethodTypes["activity"]["listPublicEventsForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listPublicOrgEvents: { + (params?: RestEndpointMethodTypes["activity"]["listPublicOrgEvents"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events. + */ + listReceivedEventsForUser: { + (params?: RestEndpointMethodTypes["activity"]["listReceivedEventsForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listReceivedPublicEventsForUser: { + (params?: RestEndpointMethodTypes["activity"]["listReceivedPublicEventsForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listRepoEvents: { + (params?: RestEndpointMethodTypes["activity"]["listRepoEvents"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List all notifications for the current user. + */ + listRepoNotificationsForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["activity"]["listRepoNotificationsForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists repositories the authenticated user has starred. + * + * You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: + */ + listReposStarredByAuthenticatedUser: { + (params?: RestEndpointMethodTypes["activity"]["listReposStarredByAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists repositories a user has starred. + * + * You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: + */ + listReposStarredByUser: { + (params?: RestEndpointMethodTypes["activity"]["listReposStarredByUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists repositories a user is watching. + */ + listReposWatchedByUser: { + (params?: RestEndpointMethodTypes["activity"]["listReposWatchedByUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the people that have starred the repository. + * + * You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: + */ + listStargazersForRepo: { + (params?: RestEndpointMethodTypes["activity"]["listStargazersForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists repositories the authenticated user is watching. + */ + listWatchedReposForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["activity"]["listWatchedReposForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the people watching the specified repository. + */ + listWatchersForRepo: { + (params?: RestEndpointMethodTypes["activity"]["listWatchersForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Marks all notifications as "read" removes it from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`. + */ + markNotificationsAsRead: { + (params?: RestEndpointMethodTypes["activity"]["markNotificationsAsRead"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Marks all notifications in a repository as "read" removes them from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List repository notifications for the authenticated user](https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user) endpoint and pass the query parameter `all=false`. + */ + markRepoNotificationsAsRead: { + (params?: RestEndpointMethodTypes["activity"]["markRepoNotificationsAsRead"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + markThreadAsRead: { + (params?: RestEndpointMethodTypes["activity"]["markThreadAsRead"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://docs.github.com/rest/reference/activity#delete-a-repository-subscription) completely. + */ + setRepoSubscription: { + (params?: RestEndpointMethodTypes["activity"]["setRepoSubscription"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * If you are watching a repository, you receive notifications for all threads by default. Use this endpoint to ignore future notifications for threads until you comment on the thread or get an **@mention**. + * + * You can also use this endpoint to subscribe to threads that you are currently not receiving notifications for or to subscribed to threads that you have previously ignored. + * + * Unsubscribing from a conversation in a repository that you are not watching is functionally equivalent to the [Delete a thread subscription](https://docs.github.com/rest/reference/activity#delete-a-thread-subscription) endpoint. + */ + setThreadSubscription: { + (params?: RestEndpointMethodTypes["activity"]["setThreadSubscription"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Note that 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + starRepoForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["activity"]["starRepoForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + unstarRepoForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["activity"]["unstarRepoForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + apps: { + /** + * Add a single repository to an installation. The authenticated user must have admin access to the repository. + * + * You must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization) or [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) to access this endpoint. + */ + addRepoToInstallation: { + (params?: RestEndpointMethodTypes["apps"]["addRepoToInstallation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) to use this endpoint, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`. + */ + checkToken: { + (params?: RestEndpointMethodTypes["apps"]["checkToken"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates an attachment under a content reference URL in the body or comment of an issue or pull request. Use the `id` of the content reference from the [`content_reference` event](https://docs.github.com/webhooks/event-payloads/#content_reference) to create an attachment. + * + * The app must create a content attachment within six hours of the content reference URL being posted. See "[Using content attachments](https://docs.github.com/apps/using-content-attachments/)" for details about content attachments. + * + * You must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. + */ + createContentAttachment: { + (params?: RestEndpointMethodTypes["apps"]["createContentAttachment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://docs.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`. + */ + createFromManifest: { + (params?: RestEndpointMethodTypes["apps"]["createFromManifest"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access. To restrict the access to specific repositories, you can provide the `repository_ids` when creating the token. When you omit `repository_ids`, the response does not contain the `repositories` key. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + createInstallationAccessToken: { + (params?: RestEndpointMethodTypes["apps"]["createInstallationAccessToken"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid OAuth `access_token` as an input parameter and the grant for the token's owner will be deleted. + * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). + */ + deleteAuthorization: { + (params?: RestEndpointMethodTypes["apps"]["deleteAuthorization"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Uninstalls a GitHub App on a user, organization, or business account. If you prefer to temporarily suspend an app's access to your account's resources, then we recommend the "[Suspend an app installation](https://docs.github.com/v3/apps/#suspend-an-app-installation)" endpoint. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + deleteInstallation: { + (params?: RestEndpointMethodTypes["apps"]["deleteInstallation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. + */ + deleteToken: { + (params?: RestEndpointMethodTypes["apps"]["deleteToken"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the "[List installations for the authenticated app](https://docs.github.com/rest/reference/apps#list-installations-for-the-authenticated-app)" endpoint. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + getAuthenticated: { + (params?: RestEndpointMethodTypes["apps"]["getAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`). + * + * If the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. + */ + getBySlug: { + (params?: RestEndpointMethodTypes["apps"]["getBySlug"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Enables an authenticated GitHub App to find an installation's information using the installation id. The installation's account type (`target_type`) will be either an organization or a user account, depending which account the repository belongs to. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + getInstallation: { + (params?: RestEndpointMethodTypes["apps"]["getInstallation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Enables an authenticated GitHub App to find the organization's installation information. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + getOrgInstallation: { + (params?: RestEndpointMethodTypes["apps"]["getOrgInstallation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + getRepoInstallation: { + (params?: RestEndpointMethodTypes["apps"]["getRepoInstallation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + getSubscriptionPlanForAccount: { + (params?: RestEndpointMethodTypes["apps"]["getSubscriptionPlanForAccount"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + getSubscriptionPlanForAccountStubbed: { + (params?: RestEndpointMethodTypes["apps"]["getSubscriptionPlanForAccountStubbed"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Enables an authenticated GitHub App to find the user’s installation information. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + getUserInstallation: { + (params?: RestEndpointMethodTypes["apps"]["getUserInstallation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)." + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + getWebhookConfigForApp: { + (params?: RestEndpointMethodTypes["apps"]["getWebhookConfigForApp"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + listAccountsForPlan: { + (params?: RestEndpointMethodTypes["apps"]["listAccountsForPlan"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns repository and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + listAccountsForPlanStubbed: { + (params?: RestEndpointMethodTypes["apps"]["listAccountsForPlanStubbed"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation. + * + * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. + * + * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * + * The access the user has to each repository is included in the hash under the `permissions` key. + */ + listInstallationReposForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["apps"]["listInstallationReposForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + * + * The permissions the installation has are included under the `permissions` key. + */ + listInstallations: { + (params?: RestEndpointMethodTypes["apps"]["listInstallations"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. + * + * You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. + * + * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. + * + * You can find the permissions for the installation under the `permissions` key. + */ + listInstallationsForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["apps"]["listInstallationsForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all plans that are part of your GitHub Marketplace listing. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + listPlans: { + (params?: RestEndpointMethodTypes["apps"]["listPlans"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all plans that are part of your GitHub Marketplace listing. + * + * GitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) with their client ID and client secret to access this endpoint. + */ + listPlansStubbed: { + (params?: RestEndpointMethodTypes["apps"]["listPlansStubbed"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List repositories that an app installation can access. + * + * You must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. + */ + listReposAccessibleToInstallation: { + (params?: RestEndpointMethodTypes["apps"]["listReposAccessibleToInstallation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + */ + listSubscriptionsForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["apps"]["listSubscriptionsForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the active subscriptions for the authenticated user. You must use a [user-to-server OAuth access token](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/). + */ + listSubscriptionsForAuthenticatedUserStubbed: { + (params?: RestEndpointMethodTypes["apps"]["listSubscriptionsForAuthenticatedUserStubbed"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Remove a single repository from an installation. The authenticated user must have admin access to the repository. + * + * You must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization) or [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) to access this endpoint. + */ + removeRepoFromInstallation: { + (params?: RestEndpointMethodTypes["apps"]["removeRepoFromInstallation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use [Basic Authentication](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. + */ + resetToken: { + (params?: RestEndpointMethodTypes["apps"]["resetToken"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Revokes the installation token you're using to authenticate as an installation and access this endpoint. + * + * Once an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the "[Create an installation access token for an app](https://docs.github.com/rest/reference/apps#create-an-installation-access-token-for-an-app)" endpoint. + * + * You must use an [installation access token](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. + */ + revokeInstallationAccessToken: { + (params?: RestEndpointMethodTypes["apps"]["revokeInstallationAccessToken"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** Suspending a GitHub App installation is currently in beta and subject to change. Before you can suspend a GitHub App, the app owner must enable suspending installations for the app by opting-in to the beta. For more information, see "[Suspending a GitHub App installation](https://docs.github.com/apps/managing-github-apps/suspending-a-github-app-installation/)." + * + * Suspends a GitHub App on a user, organization, or business account, which blocks the app from accessing the account's resources. When a GitHub App is suspended, the app's access to the GitHub API or webhook events is blocked for that account. + * + * To suspend a GitHub App, you must be an account owner or have admin permissions in the repository or organization where the app is installed. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + suspendInstallation: { + (params?: RestEndpointMethodTypes["apps"]["suspendInstallation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** Suspending a GitHub App installation is currently in beta and subject to change. Before you can suspend a GitHub App, the app owner must enable suspending installations for the app by opting-in to the beta. For more information, see "[Suspending a GitHub App installation](https://docs.github.com/apps/managing-github-apps/suspending-a-github-app-installation/)." + * + * Removes a GitHub App installation suspension. + * + * To unsuspend a GitHub App, you must be an account owner or have admin permissions in the repository or organization where the app is installed and suspended. + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + unsuspendInstallation: { + (params?: RestEndpointMethodTypes["apps"]["unsuspendInstallation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Updates the webhook configuration for a GitHub App. For more information about configuring a webhook for your app, see "[Creating a GitHub App](/developers/apps/creating-a-github-app)." + * + * You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. + */ + updateWebhookConfigForApp: { + (params?: RestEndpointMethodTypes["apps"]["updateWebhookConfigForApp"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + billing: { + /** + * Gets the summary of the free and paid GitHub Actions minutes used. + * + * Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". + * + * Access tokens must have the `read:org` scope. + */ + getGithubActionsBillingOrg: { + (params?: RestEndpointMethodTypes["billing"]["getGithubActionsBillingOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the summary of the free and paid GitHub Actions minutes used. + * + * Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see "[Managing billing for GitHub Actions](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-actions)". + * + * Access tokens must have the `user` scope. + */ + getGithubActionsBillingUser: { + (params?: RestEndpointMethodTypes["billing"]["getGithubActionsBillingUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the free and paid storage usued for GitHub Packages in gigabytes. + * + * Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." + * + * Access tokens must have the `read:org` scope. + */ + getGithubPackagesBillingOrg: { + (params?: RestEndpointMethodTypes["billing"]["getGithubPackagesBillingOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the free and paid storage used for GitHub Packages in gigabytes. + * + * Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." + * + * Access tokens must have the `user` scope. + */ + getGithubPackagesBillingUser: { + (params?: RestEndpointMethodTypes["billing"]["getGithubPackagesBillingUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages. + * + * Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." + * + * Access tokens must have the `read:org` scope. + */ + getSharedStorageBillingOrg: { + (params?: RestEndpointMethodTypes["billing"]["getSharedStorageBillingOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages. + * + * Paid minutes only apply to packages stored for private repositories. For more information, see "[Managing billing for GitHub Packages](https://help.github.com/github/setting-up-and-managing-billing-and-payments-on-github/managing-billing-for-github-packages)." + * + * Access tokens must have the `user` scope. + */ + getSharedStorageBillingUser: { + (params?: RestEndpointMethodTypes["billing"]["getSharedStorageBillingUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + checks: { + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. + * + * Creates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs. + * + * In a check suite, GitHub limits the number of check runs with the same name to 1000. Once these check runs exceed 1000, GitHub will start to automatically delete older check runs. + */ + create: { + (params?: RestEndpointMethodTypes["checks"]["create"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. + * + * By default, check suites are automatically created when you create a [check run](https://docs.github.com/rest/reference/checks#check-runs). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Update repository preferences for check suites](https://docs.github.com/rest/reference/checks#update-repository-preferences-for-check-suites)". Your GitHub App must have the `checks:write` permission to create check suites. + */ + createSuite: { + (params?: RestEndpointMethodTypes["checks"]["createSuite"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. + * + * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + */ + get: { + (params?: RestEndpointMethodTypes["checks"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. + * + * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + */ + getSuite: { + (params?: RestEndpointMethodTypes["checks"]["getSuite"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. + */ + listAnnotations: { + (params?: RestEndpointMethodTypes["checks"]["listAnnotations"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. + * + * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + */ + listForRef: { + (params?: RestEndpointMethodTypes["checks"]["listForRef"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. + * + * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. + */ + listForSuite: { + (params?: RestEndpointMethodTypes["checks"]["listForSuite"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. + * + * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. + */ + listSuitesForRef: { + (params?: RestEndpointMethodTypes["checks"]["listSuitesForRef"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. + * + * To rerequest a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository. + */ + rerequestSuite: { + (params?: RestEndpointMethodTypes["checks"]["rerequestSuite"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Changes the default automatic flow when creating check suites. By default, a check suite is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://docs.github.com/rest/reference/checks#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites. + */ + setSuitesPreferences: { + (params?: RestEndpointMethodTypes["checks"]["setSuitesPreferences"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. + * + * Updates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs. + */ + update: { + (params?: RestEndpointMethodTypes["checks"]["update"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + codeScanning: { + /** + * Gets a single code scanning alert. You must use an access token with the `security_events` scope to use this endpoint. GitHub Apps must have the `security_events` read permission to use this endpoint. + * + * The security `alert_number` is found at the end of the security alert's URL. For example, the security alert ID for `https://github.com/Octo-org/octo-repo/security/code-scanning/88` is `88`. + */ + getAlert: { + (params?: RestEndpointMethodTypes["codeScanning"]["getAlert"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all open code scanning alerts for the default branch (usually `main` or `master`). For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` read permission to use this endpoint. + */ + listAlertsForRepo: { + (params?: RestEndpointMethodTypes["codeScanning"]["listAlertsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List the details of recent code scanning analyses for a repository. For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` read permission to use this endpoint. + */ + listRecentAnalyses: { + (params?: RestEndpointMethodTypes["codeScanning"]["listRecentAnalyses"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Updates the status of a single code scanning alert. For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. + * GitHub Apps must have the `security_events` write permission to use this endpoint. + */ + updateAlert: { + (params?: RestEndpointMethodTypes["codeScanning"]["updateAlert"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Upload a SARIF file containing the results of a code scanning analysis to make the results available in a repository. + * For private repos, you must use an access token with the `repo` scope. For public repos, you must use an access token with `public_repo` and `repo:security_events` scopes. GitHub Apps must have the `security_events` write permission to use this endpoint. + */ + uploadSarif: { + (params?: RestEndpointMethodTypes["codeScanning"]["uploadSarif"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + codesOfConduct: { + getAllCodesOfConduct: { + (params?: RestEndpointMethodTypes["codesOfConduct"]["getAllCodesOfConduct"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getConductCode: { + (params?: RestEndpointMethodTypes["codesOfConduct"]["getConductCode"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This method returns the contents of the repository's code of conduct file, if one is detected. + */ + getForRepo: { + (params?: RestEndpointMethodTypes["codesOfConduct"]["getForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + emojis: { + /** + * Lists all the emojis available to use on GitHub. + */ + get: { + (params?: RestEndpointMethodTypes["emojis"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + enterpriseAdmin: { + /** + * Removes an organization from the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + disableSelectedOrganizationGithubActionsEnterprise: { + (params?: RestEndpointMethodTypes["enterpriseAdmin"]["disableSelectedOrganizationGithubActionsEnterprise"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Adds an organization to the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + enableSelectedOrganizationGithubActionsEnterprise: { + (params?: RestEndpointMethodTypes["enterpriseAdmin"]["enableSelectedOrganizationGithubActionsEnterprise"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the selected actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + getAllowedActionsEnterprise: { + (params?: RestEndpointMethodTypes["enterpriseAdmin"]["getAllowedActionsEnterprise"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + getGithubActionsPermissionsEnterprise: { + (params?: RestEndpointMethodTypes["enterpriseAdmin"]["getGithubActionsPermissionsEnterprise"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the organizations that are selected to have GitHub Actions enabled in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + listSelectedOrganizationsEnabledGithubActionsEnterprise: { + (params?: RestEndpointMethodTypes["enterpriseAdmin"]["listSelectedOrganizationsEnabledGithubActionsEnterprise"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Sets the actions that are allowed in an enterprise. To use this endpoint, the enterprise permission policy for `allowed_actions` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + setAllowedActionsEnterprise: { + (params?: RestEndpointMethodTypes["enterpriseAdmin"]["setAllowedActionsEnterprise"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Sets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise. + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + setGithubActionsPermissionsEnterprise: { + (params?: RestEndpointMethodTypes["enterpriseAdmin"]["setGithubActionsPermissionsEnterprise"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Replaces the list of selected organizations that are enabled for GitHub Actions in an enterprise. To use this endpoint, the enterprise permission policy for `enabled_organizations` must be configured to `selected`. For more information, see "[Set GitHub Actions permissions for an enterprise](#set-github-actions-permissions-for-an-enterprise)." + * + * You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint. + */ + setSelectedOrganizationsEnabledGithubActionsEnterprise: { + (params?: RestEndpointMethodTypes["enterpriseAdmin"]["setSelectedOrganizationsEnabledGithubActionsEnterprise"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + gists: { + checkIsStarred: { + (params?: RestEndpointMethodTypes["gists"]["checkIsStarred"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Allows you to add a new gist with one or more files. + * + * **Note:** Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally. + */ + create: { + (params?: RestEndpointMethodTypes["gists"]["create"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + createComment: { + (params?: RestEndpointMethodTypes["gists"]["createComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + delete: { + (params?: RestEndpointMethodTypes["gists"]["delete"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteComment: { + (params?: RestEndpointMethodTypes["gists"]["deleteComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note**: This was previously `/gists/:gist_id/fork`. + */ + fork: { + (params?: RestEndpointMethodTypes["gists"]["fork"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + get: { + (params?: RestEndpointMethodTypes["gists"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getComment: { + (params?: RestEndpointMethodTypes["gists"]["getComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getRevision: { + (params?: RestEndpointMethodTypes["gists"]["getRevision"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the authenticated user's gists or if called anonymously, this endpoint returns all public gists: + */ + list: { + (params?: RestEndpointMethodTypes["gists"]["list"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listComments: { + (params?: RestEndpointMethodTypes["gists"]["listComments"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listCommits: { + (params?: RestEndpointMethodTypes["gists"]["listCommits"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists public gists for the specified user: + */ + listForUser: { + (params?: RestEndpointMethodTypes["gists"]["listForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listForks: { + (params?: RestEndpointMethodTypes["gists"]["listForks"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List public gists sorted by most recently updated to least recently updated. + * + * Note: With [pagination](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. + */ + listPublic: { + (params?: RestEndpointMethodTypes["gists"]["listPublic"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List the authenticated user's starred gists: + */ + listStarred: { + (params?: RestEndpointMethodTypes["gists"]["listStarred"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Note that 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + star: { + (params?: RestEndpointMethodTypes["gists"]["star"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + unstar: { + (params?: RestEndpointMethodTypes["gists"]["unstar"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged. + */ + update: { + (params?: RestEndpointMethodTypes["gists"]["update"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + updateComment: { + (params?: RestEndpointMethodTypes["gists"]["updateComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + git: { + createBlob: { + (params?: RestEndpointMethodTypes["git"]["createBlob"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). + * + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + createCommit: { + (params?: RestEndpointMethodTypes["git"]["createCommit"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches. + */ + createRef: { + (params?: RestEndpointMethodTypes["git"]["createRef"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://docs.github.com/rest/reference/git#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://docs.github.com/rest/reference/git#create-a-reference) the tag reference - this call would be unnecessary. + * + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + createTag: { + (params?: RestEndpointMethodTypes["git"]["createTag"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure. + * + * If you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see "[Create a commit](https://docs.github.com/rest/reference/git#create-a-commit)" and "[Update a reference](https://docs.github.com/rest/reference/git#update-a-reference)." + */ + createTree: { + (params?: RestEndpointMethodTypes["git"]["createTree"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteRef: { + (params?: RestEndpointMethodTypes["git"]["deleteRef"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * The `content` in the response will always be Base64 encoded. + * + * _Note_: This API supports blobs up to 100 megabytes in size. + */ + getBlob: { + (params?: RestEndpointMethodTypes["git"]["getBlob"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). + * + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + getCommit: { + (params?: RestEndpointMethodTypes["git"]["getCommit"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns a single reference from your Git database. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't match an existing ref, a `404` is returned. + * + * **Note:** You need to explicitly [request a pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". + */ + getRef: { + (params?: RestEndpointMethodTypes["git"]["getRef"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + getTag: { + (params?: RestEndpointMethodTypes["git"]["getTag"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns a single tree using the SHA1 value for that tree. + * + * If `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, use the non-recursive method of fetching trees, and fetch one sub-tree at a time. + */ + getTree: { + (params?: RestEndpointMethodTypes["git"]["getTree"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns an array of references from your Git database that match the supplied name. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be returned as an array. + * + * When you use this endpoint without providing a `:ref`, it will return an array of all the references from your Git database, including notes and stashes if they exist on the server. Anything in the namespace is returned, not just `heads` and `tags`. + * + * **Note:** You need to explicitly [request a pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". + * + * If you request matching references for a branch named `feature` but the branch `feature` doesn't exist, the response can still include other matching head refs that start with the word `feature`, such as `featureA` and `featureB`. + */ + listMatchingRefs: { + (params?: RestEndpointMethodTypes["git"]["listMatchingRefs"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + updateRef: { + (params?: RestEndpointMethodTypes["git"]["updateRef"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + gitignore: { + /** + * List all templates available to pass as an option when [creating a repository](https://docs.github.com/rest/reference/repos#create-a-repository-for-the-authenticated-user). + */ + getAllTemplates: { + (params?: RestEndpointMethodTypes["gitignore"]["getAllTemplates"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * The API also allows fetching the source of a single template. + * Use the raw [media type](https://docs.github.com/rest/overview/media-types/) to get the raw contents. + */ + getTemplate: { + (params?: RestEndpointMethodTypes["gitignore"]["getTemplate"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + interactions: { + /** + * Shows which type of GitHub user can interact with this organization and when the restriction expires. If there is no restrictions, you will see an empty response. + */ + getRestrictionsForOrg: { + (params?: RestEndpointMethodTypes["interactions"]["getRestrictionsForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Shows which type of GitHub user can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response. + */ + getRestrictionsForRepo: { + (params?: RestEndpointMethodTypes["interactions"]["getRestrictionsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Shows which type of GitHub user can interact with your public repositories and when the restriction expires. If there are no restrictions, you will see an empty response. + */ + getRestrictionsForYourPublicRepos: { + (params?: RestEndpointMethodTypes["interactions"]["getRestrictionsForYourPublicRepos"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions. + */ + removeRestrictionsForOrg: { + (params?: RestEndpointMethodTypes["interactions"]["removeRestrictionsForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. If the interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository. + */ + removeRestrictionsForRepo: { + (params?: RestEndpointMethodTypes["interactions"]["removeRestrictionsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes any interaction restrictions from your public repositories. + */ + removeRestrictionsForYourPublicRepos: { + (params?: RestEndpointMethodTypes["interactions"]["removeRestrictionsForYourPublicRepos"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Temporarily restricts interactions to a certain type of GitHub user in any public repository in the given organization. You must be an organization owner to set these restrictions. Setting the interaction limit at the organization level will overwrite any interaction limits that are set for individual repositories owned by the organization. + */ + setRestrictionsForOrg: { + (params?: RestEndpointMethodTypes["interactions"]["setRestrictionsForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Temporarily restricts interactions to a certain type of GitHub user within the given repository. You must have owner or admin access to set these restrictions. If an interaction limit is set for the user or organization that owns this repository, you will receive a `409 Conflict` response and will not be able to use this endpoint to change the interaction limit for a single repository. + */ + setRestrictionsForRepo: { + (params?: RestEndpointMethodTypes["interactions"]["setRestrictionsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Temporarily restricts which type of GitHub user can interact with your public repositories. Setting the interaction limit at the user level will overwrite any interaction limits that are set for individual repositories owned by the user. + */ + setRestrictionsForYourPublicRepos: { + (params?: RestEndpointMethodTypes["interactions"]["setRestrictionsForYourPublicRepos"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + issues: { + /** + * Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced. + */ + addAssignees: { + (params?: RestEndpointMethodTypes["issues"]["addAssignees"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + addLabels: { + (params?: RestEndpointMethodTypes["issues"]["addLabels"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Checks if a user has permission to be assigned to an issue in this repository. + * + * If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned. + * + * Otherwise a `404` status code is returned. + */ + checkUserCanBeAssigned: { + (params?: RestEndpointMethodTypes["issues"]["checkUserCanBeAssigned"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://help.github.com/articles/disabling-issues/), the API returns a `410 Gone` status. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)" for details. + */ + create: { + (params?: RestEndpointMethodTypes["issues"]["create"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)" for details. + */ + createComment: { + (params?: RestEndpointMethodTypes["issues"]["createComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + createLabel: { + (params?: RestEndpointMethodTypes["issues"]["createLabel"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + createMilestone: { + (params?: RestEndpointMethodTypes["issues"]["createMilestone"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteComment: { + (params?: RestEndpointMethodTypes["issues"]["deleteComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteLabel: { + (params?: RestEndpointMethodTypes["issues"]["deleteLabel"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteMilestone: { + (params?: RestEndpointMethodTypes["issues"]["deleteMilestone"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * The API returns a [`301 Moved Permanently` status](https://docs.github.com/rest/overview/resources-in-the-rest-api#http-redirects-redirects) if the issue was + * [transferred](https://help.github.com/articles/transferring-an-issue-to-another-repository/) to another repository. If + * the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API + * returns a `404 Not Found` status. If the issue was deleted from a repository where the authenticated user has read + * access, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted issues, subscribe + * to the [`issues`](https://docs.github.com/webhooks/event-payloads/#issues) webhook. + * + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this + * reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by + * the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull + * request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + get: { + (params?: RestEndpointMethodTypes["issues"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getComment: { + (params?: RestEndpointMethodTypes["issues"]["getComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getEvent: { + (params?: RestEndpointMethodTypes["issues"]["getEvent"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getLabel: { + (params?: RestEndpointMethodTypes["issues"]["getLabel"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getMilestone: { + (params?: RestEndpointMethodTypes["issues"]["getMilestone"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List issues assigned to the authenticated user across all visible repositories including owned repositories, member + * repositories, and organization repositories. You can use the `filter` query parameter to fetch issues that are not + * necessarily assigned to you. + * + * + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this + * reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by + * the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull + * request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + list: { + (params?: RestEndpointMethodTypes["issues"]["list"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. + */ + listAssignees: { + (params?: RestEndpointMethodTypes["issues"]["listAssignees"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Issue Comments are ordered by ascending ID. + */ + listComments: { + (params?: RestEndpointMethodTypes["issues"]["listComments"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * By default, Issue Comments are ordered by ascending ID. + */ + listCommentsForRepo: { + (params?: RestEndpointMethodTypes["issues"]["listCommentsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listEvents: { + (params?: RestEndpointMethodTypes["issues"]["listEvents"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listEventsForRepo: { + (params?: RestEndpointMethodTypes["issues"]["listEventsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listEventsForTimeline: { + (params?: RestEndpointMethodTypes["issues"]["listEventsForTimeline"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List issues across owned and member repositories assigned to the authenticated user. + * + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this + * reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by + * the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull + * request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + listForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["issues"]["listForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List issues in an organization assigned to the authenticated user. + * + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this + * reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by + * the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull + * request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + listForOrg: { + (params?: RestEndpointMethodTypes["issues"]["listForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List issues in a repository. + * + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this + * reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by + * the `pull_request` key. Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull + * request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + listForRepo: { + (params?: RestEndpointMethodTypes["issues"]["listForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listLabelsForMilestone: { + (params?: RestEndpointMethodTypes["issues"]["listLabelsForMilestone"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listLabelsForRepo: { + (params?: RestEndpointMethodTypes["issues"]["listLabelsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listLabelsOnIssue: { + (params?: RestEndpointMethodTypes["issues"]["listLabelsOnIssue"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listMilestones: { + (params?: RestEndpointMethodTypes["issues"]["listMilestones"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with push access can lock an issue or pull request's conversation. + * + * 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + lock: { + (params?: RestEndpointMethodTypes["issues"]["lock"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + removeAllLabels: { + (params?: RestEndpointMethodTypes["issues"]["removeAllLabels"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes one or more assignees from an issue. + */ + removeAssignees: { + (params?: RestEndpointMethodTypes["issues"]["removeAssignees"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist. + */ + removeLabel: { + (params?: RestEndpointMethodTypes["issues"]["removeLabel"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes any previous labels and sets the new labels for an issue. + */ + setLabels: { + (params?: RestEndpointMethodTypes["issues"]["setLabels"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with push access can unlock an issue's conversation. + */ + unlock: { + (params?: RestEndpointMethodTypes["issues"]["unlock"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Issue owners and users with push access can edit an issue. + */ + update: { + (params?: RestEndpointMethodTypes["issues"]["update"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + updateComment: { + (params?: RestEndpointMethodTypes["issues"]["updateComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + updateLabel: { + (params?: RestEndpointMethodTypes["issues"]["updateLabel"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + updateMilestone: { + (params?: RestEndpointMethodTypes["issues"]["updateMilestone"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + licenses: { + get: { + (params?: RestEndpointMethodTypes["licenses"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getAllCommonlyUsed: { + (params?: RestEndpointMethodTypes["licenses"]["getAllCommonlyUsed"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This method returns the contents of the repository's license file, if one is detected. + * + * Similar to [Get repository content](https://docs.github.com/rest/reference/repos/contents#get-repository-content), this method also supports [custom media types](https://docs.github.com/rest/overview/media-types) for retrieving the raw license content or rendered license HTML. + */ + getForRepo: { + (params?: RestEndpointMethodTypes["licenses"]["getForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + markdown: { + render: { + (params?: RestEndpointMethodTypes["markdown"]["render"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less. + */ + renderRaw: { + (params?: RestEndpointMethodTypes["markdown"]["renderRaw"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + meta: { + /** + * This endpoint provides a list of GitHub's IP addresses. For more information, see "[About GitHub's IP addresses](https://help.github.com/articles/about-github-s-ip-addresses/)." + */ + get: { + (params?: RestEndpointMethodTypes["meta"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Get the octocat as ASCII art + */ + getOctocat: { + (params?: RestEndpointMethodTypes["meta"]["getOctocat"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Get a random sentence from the Zen of GitHub + */ + getZen: { + (params?: RestEndpointMethodTypes["meta"]["getZen"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Get Hypermedia links to resources accessible in GitHub's REST API + */ + root: { + (params?: RestEndpointMethodTypes["meta"]["root"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + migrations: { + /** + * Stop an import for a repository. + */ + cancelImport: { + (params?: RestEndpointMethodTypes["migrations"]["cancelImport"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://docs.github.com/rest/reference/migrations#list-user-migrations) and [Get a user migration status](https://docs.github.com/rest/reference/migrations#get-a-user-migration-status) endpoints, will continue to be available even after an archive is deleted. + */ + deleteArchiveForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["migrations"]["deleteArchiveForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deletes a previous migration archive. Migration archives are automatically deleted after seven days. + */ + deleteArchiveForOrg: { + (params?: RestEndpointMethodTypes["migrations"]["deleteArchiveForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Fetches the URL to a migration archive. + */ + downloadArchiveForOrg: { + (params?: RestEndpointMethodTypes["migrations"]["downloadArchiveForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects: + * + * * attachments + * * bases + * * commit\_comments + * * issue\_comments + * * issue\_events + * * issues + * * milestones + * * organizations + * * projects + * * protected\_branches + * * pull\_request\_reviews + * * pull\_requests + * * releases + * * repositories + * * review\_comments + * * schema + * * users + * + * The archive will also contain an `attachments` directory that includes all attachment files uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data. + */ + getArchiveForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["migrations"]["getArchiveForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot `. + * + * This endpoint and the [Map a commit author](https://docs.github.com/rest/reference/migrations#map-a-commit-author) endpoint allow you to provide correct Git author information. + */ + getCommitAuthors: { + (params?: RestEndpointMethodTypes["migrations"]["getCommitAuthors"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * View the progress of an import. + * + * **Import status** + * + * This section includes details about the possible values of the `status` field of the Import Progress response. + * + * An import that does not have errors will progress through these steps: + * + * * `detecting` - the "detection" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL. + * * `importing` - the "raw" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import). + * * `mapping` - the "rewrite" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information. + * * `pushing` - the "push" step of the import is in progress. This is where the importer updates the repository on GitHub. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is "Writing objects". + * * `complete` - the import is complete, and the repository is ready on GitHub. + * + * If there are problems, you will see one of these in the `status` field: + * + * * `auth_failed` - the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update an import](https://docs.github.com/rest/reference/migrations#update-an-import) section. + * * `error` - the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub Support](https://github.com/contact) or [GitHub Premium Support](https://premium.githubsupport.com) for more information. + * * `detection_needs_auth` - the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update an import](https://docs.github.com/rest/reference/migrations#update-an-import) section. + * * `detection_found_nothing` - the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](https://docs.github.com/rest/reference/migrations#cancel-an-import) and [retry](https://docs.github.com/rest/reference/migrations#start-an-import) with the correct URL. + * * `detection_found_multiple` - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update an import](https://docs.github.com/rest/reference/migrations#update-an-import) section. + * + * **The project_choices field** + * + * When multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type. + * + * **Git LFS related fields** + * + * This section includes details about Git LFS related fields that may be present in the Import Progress response. + * + * * `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken. + * * `has_large_files` - the boolean value describing whether files larger than 100MB were found during the `importing` step. + * * `large_files_size` - the total size in gigabytes of files larger than 100MB found in the originating repository. + * * `large_files_count` - the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a "Get Large Files" request. + */ + getImportStatus: { + (params?: RestEndpointMethodTypes["migrations"]["getImportStatus"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List files larger than 100MB found during the import + */ + getLargeFiles: { + (params?: RestEndpointMethodTypes["migrations"]["getLargeFiles"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values: + * + * * `pending` - the migration hasn't started yet. + * * `exporting` - the migration is in progress. + * * `exported` - the migration finished successfully. + * * `failed` - the migration failed. + * + * Once the migration has been `exported` you can [download the migration archive](https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive). + */ + getStatusForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["migrations"]["getStatusForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Fetches the status of a migration. + * + * The `state` of a migration can be one of the following values: + * + * * `pending`, which means the migration hasn't started yet. + * * `exporting`, which means the migration is in progress. + * * `exported`, which means the migration finished successfully. + * * `failed`, which means the migration failed. + */ + getStatusForOrg: { + (params?: RestEndpointMethodTypes["migrations"]["getStatusForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all migrations a user has started. + */ + listForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["migrations"]["listForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the most recent migrations. + */ + listForOrg: { + (params?: RestEndpointMethodTypes["migrations"]["listForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List all the repositories for this organization migration. + */ + listReposForOrg: { + (params?: RestEndpointMethodTypes["migrations"]["listReposForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all the repositories for this user migration. + */ + listReposForUser: { + (params?: RestEndpointMethodTypes["migrations"]["listReposForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Update an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository. + */ + mapCommitAuthor: { + (params?: RestEndpointMethodTypes["migrations"]["mapCommitAuthor"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability is powered by [Git LFS](https://git-lfs.github.com). You can learn more about our LFS feature and working with large files [on our help site](https://help.github.com/articles/versioning-large-files/). + */ + setLfsPreference: { + (params?: RestEndpointMethodTypes["migrations"]["setLfsPreference"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Initiates the generation of a user migration archive. + */ + startForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["migrations"]["startForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Initiates the generation of a migration archive. + */ + startForOrg: { + (params?: RestEndpointMethodTypes["migrations"]["startForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Start a source import to a GitHub repository using GitHub Importer. + */ + startImport: { + (params?: RestEndpointMethodTypes["migrations"]["startImport"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Unlocks a repository. You can lock repositories when you [start a user migration](https://docs.github.com/rest/reference/migrations#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://docs.github.com/rest/reference/repos#delete-a-repository) if you no longer need the source data. Returns a status of `404 Not Found` if the repository is not locked. + */ + unlockRepoForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["migrations"]["unlockRepoForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Unlocks a repository that was locked for migration. You should unlock each migrated repository and [delete them](https://docs.github.com/rest/reference/repos#delete-a-repository) when the migration is complete and you no longer need the source data. + */ + unlockRepoForOrg: { + (params?: RestEndpointMethodTypes["migrations"]["unlockRepoForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * An import can be updated with credentials or a project choice by passing in the appropriate parameters in this API + * request. If no parameters are provided, the import will be restarted. + */ + updateImport: { + (params?: RestEndpointMethodTypes["migrations"]["updateImport"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + orgs: { + blockUser: { + (params?: RestEndpointMethodTypes["orgs"]["blockUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + checkBlockedUser: { + (params?: RestEndpointMethodTypes["orgs"]["checkBlockedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Check if a user is, publicly or privately, a member of the organization. + */ + checkMembershipForUser: { + (params?: RestEndpointMethodTypes["orgs"]["checkMembershipForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + checkPublicMembershipForUser: { + (params?: RestEndpointMethodTypes["orgs"]["checkPublicMembershipForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see "[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)". + */ + convertMemberToOutsideCollaborator: { + (params?: RestEndpointMethodTypes["orgs"]["convertMemberToOutsideCollaborator"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + createInvitation: { + (params?: RestEndpointMethodTypes["orgs"]["createInvitation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Here's how you can create a hook that posts payloads in JSON format: + */ + createWebhook: { + (params?: RestEndpointMethodTypes["orgs"]["createWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteWebhook: { + (params?: RestEndpointMethodTypes["orgs"]["deleteWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/). + * + * GitHub Apps with the `Organization plan` permission can use this endpoint to retrieve information about an organization's GitHub plan. See "[Authenticating with GitHub Apps](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/)" for details. For an example response, see 'Response with GitHub plan information' below." + */ + get: { + (params?: RestEndpointMethodTypes["orgs"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getMembershipForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["orgs"]["getMembershipForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * In order to get a user's membership with an organization, the authenticated user must be an organization member. + */ + getMembershipForUser: { + (params?: RestEndpointMethodTypes["orgs"]["getMembershipForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns a webhook configured in an organization. To get only the webhook `config` properties, see "[Get a webhook configuration for an organization](/rest/reference/orgs#get-a-webhook-configuration-for-an-organization)." + */ + getWebhook: { + (params?: RestEndpointMethodTypes["orgs"]["getWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns the webhook configuration for an organization. To get more information about the webhook, including the `active` state and `events`, use "[Get an organization webhook ](/rest/reference/orgs#get-an-organization-webhook)." + * + * Access tokens must have the `admin:org_hook` scope, and GitHub Apps must have the `organization_hooks:read` permission. + */ + getWebhookConfigForOrg: { + (params?: RestEndpointMethodTypes["orgs"]["getWebhookConfigForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all organizations, in the order that they were created on GitHub. + * + * **Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of organizations. + */ + list: { + (params?: RestEndpointMethodTypes["orgs"]["list"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all GitHub Apps in an organization. The installation count includes all GitHub Apps installed on repositories in the organization. You must be an organization owner with `admin:read` scope to use this endpoint. + */ + listAppInstallations: { + (params?: RestEndpointMethodTypes["orgs"]["listAppInstallations"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List the users blocked by an organization. + */ + listBlockedUsers: { + (params?: RestEndpointMethodTypes["orgs"]["listBlockedUsers"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List organizations for the authenticated user. + * + * **OAuth scope requirements** + * + * This only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response. + */ + listForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["orgs"]["listForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user. + * + * This method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List organizations for the authenticated user](https://docs.github.com/rest/reference/orgs#list-organizations-for-the-authenticated-user) API instead. + */ + listForUser: { + (params?: RestEndpointMethodTypes["orgs"]["listForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner. + */ + listInvitationTeams: { + (params?: RestEndpointMethodTypes["orgs"]["listInvitationTeams"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. + */ + listMembers: { + (params?: RestEndpointMethodTypes["orgs"]["listMembers"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listMembershipsForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["orgs"]["listMembershipsForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List all users who are outside collaborators of an organization. + */ + listOutsideCollaborators: { + (params?: RestEndpointMethodTypes["orgs"]["listOutsideCollaborators"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. + */ + listPendingInvitations: { + (params?: RestEndpointMethodTypes["orgs"]["listPendingInvitations"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Members of an organization can choose to have their membership publicized or not. + */ + listPublicMembers: { + (params?: RestEndpointMethodTypes["orgs"]["listPublicMembers"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listWebhooks: { + (params?: RestEndpointMethodTypes["orgs"]["listWebhooks"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the hook. + */ + pingWebhook: { + (params?: RestEndpointMethodTypes["orgs"]["pingWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. + */ + removeMember: { + (params?: RestEndpointMethodTypes["orgs"]["removeMember"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * In order to remove a user's membership with an organization, the authenticated user must be an organization owner. + * + * If the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases. + */ + removeMembershipForUser: { + (params?: RestEndpointMethodTypes["orgs"]["removeMembershipForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removing a user from this list will remove them from all the organization's repositories. + */ + removeOutsideCollaborator: { + (params?: RestEndpointMethodTypes["orgs"]["removeOutsideCollaborator"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + removePublicMembershipForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["orgs"]["removePublicMembershipForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Only authenticated organization owners can add a member to the organization or update the member's role. + * + * * If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://docs.github.com/rest/reference/orgs#get-organization-membership-for-a-user) will be `pending` until they accept the invitation. + * + * * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent. + * + * **Rate limits** + * + * To prevent abuse, the authenticated user is limited to 50 organization invitations per 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period. + */ + setMembershipForUser: { + (params?: RestEndpointMethodTypes["orgs"]["setMembershipForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * The user can publicize their own membership. (A user cannot publicize the membership for another user.) + * + * Note that 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/rest/overview/resources-in-the-rest-api#http-verbs)." + */ + setPublicMembershipForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["orgs"]["setPublicMembershipForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + unblockUser: { + (params?: RestEndpointMethodTypes["orgs"]["unblockUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Parameter Deprecation Notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). + * + * Enables an authenticated organization owner with the `admin:org` scope to update the organization's profile and member privileges. + */ + update: { + (params?: RestEndpointMethodTypes["orgs"]["update"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + updateMembershipForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["orgs"]["updateMembershipForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Updates a webhook configured in an organization. When you update a webhook, the `secret` will be overwritten. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. If you are only updating individual webhook `config` properties, use "[Update a webhook configuration for an organization](/rest/reference/orgs#update-a-webhook-configuration-for-an-organization)." + */ + updateWebhook: { + (params?: RestEndpointMethodTypes["orgs"]["updateWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Updates the webhook configuration for an organization. To update more information about the webhook, including the `active` state and `events`, use "[Update an organization webhook ](/rest/reference/orgs#update-an-organization-webhook)." + * + * Access tokens must have the `admin:org_hook` scope, and GitHub Apps must have the `organization_hooks:write` permission. + */ + updateWebhookConfigForOrg: { + (params?: RestEndpointMethodTypes["orgs"]["updateWebhookConfigForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + projects: { + /** + * Adds a collaborator to an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator. + */ + addCollaborator: { + (params?: RestEndpointMethodTypes["projects"]["addCollaborator"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. + * + * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests)" endpoint. + */ + createCard: { + (params?: RestEndpointMethodTypes["projects"]["createCard"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + createColumn: { + (params?: RestEndpointMethodTypes["projects"]["createColumn"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + createForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["projects"]["createForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates an organization project board. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + createForOrg: { + (params?: RestEndpointMethodTypes["projects"]["createForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + createForRepo: { + (params?: RestEndpointMethodTypes["projects"]["createForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deletes a project board. Returns a `404 Not Found` status if projects are disabled. + */ + delete: { + (params?: RestEndpointMethodTypes["projects"]["delete"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteCard: { + (params?: RestEndpointMethodTypes["projects"]["deleteCard"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteColumn: { + (params?: RestEndpointMethodTypes["projects"]["deleteColumn"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + get: { + (params?: RestEndpointMethodTypes["projects"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getCard: { + (params?: RestEndpointMethodTypes["projects"]["getCard"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getColumn: { + (params?: RestEndpointMethodTypes["projects"]["getColumn"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level. + */ + getPermissionForUser: { + (params?: RestEndpointMethodTypes["projects"]["getPermissionForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listCards: { + (params?: RestEndpointMethodTypes["projects"]["listCards"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators. + */ + listCollaborators: { + (params?: RestEndpointMethodTypes["projects"]["listCollaborators"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listColumns: { + (params?: RestEndpointMethodTypes["projects"]["listColumns"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + listForOrg: { + (params?: RestEndpointMethodTypes["projects"]["listForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + listForRepo: { + (params?: RestEndpointMethodTypes["projects"]["listForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listForUser: { + (params?: RestEndpointMethodTypes["projects"]["listForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + moveCard: { + (params?: RestEndpointMethodTypes["projects"]["moveCard"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + moveColumn: { + (params?: RestEndpointMethodTypes["projects"]["moveColumn"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator. + */ + removeCollaborator: { + (params?: RestEndpointMethodTypes["projects"]["removeCollaborator"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. + */ + update: { + (params?: RestEndpointMethodTypes["projects"]["update"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + updateCard: { + (params?: RestEndpointMethodTypes["projects"]["updateCard"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + updateColumn: { + (params?: RestEndpointMethodTypes["projects"]["updateColumn"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + pulls: { + checkIfMerged: { + (params?: RestEndpointMethodTypes["pulls"]["checkIfMerged"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request. + * + * You can create a new pull request. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + create: { + (params?: RestEndpointMethodTypes["pulls"]["create"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates a reply to a review comment for a pull request. For the `comment_id`, provide the ID of the review comment you are replying to. This must be the ID of a _top-level review comment_, not a reply to that comment. Replies to replies are not supported. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + createReplyForReviewComment: { + (params?: RestEndpointMethodTypes["pulls"]["createReplyForReviewComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + * + * Pull request reviews created in the `PENDING` state do not include the `submitted_at` property in the response. + * + * **Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://docs.github.com/rest/reference/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://docs.github.com/rest/reference/pulls#get-a-pull-request) endpoint. + * + * The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. + */ + createReview: { + (params?: RestEndpointMethodTypes["pulls"]["createReview"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. + * + * Creates a review comment in the pull request diff. To add a regular comment to a pull request timeline, see "[Create an issue comment](https://docs.github.com/rest/reference/issues#create-an-issue-comment)." We recommend creating a review comment using `line`, `side`, and optionally `start_line` and `start_side` if your comment applies to more than one line in the pull request diff. + * + * You can still create a review comment using the `position` parameter. When you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. For more information, see [Multi-line comment summary](https://docs.github.com/rest/reference/pulls#multi-line-comment-summary-3). + * + * **Note:** The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + * + * **Multi-line comment summary** + * + * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. + * + * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. + * + * If you use the `comfort-fade` preview header, your response will show: + * + * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. + * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. + * + * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: + * + * * For multi-line comments, the last line of the comment range for the `position` attribute. + * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table. + */ + createReviewComment: { + (params?: RestEndpointMethodTypes["pulls"]["createReviewComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deletePendingReview: { + (params?: RestEndpointMethodTypes["pulls"]["deletePendingReview"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deletes a review comment. + */ + deleteReviewComment: { + (params?: RestEndpointMethodTypes["pulls"]["deleteReviewComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** To dismiss a pull request review on a [protected branch](https://docs.github.com/rest/reference/repos#branches), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews. + */ + dismissReview: { + (params?: RestEndpointMethodTypes["pulls"]["dismissReview"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Lists details of a pull request by providing its number. + * + * When you get, [create](https://docs.github.com/rest/reference/pulls/#create-a-pull-request), or [edit](https://docs.github.com/rest/reference/pulls#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see "[Checking mergeability of pull requests](https://docs.github.com/rest/guides/getting-started-with-the-git-database-api#checking-mergeability-of-pull-requests)". + * + * The value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit. + * + * The value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request: + * + * * If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit. + * * If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch. + * * If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to. + * + * Pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. + */ + get: { + (params?: RestEndpointMethodTypes["pulls"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getReview: { + (params?: RestEndpointMethodTypes["pulls"]["getReview"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. + * + * Provides details for a review comment. + * + * **Multi-line comment summary** + * + * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. + * + * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. + * + * If you use the `comfort-fade` preview header, your response will show: + * + * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. + * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. + * + * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: + * + * * For multi-line comments, the last line of the comment range for the `position` attribute. + * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table. + * + * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions. + */ + getReviewComment: { + (params?: RestEndpointMethodTypes["pulls"]["getReviewComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + list: { + (params?: RestEndpointMethodTypes["pulls"]["list"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List comments for a specific pull request review. + */ + listCommentsForReview: { + (params?: RestEndpointMethodTypes["pulls"]["listCommentsForReview"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [List commits](https://docs.github.com/rest/reference/repos#list-commits) endpoint. + */ + listCommits: { + (params?: RestEndpointMethodTypes["pulls"]["listCommits"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default. + */ + listFiles: { + (params?: RestEndpointMethodTypes["pulls"]["listFiles"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listRequestedReviewers: { + (params?: RestEndpointMethodTypes["pulls"]["listRequestedReviewers"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. + * + * Lists all review comments for a pull request. By default, review comments are in ascending order by ID. + * + * **Multi-line comment summary** + * + * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. + * + * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. + * + * If you use the `comfort-fade` preview header, your response will show: + * + * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. + * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. + * + * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: + * + * * For multi-line comments, the last line of the comment range for the `position` attribute. + * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table. + * + * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions. + */ + listReviewComments: { + (params?: RestEndpointMethodTypes["pulls"]["listReviewComments"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. + * + * Lists review comments for all pull requests in a repository. By default, review comments are in ascending order by ID. + * + * **Multi-line comment summary** + * + * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. + * + * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. + * + * If you use the `comfort-fade` preview header, your response will show: + * + * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. + * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. + * + * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: + * + * * For multi-line comments, the last line of the comment range for the `position` attribute. + * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table. + * + * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://docs.github.com/rest/reference/reactions) reactions. + */ + listReviewCommentsForRepo: { + (params?: RestEndpointMethodTypes["pulls"]["listReviewCommentsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * The list of reviews returns in chronological order. + */ + listReviews: { + (params?: RestEndpointMethodTypes["pulls"]["listReviews"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/reference/guides#dealing-with-abuse-rate-limits)" for details. + */ + merge: { + (params?: RestEndpointMethodTypes["pulls"]["merge"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + removeRequestedReviewers: { + (params?: RestEndpointMethodTypes["pulls"]["removeRequestedReviewers"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/reference/guides#dealing-with-abuse-rate-limits)" for details. + */ + requestReviewers: { + (params?: RestEndpointMethodTypes["pulls"]["requestReviewers"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + submitReview: { + (params?: RestEndpointMethodTypes["pulls"]["submitReview"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Draft pull requests are available in public repositories with GitHub Free and GitHub Free for organizations, GitHub Pro, and legacy per-repository billing plans, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request. + */ + update: { + (params?: RestEndpointMethodTypes["pulls"]["update"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch. + */ + updateBranch: { + (params?: RestEndpointMethodTypes["pulls"]["updateBranch"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Update the review summary comment with new text. + */ + updateReview: { + (params?: RestEndpointMethodTypes["pulls"]["updateReview"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. + * + * Enables you to edit a review comment. + * + * **Multi-line comment summary** + * + * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. + * + * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. + * + * If you use the `comfort-fade` preview header, your response will show: + * + * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. + * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. + * + * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: + * + * * For multi-line comments, the last line of the comment range for the `position` attribute. + * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://docs.github.com/rest/reference/pulls#parameters-2) table. + */ + updateReviewComment: { + (params?: RestEndpointMethodTypes["pulls"]["updateReviewComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + rateLimit: { + /** + * **Note:** Accessing this endpoint does not count against your REST API rate limit. + * + * **Note:** The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. + */ + get: { + (params?: RestEndpointMethodTypes["rateLimit"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + reactions: { + /** + * Create a reaction to a [commit comment](https://docs.github.com/rest/reference/repos#comments). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment. + */ + createForCommitComment: { + (params?: RestEndpointMethodTypes["reactions"]["createForCommitComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Create a reaction to an [issue](https://docs.github.com/rest/reference/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue. + */ + createForIssue: { + (params?: RestEndpointMethodTypes["reactions"]["createForIssue"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Create a reaction to an [issue comment](https://docs.github.com/rest/reference/issues#comments). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment. + */ + createForIssueComment: { + (params?: RestEndpointMethodTypes["reactions"]["createForIssueComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Create a reaction to a [pull request review comment](https://docs.github.com/rest/reference/pulls#comments). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment. + */ + createForPullRequestReviewComment: { + (params?: RestEndpointMethodTypes["reactions"]["createForPullRequestReviewComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Create a reaction to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. + */ + createForTeamDiscussionCommentInOrg: { + (params?: RestEndpointMethodTypes["reactions"]["createForTeamDiscussionCommentInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Create a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. + */ + createForTeamDiscussionInOrg: { + (params?: RestEndpointMethodTypes["reactions"]["createForTeamDiscussionInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/comments/:comment_id/reactions/:reaction_id`. + * + * Delete a reaction to a [commit comment](https://docs.github.com/rest/reference/repos#comments). + */ + deleteForCommitComment: { + (params?: RestEndpointMethodTypes["reactions"]["deleteForCommitComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/issues/:issue_number/reactions/:reaction_id`. + * + * Delete a reaction to an [issue](https://docs.github.com/rest/reference/issues/). + */ + deleteForIssue: { + (params?: RestEndpointMethodTypes["reactions"]["deleteForIssue"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** You can also specify a repository by `repository_id` using the route `DELETE delete /repositories/:repository_id/issues/comments/:comment_id/reactions/:reaction_id`. + * + * Delete a reaction to an [issue comment](https://docs.github.com/rest/reference/issues#comments). + */ + deleteForIssueComment: { + (params?: RestEndpointMethodTypes["reactions"]["deleteForIssueComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** You can also specify a repository by `repository_id` using the route `DELETE /repositories/:repository_id/pulls/comments/:comment_id/reactions/:reaction_id.` + * + * Delete a reaction to a [pull request review comment](https://docs.github.com/rest/reference/pulls#review-comments). + */ + deleteForPullRequestComment: { + (params?: RestEndpointMethodTypes["reactions"]["deleteForPullRequestComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions/:reaction_id`. + * + * Delete a reaction to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + deleteForTeamDiscussion: { + (params?: RestEndpointMethodTypes["reactions"]["deleteForTeamDiscussion"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** You can also specify a team or organization with `team_id` and `org_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id`. + * + * Delete a reaction to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + deleteForTeamDiscussionComment: { + (params?: RestEndpointMethodTypes["reactions"]["deleteForTeamDiscussionComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Reactions API. We recommend migrating your existing code to use the new delete reactions endpoints. For more information, see this [blog post](https://developer.github.com/changes/2020-02-26-new-delete-reactions-endpoints/). + * + * OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://docs.github.com/rest/reference/teams#discussions) or [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments). + * @deprecated octokit.reactions.deleteLegacy() is deprecated, see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy + */ + deleteLegacy: { + (params?: RestEndpointMethodTypes["reactions"]["deleteLegacy"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List the reactions to a [commit comment](https://docs.github.com/rest/reference/repos#comments). + */ + listForCommitComment: { + (params?: RestEndpointMethodTypes["reactions"]["listForCommitComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List the reactions to an [issue](https://docs.github.com/rest/reference/issues). + */ + listForIssue: { + (params?: RestEndpointMethodTypes["reactions"]["listForIssue"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List the reactions to an [issue comment](https://docs.github.com/rest/reference/issues#comments). + */ + listForIssueComment: { + (params?: RestEndpointMethodTypes["reactions"]["listForIssueComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List the reactions to a [pull request review comment](https://docs.github.com/rest/reference/pulls#review-comments). + */ + listForPullRequestReviewComment: { + (params?: RestEndpointMethodTypes["reactions"]["listForPullRequestReviewComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List the reactions to a [team discussion comment](https://docs.github.com/rest/reference/teams#discussion-comments/). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. + */ + listForTeamDiscussionCommentInOrg: { + (params?: RestEndpointMethodTypes["reactions"]["listForTeamDiscussionCommentInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List the reactions to a [team discussion](https://docs.github.com/rest/reference/teams#discussions). OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. + */ + listForTeamDiscussionInOrg: { + (params?: RestEndpointMethodTypes["reactions"]["listForTeamDiscussionInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + repos: { + acceptInvitation: { + (params?: RestEndpointMethodTypes["repos"]["acceptInvitation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Grants the specified apps push access for this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. + * + * | Type | Description | + * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | + * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + addAppAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["addAppAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + * + * For more information the permission levels, see "[Repository permission levels for an organization](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)". + * + * 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/rest/overview/resources-in-the-rest-api#http-verbs)." + * + * The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the [repository invitations API endpoints](https://docs.github.com/rest/reference/repos#invitations). + * + * **Rate limits** + * + * To prevent abuse, you are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository. + */ + addCollaborator: { + (params?: RestEndpointMethodTypes["repos"]["addCollaborator"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + addStatusCheckContexts: { + (params?: RestEndpointMethodTypes["repos"]["addStatusCheckContexts"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Grants the specified teams push access for this branch. You can also give push access to child teams. + * + * | Type | Description | + * | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | + * | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + addTeamAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["addTeamAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Grants the specified people push access for this branch. + * + * | Type | Description | + * | ------- | ----------------------------------------------------------------------------------------------------------------------------- | + * | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + addUserAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["addUserAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. + * + * Team members will include the members of child teams. + */ + checkCollaborator: { + (params?: RestEndpointMethodTypes["repos"]["checkCollaborator"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)". + */ + checkVulnerabilityAlerts: { + (params?: RestEndpointMethodTypes["repos"]["checkVulnerabilityAlerts"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `:branch`. + * + * The response from the API is equivalent to running the `git log base..head` command; however, commits are returned in chronological order. Pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. + * + * The response also includes details on the files that were changed between the two commits. This includes the status of the change (for example, if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file. + * + * **Working with large comparisons** + * + * The response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [List commits](https://docs.github.com/rest/reference/repos#list-commits) to enumerate all commits in the range. + * + * For comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long + * to generate. You can typically resolve this error by using a smaller commit range. + * + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + compareCommits: { + (params?: RestEndpointMethodTypes["repos"]["compareCommits"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Create a comment for a commit using its `:commit_sha`. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + createCommitComment: { + (params?: RestEndpointMethodTypes["repos"]["createCommitComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits. + */ + createCommitSignatureProtection: { + (params?: RestEndpointMethodTypes["repos"]["createCommitSignatureProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with push access in a repository can create commit statuses for a given SHA. + * + * Note: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error. + */ + createCommitStatus: { + (params?: RestEndpointMethodTypes["repos"]["createCommitStatus"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * You can create a read-only deploy key. + */ + createDeployKey: { + (params?: RestEndpointMethodTypes["repos"]["createDeployKey"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deployments offer a few configurable parameters with certain defaults. + * + * The `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them + * before we merge a pull request. + * + * The `environment` parameter allows deployments to be issued to different runtime environments. Teams often have + * multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parameter + * makes it easier to track which environments have requested deployments. The default environment is `production`. + * + * The `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If + * the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds, + * the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will + * return a failure response. + * + * By default, [commit statuses](https://docs.github.com/rest/reference/repos#statuses) for every submitted context must be in a `success` + * state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to + * specify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do + * not require any contexts or create any commit statuses, the deployment will always succeed. + * + * The `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text + * field that will be passed on when a deployment event is dispatched. + * + * The `task` parameter is used by the deployment system to allow different execution paths. In the web world this might + * be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an + * application with debugging enabled. + * + * Users with `repo` or `repo_deployment` scopes can create a deployment for a given ref. + * + * #### Merged branch response + * You will see this response when GitHub automatically merges the base branch into the topic branch instead of creating + * a deployment. This auto-merge happens when: + * * Auto-merge option is enabled in the repository + * * Topic branch does not include the latest changes on the base branch, which is `master` in the response example + * * There are no merge conflicts + * + * If there are no new commits in the base branch, a new request to create a deployment should give a successful + * response. + * + * #### Merge conflict response + * This error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't + * be merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts. + * + * #### Failed commit status checks + * This error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success` + * status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`. + */ + createDeployment: { + (params?: RestEndpointMethodTypes["repos"]["createDeployment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with `push` access can create deployment statuses for a given deployment. + * + * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. + */ + createDeploymentStatus: { + (params?: RestEndpointMethodTypes["repos"]["createDeploymentStatus"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * You can use this endpoint to trigger a webhook event called `repository_dispatch` when you want activity that happens outside of GitHub to trigger a GitHub Actions workflow or GitHub App webhook. You must configure your GitHub Actions workflow or GitHub App to run when the `repository_dispatch` event occurs. For an example `repository_dispatch` webhook payload, see "[RepositoryDispatchEvent](https://docs.github.com/webhooks/event-payloads/#repository_dispatch)." + * + * The `client_payload` parameter is available for any extra information that your workflow might need. This parameter is a JSON payload that will be passed on when the webhook event is dispatched. For example, the `client_payload` can include a message that a user would like to send using a GitHub Actions workflow. Or the `client_payload` can be used as a test to debug your workflow. + * + * To give you write access to the repository, you must use a personal access token with the `repo` scope. For more information, see "[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line)" in the GitHub Help documentation. + * + * This input example shows how you can use the `client_payload` as a test to debug your workflow. + */ + createDispatchEvent: { + (params?: RestEndpointMethodTypes["repos"]["createDispatchEvent"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates a new repository for the authenticated user. + * + * **OAuth scope requirements** + * + * When using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: + * + * * `public_repo` scope or `repo` scope to create a public repository + * * `repo` scope to create a private repository + */ + createForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["repos"]["createForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Create a fork for the authenticated user. + * + * **Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Support](https://github.com/contact) or [GitHub Premium Support](https://premium.githubsupport.com). + */ + createFork: { + (params?: RestEndpointMethodTypes["repos"]["createFork"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates a new repository in the specified organization. The authenticated user must be a member of the organization. + * + * **OAuth scope requirements** + * + * When using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: + * + * * `public_repo` scope or `repo` scope to create a public repository + * * `repo` scope to create a private repository + */ + createInOrg: { + (params?: RestEndpointMethodTypes["repos"]["createInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates a new file or replaces an existing file in a repository. + */ + createOrUpdateFileContents: { + (params?: RestEndpointMethodTypes["repos"]["createOrUpdateFileContents"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Configures a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages)." + */ + createPagesSite: { + (params?: RestEndpointMethodTypes["repos"]["createPagesSite"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with push access to the repository can create a release. + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + */ + createRelease: { + (params?: RestEndpointMethodTypes["repos"]["createRelease"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. The authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [Get a repository](https://docs.github.com/rest/reference/repos#get-a-repository) endpoint and check that the `is_template` key is `true`. + * + * **OAuth scope requirements** + * + * When using [OAuth](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: + * + * * `public_repo` scope or `repo` scope to create a public repository + * * `repo` scope to create a private repository + */ + createUsingTemplate: { + (params?: RestEndpointMethodTypes["repos"]["createUsingTemplate"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can + * share the same `config` as long as those webhooks do not have any `events` that overlap. + */ + createWebhook: { + (params?: RestEndpointMethodTypes["repos"]["createWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + declineInvitation: { + (params?: RestEndpointMethodTypes["repos"]["declineInvitation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required. + * + * If an organization owner has configured the organization to prevent members from deleting organization-owned + * repositories, you will get a `403 Forbidden` response. + */ + delete: { + (params?: RestEndpointMethodTypes["repos"]["delete"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Disables the ability to restrict who can push to this branch. + */ + deleteAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["deleteAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. + */ + deleteAdminBranchProtection: { + (params?: RestEndpointMethodTypes["repos"]["deleteAdminBranchProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + deleteBranchProtection: { + (params?: RestEndpointMethodTypes["repos"]["deleteBranchProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteCommitComment: { + (params?: RestEndpointMethodTypes["repos"]["deleteCommitComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits. + */ + deleteCommitSignatureProtection: { + (params?: RestEndpointMethodTypes["repos"]["deleteCommitSignatureProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deploy keys are immutable. If you need to update a key, remove the key and create a new one instead. + */ + deleteDeployKey: { + (params?: RestEndpointMethodTypes["repos"]["deleteDeployKey"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * To ensure there can always be an active deployment, you can only delete an _inactive_ deployment. Anyone with `repo` or `repo_deployment` scopes can delete an inactive deployment. + * + * To set a deployment as inactive, you must: + * + * * Create a new deployment that is active so that the system has a record of the current state, then delete the previously active deployment. + * * Mark the active deployment as inactive by adding any non-successful deployment status. + * + * For more information, see "[Create a deployment](https://docs.github.com/rest/reference/repos/deployments/#create-a-deployment)" and "[Create a deployment status](https://docs.github.com/rest/reference/repos#create-a-deployment-status)." + */ + deleteDeployment: { + (params?: RestEndpointMethodTypes["repos"]["deleteDeployment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deletes a file in a repository. + * + * You can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author. + * + * The `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used. + * + * You must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code. + */ + deleteFile: { + (params?: RestEndpointMethodTypes["repos"]["deleteFile"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteInvitation: { + (params?: RestEndpointMethodTypes["repos"]["deleteInvitation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deletePagesSite: { + (params?: RestEndpointMethodTypes["repos"]["deletePagesSite"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + deletePullRequestReviewProtection: { + (params?: RestEndpointMethodTypes["repos"]["deletePullRequestReviewProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with push access to the repository can delete a release. + */ + deleteRelease: { + (params?: RestEndpointMethodTypes["repos"]["deleteRelease"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteReleaseAsset: { + (params?: RestEndpointMethodTypes["repos"]["deleteReleaseAsset"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + deleteWebhook: { + (params?: RestEndpointMethodTypes["repos"]["deleteWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Disables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)". + */ + disableAutomatedSecurityFixes: { + (params?: RestEndpointMethodTypes["repos"]["disableAutomatedSecurityFixes"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Disables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)". + */ + disableVulnerabilityAlerts: { + (params?: RestEndpointMethodTypes["repos"]["disableVulnerabilityAlerts"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a redirect URL to download a zip archive for a repository. If you omit `:ref`, the repository’s default branch (usually + * `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use + * the `Location` header to make a second `GET` request. + * **Note**: For private repositories, these links are temporary and expire after five minutes. + * @deprecated octokit.repos.downloadArchive() has been renamed to octokit.repos.downloadZipballArchive() (2020-09-17) + */ + downloadArchive: { + (params?: RestEndpointMethodTypes["repos"]["downloadArchive"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a redirect URL to download a tar archive for a repository. If you omit `:ref`, the repository’s default branch (usually + * `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use + * the `Location` header to make a second `GET` request. + * **Note**: For private repositories, these links are temporary and expire after five minutes. + */ + downloadTarballArchive: { + (params?: RestEndpointMethodTypes["repos"]["downloadTarballArchive"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a redirect URL to download a zip archive for a repository. If you omit `:ref`, the repository’s default branch (usually + * `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use + * the `Location` header to make a second `GET` request. + * **Note**: For private repositories, these links are temporary and expire after five minutes. + */ + downloadZipballArchive: { + (params?: RestEndpointMethodTypes["repos"]["downloadZipballArchive"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Enables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)". + */ + enableAutomatedSecurityFixes: { + (params?: RestEndpointMethodTypes["repos"]["enableAutomatedSecurityFixes"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Enables dependency alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)". + */ + enableVulnerabilityAlerts: { + (params?: RestEndpointMethodTypes["repos"]["enableVulnerabilityAlerts"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * When you pass the `scarlet-witch-preview` media type, requests to get a repository will also return the repository's code of conduct if it can be detected from the repository's code of conduct file. + * + * The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network. + */ + get: { + (params?: RestEndpointMethodTypes["repos"]["get"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Lists who has access to this protected branch. + * + * **Note**: Users, apps, and teams `restrictions` are only available for organization-owned repositories. + */ + getAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["getAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + getAdminBranchProtection: { + (params?: RestEndpointMethodTypes["repos"]["getAdminBranchProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + getAllStatusCheckContexts: { + (params?: RestEndpointMethodTypes["repos"]["getAllStatusCheckContexts"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getAllTopics: { + (params?: RestEndpointMethodTypes["repos"]["getAllTopics"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Lists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. + */ + getAppsWithAccessToProtectedBranch: { + (params?: RestEndpointMethodTypes["repos"]["getAppsWithAccessToProtectedBranch"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getBranch: { + (params?: RestEndpointMethodTypes["repos"]["getBranch"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + getBranchProtection: { + (params?: RestEndpointMethodTypes["repos"]["getBranchProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. + */ + getClones: { + (params?: RestEndpointMethodTypes["repos"]["getClones"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns a weekly aggregate of the number of additions and deletions pushed to a repository. + */ + getCodeFrequencyStats: { + (params?: RestEndpointMethodTypes["repos"]["getCodeFrequencyStats"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Checks the repository permission of a collaborator. The possible repository permissions are `admin`, `write`, `read`, and `none`. + */ + getCollaboratorPermissionLevel: { + (params?: RestEndpointMethodTypes["repos"]["getCollaboratorPermissionLevel"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. + * + * The most recent status for each context is returned, up to 100. This field [paginates](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination) if there are over 100 contexts. + * + * Additionally, a combined `state` is returned. The `state` is one of: + * + * * **failure** if any of the contexts report as `error` or `failure` + * * **pending** if there are no statuses or a context is `pending` + * * **success** if the latest status for all contexts is `success` + */ + getCombinedStatusForRef: { + (params?: RestEndpointMethodTypes["repos"]["getCombinedStatusForRef"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint. + * + * **Note:** If there are more than 300 files in the commit diff, the response will include pagination link headers for the remaining files, up to a limit of 3000 files. Each page contains the static commit information, and the only changes are to the file listing. + * + * You can pass the appropriate [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property. + * + * To return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://docs.github.com/rest/overview/media-types/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag. + * + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + getCommit: { + (params?: RestEndpointMethodTypes["repos"]["getCommit"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`. + */ + getCommitActivityStats: { + (params?: RestEndpointMethodTypes["repos"]["getCommitActivityStats"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getCommitComment: { + (params?: RestEndpointMethodTypes["repos"]["getCommitComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help. + * + * **Note**: You must enable branch protection to require signed commits. + */ + getCommitSignatureProtection: { + (params?: RestEndpointMethodTypes["repos"]["getCommitSignatureProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This endpoint will return all community profile metrics, including an + * overall health score, repository description, the presence of documentation, detected + * code of conduct, detected license, and the presence of ISSUE\_TEMPLATE, PULL\_REQUEST\_TEMPLATE, + * README, and CONTRIBUTING files. + * + * `content_reports_enabled` is only returned for organization-owned repositories. + */ + getCommunityProfileMetrics: { + (params?: RestEndpointMethodTypes["repos"]["getCommunityProfileMetrics"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit + * `:path`, you will receive the contents of all files in the repository. + * + * Files and symlinks support [a custom media type](https://docs.github.com/rest/reference/repos#custom-media-types) for + * retrieving the raw content or rendered HTML (when supported). All content types support [a custom media + * type](https://docs.github.com/rest/reference/repos#custom-media-types) to ensure the content is returned in a consistent + * object format. + * + * **Note**: + * * To get a repository's contents recursively, you can [recursively get the tree](https://docs.github.com/rest/reference/git#trees). + * * This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees + * API](https://docs.github.com/rest/reference/git#get-a-tree). + * * This API supports files up to 1 megabyte in size. + * + * #### If the content is a directory + * The response will be an array of objects, one object for each item in the directory. + * When listing the contents of a directory, submodules have their "type" specified as "file". Logically, the value + * _should_ be "submodule". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW). + * In the next major version of the API, the type will be returned as "submodule". + * + * #### If the content is a symlink + * If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the + * API responds with the content of the file (in the format shown in the example. Otherwise, the API responds with an object + * describing the symlink itself. + * + * #### If the content is a submodule + * The `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific + * commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out + * the submodule at that specific commit. + * + * If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and the + * github.com URLs (`html_url` and `_links["html"]`) will have null values. + */ + getContent: { + (params?: RestEndpointMethodTypes["repos"]["getContent"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns the `total` number of commits authored by the contributor. In addition, the response includes a Weekly Hash (`weeks` array) with the following information: + * + * * `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 + */ + getContributorsStats: { + (params?: RestEndpointMethodTypes["repos"]["getContributorsStats"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getDeployKey: { + (params?: RestEndpointMethodTypes["repos"]["getDeployKey"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getDeployment: { + (params?: RestEndpointMethodTypes["repos"]["getDeployment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with pull access can view a deployment status for a deployment: + */ + getDeploymentStatus: { + (params?: RestEndpointMethodTypes["repos"]["getDeploymentStatus"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getLatestPagesBuild: { + (params?: RestEndpointMethodTypes["repos"]["getLatestPagesBuild"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * View the latest published full release for the repository. + * + * The latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published. + */ + getLatestRelease: { + (params?: RestEndpointMethodTypes["repos"]["getLatestRelease"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getPages: { + (params?: RestEndpointMethodTypes["repos"]["getPages"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + getPagesBuild: { + (params?: RestEndpointMethodTypes["repos"]["getPagesBuild"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`. + * + * The array order is oldest week (index 0) to most recent week. + */ + getParticipationStats: { + (params?: RestEndpointMethodTypes["repos"]["getParticipationStats"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + getPullRequestReviewProtection: { + (params?: RestEndpointMethodTypes["repos"]["getPullRequestReviewProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Each array contains the day number, hour number, and number of commits: + * + * * `0-6`: Sunday - Saturday + * * `0-23`: Hour of day + * * Number of commits + * + * 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. + */ + getPunchCardStats: { + (params?: RestEndpointMethodTypes["repos"]["getPunchCardStats"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets the preferred README for a repository. + * + * READMEs support [custom media types](https://docs.github.com/rest/reference/repos#custom-media-types) for retrieving the raw content or rendered HTML. + */ + getReadme: { + (params?: RestEndpointMethodTypes["repos"]["getReadme"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **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/rest/overview/resources-in-the-rest-api#hypermedia). + */ + getRelease: { + (params?: RestEndpointMethodTypes["repos"]["getRelease"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://docs.github.com/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. + */ + getReleaseAsset: { + (params?: RestEndpointMethodTypes["repos"]["getReleaseAsset"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Get a published release with the specified tag. + */ + getReleaseByTag: { + (params?: RestEndpointMethodTypes["repos"]["getReleaseByTag"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + getStatusChecksProtection: { + (params?: RestEndpointMethodTypes["repos"]["getStatusChecksProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Lists the teams who have push access to this branch. The list includes child teams. + */ + getTeamsWithAccessToProtectedBranch: { + (params?: RestEndpointMethodTypes["repos"]["getTeamsWithAccessToProtectedBranch"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Get the top 10 popular contents over the last 14 days. + */ + getTopPaths: { + (params?: RestEndpointMethodTypes["repos"]["getTopPaths"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Get the top 10 referrers over the last 14 days. + */ + getTopReferrers: { + (params?: RestEndpointMethodTypes["repos"]["getTopReferrers"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Lists the people who have push access to this branch. + */ + getUsersWithAccessToProtectedBranch: { + (params?: RestEndpointMethodTypes["repos"]["getUsersWithAccessToProtectedBranch"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. + */ + getViews: { + (params?: RestEndpointMethodTypes["repos"]["getViews"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns a webhook configured in a repository. To get only the webhook `config` properties, see "[Get a webhook configuration for a repository](/rest/reference/repos#get-a-webhook-configuration-for-a-repository)." + */ + getWebhook: { + (params?: RestEndpointMethodTypes["repos"]["getWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Returns the webhook configuration for a repository. To get more information about the webhook, including the `active` state and `events`, use "[Get a repository webhook](/rest/reference/orgs#get-a-repository-webhook)." + * + * Access tokens must have the `read:repo_hook` or `repo` scope, and GitHub Apps must have the `repository_hooks:read` permission. + */ + getWebhookConfigForRepo: { + (params?: RestEndpointMethodTypes["repos"]["getWebhookConfigForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listBranches: { + (params?: RestEndpointMethodTypes["repos"]["listBranches"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Returns all branches where the given commit SHA is the HEAD, or latest commit for the branch. + */ + listBranchesForHeadCommit: { + (params?: RestEndpointMethodTypes["repos"]["listBranchesForHeadCommit"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. + * + * Team members will include the members of child teams. + */ + listCollaborators: { + (params?: RestEndpointMethodTypes["repos"]["listCollaborators"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Use the `:commit_sha` to specify the commit that will have its comments listed. + */ + listCommentsForCommit: { + (params?: RestEndpointMethodTypes["repos"]["listCommentsForCommit"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Commit Comments use [these custom media types](https://docs.github.com/rest/reference/repos#custom-media-types). You can read more about the use of media types in the API [here](https://docs.github.com/rest/overview/media-types/). + * + * Comments are ordered by ascending ID. + */ + listCommitCommentsForRepo: { + (params?: RestEndpointMethodTypes["repos"]["listCommitCommentsForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one. + * + * This resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`. + */ + listCommitStatusesForRef: { + (params?: RestEndpointMethodTypes["repos"]["listCommitStatusesForRef"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Signature verification object** + * + * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: + * + * | Name | Type | Description | + * | ---- | ---- | ----------- | + * | `verified` | `boolean` | Indicates whether GitHub considers the signature in this commit to be verified. | + * | `reason` | `string` | The reason for verified value. Possible values and their meanings are enumerated in table below. | + * | `signature` | `string` | The signature that was extracted from the commit. | + * | `payload` | `string` | The value that was signed. | + * + * These are the possible values for `reason` in the `verification` object: + * + * | Value | Description | + * | ----- | ----------- | + * | `expired_key` | The key that made the signature is expired. | + * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | + * | `gpgverify_error` | There was an error communicating with the signature verification service. | + * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | + * | `unsigned` | The object does not include a signature. | + * | `unknown_signature_type` | A non-PGP signature was found in the commit. | + * | `no_user` | No user was associated with the `committer` email address in the commit. | + * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | + * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | + * | `unknown_key` | The key that made the signature has not been registered with any user's account. | + * | `malformed_signature` | There was an error parsing the signature. | + * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | + * | `valid` | None of the above errors applied, so the signature is considered to be verified. | + */ + listCommits: { + (params?: RestEndpointMethodTypes["repos"]["listCommits"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance. + * + * GitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information. + */ + listContributors: { + (params?: RestEndpointMethodTypes["repos"]["listContributors"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listDeployKeys: { + (params?: RestEndpointMethodTypes["repos"]["listDeployKeys"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with pull access can view deployment statuses for a deployment: + */ + listDeploymentStatuses: { + (params?: RestEndpointMethodTypes["repos"]["listDeploymentStatuses"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Simple filtering of deployments is available via query parameters: + */ + listDeployments: { + (params?: RestEndpointMethodTypes["repos"]["listDeployments"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. + * + * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. + */ + listForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["repos"]["listForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists repositories for the specified organization. + */ + listForOrg: { + (params?: RestEndpointMethodTypes["repos"]["listForOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists public repositories for the specified user. + */ + listForUser: { + (params?: RestEndpointMethodTypes["repos"]["listForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listForks: { + (params?: RestEndpointMethodTypes["repos"]["listForks"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations. + */ + listInvitations: { + (params?: RestEndpointMethodTypes["repos"]["listInvitations"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * When authenticating as a user, this endpoint will list all currently open repository invitations for that user. + */ + listInvitationsForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["repos"]["listInvitationsForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language. + */ + listLanguages: { + (params?: RestEndpointMethodTypes["repos"]["listLanguages"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listPagesBuilds: { + (params?: RestEndpointMethodTypes["repos"]["listPagesBuilds"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all public repositories in the order that they were created. + * + * Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of repositories. + */ + listPublic: { + (params?: RestEndpointMethodTypes["repos"]["listPublic"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all pull requests containing the provided commit SHA, which can be from any point in the commit history. The results will include open and closed pull requests. Additional preview headers may be required to see certain details for associated pull requests, such as whether a pull request is in a draft state. For more information about previews that might affect this endpoint, see the [List pull requests](https://docs.github.com/rest/reference/pulls#list-pull-requests) endpoint. + */ + listPullRequestsAssociatedWithCommit: { + (params?: RestEndpointMethodTypes["repos"]["listPullRequestsAssociatedWithCommit"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listReleaseAssets: { + (params?: RestEndpointMethodTypes["repos"]["listReleaseAssets"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://docs.github.com/rest/reference/repos#list-repository-tags). + * + * Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. + */ + listReleases: { + (params?: RestEndpointMethodTypes["repos"]["listReleases"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listTags: { + (params?: RestEndpointMethodTypes["repos"]["listTags"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listTeams: { + (params?: RestEndpointMethodTypes["repos"]["listTeams"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + listWebhooks: { + (params?: RestEndpointMethodTypes["repos"]["listWebhooks"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + merge: { + (params?: RestEndpointMethodTypes["repos"]["merge"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This will trigger a [ping event](https://docs.github.com/webhooks/#ping-event) to be sent to the hook. + */ + pingWebhook: { + (params?: RestEndpointMethodTypes["repos"]["pingWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Removes the ability of an app to push to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. + * + * | Type | Description | + * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | + * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + removeAppAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["removeAppAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + removeCollaborator: { + (params?: RestEndpointMethodTypes["repos"]["removeCollaborator"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + removeStatusCheckContexts: { + (params?: RestEndpointMethodTypes["repos"]["removeStatusCheckContexts"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + removeStatusCheckProtection: { + (params?: RestEndpointMethodTypes["repos"]["removeStatusCheckProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Removes the ability of a team to push to this branch. You can also remove push access for child teams. + * + * | Type | Description | + * | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | + * | `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + removeTeamAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["removeTeamAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Removes the ability of a user to push to this branch. + * + * | Type | Description | + * | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- | + * | `array` | Usernames of the people who should no longer have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + removeUserAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["removeUserAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + replaceAllTopics: { + (params?: RestEndpointMethodTypes["repos"]["replaceAllTopics"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures. + * + * Build requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes. + */ + requestPagesBuild: { + (params?: RestEndpointMethodTypes["repos"]["requestPagesBuild"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. + */ + setAdminBranchProtection: { + (params?: RestEndpointMethodTypes["repos"]["setAdminBranchProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Replaces the list of apps that have push access to this branch. This removes all apps that previously had push access and grants push access to the new list of apps. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. + * + * | Type | Description | + * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | + * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + setAppAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["setAppAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + */ + setStatusCheckContexts: { + (params?: RestEndpointMethodTypes["repos"]["setStatusCheckContexts"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. Team restrictions include child teams. + * + * | Type | Description | + * | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | + * | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + setTeamAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["setTeamAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people. + * + * | Type | Description | + * | ------- | ----------------------------------------------------------------------------------------------------------------------------- | + * | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | + */ + setUserAccessRestrictions: { + (params?: RestEndpointMethodTypes["repos"]["setUserAccessRestrictions"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated. + * + * **Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test` + */ + testPushWebhook: { + (params?: RestEndpointMethodTypes["repos"]["testPushWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/). + */ + transfer: { + (params?: RestEndpointMethodTypes["repos"]["transfer"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note**: To edit a repository's topics, use the [Replace all repository topics](https://docs.github.com/rest/reference/repos#replace-all-repository-topics) endpoint. + */ + update: { + (params?: RestEndpointMethodTypes["repos"]["update"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Protecting a branch requires admin or owner permissions to the repository. + * + * **Note**: Passing new arrays of `users` and `teams` replaces their previous values. + * + * **Note**: The list of users, apps, and teams in total is limited to 100 items. + */ + updateBranchProtection: { + (params?: RestEndpointMethodTypes["repos"]["updateBranchProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + updateCommitComment: { + (params?: RestEndpointMethodTypes["repos"]["updateCommitComment"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Updates information for a GitHub Pages site. For more information, see "[About GitHub Pages](/github/working-with-github-pages/about-github-pages). + */ + updateInformationAboutPagesSite: { + (params?: RestEndpointMethodTypes["repos"]["updateInformationAboutPagesSite"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + updateInvitation: { + (params?: RestEndpointMethodTypes["repos"]["updateInvitation"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled. + * + * **Note**: Passing new arrays of `users` and `teams` replaces their previous values. + */ + updatePullRequestReviewProtection: { + (params?: RestEndpointMethodTypes["repos"]["updatePullRequestReviewProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with push access to the repository can edit a release. + */ + updateRelease: { + (params?: RestEndpointMethodTypes["repos"]["updateRelease"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Users with push access to the repository can edit a release asset. + */ + updateReleaseAsset: { + (params?: RestEndpointMethodTypes["repos"]["updateReleaseAsset"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled. + * @deprecated octokit.repos.updateStatusCheckPotection() has been renamed to octokit.repos.updateStatusCheckProtection() (2020-09-17) + */ + updateStatusCheckPotection: { + (params?: RestEndpointMethodTypes["repos"]["updateStatusCheckPotection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled. + */ + updateStatusCheckProtection: { + (params?: RestEndpointMethodTypes["repos"]["updateStatusCheckProtection"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Updates a webhook configured in a repository. If you previously had a `secret` set, you must provide the same `secret` or set a new `secret` or the secret will be removed. If you are only updating individual webhook `config` properties, use "[Update a webhook configuration for a repository](/rest/reference/repos#update-a-webhook-configuration-for-a-repository)." + */ + updateWebhook: { + (params?: RestEndpointMethodTypes["repos"]["updateWebhook"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Updates the webhook configuration for a repository. To update more information about the webhook, including the `active` state and `events`, use "[Update a repository webhook](/rest/reference/orgs#update-a-repository-webhook)." + * + * Access tokens must have the `write:repo_hook` or `repo` scope, and GitHub Apps must have the `repository_hooks:write` permission. + */ + updateWebhookConfigForRepo: { + (params?: RestEndpointMethodTypes["repos"]["updateWebhookConfigForRepo"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This endpoint makes use of [a Hypermedia relation](https://docs.github.com/rest/overview/resources-in-the-rest-api#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned in + * the response of the [Create a release endpoint](https://docs.github.com/rest/reference/repos#create-a-release) to upload a release asset. + * + * You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint. + * + * Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: + * + * `application/zip` + * + * GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example, + * you'll still need to pass your authentication to be able to upload an asset. + * + * When an upstream failure occurs, you will receive a `502 Bad Gateway` status. This may leave an empty asset with a state of `starter`. It can be safely deleted. + * + * **Notes:** + * * GitHub renames asset filenames that have special characters, non-alphanumeric characters, and leading or trailing periods. The "[List assets for a release](https://docs.github.com/rest/reference/repos#list-assets-for-a-release)" + * endpoint lists the renamed filenames. For more information and help, contact [GitHub Support](https://github.com/contact). + * * If you upload an asset with the same filename as another uploaded asset, you'll receive an error and must delete the old file before you can re-upload the new asset. + */ + uploadReleaseAsset: { + (params?: RestEndpointMethodTypes["repos"]["uploadReleaseAsset"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + search: { + /** + * Searches for query terms inside of a file. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery) repository, your query would look something like this: + * + * `q=addClass+in:file+language:js+repo:jquery/jquery` + * + * This query searches for the keyword `addClass` within a file's contents. The query limits the search to files where the language is JavaScript in the `jquery/jquery` repository. + * + * #### Considerations for code search + * + * Due to the complexity of searching code, there are a few restrictions on how searches are performed: + * + * * Only the _default branch_ is considered. In most cases, this will be the `master` branch. + * * Only files smaller than 384 KB are searchable. + * * You must always include at least one search term when searching source code. For example, searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) is not valid, while [`amazing + * language:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is. + */ + code: { + (params?: RestEndpointMethodTypes["search"]["code"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Find commits via various criteria on the default branch (usually `master`). This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text match + * metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this: + * + * `q=repo:octocat/Spoon-Knife+css` + */ + commits: { + (params?: RestEndpointMethodTypes["search"]["commits"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Find issues by state and keyword. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted + * search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this. + * + * `q=windows+label:bug+language:python+state:open&sort=created&order=asc` + * + * This query searches for the keyword `windows`, within any open issue that is labeled as `bug`. The search runs across repositories whose primary language is Python. The results are sorted by creation date in ascending order, which means the oldest issues appear first in the search results. + * + * **Note:** For [user-to-server](https://docs.github.com/developers/apps/identifying-and-authorizing-users-for-github-apps#user-to-server-requests) GitHub App requests, you can't retrieve a combination of issues and pull requests in a single query. Requests that don't include the `is:issue` or `is:pull-request` qualifier will receive an HTTP `422 Unprocessable Entity` response. To get results for both issues and pull requests, you must send separate queries for issues and pull requests. For more information about the `is` qualifier, see "[Searching only issues or pull requests](https://docs.github.com/github/searching-for-information-on-github/searching-issues-and-pull-requests#search-only-issues-or-pull-requests)." + */ + issuesAndPullRequests: { + (params?: RestEndpointMethodTypes["search"]["issuesAndPullRequests"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this: + * + * `q=bug+defect+enhancement&repository_id=64778136` + * + * The labels that best match the query appear first in the search results. + */ + labels: { + (params?: RestEndpointMethodTypes["search"]["labels"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Find repositories via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to search for popular Tetris repositories written in assembly code, your query might look like this: + * + * `q=tetris+language:assembly&sort=stars&order=desc` + * + * This query searches for repositories with the word `tetris` in the name, the description, or the README. The results are limited to repositories where the primary language is assembly. The results are sorted by stars in descending order, so that the most popular repositories appear first in the search results. + * + * When you include the `mercy` preview header, you can also search for multiple topics by adding more `topic:` instances. For example, your query might look like this: + * + * `q=topic:ruby+topic:rails` + */ + repos: { + (params?: RestEndpointMethodTypes["search"]["repos"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). See "[Searching topics](https://help.github.com/articles/searching-topics/)" for a detailed list of qualifiers. + * + * When searching for topics, you can get text match metadata for the topic's **short\_description**, **description**, **name**, or **display\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you want to search for topics related to Ruby that are featured on https://github.com/topics. Your query might look like this: + * + * `q=ruby+is:featured` + * + * This query searches for topics with the keyword `ruby` and limits the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results. + */ + topics: { + (params?: RestEndpointMethodTypes["search"]["topics"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Find users via various criteria. This method returns up to 100 results [per page](https://docs.github.com/rest/overview/resources-in-the-rest-api#pagination). + * + * When searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://docs.github.com/rest/reference/search#text-match-metadata). + * + * For example, if you're looking for a list of popular users, you might try this query: + * + * `q=tom+repos:%3E42+followers:%3E1000` + * + * This query searches for users with the name `tom`. The results are restricted to users with more than 42 repositories and over 1,000 followers. + */ + users: { + (params?: RestEndpointMethodTypes["search"]["users"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + teams: { + /** + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * An organization owner can add someone who is not part of the team's organization to a team. When an organization owner adds someone to a team who is not an organization member, this endpoint will send an invitation to the person via email. This newly-created membership will be in the "pending" state until the person accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. + * + * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/memberships/{username}`. + */ + addOrUpdateMembershipForUserInOrg: { + (params?: RestEndpointMethodTypes["teams"]["addOrUpdateMembershipForUserInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/projects/{project_id}`. + */ + addOrUpdateProjectPermissionsInOrg: { + (params?: RestEndpointMethodTypes["teams"]["addOrUpdateProjectPermissionsInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. 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/rest/overview/resources-in-the-rest-api#http-verbs)." + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`. + * + * For more information about the permission levels, see "[Repository permission levels for an organization](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/repository-permission-levels-for-an-organization#permission-levels-for-repositories-owned-by-an-organization)". + */ + addOrUpdateRepoPermissionsInOrg: { + (params?: RestEndpointMethodTypes["teams"]["addOrUpdateRepoPermissionsInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects/{project_id}`. + */ + checkPermissionsForProjectInOrg: { + (params?: RestEndpointMethodTypes["teams"]["checkPermissionsForProjectInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Checks whether a team has `admin`, `push`, `maintain`, `triage`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked. + * + * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `application/vnd.github.v3.repository+json` accept header. + * + * If a team doesn't have permission for the repository, you will receive a `404 Not Found` response status. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`. + */ + checkPermissionsForRepoInOrg: { + (params?: RestEndpointMethodTypes["teams"]["checkPermissionsForRepoInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * To create a team, the authenticated user must be a member or owner of `{org}`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see "[Setting team creation permissions](https://help.github.com/en/articles/setting-team-creation-permissions-in-your-organization)." + * + * When you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of `maintainers`. For more information, see "[About teams](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-teams)". + */ + create: { + (params?: RestEndpointMethodTypes["teams"]["create"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`. + */ + createDiscussionCommentInOrg: { + (params?: RestEndpointMethodTypes["teams"]["createDiscussionCommentInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://docs.github.com/rest/overview/resources-in-the-rest-api#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://docs.github.com/rest/guides/best-practices-for-integrators#dealing-with-rate-limits)" for details. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`. + */ + createDiscussionInOrg: { + (params?: RestEndpointMethodTypes["teams"]["createDiscussionInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. + */ + deleteDiscussionCommentInOrg: { + (params?: RestEndpointMethodTypes["teams"]["deleteDiscussionCommentInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`. + */ + deleteDiscussionInOrg: { + (params?: RestEndpointMethodTypes["teams"]["deleteDiscussionInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * To delete a team, the authenticated user must be an organization owner or team maintainer. + * + * If you are an organization owner, deleting a parent team will delete all of its child teams as well. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}`. + */ + deleteInOrg: { + (params?: RestEndpointMethodTypes["teams"]["deleteInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Gets a team using the team's `slug`. GitHub generates the `slug` from the team `name`. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}`. + */ + getByName: { + (params?: RestEndpointMethodTypes["teams"]["getByName"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. + */ + getDiscussionCommentInOrg: { + (params?: RestEndpointMethodTypes["teams"]["getDiscussionCommentInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`. + */ + getDiscussionInOrg: { + (params?: RestEndpointMethodTypes["teams"]["getDiscussionInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Team members will include the members of child teams. + * + * To get a user's membership with a team, the team must be visible to the authenticated user. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/memberships/{username}`. + * + * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/rest/reference/teams#create-a-team). + */ + getMembershipForUserInOrg: { + (params?: RestEndpointMethodTypes["teams"]["getMembershipForUserInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all teams in an organization that are visible to the authenticated user. + */ + list: { + (params?: RestEndpointMethodTypes["teams"]["list"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the child teams of the team specified by `{team_slug}`. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/teams`. + */ + listChildInOrg: { + (params?: RestEndpointMethodTypes["teams"]["listChildInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments`. + */ + listDiscussionCommentsInOrg: { + (params?: RestEndpointMethodTypes["teams"]["listDiscussionCommentsInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`. + */ + listDiscussionsInOrg: { + (params?: RestEndpointMethodTypes["teams"]["listDiscussionsInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://docs.github.com/apps/building-oauth-apps/). + */ + listForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["teams"]["listForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Team members will include the members of child teams. + * + * To list members in a team, the team must be visible to the authenticated user. + */ + listMembersInOrg: { + (params?: RestEndpointMethodTypes["teams"]["listMembersInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/invitations`. + */ + listPendingInvitationsInOrg: { + (params?: RestEndpointMethodTypes["teams"]["listPendingInvitationsInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the organization projects for a team. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/projects`. + */ + listProjectsInOrg: { + (params?: RestEndpointMethodTypes["teams"]["listProjectsInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists a team's repositories visible to the authenticated user. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/repos`. + */ + listReposInOrg: { + (params?: RestEndpointMethodTypes["teams"]["listReposInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. + * + * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. + * + * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/memberships/{username}`. + */ + removeMembershipForUserInOrg: { + (params?: RestEndpointMethodTypes["teams"]["removeMembershipForUserInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. This endpoint removes the project from the team, but does not delete the project. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/projects/{project_id}`. + */ + removeProjectInOrg: { + (params?: RestEndpointMethodTypes["teams"]["removeProjectInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. This does not delete the repository, it just removes it from the team. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/repos/{owner}/{repo}`. + */ + removeRepoInOrg: { + (params?: RestEndpointMethodTypes["teams"]["removeRepoInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}/comments/{comment_number}`. + */ + updateDiscussionCommentInOrg: { + (params?: RestEndpointMethodTypes["teams"]["updateDiscussionCommentInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}/discussions/{discussion_number}`. + */ + updateDiscussionInOrg: { + (params?: RestEndpointMethodTypes["teams"]["updateDiscussionInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * To edit a team, the authenticated user must either be an organization owner or a team maintainer. + * + * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/{org_id}/team/{team_id}`. + */ + updateInOrg: { + (params?: RestEndpointMethodTypes["teams"]["updateInOrg"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; + users: { + /** + * This endpoint is accessible with the `user` scope. + */ + addEmailForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["addEmailForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + block: { + (params?: RestEndpointMethodTypes["users"]["block"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * If the user is blocked: + * + * If the user is not blocked: + */ + checkBlocked: { + (params?: RestEndpointMethodTypes["users"]["checkBlocked"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + checkFollowingForUser: { + (params?: RestEndpointMethodTypes["users"]["checkFollowingForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + checkPersonIsFollowedByAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["checkPersonIsFollowedByAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + createGpgKeyForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["createGpgKeyForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + createPublicSshKeyForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["createPublicSshKeyForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * This endpoint is accessible with the `user` scope. + */ + deleteEmailForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["deleteEmailForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes a GPG key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + deleteGpgKeyForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["deleteGpgKeyForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Removes a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + deletePublicSshKeyForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["deletePublicSshKeyForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Note that 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/rest/overview/resources-in-the-rest-api#http-verbs)." + * + * Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope. + */ + follow: { + (params?: RestEndpointMethodTypes["users"]["follow"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * If the authenticated user is authenticated through basic authentication or OAuth with the `user` scope, then the response lists public and private profile information. + * + * If the authenticated user is authenticated through OAuth without the `user` scope, then the response lists only public profile information. + */ + getAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["getAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Provides publicly available information about someone with a GitHub account. + * + * GitHub Apps with the `Plan` user permission can use this endpoint to retrieve information about a user's GitHub plan. The GitHub App must be authenticated as a user. See "[Identifying and authorizing users for GitHub Apps](https://docs.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)" for details about authentication. For an example response, see 'Response with GitHub plan information' below" + * + * The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://docs.github.com/rest/overview/resources-in-the-rest-api#authentication). + * + * The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://docs.github.com/rest/reference/users#emails)". + */ + getByUsername: { + (params?: RestEndpointMethodTypes["users"]["getByUsername"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations. + * + * The `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this: + * + * ```shell + * curl -u username:token + * https://api.github.com/users/octocat/hovercard?subject_type=repository&subject_id=1300192 + * ``` + */ + getContextForUser: { + (params?: RestEndpointMethodTypes["users"]["getContextForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + getGpgKeyForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["getGpgKeyForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + getPublicSshKeyForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["getPublicSshKeyForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts. + * + * Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://docs.github.com/rest/overview/resources-in-the-rest-api#link-header) to get the URL for the next page of users. + */ + list: { + (params?: RestEndpointMethodTypes["users"]["list"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * List the users you've blocked on your personal account. + */ + listBlockedByAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["listBlockedByAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope. + */ + listEmailsForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["listEmailsForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the people who the authenticated user follows. + */ + listFollowedByAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["listFollowedByAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the people following the authenticated user. + */ + listFollowersForAuthenticatedUser: { + (params?: RestEndpointMethodTypes["users"]["listFollowersForAuthenticatedUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the people following the specified user. + */ + listFollowersForUser: { + (params?: RestEndpointMethodTypes["users"]["listFollowersForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the people who the specified user follows. + */ + listFollowingForUser: { + (params?: RestEndpointMethodTypes["users"]["listFollowingForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + listGpgKeysForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["listGpgKeysForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the GPG keys for a user. This information is accessible by anyone. + */ + listGpgKeysForUser: { + (params?: RestEndpointMethodTypes["users"]["listGpgKeysForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists your publicly visible email address, which you can set with the [Set primary email visibility for the authenticated user](https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user) endpoint. This endpoint is accessible with the `user:email` scope. + */ + listPublicEmailsForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["listPublicEmailsForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the _verified_ public SSH keys for a user. This is accessible by anyone. + */ + listPublicKeysForUser: { + (params?: RestEndpointMethodTypes["users"]["listPublicKeysForUser"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://docs.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). + */ + listPublicSshKeysForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["listPublicSshKeysForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Sets the visibility for your primary email addresses. + */ + setPrimaryEmailVisibilityForAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["setPrimaryEmailVisibilityForAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + unblock: { + (params?: RestEndpointMethodTypes["users"]["unblock"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope. + */ + unfollow: { + (params?: RestEndpointMethodTypes["users"]["unfollow"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + /** + * **Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API. + */ + updateAuthenticated: { + (params?: RestEndpointMethodTypes["users"]["updateAuthenticated"]["parameters"]): Promise; + defaults: RequestInterface["defaults"]; + endpoint: EndpointInterface<{ + url: string; + }>; + }; + }; +}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts new file mode 100644 index 000000000..9af499f03 --- /dev/null +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/parameters-and-response-types.d.ts @@ -0,0 +1,2441 @@ +import { Endpoints, RequestParameters } from "@octokit/types"; +export declare type RestEndpointMethodTypes = { + actions: { + addSelectedRepoToOrgSecret: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"]["response"]; + }; + cancelWorkflowRun: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"]["response"]; + }; + createOrUpdateOrgSecret: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/actions/secrets/{secret_name}"]["response"]; + }; + createOrUpdateRepoSecret: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"]["response"]; + }; + createRegistrationTokenForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/actions/runners/registration-token"]["response"]; + }; + createRegistrationTokenForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/actions/runners/registration-token"]["response"]; + }; + createRemoveTokenForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/actions/runners/remove-token"]["response"]; + }; + createRemoveTokenForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/actions/runners/remove-token"]["response"]; + }; + createWorkflowDispatch: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"]["response"]; + }; + deleteArtifact: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"]["response"]; + }; + deleteOrgSecret: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/actions/secrets/{secret_name}"]["response"]; + }; + deleteRepoSecret: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"]["response"]; + }; + deleteSelfHostedRunnerFromOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/actions/runners/{runner_id}"]["response"]; + }; + deleteSelfHostedRunnerFromRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"]["response"]; + }; + deleteWorkflowRun: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"]["response"]; + }; + deleteWorkflowRunLogs: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"]["response"]; + }; + disableSelectedRepositoryGithubActionsOrganization: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"]["response"]; + }; + disableWorkflow: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"]["response"]; + }; + downloadArtifact: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"]["response"]; + }; + downloadJobLogsForWorkflowRun: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"]["response"]; + }; + downloadWorkflowRunLogs: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"]["response"]; + }; + enableSelectedRepositoryGithubActionsOrganization: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"]["response"]; + }; + enableWorkflow: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"]["response"]; + }; + getAllowedActionsOrganization: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/actions/permissions/selected-actions"]["response"]; + }; + getAllowedActionsRepository: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"]["response"]; + }; + getArtifact: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"]["response"]; + }; + getGithubActionsPermissionsOrganization: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/actions/permissions"]["response"]; + }; + getGithubActionsPermissionsRepository: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/permissions"]["response"]; + }; + getJobForWorkflowRun: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"]["response"]; + }; + getOrgPublicKey: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/actions/secrets/public-key"]["response"]; + }; + getOrgSecret: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/actions/secrets/{secret_name}"]["response"]; + }; + getRepoPermissions: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/permissions"]["response"]; + }; + getRepoPublicKey: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/secrets/public-key"]["response"]; + }; + getRepoSecret: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"]["response"]; + }; + getSelfHostedRunnerForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/actions/runners/{runner_id}"]["response"]; + }; + getSelfHostedRunnerForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"]["response"]; + }; + getWorkflow: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"]["response"]; + }; + getWorkflowRun: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}"]["response"]; + }; + getWorkflowRunUsage: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"]["response"]; + }; + getWorkflowUsage: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"]["response"]; + }; + listArtifactsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/artifacts"]["response"]; + }; + listJobsForWorkflowRun: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"]["response"]; + }; + listOrgSecrets: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/actions/secrets"]["response"]; + }; + listRepoSecrets: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/secrets"]["response"]; + }; + listRepoWorkflows: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/workflows"]["response"]; + }; + listRunnerApplicationsForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/actions/runners/downloads"]["response"]; + }; + listRunnerApplicationsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runners/downloads"]["response"]; + }; + listSelectedReposForOrgSecret: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"]["response"]; + }; + listSelectedRepositoriesEnabledGithubActionsOrganization: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/actions/permissions/repositories"]["response"]; + }; + listSelfHostedRunnersForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/actions/runners"]["response"]; + }; + listSelfHostedRunnersForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runners"]["response"]; + }; + listWorkflowRunArtifacts: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"]["response"]; + }; + listWorkflowRuns: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"]["response"]; + }; + listWorkflowRunsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/actions/runs"]["response"]; + }; + reRunWorkflow: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"]["response"]; + }; + removeSelectedRepoFromOrgSecret: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"]["response"]; + }; + setAllowedActionsOrganization: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/actions/permissions/selected-actions"]["response"]; + }; + setAllowedActionsRepository: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"]["response"]; + }; + setGithubActionsPermissionsOrganization: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/actions/permissions"]["response"]; + }; + setGithubActionsPermissionsRepository: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/actions/permissions"]["response"]; + }; + setSelectedReposForOrgSecret: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"]["response"]; + }; + setSelectedRepositoriesEnabledGithubActionsOrganization: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/actions/permissions/repositories"]["response"]; + }; + }; + activity: { + checkRepoIsStarredByAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/starred/{owner}/{repo}"]["response"]; + }; + deleteRepoSubscription: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/subscription"]["response"]; + }; + deleteThreadSubscription: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /notifications/threads/{thread_id}/subscription"]["response"]; + }; + getFeeds: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /feeds"]["response"]; + }; + getRepoSubscription: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/subscription"]["response"]; + }; + getThread: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /notifications/threads/{thread_id}"]["response"]; + }; + getThreadSubscriptionForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /notifications/threads/{thread_id}/subscription"]["response"]; + }; + listEventsForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/events"]["response"]; + }; + listNotificationsForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /notifications"]["response"]; + }; + listOrgEventsForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/events/orgs/{org}"]["response"]; + }; + listPublicEvents: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /events"]["response"]; + }; + listPublicEventsForRepoNetwork: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /networks/{owner}/{repo}/events"]["response"]; + }; + listPublicEventsForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/events/public"]["response"]; + }; + listPublicOrgEvents: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/events"]["response"]; + }; + listReceivedEventsForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/received_events"]["response"]; + }; + listReceivedPublicEventsForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/received_events/public"]["response"]; + }; + listRepoEvents: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/events"]["response"]; + }; + listRepoNotificationsForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/notifications"]["response"]; + }; + listReposStarredByAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/starred"]["response"]; + }; + listReposStarredByUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/starred"]["response"]; + }; + listReposWatchedByUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/subscriptions"]["response"]; + }; + listStargazersForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/stargazers"]["response"]; + }; + listWatchedReposForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/subscriptions"]["response"]; + }; + listWatchersForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/subscribers"]["response"]; + }; + markNotificationsAsRead: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /notifications"]["response"]; + }; + markRepoNotificationsAsRead: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/notifications"]["response"]; + }; + markThreadAsRead: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /notifications/threads/{thread_id}"]["response"]; + }; + setRepoSubscription: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/subscription"]["response"]; + }; + setThreadSubscription: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /notifications/threads/{thread_id}/subscription"]["response"]; + }; + starRepoForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /user/starred/{owner}/{repo}"]["response"]; + }; + unstarRepoForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/starred/{owner}/{repo}"]["response"]; + }; + }; + apps: { + addRepoToInstallation: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /user/installations/{installation_id}/repositories/{repository_id}"]["response"]; + }; + checkToken: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /applications/{client_id}/token"]["response"]; + }; + createContentAttachment: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /content_references/{content_reference_id}/attachments"]["response"]; + }; + createFromManifest: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /app-manifests/{code}/conversions"]["response"]; + }; + createInstallationAccessToken: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /app/installations/{installation_id}/access_tokens"]["response"]; + }; + deleteAuthorization: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /applications/{client_id}/grant"]["response"]; + }; + deleteInstallation: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /app/installations/{installation_id}"]["response"]; + }; + deleteToken: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /applications/{client_id}/token"]["response"]; + }; + getAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /app"]["response"]; + }; + getBySlug: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /apps/{app_slug}"]["response"]; + }; + getInstallation: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /app/installations/{installation_id}"]["response"]; + }; + getOrgInstallation: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/installation"]["response"]; + }; + getRepoInstallation: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/installation"]["response"]; + }; + getSubscriptionPlanForAccount: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /marketplace_listing/accounts/{account_id}"]["response"]; + }; + getSubscriptionPlanForAccountStubbed: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /marketplace_listing/stubbed/accounts/{account_id}"]["response"]; + }; + getUserInstallation: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/installation"]["response"]; + }; + getWebhookConfigForApp: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /app/hook/config"]["response"]; + }; + listAccountsForPlan: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /marketplace_listing/plans/{plan_id}/accounts"]["response"]; + }; + listAccountsForPlanStubbed: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"]["response"]; + }; + listInstallationReposForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/installations/{installation_id}/repositories"]["response"]; + }; + listInstallations: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /app/installations"]["response"]; + }; + listInstallationsForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/installations"]["response"]; + }; + listPlans: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /marketplace_listing/plans"]["response"]; + }; + listPlansStubbed: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /marketplace_listing/stubbed/plans"]["response"]; + }; + listReposAccessibleToInstallation: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /installation/repositories"]["response"]; + }; + listSubscriptionsForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/marketplace_purchases"]["response"]; + }; + listSubscriptionsForAuthenticatedUserStubbed: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/marketplace_purchases/stubbed"]["response"]; + }; + removeRepoFromInstallation: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/installations/{installation_id}/repositories/{repository_id}"]["response"]; + }; + resetToken: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /applications/{client_id}/token"]["response"]; + }; + revokeInstallationAccessToken: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /installation/token"]["response"]; + }; + suspendInstallation: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /app/installations/{installation_id}/suspended"]["response"]; + }; + unsuspendInstallation: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /app/installations/{installation_id}/suspended"]["response"]; + }; + updateWebhookConfigForApp: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /app/hook/config"]["response"]; + }; + }; + billing: { + getGithubActionsBillingOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/settings/billing/actions"]["response"]; + }; + getGithubActionsBillingUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/settings/billing/actions"]["response"]; + }; + getGithubPackagesBillingOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/settings/billing/packages"]["response"]; + }; + getGithubPackagesBillingUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/settings/billing/packages"]["response"]; + }; + getSharedStorageBillingOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/settings/billing/shared-storage"]["response"]; + }; + getSharedStorageBillingUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/settings/billing/shared-storage"]["response"]; + }; + }; + checks: { + create: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/check-runs"]["response"]; + }; + createSuite: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/check-suites"]["response"]; + }; + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"]["response"]; + }; + getSuite: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"]["response"]; + }; + listAnnotations: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"]["response"]; + }; + listForRef: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"]["response"]; + }; + listForSuite: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"]["response"]; + }; + listSuitesForRef: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"]["response"]; + }; + rerequestSuite: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"]["response"]; + }; + setSuitesPreferences: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/check-suites/preferences"]["response"]; + }; + update: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]["response"]; + }; + }; + codeScanning: { + getAlert: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"]["response"]; + }; + listAlertsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/code-scanning/alerts"]["response"]; + }; + listRecentAnalyses: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/code-scanning/analyses"]["response"]; + }; + updateAlert: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"]["response"]; + }; + uploadSarif: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/code-scanning/sarifs"]["response"]; + }; + }; + codesOfConduct: { + getAllCodesOfConduct: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /codes_of_conduct"]["response"]; + }; + getConductCode: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /codes_of_conduct/{key}"]["response"]; + }; + getForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/community/code_of_conduct"]["response"]; + }; + }; + emojis: { + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /emojis"]["response"]; + }; + }; + enterpriseAdmin: { + disableSelectedOrganizationGithubActionsEnterprise: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"]["response"]; + }; + enableSelectedOrganizationGithubActionsEnterprise: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}"]["response"]; + }; + getAllowedActionsEnterprise: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /enterprises/{enterprise}/actions/permissions/selected-actions"]["response"]; + }; + getGithubActionsPermissionsEnterprise: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /enterprises/{enterprise}/actions/permissions"]["response"]; + }; + listSelectedOrganizationsEnabledGithubActionsEnterprise: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /enterprises/{enterprise}/actions/permissions/organizations"]["response"]; + }; + setAllowedActionsEnterprise: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /enterprises/{enterprise}/actions/permissions/selected-actions"]["response"]; + }; + setGithubActionsPermissionsEnterprise: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /enterprises/{enterprise}/actions/permissions"]["response"]; + }; + setSelectedOrganizationsEnabledGithubActionsEnterprise: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /enterprises/{enterprise}/actions/permissions/organizations"]["response"]; + }; + }; + gists: { + checkIsStarred: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gists/{gist_id}/star"]["response"]; + }; + create: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /gists"]["response"]; + }; + createComment: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /gists/{gist_id}/comments"]["response"]; + }; + delete: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /gists/{gist_id}"]["response"]; + }; + deleteComment: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /gists/{gist_id}/comments/{comment_id}"]["response"]; + }; + fork: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /gists/{gist_id}/forks"]["response"]; + }; + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gists/{gist_id}"]["response"]; + }; + getComment: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gists/{gist_id}/comments/{comment_id}"]["response"]; + }; + getRevision: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gists/{gist_id}/{sha}"]["response"]; + }; + list: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gists"]["response"]; + }; + listComments: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gists/{gist_id}/comments"]["response"]; + }; + listCommits: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gists/{gist_id}/commits"]["response"]; + }; + listForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/gists"]["response"]; + }; + listForks: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gists/{gist_id}/forks"]["response"]; + }; + listPublic: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gists/public"]["response"]; + }; + listStarred: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gists/starred"]["response"]; + }; + star: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /gists/{gist_id}/star"]["response"]; + }; + unstar: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /gists/{gist_id}/star"]["response"]; + }; + update: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /gists/{gist_id}"]["response"]; + }; + updateComment: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /gists/{gist_id}/comments/{comment_id}"]["response"]; + }; + }; + git: { + createBlob: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/git/blobs"]["response"]; + }; + createCommit: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/git/commits"]["response"]; + }; + createRef: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/git/refs"]["response"]; + }; + createTag: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/git/tags"]["response"]; + }; + createTree: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/git/trees"]["response"]; + }; + deleteRef: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/git/refs/{ref}"]["response"]; + }; + getBlob: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"]["response"]; + }; + getCommit: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"]["response"]; + }; + getRef: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/git/ref/{ref}"]["response"]; + }; + getTag: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"]["response"]; + }; + getTree: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"]["response"]; + }; + listMatchingRefs: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"]["response"]; + }; + updateRef: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]["response"]; + }; + }; + gitignore: { + getAllTemplates: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gitignore/templates"]["response"]; + }; + getTemplate: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /gitignore/templates/{name}"]["response"]; + }; + }; + interactions: { + getRestrictionsForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/interaction-limits"]["response"]; + }; + getRestrictionsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/interaction-limits"]["response"]; + }; + getRestrictionsForYourPublicRepos: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/interaction-limits"]["response"]; + }; + removeRestrictionsForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/interaction-limits"]["response"]; + }; + removeRestrictionsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/interaction-limits"]["response"]; + }; + removeRestrictionsForYourPublicRepos: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/interaction-limits"]["response"]; + }; + setRestrictionsForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/interaction-limits"]["response"]; + }; + setRestrictionsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/interaction-limits"]["response"]; + }; + setRestrictionsForYourPublicRepos: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /user/interaction-limits"]["response"]; + }; + }; + issues: { + addAssignees: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"]["response"]; + }; + addLabels: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"]["response"]; + }; + checkUserCanBeAssigned: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/assignees/{assignee}"]["response"]; + }; + create: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/issues"]["response"]; + }; + createComment: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"]["response"]; + }; + createLabel: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/labels"]["response"]; + }; + createMilestone: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/milestones"]["response"]; + }; + deleteComment: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"]["response"]; + }; + deleteLabel: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/labels/{name}"]["response"]; + }; + deleteMilestone: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"]["response"]; + }; + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}"]["response"]; + }; + getComment: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"]["response"]; + }; + getEvent: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/events/{event_id}"]["response"]; + }; + getLabel: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/labels/{name}"]["response"]; + }; + getMilestone: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/milestones/{milestone_number}"]["response"]; + }; + list: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /issues"]["response"]; + }; + listAssignees: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/assignees"]["response"]; + }; + listComments: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"]["response"]; + }; + listCommentsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/comments"]["response"]; + }; + listEvents: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/events"]["response"]; + }; + listEventsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/events"]["response"]; + }; + listEventsForTimeline: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"]["response"]; + }; + listForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/issues"]["response"]; + }; + listForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/issues"]["response"]; + }; + listForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues"]["response"]; + }; + listLabelsForMilestone: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"]["response"]; + }; + listLabelsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/labels"]["response"]; + }; + listLabelsOnIssue: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"]["response"]; + }; + listMilestones: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/milestones"]["response"]; + }; + lock: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"]["response"]; + }; + removeAllLabels: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"]["response"]; + }; + removeAssignees: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"]["response"]; + }; + removeLabel: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"]["response"]; + }; + setLabels: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"]["response"]; + }; + unlock: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"]["response"]; + }; + update: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/issues/{issue_number}"]["response"]; + }; + updateComment: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"]["response"]; + }; + updateLabel: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/labels/{name}"]["response"]; + }; + updateMilestone: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]["response"]; + }; + }; + licenses: { + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /licenses/{license}"]["response"]; + }; + getAllCommonlyUsed: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /licenses"]["response"]; + }; + getForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/license"]["response"]; + }; + }; + markdown: { + render: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /markdown"]["response"]; + }; + renderRaw: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /markdown/raw"]["response"]; + }; + }; + meta: { + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /meta"]["response"]; + }; + getOctocat: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /octocat"]["response"]; + }; + getZen: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /zen"]["response"]; + }; + root: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /"]["response"]; + }; + }; + migrations: { + cancelImport: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/import"]["response"]; + }; + deleteArchiveForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/migrations/{migration_id}/archive"]["response"]; + }; + deleteArchiveForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/migrations/{migration_id}/archive"]["response"]; + }; + downloadArchiveForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/migrations/{migration_id}/archive"]["response"]; + }; + getArchiveForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/migrations/{migration_id}/archive"]["response"]; + }; + getCommitAuthors: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/import/authors"]["response"]; + }; + getImportStatus: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/import"]["response"]; + }; + getLargeFiles: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/import/large_files"]["response"]; + }; + getStatusForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/migrations/{migration_id}"]["response"]; + }; + getStatusForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/migrations/{migration_id}"]["response"]; + }; + listForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/migrations"]["response"]; + }; + listForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/migrations"]["response"]; + }; + listReposForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/migrations/{migration_id}/repositories"]["response"]; + }; + listReposForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/migrations/{migration_id}/repositories"]["response"]; + }; + mapCommitAuthor: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"]["response"]; + }; + setLfsPreference: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/import/lfs"]["response"]; + }; + startForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /user/migrations"]["response"]; + }; + startForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/migrations"]["response"]; + }; + startImport: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/import"]["response"]; + }; + unlockRepoForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"]["response"]; + }; + unlockRepoForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]["response"]; + }; + updateImport: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/import"]["response"]; + }; + }; + orgs: { + blockUser: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/blocks/{username}"]["response"]; + }; + checkBlockedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/blocks/{username}"]["response"]; + }; + checkMembershipForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/members/{username}"]["response"]; + }; + checkPublicMembershipForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/public_members/{username}"]["response"]; + }; + convertMemberToOutsideCollaborator: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/outside_collaborators/{username}"]["response"]; + }; + createInvitation: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/invitations"]["response"]; + }; + createWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/hooks"]["response"]; + }; + deleteWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/hooks/{hook_id}"]["response"]; + }; + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}"]["response"]; + }; + getMembershipForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/memberships/orgs/{org}"]["response"]; + }; + getMembershipForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/memberships/{username}"]["response"]; + }; + getWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/hooks/{hook_id}"]["response"]; + }; + getWebhookConfigForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/hooks/{hook_id}/config"]["response"]; + }; + list: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /organizations"]["response"]; + }; + listAppInstallations: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/installations"]["response"]; + }; + listBlockedUsers: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/blocks"]["response"]; + }; + listForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/orgs"]["response"]; + }; + listForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/orgs"]["response"]; + }; + listInvitationTeams: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/invitations/{invitation_id}/teams"]["response"]; + }; + listMembers: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/members"]["response"]; + }; + listMembershipsForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/memberships/orgs"]["response"]; + }; + listOutsideCollaborators: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/outside_collaborators"]["response"]; + }; + listPendingInvitations: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/invitations"]["response"]; + }; + listPublicMembers: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/public_members"]["response"]; + }; + listWebhooks: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/hooks"]["response"]; + }; + pingWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/hooks/{hook_id}/pings"]["response"]; + }; + removeMember: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/members/{username}"]["response"]; + }; + removeMembershipForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/memberships/{username}"]["response"]; + }; + removeOutsideCollaborator: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/outside_collaborators/{username}"]["response"]; + }; + removePublicMembershipForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/public_members/{username}"]["response"]; + }; + setMembershipForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/memberships/{username}"]["response"]; + }; + setPublicMembershipForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/public_members/{username}"]["response"]; + }; + unblockUser: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/blocks/{username}"]["response"]; + }; + update: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /orgs/{org}"]["response"]; + }; + updateMembershipForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /user/memberships/orgs/{org}"]["response"]; + }; + updateWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /orgs/{org}/hooks/{hook_id}"]["response"]; + }; + updateWebhookConfigForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /orgs/{org}/hooks/{hook_id}/config"]["response"]; + }; + }; + projects: { + addCollaborator: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /projects/{project_id}/collaborators/{username}"]["response"]; + }; + createCard: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /projects/columns/{column_id}/cards"]["response"]; + }; + createColumn: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /projects/{project_id}/columns"]["response"]; + }; + createForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /user/projects"]["response"]; + }; + createForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/projects"]["response"]; + }; + createForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/projects"]["response"]; + }; + delete: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /projects/{project_id}"]["response"]; + }; + deleteCard: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /projects/columns/cards/{card_id}"]["response"]; + }; + deleteColumn: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /projects/columns/{column_id}"]["response"]; + }; + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /projects/{project_id}"]["response"]; + }; + getCard: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /projects/columns/cards/{card_id}"]["response"]; + }; + getColumn: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /projects/columns/{column_id}"]["response"]; + }; + getPermissionForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /projects/{project_id}/collaborators/{username}/permission"]["response"]; + }; + listCards: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /projects/columns/{column_id}/cards"]["response"]; + }; + listCollaborators: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /projects/{project_id}/collaborators"]["response"]; + }; + listColumns: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /projects/{project_id}/columns"]["response"]; + }; + listForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/projects"]["response"]; + }; + listForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/projects"]["response"]; + }; + listForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/projects"]["response"]; + }; + moveCard: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /projects/columns/cards/{card_id}/moves"]["response"]; + }; + moveColumn: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /projects/columns/{column_id}/moves"]["response"]; + }; + removeCollaborator: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /projects/{project_id}/collaborators/{username}"]["response"]; + }; + update: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /projects/{project_id}"]["response"]; + }; + updateCard: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /projects/columns/cards/{card_id}"]["response"]; + }; + updateColumn: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /projects/columns/{column_id}"]["response"]; + }; + }; + pulls: { + checkIfMerged: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"]["response"]; + }; + create: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/pulls"]["response"]; + }; + createReplyForReviewComment: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"]["response"]; + }; + createReview: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"]["response"]; + }; + createReviewComment: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"]["response"]; + }; + deletePendingReview: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"]["response"]; + }; + deleteReviewComment: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"]["response"]; + }; + dismissReview: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"]["response"]; + }; + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}"]["response"]; + }; + getReview: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"]["response"]; + }; + getReviewComment: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"]["response"]; + }; + list: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls"]["response"]; + }; + listCommentsForReview: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"]["response"]; + }; + listCommits: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"]["response"]; + }; + listFiles: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"]["response"]; + }; + listRequestedReviewers: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"]["response"]; + }; + listReviewComments: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"]["response"]; + }; + listReviewCommentsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/comments"]["response"]; + }; + listReviews: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"]["response"]; + }; + merge: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"]["response"]; + }; + removeRequestedReviewers: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"]["response"]; + }; + requestReviewers: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"]["response"]; + }; + submitReview: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"]["response"]; + }; + update: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"]["response"]; + }; + updateBranch: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"]["response"]; + }; + updateReview: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"]["response"]; + }; + updateReviewComment: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]["response"]; + }; + }; + rateLimit: { + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /rate_limit"]["response"]; + }; + }; + reactions: { + createForCommitComment: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"]["response"]; + }; + createForIssue: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"]["response"]; + }; + createForIssueComment: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"]["response"]; + }; + createForPullRequestReviewComment: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"]["response"]; + }; + createForTeamDiscussionCommentInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"]["response"]; + }; + createForTeamDiscussionInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]["response"]; + }; + deleteForCommitComment: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"]["response"]; + }; + deleteForIssue: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"]["response"]; + }; + deleteForIssueComment: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"]["response"]; + }; + deleteForPullRequestComment: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"]["response"]; + }; + deleteForTeamDiscussion: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"]["response"]; + }; + deleteForTeamDiscussionComment: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"]["response"]; + }; + deleteLegacy: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /reactions/{reaction_id}"]["response"]; + }; + listForCommitComment: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"]["response"]; + }; + listForIssue: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"]["response"]; + }; + listForIssueComment: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"]["response"]; + }; + listForPullRequestReviewComment: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"]["response"]; + }; + listForTeamDiscussionCommentInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"]["response"]; + }; + listForTeamDiscussionInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]["response"]; + }; + }; + repos: { + acceptInvitation: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /user/repository_invitations/{invitation_id}"]["response"]; + }; + addAppAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"]["response"]; + }; + addCollaborator: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/collaborators/{username}"]["response"]; + }; + addStatusCheckContexts: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"]["response"]; + }; + addTeamAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"]["response"]; + }; + addUserAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"]["response"]; + }; + checkCollaborator: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/collaborators/{username}"]["response"]; + }; + checkVulnerabilityAlerts: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/vulnerability-alerts"]["response"]; + }; + compareCommits: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/compare/{base}...{head}"]["response"]; + }; + createCommitComment: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"]["response"]; + }; + createCommitSignatureProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"]["response"]; + }; + createCommitStatus: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/statuses/{sha}"]["response"]; + }; + createDeployKey: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/keys"]["response"]; + }; + createDeployment: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/deployments"]["response"]; + }; + createDeploymentStatus: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"]["response"]; + }; + createDispatchEvent: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/dispatches"]["response"]; + }; + createForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /user/repos"]["response"]; + }; + createFork: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/forks"]["response"]; + }; + createInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/repos"]["response"]; + }; + createOrUpdateFileContents: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/contents/{path}"]["response"]; + }; + createPagesSite: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/pages"]["response"]; + }; + createRelease: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/releases"]["response"]; + }; + createUsingTemplate: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{template_owner}/{template_repo}/generate"]["response"]; + }; + createWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/hooks"]["response"]; + }; + declineInvitation: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/repository_invitations/{invitation_id}"]["response"]; + }; + delete: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}"]["response"]; + }; + deleteAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"]["response"]; + }; + deleteAdminBranchProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"]["response"]; + }; + deleteBranchProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"]["response"]; + }; + deleteCommitComment: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/comments/{comment_id}"]["response"]; + }; + deleteCommitSignatureProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"]["response"]; + }; + deleteDeployKey: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/keys/{key_id}"]["response"]; + }; + deleteDeployment: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"]["response"]; + }; + deleteFile: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/contents/{path}"]["response"]; + }; + deleteInvitation: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"]["response"]; + }; + deletePagesSite: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/pages"]["response"]; + }; + deletePullRequestReviewProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"]["response"]; + }; + deleteRelease: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/releases/{release_id}"]["response"]; + }; + deleteReleaseAsset: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"]["response"]; + }; + deleteWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"]["response"]; + }; + disableAutomatedSecurityFixes: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/automated-security-fixes"]["response"]; + }; + disableVulnerabilityAlerts: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/vulnerability-alerts"]["response"]; + }; + downloadArchive: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/zipball/{ref}"]["response"]; + }; + downloadTarballArchive: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/tarball/{ref}"]["response"]; + }; + downloadZipballArchive: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/zipball/{ref}"]["response"]; + }; + enableAutomatedSecurityFixes: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/automated-security-fixes"]["response"]; + }; + enableVulnerabilityAlerts: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/vulnerability-alerts"]["response"]; + }; + get: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}"]["response"]; + }; + getAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"]["response"]; + }; + getAdminBranchProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"]["response"]; + }; + getAllStatusCheckContexts: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"]["response"]; + }; + getAllTopics: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/topics"]["response"]; + }; + getAppsWithAccessToProtectedBranch: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"]["response"]; + }; + getBranch: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}"]["response"]; + }; + getBranchProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}/protection"]["response"]; + }; + getClones: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/traffic/clones"]["response"]; + }; + getCodeFrequencyStats: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/stats/code_frequency"]["response"]; + }; + getCollaboratorPermissionLevel: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/collaborators/{username}/permission"]["response"]; + }; + getCombinedStatusForRef: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/status"]["response"]; + }; + getCommit: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}"]["response"]; + }; + getCommitActivityStats: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/stats/commit_activity"]["response"]; + }; + getCommitComment: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/comments/{comment_id}"]["response"]; + }; + getCommitSignatureProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"]["response"]; + }; + getCommunityProfileMetrics: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/community/profile"]["response"]; + }; + getContent: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/contents/{path}"]["response"]; + }; + getContributorsStats: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/stats/contributors"]["response"]; + }; + getDeployKey: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/keys/{key_id}"]["response"]; + }; + getDeployment: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/deployments/{deployment_id}"]["response"]; + }; + getDeploymentStatus: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"]["response"]; + }; + getLatestPagesBuild: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pages/builds/latest"]["response"]; + }; + getLatestRelease: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/releases/latest"]["response"]; + }; + getPages: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pages"]["response"]; + }; + getPagesBuild: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pages/builds/{build_id}"]["response"]; + }; + getParticipationStats: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/stats/participation"]["response"]; + }; + getPullRequestReviewProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"]["response"]; + }; + getPunchCardStats: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/stats/punch_card"]["response"]; + }; + getReadme: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/readme"]["response"]; + }; + getRelease: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/releases/{release_id}"]["response"]; + }; + getReleaseAsset: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"]["response"]; + }; + getReleaseByTag: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/releases/tags/{tag}"]["response"]; + }; + getStatusChecksProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"]["response"]; + }; + getTeamsWithAccessToProtectedBranch: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"]["response"]; + }; + getTopPaths: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/traffic/popular/paths"]["response"]; + }; + getTopReferrers: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/traffic/popular/referrers"]["response"]; + }; + getUsersWithAccessToProtectedBranch: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"]["response"]; + }; + getViews: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/traffic/views"]["response"]; + }; + getWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/hooks/{hook_id}"]["response"]; + }; + getWebhookConfigForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"]["response"]; + }; + listBranches: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/branches"]["response"]; + }; + listBranchesForHeadCommit: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"]["response"]; + }; + listCollaborators: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/collaborators"]["response"]; + }; + listCommentsForCommit: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"]["response"]; + }; + listCommitCommentsForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/comments"]["response"]; + }; + listCommitStatusesForRef: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{ref}/statuses"]["response"]; + }; + listCommits: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/commits"]["response"]; + }; + listContributors: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/contributors"]["response"]; + }; + listDeployKeys: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/keys"]["response"]; + }; + listDeploymentStatuses: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"]["response"]; + }; + listDeployments: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/deployments"]["response"]; + }; + listForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/repos"]["response"]; + }; + listForOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/repos"]["response"]; + }; + listForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/repos"]["response"]; + }; + listForks: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/forks"]["response"]; + }; + listInvitations: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/invitations"]["response"]; + }; + listInvitationsForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/repository_invitations"]["response"]; + }; + listLanguages: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/languages"]["response"]; + }; + listPagesBuilds: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/pages/builds"]["response"]; + }; + listPublic: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repositories"]["response"]; + }; + listPullRequestsAssociatedWithCommit: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"]["response"]; + }; + listReleaseAssets: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/releases/{release_id}/assets"]["response"]; + }; + listReleases: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/releases"]["response"]; + }; + listTags: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/tags"]["response"]; + }; + listTeams: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/teams"]["response"]; + }; + listWebhooks: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /repos/{owner}/{repo}/hooks"]["response"]; + }; + merge: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/merges"]["response"]; + }; + pingWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"]["response"]; + }; + removeAppAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"]["response"]; + }; + removeCollaborator: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/collaborators/{username}"]["response"]; + }; + removeStatusCheckContexts: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"]["response"]; + }; + removeStatusCheckProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"]["response"]; + }; + removeTeamAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"]["response"]; + }; + removeUserAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"]["response"]; + }; + replaceAllTopics: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/topics"]["response"]; + }; + requestPagesBuild: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/pages/builds"]["response"]; + }; + setAdminBranchProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"]["response"]; + }; + setAppAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"]["response"]; + }; + setStatusCheckContexts: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"]["response"]; + }; + setTeamAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"]["response"]; + }; + setUserAccessRestrictions: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"]["response"]; + }; + testPushWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"]["response"]; + }; + transfer: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /repos/{owner}/{repo}/transfer"]["response"]; + }; + update: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}"]["response"]; + }; + updateBranchProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/branches/{branch}/protection"]["response"]; + }; + updateCommitComment: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/comments/{comment_id}"]["response"]; + }; + updateInformationAboutPagesSite: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /repos/{owner}/{repo}/pages"]["response"]; + }; + updateInvitation: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"]["response"]; + }; + updatePullRequestReviewProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"]["response"]; + }; + updateRelease: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/releases/{release_id}"]["response"]; + }; + updateReleaseAsset: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"]["response"]; + }; + updateStatusCheckPotection: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"]["response"]; + }; + updateStatusCheckProtection: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"]["response"]; + }; + updateWebhook: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"]["response"]; + }; + updateWebhookConfigForRepo: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"]["response"]; + }; + uploadReleaseAsset: { + parameters: RequestParameters & Omit; + response: Endpoints["POST {origin}/repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}"]["response"]; + }; + }; + search: { + code: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /search/code"]["response"]; + }; + commits: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /search/commits"]["response"]; + }; + issuesAndPullRequests: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /search/issues"]["response"]; + }; + labels: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /search/labels"]["response"]; + }; + repos: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /search/repositories"]["response"]; + }; + topics: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /search/topics"]["response"]; + }; + users: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /search/users"]["response"]; + }; + }; + teams: { + addOrUpdateMembershipForUserInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"]["response"]; + }; + addOrUpdateProjectPermissionsInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"]["response"]; + }; + addOrUpdateRepoPermissionsInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"]["response"]; + }; + checkPermissionsForProjectInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"]["response"]; + }; + checkPermissionsForRepoInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"]["response"]; + }; + create: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/teams"]["response"]; + }; + createDiscussionCommentInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"]["response"]; + }; + createDiscussionInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /orgs/{org}/teams/{team_slug}/discussions"]["response"]; + }; + deleteDiscussionCommentInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"]["response"]; + }; + deleteDiscussionInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"]["response"]; + }; + deleteInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/teams/{team_slug}"]["response"]; + }; + getByName: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}"]["response"]; + }; + getDiscussionCommentInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"]["response"]; + }; + getDiscussionInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"]["response"]; + }; + getMembershipForUserInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"]["response"]; + }; + list: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams"]["response"]; + }; + listChildInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/teams"]["response"]; + }; + listDiscussionCommentsInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"]["response"]; + }; + listDiscussionsInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/discussions"]["response"]; + }; + listForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/teams"]["response"]; + }; + listMembersInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/members"]["response"]; + }; + listPendingInvitationsInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/invitations"]["response"]; + }; + listProjectsInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/projects"]["response"]; + }; + listReposInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /orgs/{org}/teams/{team_slug}/repos"]["response"]; + }; + removeMembershipForUserInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"]["response"]; + }; + removeProjectInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"]["response"]; + }; + removeRepoInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"]["response"]; + }; + updateDiscussionCommentInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"]["response"]; + }; + updateDiscussionInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"]["response"]; + }; + updateInOrg: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /orgs/{org}/teams/{team_slug}"]["response"]; + }; + }; + users: { + addEmailForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /user/emails"]["response"]; + }; + block: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /user/blocks/{username}"]["response"]; + }; + checkBlocked: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/blocks/{username}"]["response"]; + }; + checkFollowingForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/following/{target_user}"]["response"]; + }; + checkPersonIsFollowedByAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/following/{username}"]["response"]; + }; + createGpgKeyForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /user/gpg_keys"]["response"]; + }; + createPublicSshKeyForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["POST /user/keys"]["response"]; + }; + deleteEmailForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/emails"]["response"]; + }; + deleteGpgKeyForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/gpg_keys/{gpg_key_id}"]["response"]; + }; + deletePublicSshKeyForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/keys/{key_id}"]["response"]; + }; + follow: { + parameters: RequestParameters & Omit; + response: Endpoints["PUT /user/following/{username}"]["response"]; + }; + getAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user"]["response"]; + }; + getByUsername: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}"]["response"]; + }; + getContextForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/hovercard"]["response"]; + }; + getGpgKeyForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/gpg_keys/{gpg_key_id}"]["response"]; + }; + getPublicSshKeyForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/keys/{key_id}"]["response"]; + }; + list: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users"]["response"]; + }; + listBlockedByAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/blocks"]["response"]; + }; + listEmailsForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/emails"]["response"]; + }; + listFollowedByAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/following"]["response"]; + }; + listFollowersForAuthenticatedUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/followers"]["response"]; + }; + listFollowersForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/followers"]["response"]; + }; + listFollowingForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/following"]["response"]; + }; + listGpgKeysForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/gpg_keys"]["response"]; + }; + listGpgKeysForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/gpg_keys"]["response"]; + }; + listPublicEmailsForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/public_emails"]["response"]; + }; + listPublicKeysForUser: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /users/{username}/keys"]["response"]; + }; + listPublicSshKeysForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["GET /user/keys"]["response"]; + }; + setPrimaryEmailVisibilityForAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /user/email/visibility"]["response"]; + }; + unblock: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/blocks/{username}"]["response"]; + }; + unfollow: { + parameters: RequestParameters & Omit; + response: Endpoints["DELETE /user/following/{username}"]["response"]; + }; + updateAuthenticated: { + parameters: RequestParameters & Omit; + response: Endpoints["PATCH /user"]["response"]; + }; + }; +}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/rest-endpoint-methods-types.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/rest-endpoint-methods-types.d.ts deleted file mode 100644 index 4a1927e77..000000000 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/generated/rest-endpoint-methods-types.d.ts +++ /dev/null @@ -1,38224 +0,0 @@ -import { EndpointInterface, RequestParameters, OctokitResponse } from "@octokit/types"; -declare type AnyResponse = OctokitResponse; -declare type EmptyParams = {}; -declare type UsersUpdateAuthenticatedResponsePlan = { - collaborators: number; - name: string; - private_repos: number; - space: number; -}; -declare type UsersUpdateAuthenticatedResponse = { - avatar_url: string; - bio: string; - blog: string; - collaborators: number; - company: string; - created_at: string; - disk_usage: number; - email: string; - events_url: string; - followers: number; - followers_url: string; - following: number; - following_url: string; - gists_url: string; - gravatar_id: string; - hireable: boolean; - html_url: string; - id: number; - location: string; - login: string; - name: string; - node_id: string; - organizations_url: string; - owned_private_repos: number; - plan: UsersUpdateAuthenticatedResponsePlan; - private_gists: number; - public_gists: number; - public_repos: number; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - total_private_repos: number; - two_factor_authentication: boolean; - type: string; - updated_at: string; - url: string; -}; -declare type UsersTogglePrimaryEmailVisibilityResponseItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string; -}; -declare type UsersListPublicKeysForUserResponseItem = { - id: number; - key: string; -}; -declare type UsersListPublicKeysResponseItem = { - key: string; - key_id: string; -}; -declare type UsersListPublicEmailsResponseItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string; -}; -declare type UsersListGpgKeysForUserResponseItemSubkeysItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: number; - public_key: string; - subkeys: Array; -}; -declare type UsersListGpgKeysForUserResponseItemEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersListGpgKeysForUserResponseItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: null; - public_key: string; - subkeys: Array; -}; -declare type UsersListGpgKeysResponseItemSubkeysItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: number; - public_key: string; - subkeys: Array; -}; -declare type UsersListGpgKeysResponseItemEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersListGpgKeysResponseItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: null; - public_key: string; - subkeys: Array; -}; -declare type UsersListFollowingForUserResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type UsersListFollowingForAuthenticatedUserResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type UsersListFollowersForUserResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type UsersListFollowersForAuthenticatedUserResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type UsersListEmailsResponseItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string; -}; -declare type UsersListBlockedResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type UsersListResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type UsersGetPublicKeyResponse = { - key: string; - key_id: string; -}; -declare type UsersGetGpgKeyResponseSubkeysItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: number; - public_key: string; - subkeys: Array; -}; -declare type UsersGetGpgKeyResponseEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersGetGpgKeyResponse = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: null; - public_key: string; - subkeys: Array; -}; -declare type UsersGetContextForUserResponseContextsItem = { - message: string; - octicon: string; -}; -declare type UsersGetContextForUserResponse = { - contexts: Array; -}; -declare type UsersGetByUsernameResponsePlan = { - collaborators: number; - name: string; - private_repos: number; - space: number; -}; -declare type UsersGetByUsernameResponse = { - avatar_url: string; - bio: string; - blog: string; - company: string; - created_at: string; - email: string; - events_url: string; - followers: number; - followers_url: string; - following: number; - following_url: string; - gists_url: string; - gravatar_id: string; - hireable: boolean; - html_url: string; - id: number; - location: string; - login: string; - name: string; - node_id: string; - organizations_url: string; - public_gists: number; - public_repos: number; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - updated_at: string; - url: string; - plan?: UsersGetByUsernameResponsePlan; -}; -declare type UsersGetAuthenticatedResponsePlan = { - collaborators: number; - name: string; - private_repos: number; - space: number; -}; -declare type UsersGetAuthenticatedResponse = { - avatar_url: string; - bio: string; - blog: string; - collaborators?: number; - company: string; - created_at: string; - disk_usage?: number; - email: string; - events_url: string; - followers: number; - followers_url: string; - following: number; - following_url: string; - gists_url: string; - gravatar_id: string; - hireable: boolean; - html_url: string; - id: number; - location: string; - login: string; - name: string; - node_id: string; - organizations_url: string; - owned_private_repos?: number; - plan?: UsersGetAuthenticatedResponsePlan; - private_gists?: number; - public_gists: number; - public_repos: number; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - total_private_repos?: number; - two_factor_authentication?: boolean; - type: string; - updated_at: string; - url: string; -}; -declare type UsersCreatePublicKeyResponse = { - key: string; - key_id: string; -}; -declare type UsersCreateGpgKeyResponseSubkeysItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: number; - public_key: string; - subkeys: Array; -}; -declare type UsersCreateGpgKeyResponseEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersCreateGpgKeyResponse = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: null; - public_key: string; - subkeys: Array; -}; -declare type UsersAddEmailsResponseItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string | null; -}; -declare type TeamsUpdateLegacyResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; -}; -declare type TeamsUpdateLegacyResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsUpdateLegacyResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; -}; -declare type TeamsUpdateInOrgResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; -}; -declare type TeamsUpdateInOrgResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsUpdateInOrgResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; -}; -declare type TeamsUpdateDiscussionLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsUpdateDiscussionLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsUpdateDiscussionLegacyResponse = { - author: TeamsUpdateDiscussionLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsUpdateDiscussionLegacyResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsUpdateDiscussionInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsUpdateDiscussionInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsUpdateDiscussionInOrgResponse = { - author: TeamsUpdateDiscussionInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsUpdateDiscussionInOrgResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponse = { - author: TeamsUpdateDiscussionCommentLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - reactions: TeamsUpdateDiscussionCommentLegacyResponseReactions; - updated_at: string; - url: string; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponse = { - author: TeamsUpdateDiscussionCommentInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - reactions: TeamsUpdateDiscussionCommentInOrgResponseReactions; - updated_at: string; - url: string; -}; -declare type TeamsUpdateDiscussionCommentResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsUpdateDiscussionCommentResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsUpdateDiscussionCommentResponse = { - author: TeamsUpdateDiscussionCommentResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - reactions: TeamsUpdateDiscussionCommentResponseReactions; - updated_at: string; - url: string; -}; -declare type TeamsUpdateDiscussionResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsUpdateDiscussionResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsUpdateDiscussionResponse = { - author: TeamsUpdateDiscussionResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsUpdateDiscussionResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsUpdateResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; -}; -declare type TeamsUpdateResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsUpdateResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; -}; -declare type TeamsReviewProjectLegacyResponsePermissions = { - admin: boolean; - read: boolean; - write: boolean; -}; -declare type TeamsReviewProjectLegacyResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsReviewProjectLegacyResponse = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsReviewProjectLegacyResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsReviewProjectLegacyResponsePermissions; - private: boolean; - state: string; - updated_at: string; - url: string; -}; -declare type TeamsReviewProjectInOrgResponsePermissions = { - admin: boolean; - read: boolean; - write: boolean; -}; -declare type TeamsReviewProjectInOrgResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsReviewProjectInOrgResponse = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsReviewProjectInOrgResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsReviewProjectInOrgResponsePermissions; - private: boolean; - state: string; - updated_at: string; - url: string; -}; -declare type TeamsReviewProjectResponsePermissions = { - admin: boolean; - read: boolean; - write: boolean; -}; -declare type TeamsReviewProjectResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsReviewProjectResponse = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsReviewProjectResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsReviewProjectResponsePermissions; - private: boolean; - state: string; - updated_at: string; - url: string; -}; -declare type TeamsListReposLegacyResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type TeamsListReposLegacyResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListReposLegacyResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type TeamsListReposLegacyResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: TeamsListReposLegacyResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsListReposLegacyResponseItemOwner; - permissions: TeamsListReposLegacyResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type TeamsListReposInOrgResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type TeamsListReposInOrgResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListReposInOrgResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type TeamsListReposInOrgResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: TeamsListReposInOrgResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsListReposInOrgResponseItemOwner; - permissions: TeamsListReposInOrgResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type TeamsListReposResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type TeamsListReposResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListReposResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type TeamsListReposResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: TeamsListReposResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsListReposResponseItemOwner; - permissions: TeamsListReposResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type TeamsListProjectsLegacyResponseItemPermissions = { - admin: boolean; - read: boolean; - write: boolean; -}; -declare type TeamsListProjectsLegacyResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListProjectsLegacyResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsListProjectsLegacyResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsListProjectsLegacyResponseItemPermissions; - private: boolean; - state: string; - updated_at: string; - url: string; -}; -declare type TeamsListProjectsInOrgResponseItemPermissions = { - admin: boolean; - read: boolean; - write: boolean; -}; -declare type TeamsListProjectsInOrgResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListProjectsInOrgResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsListProjectsInOrgResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsListProjectsInOrgResponseItemPermissions; - private: boolean; - state: string; - updated_at: string; - url: string; -}; -declare type TeamsListProjectsResponseItemPermissions = { - admin: boolean; - read: boolean; - write: boolean; -}; -declare type TeamsListProjectsResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListProjectsResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsListProjectsResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsListProjectsResponseItemPermissions; - private: boolean; - state: string; - updated_at: string; - url: string; -}; -declare type TeamsListPendingInvitationsLegacyResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListPendingInvitationsLegacyResponseItem = { - created_at: string; - email: string; - id: number; - invitation_team_url: string; - inviter: TeamsListPendingInvitationsLegacyResponseItemInviter; - login: string; - role: string; - team_count: number; -}; -declare type TeamsListPendingInvitationsInOrgResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListPendingInvitationsInOrgResponseItem = { - created_at: string; - email: string; - id: number; - invitation_team_url: string; - inviter: TeamsListPendingInvitationsInOrgResponseItemInviter; - login: string; - role: string; - team_count: number; -}; -declare type TeamsListPendingInvitationsResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListPendingInvitationsResponseItem = { - created_at: string; - email: string; - id: number; - invitation_team_url: string; - inviter: TeamsListPendingInvitationsResponseItemInviter; - login: string; - role: string; - team_count: number; -}; -declare type TeamsListMembersLegacyResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListMembersInOrgResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListMembersResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListForAuthenticatedUserResponseItemOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; -}; -declare type TeamsListForAuthenticatedUserResponseItem = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsListForAuthenticatedUserResponseItemOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; -}; -declare type TeamsListDiscussionsLegacyResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsListDiscussionsLegacyResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListDiscussionsLegacyResponseItem = { - author: TeamsListDiscussionsLegacyResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsListDiscussionsLegacyResponseItemReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsListDiscussionsInOrgResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsListDiscussionsInOrgResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListDiscussionsInOrgResponseItem = { - author: TeamsListDiscussionsInOrgResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsListDiscussionsInOrgResponseItemReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsListDiscussionsResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsListDiscussionsResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListDiscussionsResponseItem = { - author: TeamsListDiscussionsResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsListDiscussionsResponseItemReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsListDiscussionCommentsLegacyResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsListDiscussionCommentsLegacyResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListDiscussionCommentsLegacyResponseItem = { - author: TeamsListDiscussionCommentsLegacyResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsListDiscussionCommentsLegacyResponseItemReactions; - updated_at: string; - url: string; -}; -declare type TeamsListDiscussionCommentsInOrgResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsListDiscussionCommentsInOrgResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListDiscussionCommentsInOrgResponseItem = { - author: TeamsListDiscussionCommentsInOrgResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsListDiscussionCommentsInOrgResponseItemReactions; - updated_at: string; - url: string; -}; -declare type TeamsListDiscussionCommentsResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsListDiscussionCommentsResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsListDiscussionCommentsResponseItem = { - author: TeamsListDiscussionCommentsResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsListDiscussionCommentsResponseItemReactions; - updated_at: string; - url: string; -}; -declare type TeamsListChildLegacyResponseItemParent = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type TeamsListChildLegacyResponseItem = { - description: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: TeamsListChildLegacyResponseItemParent; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type TeamsListChildInOrgResponseItemParent = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type TeamsListChildInOrgResponseItem = { - description: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: TeamsListChildInOrgResponseItemParent; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type TeamsListChildResponseItemParent = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type TeamsListChildResponseItem = { - description: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: TeamsListChildResponseItemParent; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type TeamsListResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type TeamsGetMembershipLegacyResponse = { - role: string; - state: string; - url: string; -}; -declare type TeamsGetMembershipInOrgResponse = { - role: string; - state: string; - url: string; -}; -declare type TeamsGetMembershipResponse = { - role: string; - state: string; - url: string; -}; -declare type TeamsGetLegacyResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; -}; -declare type TeamsGetLegacyResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsGetLegacyResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; -}; -declare type TeamsGetDiscussionLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsGetDiscussionLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsGetDiscussionLegacyResponse = { - author: TeamsGetDiscussionLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsGetDiscussionLegacyResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsGetDiscussionInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsGetDiscussionInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsGetDiscussionInOrgResponse = { - author: TeamsGetDiscussionInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsGetDiscussionInOrgResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsGetDiscussionCommentLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsGetDiscussionCommentLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsGetDiscussionCommentLegacyResponse = { - author: TeamsGetDiscussionCommentLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsGetDiscussionCommentLegacyResponseReactions; - updated_at: string; - url: string; -}; -declare type TeamsGetDiscussionCommentInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsGetDiscussionCommentInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsGetDiscussionCommentInOrgResponse = { - author: TeamsGetDiscussionCommentInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsGetDiscussionCommentInOrgResponseReactions; - updated_at: string; - url: string; -}; -declare type TeamsGetDiscussionCommentResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsGetDiscussionCommentResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsGetDiscussionCommentResponse = { - author: TeamsGetDiscussionCommentResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsGetDiscussionCommentResponseReactions; - updated_at: string; - url: string; -}; -declare type TeamsGetDiscussionResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsGetDiscussionResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsGetDiscussionResponse = { - author: TeamsGetDiscussionResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsGetDiscussionResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsGetByNameResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; -}; -declare type TeamsGetByNameResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsGetByNameResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; -}; -declare type TeamsGetResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; -}; -declare type TeamsGetResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsGetResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; -}; -declare type TeamsCreateDiscussionLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsCreateDiscussionLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsCreateDiscussionLegacyResponse = { - author: TeamsCreateDiscussionLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsCreateDiscussionLegacyResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsCreateDiscussionInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsCreateDiscussionInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsCreateDiscussionInOrgResponse = { - author: TeamsCreateDiscussionInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsCreateDiscussionInOrgResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsCreateDiscussionCommentLegacyResponse = { - author: TeamsCreateDiscussionCommentLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsCreateDiscussionCommentLegacyResponseReactions; - updated_at: string; - url: string; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsCreateDiscussionCommentInOrgResponse = { - author: TeamsCreateDiscussionCommentInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsCreateDiscussionCommentInOrgResponseReactions; - updated_at: string; - url: string; -}; -declare type TeamsCreateDiscussionCommentResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsCreateDiscussionCommentResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsCreateDiscussionCommentResponse = { - author: TeamsCreateDiscussionCommentResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsCreateDiscussionCommentResponseReactions; - updated_at: string; - url: string; -}; -declare type TeamsCreateDiscussionResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; -}; -declare type TeamsCreateDiscussionResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsCreateDiscussionResponse = { - author: TeamsCreateDiscussionResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsCreateDiscussionResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; -}; -declare type TeamsCreateResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; -}; -declare type TeamsCreateResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsCreateResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; -}; -declare type TeamsCheckManagesRepoLegacyResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsCheckManagesRepoLegacyResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsCheckManagesRepoLegacyResponseOwner; - permissions: TeamsCheckManagesRepoLegacyResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type TeamsCheckManagesRepoInOrgResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsCheckManagesRepoInOrgResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsCheckManagesRepoInOrgResponseOwner; - permissions: TeamsCheckManagesRepoInOrgResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type TeamsCheckManagesRepoResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type TeamsCheckManagesRepoResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type TeamsCheckManagesRepoResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsCheckManagesRepoResponseOwner; - permissions: TeamsCheckManagesRepoResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type TeamsAddOrUpdateProjectLegacyResponse = { - documentation_url: string; - message: string; -}; -declare type TeamsAddOrUpdateProjectInOrgResponse = { - documentation_url: string; - message: string; -}; -declare type TeamsAddOrUpdateProjectResponse = { - documentation_url: string; - message: string; -}; -declare type TeamsAddOrUpdateMembershipLegacyResponse = { - role: string; - state: string; - url: string; -}; -declare type TeamsAddOrUpdateMembershipInOrgResponse = { - role: string; - state: string; - url: string; -}; -declare type TeamsAddOrUpdateMembershipResponse = { - role: string; - state: string; - url: string; -}; -declare type TeamsAddMemberLegacyResponseErrorsItem = { - code: string; - field: string; - resource: string; -}; -declare type TeamsAddMemberLegacyResponse = { - errors: Array; - message: string; -}; -declare type TeamsAddMemberResponseErrorsItem = { - code: string; - field: string; - resource: string; -}; -declare type TeamsAddMemberResponse = { - errors: Array; - message: string; -}; -declare type SearchUsersLegacyResponseUsersItem = { - created: string; - created_at: string; - followers: number; - followers_count: number; - fullname: string; - gravatar_id: string; - id: string; - language: string; - location: string; - login: string; - name: string; - public_repo_count: number; - repos: number; - score: number; - type: string; - username: string; -}; -declare type SearchUsersLegacyResponse = { - users: Array; -}; -declare type SearchUsersResponseItemsItem = { - avatar_url: string; - followers_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - score: number; - subscriptions_url: string; - type: string; - url: string; -}; -declare type SearchUsersResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; -}; -declare type SearchTopicsResponseItemsItem = { - created_at: string; - created_by: string; - curated: boolean; - description: string; - display_name: string; - featured: boolean; - name: string; - released: string; - score: number; - short_description: string; - updated_at: string; -}; -declare type SearchTopicsResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; -}; -declare type SearchReposLegacyResponseRepositoriesItem = { - created: string; - created_at: string; - description: string; - followers: number; - fork: boolean; - forks: number; - has_downloads: boolean; - has_issues: boolean; - has_wiki: boolean; - homepage: string; - language: string; - name: string; - open_issues: number; - owner: string; - private: boolean; - pushed: string; - pushed_at: string; - score: number; - size: number; - type: string; - url: string; - username: string; - watchers: number; -}; -declare type SearchReposLegacyResponse = { - repositories: Array; -}; -declare type SearchReposResponseItemsItemOwner = { - avatar_url: string; - gravatar_id: string; - id: number; - login: string; - node_id: string; - received_events_url: string; - type: string; - url: string; -}; -declare type SearchReposResponseItemsItem = { - created_at: string; - default_branch: string; - description: string; - fork: boolean; - forks_count: number; - full_name: string; - homepage: string; - html_url: string; - id: number; - language: string; - master_branch: string; - name: string; - node_id: string; - open_issues_count: number; - owner: SearchReposResponseItemsItemOwner; - private: boolean; - pushed_at: string; - score: number; - size: number; - stargazers_count: number; - updated_at: string; - url: string; - watchers_count: number; -}; -declare type SearchReposResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; -}; -declare type SearchLabelsResponseItemsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - score: number; - url: string; -}; -declare type SearchLabelsResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; -}; -declare type SearchIssuesLegacyResponseIssuesItem = { - body: string; - comments: number; - created_at: string; - gravatar_id: string; - html_url: string; - labels: Array; - number: number; - position: number; - state: string; - title: string; - updated_at: string; - user: string; - votes: number; -}; -declare type SearchIssuesLegacyResponse = { - issues: Array; -}; -declare type SearchIssuesAndPullRequestsResponseItemsItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type SearchIssuesAndPullRequestsResponseItemsItemPullRequest = { - diff_url: null; - html_url: null; - patch_url: null; -}; -declare type SearchIssuesAndPullRequestsResponseItemsItemLabelsItem = { - color: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type SearchIssuesAndPullRequestsResponseItemsItem = { - assignee: null; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - milestone: null; - node_id: string; - number: number; - pull_request: SearchIssuesAndPullRequestsResponseItemsItemPullRequest; - repository_url: string; - score: number; - state: string; - title: string; - updated_at: string; - url: string; - user: SearchIssuesAndPullRequestsResponseItemsItemUser; -}; -declare type SearchIssuesAndPullRequestsResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; -}; -declare type SearchIssuesResponseItemsItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type SearchIssuesResponseItemsItemPullRequest = { - diff_url: null; - html_url: null; - patch_url: null; -}; -declare type SearchIssuesResponseItemsItemLabelsItem = { - color: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type SearchIssuesResponseItemsItem = { - assignee: null; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - milestone: null; - node_id: string; - number: number; - pull_request: SearchIssuesResponseItemsItemPullRequest; - repository_url: string; - score: number; - state: string; - title: string; - updated_at: string; - url: string; - user: SearchIssuesResponseItemsItemUser; -}; -declare type SearchIssuesResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; -}; -declare type SearchEmailLegacyResponseUser = { - blog: string; - company: string; - created: string; - created_at: string; - email: string; - followers_count: number; - following_count: number; - gravatar_id: string; - id: number; - location: string; - login: string; - name: string; - public_gist_count: number; - public_repo_count: number; - type: string; -}; -declare type SearchEmailLegacyResponse = { - user: SearchEmailLegacyResponseUser; -}; -declare type SearchCommitsResponseItemsItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type SearchCommitsResponseItemsItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - hooks_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: SearchCommitsResponseItemsItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type SearchCommitsResponseItemsItemParentsItem = { - html_url: string; - sha: string; - url: string; -}; -declare type SearchCommitsResponseItemsItemCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type SearchCommitsResponseItemsItemCommitTree = { - sha: string; - url: string; -}; -declare type SearchCommitsResponseItemsItemCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type SearchCommitsResponseItemsItemCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type SearchCommitsResponseItemsItemCommit = { - author: SearchCommitsResponseItemsItemCommitAuthor; - comment_count: number; - committer: SearchCommitsResponseItemsItemCommitCommitter; - message: string; - tree: SearchCommitsResponseItemsItemCommitTree; - url: string; -}; -declare type SearchCommitsResponseItemsItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type SearchCommitsResponseItemsItem = { - author: SearchCommitsResponseItemsItemAuthor; - comments_url: string; - commit: SearchCommitsResponseItemsItemCommit; - committer: SearchCommitsResponseItemsItemCommitter; - html_url: string; - parents: Array; - repository: SearchCommitsResponseItemsItemRepository; - score: number; - sha: string; - url: string; -}; -declare type SearchCommitsResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; -}; -declare type SearchCodeResponseItemsItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type SearchCodeResponseItemsItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - hooks_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: SearchCodeResponseItemsItemRepositoryOwner; - private: boolean; - pulls_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type SearchCodeResponseItemsItem = { - git_url: string; - html_url: string; - name: string; - path: string; - repository: SearchCodeResponseItemsItemRepository; - score: number; - sha: string; - url: string; -}; -declare type SearchCodeResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; -}; -declare type ReposUploadReleaseAssetResponseValueUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUploadReleaseAssetResponseValue = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposUploadReleaseAssetResponseValueUploader; - url: string; -}; -declare type ReposUploadReleaseAssetResponse = { - value: ReposUploadReleaseAssetResponseValue; -}; -declare type ReposUpdateReleaseAssetResponseUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateReleaseAssetResponse = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposUpdateReleaseAssetResponseUploader; - url: string; -}; -declare type ReposUpdateReleaseResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateReleaseResponseAssetsItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateReleaseResponseAssetsItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposUpdateReleaseResponseAssetsItemUploader; - url: string; -}; -declare type ReposUpdateReleaseResponse = { - assets: Array; - assets_url: string; - author: ReposUpdateReleaseResponseAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; -}; -declare type ReposUpdateProtectedBranchRequiredStatusChecksResponse = { - contexts: Array; - contexts_url: string; - strict: boolean; - url: string; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions = { - teams: Array; - teams_url: string; - url: string; - users: Array; - users_url: string; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponse = { - dismiss_stale_reviews: boolean; - dismissal_restrictions: ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - url: string; -}; -declare type ReposUpdateInvitationResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateInvitationResponseRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposUpdateInvitationResponseRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ReposUpdateInvitationResponseInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateInvitationResponseInvitee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateInvitationResponse = { - created_at: string; - html_url: string; - id: number; - invitee: ReposUpdateInvitationResponseInvitee; - inviter: ReposUpdateInvitationResponseInviter; - permissions: string; - repository: ReposUpdateInvitationResponseRepository; - url: string; -}; -declare type ReposUpdateHookResponseLastResponse = { - code: null; - message: null; - status: string; -}; -declare type ReposUpdateHookResponseConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposUpdateHookResponse = { - active: boolean; - config: ReposUpdateHookResponseConfig; - created_at: string; - events: Array; - id: number; - last_response: ReposUpdateHookResponseLastResponse; - name: string; - ping_url: string; - test_url: string; - type: string; - updated_at: string; - url: string; -}; -declare type ReposUpdateFileResponseContentLinks = { - git: string; - html: string; - self: string; -}; -declare type ReposUpdateFileResponseContent = { - _links: ReposUpdateFileResponseContentLinks; - download_url: string; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; -}; -declare type ReposUpdateFileResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposUpdateFileResponseCommitTree = { - sha: string; - url: string; -}; -declare type ReposUpdateFileResponseCommitParentsItem = { - html_url: string; - sha: string; - url: string; -}; -declare type ReposUpdateFileResponseCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposUpdateFileResponseCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposUpdateFileResponseCommit = { - author: ReposUpdateFileResponseCommitAuthor; - committer: ReposUpdateFileResponseCommitCommitter; - html_url: string; - message: string; - node_id: string; - parents: Array; - sha: string; - tree: ReposUpdateFileResponseCommitTree; - url: string; - verification: ReposUpdateFileResponseCommitVerification; -}; -declare type ReposUpdateFileResponse = { - commit: ReposUpdateFileResponseCommit; - content: ReposUpdateFileResponseContent; -}; -declare type ReposUpdateCommitCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateCommitCommentResponse = { - body: string; - commit_id: string; - created_at: string; - html_url: string; - id: number; - line: number; - node_id: string; - path: string; - position: number; - updated_at: string; - url: string; - user: ReposUpdateCommitCommentResponseUser; -}; -declare type ReposUpdateBranchProtectionResponseRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateBranchProtectionResponseRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposUpdateBranchProtectionResponseRestrictionsAppsItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ReposUpdateBranchProtectionResponseRestrictionsAppsItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ReposUpdateBranchProtectionResponseRestrictionsAppsItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposUpdateBranchProtectionResponseRestrictionsAppsItemOwner; - permissions: ReposUpdateBranchProtectionResponseRestrictionsAppsItemPermissions; - slug: string; - updated_at: string; -}; -declare type ReposUpdateBranchProtectionResponseRestrictions = { - apps: Array; - apps_url: string; - teams: Array; - teams_url: string; - url: string; - users: Array; - users_url: string; -}; -declare type ReposUpdateBranchProtectionResponseRequiredStatusChecks = { - contexts: Array; - contexts_url: string; - strict: boolean; - url: string; -}; -declare type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions = { - teams: Array; - teams_url: string; - url: string; - users: Array; - users_url: string; -}; -declare type ReposUpdateBranchProtectionResponseRequiredPullRequestReviews = { - dismiss_stale_reviews: boolean; - dismissal_restrictions: ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - url: string; -}; -declare type ReposUpdateBranchProtectionResponseRequiredLinearHistory = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseEnforceAdmins = { - enabled: boolean; - url: string; -}; -declare type ReposUpdateBranchProtectionResponseAllowForcePushes = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseAllowDeletions = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponse = { - allow_deletions: ReposUpdateBranchProtectionResponseAllowDeletions; - allow_force_pushes: ReposUpdateBranchProtectionResponseAllowForcePushes; - enforce_admins: ReposUpdateBranchProtectionResponseEnforceAdmins; - required_linear_history: ReposUpdateBranchProtectionResponseRequiredLinearHistory; - required_pull_request_reviews: ReposUpdateBranchProtectionResponseRequiredPullRequestReviews; - required_status_checks: ReposUpdateBranchProtectionResponseRequiredStatusChecks; - restrictions: ReposUpdateBranchProtectionResponseRestrictions; - url: string; -}; -declare type ReposUpdateResponseSourcePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposUpdateResponseSourceOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateResponseSource = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposUpdateResponseSourceOwner; - permissions: ReposUpdateResponseSourcePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposUpdateResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposUpdateResponseParentPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposUpdateResponseParentOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateResponseParent = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposUpdateResponseParentOwner; - permissions: ReposUpdateResponseParentPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposUpdateResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateResponseOrganization = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposUpdateResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - organization: ReposUpdateResponseOrganization; - owner: ReposUpdateResponseOwner; - parent: ReposUpdateResponseParent; - permissions: ReposUpdateResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - source: ReposUpdateResponseSource; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposTransferResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposTransferResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposTransferResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposTransferResponseOwner; - permissions: ReposTransferResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseFilesReadme = { - html_url: string; - url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseFilesPullRequestTemplate = { - html_url: string; - url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseFilesLicense = { - html_url: string; - key: string; - name: string; - spdx_id: string; - url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseFilesIssueTemplate = { - html_url: string; - url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseFilesContributing = { - html_url: string; - url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseFilesCodeOfConduct = { - html_url: string; - key: string; - name: string; - url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseFiles = { - code_of_conduct: ReposRetrieveCommunityProfileMetricsResponseFilesCodeOfConduct; - contributing: ReposRetrieveCommunityProfileMetricsResponseFilesContributing; - issue_template: ReposRetrieveCommunityProfileMetricsResponseFilesIssueTemplate; - license: ReposRetrieveCommunityProfileMetricsResponseFilesLicense; - pull_request_template: ReposRetrieveCommunityProfileMetricsResponseFilesPullRequestTemplate; - readme: ReposRetrieveCommunityProfileMetricsResponseFilesReadme; -}; -declare type ReposRetrieveCommunityProfileMetricsResponse = { - description: string; - documentation: boolean; - files: ReposRetrieveCommunityProfileMetricsResponseFiles; - health_percentage: number; - updated_at: string; -}; -declare type ReposRequestPageBuildResponse = { - status: string; - url: string; -}; -declare type ReposReplaceTopicsResponse = { - names: Array; -}; -declare type ReposReplaceProtectedBranchUserRestrictionsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposReplaceProtectedBranchTeamRestrictionsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposReplaceProtectedBranchAppRestrictionsResponseItemOwner; - permissions: ReposReplaceProtectedBranchAppRestrictionsResponseItemPermissions; - slug: string; - updated_at: string; -}; -declare type ReposRemoveProtectedBranchUserRestrictionsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposRemoveProtectedBranchTeamRestrictionsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposRemoveProtectedBranchAppRestrictionsResponseItemOwner; - permissions: ReposRemoveProtectedBranchAppRestrictionsResponseItemPermissions; - slug: string; - updated_at: string; -}; -declare type ReposMergeResponseParentsItem = { - sha: string; - url: string; -}; -declare type ReposMergeResponseCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposMergeResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposMergeResponseCommitTree = { - sha: string; - url: string; -}; -declare type ReposMergeResponseCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposMergeResponseCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposMergeResponseCommit = { - author: ReposMergeResponseCommitAuthor; - comment_count: number; - committer: ReposMergeResponseCommitCommitter; - message: string; - tree: ReposMergeResponseCommitTree; - url: string; - verification: ReposMergeResponseCommitVerification; -}; -declare type ReposMergeResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposMergeResponse = { - author: ReposMergeResponseAuthor; - comments_url: string; - commit: ReposMergeResponseCommit; - committer: ReposMergeResponseCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; -}; -declare type ReposListUsersWithAccessToProtectedBranchResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListTopicsResponse = { - names: Array; -}; -declare type ReposListTeamsWithAccessToProtectedBranchResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposListTeamsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposListTagsResponseItemCommit = { - sha: string; - url: string; -}; -declare type ReposListTagsResponseItem = { - commit: ReposListTagsResponseItemCommit; - name: string; - tarball_url: string; - zipball_url: string; -}; -declare type ReposListStatusesForRefResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListStatusesForRefResponseItem = { - avatar_url: string; - context: string; - created_at: string; - creator: ReposListStatusesForRefResponseItemCreator; - description: string; - id: number; - node_id: string; - state: string; - target_url: string; - updated_at: string; - url: string; -}; -declare type ReposListReleasesResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListReleasesResponseItemAssetsItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListReleasesResponseItemAssetsItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposListReleasesResponseItemAssetsItemUploader; - url: string; -}; -declare type ReposListReleasesResponseItem = { - assets: Array; - assets_url: string; - author: ReposListReleasesResponseItemAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: ReposListPullRequestsAssociatedWithCommitResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepoOwner; - permissions: ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemHead = { - label: string; - ref: string; - repo: ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepo; - sha: string; - user: ReposListPullRequestsAssociatedWithCommitResponseItemHeadUser; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepoOwner; - permissions: ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemBase = { - label: string; - ref: string; - repo: ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepo; - sha: string; - user: ReposListPullRequestsAssociatedWithCommitResponseItemBaseUser; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemLinksStatuses = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemLinksSelf = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemLinksReviewComments = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemLinksReviewComment = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemLinksIssue = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemLinksHtml = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemLinksCommits = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemLinksComments = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItemLinks = { - comments: ReposListPullRequestsAssociatedWithCommitResponseItemLinksComments; - commits: ReposListPullRequestsAssociatedWithCommitResponseItemLinksCommits; - html: ReposListPullRequestsAssociatedWithCommitResponseItemLinksHtml; - issue: ReposListPullRequestsAssociatedWithCommitResponseItemLinksIssue; - review_comment: ReposListPullRequestsAssociatedWithCommitResponseItemLinksReviewComment; - review_comments: ReposListPullRequestsAssociatedWithCommitResponseItemLinksReviewComments; - self: ReposListPullRequestsAssociatedWithCommitResponseItemLinksSelf; - statuses: ReposListPullRequestsAssociatedWithCommitResponseItemLinksStatuses; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseItem = { - _links: ReposListPullRequestsAssociatedWithCommitResponseItemLinks; - active_lock_reason: string; - assignee: ReposListPullRequestsAssociatedWithCommitResponseItemAssignee; - assignees: Array; - author_association: string; - base: ReposListPullRequestsAssociatedWithCommitResponseItemBase; - body: string; - closed_at: string; - comments_url: string; - commits_url: string; - created_at: string; - diff_url: string; - draft: boolean; - head: ReposListPullRequestsAssociatedWithCommitResponseItemHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - merge_commit_sha: string; - merged_at: string; - milestone: ReposListPullRequestsAssociatedWithCommitResponseItemMilestone; - node_id: string; - number: number; - patch_url: string; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: ReposListPullRequestsAssociatedWithCommitResponseItemUser; -}; -declare type ReposListPublicResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPublicResponseItem = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposListPublicResponseItemOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ReposListProtectedBranchUserRestrictionsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListProtectedBranchTeamRestrictionsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposListPagesBuildsResponseItemPusher = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListPagesBuildsResponseItemError = { - message: null; -}; -declare type ReposListPagesBuildsResponseItem = { - commit: string; - created_at: string; - duration: number; - error: ReposListPagesBuildsResponseItemError; - pusher: ReposListPagesBuildsResponseItemPusher; - status: string; - updated_at: string; - url: string; -}; -declare type ReposListLanguagesResponse = { - C: number; - Python: number; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposListInvitationsForAuthenticatedUserResponseItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseItemInvitee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseItem = { - created_at: string; - html_url: string; - id: number; - invitee: ReposListInvitationsForAuthenticatedUserResponseItemInvitee; - inviter: ReposListInvitationsForAuthenticatedUserResponseItemInviter; - permissions: string; - repository: ReposListInvitationsForAuthenticatedUserResponseItemRepository; - url: string; -}; -declare type ReposListInvitationsResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListInvitationsResponseItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposListInvitationsResponseItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ReposListInvitationsResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListInvitationsResponseItemInvitee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListInvitationsResponseItem = { - created_at: string; - html_url: string; - id: number; - invitee: ReposListInvitationsResponseItemInvitee; - inviter: ReposListInvitationsResponseItemInviter; - permissions: string; - repository: ReposListInvitationsResponseItemRepository; - url: string; -}; -declare type ReposListHooksResponseItemLastResponse = { - code: null; - message: null; - status: string; -}; -declare type ReposListHooksResponseItemConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposListHooksResponseItem = { - active: boolean; - config: ReposListHooksResponseItemConfig; - created_at: string; - events: Array; - id: number; - last_response: ReposListHooksResponseItemLastResponse; - name: string; - ping_url: string; - test_url: string; - type: string; - updated_at: string; - url: string; -}; -declare type ReposListForksResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposListForksResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListForksResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type ReposListForksResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: ReposListForksResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposListForksResponseItemOwner; - permissions: ReposListForksResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposListForOrgResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposListForOrgResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListForOrgResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type ReposListForOrgResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: ReposListForOrgResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposListForOrgResponseItemOwner; - permissions: ReposListForOrgResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposListDownloadsResponseItem = { - content_type: string; - description: string; - download_count: number; - html_url: string; - id: number; - name: string; - size: number; - url: string; -}; -declare type ReposListDeploymentsResponseItemPayload = { - deploy: string; -}; -declare type ReposListDeploymentsResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListDeploymentsResponseItem = { - created_at: string; - creator: ReposListDeploymentsResponseItemCreator; - description: string; - environment: string; - id: number; - node_id: string; - original_environment: string; - payload: ReposListDeploymentsResponseItemPayload; - production_environment: boolean; - ref: string; - repository_url: string; - sha: string; - statuses_url: string; - task: string; - transient_environment: boolean; - updated_at: string; - url: string; -}; -declare type ReposListDeploymentStatusesResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListDeploymentStatusesResponseItem = { - created_at: string; - creator: ReposListDeploymentStatusesResponseItemCreator; - deployment_url: string; - description: string; - environment: string; - environment_url: string; - id: number; - log_url: string; - node_id: string; - repository_url: string; - state: string; - target_url: string; - updated_at: string; - url: string; -}; -declare type ReposListDeployKeysResponseItem = { - created_at: string; - id: number; - key: string; - read_only: boolean; - title: string; - url: string; - verified: boolean; -}; -declare type ReposListContributorsResponseItem = { - avatar_url: string; - contributions: number; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListCommitsResponseItemParentsItem = { - sha: string; - url: string; -}; -declare type ReposListCommitsResponseItemCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListCommitsResponseItemCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposListCommitsResponseItemCommitTree = { - sha: string; - url: string; -}; -declare type ReposListCommitsResponseItemCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposListCommitsResponseItemCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposListCommitsResponseItemCommit = { - author: ReposListCommitsResponseItemCommitAuthor; - comment_count: number; - committer: ReposListCommitsResponseItemCommitCommitter; - message: string; - tree: ReposListCommitsResponseItemCommitTree; - url: string; - verification: ReposListCommitsResponseItemCommitVerification; -}; -declare type ReposListCommitsResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListCommitsResponseItem = { - author: ReposListCommitsResponseItemAuthor; - comments_url: string; - commit: ReposListCommitsResponseItemCommit; - committer: ReposListCommitsResponseItemCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; -}; -declare type ReposListCommitCommentsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListCommitCommentsResponseItem = { - body: string; - commit_id: string; - created_at: string; - html_url: string; - id: number; - line: number; - node_id: string; - path: string; - position: number; - updated_at: string; - url: string; - user: ReposListCommitCommentsResponseItemUser; -}; -declare type ReposListCommentsForCommitResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListCommentsForCommitResponseItem = { - body: string; - commit_id: string; - created_at: string; - html_url: string; - id: number; - line: number; - node_id: string; - path: string; - position: number; - updated_at: string; - url: string; - user: ReposListCommentsForCommitResponseItemUser; -}; -declare type ReposListCollaboratorsResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposListCollaboratorsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - permissions: ReposListCollaboratorsResponseItemPermissions; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListBranchesForHeadCommitResponseItemCommit = { - sha: string; - url: string; -}; -declare type ReposListBranchesForHeadCommitResponseItem = { - commit: ReposListBranchesForHeadCommitResponseItemCommit; - name: string; - protected: string; -}; -declare type ReposListBranchesResponseItemProtectionRequiredStatusChecks = { - contexts: Array; - enforcement_level: string; -}; -declare type ReposListBranchesResponseItemProtection = { - enabled: boolean; - required_status_checks: ReposListBranchesResponseItemProtectionRequiredStatusChecks; -}; -declare type ReposListBranchesResponseItemCommit = { - sha: string; - url: string; -}; -declare type ReposListBranchesResponseItem = { - commit: ReposListBranchesResponseItemCommit; - name: string; - protected: boolean; - protection: ReposListBranchesResponseItemProtection; - protection_url: string; -}; -declare type ReposListAssetsForReleaseResponseItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposListAssetsForReleaseResponseItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposListAssetsForReleaseResponseItemUploader; - url: string; -}; -declare type ReposListAppsWithAccessToProtectedBranchResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ReposListAppsWithAccessToProtectedBranchResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ReposListAppsWithAccessToProtectedBranchResponseItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposListAppsWithAccessToProtectedBranchResponseItemOwner; - permissions: ReposListAppsWithAccessToProtectedBranchResponseItemPermissions; - slug: string; - updated_at: string; -}; -declare type ReposGetViewsResponseViewsItem = { - count: number; - timestamp: string; - uniques: number; -}; -declare type ReposGetViewsResponse = { - count: number; - uniques: number; - views: Array; -}; -declare type ReposGetUsersWithAccessToProtectedBranchResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetTopReferrersResponseItem = { - count: number; - referrer: string; - uniques: number; -}; -declare type ReposGetTopPathsResponseItem = { - count: number; - path: string; - title: string; - uniques: number; -}; -declare type ReposGetTeamsWithAccessToProtectedBranchResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposGetReleaseByTagResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetReleaseByTagResponseAssetsItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetReleaseByTagResponseAssetsItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposGetReleaseByTagResponseAssetsItemUploader; - url: string; -}; -declare type ReposGetReleaseByTagResponse = { - assets: Array; - assets_url: string; - author: ReposGetReleaseByTagResponseAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; -}; -declare type ReposGetReleaseAssetResponseUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetReleaseAssetResponse = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposGetReleaseAssetResponseUploader; - url: string; -}; -declare type ReposGetReleaseResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetReleaseResponseAssetsItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetReleaseResponseAssetsItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposGetReleaseResponseAssetsItemUploader; - url: string; -}; -declare type ReposGetReleaseResponse = { - assets: Array; - assets_url: string; - author: ReposGetReleaseResponseAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; -}; -declare type ReposGetReadmeResponseLinks = { - git: string; - html: string; - self: string; -}; -declare type ReposGetReadmeResponse = { - _links: ReposGetReadmeResponseLinks; - content: string; - download_url: string; - encoding: string; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseAppsItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseAppsItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseAppsItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposGetProtectedBranchRestrictionsResponseAppsItemOwner; - permissions: ReposGetProtectedBranchRestrictionsResponseAppsItemPermissions; - slug: string; - updated_at: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponse = { - apps: Array; - apps_url: string; - teams: Array; - teams_url: string; - url: string; - users: Array; - users_url: string; -}; -declare type ReposGetProtectedBranchRequiredStatusChecksResponse = { - contexts: Array; - contexts_url: string; - strict: boolean; - url: string; -}; -declare type ReposGetProtectedBranchRequiredSignaturesResponse = { - enabled: boolean; - url: string; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions = { - teams: Array; - teams_url: string; - url: string; - users: Array; - users_url: string; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponse = { - dismiss_stale_reviews: boolean; - dismissal_restrictions: ReposGetProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - url: string; -}; -declare type ReposGetProtectedBranchAdminEnforcementResponse = { - enabled: boolean; - url: string; -}; -declare type ReposGetParticipationStatsResponse = { - all: Array; - owner: Array; -}; -declare type ReposGetPagesBuildResponsePusher = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetPagesBuildResponseError = { - message: null; -}; -declare type ReposGetPagesBuildResponse = { - commit: string; - created_at: string; - duration: number; - error: ReposGetPagesBuildResponseError; - pusher: ReposGetPagesBuildResponsePusher; - status: string; - updated_at: string; - url: string; -}; -declare type ReposGetPagesResponseSource = { - branch: string; - directory: string; -}; -declare type ReposGetPagesResponse = { - cname: string; - custom_404: boolean; - html_url: string; - source: ReposGetPagesResponseSource; - status: string; - url: string; -}; -declare type ReposGetLatestReleaseResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetLatestReleaseResponseAssetsItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetLatestReleaseResponseAssetsItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposGetLatestReleaseResponseAssetsItemUploader; - url: string; -}; -declare type ReposGetLatestReleaseResponse = { - assets: Array; - assets_url: string; - author: ReposGetLatestReleaseResponseAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; -}; -declare type ReposGetLatestPagesBuildResponsePusher = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetLatestPagesBuildResponseError = { - message: null; -}; -declare type ReposGetLatestPagesBuildResponse = { - commit: string; - created_at: string; - duration: number; - error: ReposGetLatestPagesBuildResponseError; - pusher: ReposGetLatestPagesBuildResponsePusher; - status: string; - updated_at: string; - url: string; -}; -declare type ReposGetHookResponseLastResponse = { - code: null; - message: null; - status: string; -}; -declare type ReposGetHookResponseConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposGetHookResponse = { - active: boolean; - config: ReposGetHookResponseConfig; - created_at: string; - events: Array; - id: number; - last_response: ReposGetHookResponseLastResponse; - name: string; - ping_url: string; - test_url: string; - type: string; - updated_at: string; - url: string; -}; -declare type ReposGetDownloadResponse = { - content_type: string; - description: string; - download_count: number; - html_url: string; - id: number; - name: string; - size: number; - url: string; -}; -declare type ReposGetDeploymentStatusResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetDeploymentStatusResponse = { - created_at: string; - creator: ReposGetDeploymentStatusResponseCreator; - deployment_url: string; - description: string; - environment: string; - environment_url: string; - id: number; - log_url: string; - node_id: string; - repository_url: string; - state: string; - target_url: string; - updated_at: string; - url: string; -}; -declare type ReposGetDeploymentResponsePayload = { - deploy: string; -}; -declare type ReposGetDeploymentResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetDeploymentResponse = { - created_at: string; - creator: ReposGetDeploymentResponseCreator; - description: string; - environment: string; - id: number; - node_id: string; - original_environment: string; - payload: ReposGetDeploymentResponsePayload; - production_environment: boolean; - ref: string; - repository_url: string; - sha: string; - statuses_url: string; - task: string; - transient_environment: boolean; - updated_at: string; - url: string; -}; -declare type ReposGetDeployKeyResponse = { - created_at: string; - id: number; - key: string; - read_only: boolean; - title: string; - url: string; - verified: boolean; -}; -declare type ReposGetContributorsStatsResponseItemWeeksItem = { - a: number; - c: number; - d: number; - w: string; -}; -declare type ReposGetContributorsStatsResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetContributorsStatsResponseItem = { - author: ReposGetContributorsStatsResponseItemAuthor; - total: number; - weeks: Array; -}; -declare type ReposGetContentsResponseItemLinks = { - git: string; - html: string; - self: string; -}; -declare type ReposGetContentsResponseItem = { - _links: ReposGetContentsResponseItemLinks; - download_url: string | null; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; -}; -declare type ReposGetContentsResponseLinks = { - git: string; - html: string; - self: string; -}; -declare type ReposGetContentsResponse = { - _links: ReposGetContentsResponseLinks; - content?: string; - download_url: string | null; - encoding?: string; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; - target?: string; - submodule_git_url?: string; -} | Array; -declare type ReposGetCommitCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetCommitCommentResponse = { - body: string; - commit_id: string; - created_at: string; - html_url: string; - id: number; - line: number; - node_id: string; - path: string; - position: number; - updated_at: string; - url: string; - user: ReposGetCommitCommentResponseUser; -}; -declare type ReposGetCommitActivityStatsResponseItem = { - days: Array; - total: number; - week: number; -}; -declare type ReposGetCommitResponseStats = { - additions: number; - deletions: number; - total: number; -}; -declare type ReposGetCommitResponseParentsItem = { - sha: string; - url: string; -}; -declare type ReposGetCommitResponseFilesItem = { - additions: number; - blob_url: string; - changes: number; - deletions: number; - filename: string; - patch: string; - raw_url: string; - status: string; -}; -declare type ReposGetCommitResponseCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetCommitResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposGetCommitResponseCommitTree = { - sha: string; - url: string; -}; -declare type ReposGetCommitResponseCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposGetCommitResponseCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposGetCommitResponseCommit = { - author: ReposGetCommitResponseCommitAuthor; - comment_count: number; - committer: ReposGetCommitResponseCommitCommitter; - message: string; - tree: ReposGetCommitResponseCommitTree; - url: string; - verification: ReposGetCommitResponseCommitVerification; -}; -declare type ReposGetCommitResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetCommitResponse = { - author: ReposGetCommitResponseAuthor; - comments_url: string; - commit: ReposGetCommitResponseCommit; - committer: ReposGetCommitResponseCommitter; - files: Array; - html_url: string; - node_id: string; - parents: Array; - sha: string; - stats: ReposGetCommitResponseStats; - url: string; -}; -declare type ReposGetCombinedStatusForRefResponseStatusesItem = { - avatar_url: string; - context: string; - created_at: string; - description: string; - id: number; - node_id: string; - state: string; - target_url: string; - updated_at: string; - url: string; -}; -declare type ReposGetCombinedStatusForRefResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetCombinedStatusForRefResponseRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposGetCombinedStatusForRefResponseRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ReposGetCombinedStatusForRefResponse = { - commit_url: string; - repository: ReposGetCombinedStatusForRefResponseRepository; - sha: string; - state: string; - statuses: Array; - total_count: number; - url: string; -}; -declare type ReposGetCollaboratorPermissionLevelResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetCollaboratorPermissionLevelResponse = { - permission: string; - user: ReposGetCollaboratorPermissionLevelResponseUser; -}; -declare type ReposGetClonesResponseClonesItem = { - count: number; - timestamp: string; - uniques: number; -}; -declare type ReposGetClonesResponse = { - clones: Array; - count: number; - uniques: number; -}; -declare type ReposGetBranchProtectionResponseRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetBranchProtectionResponseRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposGetBranchProtectionResponseRestrictionsAppsItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ReposGetBranchProtectionResponseRestrictionsAppsItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ReposGetBranchProtectionResponseRestrictionsAppsItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposGetBranchProtectionResponseRestrictionsAppsItemOwner; - permissions: ReposGetBranchProtectionResponseRestrictionsAppsItemPermissions; - slug: string; - updated_at: string; -}; -declare type ReposGetBranchProtectionResponseRestrictions = { - apps: Array; - apps_url: string; - teams: Array; - teams_url: string; - url: string; - users: Array; - users_url: string; -}; -declare type ReposGetBranchProtectionResponseRequiredStatusChecks = { - contexts: Array; - contexts_url: string; - strict: boolean; - url: string; -}; -declare type ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions = { - teams: Array; - teams_url: string; - url: string; - users: Array; - users_url: string; -}; -declare type ReposGetBranchProtectionResponseRequiredPullRequestReviews = { - dismiss_stale_reviews: boolean; - dismissal_restrictions: ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - url: string; -}; -declare type ReposGetBranchProtectionResponseRequiredLinearHistory = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseEnforceAdmins = { - enabled: boolean; - url: string; -}; -declare type ReposGetBranchProtectionResponseAllowForcePushes = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseAllowDeletions = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponse = { - allow_deletions: ReposGetBranchProtectionResponseAllowDeletions; - allow_force_pushes: ReposGetBranchProtectionResponseAllowForcePushes; - enforce_admins: ReposGetBranchProtectionResponseEnforceAdmins; - required_linear_history: ReposGetBranchProtectionResponseRequiredLinearHistory; - required_pull_request_reviews: ReposGetBranchProtectionResponseRequiredPullRequestReviews; - required_status_checks: ReposGetBranchProtectionResponseRequiredStatusChecks; - restrictions: ReposGetBranchProtectionResponseRestrictions; - url: string; -}; -declare type ReposGetBranchResponseProtectionRequiredStatusChecks = { - contexts: Array; - enforcement_level: string; -}; -declare type ReposGetBranchResponseProtection = { - enabled: boolean; - required_status_checks: ReposGetBranchResponseProtectionRequiredStatusChecks; -}; -declare type ReposGetBranchResponseCommitParentsItem = { - sha: string; - url: string; -}; -declare type ReposGetBranchResponseCommitCommitter = { - avatar_url: string; - gravatar_id: string; - id: number; - login: string; - url: string; -}; -declare type ReposGetBranchResponseCommitCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposGetBranchResponseCommitCommitTree = { - sha: string; - url: string; -}; -declare type ReposGetBranchResponseCommitCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposGetBranchResponseCommitCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposGetBranchResponseCommitCommit = { - author: ReposGetBranchResponseCommitCommitAuthor; - committer: ReposGetBranchResponseCommitCommitCommitter; - message: string; - tree: ReposGetBranchResponseCommitCommitTree; - url: string; - verification: ReposGetBranchResponseCommitCommitVerification; -}; -declare type ReposGetBranchResponseCommitAuthor = { - avatar_url: string; - gravatar_id: string; - id: number; - login: string; - url: string; -}; -declare type ReposGetBranchResponseCommit = { - author: ReposGetBranchResponseCommitAuthor; - commit: ReposGetBranchResponseCommitCommit; - committer: ReposGetBranchResponseCommitCommitter; - node_id: string; - parents: Array; - sha: string; - url: string; -}; -declare type ReposGetBranchResponseLinks = { - html: string; - self: string; -}; -declare type ReposGetBranchResponse = { - _links: ReposGetBranchResponseLinks; - commit: ReposGetBranchResponseCommit; - name: string; - protected: boolean; - protection: ReposGetBranchResponseProtection; - protection_url: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposGetAppsWithAccessToProtectedBranchResponseItemOwner; - permissions: ReposGetAppsWithAccessToProtectedBranchResponseItemPermissions; - slug: string; - updated_at: string; -}; -declare type ReposGetResponseSourcePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposGetResponseSourceOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetResponseSource = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposGetResponseSourceOwner; - permissions: ReposGetResponseSourcePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposGetResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposGetResponseParentPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposGetResponseParentOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetResponseParent = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposGetResponseParentOwner; - permissions: ReposGetResponseParentPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposGetResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetResponseOrganization = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposGetResponseLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type ReposGetResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: ReposGetResponseLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - organization: ReposGetResponseOrganization; - owner: ReposGetResponseOwner; - parent: ReposGetResponseParent; - permissions: ReposGetResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - source: ReposGetResponseSource; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposEnablePagesSiteResponseSource = { - branch: string; - directory: string; -}; -declare type ReposEnablePagesSiteResponse = { - cname: string; - custom_404: boolean; - html_url: string; - source: ReposEnablePagesSiteResponseSource; - status: string; - url: string; -}; -declare type ReposDeleteFileResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposDeleteFileResponseCommitTree = { - sha: string; - url: string; -}; -declare type ReposDeleteFileResponseCommitParentsItem = { - html_url: string; - sha: string; - url: string; -}; -declare type ReposDeleteFileResponseCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposDeleteFileResponseCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposDeleteFileResponseCommit = { - author: ReposDeleteFileResponseCommitAuthor; - committer: ReposDeleteFileResponseCommitCommitter; - html_url: string; - message: string; - node_id: string; - parents: Array; - sha: string; - tree: ReposDeleteFileResponseCommitTree; - url: string; - verification: ReposDeleteFileResponseCommitVerification; -}; -declare type ReposDeleteFileResponse = { - commit: ReposDeleteFileResponseCommit; - content: null; -}; -declare type ReposDeleteResponse = { - documentation_url: string; - message: string; -}; -declare type ReposCreateUsingTemplateResponseTemplateRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposCreateUsingTemplateResponseTemplateRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCreateUsingTemplateResponseTemplateRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposCreateUsingTemplateResponseTemplateRepositoryOwner; - permissions: ReposCreateUsingTemplateResponseTemplateRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposCreateUsingTemplateResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposCreateUsingTemplateResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCreateUsingTemplateResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposCreateUsingTemplateResponseOwner; - permissions: ReposCreateUsingTemplateResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: ReposCreateUsingTemplateResponseTemplateRepository; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposCreateStatusResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCreateStatusResponse = { - avatar_url: string; - context: string; - created_at: string; - creator: ReposCreateStatusResponseCreator; - description: string; - id: number; - node_id: string; - state: string; - target_url: string; - updated_at: string; - url: string; -}; -declare type ReposCreateReleaseResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCreateReleaseResponse = { - assets: Array; - assets_url: string; - author: ReposCreateReleaseResponseAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; -}; -declare type ReposCreateOrUpdateFileResponseContentLinks = { - git: string; - html: string; - self: string; -}; -declare type ReposCreateOrUpdateFileResponseContent = { - _links: ReposCreateOrUpdateFileResponseContentLinks; - download_url: string; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; -}; -declare type ReposCreateOrUpdateFileResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposCreateOrUpdateFileResponseCommitTree = { - sha: string; - url: string; -}; -declare type ReposCreateOrUpdateFileResponseCommitParentsItem = { - html_url: string; - sha: string; - url: string; -}; -declare type ReposCreateOrUpdateFileResponseCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposCreateOrUpdateFileResponseCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposCreateOrUpdateFileResponseCommit = { - author: ReposCreateOrUpdateFileResponseCommitAuthor; - committer: ReposCreateOrUpdateFileResponseCommitCommitter; - html_url: string; - message: string; - node_id: string; - parents: Array; - sha: string; - tree: ReposCreateOrUpdateFileResponseCommitTree; - url: string; - verification: ReposCreateOrUpdateFileResponseCommitVerification; -}; -declare type ReposCreateOrUpdateFileResponse = { - commit: ReposCreateOrUpdateFileResponseCommit; - content: ReposCreateOrUpdateFileResponseContent; -}; -declare type ReposCreateInOrgResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposCreateInOrgResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCreateInOrgResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposCreateInOrgResponseOwner; - permissions: ReposCreateInOrgResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposCreateHookResponseLastResponse = { - code: null; - message: null; - status: string; -}; -declare type ReposCreateHookResponseConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposCreateHookResponse = { - active: boolean; - config: ReposCreateHookResponseConfig; - created_at: string; - events: Array; - id: number; - last_response: ReposCreateHookResponseLastResponse; - name: string; - ping_url: string; - test_url: string; - type: string; - updated_at: string; - url: string; -}; -declare type ReposCreateForkResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposCreateForkResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCreateForkResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposCreateForkResponseOwner; - permissions: ReposCreateForkResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposCreateForAuthenticatedUserResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ReposCreateForAuthenticatedUserResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCreateForAuthenticatedUserResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposCreateForAuthenticatedUserResponseOwner; - permissions: ReposCreateForAuthenticatedUserResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ReposCreateFileResponseContentLinks = { - git: string; - html: string; - self: string; -}; -declare type ReposCreateFileResponseContent = { - _links: ReposCreateFileResponseContentLinks; - download_url: string; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; -}; -declare type ReposCreateFileResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposCreateFileResponseCommitTree = { - sha: string; - url: string; -}; -declare type ReposCreateFileResponseCommitParentsItem = { - html_url: string; - sha: string; - url: string; -}; -declare type ReposCreateFileResponseCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposCreateFileResponseCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposCreateFileResponseCommit = { - author: ReposCreateFileResponseCommitAuthor; - committer: ReposCreateFileResponseCommitCommitter; - html_url: string; - message: string; - node_id: string; - parents: Array; - sha: string; - tree: ReposCreateFileResponseCommitTree; - url: string; - verification: ReposCreateFileResponseCommitVerification; -}; -declare type ReposCreateFileResponse = { - commit: ReposCreateFileResponseCommit; - content: ReposCreateFileResponseContent; -}; -declare type ReposCreateDeploymentStatusResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCreateDeploymentStatusResponse = { - created_at: string; - creator: ReposCreateDeploymentStatusResponseCreator; - deployment_url: string; - description: string; - environment: string; - environment_url: string; - id: number; - log_url: string; - node_id: string; - repository_url: string; - state: string; - target_url: string; - updated_at: string; - url: string; -}; -declare type ReposCreateDeploymentResponsePayload = { - deploy: string; -}; -declare type ReposCreateDeploymentResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCreateDeploymentResponse = { - created_at: string; - creator: ReposCreateDeploymentResponseCreator; - description: string; - environment: string; - id: number; - node_id: string; - original_environment: string; - payload: ReposCreateDeploymentResponsePayload; - production_environment: boolean; - ref: string; - repository_url: string; - sha: string; - statuses_url: string; - task: string; - transient_environment: boolean; - updated_at: string; - url: string; -}; -declare type ReposCreateCommitCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCreateCommitCommentResponse = { - body: string; - commit_id: string; - created_at: string; - html_url: string; - id: number; - line: number; - node_id: string; - path: string; - position: number; - updated_at: string; - url: string; - user: ReposCreateCommitCommentResponseUser; -}; -declare type ReposCompareCommitsResponseMergeBaseCommitParentsItem = { - sha: string; - url: string; -}; -declare type ReposCompareCommitsResponseMergeBaseCommitCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCompareCommitsResponseMergeBaseCommitCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposCompareCommitsResponseMergeBaseCommitCommitTree = { - sha: string; - url: string; -}; -declare type ReposCompareCommitsResponseMergeBaseCommitCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposCompareCommitsResponseMergeBaseCommitCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposCompareCommitsResponseMergeBaseCommitCommit = { - author: ReposCompareCommitsResponseMergeBaseCommitCommitAuthor; - comment_count: number; - committer: ReposCompareCommitsResponseMergeBaseCommitCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseMergeBaseCommitCommitTree; - url: string; - verification: ReposCompareCommitsResponseMergeBaseCommitCommitVerification; -}; -declare type ReposCompareCommitsResponseMergeBaseCommitAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCompareCommitsResponseMergeBaseCommit = { - author: ReposCompareCommitsResponseMergeBaseCommitAuthor; - comments_url: string; - commit: ReposCompareCommitsResponseMergeBaseCommitCommit; - committer: ReposCompareCommitsResponseMergeBaseCommitCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; -}; -declare type ReposCompareCommitsResponseFilesItem = { - additions: number; - blob_url: string; - changes: number; - contents_url: string; - deletions: number; - filename: string; - patch: string; - raw_url: string; - sha: string; - status: string; -}; -declare type ReposCompareCommitsResponseCommitsItemParentsItem = { - sha: string; - url: string; -}; -declare type ReposCompareCommitsResponseCommitsItemCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCompareCommitsResponseCommitsItemCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposCompareCommitsResponseCommitsItemCommitTree = { - sha: string; - url: string; -}; -declare type ReposCompareCommitsResponseCommitsItemCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposCompareCommitsResponseCommitsItemCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposCompareCommitsResponseCommitsItemCommit = { - author: ReposCompareCommitsResponseCommitsItemCommitAuthor; - comment_count: number; - committer: ReposCompareCommitsResponseCommitsItemCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseCommitsItemCommitTree; - url: string; - verification: ReposCompareCommitsResponseCommitsItemCommitVerification; -}; -declare type ReposCompareCommitsResponseCommitsItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCompareCommitsResponseCommitsItem = { - author: ReposCompareCommitsResponseCommitsItemAuthor; - comments_url: string; - commit: ReposCompareCommitsResponseCommitsItemCommit; - committer: ReposCompareCommitsResponseCommitsItemCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; -}; -declare type ReposCompareCommitsResponseBaseCommitParentsItem = { - sha: string; - url: string; -}; -declare type ReposCompareCommitsResponseBaseCommitCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCompareCommitsResponseBaseCommitCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type ReposCompareCommitsResponseBaseCommitCommitTree = { - sha: string; - url: string; -}; -declare type ReposCompareCommitsResponseBaseCommitCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type ReposCompareCommitsResponseBaseCommitCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type ReposCompareCommitsResponseBaseCommitCommit = { - author: ReposCompareCommitsResponseBaseCommitCommitAuthor; - comment_count: number; - committer: ReposCompareCommitsResponseBaseCommitCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseBaseCommitCommitTree; - url: string; - verification: ReposCompareCommitsResponseBaseCommitCommitVerification; -}; -declare type ReposCompareCommitsResponseBaseCommitAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposCompareCommitsResponseBaseCommit = { - author: ReposCompareCommitsResponseBaseCommitAuthor; - comments_url: string; - commit: ReposCompareCommitsResponseBaseCommitCommit; - committer: ReposCompareCommitsResponseBaseCommitCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; -}; -declare type ReposCompareCommitsResponse = { - ahead_by: number; - base_commit: ReposCompareCommitsResponseBaseCommit; - behind_by: number; - commits: Array; - diff_url: string; - files: Array; - html_url: string; - merge_base_commit: ReposCompareCommitsResponseMergeBaseCommit; - patch_url: string; - permalink_url: string; - status: string; - total_commits: number; - url: string; -}; -declare type ReposAddProtectedBranchUserRestrictionsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposAddProtectedBranchTeamRestrictionsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type ReposAddProtectedBranchRequiredSignaturesResponse = { - enabled: boolean; - url: string; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposAddProtectedBranchAppRestrictionsResponseItemOwner; - permissions: ReposAddProtectedBranchAppRestrictionsResponseItemPermissions; - slug: string; - updated_at: string; -}; -declare type ReposAddProtectedBranchAdminEnforcementResponse = { - enabled: boolean; - url: string; -}; -declare type ReposAddDeployKeyResponse = { - created_at: string; - id: number; - key: string; - read_only: boolean; - title: string; - url: string; - verified: boolean; -}; -declare type ReposAddCollaboratorResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposAddCollaboratorResponseRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposAddCollaboratorResponseRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ReposAddCollaboratorResponseInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposAddCollaboratorResponseInvitee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReposAddCollaboratorResponse = { - created_at: string; - html_url: string; - id: number; - invitee: ReposAddCollaboratorResponseInvitee; - inviter: ReposAddCollaboratorResponseInviter; - permissions: string; - repository: ReposAddCollaboratorResponseRepository; - url: string; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionLegacyResponseItemUser; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionInOrgResponseItemUser; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentLegacyResponseItemUser; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentInOrgResponseItemUser; -}; -declare type ReactionsListForTeamDiscussionCommentResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsListForTeamDiscussionCommentResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentResponseItemUser; -}; -declare type ReactionsListForTeamDiscussionResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsListForTeamDiscussionResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionResponseItemUser; -}; -declare type ReactionsListForPullRequestReviewCommentResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsListForPullRequestReviewCommentResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForPullRequestReviewCommentResponseItemUser; -}; -declare type ReactionsListForIssueCommentResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsListForIssueCommentResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForIssueCommentResponseItemUser; -}; -declare type ReactionsListForIssueResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsListForIssueResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForIssueResponseItemUser; -}; -declare type ReactionsListForCommitCommentResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsListForCommitCommentResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForCommitCommentResponseItemUser; -}; -declare type ReactionsCreateForTeamDiscussionLegacyResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsCreateForTeamDiscussionLegacyResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionLegacyResponseUser; -}; -declare type ReactionsCreateForTeamDiscussionInOrgResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsCreateForTeamDiscussionInOrgResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionInOrgResponseUser; -}; -declare type ReactionsCreateForTeamDiscussionCommentLegacyResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsCreateForTeamDiscussionCommentLegacyResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentLegacyResponseUser; -}; -declare type ReactionsCreateForTeamDiscussionCommentInOrgResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsCreateForTeamDiscussionCommentInOrgResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentInOrgResponseUser; -}; -declare type ReactionsCreateForTeamDiscussionCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsCreateForTeamDiscussionCommentResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentResponseUser; -}; -declare type ReactionsCreateForTeamDiscussionResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsCreateForTeamDiscussionResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionResponseUser; -}; -declare type ReactionsCreateForPullRequestReviewCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsCreateForPullRequestReviewCommentResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForPullRequestReviewCommentResponseUser; -}; -declare type ReactionsCreateForIssueCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsCreateForIssueCommentResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForIssueCommentResponseUser; -}; -declare type ReactionsCreateForIssueResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsCreateForIssueResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForIssueResponseUser; -}; -declare type ReactionsCreateForCommitCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ReactionsCreateForCommitCommentResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForCommitCommentResponseUser; -}; -declare type RateLimitGetResponseResourcesSearch = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseResourcesIntegrationManifest = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseResourcesGraphql = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseResourcesCore = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseResources = { - core: RateLimitGetResponseResourcesCore; - graphql: RateLimitGetResponseResourcesGraphql; - integration_manifest: RateLimitGetResponseResourcesIntegrationManifest; - search: RateLimitGetResponseResourcesSearch; -}; -declare type RateLimitGetResponseRate = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponse = { - rate: RateLimitGetResponseRate; - resources: RateLimitGetResponseResources; -}; -declare type PullsUpdateReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateReviewResponseLinksPullRequest = { - href: string; -}; -declare type PullsUpdateReviewResponseLinksHtml = { - href: string; -}; -declare type PullsUpdateReviewResponseLinks = { - html: PullsUpdateReviewResponseLinksHtml; - pull_request: PullsUpdateReviewResponseLinksPullRequest; -}; -declare type PullsUpdateReviewResponse = { - _links: PullsUpdateReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - user: PullsUpdateReviewResponseUser; -}; -declare type PullsUpdateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateCommentResponseLinksSelf = { - href: string; -}; -declare type PullsUpdateCommentResponseLinksPullRequest = { - href: string; -}; -declare type PullsUpdateCommentResponseLinksHtml = { - href: string; -}; -declare type PullsUpdateCommentResponseLinks = { - html: PullsUpdateCommentResponseLinksHtml; - pull_request: PullsUpdateCommentResponseLinksPullRequest; - self: PullsUpdateCommentResponseLinksSelf; -}; -declare type PullsUpdateCommentResponse = { - _links: PullsUpdateCommentResponseLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsUpdateCommentResponseUser; -}; -declare type PullsUpdateBranchResponse = { - message: string; - url: string; -}; -declare type PullsUpdateResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateResponseRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type PullsUpdateResponseRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsUpdateResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type PullsUpdateResponseMergedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type PullsUpdateResponseHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateResponseHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsUpdateResponseHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateResponseHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsUpdateResponseHeadRepoOwner; - permissions: PullsUpdateResponseHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsUpdateResponseHead = { - label: string; - ref: string; - repo: PullsUpdateResponseHeadRepo; - sha: string; - user: PullsUpdateResponseHeadUser; -}; -declare type PullsUpdateResponseBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateResponseBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsUpdateResponseBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateResponseBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsUpdateResponseBaseRepoOwner; - permissions: PullsUpdateResponseBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsUpdateResponseBase = { - label: string; - ref: string; - repo: PullsUpdateResponseBaseRepo; - sha: string; - user: PullsUpdateResponseBaseUser; -}; -declare type PullsUpdateResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsUpdateResponseLinksStatuses = { - href: string; -}; -declare type PullsUpdateResponseLinksSelf = { - href: string; -}; -declare type PullsUpdateResponseLinksReviewComments = { - href: string; -}; -declare type PullsUpdateResponseLinksReviewComment = { - href: string; -}; -declare type PullsUpdateResponseLinksIssue = { - href: string; -}; -declare type PullsUpdateResponseLinksHtml = { - href: string; -}; -declare type PullsUpdateResponseLinksCommits = { - href: string; -}; -declare type PullsUpdateResponseLinksComments = { - href: string; -}; -declare type PullsUpdateResponseLinks = { - comments: PullsUpdateResponseLinksComments; - commits: PullsUpdateResponseLinksCommits; - html: PullsUpdateResponseLinksHtml; - issue: PullsUpdateResponseLinksIssue; - review_comment: PullsUpdateResponseLinksReviewComment; - review_comments: PullsUpdateResponseLinksReviewComments; - self: PullsUpdateResponseLinksSelf; - statuses: PullsUpdateResponseLinksStatuses; -}; -declare type PullsUpdateResponse = { - _links: PullsUpdateResponseLinks; - active_lock_reason: string; - additions: number; - assignee: PullsUpdateResponseAssignee; - assignees: Array; - author_association: string; - base: PullsUpdateResponseBase; - body: string; - changed_files: number; - closed_at: string; - comments: number; - comments_url: string; - commits: number; - commits_url: string; - created_at: string; - deletions: number; - diff_url: string; - draft: boolean; - head: PullsUpdateResponseHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - maintainer_can_modify: boolean; - merge_commit_sha: string; - mergeable: boolean; - mergeable_state: string; - merged: boolean; - merged_at: string; - merged_by: PullsUpdateResponseMergedBy; - milestone: PullsUpdateResponseMilestone; - node_id: string; - number: number; - patch_url: string; - rebaseable: boolean; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments: number; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsUpdateResponseUser; -}; -declare type PullsSubmitReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsSubmitReviewResponseLinksPullRequest = { - href: string; -}; -declare type PullsSubmitReviewResponseLinksHtml = { - href: string; -}; -declare type PullsSubmitReviewResponseLinks = { - html: PullsSubmitReviewResponseLinksHtml; - pull_request: PullsSubmitReviewResponseLinksPullRequest; -}; -declare type PullsSubmitReviewResponse = { - _links: PullsSubmitReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - submitted_at: string; - user: PullsSubmitReviewResponseUser; -}; -declare type PullsMergeResponse = { - merged: boolean; - message: string; - sha: string; -}; -declare type PullsListReviewsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListReviewsResponseItemLinksPullRequest = { - href: string; -}; -declare type PullsListReviewsResponseItemLinksHtml = { - href: string; -}; -declare type PullsListReviewsResponseItemLinks = { - html: PullsListReviewsResponseItemLinksHtml; - pull_request: PullsListReviewsResponseItemLinksPullRequest; -}; -declare type PullsListReviewsResponseItem = { - _links: PullsListReviewsResponseItemLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - submitted_at: string; - user: PullsListReviewsResponseItemUser; -}; -declare type PullsListReviewRequestsResponseUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListReviewRequestsResponseTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type PullsListReviewRequestsResponse = { - teams: Array; - users: Array; -}; -declare type PullsListFilesResponseItem = { - additions: number; - blob_url: string; - changes: number; - contents_url: string; - deletions: number; - filename: string; - patch: string; - raw_url: string; - sha: string; - status: string; -}; -declare type PullsListCommitsResponseItemParentsItem = { - sha: string; - url: string; -}; -declare type PullsListCommitsResponseItemCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListCommitsResponseItemCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type PullsListCommitsResponseItemCommitTree = { - sha: string; - url: string; -}; -declare type PullsListCommitsResponseItemCommitCommitter = { - date: string; - email: string; - name: string; -}; -declare type PullsListCommitsResponseItemCommitAuthor = { - date: string; - email: string; - name: string; -}; -declare type PullsListCommitsResponseItemCommit = { - author: PullsListCommitsResponseItemCommitAuthor; - comment_count: number; - committer: PullsListCommitsResponseItemCommitCommitter; - message: string; - tree: PullsListCommitsResponseItemCommitTree; - url: string; - verification: PullsListCommitsResponseItemCommitVerification; -}; -declare type PullsListCommitsResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListCommitsResponseItem = { - author: PullsListCommitsResponseItemAuthor; - comments_url: string; - commit: PullsListCommitsResponseItemCommit; - committer: PullsListCommitsResponseItemCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; -}; -declare type PullsListCommentsForRepoResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListCommentsForRepoResponseItemLinksSelf = { - href: string; -}; -declare type PullsListCommentsForRepoResponseItemLinksPullRequest = { - href: string; -}; -declare type PullsListCommentsForRepoResponseItemLinksHtml = { - href: string; -}; -declare type PullsListCommentsForRepoResponseItemLinks = { - html: PullsListCommentsForRepoResponseItemLinksHtml; - pull_request: PullsListCommentsForRepoResponseItemLinksPullRequest; - self: PullsListCommentsForRepoResponseItemLinksSelf; -}; -declare type PullsListCommentsForRepoResponseItem = { - _links: PullsListCommentsForRepoResponseItemLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsListCommentsForRepoResponseItemUser; -}; -declare type PullsListCommentsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListCommentsResponseItemLinksSelf = { - href: string; -}; -declare type PullsListCommentsResponseItemLinksPullRequest = { - href: string; -}; -declare type PullsListCommentsResponseItemLinksHtml = { - href: string; -}; -declare type PullsListCommentsResponseItemLinks = { - html: PullsListCommentsResponseItemLinksHtml; - pull_request: PullsListCommentsResponseItemLinksPullRequest; - self: PullsListCommentsResponseItemLinksSelf; -}; -declare type PullsListCommentsResponseItem = { - _links: PullsListCommentsResponseItemLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsListCommentsResponseItemUser; -}; -declare type PullsListResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListResponseItemRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type PullsListResponseItemRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsListResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type PullsListResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type PullsListResponseItemHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListResponseItemHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsListResponseItemHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListResponseItemHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsListResponseItemHeadRepoOwner; - permissions: PullsListResponseItemHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsListResponseItemHead = { - label: string; - ref: string; - repo: PullsListResponseItemHeadRepo; - sha: string; - user: PullsListResponseItemHeadUser; -}; -declare type PullsListResponseItemBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListResponseItemBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsListResponseItemBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListResponseItemBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsListResponseItemBaseRepoOwner; - permissions: PullsListResponseItemBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsListResponseItemBase = { - label: string; - ref: string; - repo: PullsListResponseItemBaseRepo; - sha: string; - user: PullsListResponseItemBaseUser; -}; -declare type PullsListResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsListResponseItemLinksStatuses = { - href: string; -}; -declare type PullsListResponseItemLinksSelf = { - href: string; -}; -declare type PullsListResponseItemLinksReviewComments = { - href: string; -}; -declare type PullsListResponseItemLinksReviewComment = { - href: string; -}; -declare type PullsListResponseItemLinksIssue = { - href: string; -}; -declare type PullsListResponseItemLinksHtml = { - href: string; -}; -declare type PullsListResponseItemLinksCommits = { - href: string; -}; -declare type PullsListResponseItemLinksComments = { - href: string; -}; -declare type PullsListResponseItemLinks = { - comments: PullsListResponseItemLinksComments; - commits: PullsListResponseItemLinksCommits; - html: PullsListResponseItemLinksHtml; - issue: PullsListResponseItemLinksIssue; - review_comment: PullsListResponseItemLinksReviewComment; - review_comments: PullsListResponseItemLinksReviewComments; - self: PullsListResponseItemLinksSelf; - statuses: PullsListResponseItemLinksStatuses; -}; -declare type PullsListResponseItem = { - _links: PullsListResponseItemLinks; - active_lock_reason: string; - assignee: PullsListResponseItemAssignee; - assignees: Array; - author_association: string; - base: PullsListResponseItemBase; - body: string; - closed_at: string; - comments_url: string; - commits_url: string; - created_at: string; - diff_url: string; - draft: boolean; - head: PullsListResponseItemHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - merge_commit_sha: string; - merged_at: string; - milestone: PullsListResponseItemMilestone; - node_id: string; - number: number; - patch_url: string; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsListResponseItemUser; -}; -declare type PullsGetReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetReviewResponseLinksPullRequest = { - href: string; -}; -declare type PullsGetReviewResponseLinksHtml = { - href: string; -}; -declare type PullsGetReviewResponseLinks = { - html: PullsGetReviewResponseLinksHtml; - pull_request: PullsGetReviewResponseLinksPullRequest; -}; -declare type PullsGetReviewResponse = { - _links: PullsGetReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - submitted_at: string; - user: PullsGetReviewResponseUser; -}; -declare type PullsGetCommentsForReviewResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetCommentsForReviewResponseItemLinksSelf = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseItemLinksPullRequest = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseItemLinksHtml = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseItemLinks = { - html: PullsGetCommentsForReviewResponseItemLinksHtml; - pull_request: PullsGetCommentsForReviewResponseItemLinksPullRequest; - self: PullsGetCommentsForReviewResponseItemLinksSelf; -}; -declare type PullsGetCommentsForReviewResponseItem = { - _links: PullsGetCommentsForReviewResponseItemLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - node_id: string; - original_commit_id: string; - original_position: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - updated_at: string; - url: string; - user: PullsGetCommentsForReviewResponseItemUser; -}; -declare type PullsGetCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetCommentResponseLinksSelf = { - href: string; -}; -declare type PullsGetCommentResponseLinksPullRequest = { - href: string; -}; -declare type PullsGetCommentResponseLinksHtml = { - href: string; -}; -declare type PullsGetCommentResponseLinks = { - html: PullsGetCommentResponseLinksHtml; - pull_request: PullsGetCommentResponseLinksPullRequest; - self: PullsGetCommentResponseLinksSelf; -}; -declare type PullsGetCommentResponse = { - _links: PullsGetCommentResponseLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsGetCommentResponseUser; -}; -declare type PullsGetResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetResponseRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type PullsGetResponseRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsGetResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type PullsGetResponseMergedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type PullsGetResponseHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetResponseHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsGetResponseHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetResponseHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsGetResponseHeadRepoOwner; - permissions: PullsGetResponseHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsGetResponseHead = { - label: string; - ref: string; - repo: PullsGetResponseHeadRepo; - sha: string; - user: PullsGetResponseHeadUser; -}; -declare type PullsGetResponseBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetResponseBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsGetResponseBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetResponseBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsGetResponseBaseRepoOwner; - permissions: PullsGetResponseBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsGetResponseBase = { - label: string; - ref: string; - repo: PullsGetResponseBaseRepo; - sha: string; - user: PullsGetResponseBaseUser; -}; -declare type PullsGetResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsGetResponseLinksStatuses = { - href: string; -}; -declare type PullsGetResponseLinksSelf = { - href: string; -}; -declare type PullsGetResponseLinksReviewComments = { - href: string; -}; -declare type PullsGetResponseLinksReviewComment = { - href: string; -}; -declare type PullsGetResponseLinksIssue = { - href: string; -}; -declare type PullsGetResponseLinksHtml = { - href: string; -}; -declare type PullsGetResponseLinksCommits = { - href: string; -}; -declare type PullsGetResponseLinksComments = { - href: string; -}; -declare type PullsGetResponseLinks = { - comments: PullsGetResponseLinksComments; - commits: PullsGetResponseLinksCommits; - html: PullsGetResponseLinksHtml; - issue: PullsGetResponseLinksIssue; - review_comment: PullsGetResponseLinksReviewComment; - review_comments: PullsGetResponseLinksReviewComments; - self: PullsGetResponseLinksSelf; - statuses: PullsGetResponseLinksStatuses; -}; -declare type PullsGetResponse = { - _links: PullsGetResponseLinks; - active_lock_reason: string; - additions: number; - assignee: PullsGetResponseAssignee; - assignees: Array; - author_association: string; - base: PullsGetResponseBase; - body: string; - changed_files: number; - closed_at: string; - comments: number; - comments_url: string; - commits: number; - commits_url: string; - created_at: string; - deletions: number; - diff_url: string; - draft: boolean; - head: PullsGetResponseHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - maintainer_can_modify: boolean; - merge_commit_sha: string; - mergeable: boolean; - mergeable_state: string; - merged: boolean; - merged_at: string; - merged_by: PullsGetResponseMergedBy; - milestone: PullsGetResponseMilestone; - node_id: string; - number: number; - patch_url: string; - rebaseable: boolean; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments: number; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsGetResponseUser; -}; -declare type PullsDismissReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsDismissReviewResponseLinksPullRequest = { - href: string; -}; -declare type PullsDismissReviewResponseLinksHtml = { - href: string; -}; -declare type PullsDismissReviewResponseLinks = { - html: PullsDismissReviewResponseLinksHtml; - pull_request: PullsDismissReviewResponseLinksPullRequest; -}; -declare type PullsDismissReviewResponse = { - _links: PullsDismissReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - user: PullsDismissReviewResponseUser; -}; -declare type PullsDeletePendingReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsDeletePendingReviewResponseLinksPullRequest = { - href: string; -}; -declare type PullsDeletePendingReviewResponseLinksHtml = { - href: string; -}; -declare type PullsDeletePendingReviewResponseLinks = { - html: PullsDeletePendingReviewResponseLinksHtml; - pull_request: PullsDeletePendingReviewResponseLinksPullRequest; -}; -declare type PullsDeletePendingReviewResponse = { - _links: PullsDeletePendingReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - user: PullsDeletePendingReviewResponseUser; -}; -declare type PullsCreateReviewRequestResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsCreateReviewRequestResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsCreateReviewRequestResponseHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateReviewRequestResponseHeadRepoOwner; - permissions: PullsCreateReviewRequestResponseHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsCreateReviewRequestResponseHead = { - label: string; - ref: string; - repo: PullsCreateReviewRequestResponseHeadRepo; - sha: string; - user: PullsCreateReviewRequestResponseHeadUser; -}; -declare type PullsCreateReviewRequestResponseBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsCreateReviewRequestResponseBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateReviewRequestResponseBaseRepoOwner; - permissions: PullsCreateReviewRequestResponseBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsCreateReviewRequestResponseBase = { - label: string; - ref: string; - repo: PullsCreateReviewRequestResponseBaseRepo; - sha: string; - user: PullsCreateReviewRequestResponseBaseUser; -}; -declare type PullsCreateReviewRequestResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewRequestResponseLinksStatuses = { - href: string; -}; -declare type PullsCreateReviewRequestResponseLinksSelf = { - href: string; -}; -declare type PullsCreateReviewRequestResponseLinksReviewComments = { - href: string; -}; -declare type PullsCreateReviewRequestResponseLinksReviewComment = { - href: string; -}; -declare type PullsCreateReviewRequestResponseLinksIssue = { - href: string; -}; -declare type PullsCreateReviewRequestResponseLinksHtml = { - href: string; -}; -declare type PullsCreateReviewRequestResponseLinksCommits = { - href: string; -}; -declare type PullsCreateReviewRequestResponseLinksComments = { - href: string; -}; -declare type PullsCreateReviewRequestResponseLinks = { - comments: PullsCreateReviewRequestResponseLinksComments; - commits: PullsCreateReviewRequestResponseLinksCommits; - html: PullsCreateReviewRequestResponseLinksHtml; - issue: PullsCreateReviewRequestResponseLinksIssue; - review_comment: PullsCreateReviewRequestResponseLinksReviewComment; - review_comments: PullsCreateReviewRequestResponseLinksReviewComments; - self: PullsCreateReviewRequestResponseLinksSelf; - statuses: PullsCreateReviewRequestResponseLinksStatuses; -}; -declare type PullsCreateReviewRequestResponse = { - _links: PullsCreateReviewRequestResponseLinks; - active_lock_reason: string; - assignee: PullsCreateReviewRequestResponseAssignee; - assignees: Array; - author_association: string; - base: PullsCreateReviewRequestResponseBase; - body: string; - closed_at: string; - comments_url: string; - commits_url: string; - created_at: string; - diff_url: string; - draft: boolean; - head: PullsCreateReviewRequestResponseHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - merge_commit_sha: string; - merged_at: string; - milestone: PullsCreateReviewRequestResponseMilestone; - node_id: string; - number: number; - patch_url: string; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsCreateReviewRequestResponseUser; -}; -declare type PullsCreateReviewCommentReplyResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewCommentReplyResponseLinksSelf = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseLinksPullRequest = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseLinksHtml = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseLinks = { - html: PullsCreateReviewCommentReplyResponseLinksHtml; - pull_request: PullsCreateReviewCommentReplyResponseLinksPullRequest; - self: PullsCreateReviewCommentReplyResponseLinksSelf; -}; -declare type PullsCreateReviewCommentReplyResponse = { - _links: PullsCreateReviewCommentReplyResponseLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - node_id: string; - original_commit_id: string; - original_position: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - updated_at: string; - url: string; - user: PullsCreateReviewCommentReplyResponseUser; -}; -declare type PullsCreateReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateReviewResponseLinksPullRequest = { - href: string; -}; -declare type PullsCreateReviewResponseLinksHtml = { - href: string; -}; -declare type PullsCreateReviewResponseLinks = { - html: PullsCreateReviewResponseLinksHtml; - pull_request: PullsCreateReviewResponseLinksPullRequest; -}; -declare type PullsCreateReviewResponse = { - _links: PullsCreateReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - user: PullsCreateReviewResponseUser; -}; -declare type PullsCreateFromIssueResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateFromIssueResponseRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type PullsCreateFromIssueResponseRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateFromIssueResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateFromIssueResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsCreateFromIssueResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type PullsCreateFromIssueResponseMergedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateFromIssueResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type PullsCreateFromIssueResponseHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateFromIssueResponseHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsCreateFromIssueResponseHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateFromIssueResponseHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateFromIssueResponseHeadRepoOwner; - permissions: PullsCreateFromIssueResponseHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsCreateFromIssueResponseHead = { - label: string; - ref: string; - repo: PullsCreateFromIssueResponseHeadRepo; - sha: string; - user: PullsCreateFromIssueResponseHeadUser; -}; -declare type PullsCreateFromIssueResponseBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateFromIssueResponseBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsCreateFromIssueResponseBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateFromIssueResponseBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateFromIssueResponseBaseRepoOwner; - permissions: PullsCreateFromIssueResponseBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsCreateFromIssueResponseBase = { - label: string; - ref: string; - repo: PullsCreateFromIssueResponseBaseRepo; - sha: string; - user: PullsCreateFromIssueResponseBaseUser; -}; -declare type PullsCreateFromIssueResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateFromIssueResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateFromIssueResponseLinksStatuses = { - href: string; -}; -declare type PullsCreateFromIssueResponseLinksSelf = { - href: string; -}; -declare type PullsCreateFromIssueResponseLinksReviewComments = { - href: string; -}; -declare type PullsCreateFromIssueResponseLinksReviewComment = { - href: string; -}; -declare type PullsCreateFromIssueResponseLinksIssue = { - href: string; -}; -declare type PullsCreateFromIssueResponseLinksHtml = { - href: string; -}; -declare type PullsCreateFromIssueResponseLinksCommits = { - href: string; -}; -declare type PullsCreateFromIssueResponseLinksComments = { - href: string; -}; -declare type PullsCreateFromIssueResponseLinks = { - comments: PullsCreateFromIssueResponseLinksComments; - commits: PullsCreateFromIssueResponseLinksCommits; - html: PullsCreateFromIssueResponseLinksHtml; - issue: PullsCreateFromIssueResponseLinksIssue; - review_comment: PullsCreateFromIssueResponseLinksReviewComment; - review_comments: PullsCreateFromIssueResponseLinksReviewComments; - self: PullsCreateFromIssueResponseLinksSelf; - statuses: PullsCreateFromIssueResponseLinksStatuses; -}; -declare type PullsCreateFromIssueResponse = { - _links: PullsCreateFromIssueResponseLinks; - active_lock_reason: string; - additions: number; - assignee: PullsCreateFromIssueResponseAssignee; - assignees: Array; - author_association: string; - base: PullsCreateFromIssueResponseBase; - body: string; - changed_files: number; - closed_at: string; - comments: number; - comments_url: string; - commits: number; - commits_url: string; - created_at: string; - deletions: number; - diff_url: string; - draft: boolean; - head: PullsCreateFromIssueResponseHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - maintainer_can_modify: boolean; - merge_commit_sha: string; - mergeable: boolean; - mergeable_state: string; - merged: boolean; - merged_at: string; - merged_by: PullsCreateFromIssueResponseMergedBy; - milestone: PullsCreateFromIssueResponseMilestone; - node_id: string; - number: number; - patch_url: string; - rebaseable: boolean; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments: number; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsCreateFromIssueResponseUser; -}; -declare type PullsCreateCommentReplyResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateCommentReplyResponseLinksSelf = { - href: string; -}; -declare type PullsCreateCommentReplyResponseLinksPullRequest = { - href: string; -}; -declare type PullsCreateCommentReplyResponseLinksHtml = { - href: string; -}; -declare type PullsCreateCommentReplyResponseLinks = { - html: PullsCreateCommentReplyResponseLinksHtml; - pull_request: PullsCreateCommentReplyResponseLinksPullRequest; - self: PullsCreateCommentReplyResponseLinksSelf; -}; -declare type PullsCreateCommentReplyResponse = { - _links: PullsCreateCommentReplyResponseLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsCreateCommentReplyResponseUser; -}; -declare type PullsCreateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateCommentResponseLinksSelf = { - href: string; -}; -declare type PullsCreateCommentResponseLinksPullRequest = { - href: string; -}; -declare type PullsCreateCommentResponseLinksHtml = { - href: string; -}; -declare type PullsCreateCommentResponseLinks = { - html: PullsCreateCommentResponseLinksHtml; - pull_request: PullsCreateCommentResponseLinksPullRequest; - self: PullsCreateCommentResponseLinksSelf; -}; -declare type PullsCreateCommentResponse = { - _links: PullsCreateCommentResponseLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsCreateCommentResponseUser; -}; -declare type PullsCreateResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateResponseRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type PullsCreateResponseRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsCreateResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type PullsCreateResponseMergedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type PullsCreateResponseHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateResponseHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsCreateResponseHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateResponseHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateResponseHeadRepoOwner; - permissions: PullsCreateResponseHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsCreateResponseHead = { - label: string; - ref: string; - repo: PullsCreateResponseHeadRepo; - sha: string; - user: PullsCreateResponseHeadUser; -}; -declare type PullsCreateResponseBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateResponseBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type PullsCreateResponseBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateResponseBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateResponseBaseRepoOwner; - permissions: PullsCreateResponseBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type PullsCreateResponseBase = { - label: string; - ref: string; - repo: PullsCreateResponseBaseRepo; - sha: string; - user: PullsCreateResponseBaseUser; -}; -declare type PullsCreateResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type PullsCreateResponseLinksStatuses = { - href: string; -}; -declare type PullsCreateResponseLinksSelf = { - href: string; -}; -declare type PullsCreateResponseLinksReviewComments = { - href: string; -}; -declare type PullsCreateResponseLinksReviewComment = { - href: string; -}; -declare type PullsCreateResponseLinksIssue = { - href: string; -}; -declare type PullsCreateResponseLinksHtml = { - href: string; -}; -declare type PullsCreateResponseLinksCommits = { - href: string; -}; -declare type PullsCreateResponseLinksComments = { - href: string; -}; -declare type PullsCreateResponseLinks = { - comments: PullsCreateResponseLinksComments; - commits: PullsCreateResponseLinksCommits; - html: PullsCreateResponseLinksHtml; - issue: PullsCreateResponseLinksIssue; - review_comment: PullsCreateResponseLinksReviewComment; - review_comments: PullsCreateResponseLinksReviewComments; - self: PullsCreateResponseLinksSelf; - statuses: PullsCreateResponseLinksStatuses; -}; -declare type PullsCreateResponse = { - _links: PullsCreateResponseLinks; - active_lock_reason: string; - additions: number; - assignee: PullsCreateResponseAssignee; - assignees: Array; - author_association: string; - base: PullsCreateResponseBase; - body: string; - changed_files: number; - closed_at: string; - comments: number; - comments_url: string; - commits: number; - commits_url: string; - created_at: string; - deletions: number; - diff_url: string; - draft: boolean; - head: PullsCreateResponseHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - maintainer_can_modify: boolean; - merge_commit_sha: string; - mergeable: boolean; - mergeable_state: string; - merged: boolean; - merged_at: string; - merged_by: PullsCreateResponseMergedBy; - milestone: PullsCreateResponseMilestone; - node_id: string; - number: number; - patch_url: string; - rebaseable: boolean; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments: number; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsCreateResponseUser; -}; -declare type ProjectsUpdateColumnResponse = { - cards_url: string; - created_at: string; - id: number; - name: string; - node_id: string; - project_url: string; - updated_at: string; - url: string; -}; -declare type ProjectsUpdateCardResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsUpdateCardResponse = { - archived: boolean; - column_url: string; - content_url: string; - created_at: string; - creator: ProjectsUpdateCardResponseCreator; - id: number; - node_id: string; - note: string; - project_url: string; - updated_at: string; - url: string; -}; -declare type ProjectsUpdateResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsUpdateResponse = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsUpdateResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; -}; -declare type ProjectsReviewUserPermissionLevelResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsReviewUserPermissionLevelResponse = { - permission: string; - user: ProjectsReviewUserPermissionLevelResponseUser; -}; -declare type ProjectsListForUserResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsListForUserResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsListForUserResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; -}; -declare type ProjectsListForRepoResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsListForRepoResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsListForRepoResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; -}; -declare type ProjectsListForOrgResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsListForOrgResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsListForOrgResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; -}; -declare type ProjectsListColumnsResponseItem = { - cards_url: string; - created_at: string; - id: number; - name: string; - node_id: string; - project_url: string; - updated_at: string; - url: string; -}; -declare type ProjectsListCollaboratorsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsListCardsResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsListCardsResponseItem = { - archived: boolean; - column_url: string; - content_url: string; - created_at: string; - creator: ProjectsListCardsResponseItemCreator; - id: number; - node_id: string; - note: string; - project_url: string; - updated_at: string; - url: string; -}; -declare type ProjectsGetColumnResponse = { - cards_url: string; - created_at: string; - id: number; - name: string; - node_id: string; - project_url: string; - updated_at: string; - url: string; -}; -declare type ProjectsGetCardResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsGetCardResponse = { - archived: boolean; - column_url: string; - content_url: string; - created_at: string; - creator: ProjectsGetCardResponseCreator; - id: number; - node_id: string; - note: string; - project_url: string; - updated_at: string; - url: string; -}; -declare type ProjectsGetResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsGetResponse = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsGetResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; -}; -declare type ProjectsCreateForRepoResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsCreateForRepoResponse = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsCreateForRepoResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; -}; -declare type ProjectsCreateForOrgResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsCreateForOrgResponse = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsCreateForOrgResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; -}; -declare type ProjectsCreateForAuthenticatedUserResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsCreateForAuthenticatedUserResponse = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsCreateForAuthenticatedUserResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; -}; -declare type ProjectsCreateColumnResponse = { - cards_url: string; - created_at: string; - id: number; - name: string; - node_id: string; - project_url: string; - updated_at: string; - url: string; -}; -declare type ProjectsCreateCardResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ProjectsCreateCardResponse = { - archived: boolean; - column_url: string; - content_url: string; - created_at: string; - creator: ProjectsCreateCardResponseCreator; - id: number; - node_id: string; - note: string; - project_url: string; - updated_at: string; - url: string; -}; -declare type OrgsUpdateMembershipResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsUpdateMembershipResponseOrganization = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type OrgsUpdateMembershipResponse = { - organization: OrgsUpdateMembershipResponseOrganization; - organization_url: string; - role: string; - state: string; - url: string; - user: OrgsUpdateMembershipResponseUser; -}; -declare type OrgsUpdateHookResponseConfig = { - content_type: string; - url: string; -}; -declare type OrgsUpdateHookResponse = { - active: boolean; - config: OrgsUpdateHookResponseConfig; - created_at: string; - events: Array; - id: number; - name: string; - ping_url: string; - updated_at: string; - url: string; -}; -declare type OrgsUpdateResponsePlan = { - name: string; - private_repos: number; - space: number; -}; -declare type OrgsUpdateResponse = { - avatar_url: string; - billing_email: string; - blog: string; - collaborators: number; - company: string; - created_at: string; - default_repository_permission: string; - description: string; - disk_usage: number; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_allowed_repository_creation_type: string; - members_can_create_internal_repositories: boolean; - members_can_create_private_repositories: boolean; - members_can_create_public_repositories: boolean; - members_can_create_repositories: boolean; - members_url: string; - name: string; - node_id: string; - owned_private_repos: number; - plan: OrgsUpdateResponsePlan; - private_gists: number; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - total_private_repos: number; - two_factor_requirement_enabled: boolean; - type: string; - url: string; -}; -declare type OrgsRemoveOutsideCollaboratorResponse = { - documentation_url: string; - message: string; -}; -declare type OrgsListPublicMembersResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsListPendingInvitationsResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsListPendingInvitationsResponseItem = { - created_at: string; - email: string; - id: number; - invitation_team_url: string; - inviter: OrgsListPendingInvitationsResponseItemInviter; - login: string; - role: string; - team_count: number; -}; -declare type OrgsListOutsideCollaboratorsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsListMembershipsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsListMembershipsResponseItemOrganization = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type OrgsListMembershipsResponseItem = { - organization: OrgsListMembershipsResponseItemOrganization; - organization_url: string; - role: string; - state: string; - url: string; - user: OrgsListMembershipsResponseItemUser; -}; -declare type OrgsListMembersResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsListInvitationTeamsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; -}; -declare type OrgsListInstallationsResponseInstallationsItemPermissions = { - deployments: string; - metadata: string; - pull_requests: string; - statuses: string; -}; -declare type OrgsListInstallationsResponseInstallationsItemAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsListInstallationsResponseInstallationsItem = { - access_tokens_url: string; - account: OrgsListInstallationsResponseInstallationsItemAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: OrgsListInstallationsResponseInstallationsItemPermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; -}; -declare type OrgsListInstallationsResponse = { - installations: Array; - total_count: number; -}; -declare type OrgsListHooksResponseItemConfig = { - content_type: string; - url: string; -}; -declare type OrgsListHooksResponseItem = { - active: boolean; - config: OrgsListHooksResponseItemConfig; - created_at: string; - events: Array; - id: number; - name: string; - ping_url: string; - updated_at: string; - url: string; -}; -declare type OrgsListForUserResponseItem = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type OrgsListForAuthenticatedUserResponseItem = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type OrgsListBlockedUsersResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsListResponseItem = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseOrganization = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponse = { - organization: OrgsGetMembershipForAuthenticatedUserResponseOrganization; - organization_url: string; - role: string; - state: string; - url: string; - user: OrgsGetMembershipForAuthenticatedUserResponseUser; -}; -declare type OrgsGetMembershipResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsGetMembershipResponseOrganization = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type OrgsGetMembershipResponse = { - organization: OrgsGetMembershipResponseOrganization; - organization_url: string; - role: string; - state: string; - url: string; - user: OrgsGetMembershipResponseUser; -}; -declare type OrgsGetHookResponseConfig = { - content_type: string; - url: string; -}; -declare type OrgsGetHookResponse = { - active: boolean; - config: OrgsGetHookResponseConfig; - created_at: string; - events: Array; - id: number; - name: string; - ping_url: string; - updated_at: string; - url: string; -}; -declare type OrgsGetResponsePlan = { - name: string; - private_repos: number; - space: number; - filled_seats?: number; - seats?: number; -}; -declare type OrgsGetResponse = { - avatar_url: string; - billing_email?: string; - blog: string; - collaborators?: number; - company: string; - created_at: string; - default_repository_permission?: string; - description: string; - disk_usage?: number; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_allowed_repository_creation_type?: string; - members_can_create_internal_repositories?: boolean; - members_can_create_private_repositories?: boolean; - members_can_create_public_repositories?: boolean; - members_can_create_repositories?: boolean; - members_url: string; - name: string; - node_id: string; - owned_private_repos?: number; - plan: OrgsGetResponsePlan; - private_gists?: number; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - total_private_repos?: number; - two_factor_requirement_enabled?: boolean; - type: string; - url: string; -}; -declare type OrgsCreateInvitationResponseInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsCreateInvitationResponse = { - created_at: string; - email: string; - id: number; - invitation_team_url: string; - inviter: OrgsCreateInvitationResponseInviter; - login: string; - role: string; - team_count: number; -}; -declare type OrgsCreateHookResponseConfig = { - content_type: string; - url: string; -}; -declare type OrgsCreateHookResponse = { - active: boolean; - config: OrgsCreateHookResponseConfig; - created_at: string; - events: Array; - id: number; - name: string; - ping_url: string; - updated_at: string; - url: string; -}; -declare type OrgsConvertMemberToOutsideCollaboratorResponse = { - documentation_url: string; - message: string; -}; -declare type OrgsAddOrUpdateMembershipResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OrgsAddOrUpdateMembershipResponseOrganization = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type OrgsAddOrUpdateMembershipResponse = { - organization: OrgsAddOrUpdateMembershipResponseOrganization; - organization_url: string; - role: string; - state: string; - url: string; - user: OrgsAddOrUpdateMembershipResponseUser; -}; -declare type OauthAuthorizationsUpdateAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsUpdateAuthorizationResponse = { - app: OauthAuthorizationsUpdateAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; -}; -declare type OauthAuthorizationsResetAuthorizationResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OauthAuthorizationsResetAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsResetAuthorizationResponse = { - app: OauthAuthorizationsResetAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: OauthAuthorizationsResetAuthorizationResponseUser; -}; -declare type OauthAuthorizationsListGrantsResponseItemApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsListGrantsResponseItem = { - app: OauthAuthorizationsListGrantsResponseItemApp; - created_at: string; - id: number; - scopes: Array; - updated_at: string; - url: string; -}; -declare type OauthAuthorizationsListAuthorizationsResponseItemApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsListAuthorizationsResponseItem = { - app: OauthAuthorizationsListAuthorizationsResponseItemApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintResponse = { - app: OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponse = { - app: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppResponse = { - app: OauthAuthorizationsGetOrCreateAuthorizationForAppResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; -}; -declare type OauthAuthorizationsGetGrantResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsGetGrantResponse = { - app: OauthAuthorizationsGetGrantResponseApp; - created_at: string; - id: number; - scopes: Array; - updated_at: string; - url: string; -}; -declare type OauthAuthorizationsGetAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsGetAuthorizationResponse = { - app: OauthAuthorizationsGetAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; -}; -declare type OauthAuthorizationsCreateAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsCreateAuthorizationResponse = { - app: OauthAuthorizationsCreateAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; -}; -declare type OauthAuthorizationsCheckAuthorizationResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type OauthAuthorizationsCheckAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type OauthAuthorizationsCheckAuthorizationResponse = { - app: OauthAuthorizationsCheckAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: OauthAuthorizationsCheckAuthorizationResponseUser; -}; -declare type MigrationsUpdateImportResponse = { - authors_url: string; - html_url: string; - repository_url: string; - status: string; - url: string; - use_lfs: string; - vcs: string; - vcs_url: string; - authors_count?: number; - commit_count?: number; - has_large_files?: boolean; - large_files_count?: number; - large_files_size?: number; - percent?: number; - status_text?: string; - tfvc_project?: string; -}; -declare type MigrationsStartImportResponse = { - authors_count: number; - authors_url: string; - commit_count: number; - has_large_files: boolean; - html_url: string; - large_files_count: number; - large_files_size: number; - percent: number; - repository_url: string; - status: string; - status_text: string; - url: string; - use_lfs: string; - vcs: string; - vcs_url: string; -}; -declare type MigrationsStartForOrgResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type MigrationsStartForOrgResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsStartForOrgResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsStartForOrgResponseRepositoriesItemOwner; - permissions: MigrationsStartForOrgResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type MigrationsStartForOrgResponseOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type MigrationsStartForOrgResponse = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsStartForOrgResponseOwner; - repositories: Array; - state: string; - updated_at: string; - url: string; -}; -declare type MigrationsStartForAuthenticatedUserResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type MigrationsStartForAuthenticatedUserResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsStartForAuthenticatedUserResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsStartForAuthenticatedUserResponseRepositoriesItemOwner; - permissions: MigrationsStartForAuthenticatedUserResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type MigrationsStartForAuthenticatedUserResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsStartForAuthenticatedUserResponse = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsStartForAuthenticatedUserResponseOwner; - repositories: Array; - state: string; - updated_at: string; - url: string; -}; -declare type MigrationsSetLfsPreferenceResponse = { - authors_count: number; - authors_url: string; - has_large_files: boolean; - html_url: string; - large_files_count: number; - large_files_size: number; - repository_url: string; - status: string; - status_text: string; - url: string; - use_lfs: string; - vcs: string; - vcs_url: string; -}; -declare type MigrationsMapCommitAuthorResponse = { - email: string; - id: number; - import_url: string; - name: string; - remote_id: string; - remote_name: string; - url: string; -}; -declare type MigrationsListReposForUserResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type MigrationsListReposForUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsListReposForUserResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type MigrationsListReposForUserResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: MigrationsListReposForUserResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsListReposForUserResponseItemOwner; - permissions: MigrationsListReposForUserResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type MigrationsListReposForOrgResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type MigrationsListReposForOrgResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsListReposForOrgResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type MigrationsListReposForOrgResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: MigrationsListReposForOrgResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsListReposForOrgResponseItemOwner; - permissions: MigrationsListReposForOrgResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type MigrationsListForOrgResponseItemRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type MigrationsListForOrgResponseItemRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsListForOrgResponseItemRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsListForOrgResponseItemRepositoriesItemOwner; - permissions: MigrationsListForOrgResponseItemRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type MigrationsListForOrgResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type MigrationsListForOrgResponseItem = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsListForOrgResponseItemOwner; - repositories: Array; - state: string; - updated_at: string; - url: string; -}; -declare type MigrationsListForAuthenticatedUserResponseItemRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type MigrationsListForAuthenticatedUserResponseItemRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsListForAuthenticatedUserResponseItemRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsListForAuthenticatedUserResponseItemRepositoriesItemOwner; - permissions: MigrationsListForAuthenticatedUserResponseItemRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type MigrationsListForAuthenticatedUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsListForAuthenticatedUserResponseItem = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsListForAuthenticatedUserResponseItemOwner; - repositories: Array; - state: string; - updated_at: string; - url: string; -}; -declare type MigrationsGetStatusForOrgResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type MigrationsGetStatusForOrgResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsGetStatusForOrgResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsGetStatusForOrgResponseRepositoriesItemOwner; - permissions: MigrationsGetStatusForOrgResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type MigrationsGetStatusForOrgResponseOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type MigrationsGetStatusForOrgResponse = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsGetStatusForOrgResponseOwner; - repositories: Array; - state: string; - updated_at: string; - url: string; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemOwner; - permissions: MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponse = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsGetStatusForAuthenticatedUserResponseOwner; - repositories: Array; - state: string; - updated_at: string; - url: string; -}; -declare type MigrationsGetLargeFilesResponseItem = { - oid: string; - path: string; - ref_name: string; - size: number; -}; -declare type MigrationsGetImportProgressResponse = { - authors_count: number; - authors_url: string; - has_large_files: boolean; - html_url: string; - large_files_count: number; - large_files_size: number; - repository_url: string; - status: string; - status_text: string; - url: string; - use_lfs: string; - vcs: string; - vcs_url: string; -}; -declare type MigrationsGetCommitAuthorsResponseItem = { - email: string; - id: number; - import_url: string; - name: string; - remote_id: string; - remote_name: string; - url: string; -}; -declare type MetaGetResponseSshKeyFingerprints = { - MD5_DSA: string; - MD5_RSA: string; - SHA256_DSA: string; - SHA256_RSA: string; -}; -declare type MetaGetResponse = { - api: Array; - git: Array; - hooks: Array; - importer: Array; - pages: Array; - ssh_key_fingerprints: MetaGetResponseSshKeyFingerprints; - verifiable_password_authentication: boolean; - web: Array; -}; -declare type LicensesListCommonlyUsedResponseItem = { - key: string; - name: string; - node_id?: string; - spdx_id: string; - url: string; -}; -declare type LicensesListResponseItem = { - key: string; - name: string; - node_id?: string; - spdx_id: string; - url: string; -}; -declare type LicensesGetForRepoResponseLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type LicensesGetForRepoResponseLinks = { - git: string; - html: string; - self: string; -}; -declare type LicensesGetForRepoResponse = { - _links: LicensesGetForRepoResponseLinks; - content: string; - download_url: string; - encoding: string; - git_url: string; - html_url: string; - license: LicensesGetForRepoResponseLicense; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; -}; -declare type LicensesGetResponse = { - body: string; - conditions: Array; - description: string; - featured: boolean; - html_url: string; - implementation: string; - key: string; - limitations: Array; - name: string; - node_id: string; - permissions: Array; - spdx_id: string; - url: string; -}; -declare type IssuesUpdateMilestoneResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesUpdateMilestoneResponse = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesUpdateMilestoneResponseCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesUpdateLabelResponse = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesUpdateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesUpdateCommentResponse = { - body: string; - created_at: string; - html_url: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: IssuesUpdateCommentResponseUser; -}; -declare type IssuesUpdateResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesUpdateResponsePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesUpdateResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesUpdateResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesUpdateResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesUpdateResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesUpdateResponseClosedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesUpdateResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesUpdateResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesUpdateResponse = { - active_lock_reason: string; - assignee: IssuesUpdateResponseAssignee; - assignees: Array; - body: string; - closed_at: null; - closed_by: IssuesUpdateResponseClosedBy; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesUpdateResponseMilestone; - node_id: string; - number: number; - pull_request: IssuesUpdateResponsePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesUpdateResponseUser; -}; -declare type IssuesReplaceLabelsResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesRemoveLabelResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesRemoveAssigneesResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesRemoveAssigneesResponsePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesRemoveAssigneesResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesRemoveAssigneesResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesRemoveAssigneesResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesRemoveAssigneesResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesRemoveAssigneesResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesRemoveAssigneesResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesRemoveAssigneesResponse = { - active_lock_reason: string; - assignee: IssuesRemoveAssigneesResponseAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesRemoveAssigneesResponseMilestone; - node_id: string; - number: number; - pull_request: IssuesRemoveAssigneesResponsePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesRemoveAssigneesResponseUser; -}; -declare type IssuesListMilestonesForRepoResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListMilestonesForRepoResponseItem = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListMilestonesForRepoResponseItemCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesListLabelsOnIssueResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesListLabelsForRepoResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesListLabelsForMilestoneResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesListForRepoResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForRepoResponseItemPullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesListForRepoResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForRepoResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListForRepoResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesListForRepoResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesListForRepoResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForRepoResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForRepoResponseItem = { - active_lock_reason: string; - assignee: IssuesListForRepoResponseItemAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesListForRepoResponseItemMilestone; - node_id: string; - number: number; - pull_request: IssuesListForRepoResponseItemPullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesListForRepoResponseItemUser; -}; -declare type IssuesListForOrgResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForOrgResponseItemRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type IssuesListForOrgResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForOrgResponseItemRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: IssuesListForOrgResponseItemRepositoryOwner; - permissions: IssuesListForOrgResponseItemRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type IssuesListForOrgResponseItemPullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesListForOrgResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForOrgResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListForOrgResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesListForOrgResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesListForOrgResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForOrgResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForOrgResponseItem = { - active_lock_reason: string; - assignee: IssuesListForOrgResponseItemAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesListForOrgResponseItemMilestone; - node_id: string; - number: number; - pull_request: IssuesListForOrgResponseItemPullRequest; - repository: IssuesListForOrgResponseItemRepository; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesListForOrgResponseItemUser; -}; -declare type IssuesListForAuthenticatedUserResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForAuthenticatedUserResponseItemRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForAuthenticatedUserResponseItemRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: IssuesListForAuthenticatedUserResponseItemRepositoryOwner; - permissions: IssuesListForAuthenticatedUserResponseItemRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type IssuesListForAuthenticatedUserResponseItemPullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesListForAuthenticatedUserResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForAuthenticatedUserResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListForAuthenticatedUserResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesListForAuthenticatedUserResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesListForAuthenticatedUserResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForAuthenticatedUserResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListForAuthenticatedUserResponseItem = { - active_lock_reason: string; - assignee: IssuesListForAuthenticatedUserResponseItemAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesListForAuthenticatedUserResponseItemMilestone; - node_id: string; - number: number; - pull_request: IssuesListForAuthenticatedUserResponseItemPullRequest; - repository: IssuesListForAuthenticatedUserResponseItemRepository; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesListForAuthenticatedUserResponseItemUser; -}; -declare type IssuesListEventsForTimelineResponseItemActor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListEventsForTimelineResponseItem = { - actor: IssuesListEventsForTimelineResponseItemActor; - commit_id: string; - commit_url: string; - created_at: string; - event: string; - id: number; - node_id: string; - url: string; -}; -declare type IssuesListEventsForRepoResponseItemIssueUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListEventsForRepoResponseItemIssuePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesListEventsForRepoResponseItemIssueMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListEventsForRepoResponseItemIssueMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListEventsForRepoResponseItemIssueMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesListEventsForRepoResponseItemIssueLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesListEventsForRepoResponseItemIssueAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListEventsForRepoResponseItemIssueAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListEventsForRepoResponseItemIssue = { - active_lock_reason: string; - assignee: IssuesListEventsForRepoResponseItemIssueAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesListEventsForRepoResponseItemIssueMilestone; - node_id: string; - number: number; - pull_request: IssuesListEventsForRepoResponseItemIssuePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesListEventsForRepoResponseItemIssueUser; -}; -declare type IssuesListEventsForRepoResponseItemActor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListEventsForRepoResponseItem = { - actor: IssuesListEventsForRepoResponseItemActor; - commit_id: string; - commit_url: string; - created_at: string; - event: string; - id: number; - issue: IssuesListEventsForRepoResponseItemIssue; - node_id: string; - url: string; -}; -declare type IssuesListEventsResponseItemActor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListEventsResponseItem = { - actor: IssuesListEventsResponseItemActor; - commit_id: string; - commit_url: string; - created_at: string; - event: string; - id: number; - node_id: string; - url: string; -}; -declare type IssuesListCommentsForRepoResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListCommentsForRepoResponseItem = { - body: string; - created_at: string; - html_url: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: IssuesListCommentsForRepoResponseItemUser; -}; -declare type IssuesListCommentsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListCommentsResponseItem = { - body: string; - created_at: string; - html_url: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: IssuesListCommentsResponseItemUser; -}; -declare type IssuesListAssigneesResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListResponseItemRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type IssuesListResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListResponseItemRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: IssuesListResponseItemRepositoryOwner; - permissions: IssuesListResponseItemRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type IssuesListResponseItemPullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesListResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesListResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesListResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesListResponseItem = { - active_lock_reason: string; - assignee: IssuesListResponseItemAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesListResponseItemMilestone; - node_id: string; - number: number; - pull_request: IssuesListResponseItemPullRequest; - repository: IssuesListResponseItemRepository; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesListResponseItemUser; -}; -declare type IssuesGetMilestoneResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetMilestoneResponse = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesGetMilestoneResponseCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesGetLabelResponse = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesGetEventResponseIssueUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetEventResponseIssuePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesGetEventResponseIssueMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetEventResponseIssueMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesGetEventResponseIssueMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesGetEventResponseIssueLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesGetEventResponseIssueAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetEventResponseIssueAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetEventResponseIssue = { - active_lock_reason: string; - assignee: IssuesGetEventResponseIssueAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesGetEventResponseIssueMilestone; - node_id: string; - number: number; - pull_request: IssuesGetEventResponseIssuePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesGetEventResponseIssueUser; -}; -declare type IssuesGetEventResponseActor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetEventResponse = { - actor: IssuesGetEventResponseActor; - commit_id: string; - commit_url: string; - created_at: string; - event: string; - id: number; - issue: IssuesGetEventResponseIssue; - node_id: string; - url: string; -}; -declare type IssuesGetCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetCommentResponse = { - body: string; - created_at: string; - html_url: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: IssuesGetCommentResponseUser; -}; -declare type IssuesGetResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetResponsePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesGetResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesGetResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesGetResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesGetResponseClosedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesGetResponse = { - active_lock_reason: string; - assignee: IssuesGetResponseAssignee; - assignees: Array; - body: string; - closed_at: null; - closed_by: IssuesGetResponseClosedBy; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesGetResponseMilestone; - node_id: string; - number: number; - pull_request: IssuesGetResponsePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesGetResponseUser; -}; -declare type IssuesCreateMilestoneResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesCreateMilestoneResponse = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesCreateMilestoneResponseCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesCreateLabelResponse = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesCreateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesCreateCommentResponse = { - body: string; - created_at: string; - html_url: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: IssuesCreateCommentResponseUser; -}; -declare type IssuesCreateResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesCreateResponsePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesCreateResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesCreateResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesCreateResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesCreateResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesCreateResponseClosedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesCreateResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesCreateResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesCreateResponse = { - active_lock_reason: string; - assignee: IssuesCreateResponseAssignee; - assignees: Array; - body: string; - closed_at: null; - closed_by: IssuesCreateResponseClosedBy; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesCreateResponseMilestone; - node_id: string; - number: number; - pull_request: IssuesCreateResponsePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesCreateResponseUser; -}; -declare type IssuesAddLabelsResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesAddAssigneesResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesAddAssigneesResponsePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; -}; -declare type IssuesAddAssigneesResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesAddAssigneesResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesAddAssigneesResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; -}; -declare type IssuesAddAssigneesResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; -}; -declare type IssuesAddAssigneesResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesAddAssigneesResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type IssuesAddAssigneesResponse = { - active_lock_reason: string; - assignee: IssuesAddAssigneesResponseAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesAddAssigneesResponseMilestone; - node_id: string; - number: number; - pull_request: IssuesAddAssigneesResponsePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesAddAssigneesResponseUser; -}; -declare type InteractionsGetRestrictionsForRepoResponse = { - expires_at: string; - limit: string; - origin: string; -}; -declare type InteractionsGetRestrictionsForOrgResponse = { - expires_at: string; - limit: string; - origin: string; -}; -declare type InteractionsAddOrUpdateRestrictionsForRepoResponse = { - expires_at: string; - limit: string; - origin: string; -}; -declare type InteractionsAddOrUpdateRestrictionsForOrgResponse = { - expires_at: string; - limit: string; - origin: string; -}; -declare type GitignoreGetTemplateResponse = { - name: string; - source: string; -}; -declare type GitUpdateRefResponseObject = { - sha: string; - type: string; - url: string; -}; -declare type GitUpdateRefResponse = { - node_id: string; - object: GitUpdateRefResponseObject; - ref: string; - url: string; -}; -declare type GitListMatchingRefsResponseItemObject = { - sha: string; - type: string; - url: string; -}; -declare type GitListMatchingRefsResponseItem = { - node_id: string; - object: GitListMatchingRefsResponseItemObject; - ref: string; - url: string; -}; -declare type GitGetTreeResponseTreeItem = { - mode: string; - path: string; - sha: string; - size?: number; - type: string; - url: string; -}; -declare type GitGetTreeResponse = { - sha: string; - tree: Array; - truncated: boolean; - url: string; -}; -declare type GitGetTagResponseVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type GitGetTagResponseTagger = { - date: string; - email: string; - name: string; -}; -declare type GitGetTagResponseObject = { - sha: string; - type: string; - url: string; -}; -declare type GitGetTagResponse = { - message: string; - node_id: string; - object: GitGetTagResponseObject; - sha: string; - tag: string; - tagger: GitGetTagResponseTagger; - url: string; - verification: GitGetTagResponseVerification; -}; -declare type GitGetRefResponseObject = { - sha: string; - type: string; - url: string; -}; -declare type GitGetRefResponse = { - node_id: string; - object: GitGetRefResponseObject; - ref: string; - url: string; -}; -declare type GitGetCommitResponseVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type GitGetCommitResponseTree = { - sha: string; - url: string; -}; -declare type GitGetCommitResponseParentsItem = { - sha: string; - url: string; -}; -declare type GitGetCommitResponseCommitter = { - date: string; - email: string; - name: string; -}; -declare type GitGetCommitResponseAuthor = { - date: string; - email: string; - name: string; -}; -declare type GitGetCommitResponse = { - author: GitGetCommitResponseAuthor; - committer: GitGetCommitResponseCommitter; - message: string; - parents: Array; - sha: string; - tree: GitGetCommitResponseTree; - url: string; - verification: GitGetCommitResponseVerification; -}; -declare type GitGetBlobResponse = { - content: string; - encoding: string; - sha: string; - size: number; - url: string; -}; -declare type GitCreateTreeResponseTreeItem = { - mode: string; - path: string; - sha: string; - size: number; - type: string; - url: string; -}; -declare type GitCreateTreeResponse = { - sha: string; - tree: Array; - url: string; -}; -declare type GitCreateTagResponseVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type GitCreateTagResponseTagger = { - date: string; - email: string; - name: string; -}; -declare type GitCreateTagResponseObject = { - sha: string; - type: string; - url: string; -}; -declare type GitCreateTagResponse = { - message: string; - node_id: string; - object: GitCreateTagResponseObject; - sha: string; - tag: string; - tagger: GitCreateTagResponseTagger; - url: string; - verification: GitCreateTagResponseVerification; -}; -declare type GitCreateRefResponseObject = { - sha: string; - type: string; - url: string; -}; -declare type GitCreateRefResponse = { - node_id: string; - object: GitCreateRefResponseObject; - ref: string; - url: string; -}; -declare type GitCreateCommitResponseVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; -}; -declare type GitCreateCommitResponseTree = { - sha: string; - url: string; -}; -declare type GitCreateCommitResponseParentsItem = { - sha: string; - url: string; -}; -declare type GitCreateCommitResponseCommitter = { - date: string; - email: string; - name: string; -}; -declare type GitCreateCommitResponseAuthor = { - date: string; - email: string; - name: string; -}; -declare type GitCreateCommitResponse = { - author: GitCreateCommitResponseAuthor; - committer: GitCreateCommitResponseCommitter; - message: string; - node_id: string; - parents: Array; - sha: string; - tree: GitCreateCommitResponseTree; - url: string; - verification: GitCreateCommitResponseVerification; -}; -declare type GitCreateBlobResponse = { - sha: string; - url: string; -}; -declare type GistsUpdateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsUpdateCommentResponse = { - body: string; - created_at: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: GistsUpdateCommentResponseUser; -}; -declare type GistsUpdateResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsUpdateResponseHistoryItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsUpdateResponseHistoryItemChangeStatus = { - additions: number; - deletions: number; - total: number; -}; -declare type GistsUpdateResponseHistoryItem = { - change_status: GistsUpdateResponseHistoryItemChangeStatus; - committed_at: string; - url: string; - user: GistsUpdateResponseHistoryItemUser; - version: string; -}; -declare type GistsUpdateResponseForksItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsUpdateResponseForksItem = { - created_at: string; - id: string; - updated_at: string; - url: string; - user: GistsUpdateResponseForksItemUser; -}; -declare type GistsUpdateResponseFilesNewFileTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsUpdateResponseFilesHelloWorldRb = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsUpdateResponseFilesHelloWorldPy = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsUpdateResponseFilesHelloWorldMd = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsUpdateResponseFiles = { - "hello_world.md": GistsUpdateResponseFilesHelloWorldMd; - "hello_world.py": GistsUpdateResponseFilesHelloWorldPy; - "hello_world.rb": GistsUpdateResponseFilesHelloWorldRb; - "new_file.txt": GistsUpdateResponseFilesNewFileTxt; -}; -declare type GistsUpdateResponse = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsUpdateResponseFiles; - forks: Array; - forks_url: string; - git_pull_url: string; - git_push_url: string; - history: Array; - html_url: string; - id: string; - node_id: string; - owner: GistsUpdateResponseOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; -}; -declare type GistsListStarredResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsListStarredResponseItemFilesHelloWorldRb = { - filename: string; - language: string; - raw_url: string; - size: number; - type: string; -}; -declare type GistsListStarredResponseItemFiles = { - "hello_world.rb": GistsListStarredResponseItemFilesHelloWorldRb; -}; -declare type GistsListStarredResponseItem = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsListStarredResponseItemFiles; - forks_url: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - id: string; - node_id: string; - owner: GistsListStarredResponseItemOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; -}; -declare type GistsListPublicForUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsListPublicForUserResponseItemFilesHelloWorldRb = { - filename: string; - language: string; - raw_url: string; - size: number; - type: string; -}; -declare type GistsListPublicForUserResponseItemFiles = { - "hello_world.rb": GistsListPublicForUserResponseItemFilesHelloWorldRb; -}; -declare type GistsListPublicForUserResponseItem = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsListPublicForUserResponseItemFiles; - forks_url: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - id: string; - node_id: string; - owner: GistsListPublicForUserResponseItemOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; -}; -declare type GistsListPublicResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsListPublicResponseItemFilesHelloWorldRb = { - filename: string; - language: string; - raw_url: string; - size: number; - type: string; -}; -declare type GistsListPublicResponseItemFiles = { - "hello_world.rb": GistsListPublicResponseItemFilesHelloWorldRb; -}; -declare type GistsListPublicResponseItem = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsListPublicResponseItemFiles; - forks_url: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - id: string; - node_id: string; - owner: GistsListPublicResponseItemOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; -}; -declare type GistsListForksResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsListForksResponseItem = { - created_at: string; - id: string; - updated_at: string; - url: string; - user: GistsListForksResponseItemUser; -}; -declare type GistsListCommitsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsListCommitsResponseItemChangeStatus = { - additions: number; - deletions: number; - total: number; -}; -declare type GistsListCommitsResponseItem = { - change_status: GistsListCommitsResponseItemChangeStatus; - committed_at: string; - url: string; - user: GistsListCommitsResponseItemUser; - version: string; -}; -declare type GistsListCommentsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsListCommentsResponseItem = { - body: string; - created_at: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: GistsListCommentsResponseItemUser; -}; -declare type GistsListResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsListResponseItemFilesHelloWorldRb = { - filename: string; - language: string; - raw_url: string; - size: number; - type: string; -}; -declare type GistsListResponseItemFiles = { - "hello_world.rb": GistsListResponseItemFilesHelloWorldRb; -}; -declare type GistsListResponseItem = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsListResponseItemFiles; - forks_url: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - id: string; - node_id: string; - owner: GistsListResponseItemOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; -}; -declare type GistsGetRevisionResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsGetRevisionResponseHistoryItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsGetRevisionResponseHistoryItemChangeStatus = { - additions: number; - deletions: number; - total: number; -}; -declare type GistsGetRevisionResponseHistoryItem = { - change_status: GistsGetRevisionResponseHistoryItemChangeStatus; - committed_at: string; - url: string; - user: GistsGetRevisionResponseHistoryItemUser; - version: string; -}; -declare type GistsGetRevisionResponseForksItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsGetRevisionResponseForksItem = { - created_at: string; - id: string; - updated_at: string; - url: string; - user: GistsGetRevisionResponseForksItemUser; -}; -declare type GistsGetRevisionResponseFilesHelloWorldRubyTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsGetRevisionResponseFilesHelloWorldPythonTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsGetRevisionResponseFilesHelloWorldRb = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsGetRevisionResponseFilesHelloWorldPy = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsGetRevisionResponseFiles = { - "hello_world.py": GistsGetRevisionResponseFilesHelloWorldPy; - "hello_world.rb": GistsGetRevisionResponseFilesHelloWorldRb; - "hello_world_python.txt": GistsGetRevisionResponseFilesHelloWorldPythonTxt; - "hello_world_ruby.txt": GistsGetRevisionResponseFilesHelloWorldRubyTxt; -}; -declare type GistsGetRevisionResponse = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsGetRevisionResponseFiles; - forks: Array; - forks_url: string; - git_pull_url: string; - git_push_url: string; - history: Array; - html_url: string; - id: string; - node_id: string; - owner: GistsGetRevisionResponseOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; -}; -declare type GistsGetCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsGetCommentResponse = { - body: string; - created_at: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: GistsGetCommentResponseUser; -}; -declare type GistsGetResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsGetResponseHistoryItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsGetResponseHistoryItemChangeStatus = { - additions: number; - deletions: number; - total: number; -}; -declare type GistsGetResponseHistoryItem = { - change_status: GistsGetResponseHistoryItemChangeStatus; - committed_at: string; - url: string; - user: GistsGetResponseHistoryItemUser; - version: string; -}; -declare type GistsGetResponseForksItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsGetResponseForksItem = { - created_at: string; - id: string; - updated_at: string; - url: string; - user: GistsGetResponseForksItemUser; -}; -declare type GistsGetResponseFilesHelloWorldRubyTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsGetResponseFilesHelloWorldPythonTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsGetResponseFilesHelloWorldRb = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsGetResponseFilesHelloWorldPy = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsGetResponseFiles = { - "hello_world.py": GistsGetResponseFilesHelloWorldPy; - "hello_world.rb": GistsGetResponseFilesHelloWorldRb; - "hello_world_python.txt": GistsGetResponseFilesHelloWorldPythonTxt; - "hello_world_ruby.txt": GistsGetResponseFilesHelloWorldRubyTxt; -}; -declare type GistsGetResponse = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsGetResponseFiles; - forks: Array; - forks_url: string; - git_pull_url: string; - git_push_url: string; - history: Array; - html_url: string; - id: string; - node_id: string; - owner: GistsGetResponseOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; -}; -declare type GistsForkResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsForkResponseFilesHelloWorldRb = { - filename: string; - language: string; - raw_url: string; - size: number; - type: string; -}; -declare type GistsForkResponseFiles = { - "hello_world.rb": GistsForkResponseFilesHelloWorldRb; -}; -declare type GistsForkResponse = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsForkResponseFiles; - forks_url: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - id: string; - node_id: string; - owner: GistsForkResponseOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; -}; -declare type GistsCreateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsCreateCommentResponse = { - body: string; - created_at: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: GistsCreateCommentResponseUser; -}; -declare type GistsCreateResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsCreateResponseHistoryItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsCreateResponseHistoryItemChangeStatus = { - additions: number; - deletions: number; - total: number; -}; -declare type GistsCreateResponseHistoryItem = { - change_status: GistsCreateResponseHistoryItemChangeStatus; - committed_at: string; - url: string; - user: GistsCreateResponseHistoryItemUser; - version: string; -}; -declare type GistsCreateResponseForksItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type GistsCreateResponseForksItem = { - created_at: string; - id: string; - updated_at: string; - url: string; - user: GistsCreateResponseForksItemUser; -}; -declare type GistsCreateResponseFilesHelloWorldRubyTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsCreateResponseFilesHelloWorldPythonTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsCreateResponseFilesHelloWorldRb = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsCreateResponseFilesHelloWorldPy = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; -}; -declare type GistsCreateResponseFiles = { - "hello_world.py": GistsCreateResponseFilesHelloWorldPy; - "hello_world.rb": GistsCreateResponseFilesHelloWorldRb; - "hello_world_python.txt": GistsCreateResponseFilesHelloWorldPythonTxt; - "hello_world_ruby.txt": GistsCreateResponseFilesHelloWorldRubyTxt; -}; -declare type GistsCreateResponse = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsCreateResponseFiles; - forks: Array; - forks_url: string; - git_pull_url: string; - git_push_url: string; - history: Array; - html_url: string; - id: string; - node_id: string; - owner: GistsCreateResponseOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; -}; -declare type CodesOfConductListConductCodesResponseItem = { - key: string; - name: string; - url: string; -}; -declare type CodesOfConductGetForRepoResponse = { - body: string; - key: string; - name: string; - url: string; -}; -declare type CodesOfConductGetConductCodeResponse = { - body: string; - key: string; - name: string; - url: string; -}; -declare type ChecksUpdateResponsePullRequestsItemHeadRepo = { - id: number; - name: string; - url: string; -}; -declare type ChecksUpdateResponsePullRequestsItemHead = { - ref: string; - repo: ChecksUpdateResponsePullRequestsItemHeadRepo; - sha: string; -}; -declare type ChecksUpdateResponsePullRequestsItemBaseRepo = { - id: number; - name: string; - url: string; -}; -declare type ChecksUpdateResponsePullRequestsItemBase = { - ref: string; - repo: ChecksUpdateResponsePullRequestsItemBaseRepo; - sha: string; -}; -declare type ChecksUpdateResponsePullRequestsItem = { - base: ChecksUpdateResponsePullRequestsItemBase; - head: ChecksUpdateResponsePullRequestsItemHead; - id: number; - number: number; - url: string; -}; -declare type ChecksUpdateResponseOutput = { - annotations_count: number; - annotations_url: string; - summary: string; - text: string; - title: string; -}; -declare type ChecksUpdateResponseCheckSuite = { - id: number; -}; -declare type ChecksUpdateResponseAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ChecksUpdateResponseAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ChecksUpdateResponseApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksUpdateResponseAppOwner; - permissions: ChecksUpdateResponseAppPermissions; - slug: string; - updated_at: string; -}; -declare type ChecksUpdateResponse = { - app: ChecksUpdateResponseApp; - check_suite: ChecksUpdateResponseCheckSuite; - completed_at: string; - conclusion: string; - details_url: string; - external_id: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - output: ChecksUpdateResponseOutput; - pull_requests: Array; - started_at: string; - status: string; - url: string; -}; -declare type ChecksSetSuitesPreferencesResponseRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ChecksSetSuitesPreferencesResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ChecksSetSuitesPreferencesResponseRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ChecksSetSuitesPreferencesResponseRepositoryOwner; - permissions: ChecksSetSuitesPreferencesResponseRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ChecksSetSuitesPreferencesResponsePreferencesAutoTriggerChecksItem = { - app_id: number; - setting: boolean; -}; -declare type ChecksSetSuitesPreferencesResponsePreferences = { - auto_trigger_checks: Array; -}; -declare type ChecksSetSuitesPreferencesResponse = { - preferences: ChecksSetSuitesPreferencesResponsePreferences; - repository: ChecksSetSuitesPreferencesResponseRepository; -}; -declare type ChecksListSuitesForRefResponseCheckSuitesItemRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ChecksListSuitesForRefResponseCheckSuitesItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ChecksListSuitesForRefResponseCheckSuitesItemRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ChecksListSuitesForRefResponseCheckSuitesItemRepositoryOwner; - permissions: ChecksListSuitesForRefResponseCheckSuitesItemRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ChecksListSuitesForRefResponseCheckSuitesItemAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ChecksListSuitesForRefResponseCheckSuitesItemAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ChecksListSuitesForRefResponseCheckSuitesItemApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksListSuitesForRefResponseCheckSuitesItemAppOwner; - permissions: ChecksListSuitesForRefResponseCheckSuitesItemAppPermissions; - slug: string; - updated_at: string; -}; -declare type ChecksListSuitesForRefResponseCheckSuitesItem = { - after: string; - app: ChecksListSuitesForRefResponseCheckSuitesItemApp; - before: string; - conclusion: string; - head_branch: string; - head_sha: string; - id: number; - node_id: string; - pull_requests: Array; - repository: ChecksListSuitesForRefResponseCheckSuitesItemRepository; - status: string; - url: string; -}; -declare type ChecksListSuitesForRefResponse = { - check_suites: Array; - total_count: number; -}; -declare type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - name: string; - url: string; -}; -declare type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHead = { - ref: string; - repo: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHeadRepo; - sha: string; -}; -declare type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - name: string; - url: string; -}; -declare type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBase = { - ref: string; - repo: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBaseRepo; - sha: string; -}; -declare type ChecksListForSuiteResponseCheckRunsItemPullRequestsItem = { - base: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBase; - head: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHead; - id: number; - number: number; - url: string; -}; -declare type ChecksListForSuiteResponseCheckRunsItemOutput = { - annotations_count: number; - annotations_url: string; - summary: string; - text: string; - title: string; -}; -declare type ChecksListForSuiteResponseCheckRunsItemCheckSuite = { - id: number; -}; -declare type ChecksListForSuiteResponseCheckRunsItemAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ChecksListForSuiteResponseCheckRunsItemAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ChecksListForSuiteResponseCheckRunsItemApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksListForSuiteResponseCheckRunsItemAppOwner; - permissions: ChecksListForSuiteResponseCheckRunsItemAppPermissions; - slug: string; - updated_at: string; -}; -declare type ChecksListForSuiteResponseCheckRunsItem = { - app: ChecksListForSuiteResponseCheckRunsItemApp; - check_suite: ChecksListForSuiteResponseCheckRunsItemCheckSuite; - completed_at: string; - conclusion: string; - details_url: string; - external_id: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - output: ChecksListForSuiteResponseCheckRunsItemOutput; - pull_requests: Array; - started_at: string; - status: string; - url: string; -}; -declare type ChecksListForSuiteResponse = { - check_runs: Array; - total_count: number; -}; -declare type ChecksListForRefResponseCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - name: string; - url: string; -}; -declare type ChecksListForRefResponseCheckRunsItemPullRequestsItemHead = { - ref: string; - repo: ChecksListForRefResponseCheckRunsItemPullRequestsItemHeadRepo; - sha: string; -}; -declare type ChecksListForRefResponseCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - name: string; - url: string; -}; -declare type ChecksListForRefResponseCheckRunsItemPullRequestsItemBase = { - ref: string; - repo: ChecksListForRefResponseCheckRunsItemPullRequestsItemBaseRepo; - sha: string; -}; -declare type ChecksListForRefResponseCheckRunsItemPullRequestsItem = { - base: ChecksListForRefResponseCheckRunsItemPullRequestsItemBase; - head: ChecksListForRefResponseCheckRunsItemPullRequestsItemHead; - id: number; - number: number; - url: string; -}; -declare type ChecksListForRefResponseCheckRunsItemOutput = { - annotations_count: number; - annotations_url: string; - summary: string; - text: string; - title: string; -}; -declare type ChecksListForRefResponseCheckRunsItemCheckSuite = { - id: number; -}; -declare type ChecksListForRefResponseCheckRunsItemAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ChecksListForRefResponseCheckRunsItemAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ChecksListForRefResponseCheckRunsItemApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksListForRefResponseCheckRunsItemAppOwner; - permissions: ChecksListForRefResponseCheckRunsItemAppPermissions; - slug: string; - updated_at: string; -}; -declare type ChecksListForRefResponseCheckRunsItem = { - app: ChecksListForRefResponseCheckRunsItemApp; - check_suite: ChecksListForRefResponseCheckRunsItemCheckSuite; - completed_at: string; - conclusion: string; - details_url: string; - external_id: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - output: ChecksListForRefResponseCheckRunsItemOutput; - pull_requests: Array; - started_at: string; - status: string; - url: string; -}; -declare type ChecksListForRefResponse = { - check_runs: Array; - total_count: number; -}; -declare type ChecksListAnnotationsResponseItem = { - annotation_level: string; - end_column: number; - end_line: number; - message: string; - path: string; - raw_details: string; - start_column: number; - start_line: number; - title: string; -}; -declare type ChecksGetSuiteResponseRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ChecksGetSuiteResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ChecksGetSuiteResponseRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ChecksGetSuiteResponseRepositoryOwner; - permissions: ChecksGetSuiteResponseRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ChecksGetSuiteResponseAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ChecksGetSuiteResponseAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ChecksGetSuiteResponseApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksGetSuiteResponseAppOwner; - permissions: ChecksGetSuiteResponseAppPermissions; - slug: string; - updated_at: string; -}; -declare type ChecksGetSuiteResponse = { - after: string; - app: ChecksGetSuiteResponseApp; - before: string; - conclusion: string; - head_branch: string; - head_sha: string; - id: number; - node_id: string; - pull_requests: Array; - repository: ChecksGetSuiteResponseRepository; - status: string; - url: string; -}; -declare type ChecksGetResponsePullRequestsItemHeadRepo = { - id: number; - name: string; - url: string; -}; -declare type ChecksGetResponsePullRequestsItemHead = { - ref: string; - repo: ChecksGetResponsePullRequestsItemHeadRepo; - sha: string; -}; -declare type ChecksGetResponsePullRequestsItemBaseRepo = { - id: number; - name: string; - url: string; -}; -declare type ChecksGetResponsePullRequestsItemBase = { - ref: string; - repo: ChecksGetResponsePullRequestsItemBaseRepo; - sha: string; -}; -declare type ChecksGetResponsePullRequestsItem = { - base: ChecksGetResponsePullRequestsItemBase; - head: ChecksGetResponsePullRequestsItemHead; - id: number; - number: number; - url: string; -}; -declare type ChecksGetResponseOutput = { - annotations_count: number; - annotations_url: string; - summary: string; - text: string; - title: string; -}; -declare type ChecksGetResponseCheckSuite = { - id: number; -}; -declare type ChecksGetResponseAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ChecksGetResponseAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ChecksGetResponseApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksGetResponseAppOwner; - permissions: ChecksGetResponseAppPermissions; - slug: string; - updated_at: string; -}; -declare type ChecksGetResponse = { - app: ChecksGetResponseApp; - check_suite: ChecksGetResponseCheckSuite; - completed_at: string; - conclusion: string; - details_url: string; - external_id: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - output: ChecksGetResponseOutput; - pull_requests: Array; - started_at: string; - status: string; - url: string; -}; -declare type ChecksCreateSuiteResponseRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ChecksCreateSuiteResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ChecksCreateSuiteResponseRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ChecksCreateSuiteResponseRepositoryOwner; - permissions: ChecksCreateSuiteResponseRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ChecksCreateSuiteResponseAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ChecksCreateSuiteResponseAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ChecksCreateSuiteResponseApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksCreateSuiteResponseAppOwner; - permissions: ChecksCreateSuiteResponseAppPermissions; - slug: string; - updated_at: string; -}; -declare type ChecksCreateSuiteResponse = { - after: string; - app: ChecksCreateSuiteResponseApp; - before: string; - conclusion: string; - head_branch: string; - head_sha: string; - id: number; - node_id: string; - pull_requests: Array; - repository: ChecksCreateSuiteResponseRepository; - status: string; - url: string; -}; -declare type ChecksCreateResponsePullRequestsItemHeadRepo = { - id: number; - name: string; - url: string; -}; -declare type ChecksCreateResponsePullRequestsItemHead = { - ref: string; - repo: ChecksCreateResponsePullRequestsItemHeadRepo; - sha: string; -}; -declare type ChecksCreateResponsePullRequestsItemBaseRepo = { - id: number; - name: string; - url: string; -}; -declare type ChecksCreateResponsePullRequestsItemBase = { - ref: string; - repo: ChecksCreateResponsePullRequestsItemBaseRepo; - sha: string; -}; -declare type ChecksCreateResponsePullRequestsItem = { - base: ChecksCreateResponsePullRequestsItemBase; - head: ChecksCreateResponsePullRequestsItemHead; - id: number; - number: number; - url: string; -}; -declare type ChecksCreateResponseOutput = { - summary: string; - text: string; - title: string; - annotations_count?: number; - annotations_url?: string; -}; -declare type ChecksCreateResponseCheckSuite = { - id: number; -}; -declare type ChecksCreateResponseAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type ChecksCreateResponseAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type ChecksCreateResponseApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksCreateResponseAppOwner; - permissions: ChecksCreateResponseAppPermissions; - slug: string; - updated_at: string; -}; -declare type ChecksCreateResponse = { - app: ChecksCreateResponseApp; - check_suite: ChecksCreateResponseCheckSuite; - completed_at: null | string; - conclusion: null | string; - details_url: string; - external_id: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - output: ChecksCreateResponseOutput; - pull_requests: Array; - started_at: string; - status: string; - url: string; -}; -declare type AppsResetTokenResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsResetTokenResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type AppsResetTokenResponse = { - app: AppsResetTokenResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: AppsResetTokenResponseUser; -}; -declare type AppsResetAuthorizationResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsResetAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type AppsResetAuthorizationResponse = { - app: AppsResetAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: AppsResetAuthorizationResponseUser; -}; -declare type AppsListReposResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsListReposResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: AppsListReposResponseRepositoriesItemOwner; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type AppsListReposResponse = { - repositories: Array; - total_count: number; -}; -declare type AppsListPlansStubbedResponseItem = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsListPlansResponseItem = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemPlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemAccount = { - email: null; - id: number; - login: string; - organization_billing_email: string; - type: string; - url: string; -}; -declare type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItem = { - account: AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemAccount; - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemPlan; - unit_count: null; - updated_at: string; -}; -declare type AppsListMarketplacePurchasesForAuthenticatedUserResponseItemPlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsListMarketplacePurchasesForAuthenticatedUserResponseItemAccount = { - email: null; - id: number; - login: string; - organization_billing_email: string; - type: string; - url: string; -}; -declare type AppsListMarketplacePurchasesForAuthenticatedUserResponseItem = { - account: AppsListMarketplacePurchasesForAuthenticatedUserResponseItemAccount; - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsListMarketplacePurchasesForAuthenticatedUserResponseItemPlan; - unit_count: null; - updated_at: string; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseInstallationsItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseInstallationsItemAccount = { - avatar_url: string; - description?: string; - events_url: string; - hooks_url?: string; - id: number; - issues_url?: string; - login: string; - members_url?: string; - node_id: string; - public_members_url?: string; - repos_url: string; - url: string; - followers_url?: string; - following_url?: string; - gists_url?: string; - gravatar_id?: string; - html_url?: string; - organizations_url?: string; - received_events_url?: string; - site_admin?: boolean; - starred_url?: string; - subscriptions_url?: string; - type?: string; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseInstallationsItem = { - access_tokens_url: string; - account: AppsListInstallationsForAuthenticatedUserResponseInstallationsItemAccount; - app_id: number; - events: Array; - html_url: string; - id: number; - permissions: AppsListInstallationsForAuthenticatedUserResponseInstallationsItemPermissions; - repositories_url: string; - single_file_name: string; - target_id: number; - target_type: string; -}; -declare type AppsListInstallationsForAuthenticatedUserResponse = { - installations: Array; - total_count: number; -}; -declare type AppsListInstallationsResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type AppsListInstallationsResponseItemAccount = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type AppsListInstallationsResponseItem = { - access_tokens_url: string; - account: AppsListInstallationsResponseItemAccount; - app_id: number; - events: Array; - html_url: string; - id: number; - permissions: AppsListInstallationsResponseItemPermissions; - repositories_url: string; - repository_selection: string; - single_file_name: string; - target_id: number; - target_type: string; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemOwner; - permissions: AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponse = { - repositories: Array; - total_count: number; -}; -declare type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchasePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchase = { - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchasePlan; - unit_count: null; - updated_at: string; -}; -declare type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChangePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChange = { - effective_date: string; - id: number; - plan: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChangePlan; - unit_count: null; -}; -declare type AppsListAccountsUserOrOrgOnPlanStubbedResponseItem = { - email: null; - id: number; - login: string; - marketplace_pending_change: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchase; - organization_billing_email: string; - type: string; - url: string; -}; -declare type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchasePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchase = { - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchasePlan; - unit_count: null; - updated_at: string; -}; -declare type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChangePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChange = { - effective_date: string; - id: number; - plan: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChangePlan; - unit_count: null; -}; -declare type AppsListAccountsUserOrOrgOnPlanResponseItem = { - email: null; - id: number; - login: string; - marketplace_pending_change: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchase; - organization_billing_email: string; - type: string; - url: string; -}; -declare type AppsGetUserInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; -}; -declare type AppsGetUserInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsGetUserInstallationResponse = { - access_tokens_url: string; - account: AppsGetUserInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsGetUserInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; -}; -declare type AppsGetRepoInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; -}; -declare type AppsGetRepoInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsGetRepoInstallationResponse = { - access_tokens_url: string; - account: AppsGetRepoInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsGetRepoInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; -}; -declare type AppsGetOrgInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; -}; -declare type AppsGetOrgInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsGetOrgInstallationResponse = { - access_tokens_url: string; - account: AppsGetOrgInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsGetOrgInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; -}; -declare type AppsGetInstallationResponsePermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type AppsGetInstallationResponseAccount = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type AppsGetInstallationResponse = { - access_tokens_url: string; - account: AppsGetInstallationResponseAccount; - app_id: number; - events: Array; - html_url: string; - id: number; - permissions: AppsGetInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: string; - target_id: number; - target_type: string; -}; -declare type AppsGetBySlugResponsePermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type AppsGetBySlugResponseOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type AppsGetBySlugResponse = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: AppsGetBySlugResponseOwner; - permissions: AppsGetBySlugResponsePermissions; - slug: string; - updated_at: string; -}; -declare type AppsGetAuthenticatedResponsePermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; -}; -declare type AppsGetAuthenticatedResponseOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; -}; -declare type AppsGetAuthenticatedResponse = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - installations_count: number; - name: string; - node_id: string; - owner: AppsGetAuthenticatedResponseOwner; - permissions: AppsGetAuthenticatedResponsePermissions; - slug: string; - updated_at: string; -}; -declare type AppsFindUserInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; -}; -declare type AppsFindUserInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsFindUserInstallationResponse = { - access_tokens_url: string; - account: AppsFindUserInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsFindUserInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; -}; -declare type AppsFindRepoInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; -}; -declare type AppsFindRepoInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsFindRepoInstallationResponse = { - access_tokens_url: string; - account: AppsFindRepoInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsFindRepoInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; -}; -declare type AppsFindOrgInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; -}; -declare type AppsFindOrgInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsFindOrgInstallationResponse = { - access_tokens_url: string; - account: AppsFindOrgInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsFindOrgInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; -}; -declare type AppsCreateInstallationTokenResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type AppsCreateInstallationTokenResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsCreateInstallationTokenResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: AppsCreateInstallationTokenResponseRepositoriesItemOwner; - permissions: AppsCreateInstallationTokenResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type AppsCreateInstallationTokenResponsePermissions = { - contents: string; - issues: string; -}; -declare type AppsCreateInstallationTokenResponse = { - expires_at: string; - permissions: AppsCreateInstallationTokenResponsePermissions; - repositories: Array; - token: string; -}; -declare type AppsCreateFromManifestResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsCreateFromManifestResponse = { - client_id: string; - client_secret: string; - created_at: string; - description: null; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: AppsCreateFromManifestResponseOwner; - pem: string; - updated_at: string; - webhook_secret: string; -}; -declare type AppsCreateContentAttachmentResponse = { - body: string; - id: number; - title: string; -}; -declare type AppsCheckTokenResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsCheckTokenResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type AppsCheckTokenResponse = { - app: AppsCheckTokenResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: AppsCheckTokenResponseUser; -}; -declare type AppsCheckAuthorizationResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type AppsCheckAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; -}; -declare type AppsCheckAuthorizationResponse = { - app: AppsCheckAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: AppsCheckAuthorizationResponseUser; -}; -declare type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchasePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchase = { - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchasePlan; - unit_count: null; - updated_at: string; -}; -declare type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChangePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChange = { - effective_date: string; - id: number; - plan: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChangePlan; - unit_count: null; -}; -declare type AppsCheckAccountIsAssociatedWithAnyStubbedResponse = { - email: null; - id: number; - login: string; - marketplace_pending_change: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChange; - marketplace_purchase: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchase; - organization_billing_email: string; - type: string; - url: string; -}; -declare type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchasePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchase = { - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchasePlan; - unit_count: null; - updated_at: string; -}; -declare type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChangePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; -}; -declare type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChange = { - effective_date: string; - id: number; - plan: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChangePlan; - unit_count: null; -}; -declare type AppsCheckAccountIsAssociatedWithAnyResponse = { - email: null; - id: number; - login: string; - marketplace_pending_change: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChange; - marketplace_purchase: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchase; - organization_billing_email: string; - type: string; - url: string; -}; -declare type ActivitySetThreadSubscriptionResponse = { - created_at: string; - ignored: boolean; - reason: null; - subscribed: boolean; - thread_url: string; - url: string; -}; -declare type ActivitySetRepoSubscriptionResponse = { - created_at: string; - ignored: boolean; - reason: null; - repository_url: string; - subscribed: boolean; - url: string; -}; -declare type ActivityListWatchersForRepoResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: ActivityListWatchedReposForAuthenticatedUserResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ActivityListWatchedReposForAuthenticatedUserResponseItemOwner; - permissions: ActivityListWatchedReposForAuthenticatedUserResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ActivityListStargazersForRepoResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActivityListReposWatchedByUserResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ActivityListReposWatchedByUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActivityListReposWatchedByUserResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; -}; -declare type ActivityListReposWatchedByUserResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: ActivityListReposWatchedByUserResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ActivityListReposWatchedByUserResponseItemOwner; - permissions: ActivityListReposWatchedByUserResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ActivityListReposStarredByUserResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ActivityListReposStarredByUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActivityListReposStarredByUserResponseItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ActivityListReposStarredByUserResponseItemOwner; - permissions: ActivityListReposStarredByUserResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ActivityListReposStarredByAuthenticatedUserResponseItemOwner; - permissions: ActivityListReposStarredByAuthenticatedUserResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; -}; -declare type ActivityListNotificationsForRepoResponseItemSubject = { - latest_comment_url: string; - title: string; - type: string; - url: string; -}; -declare type ActivityListNotificationsForRepoResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActivityListNotificationsForRepoResponseItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActivityListNotificationsForRepoResponseItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ActivityListNotificationsForRepoResponseItem = { - id: string; - last_read_at: string; - reason: string; - repository: ActivityListNotificationsForRepoResponseItemRepository; - subject: ActivityListNotificationsForRepoResponseItemSubject; - unread: boolean; - updated_at: string; - url: string; -}; -declare type ActivityListNotificationsResponseItemSubject = { - latest_comment_url: string; - title: string; - type: string; - url: string; -}; -declare type ActivityListNotificationsResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActivityListNotificationsResponseItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActivityListNotificationsResponseItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ActivityListNotificationsResponseItem = { - id: string; - last_read_at: string; - reason: string; - repository: ActivityListNotificationsResponseItemRepository; - subject: ActivityListNotificationsResponseItemSubject; - unread: boolean; - updated_at: string; - url: string; -}; -declare type ActivityListFeedsResponseLinksUser = { - href: string; - type: string; -}; -declare type ActivityListFeedsResponseLinksTimeline = { - href: string; - type: string; -}; -declare type ActivityListFeedsResponseLinksSecurityAdvisories = { - href: string; - type: string; -}; -declare type ActivityListFeedsResponseLinksCurrentUserPublic = { - href: string; - type: string; -}; -declare type ActivityListFeedsResponseLinksCurrentUserOrganizationsItem = { - href: string; - type: string; -}; -declare type ActivityListFeedsResponseLinksCurrentUserOrganization = { - href: string; - type: string; -}; -declare type ActivityListFeedsResponseLinksCurrentUserActor = { - href: string; - type: string; -}; -declare type ActivityListFeedsResponseLinksCurrentUser = { - href: string; - type: string; -}; -declare type ActivityListFeedsResponseLinks = { - current_user: ActivityListFeedsResponseLinksCurrentUser; - current_user_actor: ActivityListFeedsResponseLinksCurrentUserActor; - current_user_organization: ActivityListFeedsResponseLinksCurrentUserOrganization; - current_user_organizations: Array; - current_user_public: ActivityListFeedsResponseLinksCurrentUserPublic; - security_advisories: ActivityListFeedsResponseLinksSecurityAdvisories; - timeline: ActivityListFeedsResponseLinksTimeline; - user: ActivityListFeedsResponseLinksUser; -}; -declare type ActivityListFeedsResponse = { - _links: ActivityListFeedsResponseLinks; - current_user_actor_url: string; - current_user_organization_url: string; - current_user_organization_urls: Array; - current_user_public_url: string; - current_user_url: string; - security_advisories_url: string; - timeline_url: string; - user_url: string; -}; -declare type ActivityGetThreadSubscriptionResponse = { - created_at: string; - ignored: boolean; - reason: null; - subscribed: boolean; - thread_url: string; - url: string; -}; -declare type ActivityGetThreadResponseSubject = { - latest_comment_url: string; - title: string; - type: string; - url: string; -}; -declare type ActivityGetThreadResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActivityGetThreadResponseRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActivityGetThreadResponseRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ActivityGetThreadResponse = { - id: string; - last_read_at: string; - reason: string; - repository: ActivityGetThreadResponseRepository; - subject: ActivityGetThreadResponseSubject; - unread: boolean; - updated_at: string; - url: string; -}; -declare type ActivityGetRepoSubscriptionResponse = { - created_at: string; - ignored: boolean; - reason: null; - repository_url: string; - subscribed: boolean; - url: string; -}; -declare type ActionsListWorkflowRunsResponseWorkflowRunsItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActionsListWorkflowRunsResponseWorkflowRunsItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsListWorkflowRunsResponseWorkflowRunsItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ActionsListWorkflowRunsResponseWorkflowRunsItemHeadRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActionsListWorkflowRunsResponseWorkflowRunsItemHeadRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: null; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - hooks_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsListWorkflowRunsResponseWorkflowRunsItemHeadRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommitCommitter = { - email: string; - name: string; -}; -declare type ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommitAuthor = { - email: string; - name: string; -}; -declare type ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommit = { - author: ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommitAuthor; - committer: ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommitCommitter; - id: string; - message: string; - timestamp: string; - tree_id: string; -}; -declare type ActionsListWorkflowRunsResponseWorkflowRunsItem = { - artifacts_url: string; - cancel_url: string; - check_suite_id: number; - conclusion: null; - created_at: string; - event: string; - head_branch: string; - head_commit: ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommit; - head_repository: ActionsListWorkflowRunsResponseWorkflowRunsItemHeadRepository; - head_sha: string; - html_url: string; - id: number; - jobs_url: string; - logs_url: string; - node_id: string; - pull_requests: Array; - repository: ActionsListWorkflowRunsResponseWorkflowRunsItemRepository; - rerun_url: string; - run_number: number; - status: string; - updated_at: string; - url: string; - workflow_url: string; -}; -declare type ActionsListWorkflowRunsResponse = { - total_count: number; - workflow_runs: Array; -}; -declare type ActionsListWorkflowRunArtifactsResponseArtifactsItem = { - archive_download_url: string; - created_at: string; - expired: string; - expires_at: string; - id: number; - name: string; - node_id: string; - size_in_bytes: number; -}; -declare type ActionsListWorkflowRunArtifactsResponse = { - artifacts: Array; - total_count: number; -}; -declare type ActionsListSelfHostedRunnersForRepoResponseItemItem = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsListSecretsForRepoResponseSecretsItem = { - created_at: string; - name: string; - updated_at: string; -}; -declare type ActionsListSecretsForRepoResponse = { - secrets: Array; - total_count: number; -}; -declare type ActionsListRepoWorkflowsResponseWorkflowsItem = { - badge_url: string; - created_at: string; - html_url: string; - id: number; - name: string; - node_id: string; - path: string; - state: string; - updated_at: string; - url: string; -}; -declare type ActionsListRepoWorkflowsResponse = { - total_count: number; - workflows: Array; -}; -declare type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: null; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - hooks_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommitCommitter = { - email: string; - name: string; -}; -declare type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommitAuthor = { - email: string; - name: string; -}; -declare type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommit = { - author: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommitAuthor; - committer: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommitCommitter; - id: string; - message: string; - timestamp: string; - tree_id: string; -}; -declare type ActionsListRepoWorkflowRunsResponseWorkflowRunsItem = { - artifacts_url: string; - cancel_url: string; - check_suite_id: number; - conclusion: null; - created_at: string; - event: string; - head_branch: string; - head_commit: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommit; - head_repository: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadRepository; - head_sha: string; - html_url: string; - id: number; - jobs_url: string; - logs_url: string; - node_id: string; - pull_requests: Array; - repository: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemRepository; - rerun_url: string; - run_number: number; - status: string; - updated_at: string; - url: string; - workflow_url: string; -}; -declare type ActionsListRepoWorkflowRunsResponse = { - total_count: number; - workflow_runs: Array; -}; -declare type ActionsListJobsForWorkflowRunResponseJobsItemStepsItem = { - completed_at: string; - conclusion: string; - name: string; - number: number; - started_at: string; - status: string; -}; -declare type ActionsListJobsForWorkflowRunResponseJobsItem = { - check_run_url: string; - completed_at: string; - conclusion: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - run_id: number; - run_url: string; - started_at: string; - status: string; - steps: Array; - url: string; -}; -declare type ActionsListJobsForWorkflowRunResponse = { - jobs: Array; - total_count: number; -}; -declare type ActionsListDownloadsForSelfHostedRunnerApplicationResponseItem = { - architecture: string; - download_url: string; - filename: string; - os: string; -}; -declare type ActionsGetWorkflowRunResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActionsGetWorkflowRunResponseRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsGetWorkflowRunResponseRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ActionsGetWorkflowRunResponseHeadRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; -}; -declare type ActionsGetWorkflowRunResponseHeadRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: null; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - hooks_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsGetWorkflowRunResponseHeadRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; -}; -declare type ActionsGetWorkflowRunResponseHeadCommitCommitter = { - email: string; - name: string; -}; -declare type ActionsGetWorkflowRunResponseHeadCommitAuthor = { - email: string; - name: string; -}; -declare type ActionsGetWorkflowRunResponseHeadCommit = { - author: ActionsGetWorkflowRunResponseHeadCommitAuthor; - committer: ActionsGetWorkflowRunResponseHeadCommitCommitter; - id: string; - message: string; - timestamp: string; - tree_id: string; -}; -declare type ActionsGetWorkflowRunResponse = { - artifacts_url: string; - cancel_url: string; - check_suite_id: number; - conclusion: null; - created_at: string; - event: string; - head_branch: string; - head_commit: ActionsGetWorkflowRunResponseHeadCommit; - head_repository: ActionsGetWorkflowRunResponseHeadRepository; - head_sha: string; - html_url: string; - id: number; - jobs_url: string; - logs_url: string; - node_id: string; - pull_requests: Array; - repository: ActionsGetWorkflowRunResponseRepository; - rerun_url: string; - run_number: number; - status: string; - updated_at: string; - url: string; - workflow_url: string; -}; -declare type ActionsGetWorkflowJobResponseStepsItem = { - completed_at: string; - conclusion: string; - name: string; - number: number; - started_at: string; - status: string; -}; -declare type ActionsGetWorkflowJobResponse = { - check_run_url: string; - completed_at: string; - conclusion: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - run_id: number; - run_url: string; - started_at: string; - status: string; - steps: Array; - url: string; -}; -declare type ActionsGetWorkflowResponse = { - badge_url: string; - created_at: string; - html_url: string; - id: number; - name: string; - node_id: string; - path: string; - state: string; - updated_at: string; - url: string; -}; -declare type ActionsGetSelfHostedRunnerResponse = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsGetSecretResponse = { - created_at: string; - name: string; - updated_at: string; -}; -declare type ActionsGetPublicKeyResponse = { - key: string; - key_id: string; -}; -declare type ActionsGetArtifactResponse = { - archive_download_url: string; - created_at: string; - expired: string; - expires_at: string; - id: number; - name: string; - node_id: string; - size_in_bytes: number; -}; -declare type ActionsCreateRemoveTokenResponse = { - expires_at: string; - token: string; -}; -declare type ActionsCreateRegistrationTokenResponse = { - expires_at: string; - token: string; -}; -declare type ActionsListDownloadsForSelfHostedRunnerApplicationResponse = Array; -declare type ActionsListSelfHostedRunnersForRepoResponse = Array>; -declare type ActivityListNotificationsResponse = Array; -declare type ActivityListNotificationsForRepoResponse = Array; -declare type ActivityListReposStarredByAuthenticatedUserResponse = Array; -declare type ActivityListReposStarredByUserResponse = Array; -declare type ActivityListReposWatchedByUserResponse = Array; -declare type ActivityListStargazersForRepoResponse = Array; -declare type ActivityListWatchedReposForAuthenticatedUserResponse = Array; -declare type ActivityListWatchersForRepoResponse = Array; -declare type AppsListAccountsUserOrOrgOnPlanResponse = Array; -declare type AppsListAccountsUserOrOrgOnPlanStubbedResponse = Array; -declare type AppsListInstallationsResponse = Array; -declare type AppsListMarketplacePurchasesForAuthenticatedUserResponse = Array; -declare type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponse = Array; -declare type AppsListPlansResponse = Array; -declare type AppsListPlansStubbedResponse = Array; -declare type ChecksListAnnotationsResponse = Array; -declare type CodesOfConductListConductCodesResponse = Array; -declare type GistsListResponse = Array; -declare type GistsListCommentsResponse = Array; -declare type GistsListCommitsResponse = Array; -declare type GistsListForksResponse = Array; -declare type GistsListPublicResponse = Array; -declare type GistsListPublicForUserResponse = Array; -declare type GistsListStarredResponse = Array; -declare type GitListMatchingRefsResponse = Array; -declare type GitignoreListTemplatesResponse = Array; -declare type IssuesAddLabelsResponse = Array; -declare type IssuesListResponse = Array; -declare type IssuesListAssigneesResponse = Array; -declare type IssuesListCommentsResponse = Array; -declare type IssuesListCommentsForRepoResponse = Array; -declare type IssuesListEventsResponse = Array; -declare type IssuesListEventsForRepoResponse = Array; -declare type IssuesListEventsForTimelineResponse = Array; -declare type IssuesListForAuthenticatedUserResponse = Array; -declare type IssuesListForOrgResponse = Array; -declare type IssuesListForRepoResponse = Array; -declare type IssuesListLabelsForMilestoneResponse = Array; -declare type IssuesListLabelsForRepoResponse = Array; -declare type IssuesListLabelsOnIssueResponse = Array; -declare type IssuesListMilestonesForRepoResponse = Array; -declare type IssuesRemoveLabelResponse = Array; -declare type IssuesReplaceLabelsResponse = Array; -declare type LicensesListResponse = Array; -declare type LicensesListCommonlyUsedResponse = Array; -declare type MigrationsGetCommitAuthorsResponse = Array; -declare type MigrationsGetLargeFilesResponse = Array; -declare type MigrationsListForAuthenticatedUserResponse = Array; -declare type MigrationsListForOrgResponse = Array; -declare type MigrationsListReposForOrgResponse = Array; -declare type MigrationsListReposForUserResponse = Array; -declare type OauthAuthorizationsListAuthorizationsResponse = Array; -declare type OauthAuthorizationsListGrantsResponse = Array; -declare type OrgsListResponse = Array; -declare type OrgsListBlockedUsersResponse = Array; -declare type OrgsListForAuthenticatedUserResponse = Array; -declare type OrgsListForUserResponse = Array; -declare type OrgsListHooksResponse = Array; -declare type OrgsListInvitationTeamsResponse = Array; -declare type OrgsListMembersResponse = Array; -declare type OrgsListMembershipsResponse = Array; -declare type OrgsListOutsideCollaboratorsResponse = Array; -declare type OrgsListPendingInvitationsResponse = Array; -declare type OrgsListPublicMembersResponse = Array; -declare type ProjectsListCardsResponse = Array; -declare type ProjectsListCollaboratorsResponse = Array; -declare type ProjectsListColumnsResponse = Array; -declare type ProjectsListForOrgResponse = Array; -declare type ProjectsListForRepoResponse = Array; -declare type ProjectsListForUserResponse = Array; -declare type PullsGetCommentsForReviewResponse = Array; -declare type PullsListResponse = Array; -declare type PullsListCommentsResponse = Array; -declare type PullsListCommentsForRepoResponse = Array; -declare type PullsListCommitsResponse = Array; -declare type PullsListFilesResponse = Array; -declare type PullsListReviewsResponse = Array; -declare type ReactionsListForCommitCommentResponse = Array; -declare type ReactionsListForIssueResponse = Array; -declare type ReactionsListForIssueCommentResponse = Array; -declare type ReactionsListForPullRequestReviewCommentResponse = Array; -declare type ReactionsListForTeamDiscussionResponse = Array; -declare type ReactionsListForTeamDiscussionCommentResponse = Array; -declare type ReactionsListForTeamDiscussionCommentInOrgResponse = Array; -declare type ReactionsListForTeamDiscussionCommentLegacyResponse = Array; -declare type ReactionsListForTeamDiscussionInOrgResponse = Array; -declare type ReactionsListForTeamDiscussionLegacyResponse = Array; -declare type ReposAddProtectedBranchAppRestrictionsResponse = Array; -declare type ReposAddProtectedBranchRequiredStatusChecksContextsResponse = Array; -declare type ReposAddProtectedBranchTeamRestrictionsResponse = Array; -declare type ReposAddProtectedBranchUserRestrictionsResponse = Array; -declare type ReposGetAppsWithAccessToProtectedBranchResponse = Array; -declare type ReposGetCodeFrequencyStatsResponse = Array>; -declare type ReposGetCommitActivityStatsResponse = Array; -declare type ReposGetContributorsStatsResponse = Array; -declare type ReposGetPunchCardStatsResponse = Array>; -declare type ReposGetTeamsWithAccessToProtectedBranchResponse = Array; -declare type ReposGetTopPathsResponse = Array; -declare type ReposGetTopReferrersResponse = Array; -declare type ReposGetUsersWithAccessToProtectedBranchResponse = Array; -declare type ReposListAppsWithAccessToProtectedBranchResponse = Array; -declare type ReposListAssetsForReleaseResponse = Array; -declare type ReposListBranchesResponse = Array; -declare type ReposListBranchesForHeadCommitResponse = Array; -declare type ReposListCollaboratorsResponse = Array; -declare type ReposListCommentsForCommitResponse = Array; -declare type ReposListCommitCommentsResponse = Array; -declare type ReposListCommitsResponse = Array; -declare type ReposListContributorsResponse = Array; -declare type ReposListDeployKeysResponse = Array; -declare type ReposListDeploymentStatusesResponse = Array; -declare type ReposListDeploymentsResponse = Array; -declare type ReposListDownloadsResponse = Array; -declare type ReposListForOrgResponse = Array; -declare type ReposListForksResponse = Array; -declare type ReposListHooksResponse = Array; -declare type ReposListInvitationsResponse = Array; -declare type ReposListInvitationsForAuthenticatedUserResponse = Array; -declare type ReposListPagesBuildsResponse = Array; -declare type ReposListProtectedBranchRequiredStatusChecksContextsResponse = Array; -declare type ReposListProtectedBranchTeamRestrictionsResponse = Array; -declare type ReposListProtectedBranchUserRestrictionsResponse = Array; -declare type ReposListPublicResponse = Array; -declare type ReposListPullRequestsAssociatedWithCommitResponse = Array; -declare type ReposListReleasesResponse = Array; -declare type ReposListStatusesForRefResponse = Array; -declare type ReposListTagsResponse = Array; -declare type ReposListTeamsResponse = Array; -declare type ReposListTeamsWithAccessToProtectedBranchResponse = Array; -declare type ReposListUsersWithAccessToProtectedBranchResponse = Array; -declare type ReposRemoveProtectedBranchAppRestrictionsResponse = Array; -declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsResponse = Array; -declare type ReposRemoveProtectedBranchTeamRestrictionsResponse = Array; -declare type ReposRemoveProtectedBranchUserRestrictionsResponse = Array; -declare type ReposReplaceProtectedBranchAppRestrictionsResponse = Array; -declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsResponse = Array; -declare type ReposReplaceProtectedBranchTeamRestrictionsResponse = Array; -declare type ReposReplaceProtectedBranchUserRestrictionsResponse = Array; -declare type TeamsListResponse = Array; -declare type TeamsListChildResponse = Array; -declare type TeamsListChildInOrgResponse = Array; -declare type TeamsListChildLegacyResponse = Array; -declare type TeamsListDiscussionCommentsResponse = Array; -declare type TeamsListDiscussionCommentsInOrgResponse = Array; -declare type TeamsListDiscussionCommentsLegacyResponse = Array; -declare type TeamsListDiscussionsResponse = Array; -declare type TeamsListDiscussionsInOrgResponse = Array; -declare type TeamsListDiscussionsLegacyResponse = Array; -declare type TeamsListForAuthenticatedUserResponse = Array; -declare type TeamsListMembersResponse = Array; -declare type TeamsListMembersInOrgResponse = Array; -declare type TeamsListMembersLegacyResponse = Array; -declare type TeamsListPendingInvitationsResponse = Array; -declare type TeamsListPendingInvitationsInOrgResponse = Array; -declare type TeamsListPendingInvitationsLegacyResponse = Array; -declare type TeamsListProjectsResponse = Array; -declare type TeamsListProjectsInOrgResponse = Array; -declare type TeamsListProjectsLegacyResponse = Array; -declare type TeamsListReposResponse = Array; -declare type TeamsListReposInOrgResponse = Array; -declare type TeamsListReposLegacyResponse = Array; -declare type UsersAddEmailsResponse = Array; -declare type UsersListResponse = Array; -declare type UsersListBlockedResponse = Array; -declare type UsersListEmailsResponse = Array; -declare type UsersListFollowersForAuthenticatedUserResponse = Array; -declare type UsersListFollowersForUserResponse = Array; -declare type UsersListFollowingForAuthenticatedUserResponse = Array; -declare type UsersListFollowingForUserResponse = Array; -declare type UsersListGpgKeysResponse = Array; -declare type UsersListGpgKeysForUserResponse = Array; -declare type UsersListPublicEmailsResponse = Array; -declare type UsersListPublicKeysResponse = Array; -declare type UsersListPublicKeysForUserResponse = Array; -declare type UsersTogglePrimaryEmailVisibilityResponse = Array; -export declare type ActionsCancelWorkflowRunParams = { - owner: string; - repo: string; - run_id: number; -}; -export declare type ActionsCreateOrUpdateSecretForRepoParams = { - /** - * Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get your public key](https://developer.github.com/v3/actions/secrets/#get-your-public-key) endpoint. - */ - encrypted_value?: string; - /** - * ID of the key you used to encrypt the secret. - */ - key_id?: string; - name: string; - owner: string; - repo: string; -}; -export declare type ActionsCreateRegistrationTokenParams = { - owner: string; - repo: string; -}; -export declare type ActionsCreateRemoveTokenParams = { - owner: string; - repo: string; -}; -export declare type ActionsDeleteArtifactParams = { - artifact_id: number; - owner: string; - repo: string; -}; -export declare type ActionsDeleteSecretFromRepoParams = { - name: string; - owner: string; - repo: string; -}; -export declare type ActionsDownloadArtifactParams = { - archive_format: string; - artifact_id: number; - owner: string; - repo: string; -}; -export declare type ActionsGetArtifactParams = { - artifact_id: number; - owner: string; - repo: string; -}; -export declare type ActionsGetPublicKeyParams = { - owner: string; - repo: string; -}; -export declare type ActionsGetSecretParams = { - name: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ActionsGetSelfHostedRunnerParams = { - owner: string; - repo: string; - runner_id: number; -}; -export declare type ActionsGetWorkflowParams = { - owner: string; - repo: string; - workflow_id: number; -}; -export declare type ActionsGetWorkflowJobParams = { - job_id: number; - owner: string; - repo: string; -}; -export declare type ActionsGetWorkflowRunParams = { - owner: string; - repo: string; - run_id: number; -}; -export declare type ActionsListDownloadsForSelfHostedRunnerApplicationParams = { - owner: string; - repo: string; -}; -export declare type ActionsListJobsForWorkflowRunParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - run_id: number; -}; -export declare type ActionsListRepoWorkflowRunsParams = { - /** - * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. - */ - actor?: string; - /** - * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. - */ - branch?: string; - /** - * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation. - */ - event?: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." - */ - status?: "completed" | "status" | "conclusion"; -}; -export declare type ActionsListRepoWorkflowsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ActionsListSecretsForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ActionsListSelfHostedRunnersForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ActionsListWorkflowJobLogsParams = { - job_id: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ActionsListWorkflowRunArtifactsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - run_id: number; -}; -export declare type ActionsListWorkflowRunLogsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - run_id: number; -}; -export declare type ActionsListWorkflowRunsParams = { - /** - * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. - */ - actor?: string; - /** - * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. - */ - branch?: string; - /** - * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation. - */ - event?: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." - */ - status?: "completed" | "status" | "conclusion"; - workflow_id: number; -}; -export declare type ActionsReRunWorkflowParams = { - owner: string; - repo: string; - run_id: number; -}; -export declare type ActionsRemoveSelfHostedRunnerParams = { - owner: string; - repo: string; - runner_id: number; -}; -export declare type ActivityCheckStarringRepoParams = { - owner: string; - repo: string; -}; -export declare type ActivityCheckWatchingRepoLegacyParams = { - owner: string; - repo: string; -}; -export declare type ActivityDeleteRepoSubscriptionParams = { - owner: string; - repo: string; -}; -export declare type ActivityDeleteThreadSubscriptionParams = { - thread_id: number; -}; -export declare type ActivityGetRepoSubscriptionParams = { - owner: string; - repo: string; -}; -export declare type ActivityGetThreadParams = { - thread_id: number; -}; -export declare type ActivityGetThreadSubscriptionParams = { - thread_id: number; -}; -export declare type ActivityListEventsForOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type ActivityListEventsForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type ActivityListNotificationsParams = { - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * 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`. - */ - before?: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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`. - */ - since?: string; -}; -export declare type ActivityListNotificationsForRepoParams = { - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * 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`. - */ - before?: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * 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`. - */ - since?: string; -}; -export declare type ActivityListPublicEventsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type ActivityListPublicEventsForOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type ActivityListPublicEventsForRepoNetworkParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ActivityListPublicEventsForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type ActivityListReceivedEventsForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type ActivityListReceivedPublicEventsForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type ActivityListRepoEventsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ActivityListReposStarredByAuthenticatedUserParams = { - /** - * One of `asc` (ascending) or `desc` (descending). - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). - */ - sort?: "created" | "updated"; -}; -export declare type ActivityListReposStarredByUserParams = { - /** - * One of `asc` (ascending) or `desc` (descending). - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). - */ - sort?: "created" | "updated"; - username: string; -}; -export declare type ActivityListReposWatchedByUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type ActivityListStargazersForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ActivityListWatchedReposForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type ActivityListWatchersForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ActivityMarkAsReadParams = { - /** - * Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. - */ - last_read_at?: string; -}; -export declare type ActivityMarkNotificationsAsReadForRepoParams = { - /** - * Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. - */ - last_read_at?: string; - owner: string; - repo: string; -}; -export declare type ActivityMarkThreadAsReadParams = { - thread_id: number; -}; -export declare type ActivitySetRepoSubscriptionParams = { - /** - * Determines if all notifications should be blocked from this repository. - */ - ignored?: boolean; - owner: string; - repo: string; - /** - * Determines if notifications should be received from this repository. - */ - subscribed?: boolean; -}; -export declare type ActivitySetThreadSubscriptionParams = { - /** - * Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread. - */ - ignored?: boolean; - thread_id: number; -}; -export declare type ActivityStarRepoParams = { - owner: string; - repo: string; -}; -export declare type ActivityStopWatchingRepoLegacyParams = { - owner: string; - repo: string; -}; -export declare type ActivityUnstarRepoParams = { - owner: string; - repo: string; -}; -export declare type ActivityWatchRepoLegacyParams = { - owner: string; - repo: string; -}; -export declare type AppsAddRepoToInstallationParams = { - installation_id: number; - repository_id: number; -}; -export declare type AppsCheckAccountIsAssociatedWithAnyParams = { - account_id: number; -}; -export declare type AppsCheckAccountIsAssociatedWithAnyStubbedParams = { - account_id: number; -}; -export declare type AppsCheckAuthorizationParams = { - access_token: string; - client_id: string; -}; -export declare type AppsCheckTokenParams = { - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; - client_id: string; -}; -export declare type AppsCreateContentAttachmentParams = { - /** - * The body text of the content attachment displayed in the body or comment of an issue or pull request. This parameter supports markdown. - */ - body: string; - content_reference_id: number; - /** - * The title of the content attachment displayed in the body or comment of an issue or pull request. - */ - title: string; -}; -export declare type AppsCreateFromManifestParams = { - code: string; -}; -export declare type AppsCreateInstallationTokenParams = { - installation_id: number; - /** - * The permissions granted to the access token. The permissions object includes the permission names and their access type. For a complete list of permissions and allowable values, see "[GitHub App permissions](https://developer.github.com/apps/building-github-apps/creating-github-apps-using-url-parameters/#github-app-permissions)." - */ - permissions?: AppsCreateInstallationTokenParamsPermissions; - /** - * The `id`s of the repositories that the installation token can access. Providing repository `id`s restricts the access of an installation token to specific repositories. You can use the "[List repositories](https://developer.github.com/v3/apps/installations/#list-repositories)" endpoint to get the `id` of all repositories that an installation can access. For example, you can select specific repositories when creating an installation token to restrict the number of repositories that can be cloned using the token. - */ - repository_ids?: number[]; -}; -export declare type AppsDeleteAuthorizationParams = { - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; - client_id: string; -}; -export declare type AppsDeleteInstallationParams = { - installation_id: number; -}; -export declare type AppsDeleteTokenParams = { - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; - client_id: string; -}; -export declare type AppsFindOrgInstallationParams = { - org: string; -}; -export declare type AppsFindRepoInstallationParams = { - owner: string; - repo: string; -}; -export declare type AppsFindUserInstallationParams = { - username: string; -}; -export declare type AppsGetBySlugParams = { - app_slug: string; -}; -export declare type AppsGetInstallationParams = { - installation_id: number; -}; -export declare type AppsGetOrgInstallationParams = { - org: string; -}; -export declare type AppsGetRepoInstallationParams = { - owner: string; - repo: string; -}; -export declare type AppsGetUserInstallationParams = { - username: string; -}; -export declare type AppsListAccountsUserOrOrgOnPlanParams = { - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; -}; -export declare type AppsListAccountsUserOrOrgOnPlanStubbedParams = { - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; -}; -export declare type AppsListInstallationReposForAuthenticatedUserParams = { - installation_id: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type AppsListInstallationsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type AppsListInstallationsForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type AppsListMarketplacePurchasesForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type AppsListMarketplacePurchasesForAuthenticatedUserStubbedParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type AppsListPlansParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type AppsListPlansStubbedParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type AppsListReposParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type AppsRemoveRepoFromInstallationParams = { - installation_id: number; - repository_id: number; -}; -export declare type AppsResetAuthorizationParams = { - access_token: string; - client_id: string; -}; -export declare type AppsResetTokenParams = { - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; - client_id: string; -}; -export declare type AppsRevokeAuthorizationForApplicationParams = { - access_token: string; - client_id: string; -}; -export declare type AppsRevokeGrantForApplicationParams = { - access_token: string; - client_id: string; -}; -export declare type ChecksCreateParams = { - /** - * 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://developer.github.com/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." - */ - actions?: ChecksCreateParamsActions[]; - /** - * 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`. - */ - completed_at?: string; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. 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`. - */ - conclusion?: "success" | "failure" | "neutral" | "cancelled" | "timed_out" | "action_required"; - /** - * The URL of the integrator's site that has the full details of the check. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * The SHA of the commit. - */ - head_sha: string; - /** - * The name of the check. For example, "code-coverage". - */ - name: string; - /** - * 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://developer.github.com/v3/checks/runs/#output-object) description. - */ - output?: ChecksCreateParamsOutput; - owner: string; - repo: string; - /** - * 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`. - */ - started_at?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; -}; -export declare type ChecksCreateSuiteParams = { - /** - * The sha of the head commit. - */ - head_sha: string; - owner: string; - repo: string; -}; -export declare type ChecksGetParams = { - check_run_id: number; - owner: string; - repo: string; -}; -export declare type ChecksGetSuiteParams = { - check_suite_id: number; - owner: string; - repo: string; -}; -export declare type ChecksListAnnotationsParams = { - check_run_id: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ChecksListForRefParams = { - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - ref: string; - repo: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; -}; -export declare type ChecksListForSuiteParams = { - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - check_suite_id: number; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; -}; -export declare type ChecksListSuitesForRefParams = { - /** - * Filters check suites by GitHub App `id`. - */ - app_id?: number; - /** - * Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/). - */ - check_name?: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - ref: string; - repo: string; -}; -export declare type ChecksRerequestSuiteParams = { - check_suite_id: number; - owner: string; - repo: string; -}; -export declare type ChecksSetSuitesPreferencesParams = { - /** - * Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/v3/checks/suites/#auto_trigger_checks-object) description for details. - */ - auto_trigger_checks?: ChecksSetSuitesPreferencesParamsAutoTriggerChecks[]; - owner: string; - repo: string; -}; -export declare type ChecksUpdateParams = { - /** - * 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://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." - */ - actions?: ChecksUpdateParamsActions[]; - check_run_id: number; - /** - * 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`. - */ - completed_at?: string; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. - * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. - */ - conclusion?: "success" | "failure" | "neutral" | "cancelled" | "timed_out" | "action_required"; - /** - * The URL of the integrator's site that has the full details of the check. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * The name of the check. For example, "code-coverage". - */ - name?: string; - /** - * 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://developer.github.com/v3/checks/runs/#output-object-1) description. - */ - output?: ChecksUpdateParamsOutput; - owner: string; - repo: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - started_at?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; -}; -export declare type CodesOfConductGetConductCodeParams = { - key: string; -}; -export declare type CodesOfConductGetForRepoParams = { - owner: string; - repo: string; -}; -export declare type GistsCheckIsStarredParams = { - gist_id: string; -}; -export declare type GistsCreateParams = { - /** - * A descriptive name for this gist. - */ - description?: string; - /** - * The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`. - */ - files: GistsCreateParamsFiles; - /** - * When `true`, the gist will be public and available for anyone to see. - */ - public?: boolean; -}; -export declare type GistsCreateCommentParams = { - /** - * The comment text. - */ - body: string; - gist_id: string; -}; -export declare type GistsDeleteParams = { - gist_id: string; -}; -export declare type GistsDeleteCommentParams = { - comment_id: number; - gist_id: string; -}; -export declare type GistsForkParams = { - gist_id: string; -}; -export declare type GistsGetParams = { - gist_id: string; -}; -export declare type GistsGetCommentParams = { - comment_id: number; - gist_id: string; -}; -export declare type GistsGetRevisionParams = { - gist_id: string; - sha: string; -}; -export declare type GistsListParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; -}; -export declare type GistsListCommentsParams = { - gist_id: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type GistsListCommitsParams = { - gist_id: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type GistsListForksParams = { - gist_id: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type GistsListPublicParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; -}; -export declare type GistsListPublicForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - username: string; -}; -export declare type GistsListStarredParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; -}; -export declare type GistsStarParams = { - gist_id: string; -}; -export declare type GistsUnstarParams = { - gist_id: string; -}; -export declare type GistsUpdateParams = { - /** - * A descriptive name for this gist. - */ - description?: string; - /** - * The filenames and content that make up this gist. - */ - files?: GistsUpdateParamsFiles; - gist_id: string; -}; -export declare type GistsUpdateCommentParams = { - /** - * The comment text. - */ - body: string; - comment_id: number; - gist_id: string; -}; -export declare type GitCreateBlobParams = { - /** - * The new blob's content. - */ - content: string; - /** - * The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. - */ - encoding?: string; - owner: string; - repo: string; -}; -export declare type GitCreateCommitParams = { - /** - * 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. - */ - author?: GitCreateCommitParamsAuthor; - /** - * 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. - */ - committer?: GitCreateCommitParamsCommitter; - /** - * The commit message - */ - message: string; - owner: string; - /** - * 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. - */ - parents: string[]; - repo: string; - /** - * 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. - */ - signature?: string; - /** - * The SHA of the tree object this commit points to - */ - tree: string; -}; -export declare type GitCreateRefParams = { - owner: string; - /** - * 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. - */ - ref: string; - repo: string; - /** - * The SHA1 value for this reference. - */ - sha: string; -}; -export declare type GitCreateTagParams = { - /** - * The tag message. - */ - message: string; - /** - * The SHA of the git object this is tagging. - */ - object: string; - owner: string; - repo: string; - /** - * The tag's name. This is typically a version (e.g., "v0.0.1"). - */ - tag: string; - /** - * An object with information about the individual creating the tag. - */ - tagger?: GitCreateTagParamsTagger; - /** - * The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. - */ - type: "commit" | "tree" | "blob"; -}; -export declare type GitCreateTreeParams = { - /** - * The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted. - */ - base_tree?: string; - owner: string; - repo: string; - /** - * Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. - */ - tree: GitCreateTreeParamsTree[]; -}; -export declare type GitDeleteRefParams = { - owner: string; - ref: string; - repo: string; -}; -export declare type GitGetBlobParams = { - file_sha: string; - owner: string; - repo: string; -}; -export declare type GitGetCommitParams = { - commit_sha: string; - owner: string; - repo: string; -}; -export declare type GitGetRefParams = { - owner: string; - ref: string; - repo: string; -}; -export declare type GitGetTagParams = { - owner: string; - repo: string; - tag_sha: string; -}; -export declare type GitGetTreeParams = { - owner: string; - recursive?: "1"; - repo: string; - tree_sha: string; -}; -export declare type GitListMatchingRefsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - ref: string; - repo: string; -}; -export declare type GitListRefsParams = { - /** - * Filter by sub-namespace (reference prefix). Most commen examples would be `'heads/'` and `'tags/'` to retrieve branches or tags - */ - namespace?: string; - owner: string; - page?: number; - per_page?: number; - repo: string; -}; -export declare type GitUpdateRefParams = { - /** - * 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. - */ - force?: boolean; - owner: string; - ref: string; - repo: string; - /** - * The SHA1 value to set this reference to - */ - sha: string; -}; -export declare type GitignoreGetTemplateParams = { - name: string; -}; -export declare type InteractionsAddOrUpdateRestrictionsForOrgParams = { - /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests in public repositories for the given organization. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. - */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; - org: string; -}; -export declare type InteractionsAddOrUpdateRestrictionsForRepoParams = { - /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. - */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; - owner: string; - repo: string; -}; -export declare type InteractionsGetRestrictionsForOrgParams = { - org: string; -}; -export declare type InteractionsGetRestrictionsForRepoParams = { - owner: string; - repo: string; -}; -export declare type InteractionsRemoveRestrictionsForOrgParams = { - org: string; -}; -export declare type InteractionsRemoveRestrictionsForRepoParams = { - owner: string; - repo: string; -}; -export declare type IssuesAddAssigneesParamsDeprecatedNumber = { - /** - * 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._ - */ - assignees?: string[]; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesAddAssigneesParams = { - /** - * 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._ - */ - assignees?: string[]; - issue_number: number; - owner: string; - repo: string; -}; -export declare type IssuesAddLabelsParamsDeprecatedNumber = { - /** - * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels: string[]; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesAddLabelsParams = { - issue_number: number; - /** - * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels: string[]; - owner: string; - repo: string; -}; -export declare type IssuesCheckAssigneeParams = { - assignee: string; - owner: string; - repo: string; -}; -export declare type IssuesCreateParamsDeprecatedAssignee = { - /** - * 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.**_ - * @deprecated "assignee" parameter has been deprecated and will be removed in future - */ - assignee?: string; - /** - * 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._ - */ - assignees?: string[]; - /** - * The contents of the issue. - */ - body?: string; - /** - * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ - */ - labels?: string[]; - /** - * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ - */ - milestone?: number; - owner: string; - repo: string; - /** - * The title of the issue. - */ - title: string; -}; -export declare type IssuesCreateParams = { - /** - * 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._ - */ - assignees?: string[]; - /** - * The contents of the issue. - */ - body?: string; - /** - * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ - */ - labels?: string[]; - /** - * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ - */ - milestone?: number; - owner: string; - repo: string; - /** - * The title of the issue. - */ - title: string; -}; -export declare type IssuesCreateCommentParamsDeprecatedNumber = { - /** - * The contents of the comment. - */ - body: string; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesCreateCommentParams = { - /** - * The contents of the comment. - */ - body: string; - issue_number: number; - owner: string; - repo: string; -}; -export declare type IssuesCreateLabelParams = { - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color: string; - /** - * A short description of the label. - */ - description?: string; - /** - * 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.com](http://emoji-cheat-sheet.com/). - */ - name: string; - owner: string; - repo: string; -}; -export declare type IssuesCreateMilestoneParams = { - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; - owner: string; - repo: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the milestone. - */ - title: string; -}; -export declare type IssuesDeleteCommentParams = { - comment_id: number; - owner: string; - repo: string; -}; -export declare type IssuesDeleteLabelParams = { - name: string; - owner: string; - repo: string; -}; -export declare type IssuesDeleteMilestoneParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "milestone_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesDeleteMilestoneParams = { - milestone_number: number; - owner: string; - repo: string; -}; -export declare type IssuesGetParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesGetParams = { - issue_number: number; - owner: string; - repo: string; -}; -export declare type IssuesGetCommentParams = { - comment_id: number; - owner: string; - repo: string; -}; -export declare type IssuesGetEventParams = { - event_id: number; - owner: string; - repo: string; -}; -export declare type IssuesGetLabelParams = { - name: string; - owner: string; - repo: string; -}; -export declare type IssuesGetMilestoneParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "milestone_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesGetMilestoneParams = { - milestone_number: number; - owner: string; - repo: string; -}; -export declare type IssuesListParams = { - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; -}; -export declare type IssuesListAssigneesParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListCommentsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; -}; -export declare type IssuesListCommentsParams = { - issue_number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; -}; -export declare type IssuesListCommentsForRepoParams = { - /** - * Either `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - owner: string; - repo: string; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Either `created` or `updated`. - */ - sort?: "created" | "updated"; -}; -export declare type IssuesListEventsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListEventsParams = { - issue_number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListEventsForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListEventsForTimelineParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListEventsForTimelineParams = { - issue_number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListForAuthenticatedUserParams = { - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; -}; -export declare type IssuesListForOrgParams = { - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; -}; -export declare type IssuesListForRepoParams = { - /** - * Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. - */ - assignee?: string; - /** - * The user that created the issue. - */ - creator?: string; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * A user that's mentioned in the issue. - */ - mentioned?: string; - /** - * 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. - */ - milestone?: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; -}; -export declare type IssuesListLabelsForMilestoneParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "milestone_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListLabelsForMilestoneParams = { - milestone_number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListLabelsForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListLabelsOnIssueParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListLabelsOnIssueParams = { - issue_number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type IssuesListMilestonesForRepoParams = { - /** - * The direction of the sort. Either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * What to sort results by. Either `due_on` or `completeness`. - */ - sort?: "due_on" | "completeness"; - /** - * The state of the milestone. Either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; -}; -export declare type IssuesLockParamsDeprecatedNumber = { - /** - * 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` - */ - lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesLockParams = { - issue_number: number; - /** - * 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` - */ - lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; - owner: string; - repo: string; -}; -export declare type IssuesRemoveAssigneesParamsDeprecatedNumber = { - /** - * 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._ - */ - assignees?: string[]; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesRemoveAssigneesParams = { - /** - * 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._ - */ - assignees?: string[]; - issue_number: number; - owner: string; - repo: string; -}; -export declare type IssuesRemoveLabelParamsDeprecatedNumber = { - name: string; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesRemoveLabelParams = { - issue_number: number; - name: string; - owner: string; - repo: string; -}; -export declare type IssuesRemoveLabelsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesRemoveLabelsParams = { - issue_number: number; - owner: string; - repo: string; -}; -export declare type IssuesReplaceLabelsParamsDeprecatedNumber = { - /** - * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels?: string[]; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesReplaceLabelsParams = { - issue_number: number; - /** - * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels?: string[]; - owner: string; - repo: string; -}; -export declare type IssuesUnlockParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type IssuesUnlockParams = { - issue_number: number; - owner: string; - repo: string; -}; -export declare type IssuesUpdateParamsDeprecatedNumber = { - /** - * 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._ - */ - assignees?: string[]; - /** - * The contents of the issue. - */ - body?: string; - /** - * 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._ - */ - labels?: string[]; - /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ - */ - milestone?: number | null; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; - /** - * State of the issue. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the issue. - */ - title?: string; -}; -export declare type IssuesUpdateParamsDeprecatedAssignee = { - /** - * Login for the user that this issue should be assigned to. **This field is deprecated.** - * @deprecated "assignee" parameter has been deprecated and will be removed in future - */ - assignee?: string; - /** - * 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._ - */ - assignees?: string[]; - /** - * The contents of the issue. - */ - body?: string; - issue_number: number; - /** - * 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._ - */ - labels?: string[]; - /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ - */ - milestone?: number | null; - owner: string; - repo: string; - /** - * State of the issue. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the issue. - */ - title?: string; -}; -export declare type IssuesUpdateParams = { - /** - * 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._ - */ - assignees?: string[]; - /** - * The contents of the issue. - */ - body?: string; - issue_number: number; - /** - * 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._ - */ - labels?: string[]; - /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ - */ - milestone?: number | null; - owner: string; - repo: string; - /** - * State of the issue. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the issue. - */ - title?: string; -}; -export declare type IssuesUpdateCommentParams = { - /** - * The contents of the comment. - */ - body: string; - comment_id: number; - owner: string; - repo: string; -}; -export declare type IssuesUpdateLabelParams = { - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color?: string; - current_name: string; - /** - * A short description of the label. - */ - description?: string; - /** - * 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.com](http://emoji-cheat-sheet.com/). - */ - name?: string; - owner: string; - repo: string; -}; -export declare type IssuesUpdateMilestoneParamsDeprecatedNumber = { - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; - /** - * @deprecated "number" parameter renamed to "milestone_number" - */ - number: number; - owner: string; - repo: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the milestone. - */ - title?: string; -}; -export declare type IssuesUpdateMilestoneParams = { - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; - milestone_number: number; - owner: string; - repo: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the milestone. - */ - title?: string; -}; -export declare type LicensesGetParams = { - license: string; -}; -export declare type LicensesGetForRepoParams = { - owner: string; - repo: string; -}; -export declare type MarkdownRenderParams = { - /** - * The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode. - */ - context?: string; - /** - * The rendering mode. Can be either: - * \* `markdown` to render a document in plain Markdown, just like README.md files are rendered. - * \* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests. - */ - mode?: "markdown" | "gfm"; - /** - * The Markdown text to render in HTML. Markdown content must be 400 KB or less. - */ - text: string; -}; -export declare type MarkdownRenderRawParams = { - data: string; -}; -export declare type MigrationsCancelImportParams = { - owner: string; - repo: string; -}; -export declare type MigrationsDeleteArchiveForAuthenticatedUserParams = { - migration_id: number; -}; -export declare type MigrationsDeleteArchiveForOrgParams = { - migration_id: number; - org: string; -}; -export declare type MigrationsDownloadArchiveForOrgParams = { - migration_id: number; - org: string; -}; -export declare type MigrationsGetArchiveForAuthenticatedUserParams = { - migration_id: number; -}; -export declare type MigrationsGetArchiveForOrgParams = { - migration_id: number; - org: string; -}; -export declare type MigrationsGetCommitAuthorsParams = { - owner: string; - repo: string; - /** - * Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step. - */ - since?: string; -}; -export declare type MigrationsGetImportProgressParams = { - owner: string; - repo: string; -}; -export declare type MigrationsGetLargeFilesParams = { - owner: string; - repo: string; -}; -export declare type MigrationsGetStatusForAuthenticatedUserParams = { - migration_id: number; -}; -export declare type MigrationsGetStatusForOrgParams = { - migration_id: number; - org: string; -}; -export declare type MigrationsListForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type MigrationsListForOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type MigrationsListReposForOrgParams = { - migration_id: number; - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type MigrationsListReposForUserParams = { - migration_id: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type MigrationsMapCommitAuthorParams = { - author_id: number; - /** - * The new Git author email. - */ - email?: string; - /** - * The new Git author name. - */ - name?: string; - owner: string; - repo: string; -}; -export declare type MigrationsSetLfsPreferenceParams = { - owner: string; - repo: string; - /** - * Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). - */ - use_lfs: "opt_in" | "opt_out"; -}; -export declare type MigrationsStartForAuthenticatedUserParams = { - /** - * Does not include attachments uploaded to GitHub.com in the migration data when set to `true`. Excluding attachments will reduce the migration archive file size. - */ - exclude_attachments?: boolean; - /** - * Locks the `repositories` to prevent changes during the migration when set to `true`. - */ - lock_repositories?: boolean; - /** - * An array of repositories to include in the migration. - */ - repositories: string[]; -}; -export declare type MigrationsStartForOrgParams = { - /** - * Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). - */ - exclude_attachments?: boolean; - /** - * Indicates whether repositories should be locked (to prevent manipulation) while migrating data. - */ - lock_repositories?: boolean; - org: string; - /** - * A list of arrays indicating which repositories should be migrated. - */ - repositories: string[]; -}; -export declare type MigrationsStartImportParams = { - owner: string; - repo: string; - /** - * For a tfvc import, the name of the project that is being imported. - */ - tfvc_project?: string; - /** - * The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. - */ - vcs?: "subversion" | "git" | "mercurial" | "tfvc"; - /** - * If authentication is required, the password to provide to `vcs_url`. - */ - vcs_password?: string; - /** - * The URL of the originating repository. - */ - vcs_url: string; - /** - * If authentication is required, the username to provide to `vcs_url`. - */ - vcs_username?: string; -}; -export declare type MigrationsUnlockRepoForAuthenticatedUserParams = { - migration_id: number; - repo_name: string; -}; -export declare type MigrationsUnlockRepoForOrgParams = { - migration_id: number; - org: string; - repo_name: string; -}; -export declare type MigrationsUpdateImportParams = { - owner: string; - repo: string; - /** - * The password to provide to the originating repository. - */ - vcs_password?: string; - /** - * The username to provide to the originating repository. - */ - vcs_username?: string; -}; -export declare type OauthAuthorizationsCheckAuthorizationParams = { - access_token: string; - client_id: string; -}; -export declare type OauthAuthorizationsCreateAuthorizationParams = { - /** - * The 20 character OAuth app client key for which to create the token. - */ - client_id?: string; - /** - * The 40 character OAuth app client secret for which to create the token. - */ - client_secret?: string; - /** - * A unique string to distinguish an authorization from others created for the same client ID and user. - */ - fingerprint?: string; - /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. - */ - note: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; -}; -export declare type OauthAuthorizationsDeleteAuthorizationParams = { - authorization_id: number; -}; -export declare type OauthAuthorizationsDeleteGrantParams = { - grant_id: number; -}; -export declare type OauthAuthorizationsGetAuthorizationParams = { - authorization_id: number; -}; -export declare type OauthAuthorizationsGetGrantParams = { - grant_id: number; -}; -export declare type OauthAuthorizationsGetOrCreateAuthorizationForAppParams = { - client_id: string; - /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. - */ - client_secret: string; - /** - * A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint). - */ - fingerprint?: string; - /** - * A note to remind you what the OAuth token is for. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; -}; -export declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintParams = { - client_id: string; - /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. - */ - client_secret: string; - fingerprint: string; - /** - * A note to remind you what the OAuth token is for. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; -}; -export declare type OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintParams = { - client_id: string; - /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. - */ - client_secret: string; - fingerprint: string; - /** - * A note to remind you what the OAuth token is for. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; -}; -export declare type OauthAuthorizationsListAuthorizationsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type OauthAuthorizationsListGrantsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type OauthAuthorizationsResetAuthorizationParams = { - access_token: string; - client_id: string; -}; -export declare type OauthAuthorizationsRevokeAuthorizationForApplicationParams = { - access_token: string; - client_id: string; -}; -export declare type OauthAuthorizationsRevokeGrantForApplicationParams = { - access_token: string; - client_id: string; -}; -export declare type OauthAuthorizationsUpdateAuthorizationParams = { - /** - * A list of scopes to add to this authorization. - */ - add_scopes?: string[]; - authorization_id: number; - /** - * A unique string to distinguish an authorization from others created for the same client ID and user. - */ - fingerprint?: string; - /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A list of scopes to remove from this authorization. - */ - remove_scopes?: string[]; - /** - * Replaces the authorization scopes with these. - */ - scopes?: string[]; -}; -export declare type OrgsAddOrUpdateMembershipParams = { - org: string; - /** - * 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. - */ - role?: "admin" | "member"; - username: string; -}; -export declare type OrgsBlockUserParams = { - org: string; - username: string; -}; -export declare type OrgsCheckBlockedUserParams = { - org: string; - username: string; -}; -export declare type OrgsCheckMembershipParams = { - org: string; - username: string; -}; -export declare type OrgsCheckPublicMembershipParams = { - org: string; - username: string; -}; -export declare type OrgsConcealMembershipParams = { - org: string; - username: string; -}; -export declare type OrgsConvertMemberToOutsideCollaboratorParams = { - org: string; - username: string; -}; -export declare type OrgsCreateHookParams = { - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#create-hook-config-params). - */ - config: OrgsCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Must be passed as "web". - */ - name: string; - org: string; -}; -export declare type OrgsCreateInvitationParams = { - /** - * **Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user. - */ - email?: string; - /** - * **Required unless you provide `email`**. GitHub user ID for the person you are inviting. - */ - invitee_id?: number; - org: string; - /** - * Specify role for new member. Can be one of: - * \* `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. - * \* `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. - * \* `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. - */ - role?: "admin" | "direct_member" | "billing_manager"; - /** - * Specify IDs for the teams you want to invite new members to. - */ - team_ids?: number[]; -}; -export declare type OrgsDeleteHookParams = { - hook_id: number; - org: string; -}; -export declare type OrgsGetParams = { - org: string; -}; -export declare type OrgsGetHookParams = { - hook_id: number; - org: string; -}; -export declare type OrgsGetMembershipParams = { - org: string; - username: string; -}; -export declare type OrgsGetMembershipForAuthenticatedUserParams = { - org: string; -}; -export declare type OrgsListParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * The integer ID of the last organization that you've seen. - */ - since?: number; -}; -export declare type OrgsListBlockedUsersParams = { - org: string; -}; -export declare type OrgsListForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type OrgsListForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type OrgsListHooksParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type OrgsListInstallationsParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type OrgsListInvitationTeamsParams = { - invitation_id: number; - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type OrgsListMembersParams = { - /** - * 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. - */ - filter?: "2fa_disabled" | "all"; - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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. - */ - role?: "all" | "admin" | "member"; -}; -export declare type OrgsListMembershipsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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. - */ - state?: "active" | "pending"; -}; -export declare type OrgsListOutsideCollaboratorsParams = { - /** - * 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. - */ - filter?: "2fa_disabled" | "all"; - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type OrgsListPendingInvitationsParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type OrgsListPublicMembersParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type OrgsPingHookParams = { - hook_id: number; - org: string; -}; -export declare type OrgsPublicizeMembershipParams = { - org: string; - username: string; -}; -export declare type OrgsRemoveMemberParams = { - org: string; - username: string; -}; -export declare type OrgsRemoveMembershipParams = { - org: string; - username: string; -}; -export declare type OrgsRemoveOutsideCollaboratorParams = { - org: string; - username: string; -}; -export declare type OrgsUnblockUserParams = { - org: string; - username: string; -}; -export declare type OrgsUpdateParamsDeprecatedMembersAllowedRepositoryCreationType = { - /** - * Billing email address. This address is not publicized. - */ - billing_email?: string; - /** - * The company name. - */ - company?: string; - /** - * 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. - */ - default_repository_permission?: "read" | "write" | "admin" | "none"; - /** - * The description of the company. - */ - description?: string; - /** - * The publicly visible email address. - */ - email?: string; - /** - * Toggles whether an organization can use organization projects. - */ - has_organization_projects?: boolean; - /** - * Toggles whether repositories that belong to the organization can use repository projects. - */ - has_repository_projects?: boolean; - /** - * The location. - */ - location?: string; - /** - * 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 [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. - * @deprecated "members_allowed_repository_creation_type" parameter has been deprecated and will be removed in future - */ - members_allowed_repository_creation_type?: string; - /** - * 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. 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_internal_repositories?: boolean; - /** - * 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_private_repositories?: boolean; - /** - * 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_can_create_public_repositories?: boolean; - /** - * 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_repositories?: boolean; - /** - * The shorthand name of the company. - */ - name?: string; - org: string; -}; -export declare type OrgsUpdateParams = { - /** - * Billing email address. This address is not publicized. - */ - billing_email?: string; - /** - * The company name. - */ - company?: string; - /** - * 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. - */ - default_repository_permission?: "read" | "write" | "admin" | "none"; - /** - * The description of the company. - */ - description?: string; - /** - * The publicly visible email address. - */ - email?: string; - /** - * Toggles whether an organization can use organization projects. - */ - has_organization_projects?: boolean; - /** - * Toggles whether repositories that belong to the organization can use repository projects. - */ - has_repository_projects?: boolean; - /** - * The location. - */ - location?: string; - /** - * 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. 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_internal_repositories?: boolean; - /** - * 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_private_repositories?: boolean; - /** - * 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_can_create_public_repositories?: boolean; - /** - * 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_repositories?: boolean; - /** - * The shorthand name of the company. - */ - name?: string; - org: string; -}; -export declare type OrgsUpdateHookParams = { - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#update-hook-config-params). - */ - config?: OrgsUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - hook_id: number; - org: string; -}; -export declare type OrgsUpdateMembershipParams = { - org: string; - /** - * The state that the membership should be in. Only `"active"` will be accepted. - */ - state: "active"; -}; -export declare type ProjectsAddCollaboratorParams = { - /** - * The permission to grant the collaborator. 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://developer.github.com/v3/#http-verbs)." Can be one of: - * \* `read` - can read, but not write to or administer this project. - * \* `write` - can read and write, but not administer this project. - * \* `admin` - can read, write and administer this project. - */ - permission?: "read" | "write" | "admin"; - project_id: number; - username: string; -}; -export declare type ProjectsCreateCardParams = { - column_id: number; - /** - * The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. - * **Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`. - */ - content_id?: number; - /** - * **Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id. - */ - content_type?: string; - /** - * The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`. - */ - note?: string; -}; -export declare type ProjectsCreateColumnParams = { - /** - * The name of the column. - */ - name: string; - project_id: number; -}; -export declare type ProjectsCreateForAuthenticatedUserParams = { - /** - * The description of the project. - */ - body?: string; - /** - * The name of the project. - */ - name: string; -}; -export declare type ProjectsCreateForOrgParams = { - /** - * The description of the project. - */ - body?: string; - /** - * The name of the project. - */ - name: string; - org: string; -}; -export declare type ProjectsCreateForRepoParams = { - /** - * The description of the project. - */ - body?: string; - /** - * The name of the project. - */ - name: string; - owner: string; - repo: string; -}; -export declare type ProjectsDeleteParams = { - project_id: number; -}; -export declare type ProjectsDeleteCardParams = { - card_id: number; -}; -export declare type ProjectsDeleteColumnParams = { - column_id: number; -}; -export declare type ProjectsGetParams = { - project_id: number; -}; -export declare type ProjectsGetCardParams = { - card_id: number; -}; -export declare type ProjectsGetColumnParams = { - column_id: number; -}; -export declare type ProjectsListCardsParams = { - /** - * Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`. - */ - archived_state?: "all" | "archived" | "not_archived"; - column_id: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type ProjectsListCollaboratorsParams = { - /** - * 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. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - project_id: number; -}; -export declare type ProjectsListColumnsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - project_id: number; -}; -export declare type ProjectsListForOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; -}; -export declare type ProjectsListForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; -}; -export declare type ProjectsListForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - username: string; -}; -export declare type ProjectsMoveCardParams = { - card_id: number; - /** - * The `id` value of a column in the same project. - */ - column_id?: number; - /** - * Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`. - */ - position: string; -}; -export declare type ProjectsMoveColumnParams = { - column_id: number; - /** - * Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project. - */ - position: string; -}; -export declare type ProjectsRemoveCollaboratorParams = { - project_id: number; - username: string; -}; -export declare type ProjectsReviewUserPermissionLevelParams = { - project_id: number; - username: string; -}; -export declare type ProjectsUpdateParams = { - /** - * The description of the project. - */ - body?: string; - /** - * The name of the project. - */ - name?: string; - /** - * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator). - * - * **Note:** Updating a project's `organization_permission` requires `admin` access to the project. - * - * Can be one of: - * \* `read` - Organization members can read, but not write to or administer this project. - * \* `write` - Organization members can read and write, but not administer this project. - * \* `admin` - Organization members can read, write and administer this project. - * \* `none` - Organization members can only see this project if it is public. - */ - organization_permission?: string; - /** - * Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. - * - * Can be one of: - * \* `false` - Anyone can see the project. - * \* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account. - */ - private?: boolean; - project_id: number; - /** - * State of the project. Either `open` or `closed`. - */ - state?: "open" | "closed"; -}; -export declare type ProjectsUpdateCardParams = { - /** - * Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card. - */ - archived?: boolean; - card_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`. - */ - note?: string; -}; -export declare type ProjectsUpdateColumnParams = { - column_id: number; - /** - * The new name of the column. - */ - name: string; -}; -export declare type PullsCheckIfMergedParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type PullsCheckIfMergedParams = { - owner: string; - pull_number: number; - repo: string; -}; -export declare type PullsCreateParams = { - /** - * 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. - */ - base: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * 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. - */ - draft?: boolean; - /** - * 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`. - */ - head: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - owner: string; - repo: string; - /** - * The title of the new pull request. - */ - title: string; -}; -export declare type PullsCreateCommentParamsDeprecatedNumber = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; -}; -export declare type PullsCreateCommentParamsDeprecatedInReplyTo = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * 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. - * @deprecated "in_reply_to" parameter has been deprecated and will be removed in future - */ - in_reply_to?: number; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - pull_number: number; - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; -}; -export declare type PullsCreateCommentParams = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - pull_number: number; - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; -}; -export declare type PullsCreateCommentReplyParamsDeprecatedNumber = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; -}; -export declare type PullsCreateCommentReplyParamsDeprecatedInReplyTo = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * 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. - * @deprecated "in_reply_to" parameter has been deprecated and will be removed in future - */ - in_reply_to?: number; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - pull_number: number; - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; -}; -export declare type PullsCreateCommentReplyParams = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - pull_number: number; - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; -}; -export declare type PullsCreateFromIssueParams = { - base: string; - draft?: boolean; - head: string; - issue: number; - maintainer_can_modify?: boolean; - owner: string; - repo: string; -}; -export declare type PullsCreateReviewParamsDeprecatedNumber = { - /** - * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. - */ - body?: string; - /** - * Use the following table to specify the location, destination, and contents of the draft review comment. - */ - comments?: PullsCreateReviewParamsComments[]; - /** - * 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. - */ - commit_id?: string; - /** - * 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://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready. - */ - event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type PullsCreateReviewParams = { - /** - * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. - */ - body?: string; - /** - * Use the following table to specify the location, destination, and contents of the draft review comment. - */ - comments?: PullsCreateReviewParamsComments[]; - /** - * 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. - */ - commit_id?: string; - /** - * 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://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready. - */ - event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - owner: string; - pull_number: number; - repo: string; -}; -export declare type PullsCreateReviewCommentReplyParams = { - /** - * The text of the review comment. - */ - body: string; - comment_id: number; - owner: string; - pull_number: number; - repo: string; -}; -export declare type PullsCreateReviewRequestParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; - /** - * An array of user `login`s that will be requested. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be requested. - */ - team_reviewers?: string[]; -}; -export declare type PullsCreateReviewRequestParams = { - owner: string; - pull_number: number; - repo: string; - /** - * An array of user `login`s that will be requested. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be requested. - */ - team_reviewers?: string[]; -}; -export declare type PullsDeleteCommentParams = { - comment_id: number; - owner: string; - repo: string; -}; -export declare type PullsDeletePendingReviewParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; - review_id: number; -}; -export declare type PullsDeletePendingReviewParams = { - owner: string; - pull_number: number; - repo: string; - review_id: number; -}; -export declare type PullsDeleteReviewRequestParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; - /** - * An array of user `login`s that will be removed. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be removed. - */ - team_reviewers?: string[]; -}; -export declare type PullsDeleteReviewRequestParams = { - owner: string; - pull_number: number; - repo: string; - /** - * An array of user `login`s that will be removed. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be removed. - */ - team_reviewers?: string[]; -}; -export declare type PullsDismissReviewParamsDeprecatedNumber = { - /** - * The message for the pull request review dismissal - */ - message: string; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; - review_id: number; -}; -export declare type PullsDismissReviewParams = { - /** - * The message for the pull request review dismissal - */ - message: string; - owner: string; - pull_number: number; - repo: string; - review_id: number; -}; -export declare type PullsGetParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type PullsGetParams = { - owner: string; - pull_number: number; - repo: string; -}; -export declare type PullsGetCommentParams = { - comment_id: number; - owner: string; - repo: string; -}; -export declare type PullsGetCommentsForReviewParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - review_id: number; -}; -export declare type PullsGetCommentsForReviewParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - pull_number: number; - repo: string; - review_id: number; -}; -export declare type PullsGetReviewParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; - review_id: number; -}; -export declare type PullsGetReviewParams = { - owner: string; - pull_number: number; - repo: string; - review_id: number; -}; -export declare type PullsListParams = { - /** - * Filter pulls by base branch name. Example: `gh-pages`. - */ - base?: string; - /** - * The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. - */ - direction?: "asc" | "desc"; - /** - * 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`. - */ - head?: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * 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). - */ - sort?: "created" | "updated" | "popularity" | "long-running"; - /** - * Either `open`, `closed`, or `all` to filter by state. - */ - state?: "open" | "closed" | "all"; -}; -export declare type PullsListCommentsParamsDeprecatedNumber = { - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; -}; -export declare type PullsListCommentsParams = { - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - pull_number: number; - repo: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; -}; -export declare type PullsListCommentsForRepoParams = { - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; -}; -export declare type PullsListCommitsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type PullsListCommitsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - pull_number: number; - repo: string; -}; -export declare type PullsListFilesParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type PullsListFilesParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - pull_number: number; - repo: string; -}; -export declare type PullsListReviewRequestsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type PullsListReviewRequestsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - pull_number: number; - repo: string; -}; -export declare type PullsListReviewsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type PullsListReviewsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - pull_number: number; - repo: string; -}; -export declare type PullsMergeParamsDeprecatedNumber = { - /** - * Extra detail to append to automatic commit message. - */ - commit_message?: string; - /** - * Title for the automatic commit message. - */ - commit_title?: string; - /** - * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. - */ - merge_method?: "merge" | "squash" | "rebase"; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; - /** - * SHA that pull request head must match to allow merge. - */ - sha?: string; -}; -export declare type PullsMergeParams = { - /** - * Extra detail to append to automatic commit message. - */ - commit_message?: string; - /** - * Title for the automatic commit message. - */ - commit_title?: string; - /** - * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. - */ - merge_method?: "merge" | "squash" | "rebase"; - owner: string; - pull_number: number; - repo: string; - /** - * SHA that pull request head must match to allow merge. - */ - sha?: string; -}; -export declare type PullsSubmitReviewParamsDeprecatedNumber = { - /** - * The body text of the pull request review - */ - body?: string; - /** - * 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. - */ - event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; - review_id: number; -}; -export declare type PullsSubmitReviewParams = { - /** - * The body text of the pull request review - */ - body?: string; - /** - * 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. - */ - event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - owner: string; - pull_number: number; - repo: string; - review_id: number; -}; -export declare type PullsUpdateParamsDeprecatedNumber = { - /** - * 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. - */ - base?: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; - /** - * State of this Pull Request. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the pull request. - */ - title?: string; -}; -export declare type PullsUpdateParams = { - /** - * 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. - */ - base?: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - owner: string; - pull_number: number; - repo: string; - /** - * State of this Pull Request. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the pull request. - */ - title?: string; -}; -export declare type PullsUpdateBranchParams = { - /** - * 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 on a repository](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. - */ - expected_head_sha?: string; - owner: string; - pull_number: number; - repo: string; -}; -export declare type PullsUpdateCommentParams = { - /** - * The text of the reply to the review comment. - */ - body: string; - comment_id: number; - owner: string; - repo: string; -}; -export declare type PullsUpdateReviewParamsDeprecatedNumber = { - /** - * The body text of the pull request review. - */ - body: string; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - owner: string; - repo: string; - review_id: number; -}; -export declare type PullsUpdateReviewParams = { - /** - * The body text of the pull request review. - */ - body: string; - owner: string; - pull_number: number; - repo: string; - review_id: number; -}; -export declare type ReactionsCreateForCommitCommentParams = { - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - owner: string; - repo: string; -}; -export declare type ReactionsCreateForIssueParamsDeprecatedNumber = { - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - repo: string; -}; -export declare type ReactionsCreateForIssueParams = { - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - issue_number: number; - owner: string; - repo: string; -}; -export declare type ReactionsCreateForIssueCommentParams = { - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - owner: string; - repo: string; -}; -export declare type ReactionsCreateForPullRequestReviewCommentParams = { - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - owner: string; - repo: string; -}; -export declare type ReactionsCreateForTeamDiscussionParams = { - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - team_id: number; -}; -export declare type ReactionsCreateForTeamDiscussionCommentParams = { - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - team_id: number; -}; -export declare type ReactionsCreateForTeamDiscussionCommentInOrgParams = { - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - org: string; - team_slug: string; -}; -export declare type ReactionsCreateForTeamDiscussionCommentLegacyParams = { - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - team_id: number; -}; -export declare type ReactionsCreateForTeamDiscussionInOrgParams = { - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - org: string; - team_slug: string; -}; -export declare type ReactionsCreateForTeamDiscussionLegacyParams = { - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - team_id: number; -}; -export declare type ReactionsDeleteParams = { - reaction_id: number; -}; -export declare type ReactionsListForCommitCommentParams = { - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReactionsListForIssueParamsDeprecatedNumber = { - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReactionsListForIssueParams = { - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - issue_number: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReactionsListForIssueCommentParams = { - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReactionsListForPullRequestReviewCommentParams = { - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReactionsListForTeamDiscussionParams = { - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type ReactionsListForTeamDiscussionCommentParams = { - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type ReactionsListForTeamDiscussionCommentInOrgParams = { - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_slug: string; -}; -export declare type ReactionsListForTeamDiscussionCommentLegacyParams = { - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type ReactionsListForTeamDiscussionInOrgParams = { - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_slug: string; -}; -export declare type ReactionsListForTeamDiscussionLegacyParams = { - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type ReposAcceptInvitationParams = { - invitation_id: number; -}; -export declare type ReposAddCollaboratorParams = { - owner: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; - repo: string; - username: string; -}; -export declare type ReposAddDeployKeyParams = { - /** - * The contents of the key. - */ - key: string; - owner: string; - /** - * 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/)." - */ - read_only?: boolean; - repo: string; - /** - * A name for the key. - */ - title?: string; -}; -export declare type ReposAddProtectedBranchAdminEnforcementParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposAddProtectedBranchAppRestrictionsParams = { - apps: string[]; - branch: string; - owner: string; - repo: string; -}; -export declare type ReposAddProtectedBranchRequiredSignaturesParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposAddProtectedBranchRequiredStatusChecksContextsParams = { - branch: string; - contexts: string[]; - owner: string; - repo: string; -}; -export declare type ReposAddProtectedBranchTeamRestrictionsParams = { - branch: string; - owner: string; - repo: string; - teams: string[]; -}; -export declare type ReposAddProtectedBranchUserRestrictionsParams = { - branch: string; - owner: string; - repo: string; - users: string[]; -}; -export declare type ReposCheckCollaboratorParams = { - owner: string; - repo: string; - username: string; -}; -export declare type ReposCheckVulnerabilityAlertsParams = { - owner: string; - repo: string; -}; -export declare type ReposCompareCommitsParams = { - base: string; - head: string; - owner: string; - repo: string; -}; -export declare type ReposCreateCommitCommentParamsDeprecatedSha = { - /** - * The contents of the comment. - */ - body: string; - owner: string; - /** - * Relative path of the file to comment on. - */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - repo: string; - /** - * @deprecated "sha" parameter renamed to "commit_sha" - */ - sha: string; -}; -export declare type ReposCreateCommitCommentParamsDeprecatedLine = { - /** - * The contents of the comment. - */ - body: string; - commit_sha: string; - /** - * **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. - * @deprecated "line" parameter has been deprecated and will be removed in future - */ - line?: number; - owner: string; - /** - * Relative path of the file to comment on. - */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - repo: string; -}; -export declare type ReposCreateCommitCommentParams = { - /** - * The contents of the comment. - */ - body: string; - commit_sha: string; - owner: string; - /** - * Relative path of the file to comment on. - */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - repo: string; -}; -export declare type ReposCreateDeploymentParams = { - /** - * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. - */ - auto_merge?: boolean; - /** - * Short description of the deployment. - */ - description?: string; - /** - * Name for the target deployment environment (e.g., `production`, `staging`, `qa`). - */ - environment?: string; - owner: string; - /** - * JSON payload with extra information about the deployment. - */ - payload?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - production_environment?: boolean; - /** - * The ref to deploy. This can be a branch, tag, or SHA. - */ - ref: string; - repo: string; - /** - * The [status](https://developer.github.com/v3/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. - */ - required_contexts?: string[]; - /** - * Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - transient_environment?: boolean; -}; -export declare type ReposCreateDeploymentStatusParams = { - /** - * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - auto_inactive?: boolean; - deployment_id: number; - /** - * A short description of the status. The maximum description length is 140 characters. - */ - description?: string; - /** - * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - environment?: "production" | "staging" | "qa"; - /** - * Sets the URL for accessing your environment. Default: `""` - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - environment_url?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - log_url?: string; - owner: string; - repo: string; - /** - * 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://developer.github.com/v3/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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - state: "error" | "failure" | "inactive" | "in_progress" | "queued" | "pending" | "success"; - /** - * 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`. - */ - target_url?: string; -}; -export declare type ReposCreateDispatchEventParams = { - /** - * JSON payload with extra information about the webhook event that your action or worklow may use. - */ - client_payload?: ReposCreateDispatchEventParamsClientPayload; - /** - * **Required:** A custom webhook event name. - */ - event_type?: string; - owner: string; - repo: string; -}; -export declare type ReposCreateFileParams = { - /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. - */ - author?: ReposCreateFileParamsAuthor; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * The person that committed the file. Default: the authenticated user. - */ - committer?: ReposCreateFileParamsCommitter; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * The commit message. - */ - message: string; - owner: string; - path: string; - repo: string; - /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. - */ - sha?: string; -}; -export declare type ReposCreateForAuthenticatedUserParams = { - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; - /** - * A short description of the repository. - */ - description?: string; - /** - * 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". - */ - gitignore_template?: string; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * 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". - */ - license_template?: string; - /** - * The name of the repository. - */ - name: string; - /** - * Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account. - */ - private?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. - * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. - */ - visibility?: "public" | "private" | "visibility" | "internal"; -}; -export declare type ReposCreateForkParams = { - /** - * Optional parameter to specify the organization name if forking into an organization. - */ - organization?: string; - owner: string; - repo: string; -}; -export declare type ReposCreateHookParams = { - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). - */ - config: ReposCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. - */ - name?: string; - owner: string; - repo: string; -}; -export declare type ReposCreateInOrgParams = { - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; - /** - * A short description of the repository. - */ - description?: string; - /** - * 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". - */ - gitignore_template?: string; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * 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". - */ - license_template?: string; - /** - * The name of the repository. - */ - name: string; - org: string; - /** - * Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account. - */ - private?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. - * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. - */ - visibility?: "public" | "private" | "visibility" | "internal"; -}; -export declare type ReposCreateOrUpdateFileParams = { - /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. - */ - author?: ReposCreateOrUpdateFileParamsAuthor; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * The person that committed the file. Default: the authenticated user. - */ - committer?: ReposCreateOrUpdateFileParamsCommitter; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * The commit message. - */ - message: string; - owner: string; - path: string; - repo: string; - /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. - */ - sha?: string; -}; -export declare type ReposCreateReleaseParams = { - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` to create a draft (unpublished) release, `false` to create a published one. - */ - draft?: boolean; - /** - * The name of the release. - */ - name?: string; - owner: string; - /** - * `true` to identify the release as a prerelease. `false` to identify the release as a full release. - */ - prerelease?: boolean; - repo: string; - /** - * The name of the tag. - */ - tag_name: string; - /** - * 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`). - */ - target_commitish?: string; -}; -export declare type ReposCreateStatusParams = { - /** - * A string label to differentiate this status from the status of other systems. - */ - context?: string; - /** - * A short description of the status. - */ - description?: string; - owner: string; - repo: string; - sha: string; - /** - * The state of the status. Can be one of `error`, `failure`, `pending`, or `success`. - */ - state: "error" | "failure" | "pending" | "success"; - /** - * 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` - */ - target_url?: string; -}; -export declare type ReposCreateUsingTemplateParams = { - /** - * A short description of the new repository. - */ - description?: string; - /** - * The name of the new repository. - */ - name: string; - /** - * 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. - */ - owner?: string; - /** - * Either `true` to create a new private repository or `false` to create a new public one. - */ - private?: boolean; - template_owner: string; - template_repo: string; -}; -export declare type ReposDeclineInvitationParams = { - invitation_id: number; -}; -export declare type ReposDeleteParams = { - owner: string; - repo: string; -}; -export declare type ReposDeleteCommitCommentParams = { - comment_id: number; - owner: string; - repo: string; -}; -export declare type ReposDeleteDownloadParams = { - download_id: number; - owner: string; - repo: string; -}; -export declare type ReposDeleteFileParams = { - /** - * object containing information about the author. - */ - author?: ReposDeleteFileParamsAuthor; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * object containing information about the committer. - */ - committer?: ReposDeleteFileParamsCommitter; - /** - * The commit message. - */ - message: string; - owner: string; - path: string; - repo: string; - /** - * The blob SHA of the file being replaced. - */ - sha: string; -}; -export declare type ReposDeleteHookParams = { - hook_id: number; - owner: string; - repo: string; -}; -export declare type ReposDeleteInvitationParams = { - invitation_id: number; - owner: string; - repo: string; -}; -export declare type ReposDeleteReleaseParams = { - owner: string; - release_id: number; - repo: string; -}; -export declare type ReposDeleteReleaseAssetParams = { - asset_id: number; - owner: string; - repo: string; -}; -export declare type ReposDisableAutomatedSecurityFixesParams = { - owner: string; - repo: string; -}; -export declare type ReposDisablePagesSiteParams = { - owner: string; - repo: string; -}; -export declare type ReposDisableVulnerabilityAlertsParams = { - owner: string; - repo: string; -}; -export declare type ReposEnableAutomatedSecurityFixesParams = { - owner: string; - repo: string; -}; -export declare type ReposEnablePagesSiteParams = { - owner: string; - repo: string; - source?: ReposEnablePagesSiteParamsSource; -}; -export declare type ReposEnableVulnerabilityAlertsParams = { - owner: string; - repo: string; -}; -export declare type ReposGetParams = { - owner: string; - repo: string; -}; -export declare type ReposGetAppsWithAccessToProtectedBranchParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposGetArchiveLinkParams = { - archive_format: string; - owner: string; - ref: string; - repo: string; -}; -export declare type ReposGetBranchParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposGetBranchProtectionParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposGetClonesParams = { - owner: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; - repo: string; -}; -export declare type ReposGetCodeFrequencyStatsParams = { - owner: string; - repo: string; -}; -export declare type ReposGetCollaboratorPermissionLevelParams = { - owner: string; - repo: string; - username: string; -}; -export declare type ReposGetCombinedStatusForRefParams = { - owner: string; - ref: string; - repo: string; -}; -export declare type ReposGetCommitParamsDeprecatedSha = { - owner: string; - repo: string; - /** - * @deprecated "sha" parameter renamed to "ref" - */ - sha: string; -}; -export declare type ReposGetCommitParamsDeprecatedCommitSha = { - /** - * @deprecated "commit_sha" parameter renamed to "ref" - */ - commit_sha: string; - owner: string; - repo: string; -}; -export declare type ReposGetCommitParams = { - owner: string; - ref: string; - repo: string; -}; -export declare type ReposGetCommitActivityStatsParams = { - owner: string; - repo: string; -}; -export declare type ReposGetCommitCommentParams = { - comment_id: number; - owner: string; - repo: string; -}; -export declare type ReposGetCommitRefShaParams = { - owner: string; - ref: string; - repo: string; -}; -export declare type ReposGetContentsParams = { - owner: string; - path: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; - repo: string; -}; -export declare type ReposGetContributorsStatsParams = { - owner: string; - repo: string; -}; -export declare type ReposGetDeployKeyParams = { - key_id: number; - owner: string; - repo: string; -}; -export declare type ReposGetDeploymentParams = { - deployment_id: number; - owner: string; - repo: string; -}; -export declare type ReposGetDeploymentStatusParams = { - deployment_id: number; - owner: string; - repo: string; - status_id: number; -}; -export declare type ReposGetDownloadParams = { - download_id: number; - owner: string; - repo: string; -}; -export declare type ReposGetHookParams = { - hook_id: number; - owner: string; - repo: string; -}; -export declare type ReposGetLatestPagesBuildParams = { - owner: string; - repo: string; -}; -export declare type ReposGetLatestReleaseParams = { - owner: string; - repo: string; -}; -export declare type ReposGetPagesParams = { - owner: string; - repo: string; -}; -export declare type ReposGetPagesBuildParams = { - build_id: number; - owner: string; - repo: string; -}; -export declare type ReposGetParticipationStatsParams = { - owner: string; - repo: string; -}; -export declare type ReposGetProtectedBranchAdminEnforcementParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposGetProtectedBranchPullRequestReviewEnforcementParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposGetProtectedBranchRequiredSignaturesParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposGetProtectedBranchRequiredStatusChecksParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposGetProtectedBranchRestrictionsParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposGetPunchCardStatsParams = { - owner: string; - repo: string; -}; -export declare type ReposGetReadmeParams = { - owner: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; - repo: string; -}; -export declare type ReposGetReleaseParams = { - owner: string; - release_id: number; - repo: string; -}; -export declare type ReposGetReleaseAssetParams = { - asset_id: number; - owner: string; - repo: string; -}; -export declare type ReposGetReleaseByTagParams = { - owner: string; - repo: string; - tag: string; -}; -export declare type ReposGetTeamsWithAccessToProtectedBranchParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposGetTopPathsParams = { - owner: string; - repo: string; -}; -export declare type ReposGetTopReferrersParams = { - owner: string; - repo: string; -}; -export declare type ReposGetUsersWithAccessToProtectedBranchParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposGetViewsParams = { - owner: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; - repo: string; -}; -export declare type ReposListParams = { - /** - * 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. - */ - affiliation?: string; - /** - * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `all`, `owner`, `public`, `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**. - */ - type?: "all" | "owner" | "public" | "private" | "member"; - /** - * Can be one of `all`, `public`, or `private`. - */ - visibility?: "all" | "public" | "private"; -}; -export declare type ReposListAppsWithAccessToProtectedBranchParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposListAssetsForReleaseParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - release_id: number; - repo: string; -}; -export declare type ReposListBranchesParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. - */ - protected?: boolean; - repo: string; -}; -export declare type ReposListBranchesForHeadCommitParams = { - commit_sha: string; - owner: string; - repo: string; -}; -export declare type ReposListCollaboratorsParams = { - /** - * 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. - */ - affiliation?: "outside" | "direct" | "all"; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListCommentsForCommitParamsDeprecatedRef = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * @deprecated "ref" parameter renamed to "commit_sha" - */ - ref: string; - repo: string; -}; -export declare type ReposListCommentsForCommitParams = { - commit_sha: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListCommitCommentsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListCommitsParams = { - /** - * GitHub login or email address by which to filter by commit author. - */ - author?: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Only commits containing this file path will be returned. - */ - path?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`). - */ - sha?: string; - /** - * Only commits after 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`. - */ - since?: string; - /** - * 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`. - */ - until?: string; -}; -export declare type ReposListContributorsParams = { - /** - * Set to `1` or `true` to include anonymous contributors in results. - */ - anon?: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListDeployKeysParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListDeploymentStatusesParams = { - deployment_id: number; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListDeploymentsParams = { - /** - * The name of the environment that was deployed to (e.g., `staging` or `production`). - */ - environment?: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * The name of the ref. This can be a branch, tag, or SHA. - */ - ref?: string; - repo: string; - /** - * The SHA recorded at creation time. - */ - sha?: string; - /** - * The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; -}; -export declare type ReposListDownloadsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListForOrgParams = { - /** - * Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc` - */ - direction?: "asc" | "desc"; - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `type` can also be `internal`. - */ - type?: "all" | "public" | "private" | "forks" | "sources" | "member" | "internal"; -}; -export declare type ReposListForUserParams = { - /** - * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `all`, `owner`, `member`. - */ - type?: "all" | "owner" | "member"; - username: string; -}; -export declare type ReposListForksParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; - /** - * The sort order. Can be either `newest`, `oldest`, or `stargazers`. - */ - sort?: "newest" | "oldest" | "stargazers"; -}; -export declare type ReposListHooksParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListInvitationsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListInvitationsForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type ReposListLanguagesParams = { - owner: string; - repo: string; -}; -export declare type ReposListPagesBuildsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListProtectedBranchRequiredStatusChecksContextsParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposListProtectedBranchTeamRestrictionsParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposListProtectedBranchUserRestrictionsParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposListPublicParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * The integer ID of the last repository that you've seen. - */ - since?: number; -}; -export declare type ReposListPullRequestsAssociatedWithCommitParams = { - commit_sha: string; - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListReleasesParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListStatusesForRefParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - ref: string; - repo: string; -}; -export declare type ReposListTagsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListTeamsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - repo: string; -}; -export declare type ReposListTeamsWithAccessToProtectedBranchParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposListTopicsParams = { - owner: string; - repo: string; -}; -export declare type ReposListUsersWithAccessToProtectedBranchParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposMergeParams = { - /** - * The name of the base branch that the head will be merged into. - */ - base: string; - /** - * Commit message to use for the merge commit. If omitted, a default message will be used. - */ - commit_message?: string; - /** - * The head to merge. This can be a branch name or a commit SHA1. - */ - head: string; - owner: string; - repo: string; -}; -export declare type ReposPingHookParams = { - hook_id: number; - owner: string; - repo: string; -}; -export declare type ReposRemoveBranchProtectionParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposRemoveCollaboratorParams = { - owner: string; - repo: string; - username: string; -}; -export declare type ReposRemoveDeployKeyParams = { - key_id: number; - owner: string; - repo: string; -}; -export declare type ReposRemoveProtectedBranchAdminEnforcementParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposRemoveProtectedBranchAppRestrictionsParams = { - apps: string[]; - branch: string; - owner: string; - repo: string; -}; -export declare type ReposRemoveProtectedBranchPullRequestReviewEnforcementParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposRemoveProtectedBranchRequiredSignaturesParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposRemoveProtectedBranchRequiredStatusChecksParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsParams = { - branch: string; - contexts: string[]; - owner: string; - repo: string; -}; -export declare type ReposRemoveProtectedBranchRestrictionsParams = { - branch: string; - owner: string; - repo: string; -}; -export declare type ReposRemoveProtectedBranchTeamRestrictionsParams = { - branch: string; - owner: string; - repo: string; - teams: string[]; -}; -export declare type ReposRemoveProtectedBranchUserRestrictionsParams = { - branch: string; - owner: string; - repo: string; - users: string[]; -}; -export declare type ReposReplaceProtectedBranchAppRestrictionsParams = { - apps: string[]; - branch: string; - owner: string; - repo: string; -}; -export declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsParams = { - branch: string; - contexts: string[]; - owner: string; - repo: string; -}; -export declare type ReposReplaceProtectedBranchTeamRestrictionsParams = { - branch: string; - owner: string; - repo: string; - teams: string[]; -}; -export declare type ReposReplaceProtectedBranchUserRestrictionsParams = { - branch: string; - owner: string; - repo: string; - users: string[]; -}; -export declare type ReposReplaceTopicsParams = { - /** - * 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. - */ - names: string[]; - owner: string; - repo: string; -}; -export declare type ReposRequestPageBuildParams = { - owner: string; - repo: string; -}; -export declare type ReposRetrieveCommunityProfileMetricsParams = { - owner: string; - repo: string; -}; -export declare type ReposTestPushHookParams = { - hook_id: number; - owner: string; - repo: string; -}; -export declare type ReposTransferParams = { - /** - * **Required:** The username or organization name the repository will be transferred to. - */ - new_owner?: string; - owner: string; - repo: string; - /** - * ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. - */ - team_ids?: number[]; -}; -export declare type ReposUpdateParams = { - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API. - */ - archived?: boolean; - /** - * Updates the default branch for this repository. - */ - default_branch?: string; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; - /** - * A short description of the repository. - */ - description?: string; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * The name of the repository. - */ - name?: string; - owner: string; - /** - * Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. 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. - */ - private?: boolean; - repo: string; - /** - * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. The `visibility` parameter overrides the `private` parameter when you use both along with the `nebula-preview` preview header. - */ - visibility?: "public" | "private" | "visibility" | "internal"; -}; -export declare type ReposUpdateBranchProtectionParams = { - /** - * 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. - */ - allow_deletions?: boolean; - /** - * 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_force_pushes?: boolean | null; - branch: string; - /** - * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. - */ - enforce_admins: boolean | null; - owner: string; - repo: string; - /** - * 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. - */ - required_linear_history?: boolean; - /** - * Require at least one approving review on a pull request, before merging. Set to `null` to disable. - */ - required_pull_request_reviews: ReposUpdateBranchProtectionParamsRequiredPullRequestReviews | null; - /** - * Require status checks to pass before merging. Set to `null` to disable. - */ - required_status_checks: ReposUpdateBranchProtectionParamsRequiredStatusChecks | null; - /** - * 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. - */ - restrictions: ReposUpdateBranchProtectionParamsRestrictions | null; -}; -export declare type ReposUpdateCommitCommentParams = { - /** - * The contents of the comment - */ - body: string; - comment_id: number; - owner: string; - repo: string; -}; -export declare type ReposUpdateFileParams = { - /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. - */ - author?: ReposUpdateFileParamsAuthor; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * The person that committed the file. Default: the authenticated user. - */ - committer?: ReposUpdateFileParamsCommitter; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * The commit message. - */ - message: string; - owner: string; - path: string; - repo: string; - /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. - */ - sha?: string; -}; -export declare type ReposUpdateHookParams = { - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - /** - * Determines a list of events to be added to the list of events that the Hook triggers for. - */ - add_events?: string[]; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). - */ - config?: ReposUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events. - */ - events?: string[]; - hook_id: number; - owner: string; - /** - * Determines a list of events to be removed from the list of events that the Hook triggers for. - */ - remove_events?: string[]; - repo: string; -}; -export declare type ReposUpdateInformationAboutPagesSiteParams = { - /** - * Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/)." - */ - cname?: string; - owner: string; - repo: string; - /** - * 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"`. - */ - source?: '"gh-pages"' | '"master"' | '"master /docs"'; -}; -export declare type ReposUpdateInvitationParams = { - invitation_id: number; - owner: string; - /** - * The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`. - */ - permissions?: "read" | "write" | "admin"; - repo: string; -}; -export declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementParams = { - branch: string; - /** - * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. - */ - dismiss_stale_reviews?: boolean; - /** - * 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. - */ - dismissal_restrictions?: ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions; - owner: string; - repo: string; - /** - * Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed. - */ - require_code_owner_reviews?: boolean; - /** - * Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6. - */ - required_approving_review_count?: number; -}; -export declare type ReposUpdateProtectedBranchRequiredStatusChecksParams = { - branch: string; - /** - * The list of status checks to require in order to merge into this branch - */ - contexts?: string[]; - owner: string; - repo: string; - /** - * Require branches to be up to date before merging. - */ - strict?: boolean; -}; -export declare type ReposUpdateReleaseParams = { - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` makes the release a draft, and `false` publishes the release. - */ - draft?: boolean; - /** - * The name of the release. - */ - name?: string; - owner: string; - /** - * `true` to identify the release as a prerelease, `false` to identify the release as a full release. - */ - prerelease?: boolean; - release_id: number; - repo: string; - /** - * The name of the tag. - */ - tag_name?: string; - /** - * 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`). - */ - target_commitish?: string; -}; -export declare type ReposUpdateReleaseAssetParams = { - asset_id: number; - /** - * An alternate short description of the asset. Used in place of the filename. - */ - label?: string; - /** - * The file name of the asset. - */ - name?: string; - owner: string; - repo: string; -}; -export declare type ReposUploadReleaseAssetParamsDeprecatedFile = { - /** - * @deprecated "file" parameter renamed to "data" - */ - file: string | object; - headers: ReposUploadReleaseAssetParamsHeaders; - /** - * An alternate short description of the asset. Used in place of the filename. This should be set in a URI query parameter. - */ - label?: string; - /** - * The file name of the asset. This should be set in a URI query parameter. - */ - name: string; - /** - * The `upload_url` key returned from creating or getting a release - */ - url: string; -}; -export declare type ReposUploadReleaseAssetParams = { - data: string | object; - headers: ReposUploadReleaseAssetParamsHeaders; - /** - * An alternate short description of the asset. Used in place of the filename. This should be set in a URI query parameter. - */ - label?: string; - /** - * The file name of the asset. This should be set in a URI query parameter. - */ - name: string; - /** - * The `upload_url` key returned from creating or getting a release - */ - url: string; -}; -export declare type SearchCodeParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching code](https://help.github.com/articles/searching-code/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "indexed"; -}; -export declare type SearchCommitsParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching commits](https://help.github.com/articles/searching-commits/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "author-date" | "committer-date"; -}; -export declare type SearchEmailLegacyParams = { - /** - * The email address. - */ - email: string; -}; -export declare type SearchIssuesParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/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. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "comments" | "reactions" | "reactions-+1" | "reactions--1" | "reactions-smile" | "reactions-thinking_face" | "reactions-heart" | "reactions-tada" | "interactions" | "created" | "updated"; -}; -export declare type SearchIssuesAndPullRequestsParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/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. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "comments" | "reactions" | "reactions-+1" | "reactions--1" | "reactions-smile" | "reactions-thinking_face" | "reactions-heart" | "reactions-tada" | "interactions" | "created" | "updated"; -}; -export declare type SearchIssuesLegacyParams = { - /** - * The search term. - */ - keyword: string; - owner: string; - repository: string; - /** - * Indicates the state of the issues to return. Can be either `open` or `closed`. - */ - state: "open" | "closed"; -}; -export declare type SearchLabelsParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). - */ - q: string; - /** - * The id of the repository. - */ - repository_id: number; - /** - * Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "created" | "updated"; -}; -export declare type SearchReposParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "stars" | "forks" | "help-wanted-issues" | "updated"; -}; -export declare type SearchReposLegacyParams = { - /** - * The search term. - */ - keyword: string; - /** - * Filter results by language. - */ - language?: string; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The page number to fetch. - */ - start_page?: string; -}; -export declare type SearchTopicsParams = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). - */ - q: string; -}; -export declare type SearchUsersParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching users](https://help.github.com/articles/searching-users/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "followers" | "repositories" | "joined"; -}; -export declare type SearchUsersLegacyParams = { - /** - * The search term. - */ - keyword: string; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The page number to fetch. - */ - start_page?: string; -}; -export declare type TeamsAddMemberParams = { - team_id: number; - username: string; -}; -export declare type TeamsAddMemberLegacyParams = { - team_id: number; - username: string; -}; -export declare type TeamsAddOrUpdateMembershipParams = { - /** - * 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. - */ - role?: "member" | "maintainer"; - team_id: number; - username: string; -}; -export declare type TeamsAddOrUpdateMembershipInOrgParams = { - org: string; - /** - * 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. - */ - role?: "member" | "maintainer"; - team_slug: string; - username: string; -}; -export declare type TeamsAddOrUpdateMembershipLegacyParams = { - /** - * 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. - */ - role?: "member" | "maintainer"; - team_id: number; - username: string; -}; -export declare type TeamsAddOrUpdateProjectParams = { - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; - project_id: number; - team_id: number; -}; -export declare type TeamsAddOrUpdateProjectInOrgParams = { - org: string; - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; - project_id: number; - team_slug: string; -}; -export declare type TeamsAddOrUpdateProjectLegacyParams = { - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; - project_id: number; - team_id: number; -}; -export declare type TeamsAddOrUpdateRepoParams = { - owner: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; - repo: string; - team_id: number; -}; -export declare type TeamsAddOrUpdateRepoInOrgParams = { - org: string; - owner: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; - repo: string; - team_slug: string; -}; -export declare type TeamsAddOrUpdateRepoLegacyParams = { - owner: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; - repo: string; - team_id: number; -}; -export declare type TeamsCheckManagesRepoParams = { - owner: string; - repo: string; - team_id: number; -}; -export declare type TeamsCheckManagesRepoInOrgParams = { - org: string; - owner: string; - repo: string; - team_slug: string; -}; -export declare type TeamsCheckManagesRepoLegacyParams = { - owner: string; - repo: string; - team_id: number; -}; -export declare type TeamsCreateParamsDeprecatedPermission = { - /** - * The description of the team. - */ - description?: string; - /** - * List GitHub IDs for organization members who will become team maintainers. - */ - maintainers?: string[]; - /** - * The name of the team. - */ - name: string; - org: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * **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. - * @deprecated "permission" parameter has been deprecated and will be removed in future - */ - permission?: string; - /** - * 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` - */ - privacy?: "secret" | "closed"; - /** - * The full name (e.g., "organization-name/repository-name") of repositories to add the team to. - */ - repo_names?: string[]; -}; -export declare type TeamsCreateParams = { - /** - * The description of the team. - */ - description?: string; - /** - * List GitHub IDs for organization members who will become team maintainers. - */ - maintainers?: string[]; - /** - * The name of the team. - */ - name: string; - org: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * 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` - */ - privacy?: "secret" | "closed"; - /** - * The full name (e.g., "organization-name/repository-name") of repositories to add the team to. - */ - repo_names?: string[]; -}; -export declare type TeamsCreateDiscussionParams = { - /** - * The discussion post's body text. - */ - body: string; - /** - * 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. - */ - private?: boolean; - team_id: number; - /** - * The discussion post's title. - */ - title: string; -}; -export declare type TeamsCreateDiscussionCommentParams = { - /** - * The discussion comment's body text. - */ - body: string; - discussion_number: number; - team_id: number; -}; -export declare type TeamsCreateDiscussionCommentInOrgParams = { - /** - * The discussion comment's body text. - */ - body: string; - discussion_number: number; - org: string; - team_slug: string; -}; -export declare type TeamsCreateDiscussionCommentLegacyParams = { - /** - * The discussion comment's body text. - */ - body: string; - discussion_number: number; - team_id: number; -}; -export declare type TeamsCreateDiscussionInOrgParams = { - /** - * The discussion post's body text. - */ - body: string; - org: string; - /** - * 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. - */ - private?: boolean; - team_slug: string; - /** - * The discussion post's title. - */ - title: string; -}; -export declare type TeamsCreateDiscussionLegacyParams = { - /** - * The discussion post's body text. - */ - body: string; - /** - * 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. - */ - private?: boolean; - team_id: number; - /** - * The discussion post's title. - */ - title: string; -}; -export declare type TeamsDeleteParams = { - team_id: number; -}; -export declare type TeamsDeleteDiscussionParams = { - discussion_number: number; - team_id: number; -}; -export declare type TeamsDeleteDiscussionCommentParams = { - comment_number: number; - discussion_number: number; - team_id: number; -}; -export declare type TeamsDeleteDiscussionCommentInOrgParams = { - comment_number: number; - discussion_number: number; - org: string; - team_slug: string; -}; -export declare type TeamsDeleteDiscussionCommentLegacyParams = { - comment_number: number; - discussion_number: number; - team_id: number; -}; -export declare type TeamsDeleteDiscussionInOrgParams = { - discussion_number: number; - org: string; - team_slug: string; -}; -export declare type TeamsDeleteDiscussionLegacyParams = { - discussion_number: number; - team_id: number; -}; -export declare type TeamsDeleteInOrgParams = { - org: string; - team_slug: string; -}; -export declare type TeamsDeleteLegacyParams = { - team_id: number; -}; -export declare type TeamsGetParams = { - team_id: number; -}; -export declare type TeamsGetByNameParams = { - org: string; - team_slug: string; -}; -export declare type TeamsGetDiscussionParams = { - discussion_number: number; - team_id: number; -}; -export declare type TeamsGetDiscussionCommentParams = { - comment_number: number; - discussion_number: number; - team_id: number; -}; -export declare type TeamsGetDiscussionCommentInOrgParams = { - comment_number: number; - discussion_number: number; - org: string; - team_slug: string; -}; -export declare type TeamsGetDiscussionCommentLegacyParams = { - comment_number: number; - discussion_number: number; - team_id: number; -}; -export declare type TeamsGetDiscussionInOrgParams = { - discussion_number: number; - org: string; - team_slug: string; -}; -export declare type TeamsGetDiscussionLegacyParams = { - discussion_number: number; - team_id: number; -}; -export declare type TeamsGetLegacyParams = { - team_id: number; -}; -export declare type TeamsGetMemberParams = { - team_id: number; - username: string; -}; -export declare type TeamsGetMemberLegacyParams = { - team_id: number; - username: string; -}; -export declare type TeamsGetMembershipParams = { - team_id: number; - username: string; -}; -export declare type TeamsGetMembershipInOrgParams = { - org: string; - team_slug: string; - username: string; -}; -export declare type TeamsGetMembershipLegacyParams = { - team_id: number; - username: string; -}; -export declare type TeamsListParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type TeamsListChildParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListChildInOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_slug: string; -}; -export declare type TeamsListChildLegacyParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListDiscussionCommentsParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListDiscussionCommentsInOrgParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - discussion_number: number; - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_slug: string; -}; -export declare type TeamsListDiscussionCommentsLegacyParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListDiscussionsParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListDiscussionsInOrgParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_slug: string; -}; -export declare type TeamsListDiscussionsLegacyParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type TeamsListMembersParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - team_id: number; -}; -export declare type TeamsListMembersInOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - team_slug: string; -}; -export declare type TeamsListMembersLegacyParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - team_id: number; -}; -export declare type TeamsListPendingInvitationsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListPendingInvitationsInOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_slug: string; -}; -export declare type TeamsListPendingInvitationsLegacyParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListProjectsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListProjectsInOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_slug: string; -}; -export declare type TeamsListProjectsLegacyParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListReposParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsListReposInOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_slug: string; -}; -export declare type TeamsListReposLegacyParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - team_id: number; -}; -export declare type TeamsRemoveMemberParams = { - team_id: number; - username: string; -}; -export declare type TeamsRemoveMemberLegacyParams = { - team_id: number; - username: string; -}; -export declare type TeamsRemoveMembershipParams = { - team_id: number; - username: string; -}; -export declare type TeamsRemoveMembershipInOrgParams = { - org: string; - team_slug: string; - username: string; -}; -export declare type TeamsRemoveMembershipLegacyParams = { - team_id: number; - username: string; -}; -export declare type TeamsRemoveProjectParams = { - project_id: number; - team_id: number; -}; -export declare type TeamsRemoveProjectInOrgParams = { - org: string; - project_id: number; - team_slug: string; -}; -export declare type TeamsRemoveProjectLegacyParams = { - project_id: number; - team_id: number; -}; -export declare type TeamsRemoveRepoParams = { - owner: string; - repo: string; - team_id: number; -}; -export declare type TeamsRemoveRepoInOrgParams = { - org: string; - owner: string; - repo: string; - team_slug: string; -}; -export declare type TeamsRemoveRepoLegacyParams = { - owner: string; - repo: string; - team_id: number; -}; -export declare type TeamsReviewProjectParams = { - project_id: number; - team_id: number; -}; -export declare type TeamsReviewProjectInOrgParams = { - org: string; - project_id: number; - team_slug: string; -}; -export declare type TeamsReviewProjectLegacyParams = { - project_id: number; - team_id: number; -}; -export declare type TeamsUpdateParamsDeprecatedPermission = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * **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. - * @deprecated "permission" parameter has been deprecated and will be removed in future - */ - permission?: string; - /** - * 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. - */ - privacy?: "secret" | "closed"; - team_id: number; -}; -export declare type TeamsUpdateParams = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * 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. - */ - privacy?: "secret" | "closed"; - team_id: number; -}; -export declare type TeamsUpdateDiscussionParams = { - /** - * The discussion post's body text. - */ - body?: string; - discussion_number: number; - team_id: number; - /** - * The discussion post's title. - */ - title?: string; -}; -export declare type TeamsUpdateDiscussionCommentParams = { - /** - * The discussion comment's body text. - */ - body: string; - comment_number: number; - discussion_number: number; - team_id: number; -}; -export declare type TeamsUpdateDiscussionCommentInOrgParams = { - /** - * The discussion comment's body text. - */ - body: string; - comment_number: number; - discussion_number: number; - org: string; - team_slug: string; -}; -export declare type TeamsUpdateDiscussionCommentLegacyParams = { - /** - * The discussion comment's body text. - */ - body: string; - comment_number: number; - discussion_number: number; - team_id: number; -}; -export declare type TeamsUpdateDiscussionInOrgParams = { - /** - * The discussion post's body text. - */ - body?: string; - discussion_number: number; - org: string; - team_slug: string; - /** - * The discussion post's title. - */ - title?: string; -}; -export declare type TeamsUpdateDiscussionLegacyParams = { - /** - * The discussion post's body text. - */ - body?: string; - discussion_number: number; - team_id: number; - /** - * The discussion post's title. - */ - title?: string; -}; -export declare type TeamsUpdateInOrgParamsDeprecatedPermission = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - org: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * **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. - * @deprecated "permission" parameter has been deprecated and will be removed in future - */ - permission?: string; - /** - * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. 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. - */ - privacy?: "secret" | "closed"; - team_slug: string; -}; -export declare type TeamsUpdateInOrgParams = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - org: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. 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. - */ - privacy?: "secret" | "closed"; - team_slug: string; -}; -export declare type TeamsUpdateLegacyParamsDeprecatedPermission = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * **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. - * @deprecated "permission" parameter has been deprecated and will be removed in future - */ - permission?: string; - /** - * 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. - */ - privacy?: "secret" | "closed"; - team_id: number; -}; -export declare type TeamsUpdateLegacyParams = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * 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. - */ - privacy?: "secret" | "closed"; - team_id: number; -}; -export declare type UsersAddEmailsParams = { - /** - * Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; -}; -export declare type UsersBlockParams = { - username: string; -}; -export declare type UsersCheckBlockedParams = { - username: string; -}; -export declare type UsersCheckFollowingParams = { - username: string; -}; -export declare type UsersCheckFollowingForUserParams = { - target_user: string; - username: string; -}; -export declare type UsersCreateGpgKeyParams = { - /** - * Your GPG key, generated in ASCII-armored format. See "[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)" for help creating a GPG key. - */ - armored_public_key?: string; -}; -export declare type UsersCreatePublicKeyParams = { - /** - * The public SSH key to add to your GitHub account. See "[Generating a new SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)" for guidance on how to create a public SSH key. - */ - key?: string; - /** - * A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air". - */ - title?: string; -}; -export declare type UsersDeleteEmailsParams = { - /** - * Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; -}; -export declare type UsersDeleteGpgKeyParams = { - gpg_key_id: number; -}; -export declare type UsersDeletePublicKeyParams = { - key_id: number; -}; -export declare type UsersFollowParams = { - username: string; -}; -export declare type UsersGetByUsernameParams = { - username: string; -}; -export declare type UsersGetContextForUserParams = { - /** - * Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. - */ - subject_id?: string; - /** - * 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_type?: "organization" | "repository" | "issue" | "pull_request"; - username: string; -}; -export declare type UsersGetGpgKeyParams = { - gpg_key_id: number; -}; -export declare type UsersGetPublicKeyParams = { - key_id: number; -}; -export declare type UsersListParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * The integer ID of the last User that you've seen. - */ - since?: string; -}; -export declare type UsersListEmailsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type UsersListFollowersForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type UsersListFollowersForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type UsersListFollowingForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type UsersListFollowingForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type UsersListGpgKeysParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type UsersListGpgKeysForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type UsersListPublicEmailsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type UsersListPublicKeysParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; -}; -export declare type UsersListPublicKeysForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - username: string; -}; -export declare type UsersTogglePrimaryEmailVisibilityParams = { - /** - * Specify the _primary_ email address that needs a visibility change. - */ - email: string; - /** - * Use `public` to enable an authenticated user to view the specified email address, or use `private` so this primary email address cannot be seen publicly. - */ - visibility: string; -}; -export declare type UsersUnblockParams = { - username: string; -}; -export declare type UsersUnfollowParams = { - username: string; -}; -export declare type UsersUpdateAuthenticatedParams = { - /** - * The new short biography of the user. - */ - bio?: string; - /** - * The new blog URL of the user. - */ - blog?: string; - /** - * The new company of the user. - */ - company?: string; - /** - * The publicly visible email address of the user. - */ - email?: string; - /** - * The new hiring availability of the user. - */ - hireable?: boolean; - /** - * The new location of the user. - */ - location?: string; - /** - * The new name of the user. - */ - name?: string; -}; -export declare type AppsCreateInstallationTokenParamsPermissions = {}; -export declare type ChecksCreateParamsActions = { - /** - * A short explanation of what this action would do. The maximum size is 40 characters. - */ - description: string; - /** - * A reference for the action on the integrator's system. The maximum size is 20 characters. - */ - identifier: string; - /** - * The text to be displayed on a button in the web UI. The maximum size is 20 characters. - */ - label: string; -}; -export declare type ChecksCreateParamsOutput = { - /** - * Adds information from your analysis to specific lines of code. Annotations are visible on GitHub in the **Checks** and **Files changed** tab of the pull request. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about how you can view annotations on GitHub, see "[About status checks](https://help.github.com/articles/about-status-checks#checks)". See the [`annotations` object](https://developer.github.com/v3/checks/runs/#annotations-object) description for details about how to use this parameter. - */ - annotations?: ChecksCreateParamsOutputAnnotations[]; - /** - * Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/v3/checks/runs/#images-object) description for details. - */ - images?: ChecksCreateParamsOutputImages[]; - /** - * The summary of the check run. This parameter supports Markdown. - */ - summary: string; - /** - * The details of the check run. This parameter supports Markdown. - */ - text?: string; - /** - * The title of the check run. - */ - title: string; -}; -export declare type ChecksCreateParamsOutputAnnotations = { - /** - * The level of the annotation. Can be one of `notice`, `warning`, or `failure`. - */ - annotation_level: "notice" | "warning" | "failure"; - /** - * The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. - */ - end_column?: number; - /** - * The end line of the annotation. - */ - end_line: number; - /** - * A short description of the feedback for these lines of code. The maximum size is 64 KB. - */ - message: string; - /** - * The path of the file to add an annotation to. For example, `assets/css/main.css`. - */ - path: string; - /** - * Details about this annotation. The maximum size is 64 KB. - */ - raw_details?: string; - /** - * The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. - */ - start_column?: number; - /** - * The start line of the annotation. - */ - start_line: number; - /** - * The title that represents the annotation. The maximum size is 255 characters. - */ - title?: string; -}; -export declare type ChecksCreateParamsOutputImages = { - /** - * The alternative text for the image. - */ - alt: string; - /** - * A short image description. - */ - caption?: string; - /** - * The full URL of the image. - */ - image_url: string; -}; -export declare type ChecksSetSuitesPreferencesParamsAutoTriggerChecks = { - /** - * The `id` of the GitHub App. - */ - app_id: number; - /** - * Set to `true` to enable automatic creation of CheckSuite events upon pushes to the repository, or `false` to disable them. - */ - setting: boolean; -}; -export declare type ChecksUpdateParamsActions = { - /** - * A short explanation of what this action would do. The maximum size is 40 characters. - */ - description: string; - /** - * A reference for the action on the integrator's system. The maximum size is 20 characters. - */ - identifier: string; - /** - * The text to be displayed on a button in the web UI. The maximum size is 20 characters. - */ - label: string; -}; -export declare type ChecksUpdateParamsOutput = { - /** - * Adds information from your analysis to specific lines of code. Annotations are visible in GitHub's pull request UI. Annotations are visible in GitHub's pull request UI. The Checks API limits the number of annotations to a maximum of 50 per API request. To create more than 50 annotations, you have to make multiple requests to the [Update a check run](https://developer.github.com/v3/checks/runs/#update-a-check-run) endpoint. Each time you update the check run, annotations are appended to the list of annotations that already exist for the check run. For details about annotations in the UI, see "[About status checks](https://help.github.com/articles/about-status-checks#checks)". See the [`annotations` object](https://developer.github.com/v3/checks/runs/#annotations-object-1) description for details. - */ - annotations?: ChecksUpdateParamsOutputAnnotations[]; - /** - * Adds images to the output displayed in the GitHub pull request UI. See the [`images` object](https://developer.github.com/v3/checks/runs/#annotations-object-1) description for details. - */ - images?: ChecksUpdateParamsOutputImages[]; - /** - * Can contain Markdown. - */ - summary: string; - /** - * Can contain Markdown. - */ - text?: string; - /** - * **Required**. - */ - title?: string; -}; -export declare type ChecksUpdateParamsOutputAnnotations = { - /** - * The level of the annotation. Can be one of `notice`, `warning`, or `failure`. - */ - annotation_level: "notice" | "warning" | "failure"; - /** - * The end column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. - */ - end_column?: number; - /** - * The end line of the annotation. - */ - end_line: number; - /** - * A short description of the feedback for these lines of code. The maximum size is 64 KB. - */ - message: string; - /** - * The path of the file to add an annotation to. For example, `assets/css/main.css`. - */ - path: string; - /** - * Details about this annotation. The maximum size is 64 KB. - */ - raw_details?: string; - /** - * The start column of the annotation. Annotations only support `start_column` and `end_column` on the same line. Omit this parameter if `start_line` and `end_line` have different values. - */ - start_column?: number; - /** - * The start line of the annotation. - */ - start_line: number; - /** - * The title that represents the annotation. The maximum size is 255 characters. - */ - title?: string; -}; -export declare type ChecksUpdateParamsOutputImages = { - /** - * The alternative text for the image. - */ - alt: string; - /** - * A short image description. - */ - caption?: string; - /** - * The full URL of the image. - */ - image_url: string; -}; -export declare type GistsCreateParamsFiles = { - /** - * The content of the file. - */ - content?: string; -}; -export declare type GistsUpdateParamsFiles = { - /** - * The updated content of the file. - */ - content?: string; - /** - * The new name for this file. To delete a file, set the value of the filename to `null`. - */ - filename?: string; -}; -export declare type GitCreateCommitParamsAuthor = { - /** - * Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - date?: string; - /** - * The email of the author (or committer) of the commit - */ - email?: string; - /** - * The name of the author (or committer) of the commit - */ - name?: string; -}; -export declare type GitCreateCommitParamsCommitter = { - /** - * Indicates when this commit was authored (or committed). This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - date?: string; - /** - * The email of the author (or committer) of the commit - */ - email?: string; - /** - * The name of the author (or committer) of the commit - */ - name?: string; -}; -export declare type GitCreateTagParamsTagger = { - /** - * When this object was tagged. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - date?: string; - /** - * The email of the author of the tag - */ - email?: string; - /** - * The name of the author of the tag - */ - name?: string; -}; -export declare type GitCreateTreeParamsTree = { - /** - * The content you want this file to have. GitHub will write this blob out and use that SHA for this entry. Use either this, or `tree.sha`. - * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. - */ - content?: string; - /** - * The file mode; one of `100644` for file (blob), `100755` for executable (blob), `040000` for subdirectory (tree), `160000` for submodule (commit), or `120000` for a blob that specifies the path of a symlink. - */ - mode?: "100644" | "100755" | "040000" | "160000" | "120000"; - /** - * The file referenced in the tree. - */ - path?: string; - /** - * The SHA1 checksum ID of the object in the tree. Also called `tree.sha`. If the value is `null` then the file will be deleted. - * - * **Note:** Use either `tree.sha` or `content` to specify the contents of the entry. Using both `tree.sha` and `content` will return an error. - */ - sha?: string | null; - /** - * Either `blob`, `tree`, or `commit`. - */ - type?: "blob" | "tree" | "commit"; -}; -export declare type OrgsCreateHookParamsConfig = { - /** - * The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. - */ - content_type?: string; - /** - * Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** - */ - insecure_ssl?: string; - /** - * If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header. - */ - secret?: string; - /** - * The URL to which the payloads will be delivered. - */ - url: string; -}; -export declare type OrgsUpdateHookParamsConfig = { - /** - * The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. - */ - content_type?: string; - /** - * Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** - */ - insecure_ssl?: string; - /** - * If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header. - */ - secret?: string; - /** - * The URL to which the payloads will be delivered. - */ - url: string; -}; -export declare type PullsCreateReviewParamsComments = { - /** - * Text of the review comment. - */ - body: string; - /** - * The relative path to the file that necessitates a review comment. - */ - path: string; - /** - * The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note below. - */ - position: number; -}; -export declare type ReposCreateDispatchEventParamsClientPayload = {}; -export declare type ReposCreateFileParamsAuthor = { - /** - * The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted. - */ - email: string; - /** - * The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. - */ - name: string; -}; -export declare type ReposCreateFileParamsCommitter = { - /** - * The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted. - */ - email: string; - /** - * The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. - */ - name: string; -}; -export declare type ReposCreateHookParamsConfig = { - /** - * The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. - */ - content_type?: string; - /** - * Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** - */ - insecure_ssl?: string; - /** - * If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header. - */ - secret?: string; - /** - * The URL to which the payloads will be delivered. - */ - url: string; -}; -export declare type ReposCreateOrUpdateFileParamsAuthor = { - /** - * The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted. - */ - email: string; - /** - * The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. - */ - name: string; -}; -export declare type ReposCreateOrUpdateFileParamsCommitter = { - /** - * The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted. - */ - email: string; - /** - * The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. - */ - name: string; -}; -export declare type ReposDeleteFileParamsAuthor = { - /** - * The email of the author (or committer) of the commit - */ - email?: string; - /** - * The name of the author (or committer) of the commit - */ - name?: string; -}; -export declare type ReposDeleteFileParamsCommitter = { - /** - * The email of the author (or committer) of the commit - */ - email?: string; - /** - * The name of the author (or committer) of the commit - */ - name?: string; -}; -export declare type ReposEnablePagesSiteParamsSource = { - /** - * The repository branch used to publish your [site's source files](https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/). Can be either `master` or `gh-pages`. - */ - branch?: "master" | "gh-pages"; - /** - * The repository directory that includes the source files for the Pages site. When `branch` is `master`, you can change `path` to `/docs`. When `branch` is `gh-pages`, you are unable to specify a `path` other than `/`. - */ - path?: string; -}; -export declare type ReposUpdateBranchProtectionParamsRequiredPullRequestReviews = { - /** - * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. - */ - dismiss_stale_reviews?: boolean; - /** - * 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. - */ - dismissal_restrictions?: ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions; - /** - * Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) review them. - */ - require_code_owner_reviews?: boolean; - /** - * Specify the number of reviewers required to approve pull requests. Use a number between 1 and 6. - */ - required_approving_review_count?: number; -}; -export declare type ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions = { - /** - * The list of team `slug`s with dismissal access - */ - teams?: string[]; - /** - * The list of user `login`s with dismissal access - */ - users?: string[]; -}; -export declare type ReposUpdateBranchProtectionParamsRequiredStatusChecks = { - /** - * The list of status checks to require in order to merge into this branch - */ - contexts: string[]; - /** - * Require branches to be up to date before merging. - */ - strict: boolean; -}; -export declare type ReposUpdateBranchProtectionParamsRestrictions = { - /** - * The list of app `slug`s with push access - */ - apps?: string[]; - /** - * The list of team `slug`s with push access - */ - teams: string[]; - /** - * The list of user `login`s with push access - */ - users: string[]; -}; -export declare type ReposUpdateFileParamsAuthor = { - /** - * The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted. - */ - email: string; - /** - * The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. - */ - name: string; -}; -export declare type ReposUpdateFileParamsCommitter = { - /** - * The email of the author or committer of the commit. You'll receive a `422` status code if `email` is omitted. - */ - email: string; - /** - * The name of the author or committer of the commit. You'll receive a `422` status code if `name` is omitted. - */ - name: string; -}; -export declare type ReposUpdateHookParamsConfig = { - /** - * The media type used to serialize the payloads. Supported values include `json` and `form`. The default is `form`. - */ - content_type?: string; - /** - * Determines whether the SSL certificate of the host for `url` will be verified when delivering payloads. Supported values include `0` (verification is performed) and `1` (verification is not performed). The default is `0`. **We strongly recommend not setting this to `1` as you are subject to man-in-the-middle and other attacks.** - */ - insecure_ssl?: string; - /** - * If provided, the `secret` will be used as the `key` to generate the HMAC hex digest value in the [`X-Hub-Signature`](https://developer.github.com/webhooks/#delivery-headers) header. - */ - secret?: string; - /** - * The URL to which the payloads will be delivered. - */ - url: string; -}; -export declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions = { - /** - * The list of team `slug`s with dismissal access - */ - teams?: string[]; - /** - * The list of user `login`s with dismissal access - */ - users?: string[]; -}; -export declare type ReposUploadReleaseAssetParamsHeaders = { - "content-length": number; - "content-type": string; -}; -export declare type RestEndpointMethods = { - actions: { - /** - * Cancels a workflow run using its `id`. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - cancelWorkflowRun: { - (params?: RequestParameters & ActionsCancelWorkflowRunParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Creates or updates a secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `secrets` permission to use this endpoint. - * - * Encrypt your secret using the [tweetsodium](https://github.com/mastahyeti/tweetsodium) library. - * - * - * - * Encrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/stable/public/#nacl-public-sealedbox) with Python 3. - * - * - * - * Encrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package. - * - * - * - * Encrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem. - */ - createOrUpdateSecretForRepo: { - (params?: RequestParameters & ActionsCreateOrUpdateSecretForRepoParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Returns a token that you can pass to the `config` script. The token expires after one hour. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - * - * Configure your self-hosted runner, replacing TOKEN with the registration token provided by this endpoint. - */ - createRegistrationToken: { - (params?: RequestParameters & ActionsCreateRegistrationTokenParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns a token that you can pass to remove a self-hosted runner from a repository. The token expires after one hour. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - * - * Remove your self-hosted runner from a repository, replacing TOKEN with the remove token provided by this endpoint. - */ - createRemoveToken: { - (params?: RequestParameters & ActionsCreateRemoveTokenParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Deletes an artifact for a workflow run. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - deleteArtifact: { - (params?: RequestParameters & ActionsDeleteArtifactParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Deletes a secret in a repository using the secret name. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `secrets` permission to use this endpoint. - */ - deleteSecretFromRepo: { - (params?: RequestParameters & ActionsDeleteSecretFromRepoParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. The `:archive_format` must be `zip`. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - * - * Call this endpoint using the `-v` flag, which enables verbose output and allows you to see the download URL in the header. To download the file into the current working directory, specify the filename using the `-o` flag. - */ - downloadArtifact: { - (params?: RequestParameters & ActionsDownloadArtifactParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Gets a specific artifact for a workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - getArtifact: { - (params?: RequestParameters & ActionsGetArtifactParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets your public key, which you must store. You need your public key to use other secrets endpoints. Use the returned `key` to encrypt your secrets. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `secrets` permission to use this endpoint. - */ - getPublicKey: { - (params?: RequestParameters & ActionsGetPublicKeyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets a single secret without revealing its encrypted value. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `secrets` permission to use this endpoint. - */ - getSecret: { - (params?: RequestParameters & ActionsGetSecretParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets a specific self-hosted runner. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - */ - getSelfHostedRunner: { - (params?: RequestParameters & ActionsGetSelfHostedRunnerParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets a specific workflow. You can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yml`. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - getWorkflow: { - (params?: RequestParameters & ActionsGetWorkflowParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets a specific job in a workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - getWorkflowJob: { - (params?: RequestParameters & ActionsGetWorkflowJobParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets a specific workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - getWorkflowRun: { - (params?: RequestParameters & ActionsGetWorkflowRunParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists binaries for the self-hosted runner application that you can download and run. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - */ - listDownloadsForSelfHostedRunnerApplication: { - (params?: RequestParameters & ActionsListDownloadsForSelfHostedRunnerApplicationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists jobs for a workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - listJobsForWorkflowRun: { - (params?: RequestParameters & ActionsListJobsForWorkflowRunParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://developer.github.com/v3/#parameters). - * - * Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - listRepoWorkflowRuns: { - (params?: RequestParameters & ActionsListRepoWorkflowRunsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the workflows in a repository. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - listRepoWorkflows: { - (params?: RequestParameters & ActionsListRepoWorkflowsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all secrets available in a repository without revealing their encrypted values. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `secrets` permission to use this endpoint. - */ - listSecretsForRepo: { - (params?: RequestParameters & ActionsListSecretsForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all self-hosted runners for a repository. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - */ - listSelfHostedRunnersForRepo: { - (params?: RequestParameters & ActionsListSelfHostedRunnersForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - * - * Call this endpoint using the `-v` flag, which enables verbose output and allows you to see the download URL in the header. To download the file into the current working directory, specify the filename using the `-o` flag. - */ - listWorkflowJobLogs: { - (params?: RequestParameters & ActionsListWorkflowJobLogsParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Lists artifacts for a workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - listWorkflowRunArtifacts: { - (params?: RequestParameters & ActionsListWorkflowRunArtifactsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets a redirect URL to download an archive of log files for a workflow run. This link expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - * - * Call this endpoint using the `-v` flag, which enables verbose output and allows you to see the download URL in the header. To download the file into the current working directory, specify the filename using the `-o` flag. - */ - listWorkflowRunLogs: { - (params?: RequestParameters & ActionsListWorkflowRunLogsParams): Promise; - endpoint: EndpointInterface; - }; - /** - * List all workflow runs for a workflow. You can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://developer.github.com/v3/#parameters). - * - * Anyone with read access to the repository can use this endpoint. - */ - listWorkflowRuns: { - (params?: RequestParameters & ActionsListWorkflowRunsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Re-runs your workflow run using its `id`. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - reRunWorkflow: { - (params?: RequestParameters & ActionsReRunWorkflowParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - */ - removeSelfHostedRunner: { - (params?: RequestParameters & ActionsRemoveSelfHostedRunnerParams): Promise; - endpoint: EndpointInterface; - }; - }; - activity: { - /** - * Requires for the user to be authenticated. - */ - checkStarringRepo: { - (params?: RequestParameters & ActivityCheckStarringRepoParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Requires for the user to be authenticated. - */ - checkWatchingRepoLegacy: { - (params?: RequestParameters & ActivityCheckWatchingRepoLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://developer.github.com/v3/activity/watching/#set-a-repository-subscription). - */ - deleteRepoSubscription: { - (params?: RequestParameters & ActivityDeleteRepoSubscriptionParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Mutes all future notifications for a conversation until you comment on the thread or get **@mention**ed. - */ - deleteThreadSubscription: { - (params?: RequestParameters & ActivityDeleteThreadSubscriptionParams): Promise; - endpoint: EndpointInterface; - }; - getRepoSubscription: { - (params?: RequestParameters & ActivityGetRepoSubscriptionParams): Promise>; - endpoint: EndpointInterface; - }; - getThread: { - (params?: RequestParameters & ActivityGetThreadParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://developer.github.com/v3/activity/watching/#get-a-repository-subscription). - * - * Note that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread. - */ - getThreadSubscription: { - (params?: RequestParameters & ActivityGetThreadSubscriptionParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This is the user's organization dashboard. You must be authenticated as the user to view this. - */ - listEventsForOrg: { - (params?: RequestParameters & ActivityListEventsForOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. - */ - listEventsForUser: { - (params?: RequestParameters & ActivityListEventsForUserParams): Promise; - endpoint: EndpointInterface; - }; - /** - * GitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user: - * - * * **Timeline**: The GitHub global public timeline - * * **User**: The public timeline for any user, using [URI template](https://developer.github.com/v3/#hypermedia) - * * **Current user public**: The public timeline for the authenticated user - * * **Current user**: The private timeline for the authenticated user - * * **Current user actor**: The private timeline for activity created by the authenticated user - * * **Current user organizations**: The private timeline for the organizations the authenticated user is a member of. - * * **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub. - * - * **Note**: Private feeds are only returned when [authenticating via Basic Auth](https://developer.github.com/v3/#basic-authentication) since current feed URIs use the older, non revocable auth tokens. - */ - listFeeds: { - (params?: RequestParameters & EmptyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all notifications for the current user, sorted by most recently updated. - * - * The following example uses the `since` parameter to list notifications that have been updated after the specified time. - */ - listNotifications: { - (params?: RequestParameters & ActivityListNotificationsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all notifications for the current user. - */ - listNotificationsForRepo: { - (params?: RequestParameters & ActivityListNotificationsForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago. - */ - listPublicEvents: { - (params?: RequestParameters & ActivityListPublicEventsParams): Promise; - endpoint: EndpointInterface; - }; - listPublicEventsForOrg: { - (params?: RequestParameters & ActivityListPublicEventsForOrgParams): Promise; - endpoint: EndpointInterface; - }; - listPublicEventsForRepoNetwork: { - (params?: RequestParameters & ActivityListPublicEventsForRepoNetworkParams): Promise; - endpoint: EndpointInterface; - }; - listPublicEventsForUser: { - (params?: RequestParameters & ActivityListPublicEventsForUserParams): Promise; - endpoint: EndpointInterface; - }; - /** - * These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events. - */ - listReceivedEventsForUser: { - (params?: RequestParameters & ActivityListReceivedEventsForUserParams): Promise; - endpoint: EndpointInterface; - }; - listReceivedPublicEventsForUser: { - (params?: RequestParameters & ActivityListReceivedPublicEventsForUserParams): Promise; - endpoint: EndpointInterface; - }; - listRepoEvents: { - (params?: RequestParameters & ActivityListRepoEventsParams): Promise; - endpoint: EndpointInterface; - }; - /** - * You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - listReposStarredByAuthenticatedUser: { - (params?: RequestParameters & ActivityListReposStarredByAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - listReposStarredByUser: { - (params?: RequestParameters & ActivityListReposStarredByUserParams): Promise>; - endpoint: EndpointInterface; - }; - listReposWatchedByUser: { - (params?: RequestParameters & ActivityListReposWatchedByUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - listStargazersForRepo: { - (params?: RequestParameters & ActivityListStargazersForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - listWatchedReposForAuthenticatedUser: { - (params?: RequestParameters & ActivityListWatchedReposForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - listWatchersForRepo: { - (params?: RequestParameters & ActivityListWatchersForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Marks a notification as "read" removes it from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List your notifications](https://developer.github.com/v3/activity/notifications/#list-your-notifications) endpoint and pass the query parameter `all=false`. - */ - markAsRead: { - (params?: RequestParameters & ActivityMarkAsReadParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Marks all notifications in a repository as "read" removes them from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List your notifications in a repository](https://developer.github.com/v3/activity/notifications/#list-your-notifications-in-a-repository) endpoint and pass the query parameter `all=false`. - */ - markNotificationsAsReadForRepo: { - (params?: RequestParameters & ActivityMarkNotificationsAsReadForRepoParams): Promise; - endpoint: EndpointInterface; - }; - markThreadAsRead: { - (params?: RequestParameters & ActivityMarkThreadAsReadParams): Promise; - endpoint: EndpointInterface; - }; - /** - * If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription) completely. - */ - setRepoSubscription: { - (params?: RequestParameters & ActivitySetRepoSubscriptionParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This lets you subscribe or unsubscribe from a conversation. - */ - setThreadSubscription: { - (params?: RequestParameters & ActivitySetThreadSubscriptionParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Requires for the user to be authenticated. - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - starRepo: { - (params?: RequestParameters & ActivityStarRepoParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Requires for the user to be authenticated. - */ - stopWatchingRepoLegacy: { - (params?: RequestParameters & ActivityStopWatchingRepoLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Requires for the user to be authenticated. - */ - unstarRepo: { - (params?: RequestParameters & ActivityUnstarRepoParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Requires the user to be authenticated. - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - watchRepoLegacy: { - (params?: RequestParameters & ActivityWatchRepoLegacyParams): Promise; - endpoint: EndpointInterface; - }; - }; - apps: { - /** - * Add a single repository to an installation. The authenticated user must have admin access to the repository. - * - * You must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/v3/auth/#basic-authentication) to access this endpoint. - */ - addRepoToInstallation: { - (params?: RequestParameters & AppsAddRepoToInstallationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - * - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - checkAccountIsAssociatedWithAny: { - (params?: RequestParameters & AppsCheckAccountIsAssociatedWithAnyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - * - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - checkAccountIsAssociatedWithAnyStubbed: { - (params?: RequestParameters & AppsCheckAccountIsAssociatedWithAnyStubbedParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. - * @deprecated octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization - */ - checkAuthorization: { - (params?: RequestParameters & AppsCheckAuthorizationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) to use this endpoint, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`. - */ - checkToken: { - (params?: RequestParameters & AppsCheckTokenParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates an attachment under a content reference URL in the body or comment of an issue or pull request. Use the `id` of the content reference from the [`content_reference` event](https://developer.github.com/v3/activity/events/types/#contentreferenceevent) to create an attachment. - * - * The app must create a content attachment within six hours of the content reference URL being posted. See "[Using content attachments](https://developer.github.com/apps/using-content-attachments/)" for details about content attachments. - * - * You must use an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. - * - * This example creates a content attachment for the domain `https://errors.ai/`. - */ - createContentAttachment: { - (params?: RequestParameters & AppsCreateContentAttachmentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://developer.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`. - */ - createFromManifest: { - (params?: RequestParameters & AppsCreateFromManifestParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access. To restrict the access to specific repositories, you can provide the `repository_ids` when creating the token. When you omit `repository_ids`, the response does not contain the `repositories` key. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - * - * This example grants the token "Read and write" permission to `issues` and "Read" permission to `contents`, and restricts the token's access to the repository with an `id` of 1296269. - */ - createInstallationToken: { - (params?: RequestParameters & AppsCreateInstallationTokenParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid OAuth `access_token` as an input parameter and the grant for the token's owner will be deleted. - * - * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). - */ - deleteAuthorization: { - (params?: RequestParameters & AppsDeleteAuthorizationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Uninstalls a GitHub App on a user, organization, or business account. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - deleteInstallation: { - (params?: RequestParameters & AppsDeleteInstallationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. - */ - deleteToken: { - (params?: RequestParameters & AppsDeleteTokenParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Enables an authenticated GitHub App to find the organization's installation information. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - * @deprecated octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10) - */ - findOrgInstallation: { - (params?: RequestParameters & AppsFindOrgInstallationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - * @deprecated octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10) - */ - findRepoInstallation: { - (params?: RequestParameters & AppsFindRepoInstallationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Enables an authenticated GitHub App to find the user’s installation information. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - * @deprecated octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10) - */ - findUserInstallation: { - (params?: RequestParameters & AppsFindUserInstallationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the "[List installations](https://developer.github.com/v3/apps/#list-installations)" endpoint. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getAuthenticated: { - (params?: RequestParameters & EmptyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`). - * - * If the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. - */ - getBySlug: { - (params?: RequestParameters & AppsGetBySlugParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getInstallation: { - (params?: RequestParameters & AppsGetInstallationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Enables an authenticated GitHub App to find the organization's installation information. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getOrgInstallation: { - (params?: RequestParameters & AppsGetOrgInstallationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getRepoInstallation: { - (params?: RequestParameters & AppsGetRepoInstallationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Enables an authenticated GitHub App to find the user’s installation information. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getUserInstallation: { - (params?: RequestParameters & AppsGetUserInstallationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns any accounts associated with a plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - * - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listAccountsUserOrOrgOnPlan: { - (params?: RequestParameters & AppsListAccountsUserOrOrgOnPlanParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns any accounts associated with a plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - * - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listAccountsUserOrOrgOnPlanStubbed: { - (params?: RequestParameters & AppsListAccountsUserOrOrgOnPlanStubbedParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation. - * - * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. - * - * You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. - * - * The access the user has to each repository is included in the hash under the `permissions` key. - */ - listInstallationReposForAuthenticatedUser: { - (params?: RequestParameters & AppsListInstallationReposForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - * - * The permissions the installation has are included under the `permissions` key. - */ - listInstallations: { - (params?: RequestParameters & AppsListInstallationsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. - * - * You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. - * - * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. - * - * You can find the permissions for the installation under the `permissions` key. - */ - listInstallationsForAuthenticatedUser: { - (params?: RequestParameters & AppsListInstallationsForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns only active subscriptions. You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/). - */ - listMarketplacePurchasesForAuthenticatedUser: { - (params?: RequestParameters & AppsListMarketplacePurchasesForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns only active subscriptions. You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/). - */ - listMarketplacePurchasesForAuthenticatedUserStubbed: { - (params?: RequestParameters & AppsListMarketplacePurchasesForAuthenticatedUserStubbedParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listPlans: { - (params?: RequestParameters & AppsListPlansParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listPlansStubbed: { - (params?: RequestParameters & AppsListPlansStubbedParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List repositories that an installation can access. - * - * You must use an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. - */ - listRepos: { - (params?: RequestParameters & AppsListReposParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Remove a single repository from an installation. The authenticated user must have admin access to the repository. - * - * You must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/v3/auth/#basic-authentication) to access this endpoint. - */ - removeRepoFromInstallation: { - (params?: RequestParameters & AppsRemoveRepoFromInstallationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. - * @deprecated octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization - */ - resetAuthorization: { - (params?: RequestParameters & AppsResetAuthorizationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. - */ - resetToken: { - (params?: RequestParameters & AppsResetTokenParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. - * @deprecated octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application - */ - revokeAuthorizationForApplication: { - (params?: RequestParameters & AppsRevokeAuthorizationForApplicationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid token as `:access_token` and the grant for the token's owner will be deleted. - * - * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the Applications settings page under "Authorized OAuth Apps" on GitHub](https://github.com/settings/applications#authorized). - * @deprecated octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application - */ - revokeGrantForApplication: { - (params?: RequestParameters & AppsRevokeGrantForApplicationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Revokes the installation token you're using to authenticate as an installation and access this endpoint. - * - * Once an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the "[Create a new installation token](https://developer.github.com/v3/apps/#create-a-new-installation-token)" endpoint. - * - * You must use an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. - */ - revokeInstallationToken: { - (params?: RequestParameters & EmptyParams): Promise; - endpoint: EndpointInterface; - }; - }; - checks: { - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - * - * Creates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs. - */ - create: { - (params?: RequestParameters & ChecksCreateParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. - * - * By default, check suites are automatically created when you create a [check run](https://developer.github.com/v3/checks/runs/). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Set preferences for check suites on a repository](https://developer.github.com/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository)". Your GitHub App must have the `checks:write` permission to create check suites. - */ - createSuite: { - (params?: RequestParameters & ChecksCreateSuiteParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - * - * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. - */ - get: { - (params?: RequestParameters & ChecksGetParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. - * - * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. - */ - getSuite: { - (params?: RequestParameters & ChecksGetSuiteParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. - */ - listAnnotations: { - (params?: RequestParameters & ChecksListAnnotationsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - * - * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. - */ - listForRef: { - (params?: RequestParameters & ChecksListForRefParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - * - * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. - */ - listForSuite: { - (params?: RequestParameters & ChecksListForSuiteParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. - * - * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. - */ - listSuitesForRef: { - (params?: RequestParameters & ChecksListSuitesForRefParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://developer.github.com/v3/activity/events/types/#checksuiteevent) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. - * - * To rerequest a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository. - */ - rerequestSuite: { - (params?: RequestParameters & ChecksRerequestSuiteParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Changes the default automatic flow when creating check suites. By default, the CheckSuiteEvent is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://developer.github.com/v3/checks/suites/#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites. - */ - setSuitesPreferences: { - (params?: RequestParameters & ChecksSetSuitesPreferencesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - * - * Updates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs. - */ - update: { - (params?: RequestParameters & ChecksUpdateParams): Promise>; - endpoint: EndpointInterface; - }; - }; - codesOfConduct: { - getConductCode: { - (params?: RequestParameters & CodesOfConductGetConductCodeParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This method returns the contents of the repository's code of conduct file, if one is detected. - */ - getForRepo: { - (params?: RequestParameters & CodesOfConductGetForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - listConductCodes: { - (params?: RequestParameters & EmptyParams): Promise>; - endpoint: EndpointInterface; - }; - }; - emojis: { - /** - * Lists all the emojis available to use on GitHub. - */ - get: { - (params?: RequestParameters & EmptyParams): Promise; - endpoint: EndpointInterface; - }; - }; - gists: { - checkIsStarred: { - (params?: RequestParameters & GistsCheckIsStarredParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Allows you to add a new gist with one or more files. - * - * **Note:** Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally. - */ - create: { - (params?: RequestParameters & GistsCreateParams): Promise>; - endpoint: EndpointInterface; - }; - createComment: { - (params?: RequestParameters & GistsCreateCommentParams): Promise>; - endpoint: EndpointInterface; - }; - delete: { - (params?: RequestParameters & GistsDeleteParams): Promise; - endpoint: EndpointInterface; - }; - deleteComment: { - (params?: RequestParameters & GistsDeleteCommentParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Note**: This was previously `/gists/:gist_id/fork`. - */ - fork: { - (params?: RequestParameters & GistsForkParams): Promise>; - endpoint: EndpointInterface; - }; - get: { - (params?: RequestParameters & GistsGetParams): Promise>; - endpoint: EndpointInterface; - }; - getComment: { - (params?: RequestParameters & GistsGetCommentParams): Promise>; - endpoint: EndpointInterface; - }; - getRevision: { - (params?: RequestParameters & GistsGetRevisionParams): Promise>; - endpoint: EndpointInterface; - }; - list: { - (params?: RequestParameters & GistsListParams): Promise>; - endpoint: EndpointInterface; - }; - listComments: { - (params?: RequestParameters & GistsListCommentsParams): Promise>; - endpoint: EndpointInterface; - }; - listCommits: { - (params?: RequestParameters & GistsListCommitsParams): Promise>; - endpoint: EndpointInterface; - }; - listForks: { - (params?: RequestParameters & GistsListForksParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all public gists sorted by most recently updated to least recently updated. - * - * Note: With [pagination](https://developer.github.com/v3/#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. - */ - listPublic: { - (params?: RequestParameters & GistsListPublicParams): Promise>; - endpoint: EndpointInterface; - }; - listPublicForUser: { - (params?: RequestParameters & GistsListPublicForUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List the authenticated user's starred gists: - */ - listStarred: { - (params?: RequestParameters & GistsListStarredParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - star: { - (params?: RequestParameters & GistsStarParams): Promise; - endpoint: EndpointInterface; - }; - unstar: { - (params?: RequestParameters & GistsUnstarParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged. - */ - update: { - (params?: RequestParameters & GistsUpdateParams): Promise>; - endpoint: EndpointInterface; - }; - updateComment: { - (params?: RequestParameters & GistsUpdateCommentParams): Promise>; - endpoint: EndpointInterface; - }; - }; - git: { - createBlob: { - (params?: RequestParameters & GitCreateBlobParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). - * - * In this example, the payload of the signature would be: - * - * - * - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - createCommit: { - (params?: RequestParameters & GitCreateCommitParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches. - */ - createRef: { - (params?: RequestParameters & GitCreateRefParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://developer.github.com/v3/git/refs/#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://developer.github.com/v3/git/refs/#create-a-reference) the tag reference - this call would be unnecessary. - * - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - createTag: { - (params?: RequestParameters & GitCreateTagParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure. - * - * If you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see "[Create a commit](https://developer.github.com/v3/git/commits/#create-a-commit)" and "[Update a reference](https://developer.github.com/v3/git/refs/#update-a-reference)." - */ - createTree: { - (params?: RequestParameters & GitCreateTreeParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * ``` - * DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a - * ``` - * - * ``` - * DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0 - * ``` - */ - deleteRef: { - (params?: RequestParameters & GitDeleteRefParams): Promise; - endpoint: EndpointInterface; - }; - /** - * The `content` in the response will always be Base64 encoded. - * - * _Note_: This API supports blobs up to 100 megabytes in size. - */ - getBlob: { - (params?: RequestParameters & GitGetBlobParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). - * - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - getCommit: { - (params?: RequestParameters & GitGetCommitParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns a single reference from your Git database. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't match an existing ref, a `404` is returned. - * - * **Note:** You need to explicitly [request a pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://developer.github.com/v3/git/#checking-mergeability-of-pull-requests)". - * - * To get the reference for a branch named `skunkworkz/featureA`, the endpoint route is: - */ - getRef: { - (params?: RequestParameters & GitGetRefParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - getTag: { - (params?: RequestParameters & GitGetTagParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns a single tree using the SHA1 value for that tree. - * - * If `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, you can clone the repository and iterate over the Git data locally. - */ - getTree: { - (params?: RequestParameters & GitGetTreeParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns an array of references from your Git database that match the supplied name. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be returned as an array. - * - * When you use this endpoint without providing a `:ref`, it will return an array of all the references from your Git database, including notes and stashes if they exist on the server. Anything in the namespace is returned, not just `heads` and `tags`. - * - * **Note:** You need to explicitly [request a pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://developer.github.com/v3/git/#checking-mergeability-of-pull-requests)". - * - * If you request matching references for a branch named `feature` but the branch `feature` doesn't exist, the response can still include other matching head refs that start with the word `feature`, such as `featureA` and `featureB`. - */ - listMatchingRefs: { - (params?: RequestParameters & GitListMatchingRefsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns an array of all the references from your Git database, including notes and stashes if they exist on the server. Anything in the namespace is returned, not just `heads` and `tags`. If there are no references to list, a `404` is returned. - */ - listRefs: { - (params?: RequestParameters & GitListRefsParams): Promise; - endpoint: EndpointInterface; - }; - updateRef: { - (params?: RequestParameters & GitUpdateRefParams): Promise>; - endpoint: EndpointInterface; - }; - }; - gitignore: { - /** - * The API also allows fetching the source of a single template. - * - * Use the raw [media type](https://developer.github.com/v3/media/) to get the raw contents. - */ - getTemplate: { - (params?: RequestParameters & GitignoreGetTemplateParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all templates available to pass as an option when [creating a repository](https://developer.github.com/v3/repos/#create). - */ - listTemplates: { - (params?: RequestParameters & EmptyParams): Promise>; - endpoint: EndpointInterface; - }; - }; - interactions: { - /** - * Temporarily restricts interactions to certain GitHub users in any public repository in the given organization. You must be an organization owner to set these restrictions. - */ - addOrUpdateRestrictionsForOrg: { - (params?: RequestParameters & InteractionsAddOrUpdateRestrictionsForOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Temporarily restricts interactions to certain GitHub users within the given repository. You must have owner or admin access to set restrictions. - */ - addOrUpdateRestrictionsForRepo: { - (params?: RequestParameters & InteractionsAddOrUpdateRestrictionsForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Shows which group of GitHub users can interact with this organization and when the restriction expires. If there are no restrictions, you will see an empty response. - */ - getRestrictionsForOrg: { - (params?: RequestParameters & InteractionsGetRestrictionsForOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Shows which group of GitHub users can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response. - */ - getRestrictionsForRepo: { - (params?: RequestParameters & InteractionsGetRestrictionsForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions. - */ - removeRestrictionsForOrg: { - (params?: RequestParameters & InteractionsRemoveRestrictionsForOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. - */ - removeRestrictionsForRepo: { - (params?: RequestParameters & InteractionsRemoveRestrictionsForRepoParams): Promise; - endpoint: EndpointInterface; - }; - }; - issues: { - /** - * Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced. - * - * This example adds two assignees to the existing `octocat` assignee. - */ - addAssignees: { - (params?: RequestParameters & IssuesAddAssigneesParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesAddAssigneesParams): Promise>; - endpoint: EndpointInterface; - }; - addLabels: { - (params?: RequestParameters & IssuesAddLabelsParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesAddLabelsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Checks if a user has permission to be assigned to an issue in this repository. - * - * If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned. - * - * Otherwise a `404` status code is returned. - */ - checkAssignee: { - (params?: RequestParameters & IssuesCheckAssigneeParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://help.github.com/articles/disabling-issues/), the API returns a `410 Gone` status. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - create: { - (params?: RequestParameters & IssuesCreateParamsDeprecatedAssignee): Promise>; - (params?: RequestParameters & IssuesCreateParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createComment: { - (params?: RequestParameters & IssuesCreateCommentParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesCreateCommentParams): Promise>; - endpoint: EndpointInterface; - }; - createLabel: { - (params?: RequestParameters & IssuesCreateLabelParams): Promise>; - endpoint: EndpointInterface; - }; - createMilestone: { - (params?: RequestParameters & IssuesCreateMilestoneParams): Promise>; - endpoint: EndpointInterface; - }; - deleteComment: { - (params?: RequestParameters & IssuesDeleteCommentParams): Promise; - endpoint: EndpointInterface; - }; - deleteLabel: { - (params?: RequestParameters & IssuesDeleteLabelParams): Promise; - endpoint: EndpointInterface; - }; - deleteMilestone: { - (params?: RequestParameters & IssuesDeleteMilestoneParamsDeprecatedNumber): Promise; - (params?: RequestParameters & IssuesDeleteMilestoneParams): Promise; - endpoint: EndpointInterface; - }; - /** - * The API returns a [`301 Moved Permanently` status](https://developer.github.com/v3/#http-redirects) if the issue was [transferred](https://help.github.com/articles/transferring-an-issue-to-another-repository/) to another repository. If the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API returns a `404 Not Found` status. If the issue was deleted from a repository where the authenticated user has read access, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted issues, subscribe to the [`issues`](https://developer.github.com/v3/activity/events/types/#issuesevent) webhook. - * - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - get: { - (params?: RequestParameters & IssuesGetParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesGetParams): Promise>; - endpoint: EndpointInterface; - }; - getComment: { - (params?: RequestParameters & IssuesGetCommentParams): Promise>; - endpoint: EndpointInterface; - }; - getEvent: { - (params?: RequestParameters & IssuesGetEventParams): Promise>; - endpoint: EndpointInterface; - }; - getLabel: { - (params?: RequestParameters & IssuesGetLabelParams): Promise>; - endpoint: EndpointInterface; - }; - getMilestone: { - (params?: RequestParameters & IssuesGetMilestoneParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesGetMilestoneParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - list: { - (params?: RequestParameters & IssuesListParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. - */ - listAssignees: { - (params?: RequestParameters & IssuesListAssigneesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Issue Comments are ordered by ascending ID. - */ - listComments: { - (params?: RequestParameters & IssuesListCommentsParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesListCommentsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * By default, Issue Comments are ordered by ascending ID. - */ - listCommentsForRepo: { - (params?: RequestParameters & IssuesListCommentsForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - listEvents: { - (params?: RequestParameters & IssuesListEventsParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesListEventsParams): Promise>; - endpoint: EndpointInterface; - }; - listEventsForRepo: { - (params?: RequestParameters & IssuesListEventsForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - listEventsForTimeline: { - (params?: RequestParameters & IssuesListEventsForTimelineParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesListEventsForTimelineParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - listForAuthenticatedUser: { - (params?: RequestParameters & IssuesListForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - listForOrg: { - (params?: RequestParameters & IssuesListForOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - listForRepo: { - (params?: RequestParameters & IssuesListForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - listLabelsForMilestone: { - (params?: RequestParameters & IssuesListLabelsForMilestoneParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesListLabelsForMilestoneParams): Promise>; - endpoint: EndpointInterface; - }; - listLabelsForRepo: { - (params?: RequestParameters & IssuesListLabelsForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - listLabelsOnIssue: { - (params?: RequestParameters & IssuesListLabelsOnIssueParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesListLabelsOnIssueParams): Promise>; - endpoint: EndpointInterface; - }; - listMilestonesForRepo: { - (params?: RequestParameters & IssuesListMilestonesForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with push access can lock an issue or pull request's conversation. - * - * 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://developer.github.com/v3/#http-verbs)." - */ - lock: { - (params?: RequestParameters & IssuesLockParamsDeprecatedNumber): Promise; - (params?: RequestParameters & IssuesLockParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Removes one or more assignees from an issue. - * - * This example removes two of three assignees, leaving the `octocat` assignee. - */ - removeAssignees: { - (params?: RequestParameters & IssuesRemoveAssigneesParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesRemoveAssigneesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist. - */ - removeLabel: { - (params?: RequestParameters & IssuesRemoveLabelParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesRemoveLabelParams): Promise>; - endpoint: EndpointInterface; - }; - removeLabels: { - (params?: RequestParameters & IssuesRemoveLabelsParamsDeprecatedNumber): Promise; - (params?: RequestParameters & IssuesRemoveLabelsParams): Promise; - endpoint: EndpointInterface; - }; - replaceLabels: { - (params?: RequestParameters & IssuesReplaceLabelsParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesReplaceLabelsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with push access can unlock an issue's conversation. - */ - unlock: { - (params?: RequestParameters & IssuesUnlockParamsDeprecatedNumber): Promise; - (params?: RequestParameters & IssuesUnlockParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Issue owners and users with push access can edit an issue. - */ - update: { - (params?: RequestParameters & IssuesUpdateParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesUpdateParamsDeprecatedAssignee): Promise>; - (params?: RequestParameters & IssuesUpdateParams): Promise>; - endpoint: EndpointInterface; - }; - updateComment: { - (params?: RequestParameters & IssuesUpdateCommentParams): Promise>; - endpoint: EndpointInterface; - }; - updateLabel: { - (params?: RequestParameters & IssuesUpdateLabelParams): Promise>; - endpoint: EndpointInterface; - }; - updateMilestone: { - (params?: RequestParameters & IssuesUpdateMilestoneParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & IssuesUpdateMilestoneParams): Promise>; - endpoint: EndpointInterface; - }; - }; - licenses: { - get: { - (params?: RequestParameters & LicensesGetParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This method returns the contents of the repository's license file, if one is detected. - * - * Similar to [the repository contents API](https://developer.github.com/v3/repos/contents/#get-contents), this method also supports [custom media types](https://developer.github.com/v3/repos/contents/#custom-media-types) for retrieving the raw license content or rendered license HTML. - */ - getForRepo: { - (params?: RequestParameters & LicensesGetForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * @deprecated octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05) - */ - list: { - (params?: RequestParameters & EmptyParams): Promise>; - endpoint: EndpointInterface; - }; - listCommonlyUsed: { - (params?: RequestParameters & EmptyParams): Promise>; - endpoint: EndpointInterface; - }; - }; - markdown: { - render: { - (params?: RequestParameters & MarkdownRenderParams): Promise; - endpoint: EndpointInterface; - }; - /** - * You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less. - */ - renderRaw: { - (params?: RequestParameters & MarkdownRenderRawParams): Promise; - endpoint: EndpointInterface; - }; - }; - meta: { - /** - * This endpoint provides a list of GitHub's IP addresses. For more information, see "[About GitHub's IP addresses](https://help.github.com/articles/about-github-s-ip-addresses/)." - */ - get: { - (params?: RequestParameters & EmptyParams): Promise>; - endpoint: EndpointInterface; - }; - }; - migrations: { - /** - * Stop an import for a repository. - */ - cancelImport: { - (params?: RequestParameters & MigrationsCancelImportParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://developer.github.com/v3/migrations/users/#list-user-migrations) and [Get the status of a user migration](https://developer.github.com/v3/migrations/users/#get-the-status-of-a-user-migration) endpoints, will continue to be available even after an archive is deleted. - */ - deleteArchiveForAuthenticatedUser: { - (params?: RequestParameters & MigrationsDeleteArchiveForAuthenticatedUserParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Deletes a previous migration archive. Migration archives are automatically deleted after seven days. - */ - deleteArchiveForOrg: { - (params?: RequestParameters & MigrationsDeleteArchiveForOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Fetches the URL to a migration archive. - */ - downloadArchiveForOrg: { - (params?: RequestParameters & MigrationsDownloadArchiveForOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects: - * - * * attachments - * * bases - * * commit\_comments - * * issue\_comments - * * issue\_events - * * issues - * * milestones - * * organizations - * * projects - * * protected\_branches - * * pull\_request\_reviews - * * pull\_requests - * * releases - * * repositories - * * review\_comments - * * schema - * * users - * - * The archive will also contain an `attachments` directory that includes all attachment files uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data. - */ - getArchiveForAuthenticatedUser: { - (params?: RequestParameters & MigrationsGetArchiveForAuthenticatedUserParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Fetches the URL to a migration archive. - * - * - * @deprecated octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27) - */ - getArchiveForOrg: { - (params?: RequestParameters & MigrationsGetArchiveForOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot `. - * - * This API method and the "Map a commit author" method allow you to provide correct Git author information. - */ - getCommitAuthors: { - (params?: RequestParameters & MigrationsGetCommitAuthorsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * View the progress of an import. - * - * **Import status** - * - * This section includes details about the possible values of the `status` field of the Import Progress response. - * - * An import that does not have errors will progress through these steps: - * - * * `detecting` - the "detection" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL. - * * `importing` - the "raw" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import). - * * `mapping` - the "rewrite" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information. - * * `pushing` - the "push" step of the import is in progress. This is where the importer updates the repository on GitHub. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is "Writing objects". - * * `complete` - the import is complete, and the repository is ready on GitHub. - * - * If there are problems, you will see one of these in the `status` field: - * - * * `auth_failed` - the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update Existing Import](https://developer.github.com/v3/migrations/source_imports/#update-existing-import) section. - * * `error` - the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub Support](https://github.com/contact) or [GitHub Premium Support](https://premium.githubsupport.com) for more information. - * * `detection_needs_auth` - the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update Existing Import](https://developer.github.com/v3/migrations/source_imports/#update-existing-import) section. - * * `detection_found_nothing` - the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](https://developer.github.com/v3/migrations/source_imports/#cancel-an-import) and [retry](https://developer.github.com/v3/migrations/source_imports/#start-an-import) with the correct URL. - * * `detection_found_multiple` - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update Existing Import](https://developer.github.com/v3/migrations/source_imports/#update-existing-import) section. - * - * **The project_choices field** - * - * When multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type. - * - * **Git LFS related fields** - * - * This section includes details about Git LFS related fields that may be present in the Import Progress response. - * - * * `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken. - * * `has_large_files` - the boolean value describing whether files larger than 100MB were found during the `importing` step. - * * `large_files_size` - the total size in gigabytes of files larger than 100MB found in the originating repository. - * * `large_files_count` - the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a "Get Large Files" request. - */ - getImportProgress: { - (params?: RequestParameters & MigrationsGetImportProgressParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List files larger than 100MB found during the import - */ - getLargeFiles: { - (params?: RequestParameters & MigrationsGetLargeFilesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values: - * - * * `pending` - the migration hasn't started yet. - * * `exporting` - the migration is in progress. - * * `exported` - the migration finished successfully. - * * `failed` - the migration failed. - * - * Once the migration has been `exported` you can [download the migration archive](https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive). - */ - getStatusForAuthenticatedUser: { - (params?: RequestParameters & MigrationsGetStatusForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Fetches the status of a migration. - * - * The `state` of a migration can be one of the following values: - * - * * `pending`, which means the migration hasn't started yet. - * * `exporting`, which means the migration is in progress. - * * `exported`, which means the migration finished successfully. - * * `failed`, which means the migration failed. - */ - getStatusForOrg: { - (params?: RequestParameters & MigrationsGetStatusForOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all migrations a user has started. - */ - listForAuthenticatedUser: { - (params?: RequestParameters & MigrationsListForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the most recent migrations. - */ - listForOrg: { - (params?: RequestParameters & MigrationsListForOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all the repositories for this organization migration. - */ - listReposForOrg: { - (params?: RequestParameters & MigrationsListReposForOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all the repositories for this user migration. - */ - listReposForUser: { - (params?: RequestParameters & MigrationsListReposForUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Update an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository. - */ - mapCommitAuthor: { - (params?: RequestParameters & MigrationsMapCommitAuthorParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability is powered by [Git LFS](https://git-lfs.github.com). You can learn more about our LFS feature and working with large files [on our help site](https://help.github.com/articles/versioning-large-files/). - */ - setLfsPreference: { - (params?: RequestParameters & MigrationsSetLfsPreferenceParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Initiates the generation of a user migration archive. - */ - startForAuthenticatedUser: { - (params?: RequestParameters & MigrationsStartForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Initiates the generation of a migration archive. - */ - startForOrg: { - (params?: RequestParameters & MigrationsStartForOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Start a source import to a GitHub repository using GitHub Importer. - */ - startImport: { - (params?: RequestParameters & MigrationsStartImportParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Unlocks a repository. You can lock repositories when you [start a user migration](https://developer.github.com/v3/migrations/users/#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://developer.github.com/v3/repos/#delete-a-repository) if you no longer need the source data. Returns a status of `404 Not Found` if the repository is not locked. - */ - unlockRepoForAuthenticatedUser: { - (params?: RequestParameters & MigrationsUnlockRepoForAuthenticatedUserParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Unlocks a repository that was locked for migration. You should unlock each migrated repository and [delete them](https://developer.github.com/v3/repos/#delete-a-repository) when the migration is complete and you no longer need the source data. - */ - unlockRepoForOrg: { - (params?: RequestParameters & MigrationsUnlockRepoForOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * An import can be updated with credentials or a project choice by passing in the appropriate parameters in this API request. If no parameters are provided, the import will be restarted. - * - * Some servers (e.g. TFS servers) can have several projects at a single URL. In those cases the import progress will have the status `detection_found_multiple` and the Import Progress response will include a `project_choices` array. You can select the project to import by providing one of the objects in the `project_choices` array in the update request. - * - * The following example demonstrates the workflow for updating an import with "project1" as the project choice. Given a `project_choices` array like such: - * - * To restart an import, no parameters are provided in the update request. - */ - updateImport: { - (params?: RequestParameters & MigrationsUpdateImportParams): Promise>; - endpoint: EndpointInterface; - }; - }; - oauthAuthorizations: { - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. - * @deprecated octokit.oauthAuthorizations.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization - */ - checkAuthorization: { - (params?: RequestParameters & OauthAuthorizationsCheckAuthorizationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * **Warning:** Apps must use the [web application flow](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * Creates OAuth tokens using [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication). If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://developer.github.com/v3/auth/#working-with-two-factor-authentication)." - * - * To create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them. - * - * You can also create tokens on GitHub from the [personal access tokens settings](https://github.com/settings/tokens) page. Read more about these tokens in [the GitHub Help documentation](https://help.github.com/articles/creating-an-access-token-for-command-line-use). - * - * Organizations that enforce SAML SSO require personal access tokens to be whitelisted. Read more about whitelisting tokens in [the GitHub Help documentation](https://help.github.com/articles/about-identity-and-access-management-with-saml-single-sign-on). - * @deprecated octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization - */ - createAuthorization: { - (params?: RequestParameters & OauthAuthorizationsCreateAuthorizationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * @deprecated octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization - */ - deleteAuthorization: { - (params?: RequestParameters & OauthAuthorizationsDeleteAuthorizationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). - * @deprecated octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant - */ - deleteGrant: { - (params?: RequestParameters & OauthAuthorizationsDeleteGrantParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * @deprecated octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization - */ - getAuthorization: { - (params?: RequestParameters & OauthAuthorizationsGetAuthorizationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * @deprecated octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant - */ - getGrant: { - (params?: RequestParameters & OauthAuthorizationsGetGrantParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * **Warning:** Apps must use the [web application flow](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * Creates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one. - * - * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://developer.github.com/v3/auth/#working-with-two-factor-authentication)." - * - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * @deprecated octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app - */ - getOrCreateAuthorizationForApp: { - (params?: RequestParameters & OauthAuthorizationsGetOrCreateAuthorizationForAppParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * **Warning:** Apps must use the [web application flow](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one. - * - * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://developer.github.com/v3/auth/#working-with-two-factor-authentication)." - * @deprecated octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint - */ - getOrCreateAuthorizationForAppAndFingerprint: { - (params?: RequestParameters & OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * **Warning:** Apps must use the [web application flow](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one. - * - * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://developer.github.com/v3/auth/#working-with-two-factor-authentication)." - * @deprecated octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint - */ - getOrCreateAuthorizationForAppFingerprint: { - (params?: RequestParameters & OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * @deprecated octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations - */ - listAuthorizations: { - (params?: RequestParameters & OauthAuthorizationsListAuthorizationsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `["repo", "user"]`. - * @deprecated octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants - */ - listGrants: { - (params?: RequestParameters & OauthAuthorizationsListGrantsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. - * @deprecated octokit.oauthAuthorizations.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization - */ - resetAuthorization: { - (params?: RequestParameters & OauthAuthorizationsResetAuthorizationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. - * @deprecated octokit.oauthAuthorizations.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application - */ - revokeAuthorizationForApplication: { - (params?: RequestParameters & OauthAuthorizationsRevokeAuthorizationForApplicationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid token as `:access_token` and the grant for the token's owner will be deleted. - * - * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the Applications settings page under "Authorized OAuth Apps" on GitHub](https://github.com/settings/applications#authorized). - * @deprecated octokit.oauthAuthorizations.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application - */ - revokeGrantForApplication: { - (params?: RequestParameters & OauthAuthorizationsRevokeGrantForApplicationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://developer.github.com/v3/auth/#working-with-two-factor-authentication)." - * - * You can only send one of these scope keys at a time. - * @deprecated octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization - */ - updateAuthorization: { - (params?: RequestParameters & OauthAuthorizationsUpdateAuthorizationParams): Promise>; - endpoint: EndpointInterface; - }; - }; - orgs: { - /** - * Only authenticated organization owners can add a member to the organization or update the member's role. - * - * * If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://developer.github.com/v3/orgs/members/#get-organization-membership) will be `pending` until they accept the invitation. - * - * * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent. - * - * **Rate limits** - * - * To prevent abuse, the authenticated user is limited to 50 organization invitations per 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period. - */ - addOrUpdateMembership: { - (params?: RequestParameters & OrgsAddOrUpdateMembershipParams): Promise>; - endpoint: EndpointInterface; - }; - blockUser: { - (params?: RequestParameters & OrgsBlockUserParams): Promise; - endpoint: EndpointInterface; - }; - /** - * If the user is blocked: - * - * If the user is not blocked: - */ - checkBlockedUser: { - (params?: RequestParameters & OrgsCheckBlockedUserParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Check if a user is, publicly or privately, a member of the organization. - */ - checkMembership: { - (params?: RequestParameters & OrgsCheckMembershipParams): Promise; - endpoint: EndpointInterface; - }; - checkPublicMembership: { - (params?: RequestParameters & OrgsCheckPublicMembershipParams): Promise; - endpoint: EndpointInterface; - }; - concealMembership: { - (params?: RequestParameters & OrgsConcealMembershipParams): Promise; - endpoint: EndpointInterface; - }; - /** - * When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see "[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)". - */ - convertMemberToOutsideCollaborator: { - (params?: RequestParameters & OrgsConvertMemberToOutsideCollaboratorParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Here's how you can create a hook that posts payloads in JSON format: - */ - createHook: { - (params?: RequestParameters & OrgsCreateHookParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createInvitation: { - (params?: RequestParameters & OrgsCreateInvitationParams): Promise>; - endpoint: EndpointInterface; - }; - deleteHook: { - (params?: RequestParameters & OrgsDeleteHookParams): Promise; - endpoint: EndpointInterface; - }; - /** - * To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/). - * - * GitHub Apps with the `Organization plan` permission can use this endpoint to retrieve information about an organization's GitHub plan. See "[Authenticating with GitHub Apps](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/)" for details. For an example response, see "[Response with GitHub plan information](https://developer.github.com/v3/orgs/#response-with-github-plan-information)." - */ - get: { - (params?: RequestParameters & OrgsGetParams): Promise>; - endpoint: EndpointInterface; - }; - getHook: { - (params?: RequestParameters & OrgsGetHookParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * In order to get a user's membership with an organization, the authenticated user must be an organization member. - */ - getMembership: { - (params?: RequestParameters & OrgsGetMembershipParams): Promise>; - endpoint: EndpointInterface; - }; - getMembershipForAuthenticatedUser: { - (params?: RequestParameters & OrgsGetMembershipForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all organizations, in the order that they were created on GitHub. - * - * **Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of organizations. - */ - list: { - (params?: RequestParameters & OrgsListParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List the users blocked by an organization. - */ - listBlockedUsers: { - (params?: RequestParameters & OrgsListBlockedUsersParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List organizations for the authenticated user. - * - * **OAuth scope requirements** - * - * This only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response. - */ - listForAuthenticatedUser: { - (params?: RequestParameters & OrgsListForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user. - * - * This method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List your organizations](https://developer.github.com/v3/orgs/#list-your-organizations) API instead. - */ - listForUser: { - (params?: RequestParameters & OrgsListForUserParams): Promise>; - endpoint: EndpointInterface; - }; - listHooks: { - (params?: RequestParameters & OrgsListHooksParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all GitHub Apps in an organization. The installation count includes all GitHub Apps installed on repositories in the organization. You must be an organization owner with `admin:read` scope to use this endpoint. - */ - listInstallations: { - (params?: RequestParameters & OrgsListInstallationsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner. - */ - listInvitationTeams: { - (params?: RequestParameters & OrgsListInvitationTeamsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. - */ - listMembers: { - (params?: RequestParameters & OrgsListMembersParams): Promise>; - endpoint: EndpointInterface; - }; - listMemberships: { - (params?: RequestParameters & OrgsListMembershipsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all users who are outside collaborators of an organization. - */ - listOutsideCollaborators: { - (params?: RequestParameters & OrgsListOutsideCollaboratorsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. - */ - listPendingInvitations: { - (params?: RequestParameters & OrgsListPendingInvitationsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Members of an organization can choose to have their membership publicized or not. - */ - listPublicMembers: { - (params?: RequestParameters & OrgsListPublicMembersParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This will trigger a [ping event](https://developer.github.com/webhooks/#ping-event) to be sent to the hook. - */ - pingHook: { - (params?: RequestParameters & OrgsPingHookParams): Promise; - endpoint: EndpointInterface; - }; - /** - * The user can publicize their own membership. (A user cannot publicize the membership for another user.) - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - publicizeMembership: { - (params?: RequestParameters & OrgsPublicizeMembershipParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. - */ - removeMember: { - (params?: RequestParameters & OrgsRemoveMemberParams): Promise; - endpoint: EndpointInterface; - }; - /** - * In order to remove a user's membership with an organization, the authenticated user must be an organization owner. - * - * If the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases. - */ - removeMembership: { - (params?: RequestParameters & OrgsRemoveMembershipParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Removing a user from this list will remove them from all the organization's repositories. - */ - removeOutsideCollaborator: { - (params?: RequestParameters & OrgsRemoveOutsideCollaboratorParams): Promise>; - endpoint: EndpointInterface; - }; - unblockUser: { - (params?: RequestParameters & OrgsUnblockUserParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Parameter Deprecation Notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). - * - * Enables an authenticated organization owner with the `admin:org` scope to update the organization's profile and member privileges. - */ - update: { - (params?: RequestParameters & OrgsUpdateParamsDeprecatedMembersAllowedRepositoryCreationType): Promise>; - (params?: RequestParameters & OrgsUpdateParams): Promise>; - endpoint: EndpointInterface; - }; - updateHook: { - (params?: RequestParameters & OrgsUpdateHookParams): Promise>; - endpoint: EndpointInterface; - }; - updateMembership: { - (params?: RequestParameters & OrgsUpdateMembershipParams): Promise>; - endpoint: EndpointInterface; - }; - }; - projects: { - /** - * Adds a collaborator to a an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator. - */ - addCollaborator: { - (params?: RequestParameters & ProjectsAddCollaboratorParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - createCard: { - (params?: RequestParameters & ProjectsCreateCardParams): Promise>; - endpoint: EndpointInterface; - }; - createColumn: { - (params?: RequestParameters & ProjectsCreateColumnParams): Promise>; - endpoint: EndpointInterface; - }; - createForAuthenticatedUser: { - (params?: RequestParameters & ProjectsCreateForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates an organization project board. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - */ - createForOrg: { - (params?: RequestParameters & ProjectsCreateForOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - */ - createForRepo: { - (params?: RequestParameters & ProjectsCreateForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Deletes a project board. Returns a `404 Not Found` status if projects are disabled. - */ - delete: { - (params?: RequestParameters & ProjectsDeleteParams): Promise; - endpoint: EndpointInterface; - }; - deleteCard: { - (params?: RequestParameters & ProjectsDeleteCardParams): Promise; - endpoint: EndpointInterface; - }; - deleteColumn: { - (params?: RequestParameters & ProjectsDeleteColumnParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - */ - get: { - (params?: RequestParameters & ProjectsGetParams): Promise>; - endpoint: EndpointInterface; - }; - getCard: { - (params?: RequestParameters & ProjectsGetCardParams): Promise>; - endpoint: EndpointInterface; - }; - getColumn: { - (params?: RequestParameters & ProjectsGetColumnParams): Promise>; - endpoint: EndpointInterface; - }; - listCards: { - (params?: RequestParameters & ProjectsListCardsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators. - */ - listCollaborators: { - (params?: RequestParameters & ProjectsListCollaboratorsParams): Promise>; - endpoint: EndpointInterface; - }; - listColumns: { - (params?: RequestParameters & ProjectsListColumnsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - * - * s - */ - listForOrg: { - (params?: RequestParameters & ProjectsListForOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - */ - listForRepo: { - (params?: RequestParameters & ProjectsListForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - listForUser: { - (params?: RequestParameters & ProjectsListForUserParams): Promise>; - endpoint: EndpointInterface; - }; - moveCard: { - (params?: RequestParameters & ProjectsMoveCardParams): Promise; - endpoint: EndpointInterface; - }; - moveColumn: { - (params?: RequestParameters & ProjectsMoveColumnParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator. - */ - removeCollaborator: { - (params?: RequestParameters & ProjectsRemoveCollaboratorParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level. - */ - reviewUserPermissionLevel: { - (params?: RequestParameters & ProjectsReviewUserPermissionLevelParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - */ - update: { - (params?: RequestParameters & ProjectsUpdateParams): Promise>; - endpoint: EndpointInterface; - }; - updateCard: { - (params?: RequestParameters & ProjectsUpdateCardParams): Promise>; - endpoint: EndpointInterface; - }; - updateColumn: { - (params?: RequestParameters & ProjectsUpdateColumnParams): Promise>; - endpoint: EndpointInterface; - }; - }; - pulls: { - checkIfMerged: { - (params?: RequestParameters & PullsCheckIfMergedParamsDeprecatedNumber): Promise; - (params?: RequestParameters & PullsCheckIfMergedParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request. - * - * You can create a new pull request. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - create: { - (params?: RequestParameters & PullsCreateParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Creates a review comment in the pull request diff. To add a regular comment to a pull request timeline, see "[Comments](https://developer.github.com/v3/issues/comments/#create-a-comment)." We recommend creating a review comment using `line`, `side`, and optionally `start_line` and `start_side` if your comment applies to more than one line in the pull request diff. - * - * You can still create a review comment using the `position` parameter. When you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. For more information, see [Multi-line comment summary](https://developer.github.com/v3/pulls/comments/#multi-line-comment-summary-3). - * - * **Note:** The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - */ - createComment: { - (params?: RequestParameters & PullsCreateCommentParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsCreateCommentParamsDeprecatedInReplyTo): Promise>; - (params?: RequestParameters & PullsCreateCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Creates a review comment in the pull request diff. To add a regular comment to a pull request timeline, see "[Comments](https://developer.github.com/v3/issues/comments/#create-a-comment)." We recommend creating a review comment using `line`, `side`, and optionally `start_line` and `start_side` if your comment applies to more than one line in the pull request diff. - * - * You can still create a review comment using the `position` parameter. When you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. For more information, see [Multi-line comment summary](https://developer.github.com/v3/pulls/comments/#multi-line-comment-summary-3). - * - * **Note:** The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - * @deprecated octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09) - */ - createCommentReply: { - (params?: RequestParameters & PullsCreateCommentReplyParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsCreateCommentReplyParamsDeprecatedInReplyTo): Promise>; - (params?: RequestParameters & PullsCreateCommentReplyParams): Promise>; - endpoint: EndpointInterface; - }; - createFromIssue: { - (params?: RequestParameters & PullsCreateFromIssueParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * **Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) endpoint. - * - * The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. - */ - createReview: { - (params?: RequestParameters & PullsCreateReviewParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsCreateReviewParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a reply to a review comment for a pull request. For the `comment_id`, provide the ID of the review comment you are replying to. This must be the ID of a _top-level review comment_, not a reply to that comment. Replies to replies are not supported. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createReviewCommentReply: { - (params?: RequestParameters & PullsCreateReviewCommentReplyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createReviewRequest: { - (params?: RequestParameters & PullsCreateReviewRequestParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsCreateReviewRequestParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Deletes a review comment. - */ - deleteComment: { - (params?: RequestParameters & PullsDeleteCommentParams): Promise; - endpoint: EndpointInterface; - }; - deletePendingReview: { - (params?: RequestParameters & PullsDeletePendingReviewParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsDeletePendingReviewParams): Promise>; - endpoint: EndpointInterface; - }; - deleteReviewRequest: { - (params?: RequestParameters & PullsDeleteReviewRequestParamsDeprecatedNumber): Promise; - (params?: RequestParameters & PullsDeleteReviewRequestParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Note:** To dismiss a pull request review on a [protected branch](https://developer.github.com/v3/repos/branches/), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews. - */ - dismissReview: { - (params?: RequestParameters & PullsDismissReviewParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsDismissReviewParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists details of a pull request by providing its number. - * - * When you get, [create](https://developer.github.com/v3/pulls/#create-a-pull-request), or [edit](https://developer.github.com/v3/pulls/#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see "[Checking mergeability of pull requests](https://developer.github.com/v3/git/#checking-mergeability-of-pull-requests)". - * - * The value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit. - * - * The value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request: - * - * * If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit. - * * If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch. - * * If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to. - * - * Pass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. - */ - get: { - (params?: RequestParameters & PullsGetParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsGetParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Provides details for a review comment. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - * - * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://developer.github.com/v3/reactions) reactions. - */ - getComment: { - (params?: RequestParameters & PullsGetCommentParams): Promise>; - endpoint: EndpointInterface; - }; - getCommentsForReview: { - (params?: RequestParameters & PullsGetCommentsForReviewParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsGetCommentsForReviewParams): Promise>; - endpoint: EndpointInterface; - }; - getReview: { - (params?: RequestParameters & PullsGetReviewParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsGetReviewParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - list: { - (params?: RequestParameters & PullsListParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Lists review comments for a pull request. By default, review comments are in ascending order by ID. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - * - * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://developer.github.com/v3/reactions) reactions. - */ - listComments: { - (params?: RequestParameters & PullsListCommentsParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsListCommentsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Lists review comments for all pull requests in a repository. By default, review comments are in ascending order by ID. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - * - * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://developer.github.com/v3/reactions) reactions. - */ - listCommentsForRepo: { - (params?: RequestParameters & PullsListCommentsForRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [Commit List API](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository). - */ - listCommits: { - (params?: RequestParameters & PullsListCommitsParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsListCommitsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default. - */ - listFiles: { - (params?: RequestParameters & PullsListFilesParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsListFilesParams): Promise>; - endpoint: EndpointInterface; - }; - listReviewRequests: { - (params?: RequestParameters & PullsListReviewRequestsParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsListReviewRequestsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * The list of reviews returns in chronological order. - */ - listReviews: { - (params?: RequestParameters & PullsListReviewsParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsListReviewsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - merge: { - (params?: RequestParameters & PullsMergeParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsMergeParams): Promise>; - endpoint: EndpointInterface; - }; - submitReview: { - (params?: RequestParameters & PullsSubmitReviewParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsSubmitReviewParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request. - */ - update: { - (params?: RequestParameters & PullsUpdateParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsUpdateParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch. - */ - updateBranch: { - (params?: RequestParameters & PullsUpdateBranchParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Enables you to edit a review comment. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - */ - updateComment: { - (params?: RequestParameters & PullsUpdateCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Update the review summary comment with new text. - */ - updateReview: { - (params?: RequestParameters & PullsUpdateReviewParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & PullsUpdateReviewParams): Promise>; - endpoint: EndpointInterface; - }; - }; - rateLimit: { - /** - * **Note:** Accessing this endpoint does not count against your REST API rate limit. - * - * **Understanding your rate limit status** - * - * The Search API has a [custom rate limit](https://developer.github.com/v3/search/#rate-limit), separate from the rate limit governing the rest of the REST API. The GraphQL API also has a [custom rate limit](https://developer.github.com/v4/guides/resource-limitations/#rate-limit) that is separate from and calculated differently than rate limits in the REST API. - * - * For these reasons, the Rate Limit API response categorizes your rate limit. Under `resources`, you'll see four objects: - * - * * The `core` object provides your rate limit status for all non-search-related resources in the REST API. - * * The `search` object provides your rate limit status for the [Search API](https://developer.github.com/v3/search/). - * * The `graphql` object provides your rate limit status for the [GraphQL API](https://developer.github.com/v4/). - * * The `integration_manifest` object provides your rate limit status for the [GitHub App Manifest code conversion](https://developer.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration) endpoint. - * - * For more information on the headers and values in the rate limit response, see "[Rate limiting](https://developer.github.com/v3/#rate-limiting)." - * - * The `rate` object (shown at the bottom of the response above) is deprecated. - * - * If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. - */ - get: { - (params?: RequestParameters & EmptyParams): Promise>; - endpoint: EndpointInterface; - }; - }; - reactions: { - /** - * Create a reaction to a [commit comment](https://developer.github.com/v3/repos/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment. - */ - createForCommitComment: { - (params?: RequestParameters & ReactionsCreateForCommitCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Create a reaction to an [issue](https://developer.github.com/v3/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue. - */ - createForIssue: { - (params?: RequestParameters & ReactionsCreateForIssueParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & ReactionsCreateForIssueParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Create a reaction to an [issue comment](https://developer.github.com/v3/issues/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment. - */ - createForIssueComment: { - (params?: RequestParameters & ReactionsCreateForIssueCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Create a reaction to a [pull request review comment](https://developer.github.com/v3/pulls/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment. - */ - createForPullRequestReviewComment: { - (params?: RequestParameters & ReactionsCreateForPullRequestReviewCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion) endpoint. - * - * Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. - * @deprecated octokit.reactions.createForTeamDiscussion() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy - */ - createForTeamDiscussion: { - (params?: RequestParameters & ReactionsCreateForTeamDiscussionParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion comment`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment) endpoint. - * - * Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. - * @deprecated octokit.reactions.createForTeamDiscussionComment() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy - */ - createForTeamDiscussionComment: { - (params?: RequestParameters & ReactionsCreateForTeamDiscussionCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. - */ - createForTeamDiscussionCommentInOrg: { - (params?: RequestParameters & ReactionsCreateForTeamDiscussionCommentInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion comment`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment) endpoint. - * - * Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. - * @deprecated octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy - */ - createForTeamDiscussionCommentLegacy: { - (params?: RequestParameters & ReactionsCreateForTeamDiscussionCommentLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. - */ - createForTeamDiscussionInOrg: { - (params?: RequestParameters & ReactionsCreateForTeamDiscussionInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion) endpoint. - * - * Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. - * @deprecated octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy - */ - createForTeamDiscussionLegacy: { - (params?: RequestParameters & ReactionsCreateForTeamDiscussionLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). - */ - delete: { - (params?: RequestParameters & ReactionsDeleteParams): Promise; - endpoint: EndpointInterface; - }; - /** - * List the reactions to a [commit comment](https://developer.github.com/v3/repos/comments/). - */ - listForCommitComment: { - (params?: RequestParameters & ReactionsListForCommitCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List the reactions to an [issue](https://developer.github.com/v3/issues/). - */ - listForIssue: { - (params?: RequestParameters & ReactionsListForIssueParamsDeprecatedNumber): Promise>; - (params?: RequestParameters & ReactionsListForIssueParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List the reactions to an [issue comment](https://developer.github.com/v3/issues/comments/). - */ - listForIssueComment: { - (params?: RequestParameters & ReactionsListForIssueCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List the reactions to a [pull request review comment](https://developer.github.com/v3/pulls/comments/). - */ - listForPullRequestReviewComment: { - (params?: RequestParameters & ReactionsListForPullRequestReviewCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion) endpoint. - * - * List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.reactions.listForTeamDiscussion() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy - */ - listForTeamDiscussion: { - (params?: RequestParameters & ReactionsListForTeamDiscussionParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment) endpoint. - * - * List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.reactions.listForTeamDiscussionComment() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy - */ - listForTeamDiscussionComment: { - (params?: RequestParameters & ReactionsListForTeamDiscussionCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. - */ - listForTeamDiscussionCommentInOrg: { - (params?: RequestParameters & ReactionsListForTeamDiscussionCommentInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment) endpoint. - * - * List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy - */ - listForTeamDiscussionCommentLegacy: { - (params?: RequestParameters & ReactionsListForTeamDiscussionCommentLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. - */ - listForTeamDiscussionInOrg: { - (params?: RequestParameters & ReactionsListForTeamDiscussionInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion) endpoint. - * - * List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy - */ - listForTeamDiscussionLegacy: { - (params?: RequestParameters & ReactionsListForTeamDiscussionLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - }; - repos: { - acceptInvitation: { - (params?: RequestParameters & ReposAcceptInvitationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * 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://developer.github.com/v3/#http-verbs)." - * - * The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the [repository invitations API endpoints](https://developer.github.com/v3/repos/invitations/). - * - * **Rate limits** - * - * To prevent abuse, you are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository. - */ - addCollaborator: { - (params?: RequestParameters & ReposAddCollaboratorParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Here's how you can create a read-only deploy key: - */ - addDeployKey: { - (params?: RequestParameters & ReposAddDeployKeyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. - */ - addProtectedBranchAdminEnforcement: { - (params?: RequestParameters & ReposAddProtectedBranchAdminEnforcementParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Grants the specified apps push access for this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. - * - * | Type | Description | - * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | - * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - addProtectedBranchAppRestrictions: { - (params?: RequestParameters & ReposAddProtectedBranchAppRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits. - */ - addProtectedBranchRequiredSignatures: { - (params?: RequestParameters & ReposAddProtectedBranchRequiredSignaturesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - addProtectedBranchRequiredStatusChecksContexts: { - (params?: RequestParameters & ReposAddProtectedBranchRequiredStatusChecksContextsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Grants the specified teams push access for this branch. You can also give push access to child teams. - * - * | Type | Description | - * | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | - * | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - addProtectedBranchTeamRestrictions: { - (params?: RequestParameters & ReposAddProtectedBranchTeamRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Grants the specified people push access for this branch. - * - * | Type | Description | - * | ------- | ----------------------------------------------------------------------------------------------------------------------------- | - * | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - addProtectedBranchUserRestrictions: { - (params?: RequestParameters & ReposAddProtectedBranchUserRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. - * - * Team members will include the members of child teams. - */ - checkCollaborator: { - (params?: RequestParameters & ReposCheckCollaboratorParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Shows whether vulnerability alerts are enabled or disabled for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)" in the GitHub Help documentation. - */ - checkVulnerabilityAlerts: { - (params?: RequestParameters & ReposCheckVulnerabilityAlertsParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `:branch`. - * - * The response from the API is equivalent to running the `git log base..head` command; however, commits are returned in chronological order. Pass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. - * - * The response also includes details on the files that were changed between the two commits. This includes the status of the change (for example, if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file. - * - * **Working with large comparisons** - * - * The response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [Commit List API](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository) to enumerate all commits in the range. - * - * For comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long to generate. You can typically resolve this error by using a smaller commit range. - * - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - compareCommits: { - (params?: RequestParameters & ReposCompareCommitsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Create a comment for a commit using its `:commit_sha`. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createCommitComment: { - (params?: RequestParameters & ReposCreateCommitCommentParamsDeprecatedSha): Promise>; - (params?: RequestParameters & ReposCreateCommitCommentParamsDeprecatedLine): Promise>; - (params?: RequestParameters & ReposCreateCommitCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Deployments offer a few configurable parameters with sane defaults. - * - * The `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them before we merge a pull request. - * - * The `environment` parameter allows deployments to be issued to different runtime environments. Teams often have multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parameter makes it easier to track which environments have requested deployments. The default environment is `production`. - * - * The `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds, the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will return a failure response. - * - * By default, [commit statuses](https://developer.github.com/v3/repos/statuses) for every submitted context must be in a `success` state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to specify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do not require any contexts or create any commit statuses, the deployment will always succeed. - * - * The `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text field that will be passed on when a deployment event is dispatched. - * - * The `task` parameter is used by the deployment system to allow different execution paths. In the web world this might be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an application with debugging enabled. - * - * Users with `repo` or `repo_deployment` scopes can create a deployment for a given ref: - * - * A simple example putting the user and room into the payload to notify back to chat networks. - * - * A more advanced example specifying required commit statuses and bypassing auto-merging. - * - * You will see this response when GitHub automatically merges the base branch into the topic branch instead of creating a deployment. This auto-merge happens when: - * - * * Auto-merge option is enabled in the repository - * * Topic branch does not include the latest changes on the base branch, which is `master`in the response example - * * There are no merge conflicts - * - * If there are no new commits in the base branch, a new request to create a deployment should give a successful response. - * - * This error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't be merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts. - * - * This error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success` status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`. - */ - createDeployment: { - (params?: RequestParameters & ReposCreateDeploymentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with `push` access can create deployment statuses for a given deployment. - * - * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. - */ - createDeploymentStatus: { - (params?: RequestParameters & ReposCreateDeploymentStatusParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * You can use this endpoint to trigger a webhook event called `repository_dispatch` when you want activity that happens outside of GitHub to trigger a GitHub Actions workflow or GitHub App webhook. You must configure your GitHub Actions workflow or GitHub App to run when the `repository_dispatch` event occurs. For an example `repository_dispatch` webhook payload, see "[RepositoryDispatchEvent](https://developer.github.com/v3/activity/events/types/#repositorydispatchevent)." - * - * The `client_payload` parameter is available for any extra information that your workflow might need. This parameter is a JSON payload that will be passed on when the webhook event is dispatched. For example, the `client_payload` can include a message that a user would like to send using a GitHub Actions workflow. Or the `client_payload` can be used as a test to debug your workflow. For a test example, see the [input example](https://developer.github.com/v3/repos/#example-4). - * - * To give you write access to the repository, you must use a personal access token with the `repo` scope. For more information, see "[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line)" in the GitHub Help documentation. - * - * This input example shows how you can use the `client_payload` as a test to debug your workflow. - */ - createDispatchEvent: { - (params?: RequestParameters & ReposCreateDispatchEventParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Creates a new file or updates an existing file in a repository. - * @deprecated octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07) - */ - createFile: { - (params?: RequestParameters & ReposCreateFileParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a new repository for the authenticated user. - * - * **OAuth scope requirements** - * - * When using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: - * - * * `public_repo` scope or `repo` scope to create a public repository - * * `repo` scope to create a private repository - */ - createForAuthenticatedUser: { - (params?: RequestParameters & ReposCreateForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Create a fork for the authenticated user. - * - * **Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Support](https://github.com/contact) or [GitHub Premium Support](https://premium.githubsupport.com). - */ - createFork: { - (params?: RequestParameters & ReposCreateForkParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can share the same `config` as long as those webhooks do not have any `events` that overlap. - * - * Here's how you can create a hook that posts payloads in JSON format: - */ - createHook: { - (params?: RequestParameters & ReposCreateHookParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a new repository for the authenticated user. - * - * **OAuth scope requirements** - * - * When using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: - * - * * `public_repo` scope or `repo` scope to create a public repository - * * `repo` scope to create a private repository - */ - createInOrg: { - (params?: RequestParameters & ReposCreateInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a new file or updates an existing file in a repository. - */ - createOrUpdateFile: { - (params?: RequestParameters & ReposCreateOrUpdateFileParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with push access to the repository can create a release. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createRelease: { - (params?: RequestParameters & ReposCreateReleaseParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with push access in a repository can create commit statuses for a given SHA. - * - * Note: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error. - */ - createStatus: { - (params?: RequestParameters & ReposCreateStatusParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. The authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [`GET /repos/:owner/:repo`](https://developer.github.com/v3/repos/#get) endpoint and check that the `is_template` key is `true`. - * - * **OAuth scope requirements** - * - * When using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: - * - * * `public_repo` scope or `repo` scope to create a public repository - * * `repo` scope to create a private repository - * - * \` - */ - createUsingTemplate: { - (params?: RequestParameters & ReposCreateUsingTemplateParams): Promise>; - endpoint: EndpointInterface; - }; - declineInvitation: { - (params?: RequestParameters & ReposDeclineInvitationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required. - * - * If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response: - */ - delete: { - (params?: RequestParameters & ReposDeleteParams): Promise>; - endpoint: EndpointInterface; - }; - deleteCommitComment: { - (params?: RequestParameters & ReposDeleteCommitCommentParams): Promise; - endpoint: EndpointInterface; - }; - deleteDownload: { - (params?: RequestParameters & ReposDeleteDownloadParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Deletes a file in a repository. - * - * You can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author. - * - * The `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used. - * - * You must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code. - */ - deleteFile: { - (params?: RequestParameters & ReposDeleteFileParams): Promise>; - endpoint: EndpointInterface; - }; - deleteHook: { - (params?: RequestParameters & ReposDeleteHookParams): Promise; - endpoint: EndpointInterface; - }; - deleteInvitation: { - (params?: RequestParameters & ReposDeleteInvitationParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Users with push access to the repository can delete a release. - */ - deleteRelease: { - (params?: RequestParameters & ReposDeleteReleaseParams): Promise; - endpoint: EndpointInterface; - }; - deleteReleaseAsset: { - (params?: RequestParameters & ReposDeleteReleaseAssetParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Disables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)" in the GitHub Help documentation. - */ - disableAutomatedSecurityFixes: { - (params?: RequestParameters & ReposDisableAutomatedSecurityFixesParams): Promise; - endpoint: EndpointInterface; - }; - disablePagesSite: { - (params?: RequestParameters & ReposDisablePagesSiteParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Disables vulnerability alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)" in the GitHub Help documentation. - */ - disableVulnerabilityAlerts: { - (params?: RequestParameters & ReposDisableVulnerabilityAlertsParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Enables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)" in the GitHub Help documentation. - */ - enableAutomatedSecurityFixes: { - (params?: RequestParameters & ReposEnableAutomatedSecurityFixesParams): Promise; - endpoint: EndpointInterface; - }; - enablePagesSite: { - (params?: RequestParameters & ReposEnablePagesSiteParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Enables vulnerability alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)" in the GitHub Help documentation. - */ - enableVulnerabilityAlerts: { - (params?: RequestParameters & ReposEnableVulnerabilityAlertsParams): Promise; - endpoint: EndpointInterface; - }; - /** - * The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network. - */ - get: { - (params?: RequestParameters & ReposGetParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. - */ - getAppsWithAccessToProtectedBranch: { - (params?: RequestParameters & ReposGetAppsWithAccessToProtectedBranchParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets a redirect URL to download an archive for a repository. The `:archive_format` can be either `tarball` or `zipball`. The `:ref` must be a valid Git reference. If you omit `:ref`, the repository’s default branch (usually `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use the `Location` header to make a second `GET` request. - * - * _Note_: For private repositories, these links are temporary and expire after five minutes. - * - * To follow redirects with curl, use the `-L` switch: - */ - getArchiveLink: { - (params?: RequestParameters & ReposGetArchiveLinkParams): Promise; - endpoint: EndpointInterface; - }; - getBranch: { - (params?: RequestParameters & ReposGetBranchParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - getBranchProtection: { - (params?: RequestParameters & ReposGetBranchProtectionParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. - */ - getClones: { - (params?: RequestParameters & ReposGetClonesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns a weekly aggregate of the number of additions and deletions pushed to a repository. - */ - getCodeFrequencyStats: { - (params?: RequestParameters & ReposGetCodeFrequencyStatsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Possible values for the `permission` key: `admin`, `write`, `read`, `none`. - */ - getCollaboratorPermissionLevel: { - (params?: RequestParameters & ReposGetCollaboratorPermissionLevelParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. - * - * The most recent status for each context is returned, up to 100. This field [paginates](https://developer.github.com/v3/#pagination) if there are over 100 contexts. - * - * Additionally, a combined `state` is returned. The `state` is one of: - * - * * **failure** if any of the contexts report as `error` or `failure` - * * **pending** if there are no statuses or a context is `pending` - * * **success** if the latest status for all contexts is `success` - */ - getCombinedStatusForRef: { - (params?: RequestParameters & ReposGetCombinedStatusForRefParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint. - * - * You can pass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property. - * - * To return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag. - * - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - getCommit: { - (params?: RequestParameters & ReposGetCommitParamsDeprecatedSha): Promise>; - (params?: RequestParameters & ReposGetCommitParamsDeprecatedCommitSha): Promise>; - (params?: RequestParameters & ReposGetCommitParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`. - */ - getCommitActivityStats: { - (params?: RequestParameters & ReposGetCommitActivityStatsParams): Promise>; - endpoint: EndpointInterface; - }; - getCommitComment: { - (params?: RequestParameters & ReposGetCommitCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** To access this endpoint, you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header: - * ``` - * application/vnd.github.VERSION.sha - * ``` - * Returns the SHA-1 of the commit reference. You must have `read` access for the repository to get the SHA-1 of a commit reference. You can use this endpoint to check if a remote reference's SHA-1 is the same as your local reference's SHA-1 by providing the local SHA-1 reference as the ETag. - * @deprecated "Get the SHA-1 of a commit reference" will be removed. Use "Get a single commit" instead with media type format set to "sha" instead. - */ - getCommitRefSha: { - (params?: RequestParameters & ReposGetCommitRefShaParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit `:path`, you will receive the contents of all files in the repository. - * - * Files and symlinks support [a custom media type](https://developer.github.com/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML (when supported). All content types support [a custom media type](https://developer.github.com/v3/repos/contents/#custom-media-types) to ensure the content is returned in a consistent object format. - * - * **Note**: - * - * * To get a repository's contents recursively, you can [recursively get the tree](https://developer.github.com/v3/git/trees/). - * * This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees API](https://developer.github.com/v3/git/trees/#get-a-tree). - * * This API supports files up to 1 megabyte in size. - * - * The response will be an array of objects, one object for each item in the directory. - * - * When listing the contents of a directory, submodules have their "type" specified as "file". Logically, the value _should_ be "submodule". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as "submodule". - * - * If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the [format shown above](https://developer.github.com/v3/repos/contents/#response-if-content-is-a-file)). - * - * Otherwise, the API responds with an object describing the symlink itself: - * - * The `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit. - * - * If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and the github.com URLs (`html_url` and `_links["html"]`) will have null values. - */ - getContents: { - (params?: RequestParameters & ReposGetContentsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * * `total` - The Total number of commits authored by the contributor. - * - * Weekly Hash (`weeks` array): - * - * * `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 - */ - getContributorsStats: { - (params?: RequestParameters & ReposGetContributorsStatsParams): Promise>; - endpoint: EndpointInterface; - }; - getDeployKey: { - (params?: RequestParameters & ReposGetDeployKeyParams): Promise>; - endpoint: EndpointInterface; - }; - getDeployment: { - (params?: RequestParameters & ReposGetDeploymentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with pull access can view a deployment status for a deployment: - */ - getDeploymentStatus: { - (params?: RequestParameters & ReposGetDeploymentStatusParams): Promise>; - endpoint: EndpointInterface; - }; - getDownload: { - (params?: RequestParameters & ReposGetDownloadParams): Promise>; - endpoint: EndpointInterface; - }; - getHook: { - (params?: RequestParameters & ReposGetHookParams): Promise>; - endpoint: EndpointInterface; - }; - getLatestPagesBuild: { - (params?: RequestParameters & ReposGetLatestPagesBuildParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * View the latest published full release for the repository. - * - * The latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published. - */ - getLatestRelease: { - (params?: RequestParameters & ReposGetLatestReleaseParams): Promise>; - endpoint: EndpointInterface; - }; - getPages: { - (params?: RequestParameters & ReposGetPagesParams): Promise>; - endpoint: EndpointInterface; - }; - getPagesBuild: { - (params?: RequestParameters & ReposGetPagesBuildParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`. - * - * The array order is oldest week (index 0) to most recent week. - */ - getParticipationStats: { - (params?: RequestParameters & ReposGetParticipationStatsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - getProtectedBranchAdminEnforcement: { - (params?: RequestParameters & ReposGetProtectedBranchAdminEnforcementParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - getProtectedBranchPullRequestReviewEnforcement: { - (params?: RequestParameters & ReposGetProtectedBranchPullRequestReviewEnforcementParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help. - * - * **Note**: You must enable branch protection to require signed commits. - */ - getProtectedBranchRequiredSignatures: { - (params?: RequestParameters & ReposGetProtectedBranchRequiredSignaturesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - getProtectedBranchRequiredStatusChecks: { - (params?: RequestParameters & ReposGetProtectedBranchRequiredStatusChecksParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists who has access to this protected branch. {{#note}} - * - * **Note**: Users, apps, and teams `restrictions` are only available for organization-owned repositories. - */ - getProtectedBranchRestrictions: { - (params?: RequestParameters & ReposGetProtectedBranchRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Each array contains the day number, hour number, and number of commits: - * - * * `0-6`: Sunday - Saturday - * * `0-23`: Hour of day - * * Number of commits - * - * 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. - */ - getPunchCardStats: { - (params?: RequestParameters & ReposGetPunchCardStatsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets the preferred README for a repository. - * - * READMEs support [custom media types](https://developer.github.com/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML. - */ - getReadme: { - (params?: RequestParameters & ReposGetReadmeParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://developer.github.com/v3/#hypermedia). - */ - getRelease: { - (params?: RequestParameters & ReposGetReleaseParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://developer.github.com/v3/media/#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. - */ - getReleaseAsset: { - (params?: RequestParameters & ReposGetReleaseAssetParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Get a published release with the specified tag. - */ - getReleaseByTag: { - (params?: RequestParameters & ReposGetReleaseByTagParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the teams who have push access to this branch. The list includes child teams. - */ - getTeamsWithAccessToProtectedBranch: { - (params?: RequestParameters & ReposGetTeamsWithAccessToProtectedBranchParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Get the top 10 popular contents over the last 14 days. - */ - getTopPaths: { - (params?: RequestParameters & ReposGetTopPathsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Get the top 10 referrers over the last 14 days. - */ - getTopReferrers: { - (params?: RequestParameters & ReposGetTopReferrersParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the people who have push access to this branch. - */ - getUsersWithAccessToProtectedBranch: { - (params?: RequestParameters & ReposGetUsersWithAccessToProtectedBranchParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. - */ - getViews: { - (params?: RequestParameters & ReposGetViewsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. - * - * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. - */ - list: { - (params?: RequestParameters & ReposListParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. - * @deprecated octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13) - */ - listAppsWithAccessToProtectedBranch: { - (params?: RequestParameters & ReposListAppsWithAccessToProtectedBranchParams): Promise>; - endpoint: EndpointInterface; - }; - listAssetsForRelease: { - (params?: RequestParameters & ReposListAssetsForReleaseParams): Promise>; - endpoint: EndpointInterface; - }; - listBranches: { - (params?: RequestParameters & ReposListBranchesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Returns all branches where the given commit SHA is the HEAD, or latest commit for the branch. - */ - listBranchesForHeadCommit: { - (params?: RequestParameters & ReposListBranchesForHeadCommitParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. - * - * Team members will include the members of child teams. - */ - listCollaborators: { - (params?: RequestParameters & ReposListCollaboratorsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Use the `:commit_sha` to specify the commit that will have its comments listed. - */ - listCommentsForCommit: { - (params?: RequestParameters & ReposListCommentsForCommitParamsDeprecatedRef): Promise>; - (params?: RequestParameters & ReposListCommentsForCommitParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Commit Comments use [these custom media types](https://developer.github.com/v3/repos/comments/#custom-media-types). You can read more about the use of media types in the API [here](https://developer.github.com/v3/media/). - * - * Comments are ordered by ascending ID. - */ - listCommitComments: { - (params?: RequestParameters & ReposListCommitCommentsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - listCommits: { - (params?: RequestParameters & ReposListCommitsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance. - * - * GitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information. - */ - listContributors: { - (params?: RequestParameters & ReposListContributorsParams): Promise>; - endpoint: EndpointInterface; - }; - listDeployKeys: { - (params?: RequestParameters & ReposListDeployKeysParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with pull access can view deployment statuses for a deployment: - */ - listDeploymentStatuses: { - (params?: RequestParameters & ReposListDeploymentStatusesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Simple filtering of deployments is available via query parameters: - */ - listDeployments: { - (params?: RequestParameters & ReposListDeploymentsParams): Promise>; - endpoint: EndpointInterface; - }; - listDownloads: { - (params?: RequestParameters & ReposListDownloadsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists repositories for the specified organization. - */ - listForOrg: { - (params?: RequestParameters & ReposListForOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists public repositories for the specified user. - */ - listForUser: { - (params?: RequestParameters & ReposListForUserParams): Promise; - endpoint: EndpointInterface; - }; - listForks: { - (params?: RequestParameters & ReposListForksParams): Promise>; - endpoint: EndpointInterface; - }; - listHooks: { - (params?: RequestParameters & ReposListHooksParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations. - */ - listInvitations: { - (params?: RequestParameters & ReposListInvitationsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * When authenticating as a user, this endpoint will list all currently open repository invitations for that user. - */ - listInvitationsForAuthenticatedUser: { - (params?: RequestParameters & ReposListInvitationsForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language. - */ - listLanguages: { - (params?: RequestParameters & ReposListLanguagesParams): Promise>; - endpoint: EndpointInterface; - }; - listPagesBuilds: { - (params?: RequestParameters & ReposListPagesBuildsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - listProtectedBranchRequiredStatusChecksContexts: { - (params?: RequestParameters & ReposListProtectedBranchRequiredStatusChecksContextsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the teams who have push access to this branch. The list includes child teams. - * @deprecated octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09) - */ - listProtectedBranchTeamRestrictions: { - (params?: RequestParameters & ReposListProtectedBranchTeamRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the people who have push access to this branch. - * @deprecated octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09) - */ - listProtectedBranchUserRestrictions: { - (params?: RequestParameters & ReposListProtectedBranchUserRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all public repositories in the order that they were created. - * - * Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of repositories. - */ - listPublic: { - (params?: RequestParameters & ReposListPublicParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all pull requests containing the provided commit SHA, which can be from any point in the commit history. The results will include open and closed pull requests. Additional preview headers may be required to see certain details for associated pull requests, such as whether a pull request is in a draft state. For more information about previews that might affect this endpoint, see the [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoint. - */ - listPullRequestsAssociatedWithCommit: { - (params?: RequestParameters & ReposListPullRequestsAssociatedWithCommitParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://developer.github.com/v3/repos/#list-tags). - * - * Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. - */ - listReleases: { - (params?: RequestParameters & ReposListReleasesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one. - * - * This resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`. - */ - listStatusesForRef: { - (params?: RequestParameters & ReposListStatusesForRefParams): Promise>; - endpoint: EndpointInterface; - }; - listTags: { - (params?: RequestParameters & ReposListTagsParams): Promise>; - endpoint: EndpointInterface; - }; - listTeams: { - (params?: RequestParameters & ReposListTeamsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the teams who have push access to this branch. The list includes child teams. - * @deprecated octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13) - */ - listTeamsWithAccessToProtectedBranch: { - (params?: RequestParameters & ReposListTeamsWithAccessToProtectedBranchParams): Promise>; - endpoint: EndpointInterface; - }; - listTopics: { - (params?: RequestParameters & ReposListTopicsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the people who have push access to this branch. - * @deprecated octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13) - */ - listUsersWithAccessToProtectedBranch: { - (params?: RequestParameters & ReposListUsersWithAccessToProtectedBranchParams): Promise>; - endpoint: EndpointInterface; - }; - merge: { - (params?: RequestParameters & ReposMergeParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This will trigger a [ping event](https://developer.github.com/webhooks/#ping-event) to be sent to the hook. - */ - pingHook: { - (params?: RequestParameters & ReposPingHookParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - removeBranchProtection: { - (params?: RequestParameters & ReposRemoveBranchProtectionParams): Promise; - endpoint: EndpointInterface; - }; - removeCollaborator: { - (params?: RequestParameters & ReposRemoveCollaboratorParams): Promise; - endpoint: EndpointInterface; - }; - removeDeployKey: { - (params?: RequestParameters & ReposRemoveDeployKeyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. - */ - removeProtectedBranchAdminEnforcement: { - (params?: RequestParameters & ReposRemoveProtectedBranchAdminEnforcementParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Removes the ability of an app to push to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. - * - * | Type | Description | - * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | - * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - removeProtectedBranchAppRestrictions: { - (params?: RequestParameters & ReposRemoveProtectedBranchAppRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - removeProtectedBranchPullRequestReviewEnforcement: { - (params?: RequestParameters & ReposRemoveProtectedBranchPullRequestReviewEnforcementParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits. - */ - removeProtectedBranchRequiredSignatures: { - (params?: RequestParameters & ReposRemoveProtectedBranchRequiredSignaturesParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - removeProtectedBranchRequiredStatusChecks: { - (params?: RequestParameters & ReposRemoveProtectedBranchRequiredStatusChecksParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - removeProtectedBranchRequiredStatusChecksContexts: { - (params?: RequestParameters & ReposRemoveProtectedBranchRequiredStatusChecksContextsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Disables the ability to restrict who can push to this branch. - */ - removeProtectedBranchRestrictions: { - (params?: RequestParameters & ReposRemoveProtectedBranchRestrictionsParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Removes the ability of a team to push to this branch. You can also remove push access for child teams. - * - * | Type | Description | - * | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | - * | `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - removeProtectedBranchTeamRestrictions: { - (params?: RequestParameters & ReposRemoveProtectedBranchTeamRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Removes the ability of a user to push to this branch. - * - * | Type | Description | - * | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- | - * | `array` | Usernames of the people who should no longer have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - removeProtectedBranchUserRestrictions: { - (params?: RequestParameters & ReposRemoveProtectedBranchUserRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Replaces the list of apps that have push access to this branch. This removes all apps that previously had push access and grants push access to the new list of apps. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. - * - * | Type | Description | - * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | - * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - replaceProtectedBranchAppRestrictions: { - (params?: RequestParameters & ReposReplaceProtectedBranchAppRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - replaceProtectedBranchRequiredStatusChecksContexts: { - (params?: RequestParameters & ReposReplaceProtectedBranchRequiredStatusChecksContextsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. Team restrictions include child teams. - * - * | Type | Description | - * | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | - * | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - replaceProtectedBranchTeamRestrictions: { - (params?: RequestParameters & ReposReplaceProtectedBranchTeamRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people. - * - * | Type | Description | - * | ------- | ----------------------------------------------------------------------------------------------------------------------------- | - * | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - replaceProtectedBranchUserRestrictions: { - (params?: RequestParameters & ReposReplaceProtectedBranchUserRestrictionsParams): Promise>; - endpoint: EndpointInterface; - }; - replaceTopics: { - (params?: RequestParameters & ReposReplaceTopicsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures. - * - * Build requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes. - */ - requestPageBuild: { - (params?: RequestParameters & ReposRequestPageBuildParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This endpoint will return all community profile metrics, including an overall health score, repository description, the presence of documentation, detected code of conduct, detected license, and the presence of ISSUE\_TEMPLATE, PULL\_REQUEST\_TEMPLATE, README, and CONTRIBUTING files. - */ - retrieveCommunityProfileMetrics: { - (params?: RequestParameters & ReposRetrieveCommunityProfileMetricsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated. - * - * **Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test` - */ - testPushHook: { - (params?: RequestParameters & ReposTestPushHookParams): Promise; - endpoint: EndpointInterface; - }; - /** - * A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/). - */ - transfer: { - (params?: RequestParameters & ReposTransferParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note**: To edit a repository's topics, use the [`topics` endpoint](https://developer.github.com/v3/repos/#replace-all-topics-for-a-repository). - */ - update: { - (params?: RequestParameters & ReposUpdateParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Protecting a branch requires admin or owner permissions to the repository. - * - * **Note**: Passing new arrays of `users` and `teams` replaces their previous values. - * - * **Note**: The list of users, apps, and teams in total is limited to 100 items. - */ - updateBranchProtection: { - (params?: RequestParameters & ReposUpdateBranchProtectionParams): Promise>; - endpoint: EndpointInterface; - }; - updateCommitComment: { - (params?: RequestParameters & ReposUpdateCommitCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a new file or updates an existing file in a repository. - * @deprecated octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07) - */ - updateFile: { - (params?: RequestParameters & ReposUpdateFileParams): Promise>; - endpoint: EndpointInterface; - }; - updateHook: { - (params?: RequestParameters & ReposUpdateHookParams): Promise>; - endpoint: EndpointInterface; - }; - updateInformationAboutPagesSite: { - (params?: RequestParameters & ReposUpdateInformationAboutPagesSiteParams): Promise; - endpoint: EndpointInterface; - }; - updateInvitation: { - (params?: RequestParameters & ReposUpdateInvitationParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled. - * - * **Note**: Passing new arrays of `users` and `teams` replaces their previous values. - */ - updateProtectedBranchPullRequestReviewEnforcement: { - (params?: RequestParameters & ReposUpdateProtectedBranchPullRequestReviewEnforcementParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled. - */ - updateProtectedBranchRequiredStatusChecks: { - (params?: RequestParameters & ReposUpdateProtectedBranchRequiredStatusChecksParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with push access to the repository can edit a release. - */ - updateRelease: { - (params?: RequestParameters & ReposUpdateReleaseParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Users with push access to the repository can edit a release asset. - */ - updateReleaseAsset: { - (params?: RequestParameters & ReposUpdateReleaseAssetParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This endpoint makes use of [a Hypermedia relation](https://developer.github.com/v3/#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned in the response of the [Create a release endpoint](https://developer.github.com/v3/repos/releases/#create-a-release) to upload a release asset. - * - * You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint. - * - * Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: - * - * `application/zip` - * - * GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example, you'll still need to pass your authentication to be able to upload an asset. - */ - uploadReleaseAsset: { - (params?: RequestParameters & ReposUploadReleaseAssetParamsDeprecatedFile): Promise>; - (params?: RequestParameters & ReposUploadReleaseAssetParams): Promise>; - endpoint: EndpointInterface; - }; - }; - search: { - /** - * Find file contents via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * **Note:** You must [authenticate](https://developer.github.com/v3/#authentication) to search for code across all public repositories. - * - * **Considerations for code search** - * - * Due to the complexity of searching code, there are a few restrictions on how searches are performed: - * - * * Only the _default branch_ is considered. In most cases, this will be the `master` branch. - * * Only files smaller than 384 KB are searchable. - * * You must always include at least one search term when searching source code. For example, searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) is not valid, while [`amazing language:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is. - * - * Suppose you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery). Your query would look something like this: - * - * Here, we're searching for the keyword `addClass` within a file's contents. We're making sure that we're only looking in files where the language is JavaScript. And we're scoping the search to the `repo:jquery/jquery` repository. - */ - code: { - (params?: RequestParameters & SearchCodeParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Find commits via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * **Considerations for commit search** - * - * Only the _default branch_ is considered. In most cases, this will be the `master` branch. - * - * Suppose you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this: - */ - commits: { - (params?: RequestParameters & SearchCommitsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This API call is added for compatibility reasons only. There's no guarantee that full email searches will always be available. The `@` character in the address must be left unencoded. Searches only against public email addresses (as configured on the user's GitHub profile). - * @deprecated octokit.search.emailLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#email-search - */ - emailLegacy: { - (params?: RequestParameters & SearchEmailLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * Let's say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this. - * - * In this query, we're searching for the keyword `windows`, within any open issue that's labeled as `bug`. The search runs across repositories whose primary language is Python. We’re sorting by creation date in ascending order, so that the oldest issues appear first in the search results. - * @deprecated octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27) - */ - issues: { - (params?: RequestParameters & SearchIssuesParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * Let's say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this. - * - * In this query, we're searching for the keyword `windows`, within any open issue that's labeled as `bug`. The search runs across repositories whose primary language is Python. We’re sorting by creation date in ascending order, so that the oldest issues appear first in the search results. - */ - issuesAndPullRequests: { - (params?: RequestParameters & SearchIssuesAndPullRequestsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Find issues by state and keyword. - * @deprecated octokit.search.issuesLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#search-issues - */ - issuesLegacy: { - (params?: RequestParameters & SearchIssuesLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * Suppose you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this: - * - * The labels that best match for the query appear first in the search results. - */ - labels: { - (params?: RequestParameters & SearchLabelsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Find repositories via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * Suppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this. - * - * You can search for multiple topics by adding more `topic:` instances, and including the `mercy-preview` header. For example: - * - * In this request, we're searching for repositories with the word `tetris` in the name, the description, or the README. We're limiting the results to only find repositories where the primary language is Assembly. We're sorting by stars in descending order, so that the most popular repositories appear first in the search results. - */ - repos: { - (params?: RequestParameters & SearchReposParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the `start_page` parameter. - * @deprecated octokit.search.reposLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#search-repositories - */ - reposLegacy: { - (params?: RequestParameters & SearchReposLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for topics, you can get text match metadata for the topic's **short\_description**, **description**, **name**, or **display\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * See "[Searching topics](https://help.github.com/articles/searching-topics/)" for a detailed list of qualifiers. - * - * Suppose you want to search for topics related to Ruby that are featured on [https://github.com/topics](https://github.com/topics). Your query might look like this: - * - * In this request, we're searching for topics with the keyword `ruby`, and we're limiting the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results. - * - * **Note:** A search for featured Ruby topics only has 6 total results, so a [Link header](https://developer.github.com/v3/#link-header) indicating pagination is not included in the response. - */ - topics: { - (params?: RequestParameters & SearchTopicsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Find users via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * Imagine you're looking for a list of popular users. You might try out this query: - * - * Here, we're looking at users with the name Tom. We're only interested in those with more than 42 repositories, and only if they have over 1,000 followers. - */ - users: { - (params?: RequestParameters & SearchUsersParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Find users by keyword. - * @deprecated octokit.search.usersLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#search-users - */ - usersLegacy: { - (params?: RequestParameters & SearchUsersLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - }; - teams: { - /** - * The "Add team member" endpoint (described below) is deprecated. - * - * We recommend using the [Add team membership](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint instead. It allows you to invite new organization members to your teams. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - * @deprecated octokit.teams.addMember() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy - */ - addMember: { - (params?: RequestParameters & TeamsAddMemberParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * The "Add team member" endpoint (described below) is deprecated. - * - * We recommend using the [Add team membership](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint instead. It allows you to invite new organization members to your teams. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - * @deprecated octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy - */ - addMemberLegacy: { - (params?: RequestParameters & TeamsAddMemberLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team membership`](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner. - * - * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. - * @deprecated octokit.teams.addOrUpdateMembership() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy - */ - addOrUpdateMembership: { - (params?: RequestParameters & TeamsAddOrUpdateMembershipParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * An organization owner can add someone who is not part of the team's organization to a team. When an organization owner adds someone to a team who is not an organization member, this endpoint will send an invitation to the person via email. This newly-created membership will be in the "pending" state until the person accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. - * - * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/:org_id/team/:team_id/memberships/:username`. - */ - addOrUpdateMembershipInOrg: { - (params?: RequestParameters & TeamsAddOrUpdateMembershipInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team membership`](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner. - * - * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. - * @deprecated octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy - */ - addOrUpdateMembershipLegacy: { - (params?: RequestParameters & TeamsAddOrUpdateMembershipLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team project`](https://developer.github.com/v3/teams/#add-or-update-team-project) endpoint. - * - * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. - * @deprecated octokit.teams.addOrUpdateProject() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy - */ - addOrUpdateProject: { - (params?: RequestParameters & TeamsAddOrUpdateProjectParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/:org_id/team/:team_id/projects/:project_id`. - */ - addOrUpdateProjectInOrg: { - (params?: RequestParameters & TeamsAddOrUpdateProjectInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team project`](https://developer.github.com/v3/teams/#add-or-update-team-project) endpoint. - * - * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. - * @deprecated octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy - */ - addOrUpdateProjectLegacy: { - (params?: RequestParameters & TeamsAddOrUpdateProjectLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team repository`](https://developer.github.com/v3/teams/#add-or-update-team-repository) endpoint. - * - * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. - * - * 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://developer.github.com/v3/#http-verbs)." - * @deprecated octokit.teams.addOrUpdateRepo() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy - */ - addOrUpdateRepo: { - (params?: RequestParameters & TeamsAddOrUpdateRepoParams): Promise; - endpoint: EndpointInterface; - }; - /** - * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. 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://developer.github.com/v3/#http-verbs)." - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/:org_id/team/:team_id/repos/:owner/:repo`. - */ - addOrUpdateRepoInOrg: { - (params?: RequestParameters & TeamsAddOrUpdateRepoInOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team repository`](https://developer.github.com/v3/teams/#add-or-update-team-repository) endpoint. - * - * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. - * - * 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://developer.github.com/v3/#http-verbs)." - * @deprecated octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy - */ - addOrUpdateRepoLegacy: { - (params?: RequestParameters & TeamsAddOrUpdateRepoLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Note**: Repositories inherited through a parent team will also be checked. - * - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Check if a team manages a repository`](https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository) endpoint. - * - * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - * @deprecated octokit.teams.checkManagesRepo() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy - */ - checkManagesRepo: { - (params?: RequestParameters & TeamsCheckManagesRepoParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Checks whether a team has `admin`, `push`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/repos/:owner/:repo`. - * - * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - checkManagesRepoInOrg: { - (params?: RequestParameters & TeamsCheckManagesRepoInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Note**: Repositories inherited through a parent team will also be checked. - * - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Check if a team manages a repository`](https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository) endpoint. - * - * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - * @deprecated octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy - */ - checkManagesRepoLegacy: { - (params?: RequestParameters & TeamsCheckManagesRepoLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * To create a team, the authenticated user must be a member or owner of `:org`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see "[Setting team creation permissions](https://help.github.com/en/articles/setting-team-creation-permissions-in-your-organization)." - * - * When you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of `maintainers`. For more information, see "[About teams](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-teams)" in the GitHub Help documentation. - */ - create: { - (params?: RequestParameters & TeamsCreateParamsDeprecatedPermission): Promise>; - (params?: RequestParameters & TeamsCreateParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://developer.github.com/v3/teams/discussions/#create-a-discussion) endpoint. - * - * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * @deprecated octokit.teams.createDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy - */ - createDiscussion: { - (params?: RequestParameters & TeamsCreateDiscussionParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a comment`](https://developer.github.com/v3/teams/discussion_comments/#create-a-comment) endpoint. - * - * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * @deprecated octokit.teams.createDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy - */ - createDiscussionComment: { - (params?: RequestParameters & TeamsCreateDiscussionCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments`. - */ - createDiscussionCommentInOrg: { - (params?: RequestParameters & TeamsCreateDiscussionCommentInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a comment`](https://developer.github.com/v3/teams/discussion_comments/#create-a-comment) endpoint. - * - * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * @deprecated octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy - */ - createDiscussionCommentLegacy: { - (params?: RequestParameters & TeamsCreateDiscussionCommentLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions`. - */ - createDiscussionInOrg: { - (params?: RequestParameters & TeamsCreateDiscussionInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://developer.github.com/v3/teams/discussions/#create-a-discussion) endpoint. - * - * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * @deprecated octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy - */ - createDiscussionLegacy: { - (params?: RequestParameters & TeamsCreateDiscussionLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete team`](https://developer.github.com/v3/teams/#delete-team) endpoint. - * - * To delete a team, the authenticated user must be an organization owner or team maintainer. - * - * If you are an organization owner, deleting a parent team will delete all of its child teams as well. - * @deprecated octokit.teams.delete() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy - */ - delete: { - (params?: RequestParameters & TeamsDeleteParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://developer.github.com/v3/teams/discussions/#delete-a-discussion) endpoint. - * - * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.deleteDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy - */ - deleteDiscussion: { - (params?: RequestParameters & TeamsDeleteDiscussionParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a comment`](https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment) endpoint. - * - * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.deleteDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy - */ - deleteDiscussionComment: { - (params?: RequestParameters & TeamsDeleteDiscussionCommentParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number`. - */ - deleteDiscussionCommentInOrg: { - (params?: RequestParameters & TeamsDeleteDiscussionCommentInOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a comment`](https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment) endpoint. - * - * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy - */ - deleteDiscussionCommentLegacy: { - (params?: RequestParameters & TeamsDeleteDiscussionCommentLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number`. - */ - deleteDiscussionInOrg: { - (params?: RequestParameters & TeamsDeleteDiscussionInOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://developer.github.com/v3/teams/discussions/#delete-a-discussion) endpoint. - * - * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy - */ - deleteDiscussionLegacy: { - (params?: RequestParameters & TeamsDeleteDiscussionLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * To delete a team, the authenticated user must be an organization owner or team maintainer. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id`. - * - * If you are an organization owner, deleting a parent team will delete all of its child teams as well. - */ - deleteInOrg: { - (params?: RequestParameters & TeamsDeleteInOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete team`](https://developer.github.com/v3/teams/#delete-team) endpoint. - * - * To delete a team, the authenticated user must be an organization owner or team maintainer. - * - * If you are an organization owner, deleting a parent team will delete all of its child teams as well. - * @deprecated octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy - */ - deleteLegacy: { - (params?: RequestParameters & TeamsDeleteLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [`Get team by name`](https://developer.github.com/v3/teams/#get-team-by-name) endpoint. - * @deprecated octokit.teams.get() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy - */ - get: { - (params?: RequestParameters & TeamsGetParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Gets a team using the team's `slug`. GitHub generates the `slug` from the team `name`. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id`. - */ - getByName: { - (params?: RequestParameters & TeamsGetByNameParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single discussion`](https://developer.github.com/v3/teams/discussions/#get-a-single-discussion) endpoint. - * - * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.getDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy - */ - getDiscussion: { - (params?: RequestParameters & TeamsGetDiscussionParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single comment`](https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment) endpoint. - * - * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.getDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy - */ - getDiscussionComment: { - (params?: RequestParameters & TeamsGetDiscussionCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number`. - */ - getDiscussionCommentInOrg: { - (params?: RequestParameters & TeamsGetDiscussionCommentInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single comment`](https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment) endpoint. - * - * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy - */ - getDiscussionCommentLegacy: { - (params?: RequestParameters & TeamsGetDiscussionCommentLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number`. - */ - getDiscussionInOrg: { - (params?: RequestParameters & TeamsGetDiscussionInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single discussion`](https://developer.github.com/v3/teams/discussions/#get-a-single-discussion) endpoint. - * - * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy - */ - getDiscussionLegacy: { - (params?: RequestParameters & TeamsGetDiscussionLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [`Get team by name`](https://developer.github.com/v3/teams/#get-team-by-name) endpoint. - * @deprecated octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy - */ - getLegacy: { - (params?: RequestParameters & TeamsGetLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * The "Get team member" endpoint (described below) is deprecated. - * - * We recommend using the [Get team membership](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint instead. It allows you to get both active and pending memberships. - * - * To list members in a team, the team must be visible to the authenticated user. - * @deprecated octokit.teams.getMember() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy - */ - getMember: { - (params?: RequestParameters & TeamsGetMemberParams): Promise; - endpoint: EndpointInterface; - }; - /** - * The "Get team member" endpoint (described below) is deprecated. - * - * We recommend using the [Get team membership](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint instead. It allows you to get both active and pending memberships. - * - * To list members in a team, the team must be visible to the authenticated user. - * @deprecated octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy - */ - getMemberLegacy: { - (params?: RequestParameters & TeamsGetMemberLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get team membership`](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint. - * - * Team members will include the members of child teams. - * - * To get a user's membership with a team, the team must be visible to the authenticated user. - * - * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team). - * @deprecated octokit.teams.getMembership() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy - */ - getMembership: { - (params?: RequestParameters & TeamsGetMembershipParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Team members will include the members of child teams. - * - * To get a user's membership with a team, the team must be visible to the authenticated user. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/memberships/:username`. - * - * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team). - */ - getMembershipInOrg: { - (params?: RequestParameters & TeamsGetMembershipInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get team membership`](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint. - * - * Team members will include the members of child teams. - * - * To get a user's membership with a team, the team must be visible to the authenticated user. - * - * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team). - * @deprecated octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy - */ - getMembershipLegacy: { - (params?: RequestParameters & TeamsGetMembershipLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all teams in an organization that are visible to the authenticated user. - */ - list: { - (params?: RequestParameters & TeamsListParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://developer.github.com/v3/teams/#list-child-teams) endpoint. - * - * - * @deprecated octokit.teams.listChild() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy - */ - listChild: { - (params?: RequestParameters & TeamsListChildParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the child teams of the team requested by `:team_slug`. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/teams`. - */ - listChildInOrg: { - (params?: RequestParameters & TeamsListChildInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://developer.github.com/v3/teams/#list-child-teams) endpoint. - * - * - * @deprecated octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy - */ - listChildLegacy: { - (params?: RequestParameters & TeamsListChildLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List comments`](https://developer.github.com/v3/teams/discussion_comments/#list-comments) endpoint. - * - * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.listDiscussionComments() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy - */ - listDiscussionComments: { - (params?: RequestParameters & TeamsListDiscussionCommentsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments`. - */ - listDiscussionCommentsInOrg: { - (params?: RequestParameters & TeamsListDiscussionCommentsInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List comments`](https://developer.github.com/v3/teams/discussion_comments/#list-comments) endpoint. - * - * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy - */ - listDiscussionCommentsLegacy: { - (params?: RequestParameters & TeamsListDiscussionCommentsLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://developer.github.com/v3/teams/discussions/#list-discussions) endpoint. - * - * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.listDiscussions() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy - */ - listDiscussions: { - (params?: RequestParameters & TeamsListDiscussionsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions`. - */ - listDiscussionsInOrg: { - (params?: RequestParameters & TeamsListDiscussionsInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://developer.github.com/v3/teams/discussions/#list-discussions) endpoint. - * - * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy - */ - listDiscussionsLegacy: { - (params?: RequestParameters & TeamsListDiscussionsLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://developer.github.com/apps/building-oauth-apps/). - */ - listForAuthenticatedUser: { - (params?: RequestParameters & TeamsListForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://developer.github.com/v3/teams/members/#list-team-members) endpoint. - * - * Team members will include the members of child teams. - * @deprecated octokit.teams.listMembers() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy - */ - listMembers: { - (params?: RequestParameters & TeamsListMembersParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Team members will include the members of child teams. - * - * To list members in a team, the team must be visible to the authenticated user. - */ - listMembersInOrg: { - (params?: RequestParameters & TeamsListMembersInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://developer.github.com/v3/teams/members/#list-team-members) endpoint. - * - * Team members will include the members of child teams. - * @deprecated octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy - */ - listMembersLegacy: { - (params?: RequestParameters & TeamsListMembersLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://developer.github.com/v3/teams/members/#list-pending-team-invitations) endpoint. - * - * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. - * @deprecated octokit.teams.listPendingInvitations() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy - */ - listPendingInvitations: { - (params?: RequestParameters & TeamsListPendingInvitationsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/invitations`. - */ - listPendingInvitationsInOrg: { - (params?: RequestParameters & TeamsListPendingInvitationsInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://developer.github.com/v3/teams/members/#list-pending-team-invitations) endpoint. - * - * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. - * @deprecated octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy - */ - listPendingInvitationsLegacy: { - (params?: RequestParameters & TeamsListPendingInvitationsLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://developer.github.com/v3/teams/#list-team-projects) endpoint. - * - * Lists the organization projects for a team. - * @deprecated octokit.teams.listProjects() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy - */ - listProjects: { - (params?: RequestParameters & TeamsListProjectsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the organization projects for a team. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/projects`. - */ - listProjectsInOrg: { - (params?: RequestParameters & TeamsListProjectsInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://developer.github.com/v3/teams/#list-team-projects) endpoint. - * - * Lists the organization projects for a team. - * @deprecated octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy - */ - listProjectsLegacy: { - (params?: RequestParameters & TeamsListProjectsLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team repos`](https://developer.github.com/v3/teams/#list-team-repos) endpoint. - * @deprecated octokit.teams.listRepos() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy - */ - listRepos: { - (params?: RequestParameters & TeamsListReposParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists a team's repositories visible to the authenticated user. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/repos`. - */ - listReposInOrg: { - (params?: RequestParameters & TeamsListReposInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team repos`](https://developer.github.com/v3/teams/#list-team-repos) endpoint. - * @deprecated octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy - */ - listReposLegacy: { - (params?: RequestParameters & TeamsListReposLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * The "Remove team member" endpoint (described below) is deprecated. - * - * We recommend using the [Remove team membership](https://developer.github.com/v3/teams/members/#remove-team-membership) endpoint instead. It allows you to remove both active and pending memberships. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * @deprecated octokit.teams.removeMember() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy - */ - removeMember: { - (params?: RequestParameters & TeamsRemoveMemberParams): Promise; - endpoint: EndpointInterface; - }; - /** - * The "Remove team member" endpoint (described below) is deprecated. - * - * We recommend using the [Remove team membership](https://developer.github.com/v3/teams/members/#remove-team-membership) endpoint instead. It allows you to remove both active and pending memberships. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * @deprecated octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy - */ - removeMemberLegacy: { - (params?: RequestParameters & TeamsRemoveMemberLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team membership`](https://developer.github.com/v3/teams/members/#remove-team-membership) endpoint. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * @deprecated octokit.teams.removeMembership() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy - */ - removeMembership: { - (params?: RequestParameters & TeamsRemoveMembershipParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/memberships/:username`. - */ - removeMembershipInOrg: { - (params?: RequestParameters & TeamsRemoveMembershipInOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team membership`](https://developer.github.com/v3/teams/members/#remove-team-membership) endpoint. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * @deprecated octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy - */ - removeMembershipLegacy: { - (params?: RequestParameters & TeamsRemoveMembershipLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team project`](https://developer.github.com/v3/teams/#remove-team-project) endpoint. - * - * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. - * @deprecated octokit.teams.removeProject() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy - */ - removeProject: { - (params?: RequestParameters & TeamsRemoveProjectParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. This endpoint removes the project from the team, but does not delete the project. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/projects/:project_id`. - */ - removeProjectInOrg: { - (params?: RequestParameters & TeamsRemoveProjectInOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team project`](https://developer.github.com/v3/teams/#remove-team-project) endpoint. - * - * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. - * @deprecated octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy - */ - removeProjectLegacy: { - (params?: RequestParameters & TeamsRemoveProjectLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team repository`](https://developer.github.com/v3/teams/#remove-team-repository) endpoint. - * - * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. - * @deprecated octokit.teams.removeRepo() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy - */ - removeRepo: { - (params?: RequestParameters & TeamsRemoveRepoParams): Promise; - endpoint: EndpointInterface; - }; - /** - * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. This does not delete the repository, it just removes it from the team. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/repos/:owner/:repo`. - */ - removeRepoInOrg: { - (params?: RequestParameters & TeamsRemoveRepoInOrgParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team repository`](https://developer.github.com/v3/teams/#remove-team-repository) endpoint. - * - * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. - * @deprecated octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy - */ - removeRepoLegacy: { - (params?: RequestParameters & TeamsRemoveRepoLegacyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Review a team project`](https://developer.github.com/v3/teams/#review-a-team-project) endpoint. - * - * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. - * @deprecated octokit.teams.reviewProject() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy - */ - reviewProject: { - (params?: RequestParameters & TeamsReviewProjectParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/projects/:project_id`. - */ - reviewProjectInOrg: { - (params?: RequestParameters & TeamsReviewProjectInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Review a team project`](https://developer.github.com/v3/teams/#review-a-team-project) endpoint. - * - * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. - * @deprecated octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy - */ - reviewProjectLegacy: { - (params?: RequestParameters & TeamsReviewProjectLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit team`](https://developer.github.com/v3/teams/#edit-team) endpoint. - * - * To edit a team, the authenticated user must either be an organization owner or a team maintainer. - * - * **Note:** With nested teams, the `privacy` for parent teams cannot be `secret`. - * @deprecated octokit.teams.update() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy - */ - update: { - (params?: RequestParameters & TeamsUpdateParamsDeprecatedPermission): Promise>; - (params?: RequestParameters & TeamsUpdateParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a discussion`](https://developer.github.com/v3/teams/discussions/#edit-a-discussion) endpoint. - * - * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.updateDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy - */ - updateDiscussion: { - (params?: RequestParameters & TeamsUpdateDiscussionParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a comment`](https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment) endpoint. - * - * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.updateDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy - */ - updateDiscussionComment: { - (params?: RequestParameters & TeamsUpdateDiscussionCommentParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number`. - */ - updateDiscussionCommentInOrg: { - (params?: RequestParameters & TeamsUpdateDiscussionCommentInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a comment`](https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment) endpoint. - * - * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy - */ - updateDiscussionCommentLegacy: { - (params?: RequestParameters & TeamsUpdateDiscussionCommentLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/:org_id/team/:team_id/discussions/:discussion_number`. - */ - updateDiscussionInOrg: { - (params?: RequestParameters & TeamsUpdateDiscussionInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a discussion`](https://developer.github.com/v3/teams/discussions/#edit-a-discussion) endpoint. - * - * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy - */ - updateDiscussionLegacy: { - (params?: RequestParameters & TeamsUpdateDiscussionLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * To edit a team, the authenticated user must either be an organization owner or a team maintainer. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/:org_id/team/:team_id`. - */ - updateInOrg: { - (params?: RequestParameters & TeamsUpdateInOrgParamsDeprecatedPermission): Promise>; - (params?: RequestParameters & TeamsUpdateInOrgParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit team`](https://developer.github.com/v3/teams/#edit-team) endpoint. - * - * To edit a team, the authenticated user must either be an organization owner or a team maintainer. - * - * **Note:** With nested teams, the `privacy` for parent teams cannot be `secret`. - * @deprecated octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy - */ - updateLegacy: { - (params?: RequestParameters & TeamsUpdateLegacyParamsDeprecatedPermission): Promise>; - (params?: RequestParameters & TeamsUpdateLegacyParams): Promise>; - endpoint: EndpointInterface; - }; - }; - users: { - /** - * This endpoint is accessible with the `user` scope. - */ - addEmails: { - (params?: RequestParameters & UsersAddEmailsParams): Promise>; - endpoint: EndpointInterface; - }; - block: { - (params?: RequestParameters & UsersBlockParams): Promise; - endpoint: EndpointInterface; - }; - /** - * If the user is blocked: - * - * If the user is not blocked: - */ - checkBlocked: { - (params?: RequestParameters & UsersCheckBlockedParams): Promise; - endpoint: EndpointInterface; - }; - checkFollowing: { - (params?: RequestParameters & UsersCheckFollowingParams): Promise; - endpoint: EndpointInterface; - }; - checkFollowingForUser: { - (params?: RequestParameters & UsersCheckFollowingForUserParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - createGpgKey: { - (params?: RequestParameters & UsersCreateGpgKeyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - createPublicKey: { - (params?: RequestParameters & UsersCreatePublicKeyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * This endpoint is accessible with the `user` scope. - */ - deleteEmails: { - (params?: RequestParameters & UsersDeleteEmailsParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Removes a GPG key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - deleteGpgKey: { - (params?: RequestParameters & UsersDeleteGpgKeyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Removes a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - deletePublicKey: { - (params?: RequestParameters & UsersDeletePublicKeyParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - * - * Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope. - */ - follow: { - (params?: RequestParameters & UsersFollowParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Lists public and private profile information when authenticated through basic auth or OAuth with the `user` scope. - * - * Lists public profile information when authenticated through OAuth without the `user` scope. - */ - getAuthenticated: { - (params?: RequestParameters & EmptyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Provides publicly available information about someone with a GitHub account. - * - * GitHub Apps with the `Plan` user permission can use this endpoint to retrieve information about a user's GitHub plan. The GitHub App must be authenticated as a user. See "[Identifying and authorizing users for GitHub Apps](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)" for details about authentication. For an example response, see "[Response with GitHub plan information](https://developer.github.com/v3/users/#response-with-github-plan-information)." - * - * The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://developer.github.com/v3/#authentication). - * - * The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://developer.github.com/v3/users/emails/)". - */ - getByUsername: { - (params?: RequestParameters & UsersGetByUsernameParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations. - * - * The `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this: - */ - getContextForUser: { - (params?: RequestParameters & UsersGetContextForUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - getGpgKey: { - (params?: RequestParameters & UsersGetGpgKeyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - getPublicKey: { - (params?: RequestParameters & UsersGetPublicKeyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts. - * - * Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of users. - */ - list: { - (params?: RequestParameters & UsersListParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * List the users you've blocked on your personal account. - */ - listBlocked: { - (params?: RequestParameters & EmptyParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope. - */ - listEmails: { - (params?: RequestParameters & UsersListEmailsParams): Promise>; - endpoint: EndpointInterface; - }; - listFollowersForAuthenticatedUser: { - (params?: RequestParameters & UsersListFollowersForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - listFollowersForUser: { - (params?: RequestParameters & UsersListFollowersForUserParams): Promise>; - endpoint: EndpointInterface; - }; - listFollowingForAuthenticatedUser: { - (params?: RequestParameters & UsersListFollowingForAuthenticatedUserParams): Promise>; - endpoint: EndpointInterface; - }; - listFollowingForUser: { - (params?: RequestParameters & UsersListFollowingForUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - listGpgKeys: { - (params?: RequestParameters & UsersListGpgKeysParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the GPG keys for a user. This information is accessible by anyone. - */ - listGpgKeysForUser: { - (params?: RequestParameters & UsersListGpgKeysForUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists your publicly visible email address, which you can set with the [Toggle primary email visibility](https://developer.github.com/v3/users/emails/#toggle-primary-email-visibility) endpoint. This endpoint is accessible with the `user:email` scope. - */ - listPublicEmails: { - (params?: RequestParameters & UsersListPublicEmailsParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - listPublicKeys: { - (params?: RequestParameters & UsersListPublicKeysParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Lists the _verified_ public SSH keys for a user. This is accessible by anyone. - */ - listPublicKeysForUser: { - (params?: RequestParameters & UsersListPublicKeysForUserParams): Promise>; - endpoint: EndpointInterface; - }; - /** - * Sets the visibility for your primary email addresses. - */ - togglePrimaryEmailVisibility: { - (params?: RequestParameters & UsersTogglePrimaryEmailVisibilityParams): Promise>; - endpoint: EndpointInterface; - }; - unblock: { - (params?: RequestParameters & UsersUnblockParams): Promise; - endpoint: EndpointInterface; - }; - /** - * Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope. - */ - unfollow: { - (params?: RequestParameters & UsersUnfollowParams): Promise; - endpoint: EndpointInterface; - }; - /** - * **Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API. - */ - updateAuthenticated: { - (params?: RequestParameters & UsersUpdateAuthenticatedParams): Promise>; - endpoint: EndpointInterface; - }; - }; -}; -export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/index.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/index.d.ts index 454dd5ef6..455e99898 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/index.d.ts +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/index.d.ts @@ -1,4 +1,5 @@ import { Octokit } from "@octokit/core"; +export { RestEndpointMethodTypes } from "./generated/parameters-and-response-types"; import { Api } from "./types"; /** * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/register-endpoints.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/register-endpoints.d.ts deleted file mode 100644 index b80dde0a3..000000000 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/register-endpoints.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function registerEndpoints(octokit: any, routes: any): void; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types.d.ts index 4cabd9f5c..e9b177b40 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types.d.ts +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/types.d.ts @@ -1,4 +1,16 @@ -import { RestEndpointMethods } from "./generated/rest-endpoint-methods-types"; -export declare type Api = { - registerEndpoints: (endpoints: any) => void; -} & RestEndpointMethods; +import { Route, RequestParameters } from "@octokit/types"; +import { RestEndpointMethods } from "./generated/method-types"; +export declare type Api = RestEndpointMethods; +export declare type EndpointDecorations = { + mapToData?: string; + deprecated?: string; + renamed?: [string, string]; + renamedParameters?: { + [name: string]: string; + }; +}; +export declare type EndpointsDefaultsAndDecorations = { + [scope: string]: { + [methodName: string]: [Route, RequestParameters?, EndpointDecorations?]; + }; +}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/version.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/version.d.ts index d1c6894db..cd3ef1e6b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/version.d.ts +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-types/version.d.ts @@ -1 +1 @@ -export declare const VERSION = "2.4.0"; +export declare const VERSION = "4.3.1"; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js index b6b0f1c36..ae03316e8 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js @@ -1,6690 +1,1328 @@ -import { Deprecation } from 'deprecation'; - -var endpointsByScope = { +const Endpoints = { actions: { - cancelWorkflowRun: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/cancel" - }, - createOrUpdateSecretForRepo: { - method: "PUT", - params: { - encrypted_value: { type: "string" }, - key_id: { type: "string" }, - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - createRegistrationToken: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/runners/registration-token" - }, - createRemoveToken: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/runners/remove-token" - }, - deleteArtifact: { - method: "DELETE", - params: { - artifact_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id" - }, - deleteSecretFromRepo: { - method: "DELETE", - params: { - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - downloadArtifact: { - method: "GET", - params: { - archive_format: { required: true, type: "string" }, - artifact_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format" - }, - getArtifact: { - method: "GET", - params: { - artifact_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id" - }, - getPublicKey: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/secrets/public-key" - }, - getSecret: { - method: "GET", - params: { - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/secrets/:name" - }, - getSelfHostedRunner: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - runner_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runners/:runner_id" - }, - getWorkflow: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - workflow_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/workflows/:workflow_id" - }, - getWorkflowJob: { - method: "GET", - params: { - job_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/jobs/:job_id" - }, - getWorkflowRun: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id" - }, - listDownloadsForSelfHostedRunnerApplication: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/runners/downloads" - }, - listJobsForWorkflowRun: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/jobs" - }, - listRepoWorkflowRuns: { - method: "GET", - params: { - actor: { type: "string" }, - branch: { type: "string" }, - event: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - status: { enum: ["completed", "status", "conclusion"], type: "string" } - }, - url: "/repos/:owner/:repo/actions/runs" - }, - listRepoWorkflows: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/workflows" - }, - listSecretsForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/secrets" - }, - listSelfHostedRunnersForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/runners" - }, - listWorkflowJobLogs: { - method: "GET", - params: { - job_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/actions/jobs/:job_id/logs" - }, - listWorkflowRunArtifacts: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts" - }, - listWorkflowRunLogs: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/logs" - }, - listWorkflowRuns: { - method: "GET", - params: { - actor: { type: "string" }, - branch: { type: "string" }, - event: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - status: { enum: ["completed", "status", "conclusion"], type: "string" }, - workflow_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs" - }, - reRunWorkflow: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - run_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runs/:run_id/rerun" - }, - removeSelfHostedRunner: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - runner_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/actions/runners/:runner_id" - } + addSelectedRepoToOrgSecret: [ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", + ], + cancelWorkflowRun: [ + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel", + ], + createOrUpdateOrgSecret: ["PUT /orgs/{org}/actions/secrets/{secret_name}"], + createOrUpdateRepoSecret: [ + "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}", + ], + createRegistrationTokenForOrg: [ + "POST /orgs/{org}/actions/runners/registration-token", + ], + createRegistrationTokenForRepo: [ + "POST /repos/{owner}/{repo}/actions/runners/registration-token", + ], + createRemoveTokenForOrg: ["POST /orgs/{org}/actions/runners/remove-token"], + createRemoveTokenForRepo: [ + "POST /repos/{owner}/{repo}/actions/runners/remove-token", + ], + createWorkflowDispatch: [ + "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches", + ], + deleteArtifact: [ + "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}", + ], + deleteOrgSecret: ["DELETE /orgs/{org}/actions/secrets/{secret_name}"], + deleteRepoSecret: [ + "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}", + ], + deleteSelfHostedRunnerFromOrg: [ + "DELETE /orgs/{org}/actions/runners/{runner_id}", + ], + deleteSelfHostedRunnerFromRepo: [ + "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}", + ], + deleteWorkflowRun: ["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"], + deleteWorkflowRunLogs: [ + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs", + ], + disableSelectedRepositoryGithubActionsOrganization: [ + "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}", + ], + disableWorkflow: [ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable", + ], + downloadArtifact: [ + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}", + ], + downloadJobLogsForWorkflowRun: [ + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs", + ], + downloadWorkflowRunLogs: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs", + ], + enableSelectedRepositoryGithubActionsOrganization: [ + "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}", + ], + enableWorkflow: [ + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable", + ], + getAllowedActionsOrganization: [ + "GET /orgs/{org}/actions/permissions/selected-actions", + ], + getAllowedActionsRepository: [ + "GET /repos/{owner}/{repo}/actions/permissions/selected-actions", + ], + getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"], + getGithubActionsPermissionsOrganization: [ + "GET /orgs/{org}/actions/permissions", + ], + getGithubActionsPermissionsRepository: [ + "GET /repos/{owner}/{repo}/actions/permissions", + ], + getJobForWorkflowRun: ["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"], + getOrgPublicKey: ["GET /orgs/{org}/actions/secrets/public-key"], + getOrgSecret: ["GET /orgs/{org}/actions/secrets/{secret_name}"], + getRepoPermissions: [ + "GET /repos/{owner}/{repo}/actions/permissions", + {}, + { renamed: ["actions", "getGithubActionsPermissionsRepository"] }, + ], + getRepoPublicKey: ["GET /repos/{owner}/{repo}/actions/secrets/public-key"], + getRepoSecret: ["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"], + getSelfHostedRunnerForOrg: ["GET /orgs/{org}/actions/runners/{runner_id}"], + getSelfHostedRunnerForRepo: [ + "GET /repos/{owner}/{repo}/actions/runners/{runner_id}", + ], + getWorkflow: ["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"], + getWorkflowRun: ["GET /repos/{owner}/{repo}/actions/runs/{run_id}"], + getWorkflowRunUsage: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing", + ], + getWorkflowUsage: [ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing", + ], + listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"], + listJobsForWorkflowRun: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs", + ], + listOrgSecrets: ["GET /orgs/{org}/actions/secrets"], + listRepoSecrets: ["GET /repos/{owner}/{repo}/actions/secrets"], + listRepoWorkflows: ["GET /repos/{owner}/{repo}/actions/workflows"], + listRunnerApplicationsForOrg: ["GET /orgs/{org}/actions/runners/downloads"], + listRunnerApplicationsForRepo: [ + "GET /repos/{owner}/{repo}/actions/runners/downloads", + ], + listSelectedReposForOrgSecret: [ + "GET /orgs/{org}/actions/secrets/{secret_name}/repositories", + ], + listSelectedRepositoriesEnabledGithubActionsOrganization: [ + "GET /orgs/{org}/actions/permissions/repositories", + ], + listSelfHostedRunnersForOrg: ["GET /orgs/{org}/actions/runners"], + listSelfHostedRunnersForRepo: ["GET /repos/{owner}/{repo}/actions/runners"], + listWorkflowRunArtifacts: [ + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", + ], + listWorkflowRuns: [ + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", + ], + listWorkflowRunsForRepo: ["GET /repos/{owner}/{repo}/actions/runs"], + reRunWorkflow: ["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"], + removeSelectedRepoFromOrgSecret: [ + "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", + ], + setAllowedActionsOrganization: [ + "PUT /orgs/{org}/actions/permissions/selected-actions", + ], + setAllowedActionsRepository: [ + "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions", + ], + setGithubActionsPermissionsOrganization: [ + "PUT /orgs/{org}/actions/permissions", + ], + setGithubActionsPermissionsRepository: [ + "PUT /repos/{owner}/{repo}/actions/permissions", + ], + setSelectedReposForOrgSecret: [ + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories", + ], + setSelectedRepositoriesEnabledGithubActionsOrganization: [ + "PUT /orgs/{org}/actions/permissions/repositories", + ], }, activity: { - checkStarringRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/user/starred/:owner/:repo" - }, - deleteRepoSubscription: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/subscription" - }, - deleteThreadSubscription: { - method: "DELETE", - params: { thread_id: { required: true, type: "integer" } }, - url: "/notifications/threads/:thread_id/subscription" - }, - getRepoSubscription: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/subscription" - }, - getThread: { - method: "GET", - params: { thread_id: { required: true, type: "integer" } }, - url: "/notifications/threads/:thread_id" - }, - getThreadSubscription: { - method: "GET", - params: { thread_id: { required: true, type: "integer" } }, - url: "/notifications/threads/:thread_id/subscription" - }, - listEventsForOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/events/orgs/:org" - }, - listEventsForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/events" - }, - listFeeds: { method: "GET", params: {}, url: "/feeds" }, - listNotifications: { - method: "GET", - params: { - all: { type: "boolean" }, - before: { type: "string" }, - page: { type: "integer" }, - participating: { type: "boolean" }, - per_page: { type: "integer" }, - since: { type: "string" } - }, - url: "/notifications" - }, - listNotificationsForRepo: { - method: "GET", - params: { - all: { type: "boolean" }, - before: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - participating: { type: "boolean" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - since: { type: "string" } - }, - url: "/repos/:owner/:repo/notifications" - }, - listPublicEvents: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/events" - }, - listPublicEventsForOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/events" - }, - listPublicEventsForRepoNetwork: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/networks/:owner/:repo/events" - }, - listPublicEventsForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/events/public" - }, - listReceivedEventsForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/received_events" - }, - listReceivedPublicEventsForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/received_events/public" - }, - listRepoEvents: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/events" - }, - listReposStarredByAuthenticatedUser: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/user/starred" - }, - listReposStarredByUser: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - sort: { enum: ["created", "updated"], type: "string" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/starred" - }, - listReposWatchedByUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/subscriptions" - }, - listStargazersForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stargazers" - }, - listWatchedReposForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/subscriptions" - }, - listWatchersForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/subscribers" - }, - markAsRead: { - method: "PUT", - params: { last_read_at: { type: "string" } }, - url: "/notifications" - }, - markNotificationsAsReadForRepo: { - method: "PUT", - params: { - last_read_at: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/notifications" - }, - markThreadAsRead: { - method: "PATCH", - params: { thread_id: { required: true, type: "integer" } }, - url: "/notifications/threads/:thread_id" - }, - setRepoSubscription: { - method: "PUT", - params: { - ignored: { type: "boolean" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - subscribed: { type: "boolean" } - }, - url: "/repos/:owner/:repo/subscription" - }, - setThreadSubscription: { - method: "PUT", - params: { - ignored: { type: "boolean" }, - thread_id: { required: true, type: "integer" } - }, - url: "/notifications/threads/:thread_id/subscription" - }, - starRepo: { - method: "PUT", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/user/starred/:owner/:repo" - }, - unstarRepo: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/user/starred/:owner/:repo" - } + checkRepoIsStarredByAuthenticatedUser: ["GET /user/starred/{owner}/{repo}"], + deleteRepoSubscription: ["DELETE /repos/{owner}/{repo}/subscription"], + deleteThreadSubscription: [ + "DELETE /notifications/threads/{thread_id}/subscription", + ], + getFeeds: ["GET /feeds"], + getRepoSubscription: ["GET /repos/{owner}/{repo}/subscription"], + getThread: ["GET /notifications/threads/{thread_id}"], + getThreadSubscriptionForAuthenticatedUser: [ + "GET /notifications/threads/{thread_id}/subscription", + ], + listEventsForAuthenticatedUser: ["GET /users/{username}/events"], + listNotificationsForAuthenticatedUser: ["GET /notifications"], + listOrgEventsForAuthenticatedUser: [ + "GET /users/{username}/events/orgs/{org}", + ], + listPublicEvents: ["GET /events"], + listPublicEventsForRepoNetwork: ["GET /networks/{owner}/{repo}/events"], + listPublicEventsForUser: ["GET /users/{username}/events/public"], + listPublicOrgEvents: ["GET /orgs/{org}/events"], + listReceivedEventsForUser: ["GET /users/{username}/received_events"], + listReceivedPublicEventsForUser: [ + "GET /users/{username}/received_events/public", + ], + listRepoEvents: ["GET /repos/{owner}/{repo}/events"], + listRepoNotificationsForAuthenticatedUser: [ + "GET /repos/{owner}/{repo}/notifications", + ], + listReposStarredByAuthenticatedUser: ["GET /user/starred"], + listReposStarredByUser: ["GET /users/{username}/starred"], + listReposWatchedByUser: ["GET /users/{username}/subscriptions"], + listStargazersForRepo: ["GET /repos/{owner}/{repo}/stargazers"], + listWatchedReposForAuthenticatedUser: ["GET /user/subscriptions"], + listWatchersForRepo: ["GET /repos/{owner}/{repo}/subscribers"], + markNotificationsAsRead: ["PUT /notifications"], + markRepoNotificationsAsRead: ["PUT /repos/{owner}/{repo}/notifications"], + markThreadAsRead: ["PATCH /notifications/threads/{thread_id}"], + setRepoSubscription: ["PUT /repos/{owner}/{repo}/subscription"], + setThreadSubscription: [ + "PUT /notifications/threads/{thread_id}/subscription", + ], + starRepoForAuthenticatedUser: ["PUT /user/starred/{owner}/{repo}"], + unstarRepoForAuthenticatedUser: ["DELETE /user/starred/{owner}/{repo}"], }, apps: { - addRepoToInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "PUT", - params: { - installation_id: { required: true, type: "integer" }, - repository_id: { required: true, type: "integer" } - }, - url: "/user/installations/:installation_id/repositories/:repository_id" - }, - checkAccountIsAssociatedWithAny: { - method: "GET", - params: { account_id: { required: true, type: "integer" } }, - url: "/marketplace_listing/accounts/:account_id" - }, - checkAccountIsAssociatedWithAnyStubbed: { - method: "GET", - params: { account_id: { required: true, type: "integer" } }, - url: "/marketplace_listing/stubbed/accounts/:account_id" - }, - checkAuthorization: { - deprecated: "octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization", - method: "GET", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - checkToken: { - headers: { accept: "application/vnd.github.doctor-strange-preview+json" }, - method: "POST", - params: { - access_token: { type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/token" - }, - createContentAttachment: { - headers: { accept: "application/vnd.github.corsair-preview+json" }, - method: "POST", - params: { - body: { required: true, type: "string" }, - content_reference_id: { required: true, type: "integer" }, - title: { required: true, type: "string" } - }, - url: "/content_references/:content_reference_id/attachments" - }, - createFromManifest: { - headers: { accept: "application/vnd.github.fury-preview+json" }, - method: "POST", - params: { code: { required: true, type: "string" } }, - url: "/app-manifests/:code/conversions" - }, - createInstallationToken: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "POST", - params: { - installation_id: { required: true, type: "integer" }, - permissions: { type: "object" }, - repository_ids: { type: "integer[]" } - }, - url: "/app/installations/:installation_id/access_tokens" - }, - deleteAuthorization: { - headers: { accept: "application/vnd.github.doctor-strange-preview+json" }, - method: "DELETE", - params: { - access_token: { type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/grant" - }, - deleteInstallation: { - headers: { - accept: "application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json" - }, - method: "DELETE", - params: { installation_id: { required: true, type: "integer" } }, - url: "/app/installations/:installation_id" - }, - deleteToken: { - headers: { accept: "application/vnd.github.doctor-strange-preview+json" }, - method: "DELETE", - params: { - access_token: { type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/token" - }, - findOrgInstallation: { - deprecated: "octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)", - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org/installation" - }, - findRepoInstallation: { - deprecated: "octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)", - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/installation" - }, - findUserInstallation: { - deprecated: "octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)", - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { username: { required: true, type: "string" } }, - url: "/users/:username/installation" - }, - getAuthenticated: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: {}, - url: "/app" - }, - getBySlug: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { app_slug: { required: true, type: "string" } }, - url: "/apps/:app_slug" - }, - getInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { installation_id: { required: true, type: "integer" } }, - url: "/app/installations/:installation_id" - }, - getOrgInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org/installation" - }, - getRepoInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/installation" - }, - getUserInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { username: { required: true, type: "string" } }, - url: "/users/:username/installation" - }, - listAccountsUserOrOrgOnPlan: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - plan_id: { required: true, type: "integer" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/marketplace_listing/plans/:plan_id/accounts" - }, - listAccountsUserOrOrgOnPlanStubbed: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - plan_id: { required: true, type: "integer" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/marketplace_listing/stubbed/plans/:plan_id/accounts" - }, - listInstallationReposForAuthenticatedUser: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { - installation_id: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/user/installations/:installation_id/repositories" - }, - listInstallations: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/app/installations" - }, - listInstallationsForAuthenticatedUser: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/installations" - }, - listMarketplacePurchasesForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/marketplace_purchases" - }, - listMarketplacePurchasesForAuthenticatedUserStubbed: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/marketplace_purchases/stubbed" - }, - listPlans: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/marketplace_listing/plans" - }, - listPlansStubbed: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/marketplace_listing/stubbed/plans" - }, - listRepos: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/installation/repositories" - }, - removeRepoFromInstallation: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "DELETE", - params: { - installation_id: { required: true, type: "integer" }, - repository_id: { required: true, type: "integer" } - }, - url: "/user/installations/:installation_id/repositories/:repository_id" - }, - resetAuthorization: { - deprecated: "octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization", - method: "POST", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - resetToken: { - headers: { accept: "application/vnd.github.doctor-strange-preview+json" }, - method: "PATCH", - params: { - access_token: { type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/token" - }, - revokeAuthorizationForApplication: { - deprecated: "octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application", - method: "DELETE", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeGrantForApplication: { - deprecated: "octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application", - method: "DELETE", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/grants/:access_token" - }, - revokeInstallationToken: { - headers: { accept: "application/vnd.github.gambit-preview+json" }, - method: "DELETE", - params: {}, - url: "/installation/token" - } + addRepoToInstallation: [ + "PUT /user/installations/{installation_id}/repositories/{repository_id}", + ], + checkToken: ["POST /applications/{client_id}/token"], + createContentAttachment: [ + "POST /content_references/{content_reference_id}/attachments", + { mediaType: { previews: ["corsair"] } }, + ], + createFromManifest: ["POST /app-manifests/{code}/conversions"], + createInstallationAccessToken: [ + "POST /app/installations/{installation_id}/access_tokens", + ], + deleteAuthorization: ["DELETE /applications/{client_id}/grant"], + deleteInstallation: ["DELETE /app/installations/{installation_id}"], + deleteToken: ["DELETE /applications/{client_id}/token"], + getAuthenticated: ["GET /app"], + getBySlug: ["GET /apps/{app_slug}"], + getInstallation: ["GET /app/installations/{installation_id}"], + getOrgInstallation: ["GET /orgs/{org}/installation"], + getRepoInstallation: ["GET /repos/{owner}/{repo}/installation"], + getSubscriptionPlanForAccount: [ + "GET /marketplace_listing/accounts/{account_id}", + ], + getSubscriptionPlanForAccountStubbed: [ + "GET /marketplace_listing/stubbed/accounts/{account_id}", + ], + getUserInstallation: ["GET /users/{username}/installation"], + getWebhookConfigForApp: ["GET /app/hook/config"], + listAccountsForPlan: ["GET /marketplace_listing/plans/{plan_id}/accounts"], + listAccountsForPlanStubbed: [ + "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts", + ], + listInstallationReposForAuthenticatedUser: [ + "GET /user/installations/{installation_id}/repositories", + ], + listInstallations: ["GET /app/installations"], + listInstallationsForAuthenticatedUser: ["GET /user/installations"], + listPlans: ["GET /marketplace_listing/plans"], + listPlansStubbed: ["GET /marketplace_listing/stubbed/plans"], + listReposAccessibleToInstallation: ["GET /installation/repositories"], + listSubscriptionsForAuthenticatedUser: ["GET /user/marketplace_purchases"], + listSubscriptionsForAuthenticatedUserStubbed: [ + "GET /user/marketplace_purchases/stubbed", + ], + removeRepoFromInstallation: [ + "DELETE /user/installations/{installation_id}/repositories/{repository_id}", + ], + resetToken: ["PATCH /applications/{client_id}/token"], + revokeInstallationAccessToken: ["DELETE /installation/token"], + suspendInstallation: ["PUT /app/installations/{installation_id}/suspended"], + unsuspendInstallation: [ + "DELETE /app/installations/{installation_id}/suspended", + ], + updateWebhookConfigForApp: ["PATCH /app/hook/config"], + }, + billing: { + getGithubActionsBillingOrg: ["GET /orgs/{org}/settings/billing/actions"], + getGithubActionsBillingUser: [ + "GET /users/{username}/settings/billing/actions", + ], + getGithubPackagesBillingOrg: ["GET /orgs/{org}/settings/billing/packages"], + getGithubPackagesBillingUser: [ + "GET /users/{username}/settings/billing/packages", + ], + getSharedStorageBillingOrg: [ + "GET /orgs/{org}/settings/billing/shared-storage", + ], + getSharedStorageBillingUser: [ + "GET /users/{username}/settings/billing/shared-storage", + ], }, checks: { - create: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "POST", - params: { - actions: { type: "object[]" }, - "actions[].description": { required: true, type: "string" }, - "actions[].identifier": { required: true, type: "string" }, - "actions[].label": { required: true, type: "string" }, - completed_at: { type: "string" }, - conclusion: { - enum: [ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required" - ], - type: "string" - }, - details_url: { type: "string" }, - external_id: { type: "string" }, - head_sha: { required: true, type: "string" }, - name: { required: true, type: "string" }, - output: { type: "object" }, - "output.annotations": { type: "object[]" }, - "output.annotations[].annotation_level": { - enum: ["notice", "warning", "failure"], - required: true, - type: "string" - }, - "output.annotations[].end_column": { type: "integer" }, - "output.annotations[].end_line": { required: true, type: "integer" }, - "output.annotations[].message": { required: true, type: "string" }, - "output.annotations[].path": { required: true, type: "string" }, - "output.annotations[].raw_details": { type: "string" }, - "output.annotations[].start_column": { type: "integer" }, - "output.annotations[].start_line": { required: true, type: "integer" }, - "output.annotations[].title": { type: "string" }, - "output.images": { type: "object[]" }, - "output.images[].alt": { required: true, type: "string" }, - "output.images[].caption": { type: "string" }, - "output.images[].image_url": { required: true, type: "string" }, - "output.summary": { required: true, type: "string" }, - "output.text": { type: "string" }, - "output.title": { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - started_at: { type: "string" }, - status: { enum: ["queued", "in_progress", "completed"], type: "string" } - }, - url: "/repos/:owner/:repo/check-runs" - }, - createSuite: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "POST", - params: { - head_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-suites" - }, - get: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - check_run_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id" - }, - getSuite: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - check_suite_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id" - }, - listAnnotations: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - check_run_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations" - }, - listForRef: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - check_name: { type: "string" }, - filter: { enum: ["latest", "all"], type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - status: { enum: ["queued", "in_progress", "completed"], type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref/check-runs" - }, - listForSuite: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - check_name: { type: "string" }, - check_suite_id: { required: true, type: "integer" }, - filter: { enum: ["latest", "all"], type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - status: { enum: ["queued", "in_progress", "completed"], type: "string" } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs" - }, - listSuitesForRef: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "GET", - params: { - app_id: { type: "integer" }, - check_name: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref/check-suites" - }, - rerequestSuite: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "POST", - params: { - check_suite_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest" - }, - setSuitesPreferences: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "PATCH", - params: { - auto_trigger_checks: { type: "object[]" }, - "auto_trigger_checks[].app_id": { required: true, type: "integer" }, - "auto_trigger_checks[].setting": { required: true, type: "boolean" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/check-suites/preferences" - }, - update: { - headers: { accept: "application/vnd.github.antiope-preview+json" }, - method: "PATCH", - params: { - actions: { type: "object[]" }, - "actions[].description": { required: true, type: "string" }, - "actions[].identifier": { required: true, type: "string" }, - "actions[].label": { required: true, type: "string" }, - check_run_id: { required: true, type: "integer" }, - completed_at: { type: "string" }, - conclusion: { - enum: [ - "success", - "failure", - "neutral", - "cancelled", - "timed_out", - "action_required" - ], - type: "string" - }, - details_url: { type: "string" }, - external_id: { type: "string" }, - name: { type: "string" }, - output: { type: "object" }, - "output.annotations": { type: "object[]" }, - "output.annotations[].annotation_level": { - enum: ["notice", "warning", "failure"], - required: true, - type: "string" - }, - "output.annotations[].end_column": { type: "integer" }, - "output.annotations[].end_line": { required: true, type: "integer" }, - "output.annotations[].message": { required: true, type: "string" }, - "output.annotations[].path": { required: true, type: "string" }, - "output.annotations[].raw_details": { type: "string" }, - "output.annotations[].start_column": { type: "integer" }, - "output.annotations[].start_line": { required: true, type: "integer" }, - "output.annotations[].title": { type: "string" }, - "output.images": { type: "object[]" }, - "output.images[].alt": { required: true, type: "string" }, - "output.images[].caption": { type: "string" }, - "output.images[].image_url": { required: true, type: "string" }, - "output.summary": { required: true, type: "string" }, - "output.text": { type: "string" }, - "output.title": { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - started_at: { type: "string" }, - status: { enum: ["queued", "in_progress", "completed"], type: "string" } - }, - url: "/repos/:owner/:repo/check-runs/:check_run_id" - } + create: ["POST /repos/{owner}/{repo}/check-runs"], + createSuite: ["POST /repos/{owner}/{repo}/check-suites"], + get: ["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"], + getSuite: ["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"], + listAnnotations: [ + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", + ], + listForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"], + listForSuite: [ + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", + ], + listSuitesForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"], + rerequestSuite: [ + "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest", + ], + setSuitesPreferences: [ + "PATCH /repos/{owner}/{repo}/check-suites/preferences", + ], + update: ["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"], + }, + codeScanning: { + getAlert: [ + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", + {}, + { renamedParameters: { alert_id: "alert_number" } }, + ], + listAlertsForRepo: ["GET /repos/{owner}/{repo}/code-scanning/alerts"], + listRecentAnalyses: ["GET /repos/{owner}/{repo}/code-scanning/analyses"], + updateAlert: [ + "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", + ], + uploadSarif: ["POST /repos/{owner}/{repo}/code-scanning/sarifs"], }, codesOfConduct: { - getConductCode: { - headers: { accept: "application/vnd.github.scarlet-witch-preview+json" }, - method: "GET", - params: { key: { required: true, type: "string" } }, - url: "/codes_of_conduct/:key" - }, - getForRepo: { - headers: { accept: "application/vnd.github.scarlet-witch-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/community/code_of_conduct" - }, - listConductCodes: { - headers: { accept: "application/vnd.github.scarlet-witch-preview+json" }, - method: "GET", - params: {}, - url: "/codes_of_conduct" - } + getAllCodesOfConduct: [ + "GET /codes_of_conduct", + { mediaType: { previews: ["scarlet-witch"] } }, + ], + getConductCode: [ + "GET /codes_of_conduct/{key}", + { mediaType: { previews: ["scarlet-witch"] } }, + ], + getForRepo: [ + "GET /repos/{owner}/{repo}/community/code_of_conduct", + { mediaType: { previews: ["scarlet-witch"] } }, + ], + }, + emojis: { get: ["GET /emojis"] }, + enterpriseAdmin: { + disableSelectedOrganizationGithubActionsEnterprise: [ + "DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}", + ], + enableSelectedOrganizationGithubActionsEnterprise: [ + "PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}", + ], + getAllowedActionsEnterprise: [ + "GET /enterprises/{enterprise}/actions/permissions/selected-actions", + ], + getGithubActionsPermissionsEnterprise: [ + "GET /enterprises/{enterprise}/actions/permissions", + ], + listSelectedOrganizationsEnabledGithubActionsEnterprise: [ + "GET /enterprises/{enterprise}/actions/permissions/organizations", + ], + setAllowedActionsEnterprise: [ + "PUT /enterprises/{enterprise}/actions/permissions/selected-actions", + ], + setGithubActionsPermissionsEnterprise: [ + "PUT /enterprises/{enterprise}/actions/permissions", + ], + setSelectedOrganizationsEnabledGithubActionsEnterprise: [ + "PUT /enterprises/{enterprise}/actions/permissions/organizations", + ], }, - emojis: { get: { method: "GET", params: {}, url: "/emojis" } }, gists: { - checkIsStarred: { - method: "GET", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id/star" - }, - create: { - method: "POST", - params: { - description: { type: "string" }, - files: { required: true, type: "object" }, - "files.content": { type: "string" }, - public: { type: "boolean" } - }, - url: "/gists" - }, - createComment: { - method: "POST", - params: { - body: { required: true, type: "string" }, - gist_id: { required: true, type: "string" } - }, - url: "/gists/:gist_id/comments" - }, - delete: { - method: "DELETE", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { required: true, type: "integer" }, - gist_id: { required: true, type: "string" } - }, - url: "/gists/:gist_id/comments/:comment_id" - }, - fork: { - method: "POST", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id/forks" - }, - get: { - method: "GET", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id" - }, - getComment: { - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - gist_id: { required: true, type: "string" } - }, - url: "/gists/:gist_id/comments/:comment_id" - }, - getRevision: { - method: "GET", - params: { - gist_id: { required: true, type: "string" }, - sha: { required: true, type: "string" } - }, - url: "/gists/:gist_id/:sha" - }, - list: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" } - }, - url: "/gists" - }, - listComments: { - method: "GET", - params: { - gist_id: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/gists/:gist_id/comments" - }, - listCommits: { - method: "GET", - params: { - gist_id: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/gists/:gist_id/commits" - }, - listForks: { - method: "GET", - params: { - gist_id: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/gists/:gist_id/forks" - }, - listPublic: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" } - }, - url: "/gists/public" - }, - listPublicForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/gists" - }, - listStarred: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" } - }, - url: "/gists/starred" - }, - star: { - method: "PUT", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id/star" - }, - unstar: { - method: "DELETE", - params: { gist_id: { required: true, type: "string" } }, - url: "/gists/:gist_id/star" - }, - update: { - method: "PATCH", - params: { - description: { type: "string" }, - files: { type: "object" }, - "files.content": { type: "string" }, - "files.filename": { type: "string" }, - gist_id: { required: true, type: "string" } - }, - url: "/gists/:gist_id" - }, - updateComment: { - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_id: { required: true, type: "integer" }, - gist_id: { required: true, type: "string" } - }, - url: "/gists/:gist_id/comments/:comment_id" - } + checkIsStarred: ["GET /gists/{gist_id}/star"], + create: ["POST /gists"], + createComment: ["POST /gists/{gist_id}/comments"], + delete: ["DELETE /gists/{gist_id}"], + deleteComment: ["DELETE /gists/{gist_id}/comments/{comment_id}"], + fork: ["POST /gists/{gist_id}/forks"], + get: ["GET /gists/{gist_id}"], + getComment: ["GET /gists/{gist_id}/comments/{comment_id}"], + getRevision: ["GET /gists/{gist_id}/{sha}"], + list: ["GET /gists"], + listComments: ["GET /gists/{gist_id}/comments"], + listCommits: ["GET /gists/{gist_id}/commits"], + listForUser: ["GET /users/{username}/gists"], + listForks: ["GET /gists/{gist_id}/forks"], + listPublic: ["GET /gists/public"], + listStarred: ["GET /gists/starred"], + star: ["PUT /gists/{gist_id}/star"], + unstar: ["DELETE /gists/{gist_id}/star"], + update: ["PATCH /gists/{gist_id}"], + updateComment: ["PATCH /gists/{gist_id}/comments/{comment_id}"], }, git: { - createBlob: { - method: "POST", - params: { - content: { required: true, type: "string" }, - encoding: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/blobs" - }, - createCommit: { - method: "POST", - params: { - author: { type: "object" }, - "author.date": { type: "string" }, - "author.email": { type: "string" }, - "author.name": { type: "string" }, - committer: { type: "object" }, - "committer.date": { type: "string" }, - "committer.email": { type: "string" }, - "committer.name": { type: "string" }, - message: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - parents: { required: true, type: "string[]" }, - repo: { required: true, type: "string" }, - signature: { type: "string" }, - tree: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/commits" - }, - createRef: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/refs" - }, - createTag: { - method: "POST", - params: { - message: { required: true, type: "string" }, - object: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - tag: { required: true, type: "string" }, - tagger: { type: "object" }, - "tagger.date": { type: "string" }, - "tagger.email": { type: "string" }, - "tagger.name": { type: "string" }, - type: { - enum: ["commit", "tree", "blob"], - required: true, - type: "string" - } - }, - url: "/repos/:owner/:repo/git/tags" - }, - createTree: { - method: "POST", - params: { - base_tree: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - tree: { required: true, type: "object[]" }, - "tree[].content": { type: "string" }, - "tree[].mode": { - enum: ["100644", "100755", "040000", "160000", "120000"], - type: "string" - }, - "tree[].path": { type: "string" }, - "tree[].sha": { allowNull: true, type: "string" }, - "tree[].type": { enum: ["blob", "tree", "commit"], type: "string" } - }, - url: "/repos/:owner/:repo/git/trees" - }, - deleteRef: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/refs/:ref" - }, - getBlob: { - method: "GET", - params: { - file_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/blobs/:file_sha" - }, - getCommit: { - method: "GET", - params: { - commit_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/commits/:commit_sha" - }, - getRef: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/ref/:ref" - }, - getTag: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - tag_sha: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/tags/:tag_sha" - }, - getTree: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - recursive: { enum: ["1"], type: "integer" }, - repo: { required: true, type: "string" }, - tree_sha: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/trees/:tree_sha" - }, - listMatchingRefs: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/matching-refs/:ref" - }, - listRefs: { - method: "GET", - params: { - namespace: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/refs/:namespace" - }, - updateRef: { - method: "PATCH", - params: { - force: { type: "boolean" }, - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/git/refs/:ref" - } + createBlob: ["POST /repos/{owner}/{repo}/git/blobs"], + createCommit: ["POST /repos/{owner}/{repo}/git/commits"], + createRef: ["POST /repos/{owner}/{repo}/git/refs"], + createTag: ["POST /repos/{owner}/{repo}/git/tags"], + createTree: ["POST /repos/{owner}/{repo}/git/trees"], + deleteRef: ["DELETE /repos/{owner}/{repo}/git/refs/{ref}"], + getBlob: ["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"], + getCommit: ["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"], + getRef: ["GET /repos/{owner}/{repo}/git/ref/{ref}"], + getTag: ["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"], + getTree: ["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"], + listMatchingRefs: ["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"], + updateRef: ["PATCH /repos/{owner}/{repo}/git/refs/{ref}"], }, gitignore: { - getTemplate: { - method: "GET", - params: { name: { required: true, type: "string" } }, - url: "/gitignore/templates/:name" - }, - listTemplates: { method: "GET", params: {}, url: "/gitignore/templates" } + getAllTemplates: ["GET /gitignore/templates"], + getTemplate: ["GET /gitignore/templates/{name}"], }, interactions: { - addOrUpdateRestrictionsForOrg: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "PUT", - params: { - limit: { - enum: ["existing_users", "contributors_only", "collaborators_only"], - required: true, - type: "string" - }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/interaction-limits" - }, - addOrUpdateRestrictionsForRepo: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "PUT", - params: { - limit: { - enum: ["existing_users", "contributors_only", "collaborators_only"], - required: true, - type: "string" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/interaction-limits" - }, - getRestrictionsForOrg: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org/interaction-limits" - }, - getRestrictionsForRepo: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/interaction-limits" - }, - removeRestrictionsForOrg: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "DELETE", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org/interaction-limits" - }, - removeRestrictionsForRepo: { - headers: { accept: "application/vnd.github.sombra-preview+json" }, - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/interaction-limits" - } + getRestrictionsForOrg: ["GET /orgs/{org}/interaction-limits"], + getRestrictionsForRepo: ["GET /repos/{owner}/{repo}/interaction-limits"], + getRestrictionsForYourPublicRepos: ["GET /user/interaction-limits"], + removeRestrictionsForOrg: ["DELETE /orgs/{org}/interaction-limits"], + removeRestrictionsForRepo: [ + "DELETE /repos/{owner}/{repo}/interaction-limits", + ], + removeRestrictionsForYourPublicRepos: ["DELETE /user/interaction-limits"], + setRestrictionsForOrg: ["PUT /orgs/{org}/interaction-limits"], + setRestrictionsForRepo: ["PUT /repos/{owner}/{repo}/interaction-limits"], + setRestrictionsForYourPublicRepos: ["PUT /user/interaction-limits"], }, issues: { - addAssignees: { - method: "POST", - params: { - assignees: { type: "string[]" }, - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/assignees" - }, - addLabels: { - method: "POST", - params: { - issue_number: { required: true, type: "integer" }, - labels: { required: true, type: "string[]" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - checkAssignee: { - method: "GET", - params: { - assignee: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/assignees/:assignee" - }, - create: { - method: "POST", - params: { - assignee: { type: "string" }, - assignees: { type: "string[]" }, - body: { type: "string" }, - labels: { type: "string[]" }, - milestone: { type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - title: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues" - }, - createComment: { - method: "POST", - params: { - body: { required: true, type: "string" }, - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/comments" - }, - createLabel: { - method: "POST", - params: { - color: { required: true, type: "string" }, - description: { type: "string" }, - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/labels" - }, - createMilestone: { - method: "POST", - params: { - description: { type: "string" }, - due_on: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - state: { enum: ["open", "closed"], type: "string" }, - title: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/milestones" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - deleteLabel: { - method: "DELETE", - params: { - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/labels/:name" - }, - deleteMilestone: { - method: "DELETE", - params: { - milestone_number: { required: true, type: "integer" }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - }, - get: { - method: "GET", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number" - }, - getComment: { - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - getEvent: { - method: "GET", - params: { - event_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/events/:event_id" - }, - getLabel: { - method: "GET", - params: { - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/labels/:name" - }, - getMilestone: { - method: "GET", - params: { - milestone_number: { required: true, type: "integer" }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - }, - list: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" }, - sort: { enum: ["created", "updated", "comments"], type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/issues" - }, - listAssignees: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/assignees" - }, - listComments: { - method: "GET", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - since: { type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/comments" - }, - listCommentsForRepo: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - since: { type: "string" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments" - }, - listEvents: { - method: "GET", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/events" - }, - listEventsForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/events" - }, - listEventsForTimeline: { - headers: { accept: "application/vnd.github.mockingbird-preview+json" }, - method: "GET", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/timeline" - }, - listForAuthenticatedUser: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" }, - sort: { enum: ["created", "updated", "comments"], type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/user/issues" - }, - listForOrg: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - filter: { - enum: ["assigned", "created", "mentioned", "subscribed", "all"], - type: "string" - }, - labels: { type: "string" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" }, - sort: { enum: ["created", "updated", "comments"], type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/orgs/:org/issues" - }, - listForRepo: { - method: "GET", - params: { - assignee: { type: "string" }, - creator: { type: "string" }, - direction: { enum: ["asc", "desc"], type: "string" }, - labels: { type: "string" }, - mentioned: { type: "string" }, - milestone: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - since: { type: "string" }, - sort: { enum: ["created", "updated", "comments"], type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/repos/:owner/:repo/issues" - }, - listLabelsForMilestone: { - method: "GET", - params: { - milestone_number: { required: true, type: "integer" }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number/labels" - }, - listLabelsForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/labels" - }, - listLabelsOnIssue: { - method: "GET", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - listMilestonesForRepo: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - sort: { enum: ["due_on", "completeness"], type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/repos/:owner/:repo/milestones" - }, - lock: { - method: "PUT", - params: { - issue_number: { required: true, type: "integer" }, - lock_reason: { - enum: ["off-topic", "too heated", "resolved", "spam"], - type: "string" - }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/lock" - }, - removeAssignees: { - method: "DELETE", - params: { - assignees: { type: "string[]" }, - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/assignees" - }, - removeLabel: { - method: "DELETE", - params: { - issue_number: { required: true, type: "integer" }, - name: { required: true, type: "string" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels/:name" - }, - removeLabels: { - method: "DELETE", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - replaceLabels: { - method: "PUT", - params: { - issue_number: { required: true, type: "integer" }, - labels: { type: "string[]" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/labels" - }, - unlock: { - method: "DELETE", - params: { - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/lock" - }, - update: { - method: "PATCH", - params: { - assignee: { type: "string" }, - assignees: { type: "string[]" }, - body: { type: "string" }, - issue_number: { required: true, type: "integer" }, - labels: { type: "string[]" }, - milestone: { allowNull: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - state: { enum: ["open", "closed"], type: "string" }, - title: { type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number" - }, - updateComment: { - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id" - }, - updateLabel: { - method: "PATCH", - params: { - color: { type: "string" }, - current_name: { required: true, type: "string" }, - description: { type: "string" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/labels/:current_name" - }, - updateMilestone: { - method: "PATCH", - params: { - description: { type: "string" }, - due_on: { type: "string" }, - milestone_number: { required: true, type: "integer" }, - number: { - alias: "milestone_number", - deprecated: true, - type: "integer" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - state: { enum: ["open", "closed"], type: "string" }, - title: { type: "string" } - }, - url: "/repos/:owner/:repo/milestones/:milestone_number" - } + addAssignees: [ + "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees", + ], + addLabels: ["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"], + checkUserCanBeAssigned: ["GET /repos/{owner}/{repo}/assignees/{assignee}"], + create: ["POST /repos/{owner}/{repo}/issues"], + createComment: [ + "POST /repos/{owner}/{repo}/issues/{issue_number}/comments", + ], + createLabel: ["POST /repos/{owner}/{repo}/labels"], + createMilestone: ["POST /repos/{owner}/{repo}/milestones"], + deleteComment: [ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}", + ], + deleteLabel: ["DELETE /repos/{owner}/{repo}/labels/{name}"], + deleteMilestone: [ + "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}", + ], + get: ["GET /repos/{owner}/{repo}/issues/{issue_number}"], + getComment: ["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"], + getEvent: ["GET /repos/{owner}/{repo}/issues/events/{event_id}"], + getLabel: ["GET /repos/{owner}/{repo}/labels/{name}"], + getMilestone: ["GET /repos/{owner}/{repo}/milestones/{milestone_number}"], + list: ["GET /issues"], + listAssignees: ["GET /repos/{owner}/{repo}/assignees"], + listComments: ["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"], + listCommentsForRepo: ["GET /repos/{owner}/{repo}/issues/comments"], + listEvents: ["GET /repos/{owner}/{repo}/issues/{issue_number}/events"], + listEventsForRepo: ["GET /repos/{owner}/{repo}/issues/events"], + listEventsForTimeline: [ + "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline", + { mediaType: { previews: ["mockingbird"] } }, + ], + listForAuthenticatedUser: ["GET /user/issues"], + listForOrg: ["GET /orgs/{org}/issues"], + listForRepo: ["GET /repos/{owner}/{repo}/issues"], + listLabelsForMilestone: [ + "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels", + ], + listLabelsForRepo: ["GET /repos/{owner}/{repo}/labels"], + listLabelsOnIssue: [ + "GET /repos/{owner}/{repo}/issues/{issue_number}/labels", + ], + listMilestones: ["GET /repos/{owner}/{repo}/milestones"], + lock: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"], + removeAllLabels: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels", + ], + removeAssignees: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees", + ], + removeLabel: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}", + ], + setLabels: ["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"], + unlock: ["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"], + update: ["PATCH /repos/{owner}/{repo}/issues/{issue_number}"], + updateComment: ["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"], + updateLabel: ["PATCH /repos/{owner}/{repo}/labels/{name}"], + updateMilestone: [ + "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}", + ], }, licenses: { - get: { - method: "GET", - params: { license: { required: true, type: "string" } }, - url: "/licenses/:license" - }, - getForRepo: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/license" - }, - list: { - deprecated: "octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)", - method: "GET", - params: {}, - url: "/licenses" - }, - listCommonlyUsed: { method: "GET", params: {}, url: "/licenses" } + get: ["GET /licenses/{license}"], + getAllCommonlyUsed: ["GET /licenses"], + getForRepo: ["GET /repos/{owner}/{repo}/license"], }, markdown: { - render: { - method: "POST", - params: { - context: { type: "string" }, - mode: { enum: ["markdown", "gfm"], type: "string" }, - text: { required: true, type: "string" } - }, - url: "/markdown" - }, - renderRaw: { - headers: { "content-type": "text/plain; charset=utf-8" }, - method: "POST", - params: { data: { mapTo: "data", required: true, type: "string" } }, - url: "/markdown/raw" - } + render: ["POST /markdown"], + renderRaw: [ + "POST /markdown/raw", + { headers: { "content-type": "text/plain; charset=utf-8" } }, + ], }, - meta: { get: { method: "GET", params: {}, url: "/meta" } }, - migrations: { - cancelImport: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/import" - }, - deleteArchiveForAuthenticatedUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "DELETE", - params: { migration_id: { required: true, type: "integer" } }, - url: "/user/migrations/:migration_id/archive" - }, - deleteArchiveForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "DELETE", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - downloadArchiveForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - getArchiveForAuthenticatedUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { migration_id: { required: true, type: "integer" } }, - url: "/user/migrations/:migration_id/archive" - }, - getArchiveForOrg: { - deprecated: "octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)", - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/migrations/:migration_id/archive" - }, - getCommitAuthors: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - since: { type: "string" } - }, - url: "/repos/:owner/:repo/import/authors" - }, - getImportProgress: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/import" - }, - getLargeFiles: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/import/large_files" - }, - getStatusForAuthenticatedUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { migration_id: { required: true, type: "integer" } }, - url: "/user/migrations/:migration_id" - }, - getStatusForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/migrations/:migration_id" - }, - listForAuthenticatedUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/migrations" - }, - listForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/migrations" - }, - listReposForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/migrations/:migration_id/repositories" - }, - listReposForUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "GET", - params: { - migration_id: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/user/:migration_id/repositories" - }, - mapCommitAuthor: { - method: "PATCH", - params: { - author_id: { required: true, type: "integer" }, - email: { type: "string" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/import/authors/:author_id" - }, - setLfsPreference: { - method: "PATCH", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - use_lfs: { enum: ["opt_in", "opt_out"], required: true, type: "string" } - }, - url: "/repos/:owner/:repo/import/lfs" - }, - startForAuthenticatedUser: { - method: "POST", - params: { - exclude_attachments: { type: "boolean" }, - lock_repositories: { type: "boolean" }, - repositories: { required: true, type: "string[]" } - }, - url: "/user/migrations" - }, - startForOrg: { - method: "POST", - params: { - exclude_attachments: { type: "boolean" }, - lock_repositories: { type: "boolean" }, - org: { required: true, type: "string" }, - repositories: { required: true, type: "string[]" } - }, - url: "/orgs/:org/migrations" - }, - startImport: { - method: "PUT", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - tfvc_project: { type: "string" }, - vcs: { - enum: ["subversion", "git", "mercurial", "tfvc"], - type: "string" - }, - vcs_password: { type: "string" }, - vcs_url: { required: true, type: "string" }, - vcs_username: { type: "string" } - }, - url: "/repos/:owner/:repo/import" - }, - unlockRepoForAuthenticatedUser: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "DELETE", - params: { - migration_id: { required: true, type: "integer" }, - repo_name: { required: true, type: "string" } - }, - url: "/user/migrations/:migration_id/repos/:repo_name/lock" - }, - unlockRepoForOrg: { - headers: { accept: "application/vnd.github.wyandotte-preview+json" }, - method: "DELETE", - params: { - migration_id: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - repo_name: { required: true, type: "string" } - }, - url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock" - }, - updateImport: { - method: "PATCH", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - vcs_password: { type: "string" }, - vcs_username: { type: "string" } - }, - url: "/repos/:owner/:repo/import" - } + meta: { + get: ["GET /meta"], + getOctocat: ["GET /octocat"], + getZen: ["GET /zen"], + root: ["GET /"], }, - oauthAuthorizations: { - checkAuthorization: { - deprecated: "octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)", - method: "GET", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - createAuthorization: { - deprecated: "octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization", - method: "POST", - params: { - client_id: { type: "string" }, - client_secret: { type: "string" }, - fingerprint: { type: "string" }, - note: { required: true, type: "string" }, - note_url: { type: "string" }, - scopes: { type: "string[]" } - }, - url: "/authorizations" - }, - deleteAuthorization: { - deprecated: "octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization", - method: "DELETE", - params: { authorization_id: { required: true, type: "integer" } }, - url: "/authorizations/:authorization_id" - }, - deleteGrant: { - deprecated: "octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant", - method: "DELETE", - params: { grant_id: { required: true, type: "integer" } }, - url: "/applications/grants/:grant_id" - }, - getAuthorization: { - deprecated: "octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization", - method: "GET", - params: { authorization_id: { required: true, type: "integer" } }, - url: "/authorizations/:authorization_id" - }, - getGrant: { - deprecated: "octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant", - method: "GET", - params: { grant_id: { required: true, type: "integer" } }, - url: "/applications/grants/:grant_id" - }, - getOrCreateAuthorizationForApp: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app", - method: "PUT", - params: { - client_id: { required: true, type: "string" }, - client_secret: { required: true, type: "string" }, - fingerprint: { type: "string" }, - note: { type: "string" }, - note_url: { type: "string" }, - scopes: { type: "string[]" } - }, - url: "/authorizations/clients/:client_id" - }, - getOrCreateAuthorizationForAppAndFingerprint: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint", - method: "PUT", - params: { - client_id: { required: true, type: "string" }, - client_secret: { required: true, type: "string" }, - fingerprint: { required: true, type: "string" }, - note: { type: "string" }, - note_url: { type: "string" }, - scopes: { type: "string[]" } - }, - url: "/authorizations/clients/:client_id/:fingerprint" - }, - getOrCreateAuthorizationForAppFingerprint: { - deprecated: "octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)", - method: "PUT", - params: { - client_id: { required: true, type: "string" }, - client_secret: { required: true, type: "string" }, - fingerprint: { required: true, type: "string" }, - note: { type: "string" }, - note_url: { type: "string" }, - scopes: { type: "string[]" } - }, - url: "/authorizations/clients/:client_id/:fingerprint" - }, - listAuthorizations: { - deprecated: "octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations", - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/authorizations" - }, - listGrants: { - deprecated: "octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants", - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/applications/grants" - }, - resetAuthorization: { - deprecated: "octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)", - method: "POST", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeAuthorizationForApplication: { - deprecated: "octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)", - method: "DELETE", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/tokens/:access_token" - }, - revokeGrantForApplication: { - deprecated: "octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)", - method: "DELETE", - params: { - access_token: { required: true, type: "string" }, - client_id: { required: true, type: "string" } - }, - url: "/applications/:client_id/grants/:access_token" - }, - updateAuthorization: { - deprecated: "octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization", - method: "PATCH", - params: { - add_scopes: { type: "string[]" }, - authorization_id: { required: true, type: "integer" }, - fingerprint: { type: "string" }, - note: { type: "string" }, - note_url: { type: "string" }, - remove_scopes: { type: "string[]" }, - scopes: { type: "string[]" } - }, - url: "/authorizations/:authorization_id" - } + migrations: { + cancelImport: ["DELETE /repos/{owner}/{repo}/import"], + deleteArchiveForAuthenticatedUser: [ + "DELETE /user/migrations/{migration_id}/archive", + { mediaType: { previews: ["wyandotte"] } }, + ], + deleteArchiveForOrg: [ + "DELETE /orgs/{org}/migrations/{migration_id}/archive", + { mediaType: { previews: ["wyandotte"] } }, + ], + downloadArchiveForOrg: [ + "GET /orgs/{org}/migrations/{migration_id}/archive", + { mediaType: { previews: ["wyandotte"] } }, + ], + getArchiveForAuthenticatedUser: [ + "GET /user/migrations/{migration_id}/archive", + { mediaType: { previews: ["wyandotte"] } }, + ], + getCommitAuthors: ["GET /repos/{owner}/{repo}/import/authors"], + getImportStatus: ["GET /repos/{owner}/{repo}/import"], + getLargeFiles: ["GET /repos/{owner}/{repo}/import/large_files"], + getStatusForAuthenticatedUser: [ + "GET /user/migrations/{migration_id}", + { mediaType: { previews: ["wyandotte"] } }, + ], + getStatusForOrg: [ + "GET /orgs/{org}/migrations/{migration_id}", + { mediaType: { previews: ["wyandotte"] } }, + ], + listForAuthenticatedUser: [ + "GET /user/migrations", + { mediaType: { previews: ["wyandotte"] } }, + ], + listForOrg: [ + "GET /orgs/{org}/migrations", + { mediaType: { previews: ["wyandotte"] } }, + ], + listReposForOrg: [ + "GET /orgs/{org}/migrations/{migration_id}/repositories", + { mediaType: { previews: ["wyandotte"] } }, + ], + listReposForUser: [ + "GET /user/migrations/{migration_id}/repositories", + { mediaType: { previews: ["wyandotte"] } }, + ], + mapCommitAuthor: ["PATCH /repos/{owner}/{repo}/import/authors/{author_id}"], + setLfsPreference: ["PATCH /repos/{owner}/{repo}/import/lfs"], + startForAuthenticatedUser: ["POST /user/migrations"], + startForOrg: ["POST /orgs/{org}/migrations"], + startImport: ["PUT /repos/{owner}/{repo}/import"], + unlockRepoForAuthenticatedUser: [ + "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock", + { mediaType: { previews: ["wyandotte"] } }, + ], + unlockRepoForOrg: [ + "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock", + { mediaType: { previews: ["wyandotte"] } }, + ], + updateImport: ["PATCH /repos/{owner}/{repo}/import"], }, orgs: { - addOrUpdateMembership: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - role: { enum: ["admin", "member"], type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/memberships/:username" - }, - blockUser: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/blocks/:username" - }, - checkBlockedUser: { - method: "GET", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/blocks/:username" - }, - checkMembership: { - method: "GET", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/members/:username" - }, - checkPublicMembership: { - method: "GET", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/public_members/:username" - }, - concealMembership: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/public_members/:username" - }, - convertMemberToOutsideCollaborator: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/outside_collaborators/:username" - }, - createHook: { - method: "POST", - params: { - active: { type: "boolean" }, - config: { required: true, type: "object" }, - "config.content_type": { type: "string" }, - "config.insecure_ssl": { type: "string" }, - "config.secret": { type: "string" }, - "config.url": { required: true, type: "string" }, - events: { type: "string[]" }, - name: { required: true, type: "string" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/hooks" - }, - createInvitation: { - method: "POST", - params: { - email: { type: "string" }, - invitee_id: { type: "integer" }, - org: { required: true, type: "string" }, - role: { - enum: ["admin", "direct_member", "billing_manager"], - type: "string" - }, - team_ids: { type: "integer[]" } - }, - url: "/orgs/:org/invitations" - }, - deleteHook: { - method: "DELETE", - params: { - hook_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - get: { - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org" - }, - getHook: { - method: "GET", - params: { - hook_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - getMembership: { - method: "GET", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/memberships/:username" - }, - getMembershipForAuthenticatedUser: { - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/user/memberships/orgs/:org" - }, - list: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "integer" } - }, - url: "/organizations" - }, - listBlockedUsers: { - method: "GET", - params: { org: { required: true, type: "string" } }, - url: "/orgs/:org/blocks" - }, - listForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/orgs" - }, - listForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/orgs" - }, - listHooks: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/hooks" - }, - listInstallations: { - headers: { accept: "application/vnd.github.machine-man-preview+json" }, - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/installations" - }, - listInvitationTeams: { - method: "GET", - params: { - invitation_id: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/invitations/:invitation_id/teams" - }, - listMembers: { - method: "GET", - params: { - filter: { enum: ["2fa_disabled", "all"], type: "string" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - role: { enum: ["all", "admin", "member"], type: "string" } - }, - url: "/orgs/:org/members" - }, - listMemberships: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - state: { enum: ["active", "pending"], type: "string" } - }, - url: "/user/memberships/orgs" - }, - listOutsideCollaborators: { - method: "GET", - params: { - filter: { enum: ["2fa_disabled", "all"], type: "string" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/outside_collaborators" - }, - listPendingInvitations: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/invitations" - }, - listPublicMembers: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/public_members" - }, - pingHook: { - method: "POST", - params: { - hook_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/hooks/:hook_id/pings" - }, - publicizeMembership: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/public_members/:username" - }, - removeMember: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/members/:username" - }, - removeMembership: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/memberships/:username" - }, - removeOutsideCollaborator: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/outside_collaborators/:username" - }, - unblockUser: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/blocks/:username" - }, - update: { - method: "PATCH", - params: { - billing_email: { type: "string" }, - company: { type: "string" }, - default_repository_permission: { - enum: ["read", "write", "admin", "none"], - type: "string" - }, - description: { type: "string" }, - email: { type: "string" }, - has_organization_projects: { type: "boolean" }, - has_repository_projects: { type: "boolean" }, - location: { type: "string" }, - members_allowed_repository_creation_type: { - enum: ["all", "private", "none"], - type: "string" - }, - members_can_create_internal_repositories: { type: "boolean" }, - members_can_create_private_repositories: { type: "boolean" }, - members_can_create_public_repositories: { type: "boolean" }, - members_can_create_repositories: { type: "boolean" }, - name: { type: "string" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org" - }, - updateHook: { - method: "PATCH", - params: { - active: { type: "boolean" }, - config: { type: "object" }, - "config.content_type": { type: "string" }, - "config.insecure_ssl": { type: "string" }, - "config.secret": { type: "string" }, - "config.url": { required: true, type: "string" }, - events: { type: "string[]" }, - hook_id: { required: true, type: "integer" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/hooks/:hook_id" - }, - updateMembership: { - method: "PATCH", - params: { - org: { required: true, type: "string" }, - state: { enum: ["active"], required: true, type: "string" } - }, - url: "/user/memberships/orgs/:org" - } + blockUser: ["PUT /orgs/{org}/blocks/{username}"], + checkBlockedUser: ["GET /orgs/{org}/blocks/{username}"], + checkMembershipForUser: ["GET /orgs/{org}/members/{username}"], + checkPublicMembershipForUser: ["GET /orgs/{org}/public_members/{username}"], + convertMemberToOutsideCollaborator: [ + "PUT /orgs/{org}/outside_collaborators/{username}", + ], + createInvitation: ["POST /orgs/{org}/invitations"], + createWebhook: ["POST /orgs/{org}/hooks"], + deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"], + get: ["GET /orgs/{org}"], + getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"], + getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"], + getWebhook: ["GET /orgs/{org}/hooks/{hook_id}"], + getWebhookConfigForOrg: ["GET /orgs/{org}/hooks/{hook_id}/config"], + list: ["GET /organizations"], + listAppInstallations: ["GET /orgs/{org}/installations"], + listBlockedUsers: ["GET /orgs/{org}/blocks"], + listForAuthenticatedUser: ["GET /user/orgs"], + listForUser: ["GET /users/{username}/orgs"], + listInvitationTeams: ["GET /orgs/{org}/invitations/{invitation_id}/teams"], + listMembers: ["GET /orgs/{org}/members"], + listMembershipsForAuthenticatedUser: ["GET /user/memberships/orgs"], + listOutsideCollaborators: ["GET /orgs/{org}/outside_collaborators"], + listPendingInvitations: ["GET /orgs/{org}/invitations"], + listPublicMembers: ["GET /orgs/{org}/public_members"], + listWebhooks: ["GET /orgs/{org}/hooks"], + pingWebhook: ["POST /orgs/{org}/hooks/{hook_id}/pings"], + removeMember: ["DELETE /orgs/{org}/members/{username}"], + removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"], + removeOutsideCollaborator: [ + "DELETE /orgs/{org}/outside_collaborators/{username}", + ], + removePublicMembershipForAuthenticatedUser: [ + "DELETE /orgs/{org}/public_members/{username}", + ], + setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"], + setPublicMembershipForAuthenticatedUser: [ + "PUT /orgs/{org}/public_members/{username}", + ], + unblockUser: ["DELETE /orgs/{org}/blocks/{username}"], + update: ["PATCH /orgs/{org}"], + updateMembershipForAuthenticatedUser: [ + "PATCH /user/memberships/orgs/{org}", + ], + updateWebhook: ["PATCH /orgs/{org}/hooks/{hook_id}"], + updateWebhookConfigForOrg: ["PATCH /orgs/{org}/hooks/{hook_id}/config"], }, projects: { - addCollaborator: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PUT", - params: { - permission: { enum: ["read", "write", "admin"], type: "string" }, - project_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/projects/:project_id/collaborators/:username" - }, - createCard: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - column_id: { required: true, type: "integer" }, - content_id: { type: "integer" }, - content_type: { type: "string" }, - note: { type: "string" } - }, - url: "/projects/columns/:column_id/cards" - }, - createColumn: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - name: { required: true, type: "string" }, - project_id: { required: true, type: "integer" } - }, - url: "/projects/:project_id/columns" - }, - createForAuthenticatedUser: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - body: { type: "string" }, - name: { required: true, type: "string" } - }, - url: "/user/projects" - }, - createForOrg: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - body: { type: "string" }, - name: { required: true, type: "string" }, - org: { required: true, type: "string" } - }, - url: "/orgs/:org/projects" - }, - createForRepo: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - body: { type: "string" }, - name: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/projects" - }, - delete: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "DELETE", - params: { project_id: { required: true, type: "integer" } }, - url: "/projects/:project_id" - }, - deleteCard: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "DELETE", - params: { card_id: { required: true, type: "integer" } }, - url: "/projects/columns/cards/:card_id" - }, - deleteColumn: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "DELETE", - params: { column_id: { required: true, type: "integer" } }, - url: "/projects/columns/:column_id" - }, - get: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { project_id: { required: true, type: "integer" } }, - url: "/projects/:project_id" - }, - getCard: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { card_id: { required: true, type: "integer" } }, - url: "/projects/columns/cards/:card_id" - }, - getColumn: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { column_id: { required: true, type: "integer" } }, - url: "/projects/columns/:column_id" - }, - listCards: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - archived_state: { - enum: ["all", "archived", "not_archived"], - type: "string" - }, - column_id: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/projects/columns/:column_id/cards" - }, - listCollaborators: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - affiliation: { enum: ["outside", "direct", "all"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - project_id: { required: true, type: "integer" } - }, - url: "/projects/:project_id/collaborators" - }, - listColumns: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - project_id: { required: true, type: "integer" } - }, - url: "/projects/:project_id/columns" - }, - listForOrg: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/orgs/:org/projects" - }, - listForRepo: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/repos/:owner/:repo/projects" - }, - listForUser: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - state: { enum: ["open", "closed", "all"], type: "string" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/projects" - }, - moveCard: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - card_id: { required: true, type: "integer" }, - column_id: { type: "integer" }, - position: { - required: true, - type: "string", - validation: "^(top|bottom|after:\\d+)$" - } - }, - url: "/projects/columns/cards/:card_id/moves" - }, - moveColumn: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "POST", - params: { - column_id: { required: true, type: "integer" }, - position: { - required: true, - type: "string", - validation: "^(first|last|after:\\d+)$" - } - }, - url: "/projects/columns/:column_id/moves" - }, - removeCollaborator: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "DELETE", - params: { - project_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/projects/:project_id/collaborators/:username" - }, - reviewUserPermissionLevel: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - project_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/projects/:project_id/collaborators/:username/permission" - }, - update: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PATCH", - params: { - body: { type: "string" }, - name: { type: "string" }, - organization_permission: { type: "string" }, - private: { type: "boolean" }, - project_id: { required: true, type: "integer" }, - state: { enum: ["open", "closed"], type: "string" } - }, - url: "/projects/:project_id" - }, - updateCard: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PATCH", - params: { - archived: { type: "boolean" }, - card_id: { required: true, type: "integer" }, - note: { type: "string" } - }, - url: "/projects/columns/cards/:card_id" - }, - updateColumn: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PATCH", - params: { - column_id: { required: true, type: "integer" }, - name: { required: true, type: "string" } - }, - url: "/projects/columns/:column_id" - } + addCollaborator: [ + "PUT /projects/{project_id}/collaborators/{username}", + { mediaType: { previews: ["inertia"] } }, + ], + createCard: [ + "POST /projects/columns/{column_id}/cards", + { mediaType: { previews: ["inertia"] } }, + ], + createColumn: [ + "POST /projects/{project_id}/columns", + { mediaType: { previews: ["inertia"] } }, + ], + createForAuthenticatedUser: [ + "POST /user/projects", + { mediaType: { previews: ["inertia"] } }, + ], + createForOrg: [ + "POST /orgs/{org}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + createForRepo: [ + "POST /repos/{owner}/{repo}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + delete: [ + "DELETE /projects/{project_id}", + { mediaType: { previews: ["inertia"] } }, + ], + deleteCard: [ + "DELETE /projects/columns/cards/{card_id}", + { mediaType: { previews: ["inertia"] } }, + ], + deleteColumn: [ + "DELETE /projects/columns/{column_id}", + { mediaType: { previews: ["inertia"] } }, + ], + get: [ + "GET /projects/{project_id}", + { mediaType: { previews: ["inertia"] } }, + ], + getCard: [ + "GET /projects/columns/cards/{card_id}", + { mediaType: { previews: ["inertia"] } }, + ], + getColumn: [ + "GET /projects/columns/{column_id}", + { mediaType: { previews: ["inertia"] } }, + ], + getPermissionForUser: [ + "GET /projects/{project_id}/collaborators/{username}/permission", + { mediaType: { previews: ["inertia"] } }, + ], + listCards: [ + "GET /projects/columns/{column_id}/cards", + { mediaType: { previews: ["inertia"] } }, + ], + listCollaborators: [ + "GET /projects/{project_id}/collaborators", + { mediaType: { previews: ["inertia"] } }, + ], + listColumns: [ + "GET /projects/{project_id}/columns", + { mediaType: { previews: ["inertia"] } }, + ], + listForOrg: [ + "GET /orgs/{org}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + listForRepo: [ + "GET /repos/{owner}/{repo}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + listForUser: [ + "GET /users/{username}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + moveCard: [ + "POST /projects/columns/cards/{card_id}/moves", + { mediaType: { previews: ["inertia"] } }, + ], + moveColumn: [ + "POST /projects/columns/{column_id}/moves", + { mediaType: { previews: ["inertia"] } }, + ], + removeCollaborator: [ + "DELETE /projects/{project_id}/collaborators/{username}", + { mediaType: { previews: ["inertia"] } }, + ], + update: [ + "PATCH /projects/{project_id}", + { mediaType: { previews: ["inertia"] } }, + ], + updateCard: [ + "PATCH /projects/columns/cards/{card_id}", + { mediaType: { previews: ["inertia"] } }, + ], + updateColumn: [ + "PATCH /projects/columns/{column_id}", + { mediaType: { previews: ["inertia"] } }, + ], }, pulls: { - checkIfMerged: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/merge" - }, - create: { - method: "POST", - params: { - base: { required: true, type: "string" }, - body: { type: "string" }, - draft: { type: "boolean" }, - head: { required: true, type: "string" }, - maintainer_can_modify: { type: "boolean" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - title: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls" - }, - createComment: { - method: "POST", - params: { - body: { required: true, type: "string" }, - commit_id: { required: true, type: "string" }, - in_reply_to: { - deprecated: true, - description: "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.", - type: "integer" - }, - line: { type: "integer" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - position: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - side: { enum: ["LEFT", "RIGHT"], type: "string" }, - start_line: { type: "integer" }, - start_side: { enum: ["LEFT", "RIGHT", "side"], type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - createCommentReply: { - deprecated: "octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)", - method: "POST", - params: { - body: { required: true, type: "string" }, - commit_id: { required: true, type: "string" }, - in_reply_to: { - deprecated: true, - description: "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.", - type: "integer" - }, - line: { type: "integer" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - position: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - side: { enum: ["LEFT", "RIGHT"], type: "string" }, - start_line: { type: "integer" }, - start_side: { enum: ["LEFT", "RIGHT", "side"], type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - createFromIssue: { - deprecated: "octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request", - method: "POST", - params: { - base: { required: true, type: "string" }, - draft: { type: "boolean" }, - head: { required: true, type: "string" }, - issue: { required: true, type: "integer" }, - maintainer_can_modify: { type: "boolean" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls" - }, - createReview: { - method: "POST", - params: { - body: { type: "string" }, - comments: { type: "object[]" }, - "comments[].body": { required: true, type: "string" }, - "comments[].path": { required: true, type: "string" }, - "comments[].position": { required: true, type: "integer" }, - commit_id: { type: "string" }, - event: { - enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"], - type: "string" - }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews" - }, - createReviewCommentReply: { - method: "POST", - params: { - body: { required: true, type: "string" }, - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies" - }, - createReviewRequest: { - method: "POST", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - reviewers: { type: "string[]" }, - team_reviewers: { type: "string[]" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - deleteComment: { - method: "DELETE", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - deletePendingReview: { - method: "DELETE", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - }, - deleteReviewRequest: { - method: "DELETE", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - reviewers: { type: "string[]" }, - team_reviewers: { type: "string[]" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - dismissReview: { - method: "PUT", - params: { - message: { required: true, type: "string" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals" - }, - get: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number" - }, - getComment: { - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - getCommentsForReview: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments" - }, - getReview: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - }, - list: { - method: "GET", - params: { - base: { type: "string" }, - direction: { enum: ["asc", "desc"], type: "string" }, - head: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - sort: { - enum: ["created", "updated", "popularity", "long-running"], - type: "string" - }, - state: { enum: ["open", "closed", "all"], type: "string" } - }, - url: "/repos/:owner/:repo/pulls" - }, - listComments: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - since: { type: "string" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/comments" - }, - listCommentsForRepo: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - since: { type: "string" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments" - }, - listCommits: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/commits" - }, - listFiles: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/files" - }, - listReviewRequests: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers" - }, - listReviews: { - method: "GET", - params: { - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews" - }, - merge: { - method: "PUT", - params: { - commit_message: { type: "string" }, - commit_title: { type: "string" }, - merge_method: { enum: ["merge", "squash", "rebase"], type: "string" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - sha: { type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/merge" - }, - submitReview: { - method: "POST", - params: { - body: { type: "string" }, - event: { - enum: ["APPROVE", "REQUEST_CHANGES", "COMMENT"], - required: true, - type: "string" - }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events" - }, - update: { - method: "PATCH", - params: { - base: { type: "string" }, - body: { type: "string" }, - maintainer_can_modify: { type: "boolean" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - state: { enum: ["open", "closed"], type: "string" }, - title: { type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number" - }, - updateBranch: { - headers: { accept: "application/vnd.github.lydian-preview+json" }, - method: "PUT", - params: { - expected_head_sha: { type: "string" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/update-branch" - }, - updateComment: { - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id" - }, - updateReview: { - method: "PUT", - params: { - body: { required: true, type: "string" }, - number: { alias: "pull_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - pull_number: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - review_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id" - } + checkIfMerged: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"], + create: ["POST /repos/{owner}/{repo}/pulls"], + createReplyForReviewComment: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies", + ], + createReview: ["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"], + createReviewComment: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments", + ], + deletePendingReview: [ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", + ], + deleteReviewComment: [ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}", + ], + dismissReview: [ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals", + ], + get: ["GET /repos/{owner}/{repo}/pulls/{pull_number}"], + getReview: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", + ], + getReviewComment: ["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"], + list: ["GET /repos/{owner}/{repo}/pulls"], + listCommentsForReview: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", + ], + listCommits: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"], + listFiles: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"], + listRequestedReviewers: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", + ], + listReviewComments: [ + "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments", + ], + listReviewCommentsForRepo: ["GET /repos/{owner}/{repo}/pulls/comments"], + listReviews: ["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"], + merge: ["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"], + removeRequestedReviewers: [ + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", + ], + requestReviewers: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", + ], + submitReview: [ + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events", + ], + update: ["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"], + updateBranch: [ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch", + { mediaType: { previews: ["lydian"] } }, + ], + updateReview: [ + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", + ], + updateReviewComment: [ + "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}", + ], }, - rateLimit: { get: { method: "GET", params: {}, url: "/rate_limit" } }, + rateLimit: { get: ["GET /rate_limit"] }, reactions: { - createForCommitComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments/:comment_id/reactions" - }, - createForIssue: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/reactions" - }, - createForIssueComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions" - }, - createForPullRequestReviewComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" - }, - createForTeamDiscussion: { - deprecated: "octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - createForTeamDiscussionComment: { - deprecated: "octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionCommentInOrg: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionCommentLegacy: { - deprecated: "octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - createForTeamDiscussionInOrg: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" - }, - createForTeamDiscussionLegacy: { - deprecated: "octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "POST", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - required: true, - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - delete: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "DELETE", - params: { reaction_id: { required: true, type: "integer" } }, - url: "/reactions/:reaction_id" - }, - listForCommitComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments/:comment_id/reactions" - }, - listForIssue: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - issue_number: { required: true, type: "integer" }, - number: { alias: "issue_number", deprecated: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/:issue_number/reactions" - }, - listForIssueComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions" - }, - listForPullRequestReviewComment: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions" - }, - listForTeamDiscussion: { - deprecated: "octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - }, - listForTeamDiscussionComment: { - deprecated: "octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionCommentInOrg: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionCommentLegacy: { - deprecated: "octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions" - }, - listForTeamDiscussionInOrg: { - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions" - }, - listForTeamDiscussionLegacy: { - deprecated: "octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy", - headers: { accept: "application/vnd.github.squirrel-girl-preview+json" }, - method: "GET", - params: { - content: { - enum: [ - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "rocket", - "eyes" - ], - type: "string" - }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/reactions" - } + createForCommitComment: [ + "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + createForIssue: [ + "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + createForIssueComment: [ + "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + createForPullRequestReviewComment: [ + "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + createForTeamDiscussionCommentInOrg: [ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + createForTeamDiscussionInOrg: [ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForCommitComment: [ + "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForIssue: [ + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForIssueComment: [ + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForPullRequestComment: [ + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForTeamDiscussion: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteForTeamDiscussionComment: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + deleteLegacy: [ + "DELETE /reactions/{reaction_id}", + { mediaType: { previews: ["squirrel-girl"] } }, + { + deprecated: "octokit.reactions.deleteLegacy() is deprecated, see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy", + }, + ], + listForCommitComment: [ + "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + listForIssue: [ + "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + listForIssueComment: [ + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + listForPullRequestReviewComment: [ + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + listForTeamDiscussionCommentInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], + listForTeamDiscussionInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", + { mediaType: { previews: ["squirrel-girl"] } }, + ], }, repos: { - acceptInvitation: { - method: "PATCH", - params: { invitation_id: { required: true, type: "integer" } }, - url: "/user/repository_invitations/:invitation_id" - }, - addCollaborator: { - method: "PUT", - params: { - owner: { required: true, type: "string" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - repo: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - addDeployKey: { - method: "POST", - params: { - key: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - read_only: { type: "boolean" }, - repo: { required: true, type: "string" }, - title: { type: "string" } - }, - url: "/repos/:owner/:repo/keys" - }, - addProtectedBranchAdminEnforcement: { - method: "POST", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - addProtectedBranchAppRestrictions: { - method: "POST", - params: { - apps: { mapTo: "data", required: true, type: "string[]" }, - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - addProtectedBranchRequiredSignatures: { - headers: { accept: "application/vnd.github.zzzax-preview+json" }, - method: "POST", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - addProtectedBranchRequiredStatusChecksContexts: { - method: "POST", - params: { - branch: { required: true, type: "string" }, - contexts: { mapTo: "data", required: true, type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - addProtectedBranchTeamRestrictions: { - method: "POST", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - teams: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - addProtectedBranchUserRestrictions: { - method: "POST", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - users: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - checkCollaborator: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - checkVulnerabilityAlerts: { - headers: { accept: "application/vnd.github.dorian-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - compareCommits: { - method: "GET", - params: { - base: { required: true, type: "string" }, - head: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/compare/:base...:head" - }, - createCommitComment: { - method: "POST", - params: { - body: { required: true, type: "string" }, - commit_sha: { required: true, type: "string" }, - line: { type: "integer" }, - owner: { required: true, type: "string" }, - path: { type: "string" }, - position: { type: "integer" }, - repo: { required: true, type: "string" }, - sha: { alias: "commit_sha", deprecated: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/comments" - }, - createDeployment: { - method: "POST", - params: { - auto_merge: { type: "boolean" }, - description: { type: "string" }, - environment: { type: "string" }, - owner: { required: true, type: "string" }, - payload: { type: "string" }, - production_environment: { type: "boolean" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - required_contexts: { type: "string[]" }, - task: { type: "string" }, - transient_environment: { type: "boolean" } - }, - url: "/repos/:owner/:repo/deployments" - }, - createDeploymentStatus: { - method: "POST", - params: { - auto_inactive: { type: "boolean" }, - deployment_id: { required: true, type: "integer" }, - description: { type: "string" }, - environment: { enum: ["production", "staging", "qa"], type: "string" }, - environment_url: { type: "string" }, - log_url: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - state: { - enum: [ - "error", - "failure", - "inactive", - "in_progress", - "queued", - "pending", - "success" - ], - required: true, - type: "string" - }, - target_url: { type: "string" } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses" - }, - createDispatchEvent: { - method: "POST", - params: { - client_payload: { type: "object" }, - event_type: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/dispatches" - }, - createFile: { - deprecated: "octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)", - method: "PUT", - params: { - author: { type: "object" }, - "author.email": { required: true, type: "string" }, - "author.name": { required: true, type: "string" }, - branch: { type: "string" }, - committer: { type: "object" }, - "committer.email": { required: true, type: "string" }, - "committer.name": { required: true, type: "string" }, - content: { required: true, type: "string" }, - message: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { type: "string" } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - createForAuthenticatedUser: { - method: "POST", - params: { - allow_merge_commit: { type: "boolean" }, - allow_rebase_merge: { type: "boolean" }, - allow_squash_merge: { type: "boolean" }, - auto_init: { type: "boolean" }, - delete_branch_on_merge: { type: "boolean" }, - description: { type: "string" }, - gitignore_template: { type: "string" }, - has_issues: { type: "boolean" }, - has_projects: { type: "boolean" }, - has_wiki: { type: "boolean" }, - homepage: { type: "string" }, - is_template: { type: "boolean" }, - license_template: { type: "string" }, - name: { required: true, type: "string" }, - private: { type: "boolean" }, - team_id: { type: "integer" }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" - } - }, - url: "/user/repos" - }, - createFork: { - method: "POST", - params: { - organization: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/forks" - }, - createHook: { - method: "POST", - params: { - active: { type: "boolean" }, - config: { required: true, type: "object" }, - "config.content_type": { type: "string" }, - "config.insecure_ssl": { type: "string" }, - "config.secret": { type: "string" }, - "config.url": { required: true, type: "string" }, - events: { type: "string[]" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks" - }, - createInOrg: { - method: "POST", - params: { - allow_merge_commit: { type: "boolean" }, - allow_rebase_merge: { type: "boolean" }, - allow_squash_merge: { type: "boolean" }, - auto_init: { type: "boolean" }, - delete_branch_on_merge: { type: "boolean" }, - description: { type: "string" }, - gitignore_template: { type: "string" }, - has_issues: { type: "boolean" }, - has_projects: { type: "boolean" }, - has_wiki: { type: "boolean" }, - homepage: { type: "string" }, - is_template: { type: "boolean" }, - license_template: { type: "string" }, - name: { required: true, type: "string" }, - org: { required: true, type: "string" }, - private: { type: "boolean" }, - team_id: { type: "integer" }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" - } - }, - url: "/orgs/:org/repos" - }, - createOrUpdateFile: { - method: "PUT", - params: { - author: { type: "object" }, - "author.email": { required: true, type: "string" }, - "author.name": { required: true, type: "string" }, - branch: { type: "string" }, - committer: { type: "object" }, - "committer.email": { required: true, type: "string" }, - "committer.name": { required: true, type: "string" }, - content: { required: true, type: "string" }, - message: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { type: "string" } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - createRelease: { - method: "POST", - params: { - body: { type: "string" }, - draft: { type: "boolean" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - prerelease: { type: "boolean" }, - repo: { required: true, type: "string" }, - tag_name: { required: true, type: "string" }, - target_commitish: { type: "string" } - }, - url: "/repos/:owner/:repo/releases" - }, - createStatus: { - method: "POST", - params: { - context: { type: "string" }, - description: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { required: true, type: "string" }, - state: { - enum: ["error", "failure", "pending", "success"], - required: true, - type: "string" - }, - target_url: { type: "string" } - }, - url: "/repos/:owner/:repo/statuses/:sha" - }, - createUsingTemplate: { - headers: { accept: "application/vnd.github.baptiste-preview+json" }, - method: "POST", - params: { - description: { type: "string" }, - name: { required: true, type: "string" }, - owner: { type: "string" }, - private: { type: "boolean" }, - template_owner: { required: true, type: "string" }, - template_repo: { required: true, type: "string" } - }, - url: "/repos/:template_owner/:template_repo/generate" - }, - declineInvitation: { - method: "DELETE", - params: { invitation_id: { required: true, type: "integer" } }, - url: "/user/repository_invitations/:invitation_id" - }, - delete: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo" - }, - deleteCommitComment: { - method: "DELETE", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - deleteDownload: { - method: "DELETE", - params: { - download_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/downloads/:download_id" - }, - deleteFile: { - method: "DELETE", - params: { - author: { type: "object" }, - "author.email": { type: "string" }, - "author.name": { type: "string" }, - branch: { type: "string" }, - committer: { type: "object" }, - "committer.email": { type: "string" }, - "committer.name": { type: "string" }, - message: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - deleteHook: { - method: "DELETE", - params: { - hook_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - deleteInvitation: { - method: "DELETE", - params: { - invitation_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/invitations/:invitation_id" - }, - deleteRelease: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - release_id: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - deleteReleaseAsset: { - method: "DELETE", - params: { - asset_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - disableAutomatedSecurityFixes: { - headers: { accept: "application/vnd.github.london-preview+json" }, - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/automated-security-fixes" - }, - disablePagesSite: { - headers: { accept: "application/vnd.github.switcheroo-preview+json" }, - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages" - }, - disableVulnerabilityAlerts: { - headers: { accept: "application/vnd.github.dorian-preview+json" }, - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - enableAutomatedSecurityFixes: { - headers: { accept: "application/vnd.github.london-preview+json" }, - method: "PUT", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/automated-security-fixes" - }, - enablePagesSite: { - headers: { accept: "application/vnd.github.switcheroo-preview+json" }, - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - source: { type: "object" }, - "source.branch": { enum: ["master", "gh-pages"], type: "string" }, - "source.path": { type: "string" } - }, - url: "/repos/:owner/:repo/pages" - }, - enableVulnerabilityAlerts: { - headers: { accept: "application/vnd.github.dorian-preview+json" }, - method: "PUT", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/vulnerability-alerts" - }, - get: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo" - }, - getAppsWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - getArchiveLink: { - method: "GET", - params: { - archive_format: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/:archive_format/:ref" - }, - getBranch: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch" - }, - getBranchProtection: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - getClones: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - per: { enum: ["day", "week"], type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/traffic/clones" - }, - getCodeFrequencyStats: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stats/code_frequency" - }, - getCollaboratorPermissionLevel: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/collaborators/:username/permission" - }, - getCombinedStatusForRef: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref/status" - }, - getCommit: { - method: "GET", - params: { - commit_sha: { alias: "ref", deprecated: true, type: "string" }, - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { alias: "ref", deprecated: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref" - }, - getCommitActivityStats: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stats/commit_activity" - }, - getCommitComment: { - method: "GET", - params: { - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - getCommitRefSha: { - deprecated: "octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit", - headers: { accept: "application/vnd.github.v3.sha" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref" - }, - getContents: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - ref: { type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - getContributorsStats: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stats/contributors" - }, - getDeployKey: { - method: "GET", - params: { - key_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/keys/:key_id" - }, - getDeployment: { - method: "GET", - params: { - deployment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id" - }, - getDeploymentStatus: { - method: "GET", - params: { - deployment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - status_id: { required: true, type: "integer" } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id" - }, - getDownload: { - method: "GET", - params: { - download_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/downloads/:download_id" - }, - getHook: { - method: "GET", - params: { - hook_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - getLatestPagesBuild: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages/builds/latest" - }, - getLatestRelease: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/latest" - }, - getPages: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages" - }, - getPagesBuild: { - method: "GET", - params: { - build_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages/builds/:build_id" - }, - getParticipationStats: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stats/participation" - }, - getProtectedBranchAdminEnforcement: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - getProtectedBranchPullRequestReviewEnforcement: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - getProtectedBranchRequiredSignatures: { - headers: { accept: "application/vnd.github.zzzax-preview+json" }, - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - getProtectedBranchRequiredStatusChecks: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - getProtectedBranchRestrictions: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - getPunchCardStats: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/stats/punch_card" - }, - getReadme: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - ref: { type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/readme" - }, - getRelease: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - release_id: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - getReleaseAsset: { - method: "GET", - params: { - asset_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - getReleaseByTag: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - tag: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/tags/:tag" - }, - getTeamsWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - getTopPaths: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/traffic/popular/paths" - }, - getTopReferrers: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/traffic/popular/referrers" - }, - getUsersWithAccessToProtectedBranch: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - getViews: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - per: { enum: ["day", "week"], type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/traffic/views" - }, - list: { - method: "GET", - params: { - affiliation: { type: "string" }, - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { - enum: ["all", "owner", "public", "private", "member"], - type: "string" - }, - visibility: { enum: ["all", "public", "private"], type: "string" } - }, - url: "/user/repos" - }, - listAppsWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - listAssetsForRelease: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - release_id: { required: true, type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/:release_id/assets" - }, - listBranches: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - protected: { type: "boolean" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches" - }, - listBranchesForHeadCommit: { - headers: { accept: "application/vnd.github.groot-preview+json" }, - method: "GET", - params: { - commit_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head" - }, - listCollaborators: { - method: "GET", - params: { - affiliation: { enum: ["outside", "direct", "all"], type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/collaborators" - }, - listCommentsForCommit: { - method: "GET", - params: { - commit_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { alias: "commit_sha", deprecated: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/comments" - }, - listCommitComments: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments" - }, - listCommits: { - method: "GET", - params: { - author: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - path: { type: "string" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - sha: { type: "string" }, - since: { type: "string" }, - until: { type: "string" } - }, - url: "/repos/:owner/:repo/commits" - }, - listContributors: { - method: "GET", - params: { - anon: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/contributors" - }, - listDeployKeys: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/keys" - }, - listDeploymentStatuses: { - method: "GET", - params: { - deployment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses" - }, - listDeployments: { - method: "GET", - params: { - environment: { type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { type: "string" }, - repo: { required: true, type: "string" }, - sha: { type: "string" }, - task: { type: "string" } - }, - url: "/repos/:owner/:repo/deployments" - }, - listDownloads: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/downloads" - }, - listForOrg: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { - enum: [ - "all", - "public", - "private", - "forks", - "sources", - "member", - "internal" - ], - type: "string" - } - }, - url: "/orgs/:org/repos" - }, - listForUser: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - sort: { - enum: ["created", "updated", "pushed", "full_name"], - type: "string" - }, - type: { enum: ["all", "owner", "member"], type: "string" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/repos" - }, - listForks: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" }, - sort: { enum: ["newest", "oldest", "stargazers"], type: "string" } - }, - url: "/repos/:owner/:repo/forks" - }, - listHooks: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks" - }, - listInvitations: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/invitations" - }, - listInvitationsForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/repository_invitations" - }, - listLanguages: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/languages" - }, - listPagesBuilds: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages/builds" - }, - listProtectedBranchRequiredStatusChecksContexts: { - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - listProtectedBranchTeamRestrictions: { - deprecated: "octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)", - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - listProtectedBranchUserRestrictions: { - deprecated: "octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)", - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - listPublic: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "integer" } - }, - url: "/repositories" - }, - listPullRequestsAssociatedWithCommit: { - headers: { accept: "application/vnd.github.groot-preview+json" }, - method: "GET", - params: { - commit_sha: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:commit_sha/pulls" - }, - listReleases: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases" - }, - listStatusesForRef: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - ref: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/commits/:ref/statuses" - }, - listTags: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/tags" - }, - listTeams: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/teams" - }, - listTeamsWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - listTopics: { - headers: { accept: "application/vnd.github.mercy-preview+json" }, - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/topics" - }, - listUsersWithAccessToProtectedBranch: { - deprecated: "octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)", - method: "GET", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - merge: { - method: "POST", - params: { - base: { required: true, type: "string" }, - commit_message: { type: "string" }, - head: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/merges" - }, - pingHook: { - method: "POST", - params: { - hook_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks/:hook_id/pings" - }, - removeBranchProtection: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - removeCollaborator: { - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/collaborators/:username" - }, - removeDeployKey: { - method: "DELETE", - params: { - key_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/keys/:key_id" - }, - removeProtectedBranchAdminEnforcement: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins" - }, - removeProtectedBranchAppRestrictions: { - method: "DELETE", - params: { - apps: { mapTo: "data", required: true, type: "string[]" }, - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - removeProtectedBranchPullRequestReviewEnforcement: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - removeProtectedBranchRequiredSignatures: { - headers: { accept: "application/vnd.github.zzzax-preview+json" }, - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures" - }, - removeProtectedBranchRequiredStatusChecks: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - removeProtectedBranchRequiredStatusChecksContexts: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - contexts: { mapTo: "data", required: true, type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - removeProtectedBranchRestrictions: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions" - }, - removeProtectedBranchTeamRestrictions: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - teams: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - removeProtectedBranchUserRestrictions: { - method: "DELETE", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - users: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - replaceProtectedBranchAppRestrictions: { - method: "PUT", - params: { - apps: { mapTo: "data", required: true, type: "string[]" }, - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps" - }, - replaceProtectedBranchRequiredStatusChecksContexts: { - method: "PUT", - params: { - branch: { required: true, type: "string" }, - contexts: { mapTo: "data", required: true, type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts" - }, - replaceProtectedBranchTeamRestrictions: { - method: "PUT", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - teams: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams" - }, - replaceProtectedBranchUserRestrictions: { - method: "PUT", - params: { - branch: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - users: { mapTo: "data", required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users" - }, - replaceTopics: { - headers: { accept: "application/vnd.github.mercy-preview+json" }, - method: "PUT", - params: { - names: { required: true, type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/topics" - }, - requestPageBuild: { - method: "POST", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/pages/builds" - }, - retrieveCommunityProfileMetrics: { - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/community/profile" - }, - testPushHook: { - method: "POST", - params: { - hook_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks/:hook_id/tests" - }, - transfer: { - method: "POST", - params: { - new_owner: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_ids: { type: "integer[]" } - }, - url: "/repos/:owner/:repo/transfer" - }, - update: { - method: "PATCH", - params: { - allow_merge_commit: { type: "boolean" }, - allow_rebase_merge: { type: "boolean" }, - allow_squash_merge: { type: "boolean" }, - archived: { type: "boolean" }, - default_branch: { type: "string" }, - delete_branch_on_merge: { type: "boolean" }, - description: { type: "string" }, - has_issues: { type: "boolean" }, - has_projects: { type: "boolean" }, - has_wiki: { type: "boolean" }, - homepage: { type: "string" }, - is_template: { type: "boolean" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - private: { type: "boolean" }, - repo: { required: true, type: "string" }, - visibility: { - enum: ["public", "private", "visibility", "internal"], - type: "string" - } - }, - url: "/repos/:owner/:repo" - }, - updateBranchProtection: { - method: "PUT", - params: { - allow_deletions: { type: "boolean" }, - allow_force_pushes: { allowNull: true, type: "boolean" }, - branch: { required: true, type: "string" }, - enforce_admins: { allowNull: true, required: true, type: "boolean" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - required_linear_history: { type: "boolean" }, - required_pull_request_reviews: { - allowNull: true, - required: true, - type: "object" - }, - "required_pull_request_reviews.dismiss_stale_reviews": { - type: "boolean" - }, - "required_pull_request_reviews.dismissal_restrictions": { - type: "object" - }, - "required_pull_request_reviews.dismissal_restrictions.teams": { - type: "string[]" - }, - "required_pull_request_reviews.dismissal_restrictions.users": { - type: "string[]" - }, - "required_pull_request_reviews.require_code_owner_reviews": { - type: "boolean" - }, - "required_pull_request_reviews.required_approving_review_count": { - type: "integer" - }, - required_status_checks: { - allowNull: true, - required: true, - type: "object" - }, - "required_status_checks.contexts": { required: true, type: "string[]" }, - "required_status_checks.strict": { required: true, type: "boolean" }, - restrictions: { allowNull: true, required: true, type: "object" }, - "restrictions.apps": { type: "string[]" }, - "restrictions.teams": { required: true, type: "string[]" }, - "restrictions.users": { required: true, type: "string[]" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection" - }, - updateCommitComment: { - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/comments/:comment_id" - }, - updateFile: { - deprecated: "octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)", - method: "PUT", - params: { - author: { type: "object" }, - "author.email": { required: true, type: "string" }, - "author.name": { required: true, type: "string" }, - branch: { type: "string" }, - committer: { type: "object" }, - "committer.email": { required: true, type: "string" }, - "committer.name": { required: true, type: "string" }, - content: { required: true, type: "string" }, - message: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - path: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - sha: { type: "string" } - }, - url: "/repos/:owner/:repo/contents/:path" - }, - updateHook: { - method: "PATCH", - params: { - active: { type: "boolean" }, - add_events: { type: "string[]" }, - config: { type: "object" }, - "config.content_type": { type: "string" }, - "config.insecure_ssl": { type: "string" }, - "config.secret": { type: "string" }, - "config.url": { required: true, type: "string" }, - events: { type: "string[]" }, - hook_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - remove_events: { type: "string[]" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/hooks/:hook_id" - }, - updateInformationAboutPagesSite: { - method: "PUT", - params: { - cname: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - source: { - enum: ['"gh-pages"', '"master"', '"master /docs"'], - type: "string" - } - }, - url: "/repos/:owner/:repo/pages" - }, - updateInvitation: { - method: "PATCH", - params: { - invitation_id: { required: true, type: "integer" }, - owner: { required: true, type: "string" }, - permissions: { enum: ["read", "write", "admin"], type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/invitations/:invitation_id" - }, - updateProtectedBranchPullRequestReviewEnforcement: { - method: "PATCH", - params: { - branch: { required: true, type: "string" }, - dismiss_stale_reviews: { type: "boolean" }, - dismissal_restrictions: { type: "object" }, - "dismissal_restrictions.teams": { type: "string[]" }, - "dismissal_restrictions.users": { type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - require_code_owner_reviews: { type: "boolean" }, - required_approving_review_count: { type: "integer" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews" - }, - updateProtectedBranchRequiredStatusChecks: { - method: "PATCH", - params: { - branch: { required: true, type: "string" }, - contexts: { type: "string[]" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - strict: { type: "boolean" } - }, - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks" - }, - updateRelease: { - method: "PATCH", - params: { - body: { type: "string" }, - draft: { type: "boolean" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - prerelease: { type: "boolean" }, - release_id: { required: true, type: "integer" }, - repo: { required: true, type: "string" }, - tag_name: { type: "string" }, - target_commitish: { type: "string" } - }, - url: "/repos/:owner/:repo/releases/:release_id" - }, - updateReleaseAsset: { - method: "PATCH", - params: { - asset_id: { required: true, type: "integer" }, - label: { type: "string" }, - name: { type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" } - }, - url: "/repos/:owner/:repo/releases/assets/:asset_id" - }, - uploadReleaseAsset: { - method: "POST", - params: { - data: { mapTo: "data", required: true, type: "string | object" }, - file: { alias: "data", deprecated: true, type: "string | object" }, - headers: { required: true, type: "object" }, - "headers.content-length": { required: true, type: "integer" }, - "headers.content-type": { required: true, type: "string" }, - label: { type: "string" }, - name: { required: true, type: "string" }, - url: { required: true, type: "string" } - }, - url: ":url" - } + acceptInvitation: ["PATCH /user/repository_invitations/{invitation_id}"], + addAppAccessRestrictions: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + {}, + { mapToData: "apps" }, + ], + addCollaborator: ["PUT /repos/{owner}/{repo}/collaborators/{username}"], + addStatusCheckContexts: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + {}, + { mapToData: "contexts" }, + ], + addTeamAccessRestrictions: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + {}, + { mapToData: "teams" }, + ], + addUserAccessRestrictions: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + {}, + { mapToData: "users" }, + ], + checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"], + checkVulnerabilityAlerts: [ + "GET /repos/{owner}/{repo}/vulnerability-alerts", + { mediaType: { previews: ["dorian"] } }, + ], + compareCommits: ["GET /repos/{owner}/{repo}/compare/{base}...{head}"], + createCommitComment: [ + "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments", + ], + createCommitSignatureProtection: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + { mediaType: { previews: ["zzzax"] } }, + ], + createCommitStatus: ["POST /repos/{owner}/{repo}/statuses/{sha}"], + createDeployKey: ["POST /repos/{owner}/{repo}/keys"], + createDeployment: ["POST /repos/{owner}/{repo}/deployments"], + createDeploymentStatus: [ + "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses", + ], + createDispatchEvent: ["POST /repos/{owner}/{repo}/dispatches"], + createForAuthenticatedUser: ["POST /user/repos"], + createFork: ["POST /repos/{owner}/{repo}/forks"], + createInOrg: ["POST /orgs/{org}/repos"], + createOrUpdateFileContents: ["PUT /repos/{owner}/{repo}/contents/{path}"], + createPagesSite: [ + "POST /repos/{owner}/{repo}/pages", + { mediaType: { previews: ["switcheroo"] } }, + ], + createRelease: ["POST /repos/{owner}/{repo}/releases"], + createUsingTemplate: [ + "POST /repos/{template_owner}/{template_repo}/generate", + { mediaType: { previews: ["baptiste"] } }, + ], + createWebhook: ["POST /repos/{owner}/{repo}/hooks"], + declineInvitation: ["DELETE /user/repository_invitations/{invitation_id}"], + delete: ["DELETE /repos/{owner}/{repo}"], + deleteAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions", + ], + deleteAdminBranchProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + ], + deleteBranchProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection", + ], + deleteCommitComment: ["DELETE /repos/{owner}/{repo}/comments/{comment_id}"], + deleteCommitSignatureProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + { mediaType: { previews: ["zzzax"] } }, + ], + deleteDeployKey: ["DELETE /repos/{owner}/{repo}/keys/{key_id}"], + deleteDeployment: [ + "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}", + ], + deleteFile: ["DELETE /repos/{owner}/{repo}/contents/{path}"], + deleteInvitation: [ + "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}", + ], + deletePagesSite: [ + "DELETE /repos/{owner}/{repo}/pages", + { mediaType: { previews: ["switcheroo"] } }, + ], + deletePullRequestReviewProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", + ], + deleteRelease: ["DELETE /repos/{owner}/{repo}/releases/{release_id}"], + deleteReleaseAsset: [ + "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}", + ], + deleteWebhook: ["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"], + disableAutomatedSecurityFixes: [ + "DELETE /repos/{owner}/{repo}/automated-security-fixes", + { mediaType: { previews: ["london"] } }, + ], + disableVulnerabilityAlerts: [ + "DELETE /repos/{owner}/{repo}/vulnerability-alerts", + { mediaType: { previews: ["dorian"] } }, + ], + downloadArchive: [ + "GET /repos/{owner}/{repo}/zipball/{ref}", + {}, + { renamed: ["repos", "downloadZipballArchive"] }, + ], + downloadTarballArchive: ["GET /repos/{owner}/{repo}/tarball/{ref}"], + downloadZipballArchive: ["GET /repos/{owner}/{repo}/zipball/{ref}"], + enableAutomatedSecurityFixes: [ + "PUT /repos/{owner}/{repo}/automated-security-fixes", + { mediaType: { previews: ["london"] } }, + ], + enableVulnerabilityAlerts: [ + "PUT /repos/{owner}/{repo}/vulnerability-alerts", + { mediaType: { previews: ["dorian"] } }, + ], + get: ["GET /repos/{owner}/{repo}"], + getAccessRestrictions: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions", + ], + getAdminBranchProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + ], + getAllStatusCheckContexts: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + ], + getAllTopics: [ + "GET /repos/{owner}/{repo}/topics", + { mediaType: { previews: ["mercy"] } }, + ], + getAppsWithAccessToProtectedBranch: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + ], + getBranch: ["GET /repos/{owner}/{repo}/branches/{branch}"], + getBranchProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection", + ], + getClones: ["GET /repos/{owner}/{repo}/traffic/clones"], + getCodeFrequencyStats: ["GET /repos/{owner}/{repo}/stats/code_frequency"], + getCollaboratorPermissionLevel: [ + "GET /repos/{owner}/{repo}/collaborators/{username}/permission", + ], + getCombinedStatusForRef: ["GET /repos/{owner}/{repo}/commits/{ref}/status"], + getCommit: ["GET /repos/{owner}/{repo}/commits/{ref}"], + getCommitActivityStats: ["GET /repos/{owner}/{repo}/stats/commit_activity"], + getCommitComment: ["GET /repos/{owner}/{repo}/comments/{comment_id}"], + getCommitSignatureProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", + { mediaType: { previews: ["zzzax"] } }, + ], + getCommunityProfileMetrics: ["GET /repos/{owner}/{repo}/community/profile"], + getContent: ["GET /repos/{owner}/{repo}/contents/{path}"], + getContributorsStats: ["GET /repos/{owner}/{repo}/stats/contributors"], + getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"], + getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"], + getDeploymentStatus: [ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", + ], + getLatestPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/latest"], + getLatestRelease: ["GET /repos/{owner}/{repo}/releases/latest"], + getPages: ["GET /repos/{owner}/{repo}/pages"], + getPagesBuild: ["GET /repos/{owner}/{repo}/pages/builds/{build_id}"], + getParticipationStats: ["GET /repos/{owner}/{repo}/stats/participation"], + getPullRequestReviewProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", + ], + getPunchCardStats: ["GET /repos/{owner}/{repo}/stats/punch_card"], + getReadme: ["GET /repos/{owner}/{repo}/readme"], + getRelease: ["GET /repos/{owner}/{repo}/releases/{release_id}"], + getReleaseAsset: ["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"], + getReleaseByTag: ["GET /repos/{owner}/{repo}/releases/tags/{tag}"], + getStatusChecksProtection: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + ], + getTeamsWithAccessToProtectedBranch: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + ], + getTopPaths: ["GET /repos/{owner}/{repo}/traffic/popular/paths"], + getTopReferrers: ["GET /repos/{owner}/{repo}/traffic/popular/referrers"], + getUsersWithAccessToProtectedBranch: [ + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + ], + getViews: ["GET /repos/{owner}/{repo}/traffic/views"], + getWebhook: ["GET /repos/{owner}/{repo}/hooks/{hook_id}"], + getWebhookConfigForRepo: [ + "GET /repos/{owner}/{repo}/hooks/{hook_id}/config", + ], + listBranches: ["GET /repos/{owner}/{repo}/branches"], + listBranchesForHeadCommit: [ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", + { mediaType: { previews: ["groot"] } }, + ], + listCollaborators: ["GET /repos/{owner}/{repo}/collaborators"], + listCommentsForCommit: [ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments", + ], + listCommitCommentsForRepo: ["GET /repos/{owner}/{repo}/comments"], + listCommitStatusesForRef: [ + "GET /repos/{owner}/{repo}/commits/{ref}/statuses", + ], + listCommits: ["GET /repos/{owner}/{repo}/commits"], + listContributors: ["GET /repos/{owner}/{repo}/contributors"], + listDeployKeys: ["GET /repos/{owner}/{repo}/keys"], + listDeploymentStatuses: [ + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses", + ], + listDeployments: ["GET /repos/{owner}/{repo}/deployments"], + listForAuthenticatedUser: ["GET /user/repos"], + listForOrg: ["GET /orgs/{org}/repos"], + listForUser: ["GET /users/{username}/repos"], + listForks: ["GET /repos/{owner}/{repo}/forks"], + listInvitations: ["GET /repos/{owner}/{repo}/invitations"], + listInvitationsForAuthenticatedUser: ["GET /user/repository_invitations"], + listLanguages: ["GET /repos/{owner}/{repo}/languages"], + listPagesBuilds: ["GET /repos/{owner}/{repo}/pages/builds"], + listPublic: ["GET /repositories"], + listPullRequestsAssociatedWithCommit: [ + "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls", + { mediaType: { previews: ["groot"] } }, + ], + listReleaseAssets: [ + "GET /repos/{owner}/{repo}/releases/{release_id}/assets", + ], + listReleases: ["GET /repos/{owner}/{repo}/releases"], + listTags: ["GET /repos/{owner}/{repo}/tags"], + listTeams: ["GET /repos/{owner}/{repo}/teams"], + listWebhooks: ["GET /repos/{owner}/{repo}/hooks"], + merge: ["POST /repos/{owner}/{repo}/merges"], + pingWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"], + removeAppAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + {}, + { mapToData: "apps" }, + ], + removeCollaborator: [ + "DELETE /repos/{owner}/{repo}/collaborators/{username}", + ], + removeStatusCheckContexts: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + {}, + { mapToData: "contexts" }, + ], + removeStatusCheckProtection: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + ], + removeTeamAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + {}, + { mapToData: "teams" }, + ], + removeUserAccessRestrictions: [ + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + {}, + { mapToData: "users" }, + ], + replaceAllTopics: [ + "PUT /repos/{owner}/{repo}/topics", + { mediaType: { previews: ["mercy"] } }, + ], + requestPagesBuild: ["POST /repos/{owner}/{repo}/pages/builds"], + setAdminBranchProtection: [ + "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", + ], + setAppAccessRestrictions: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", + {}, + { mapToData: "apps" }, + ], + setStatusCheckContexts: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", + {}, + { mapToData: "contexts" }, + ], + setTeamAccessRestrictions: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", + {}, + { mapToData: "teams" }, + ], + setUserAccessRestrictions: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", + {}, + { mapToData: "users" }, + ], + testPushWebhook: ["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"], + transfer: ["POST /repos/{owner}/{repo}/transfer"], + update: ["PATCH /repos/{owner}/{repo}"], + updateBranchProtection: [ + "PUT /repos/{owner}/{repo}/branches/{branch}/protection", + ], + updateCommitComment: ["PATCH /repos/{owner}/{repo}/comments/{comment_id}"], + updateInformationAboutPagesSite: ["PUT /repos/{owner}/{repo}/pages"], + updateInvitation: [ + "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}", + ], + updatePullRequestReviewProtection: [ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", + ], + updateRelease: ["PATCH /repos/{owner}/{repo}/releases/{release_id}"], + updateReleaseAsset: [ + "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}", + ], + updateStatusCheckPotection: [ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + {}, + { renamed: ["repos", "updateStatusCheckProtection"] }, + ], + updateStatusCheckProtection: [ + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", + ], + updateWebhook: ["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"], + updateWebhookConfigForRepo: [ + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config", + ], + uploadReleaseAsset: [ + "POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}", + { baseUrl: "https://uploads.github.com" }, + ], }, search: { - code: { - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { enum: ["indexed"], type: "string" } - }, - url: "/search/code" - }, - commits: { - headers: { accept: "application/vnd.github.cloak-preview+json" }, - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { enum: ["author-date", "committer-date"], type: "string" } - }, - url: "/search/commits" - }, - issues: { - deprecated: "octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)", - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { - enum: [ - "comments", - "reactions", - "reactions-+1", - "reactions--1", - "reactions-smile", - "reactions-thinking_face", - "reactions-heart", - "reactions-tada", - "interactions", - "created", - "updated" - ], - type: "string" - } - }, - url: "/search/issues" - }, - issuesAndPullRequests: { - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { - enum: [ - "comments", - "reactions", - "reactions-+1", - "reactions--1", - "reactions-smile", - "reactions-thinking_face", - "reactions-heart", - "reactions-tada", - "interactions", - "created", - "updated" - ], - type: "string" - } - }, - url: "/search/issues" - }, - labels: { - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - q: { required: true, type: "string" }, - repository_id: { required: true, type: "integer" }, - sort: { enum: ["created", "updated"], type: "string" } - }, - url: "/search/labels" - }, - repos: { - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { - enum: ["stars", "forks", "help-wanted-issues", "updated"], - type: "string" - } - }, - url: "/search/repositories" - }, - topics: { - method: "GET", - params: { q: { required: true, type: "string" } }, - url: "/search/topics" - }, - users: { - method: "GET", - params: { - order: { enum: ["desc", "asc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - q: { required: true, type: "string" }, - sort: { enum: ["followers", "repositories", "joined"], type: "string" } - }, - url: "/search/users" - } + code: ["GET /search/code"], + commits: ["GET /search/commits", { mediaType: { previews: ["cloak"] } }], + issuesAndPullRequests: ["GET /search/issues"], + labels: ["GET /search/labels"], + repos: ["GET /search/repositories"], + topics: ["GET /search/topics", { mediaType: { previews: ["mercy"] } }], + users: ["GET /search/users"], }, teams: { - addMember: { - deprecated: "octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)", - method: "PUT", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - addMemberLegacy: { - deprecated: "octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy", - method: "PUT", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - addOrUpdateMembership: { - deprecated: "octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)", - method: "PUT", - params: { - role: { enum: ["member", "maintainer"], type: "string" }, - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - addOrUpdateMembershipInOrg: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - role: { enum: ["member", "maintainer"], type: "string" }, - team_slug: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - addOrUpdateMembershipLegacy: { - deprecated: "octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy", - method: "PUT", - params: { - role: { enum: ["member", "maintainer"], type: "string" }, - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - addOrUpdateProject: { - deprecated: "octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PUT", - params: { - permission: { enum: ["read", "write", "admin"], type: "string" }, - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - addOrUpdateProjectInOrg: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PUT", - params: { - org: { required: true, type: "string" }, - permission: { enum: ["read", "write", "admin"], type: "string" }, - project_id: { required: true, type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - addOrUpdateProjectLegacy: { - deprecated: "octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "PUT", - params: { - permission: { enum: ["read", "write", "admin"], type: "string" }, - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - addOrUpdateRepo: { - deprecated: "octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)", - method: "PUT", - params: { - owner: { required: true, type: "string" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - addOrUpdateRepoInOrg: { - method: "PUT", - params: { - org: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - repo: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - addOrUpdateRepoLegacy: { - deprecated: "octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy", - method: "PUT", - params: { - owner: { required: true, type: "string" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - checkManagesRepo: { - deprecated: "octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)", - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - checkManagesRepoInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - checkManagesRepoLegacy: { - deprecated: "octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy", - method: "GET", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - create: { - method: "POST", - params: { - description: { type: "string" }, - maintainers: { type: "string[]" }, - name: { required: true, type: "string" }, - org: { required: true, type: "string" }, - parent_team_id: { type: "integer" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - privacy: { enum: ["secret", "closed"], type: "string" }, - repo_names: { type: "string[]" } - }, - url: "/orgs/:org/teams" - }, - createDiscussion: { - deprecated: "octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)", - method: "POST", - params: { - body: { required: true, type: "string" }, - private: { type: "boolean" }, - team_id: { required: true, type: "integer" }, - title: { required: true, type: "string" } - }, - url: "/teams/:team_id/discussions" - }, - createDiscussionComment: { - deprecated: "octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)", - method: "POST", - params: { - body: { required: true, type: "string" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - createDiscussionCommentInOrg: { - method: "POST", - params: { - body: { required: true, type: "string" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" - }, - createDiscussionCommentLegacy: { - deprecated: "octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy", - method: "POST", - params: { - body: { required: true, type: "string" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - createDiscussionInOrg: { - method: "POST", - params: { - body: { required: true, type: "string" }, - org: { required: true, type: "string" }, - private: { type: "boolean" }, - team_slug: { required: true, type: "string" }, - title: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions" - }, - createDiscussionLegacy: { - deprecated: "octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy", - method: "POST", - params: { - body: { required: true, type: "string" }, - private: { type: "boolean" }, - team_id: { required: true, type: "integer" }, - title: { required: true, type: "string" } - }, - url: "/teams/:team_id/discussions" - }, - delete: { - deprecated: "octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)", - method: "DELETE", - params: { team_id: { required: true, type: "integer" } }, - url: "/teams/:team_id" - }, - deleteDiscussion: { - deprecated: "octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)", - method: "DELETE", - params: { - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - deleteDiscussionComment: { - deprecated: "octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)", - method: "DELETE", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionCommentInOrg: { - method: "DELETE", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionCommentLegacy: { - deprecated: "octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy", - method: "DELETE", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - deleteDiscussionInOrg: { - method: "DELETE", - params: { - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - deleteDiscussionLegacy: { - deprecated: "octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy", - method: "DELETE", - params: { - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - deleteInOrg: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug" - }, - deleteLegacy: { - deprecated: "octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy", - method: "DELETE", - params: { team_id: { required: true, type: "integer" } }, - url: "/teams/:team_id" - }, - get: { - deprecated: "octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)", - method: "GET", - params: { team_id: { required: true, type: "integer" } }, - url: "/teams/:team_id" - }, - getByName: { - method: "GET", - params: { - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug" - }, - getDiscussion: { - deprecated: "octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)", - method: "GET", - params: { - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - getDiscussionComment: { - deprecated: "octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)", - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionCommentInOrg: { - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionCommentLegacy: { - deprecated: "octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy", - method: "GET", - params: { - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - getDiscussionInOrg: { - method: "GET", - params: { - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - getDiscussionLegacy: { - deprecated: "octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy", - method: "GET", - params: { - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - getLegacy: { - deprecated: "octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy", - method: "GET", - params: { team_id: { required: true, type: "integer" } }, - url: "/teams/:team_id" - }, - getMember: { - deprecated: "octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)", - method: "GET", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - getMemberLegacy: { - deprecated: "octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy", - method: "GET", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - getMembership: { - deprecated: "octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)", - method: "GET", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - getMembershipInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - getMembershipLegacy: { - deprecated: "octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy", - method: "GET", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - list: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" } - }, - url: "/orgs/:org/teams" - }, - listChild: { - deprecated: "octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/teams" - }, - listChildInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/teams" - }, - listChildLegacy: { - deprecated: "octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/teams" - }, - listDiscussionComments: { - deprecated: "octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)", - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - listDiscussionCommentsInOrg: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments" - }, - listDiscussionCommentsLegacy: { - deprecated: "octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy", - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - discussion_number: { required: true, type: "integer" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments" - }, - listDiscussions: { - deprecated: "octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)", - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions" - }, - listDiscussionsInOrg: { - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions" - }, - listDiscussionsLegacy: { - deprecated: "octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy", - method: "GET", - params: { - direction: { enum: ["asc", "desc"], type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions" - }, - listForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/teams" - }, - listMembers: { - deprecated: "octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - role: { enum: ["member", "maintainer", "all"], type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/members" - }, - listMembersInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - role: { enum: ["member", "maintainer", "all"], type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/members" - }, - listMembersLegacy: { - deprecated: "octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - role: { enum: ["member", "maintainer", "all"], type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/members" - }, - listPendingInvitations: { - deprecated: "octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/invitations" - }, - listPendingInvitationsInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/invitations" - }, - listPendingInvitationsLegacy: { - deprecated: "octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/invitations" - }, - listProjects: { - deprecated: "octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects" - }, - listProjectsInOrg: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/projects" - }, - listProjectsLegacy: { - deprecated: "octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects" - }, - listRepos: { - deprecated: "octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos" - }, - listReposInOrg: { - method: "GET", - params: { - org: { required: true, type: "string" }, - page: { type: "integer" }, - per_page: { type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/repos" - }, - listReposLegacy: { - deprecated: "octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy", - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos" - }, - removeMember: { - deprecated: "octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)", - method: "DELETE", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - removeMemberLegacy: { - deprecated: "octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy", - method: "DELETE", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/members/:username" - }, - removeMembership: { - deprecated: "octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)", - method: "DELETE", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - removeMembershipInOrg: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/memberships/:username" - }, - removeMembershipLegacy: { - deprecated: "octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy", - method: "DELETE", - params: { - team_id: { required: true, type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/teams/:team_id/memberships/:username" - }, - removeProject: { - deprecated: "octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)", - method: "DELETE", - params: { - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - removeProjectInOrg: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - project_id: { required: true, type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - removeProjectLegacy: { - deprecated: "octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy", - method: "DELETE", - params: { - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - removeRepo: { - deprecated: "octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)", - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - removeRepoInOrg: { - method: "DELETE", - params: { - org: { required: true, type: "string" }, - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo" - }, - removeRepoLegacy: { - deprecated: "octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy", - method: "DELETE", - params: { - owner: { required: true, type: "string" }, - repo: { required: true, type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/repos/:owner/:repo" - }, - reviewProject: { - deprecated: "octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - reviewProjectInOrg: { - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - org: { required: true, type: "string" }, - project_id: { required: true, type: "integer" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/projects/:project_id" - }, - reviewProjectLegacy: { - deprecated: "octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy", - headers: { accept: "application/vnd.github.inertia-preview+json" }, - method: "GET", - params: { - project_id: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/projects/:project_id" - }, - update: { - deprecated: "octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)", - method: "PATCH", - params: { - description: { type: "string" }, - name: { required: true, type: "string" }, - parent_team_id: { type: "integer" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - privacy: { enum: ["secret", "closed"], type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id" - }, - updateDiscussion: { - deprecated: "octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)", - method: "PATCH", - params: { - body: { type: "string" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" }, - title: { type: "string" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - updateDiscussionComment: { - deprecated: "octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)", - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionCommentInOrg: { - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionCommentLegacy: { - deprecated: "octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy", - method: "PATCH", - params: { - body: { required: true, type: "string" }, - comment_number: { required: true, type: "integer" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number" - }, - updateDiscussionInOrg: { - method: "PATCH", - params: { - body: { type: "string" }, - discussion_number: { required: true, type: "integer" }, - org: { required: true, type: "string" }, - team_slug: { required: true, type: "string" }, - title: { type: "string" } - }, - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number" - }, - updateDiscussionLegacy: { - deprecated: "octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy", - method: "PATCH", - params: { - body: { type: "string" }, - discussion_number: { required: true, type: "integer" }, - team_id: { required: true, type: "integer" }, - title: { type: "string" } - }, - url: "/teams/:team_id/discussions/:discussion_number" - }, - updateInOrg: { - method: "PATCH", - params: { - description: { type: "string" }, - name: { required: true, type: "string" }, - org: { required: true, type: "string" }, - parent_team_id: { type: "integer" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - privacy: { enum: ["secret", "closed"], type: "string" }, - team_slug: { required: true, type: "string" } - }, - url: "/orgs/:org/teams/:team_slug" - }, - updateLegacy: { - deprecated: "octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy", - method: "PATCH", - params: { - description: { type: "string" }, - name: { required: true, type: "string" }, - parent_team_id: { type: "integer" }, - permission: { enum: ["pull", "push", "admin"], type: "string" }, - privacy: { enum: ["secret", "closed"], type: "string" }, - team_id: { required: true, type: "integer" } - }, - url: "/teams/:team_id" - } + addOrUpdateMembershipForUserInOrg: [ + "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}", + ], + addOrUpdateProjectPermissionsInOrg: [ + "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}", + { mediaType: { previews: ["inertia"] } }, + ], + addOrUpdateRepoPermissionsInOrg: [ + "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", + ], + checkPermissionsForProjectInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}", + { mediaType: { previews: ["inertia"] } }, + ], + checkPermissionsForRepoInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", + ], + create: ["POST /orgs/{org}/teams"], + createDiscussionCommentInOrg: [ + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", + ], + createDiscussionInOrg: ["POST /orgs/{org}/teams/{team_slug}/discussions"], + deleteDiscussionCommentInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", + ], + deleteDiscussionInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", + ], + deleteInOrg: ["DELETE /orgs/{org}/teams/{team_slug}"], + getByName: ["GET /orgs/{org}/teams/{team_slug}"], + getDiscussionCommentInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", + ], + getDiscussionInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", + ], + getMembershipForUserInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/memberships/{username}", + ], + list: ["GET /orgs/{org}/teams"], + listChildInOrg: ["GET /orgs/{org}/teams/{team_slug}/teams"], + listDiscussionCommentsInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", + ], + listDiscussionsInOrg: ["GET /orgs/{org}/teams/{team_slug}/discussions"], + listForAuthenticatedUser: ["GET /user/teams"], + listMembersInOrg: ["GET /orgs/{org}/teams/{team_slug}/members"], + listPendingInvitationsInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/invitations", + ], + listProjectsInOrg: [ + "GET /orgs/{org}/teams/{team_slug}/projects", + { mediaType: { previews: ["inertia"] } }, + ], + listReposInOrg: ["GET /orgs/{org}/teams/{team_slug}/repos"], + removeMembershipForUserInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}", + ], + removeProjectInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}", + ], + removeRepoInOrg: [ + "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", + ], + updateDiscussionCommentInOrg: [ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", + ], + updateDiscussionInOrg: [ + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", + ], + updateInOrg: ["PATCH /orgs/{org}/teams/{team_slug}"], }, users: { - addEmails: { - method: "POST", - params: { emails: { required: true, type: "string[]" } }, - url: "/user/emails" - }, - block: { - method: "PUT", - params: { username: { required: true, type: "string" } }, - url: "/user/blocks/:username" - }, - checkBlocked: { - method: "GET", - params: { username: { required: true, type: "string" } }, - url: "/user/blocks/:username" - }, - checkFollowing: { - method: "GET", - params: { username: { required: true, type: "string" } }, - url: "/user/following/:username" - }, - checkFollowingForUser: { - method: "GET", - params: { - target_user: { required: true, type: "string" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/following/:target_user" - }, - createGpgKey: { - method: "POST", - params: { armored_public_key: { type: "string" } }, - url: "/user/gpg_keys" - }, - createPublicKey: { - method: "POST", - params: { key: { type: "string" }, title: { type: "string" } }, - url: "/user/keys" - }, - deleteEmails: { - method: "DELETE", - params: { emails: { required: true, type: "string[]" } }, - url: "/user/emails" - }, - deleteGpgKey: { - method: "DELETE", - params: { gpg_key_id: { required: true, type: "integer" } }, - url: "/user/gpg_keys/:gpg_key_id" - }, - deletePublicKey: { - method: "DELETE", - params: { key_id: { required: true, type: "integer" } }, - url: "/user/keys/:key_id" - }, - follow: { - method: "PUT", - params: { username: { required: true, type: "string" } }, - url: "/user/following/:username" - }, - getAuthenticated: { method: "GET", params: {}, url: "/user" }, - getByUsername: { - method: "GET", - params: { username: { required: true, type: "string" } }, - url: "/users/:username" - }, - getContextForUser: { - method: "GET", - params: { - subject_id: { type: "string" }, - subject_type: { - enum: ["organization", "repository", "issue", "pull_request"], - type: "string" - }, - username: { required: true, type: "string" } - }, - url: "/users/:username/hovercard" - }, - getGpgKey: { - method: "GET", - params: { gpg_key_id: { required: true, type: "integer" } }, - url: "/user/gpg_keys/:gpg_key_id" - }, - getPublicKey: { - method: "GET", - params: { key_id: { required: true, type: "integer" } }, - url: "/user/keys/:key_id" - }, - list: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - since: { type: "string" } - }, - url: "/users" - }, - listBlocked: { method: "GET", params: {}, url: "/user/blocks" }, - listEmails: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/emails" - }, - listFollowersForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/followers" - }, - listFollowersForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/followers" - }, - listFollowingForAuthenticatedUser: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/following" - }, - listFollowingForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/following" - }, - listGpgKeys: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/gpg_keys" - }, - listGpgKeysForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/gpg_keys" - }, - listPublicEmails: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/public_emails" - }, - listPublicKeys: { - method: "GET", - params: { page: { type: "integer" }, per_page: { type: "integer" } }, - url: "/user/keys" - }, - listPublicKeysForUser: { - method: "GET", - params: { - page: { type: "integer" }, - per_page: { type: "integer" }, - username: { required: true, type: "string" } - }, - url: "/users/:username/keys" - }, - togglePrimaryEmailVisibility: { - method: "PATCH", - params: { - email: { required: true, type: "string" }, - visibility: { required: true, type: "string" } - }, - url: "/user/email/visibility" - }, - unblock: { - method: "DELETE", - params: { username: { required: true, type: "string" } }, - url: "/user/blocks/:username" - }, - unfollow: { - method: "DELETE", - params: { username: { required: true, type: "string" } }, - url: "/user/following/:username" - }, - updateAuthenticated: { - method: "PATCH", - params: { - bio: { type: "string" }, - blog: { type: "string" }, - company: { type: "string" }, - email: { type: "string" }, - hireable: { type: "boolean" }, - location: { type: "string" }, - name: { type: "string" } - }, - url: "/user" - } - } + addEmailForAuthenticated: ["POST /user/emails"], + block: ["PUT /user/blocks/{username}"], + checkBlocked: ["GET /user/blocks/{username}"], + checkFollowingForUser: ["GET /users/{username}/following/{target_user}"], + checkPersonIsFollowedByAuthenticated: ["GET /user/following/{username}"], + createGpgKeyForAuthenticated: ["POST /user/gpg_keys"], + createPublicSshKeyForAuthenticated: ["POST /user/keys"], + deleteEmailForAuthenticated: ["DELETE /user/emails"], + deleteGpgKeyForAuthenticated: ["DELETE /user/gpg_keys/{gpg_key_id}"], + deletePublicSshKeyForAuthenticated: ["DELETE /user/keys/{key_id}"], + follow: ["PUT /user/following/{username}"], + getAuthenticated: ["GET /user"], + getByUsername: ["GET /users/{username}"], + getContextForUser: ["GET /users/{username}/hovercard"], + getGpgKeyForAuthenticated: ["GET /user/gpg_keys/{gpg_key_id}"], + getPublicSshKeyForAuthenticated: ["GET /user/keys/{key_id}"], + list: ["GET /users"], + listBlockedByAuthenticated: ["GET /user/blocks"], + listEmailsForAuthenticated: ["GET /user/emails"], + listFollowedByAuthenticated: ["GET /user/following"], + listFollowersForAuthenticatedUser: ["GET /user/followers"], + listFollowersForUser: ["GET /users/{username}/followers"], + listFollowingForUser: ["GET /users/{username}/following"], + listGpgKeysForAuthenticated: ["GET /user/gpg_keys"], + listGpgKeysForUser: ["GET /users/{username}/gpg_keys"], + listPublicEmailsForAuthenticated: ["GET /user/public_emails"], + listPublicKeysForUser: ["GET /users/{username}/keys"], + listPublicSshKeysForAuthenticated: ["GET /user/keys"], + setPrimaryEmailVisibilityForAuthenticated: ["PATCH /user/email/visibility"], + unblock: ["DELETE /user/blocks/{username}"], + unfollow: ["DELETE /user/following/{username}"], + updateAuthenticated: ["PATCH /user"], + }, }; -const VERSION = "2.4.0"; +const VERSION = "4.3.1"; -function registerEndpoints(octokit, routes) { - Object.keys(routes).forEach(namespaceName => { - if (!octokit[namespaceName]) { - octokit[namespaceName] = {}; - } - Object.keys(routes[namespaceName]).forEach(apiName => { - const apiOptions = routes[namespaceName][apiName]; - const endpointDefaults = ["method", "url", "headers"].reduce((map, key) => { - if (typeof apiOptions[key] !== "undefined") { - map[key] = apiOptions[key]; - } - return map; - }, {}); - endpointDefaults.request = { - validate: apiOptions.params - }; - let request = octokit.request.defaults(endpointDefaults); - // patch request & endpoint methods to support deprecated parameters. - // Not the most elegant solution, but we don’t want to move deprecation - // logic into octokit/endpoint.js as it’s out of scope - const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated); - if (hasDeprecatedParam) { - const patch = patchForDeprecation.bind(null, octokit, apiOptions); - request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`); - request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`); - request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`); +function endpointsToMethods(octokit, endpointsMap) { + const newMethods = {}; + for (const [scope, endpoints] of Object.entries(endpointsMap)) { + for (const [methodName, endpoint] of Object.entries(endpoints)) { + const [route, defaults, decorations] = endpoint; + const [method, url] = route.split(/ /); + const endpointDefaults = Object.assign({ method, url }, defaults); + if (!newMethods[scope]) { + newMethods[scope] = {}; } - if (apiOptions.deprecated) { - octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() { - octokit.log.warn(new Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`)); - octokit[namespaceName][apiName] = request; - return request.apply(null, arguments); - }, request); - return; + const scopeMethods = newMethods[scope]; + if (decorations) { + scopeMethods[methodName] = decorate(octokit, scope, methodName, endpointDefaults, decorations); + continue; } - octokit[namespaceName][apiName] = request; - }); - }); + scopeMethods[methodName] = octokit.request.defaults(endpointDefaults); + } + } + return newMethods; } -function patchForDeprecation(octokit, apiOptions, method, methodName) { - const patchedMethod = (options) => { - options = Object.assign({}, options); - Object.keys(options).forEach(key => { - if (apiOptions.params[key] && apiOptions.params[key].deprecated) { - const aliasKey = apiOptions.params[key].alias; - octokit.log.warn(new Deprecation(`[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`)); - if (!(aliasKey in options)) { - options[aliasKey] = options[key]; +function decorate(octokit, scope, methodName, defaults, decorations) { + const requestWithDefaults = octokit.request.defaults(defaults); + /* istanbul ignore next */ + function withDecorations(...args) { + // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488 + let options = requestWithDefaults.endpoint.merge(...args); + // There are currently no other decorations than `.mapToData` + if (decorations.mapToData) { + options = Object.assign({}, options, { + data: options[decorations.mapToData], + [decorations.mapToData]: undefined, + }); + return requestWithDefaults(options); + } + if (decorations.renamed) { + const [newScope, newMethodName] = decorations.renamed; + octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`); + } + if (decorations.deprecated) { + octokit.log.warn(decorations.deprecated); + } + if (decorations.renamedParameters) { + // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488 + const options = requestWithDefaults.endpoint.merge(...args); + for (const [name, alias] of Object.entries(decorations.renamedParameters)) { + if (name in options) { + octokit.log.warn(`"${name}" parameter is deprecated for "octokit.${scope}.${methodName}()". Use "${alias}" instead`); + if (!(alias in options)) { + options[alias] = options[name]; + } + delete options[name]; } - delete options[key]; } - }); - return method(options); - }; - Object.keys(method).forEach(key => { - patchedMethod[key] = method[key]; - }); - return patchedMethod; + return requestWithDefaults(options); + } + // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488 + return requestWithDefaults(...args); + } + return Object.assign(withDecorations, requestWithDefaults); } /** @@ -6698,27 +1336,7 @@ function patchForDeprecation(octokit, apiOptions, method, methodName) { * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1 */ function restEndpointMethods(octokit) { - // @ts-ignore - octokit.registerEndpoints = registerEndpoints.bind(null, octokit); - registerEndpoints(octokit, endpointsByScope); - // Aliasing scopes for backward compatibility - // See https://github.com/octokit/rest.js/pull/1134 - [ - ["gitdata", "git"], - ["authorization", "oauthAuthorizations"], - ["pullRequests", "pulls"] - ].forEach(([deprecatedScope, scope]) => { - Object.defineProperty(octokit, deprecatedScope, { - get() { - octokit.log.warn( - // @ts-ignore - new Deprecation(`[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`)); - // @ts-ignore - return octokit[scope]; - } - }); - }); - return {}; + return endpointsToMethods(octokit, Endpoints); } restEndpointMethods.VERSION = VERSION; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js.map b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js.map index 017c31353..7d1ed8ede 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js.map +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/generated/endpoints.js","../dist-src/version.js","../dist-src/register-endpoints.js","../dist-src/index.js"],"sourcesContent":["export default {\n actions: {\n cancelWorkflowRun: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id/cancel\"\n },\n createOrUpdateSecretForRepo: {\n method: \"PUT\",\n params: {\n encrypted_value: { type: \"string\" },\n key_id: { type: \"string\" },\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/secrets/:name\"\n },\n createRegistrationToken: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/runners/registration-token\"\n },\n createRemoveToken: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/runners/remove-token\"\n },\n deleteArtifact: {\n method: \"DELETE\",\n params: {\n artifact_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/artifacts/:artifact_id\"\n },\n deleteSecretFromRepo: {\n method: \"DELETE\",\n params: {\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/secrets/:name\"\n },\n downloadArtifact: {\n method: \"GET\",\n params: {\n archive_format: { required: true, type: \"string\" },\n artifact_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format\"\n },\n getArtifact: {\n method: \"GET\",\n params: {\n artifact_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/artifacts/:artifact_id\"\n },\n getPublicKey: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/secrets/public-key\"\n },\n getSecret: {\n method: \"GET\",\n params: {\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/secrets/:name\"\n },\n getSelfHostedRunner: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n runner_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runners/:runner_id\"\n },\n getWorkflow: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n workflow_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/workflows/:workflow_id\"\n },\n getWorkflowJob: {\n method: \"GET\",\n params: {\n job_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/jobs/:job_id\"\n },\n getWorkflowRun: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id\"\n },\n listDownloadsForSelfHostedRunnerApplication: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/runners/downloads\"\n },\n listJobsForWorkflowRun: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id/jobs\"\n },\n listRepoWorkflowRuns: {\n method: \"GET\",\n params: {\n actor: { type: \"string\" },\n branch: { type: \"string\" },\n event: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n status: { enum: [\"completed\", \"status\", \"conclusion\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/runs\"\n },\n listRepoWorkflows: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/workflows\"\n },\n listSecretsForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/secrets\"\n },\n listSelfHostedRunnersForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/runners\"\n },\n listWorkflowJobLogs: {\n method: \"GET\",\n params: {\n job_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/actions/jobs/:job_id/logs\"\n },\n listWorkflowRunArtifacts: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id/artifacts\"\n },\n listWorkflowRunLogs: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id/logs\"\n },\n listWorkflowRuns: {\n method: \"GET\",\n params: {\n actor: { type: \"string\" },\n branch: { type: \"string\" },\n event: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n status: { enum: [\"completed\", \"status\", \"conclusion\"], type: \"string\" },\n workflow_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/workflows/:workflow_id/runs\"\n },\n reRunWorkflow: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n run_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runs/:run_id/rerun\"\n },\n removeSelfHostedRunner: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n runner_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/actions/runners/:runner_id\"\n }\n },\n activity: {\n checkStarringRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/user/starred/:owner/:repo\"\n },\n deleteRepoSubscription: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/subscription\"\n },\n deleteThreadSubscription: {\n method: \"DELETE\",\n params: { thread_id: { required: true, type: \"integer\" } },\n url: \"/notifications/threads/:thread_id/subscription\"\n },\n getRepoSubscription: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/subscription\"\n },\n getThread: {\n method: \"GET\",\n params: { thread_id: { required: true, type: \"integer\" } },\n url: \"/notifications/threads/:thread_id\"\n },\n getThreadSubscription: {\n method: \"GET\",\n params: { thread_id: { required: true, type: \"integer\" } },\n url: \"/notifications/threads/:thread_id/subscription\"\n },\n listEventsForOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/events/orgs/:org\"\n },\n listEventsForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/events\"\n },\n listFeeds: { method: \"GET\", params: {}, url: \"/feeds\" },\n listNotifications: {\n method: \"GET\",\n params: {\n all: { type: \"boolean\" },\n before: { type: \"string\" },\n page: { type: \"integer\" },\n participating: { type: \"boolean\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" }\n },\n url: \"/notifications\"\n },\n listNotificationsForRepo: {\n method: \"GET\",\n params: {\n all: { type: \"boolean\" },\n before: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n participating: { type: \"boolean\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/notifications\"\n },\n listPublicEvents: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/events\"\n },\n listPublicEventsForOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/events\"\n },\n listPublicEventsForRepoNetwork: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/networks/:owner/:repo/events\"\n },\n listPublicEventsForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/events/public\"\n },\n listReceivedEventsForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/received_events\"\n },\n listReceivedPublicEventsForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/received_events/public\"\n },\n listRepoEvents: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/events\"\n },\n listReposStarredByAuthenticatedUser: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/user/starred\"\n },\n listReposStarredByUser: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/starred\"\n },\n listReposWatchedByUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/subscriptions\"\n },\n listStargazersForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stargazers\"\n },\n listWatchedReposForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/subscriptions\"\n },\n listWatchersForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/subscribers\"\n },\n markAsRead: {\n method: \"PUT\",\n params: { last_read_at: { type: \"string\" } },\n url: \"/notifications\"\n },\n markNotificationsAsReadForRepo: {\n method: \"PUT\",\n params: {\n last_read_at: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/notifications\"\n },\n markThreadAsRead: {\n method: \"PATCH\",\n params: { thread_id: { required: true, type: \"integer\" } },\n url: \"/notifications/threads/:thread_id\"\n },\n setRepoSubscription: {\n method: \"PUT\",\n params: {\n ignored: { type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n subscribed: { type: \"boolean\" }\n },\n url: \"/repos/:owner/:repo/subscription\"\n },\n setThreadSubscription: {\n method: \"PUT\",\n params: {\n ignored: { type: \"boolean\" },\n thread_id: { required: true, type: \"integer\" }\n },\n url: \"/notifications/threads/:thread_id/subscription\"\n },\n starRepo: {\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/user/starred/:owner/:repo\"\n },\n unstarRepo: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/user/starred/:owner/:repo\"\n }\n },\n apps: {\n addRepoToInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"PUT\",\n params: {\n installation_id: { required: true, type: \"integer\" },\n repository_id: { required: true, type: \"integer\" }\n },\n url: \"/user/installations/:installation_id/repositories/:repository_id\"\n },\n checkAccountIsAssociatedWithAny: {\n method: \"GET\",\n params: { account_id: { required: true, type: \"integer\" } },\n url: \"/marketplace_listing/accounts/:account_id\"\n },\n checkAccountIsAssociatedWithAnyStubbed: {\n method: \"GET\",\n params: { account_id: { required: true, type: \"integer\" } },\n url: \"/marketplace_listing/stubbed/accounts/:account_id\"\n },\n checkAuthorization: {\n deprecated: \"octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization\",\n method: \"GET\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n checkToken: {\n headers: { accept: \"application/vnd.github.doctor-strange-preview+json\" },\n method: \"POST\",\n params: {\n access_token: { type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/token\"\n },\n createContentAttachment: {\n headers: { accept: \"application/vnd.github.corsair-preview+json\" },\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n content_reference_id: { required: true, type: \"integer\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/content_references/:content_reference_id/attachments\"\n },\n createFromManifest: {\n headers: { accept: \"application/vnd.github.fury-preview+json\" },\n method: \"POST\",\n params: { code: { required: true, type: \"string\" } },\n url: \"/app-manifests/:code/conversions\"\n },\n createInstallationToken: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"POST\",\n params: {\n installation_id: { required: true, type: \"integer\" },\n permissions: { type: \"object\" },\n repository_ids: { type: \"integer[]\" }\n },\n url: \"/app/installations/:installation_id/access_tokens\"\n },\n deleteAuthorization: {\n headers: { accept: \"application/vnd.github.doctor-strange-preview+json\" },\n method: \"DELETE\",\n params: {\n access_token: { type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/grant\"\n },\n deleteInstallation: {\n headers: {\n accept: \"application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json\"\n },\n method: \"DELETE\",\n params: { installation_id: { required: true, type: \"integer\" } },\n url: \"/app/installations/:installation_id\"\n },\n deleteToken: {\n headers: { accept: \"application/vnd.github.doctor-strange-preview+json\" },\n method: \"DELETE\",\n params: {\n access_token: { type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/token\"\n },\n findOrgInstallation: {\n deprecated: \"octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)\",\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org/installation\"\n },\n findRepoInstallation: {\n deprecated: \"octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)\",\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/installation\"\n },\n findUserInstallation: {\n deprecated: \"octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)\",\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/users/:username/installation\"\n },\n getAuthenticated: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: {},\n url: \"/app\"\n },\n getBySlug: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { app_slug: { required: true, type: \"string\" } },\n url: \"/apps/:app_slug\"\n },\n getInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { installation_id: { required: true, type: \"integer\" } },\n url: \"/app/installations/:installation_id\"\n },\n getOrgInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org/installation\"\n },\n getRepoInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/installation\"\n },\n getUserInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/users/:username/installation\"\n },\n listAccountsUserOrOrgOnPlan: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n plan_id: { required: true, type: \"integer\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/marketplace_listing/plans/:plan_id/accounts\"\n },\n listAccountsUserOrOrgOnPlanStubbed: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n plan_id: { required: true, type: \"integer\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/marketplace_listing/stubbed/plans/:plan_id/accounts\"\n },\n listInstallationReposForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: {\n installation_id: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/user/installations/:installation_id/repositories\"\n },\n listInstallations: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/app/installations\"\n },\n listInstallationsForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/installations\"\n },\n listMarketplacePurchasesForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/marketplace_purchases\"\n },\n listMarketplacePurchasesForAuthenticatedUserStubbed: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/marketplace_purchases/stubbed\"\n },\n listPlans: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/marketplace_listing/plans\"\n },\n listPlansStubbed: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/marketplace_listing/stubbed/plans\"\n },\n listRepos: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/installation/repositories\"\n },\n removeRepoFromInstallation: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"DELETE\",\n params: {\n installation_id: { required: true, type: \"integer\" },\n repository_id: { required: true, type: \"integer\" }\n },\n url: \"/user/installations/:installation_id/repositories/:repository_id\"\n },\n resetAuthorization: {\n deprecated: \"octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization\",\n method: \"POST\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n resetToken: {\n headers: { accept: \"application/vnd.github.doctor-strange-preview+json\" },\n method: \"PATCH\",\n params: {\n access_token: { type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/token\"\n },\n revokeAuthorizationForApplication: {\n deprecated: \"octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application\",\n method: \"DELETE\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n revokeGrantForApplication: {\n deprecated: \"octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application\",\n method: \"DELETE\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/grants/:access_token\"\n },\n revokeInstallationToken: {\n headers: { accept: \"application/vnd.github.gambit-preview+json\" },\n method: \"DELETE\",\n params: {},\n url: \"/installation/token\"\n }\n },\n checks: {\n create: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"POST\",\n params: {\n actions: { type: \"object[]\" },\n \"actions[].description\": { required: true, type: \"string\" },\n \"actions[].identifier\": { required: true, type: \"string\" },\n \"actions[].label\": { required: true, type: \"string\" },\n completed_at: { type: \"string\" },\n conclusion: {\n enum: [\n \"success\",\n \"failure\",\n \"neutral\",\n \"cancelled\",\n \"timed_out\",\n \"action_required\"\n ],\n type: \"string\"\n },\n details_url: { type: \"string\" },\n external_id: { type: \"string\" },\n head_sha: { required: true, type: \"string\" },\n name: { required: true, type: \"string\" },\n output: { type: \"object\" },\n \"output.annotations\": { type: \"object[]\" },\n \"output.annotations[].annotation_level\": {\n enum: [\"notice\", \"warning\", \"failure\"],\n required: true,\n type: \"string\"\n },\n \"output.annotations[].end_column\": { type: \"integer\" },\n \"output.annotations[].end_line\": { required: true, type: \"integer\" },\n \"output.annotations[].message\": { required: true, type: \"string\" },\n \"output.annotations[].path\": { required: true, type: \"string\" },\n \"output.annotations[].raw_details\": { type: \"string\" },\n \"output.annotations[].start_column\": { type: \"integer\" },\n \"output.annotations[].start_line\": { required: true, type: \"integer\" },\n \"output.annotations[].title\": { type: \"string\" },\n \"output.images\": { type: \"object[]\" },\n \"output.images[].alt\": { required: true, type: \"string\" },\n \"output.images[].caption\": { type: \"string\" },\n \"output.images[].image_url\": { required: true, type: \"string\" },\n \"output.summary\": { required: true, type: \"string\" },\n \"output.text\": { type: \"string\" },\n \"output.title\": { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n started_at: { type: \"string\" },\n status: { enum: [\"queued\", \"in_progress\", \"completed\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-runs\"\n },\n createSuite: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"POST\",\n params: {\n head_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-suites\"\n },\n get: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n check_run_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-runs/:check_run_id\"\n },\n getSuite: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n check_suite_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-suites/:check_suite_id\"\n },\n listAnnotations: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n check_run_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-runs/:check_run_id/annotations\"\n },\n listForRef: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n check_name: { type: \"string\" },\n filter: { enum: [\"latest\", \"all\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n status: { enum: [\"queued\", \"in_progress\", \"completed\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref/check-runs\"\n },\n listForSuite: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n check_name: { type: \"string\" },\n check_suite_id: { required: true, type: \"integer\" },\n filter: { enum: [\"latest\", \"all\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n status: { enum: [\"queued\", \"in_progress\", \"completed\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-suites/:check_suite_id/check-runs\"\n },\n listSuitesForRef: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"GET\",\n params: {\n app_id: { type: \"integer\" },\n check_name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref/check-suites\"\n },\n rerequestSuite: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"POST\",\n params: {\n check_suite_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-suites/:check_suite_id/rerequest\"\n },\n setSuitesPreferences: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"PATCH\",\n params: {\n auto_trigger_checks: { type: \"object[]\" },\n \"auto_trigger_checks[].app_id\": { required: true, type: \"integer\" },\n \"auto_trigger_checks[].setting\": { required: true, type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-suites/preferences\"\n },\n update: {\n headers: { accept: \"application/vnd.github.antiope-preview+json\" },\n method: \"PATCH\",\n params: {\n actions: { type: \"object[]\" },\n \"actions[].description\": { required: true, type: \"string\" },\n \"actions[].identifier\": { required: true, type: \"string\" },\n \"actions[].label\": { required: true, type: \"string\" },\n check_run_id: { required: true, type: \"integer\" },\n completed_at: { type: \"string\" },\n conclusion: {\n enum: [\n \"success\",\n \"failure\",\n \"neutral\",\n \"cancelled\",\n \"timed_out\",\n \"action_required\"\n ],\n type: \"string\"\n },\n details_url: { type: \"string\" },\n external_id: { type: \"string\" },\n name: { type: \"string\" },\n output: { type: \"object\" },\n \"output.annotations\": { type: \"object[]\" },\n \"output.annotations[].annotation_level\": {\n enum: [\"notice\", \"warning\", \"failure\"],\n required: true,\n type: \"string\"\n },\n \"output.annotations[].end_column\": { type: \"integer\" },\n \"output.annotations[].end_line\": { required: true, type: \"integer\" },\n \"output.annotations[].message\": { required: true, type: \"string\" },\n \"output.annotations[].path\": { required: true, type: \"string\" },\n \"output.annotations[].raw_details\": { type: \"string\" },\n \"output.annotations[].start_column\": { type: \"integer\" },\n \"output.annotations[].start_line\": { required: true, type: \"integer\" },\n \"output.annotations[].title\": { type: \"string\" },\n \"output.images\": { type: \"object[]\" },\n \"output.images[].alt\": { required: true, type: \"string\" },\n \"output.images[].caption\": { type: \"string\" },\n \"output.images[].image_url\": { required: true, type: \"string\" },\n \"output.summary\": { required: true, type: \"string\" },\n \"output.text\": { type: \"string\" },\n \"output.title\": { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n started_at: { type: \"string\" },\n status: { enum: [\"queued\", \"in_progress\", \"completed\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/check-runs/:check_run_id\"\n }\n },\n codesOfConduct: {\n getConductCode: {\n headers: { accept: \"application/vnd.github.scarlet-witch-preview+json\" },\n method: \"GET\",\n params: { key: { required: true, type: \"string\" } },\n url: \"/codes_of_conduct/:key\"\n },\n getForRepo: {\n headers: { accept: \"application/vnd.github.scarlet-witch-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/community/code_of_conduct\"\n },\n listConductCodes: {\n headers: { accept: \"application/vnd.github.scarlet-witch-preview+json\" },\n method: \"GET\",\n params: {},\n url: \"/codes_of_conduct\"\n }\n },\n emojis: { get: { method: \"GET\", params: {}, url: \"/emojis\" } },\n gists: {\n checkIsStarred: {\n method: \"GET\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id/star\"\n },\n create: {\n method: \"POST\",\n params: {\n description: { type: \"string\" },\n files: { required: true, type: \"object\" },\n \"files.content\": { type: \"string\" },\n public: { type: \"boolean\" }\n },\n url: \"/gists\"\n },\n createComment: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n gist_id: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id/comments\"\n },\n delete: {\n method: \"DELETE\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id\"\n },\n deleteComment: {\n method: \"DELETE\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n gist_id: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id/comments/:comment_id\"\n },\n fork: {\n method: \"POST\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id/forks\"\n },\n get: {\n method: \"GET\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id\"\n },\n getComment: {\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n gist_id: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id/comments/:comment_id\"\n },\n getRevision: {\n method: \"GET\",\n params: {\n gist_id: { required: true, type: \"string\" },\n sha: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id/:sha\"\n },\n list: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" }\n },\n url: \"/gists\"\n },\n listComments: {\n method: \"GET\",\n params: {\n gist_id: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/gists/:gist_id/comments\"\n },\n listCommits: {\n method: \"GET\",\n params: {\n gist_id: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/gists/:gist_id/commits\"\n },\n listForks: {\n method: \"GET\",\n params: {\n gist_id: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/gists/:gist_id/forks\"\n },\n listPublic: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" }\n },\n url: \"/gists/public\"\n },\n listPublicForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/gists\"\n },\n listStarred: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" }\n },\n url: \"/gists/starred\"\n },\n star: {\n method: \"PUT\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id/star\"\n },\n unstar: {\n method: \"DELETE\",\n params: { gist_id: { required: true, type: \"string\" } },\n url: \"/gists/:gist_id/star\"\n },\n update: {\n method: \"PATCH\",\n params: {\n description: { type: \"string\" },\n files: { type: \"object\" },\n \"files.content\": { type: \"string\" },\n \"files.filename\": { type: \"string\" },\n gist_id: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id\"\n },\n updateComment: {\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_id: { required: true, type: \"integer\" },\n gist_id: { required: true, type: \"string\" }\n },\n url: \"/gists/:gist_id/comments/:comment_id\"\n }\n },\n git: {\n createBlob: {\n method: \"POST\",\n params: {\n content: { required: true, type: \"string\" },\n encoding: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/blobs\"\n },\n createCommit: {\n method: \"POST\",\n params: {\n author: { type: \"object\" },\n \"author.date\": { type: \"string\" },\n \"author.email\": { type: \"string\" },\n \"author.name\": { type: \"string\" },\n committer: { type: \"object\" },\n \"committer.date\": { type: \"string\" },\n \"committer.email\": { type: \"string\" },\n \"committer.name\": { type: \"string\" },\n message: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n parents: { required: true, type: \"string[]\" },\n repo: { required: true, type: \"string\" },\n signature: { type: \"string\" },\n tree: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/commits\"\n },\n createRef: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/refs\"\n },\n createTag: {\n method: \"POST\",\n params: {\n message: { required: true, type: \"string\" },\n object: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n tag: { required: true, type: \"string\" },\n tagger: { type: \"object\" },\n \"tagger.date\": { type: \"string\" },\n \"tagger.email\": { type: \"string\" },\n \"tagger.name\": { type: \"string\" },\n type: {\n enum: [\"commit\", \"tree\", \"blob\"],\n required: true,\n type: \"string\"\n }\n },\n url: \"/repos/:owner/:repo/git/tags\"\n },\n createTree: {\n method: \"POST\",\n params: {\n base_tree: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n tree: { required: true, type: \"object[]\" },\n \"tree[].content\": { type: \"string\" },\n \"tree[].mode\": {\n enum: [\"100644\", \"100755\", \"040000\", \"160000\", \"120000\"],\n type: \"string\"\n },\n \"tree[].path\": { type: \"string\" },\n \"tree[].sha\": { allowNull: true, type: \"string\" },\n \"tree[].type\": { enum: [\"blob\", \"tree\", \"commit\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/trees\"\n },\n deleteRef: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/refs/:ref\"\n },\n getBlob: {\n method: \"GET\",\n params: {\n file_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/blobs/:file_sha\"\n },\n getCommit: {\n method: \"GET\",\n params: {\n commit_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/commits/:commit_sha\"\n },\n getRef: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/ref/:ref\"\n },\n getTag: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n tag_sha: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/tags/:tag_sha\"\n },\n getTree: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n recursive: { enum: [\"1\"], type: \"integer\" },\n repo: { required: true, type: \"string\" },\n tree_sha: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/trees/:tree_sha\"\n },\n listMatchingRefs: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/matching-refs/:ref\"\n },\n listRefs: {\n method: \"GET\",\n params: {\n namespace: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/refs/:namespace\"\n },\n updateRef: {\n method: \"PATCH\",\n params: {\n force: { type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/git/refs/:ref\"\n }\n },\n gitignore: {\n getTemplate: {\n method: \"GET\",\n params: { name: { required: true, type: \"string\" } },\n url: \"/gitignore/templates/:name\"\n },\n listTemplates: { method: \"GET\", params: {}, url: \"/gitignore/templates\" }\n },\n interactions: {\n addOrUpdateRestrictionsForOrg: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"PUT\",\n params: {\n limit: {\n enum: [\"existing_users\", \"contributors_only\", \"collaborators_only\"],\n required: true,\n type: \"string\"\n },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/interaction-limits\"\n },\n addOrUpdateRestrictionsForRepo: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"PUT\",\n params: {\n limit: {\n enum: [\"existing_users\", \"contributors_only\", \"collaborators_only\"],\n required: true,\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/interaction-limits\"\n },\n getRestrictionsForOrg: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org/interaction-limits\"\n },\n getRestrictionsForRepo: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/interaction-limits\"\n },\n removeRestrictionsForOrg: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"DELETE\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org/interaction-limits\"\n },\n removeRestrictionsForRepo: {\n headers: { accept: \"application/vnd.github.sombra-preview+json\" },\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/interaction-limits\"\n }\n },\n issues: {\n addAssignees: {\n method: \"POST\",\n params: {\n assignees: { type: \"string[]\" },\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/assignees\"\n },\n addLabels: {\n method: \"POST\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n labels: { required: true, type: \"string[]\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/labels\"\n },\n checkAssignee: {\n method: \"GET\",\n params: {\n assignee: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/assignees/:assignee\"\n },\n create: {\n method: \"POST\",\n params: {\n assignee: { type: \"string\" },\n assignees: { type: \"string[]\" },\n body: { type: \"string\" },\n labels: { type: \"string[]\" },\n milestone: { type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues\"\n },\n createComment: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/comments\"\n },\n createLabel: {\n method: \"POST\",\n params: {\n color: { required: true, type: \"string\" },\n description: { type: \"string\" },\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/labels\"\n },\n createMilestone: {\n method: \"POST\",\n params: {\n description: { type: \"string\" },\n due_on: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n state: { enum: [\"open\", \"closed\"], type: \"string\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones\"\n },\n deleteComment: {\n method: \"DELETE\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments/:comment_id\"\n },\n deleteLabel: {\n method: \"DELETE\",\n params: {\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/labels/:name\"\n },\n deleteMilestone: {\n method: \"DELETE\",\n params: {\n milestone_number: { required: true, type: \"integer\" },\n number: {\n alias: \"milestone_number\",\n deprecated: true,\n type: \"integer\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones/:milestone_number\"\n },\n get: {\n method: \"GET\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number\"\n },\n getComment: {\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments/:comment_id\"\n },\n getEvent: {\n method: \"GET\",\n params: {\n event_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/events/:event_id\"\n },\n getLabel: {\n method: \"GET\",\n params: {\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/labels/:name\"\n },\n getMilestone: {\n method: \"GET\",\n params: {\n milestone_number: { required: true, type: \"integer\" },\n number: {\n alias: \"milestone_number\",\n deprecated: true,\n type: \"integer\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones/:milestone_number\"\n },\n list: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n filter: {\n enum: [\"assigned\", \"created\", \"mentioned\", \"subscribed\", \"all\"],\n type: \"string\"\n },\n labels: { type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\", \"comments\"], type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/issues\"\n },\n listAssignees: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/assignees\"\n },\n listComments: {\n method: \"GET\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/comments\"\n },\n listCommentsForRepo: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments\"\n },\n listEvents: {\n method: \"GET\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/events\"\n },\n listEventsForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/events\"\n },\n listEventsForTimeline: {\n headers: { accept: \"application/vnd.github.mockingbird-preview+json\" },\n method: \"GET\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/timeline\"\n },\n listForAuthenticatedUser: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n filter: {\n enum: [\"assigned\", \"created\", \"mentioned\", \"subscribed\", \"all\"],\n type: \"string\"\n },\n labels: { type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\", \"comments\"], type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/user/issues\"\n },\n listForOrg: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n filter: {\n enum: [\"assigned\", \"created\", \"mentioned\", \"subscribed\", \"all\"],\n type: \"string\"\n },\n labels: { type: \"string\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\", \"comments\"], type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/orgs/:org/issues\"\n },\n listForRepo: {\n method: \"GET\",\n params: {\n assignee: { type: \"string\" },\n creator: { type: \"string\" },\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n labels: { type: \"string\" },\n mentioned: { type: \"string\" },\n milestone: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\", \"comments\"], type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues\"\n },\n listLabelsForMilestone: {\n method: \"GET\",\n params: {\n milestone_number: { required: true, type: \"integer\" },\n number: {\n alias: \"milestone_number\",\n deprecated: true,\n type: \"integer\"\n },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones/:milestone_number/labels\"\n },\n listLabelsForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/labels\"\n },\n listLabelsOnIssue: {\n method: \"GET\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/labels\"\n },\n listMilestonesForRepo: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sort: { enum: [\"due_on\", \"completeness\"], type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones\"\n },\n lock: {\n method: \"PUT\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n lock_reason: {\n enum: [\"off-topic\", \"too heated\", \"resolved\", \"spam\"],\n type: \"string\"\n },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/lock\"\n },\n removeAssignees: {\n method: \"DELETE\",\n params: {\n assignees: { type: \"string[]\" },\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/assignees\"\n },\n removeLabel: {\n method: \"DELETE\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n name: { required: true, type: \"string\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/labels/:name\"\n },\n removeLabels: {\n method: \"DELETE\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/labels\"\n },\n replaceLabels: {\n method: \"PUT\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n labels: { type: \"string[]\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/labels\"\n },\n unlock: {\n method: \"DELETE\",\n params: {\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/lock\"\n },\n update: {\n method: \"PATCH\",\n params: {\n assignee: { type: \"string\" },\n assignees: { type: \"string[]\" },\n body: { type: \"string\" },\n issue_number: { required: true, type: \"integer\" },\n labels: { type: \"string[]\" },\n milestone: { allowNull: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n state: { enum: [\"open\", \"closed\"], type: \"string\" },\n title: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number\"\n },\n updateComment: {\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments/:comment_id\"\n },\n updateLabel: {\n method: \"PATCH\",\n params: {\n color: { type: \"string\" },\n current_name: { required: true, type: \"string\" },\n description: { type: \"string\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/labels/:current_name\"\n },\n updateMilestone: {\n method: \"PATCH\",\n params: {\n description: { type: \"string\" },\n due_on: { type: \"string\" },\n milestone_number: { required: true, type: \"integer\" },\n number: {\n alias: \"milestone_number\",\n deprecated: true,\n type: \"integer\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n state: { enum: [\"open\", \"closed\"], type: \"string\" },\n title: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/milestones/:milestone_number\"\n }\n },\n licenses: {\n get: {\n method: \"GET\",\n params: { license: { required: true, type: \"string\" } },\n url: \"/licenses/:license\"\n },\n getForRepo: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/license\"\n },\n list: {\n deprecated: \"octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)\",\n method: \"GET\",\n params: {},\n url: \"/licenses\"\n },\n listCommonlyUsed: { method: \"GET\", params: {}, url: \"/licenses\" }\n },\n markdown: {\n render: {\n method: \"POST\",\n params: {\n context: { type: \"string\" },\n mode: { enum: [\"markdown\", \"gfm\"], type: \"string\" },\n text: { required: true, type: \"string\" }\n },\n url: \"/markdown\"\n },\n renderRaw: {\n headers: { \"content-type\": \"text/plain; charset=utf-8\" },\n method: \"POST\",\n params: { data: { mapTo: \"data\", required: true, type: \"string\" } },\n url: \"/markdown/raw\"\n }\n },\n meta: { get: { method: \"GET\", params: {}, url: \"/meta\" } },\n migrations: {\n cancelImport: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import\"\n },\n deleteArchiveForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"DELETE\",\n params: { migration_id: { required: true, type: \"integer\" } },\n url: \"/user/migrations/:migration_id/archive\"\n },\n deleteArchiveForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"DELETE\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/migrations/:migration_id/archive\"\n },\n downloadArchiveForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/migrations/:migration_id/archive\"\n },\n getArchiveForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: { migration_id: { required: true, type: \"integer\" } },\n url: \"/user/migrations/:migration_id/archive\"\n },\n getArchiveForOrg: {\n deprecated: \"octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)\",\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/migrations/:migration_id/archive\"\n },\n getCommitAuthors: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import/authors\"\n },\n getImportProgress: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import\"\n },\n getLargeFiles: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import/large_files\"\n },\n getStatusForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: { migration_id: { required: true, type: \"integer\" } },\n url: \"/user/migrations/:migration_id\"\n },\n getStatusForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/migrations/:migration_id\"\n },\n listForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/migrations\"\n },\n listForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/migrations\"\n },\n listReposForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/migrations/:migration_id/repositories\"\n },\n listReposForUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"GET\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/user/:migration_id/repositories\"\n },\n mapCommitAuthor: {\n method: \"PATCH\",\n params: {\n author_id: { required: true, type: \"integer\" },\n email: { type: \"string\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import/authors/:author_id\"\n },\n setLfsPreference: {\n method: \"PATCH\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n use_lfs: { enum: [\"opt_in\", \"opt_out\"], required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import/lfs\"\n },\n startForAuthenticatedUser: {\n method: \"POST\",\n params: {\n exclude_attachments: { type: \"boolean\" },\n lock_repositories: { type: \"boolean\" },\n repositories: { required: true, type: \"string[]\" }\n },\n url: \"/user/migrations\"\n },\n startForOrg: {\n method: \"POST\",\n params: {\n exclude_attachments: { type: \"boolean\" },\n lock_repositories: { type: \"boolean\" },\n org: { required: true, type: \"string\" },\n repositories: { required: true, type: \"string[]\" }\n },\n url: \"/orgs/:org/migrations\"\n },\n startImport: {\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n tfvc_project: { type: \"string\" },\n vcs: {\n enum: [\"subversion\", \"git\", \"mercurial\", \"tfvc\"],\n type: \"string\"\n },\n vcs_password: { type: \"string\" },\n vcs_url: { required: true, type: \"string\" },\n vcs_username: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import\"\n },\n unlockRepoForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"DELETE\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n repo_name: { required: true, type: \"string\" }\n },\n url: \"/user/migrations/:migration_id/repos/:repo_name/lock\"\n },\n unlockRepoForOrg: {\n headers: { accept: \"application/vnd.github.wyandotte-preview+json\" },\n method: \"DELETE\",\n params: {\n migration_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n repo_name: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/migrations/:migration_id/repos/:repo_name/lock\"\n },\n updateImport: {\n method: \"PATCH\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n vcs_password: { type: \"string\" },\n vcs_username: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/import\"\n }\n },\n oauthAuthorizations: {\n checkAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.checkAuthorization() has been renamed to octokit.apps.checkAuthorization() (2019-11-05)\",\n method: \"GET\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n createAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization\",\n method: \"POST\",\n params: {\n client_id: { type: \"string\" },\n client_secret: { type: \"string\" },\n fingerprint: { type: \"string\" },\n note: { required: true, type: \"string\" },\n note_url: { type: \"string\" },\n scopes: { type: \"string[]\" }\n },\n url: \"/authorizations\"\n },\n deleteAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization\",\n method: \"DELETE\",\n params: { authorization_id: { required: true, type: \"integer\" } },\n url: \"/authorizations/:authorization_id\"\n },\n deleteGrant: {\n deprecated: \"octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant\",\n method: \"DELETE\",\n params: { grant_id: { required: true, type: \"integer\" } },\n url: \"/applications/grants/:grant_id\"\n },\n getAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization\",\n method: \"GET\",\n params: { authorization_id: { required: true, type: \"integer\" } },\n url: \"/authorizations/:authorization_id\"\n },\n getGrant: {\n deprecated: \"octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant\",\n method: \"GET\",\n params: { grant_id: { required: true, type: \"integer\" } },\n url: \"/applications/grants/:grant_id\"\n },\n getOrCreateAuthorizationForApp: {\n deprecated: \"octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app\",\n method: \"PUT\",\n params: {\n client_id: { required: true, type: \"string\" },\n client_secret: { required: true, type: \"string\" },\n fingerprint: { type: \"string\" },\n note: { type: \"string\" },\n note_url: { type: \"string\" },\n scopes: { type: \"string[]\" }\n },\n url: \"/authorizations/clients/:client_id\"\n },\n getOrCreateAuthorizationForAppAndFingerprint: {\n deprecated: \"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint\",\n method: \"PUT\",\n params: {\n client_id: { required: true, type: \"string\" },\n client_secret: { required: true, type: \"string\" },\n fingerprint: { required: true, type: \"string\" },\n note: { type: \"string\" },\n note_url: { type: \"string\" },\n scopes: { type: \"string[]\" }\n },\n url: \"/authorizations/clients/:client_id/:fingerprint\"\n },\n getOrCreateAuthorizationForAppFingerprint: {\n deprecated: \"octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() has been renamed to octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() (2018-12-27)\",\n method: \"PUT\",\n params: {\n client_id: { required: true, type: \"string\" },\n client_secret: { required: true, type: \"string\" },\n fingerprint: { required: true, type: \"string\" },\n note: { type: \"string\" },\n note_url: { type: \"string\" },\n scopes: { type: \"string[]\" }\n },\n url: \"/authorizations/clients/:client_id/:fingerprint\"\n },\n listAuthorizations: {\n deprecated: \"octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations\",\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/authorizations\"\n },\n listGrants: {\n deprecated: \"octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants\",\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/applications/grants\"\n },\n resetAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.resetAuthorization() has been renamed to octokit.apps.resetAuthorization() (2019-11-05)\",\n method: \"POST\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n revokeAuthorizationForApplication: {\n deprecated: \"octokit.oauthAuthorizations.revokeAuthorizationForApplication() has been renamed to octokit.apps.revokeAuthorizationForApplication() (2019-11-05)\",\n method: \"DELETE\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/tokens/:access_token\"\n },\n revokeGrantForApplication: {\n deprecated: \"octokit.oauthAuthorizations.revokeGrantForApplication() has been renamed to octokit.apps.revokeGrantForApplication() (2019-11-05)\",\n method: \"DELETE\",\n params: {\n access_token: { required: true, type: \"string\" },\n client_id: { required: true, type: \"string\" }\n },\n url: \"/applications/:client_id/grants/:access_token\"\n },\n updateAuthorization: {\n deprecated: \"octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization\",\n method: \"PATCH\",\n params: {\n add_scopes: { type: \"string[]\" },\n authorization_id: { required: true, type: \"integer\" },\n fingerprint: { type: \"string\" },\n note: { type: \"string\" },\n note_url: { type: \"string\" },\n remove_scopes: { type: \"string[]\" },\n scopes: { type: \"string[]\" }\n },\n url: \"/authorizations/:authorization_id\"\n }\n },\n orgs: {\n addOrUpdateMembership: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n role: { enum: [\"admin\", \"member\"], type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/memberships/:username\"\n },\n blockUser: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/blocks/:username\"\n },\n checkBlockedUser: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/blocks/:username\"\n },\n checkMembership: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/members/:username\"\n },\n checkPublicMembership: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/public_members/:username\"\n },\n concealMembership: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/public_members/:username\"\n },\n convertMemberToOutsideCollaborator: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/outside_collaborators/:username\"\n },\n createHook: {\n method: \"POST\",\n params: {\n active: { type: \"boolean\" },\n config: { required: true, type: \"object\" },\n \"config.content_type\": { type: \"string\" },\n \"config.insecure_ssl\": { type: \"string\" },\n \"config.secret\": { type: \"string\" },\n \"config.url\": { required: true, type: \"string\" },\n events: { type: \"string[]\" },\n name: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/hooks\"\n },\n createInvitation: {\n method: \"POST\",\n params: {\n email: { type: \"string\" },\n invitee_id: { type: \"integer\" },\n org: { required: true, type: \"string\" },\n role: {\n enum: [\"admin\", \"direct_member\", \"billing_manager\"],\n type: \"string\"\n },\n team_ids: { type: \"integer[]\" }\n },\n url: \"/orgs/:org/invitations\"\n },\n deleteHook: {\n method: \"DELETE\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/hooks/:hook_id\"\n },\n get: {\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org\"\n },\n getHook: {\n method: \"GET\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/hooks/:hook_id\"\n },\n getMembership: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/memberships/:username\"\n },\n getMembershipForAuthenticatedUser: {\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/user/memberships/orgs/:org\"\n },\n list: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"integer\" }\n },\n url: \"/organizations\"\n },\n listBlockedUsers: {\n method: \"GET\",\n params: { org: { required: true, type: \"string\" } },\n url: \"/orgs/:org/blocks\"\n },\n listForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/orgs\"\n },\n listForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/orgs\"\n },\n listHooks: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/hooks\"\n },\n listInstallations: {\n headers: { accept: \"application/vnd.github.machine-man-preview+json\" },\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/installations\"\n },\n listInvitationTeams: {\n method: \"GET\",\n params: {\n invitation_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/invitations/:invitation_id/teams\"\n },\n listMembers: {\n method: \"GET\",\n params: {\n filter: { enum: [\"2fa_disabled\", \"all\"], type: \"string\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n role: { enum: [\"all\", \"admin\", \"member\"], type: \"string\" }\n },\n url: \"/orgs/:org/members\"\n },\n listMemberships: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n state: { enum: [\"active\", \"pending\"], type: \"string\" }\n },\n url: \"/user/memberships/orgs\"\n },\n listOutsideCollaborators: {\n method: \"GET\",\n params: {\n filter: { enum: [\"2fa_disabled\", \"all\"], type: \"string\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/outside_collaborators\"\n },\n listPendingInvitations: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/invitations\"\n },\n listPublicMembers: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/public_members\"\n },\n pingHook: {\n method: \"POST\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/hooks/:hook_id/pings\"\n },\n publicizeMembership: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/public_members/:username\"\n },\n removeMember: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/members/:username\"\n },\n removeMembership: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/memberships/:username\"\n },\n removeOutsideCollaborator: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/outside_collaborators/:username\"\n },\n unblockUser: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/blocks/:username\"\n },\n update: {\n method: \"PATCH\",\n params: {\n billing_email: { type: \"string\" },\n company: { type: \"string\" },\n default_repository_permission: {\n enum: [\"read\", \"write\", \"admin\", \"none\"],\n type: \"string\"\n },\n description: { type: \"string\" },\n email: { type: \"string\" },\n has_organization_projects: { type: \"boolean\" },\n has_repository_projects: { type: \"boolean\" },\n location: { type: \"string\" },\n members_allowed_repository_creation_type: {\n enum: [\"all\", \"private\", \"none\"],\n type: \"string\"\n },\n members_can_create_internal_repositories: { type: \"boolean\" },\n members_can_create_private_repositories: { type: \"boolean\" },\n members_can_create_public_repositories: { type: \"boolean\" },\n members_can_create_repositories: { type: \"boolean\" },\n name: { type: \"string\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org\"\n },\n updateHook: {\n method: \"PATCH\",\n params: {\n active: { type: \"boolean\" },\n config: { type: \"object\" },\n \"config.content_type\": { type: \"string\" },\n \"config.insecure_ssl\": { type: \"string\" },\n \"config.secret\": { type: \"string\" },\n \"config.url\": { required: true, type: \"string\" },\n events: { type: \"string[]\" },\n hook_id: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/hooks/:hook_id\"\n },\n updateMembership: {\n method: \"PATCH\",\n params: {\n org: { required: true, type: \"string\" },\n state: { enum: [\"active\"], required: true, type: \"string\" }\n },\n url: \"/user/memberships/orgs/:org\"\n }\n },\n projects: {\n addCollaborator: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PUT\",\n params: {\n permission: { enum: [\"read\", \"write\", \"admin\"], type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/projects/:project_id/collaborators/:username\"\n },\n createCard: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n column_id: { required: true, type: \"integer\" },\n content_id: { type: \"integer\" },\n content_type: { type: \"string\" },\n note: { type: \"string\" }\n },\n url: \"/projects/columns/:column_id/cards\"\n },\n createColumn: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n name: { required: true, type: \"string\" },\n project_id: { required: true, type: \"integer\" }\n },\n url: \"/projects/:project_id/columns\"\n },\n createForAuthenticatedUser: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n name: { required: true, type: \"string\" }\n },\n url: \"/user/projects\"\n },\n createForOrg: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n name: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/projects\"\n },\n createForRepo: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n name: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/projects\"\n },\n delete: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"DELETE\",\n params: { project_id: { required: true, type: \"integer\" } },\n url: \"/projects/:project_id\"\n },\n deleteCard: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"DELETE\",\n params: { card_id: { required: true, type: \"integer\" } },\n url: \"/projects/columns/cards/:card_id\"\n },\n deleteColumn: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"DELETE\",\n params: { column_id: { required: true, type: \"integer\" } },\n url: \"/projects/columns/:column_id\"\n },\n get: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: { project_id: { required: true, type: \"integer\" } },\n url: \"/projects/:project_id\"\n },\n getCard: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: { card_id: { required: true, type: \"integer\" } },\n url: \"/projects/columns/cards/:card_id\"\n },\n getColumn: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: { column_id: { required: true, type: \"integer\" } },\n url: \"/projects/columns/:column_id\"\n },\n listCards: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n archived_state: {\n enum: [\"all\", \"archived\", \"not_archived\"],\n type: \"string\"\n },\n column_id: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/projects/columns/:column_id/cards\"\n },\n listCollaborators: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n affiliation: { enum: [\"outside\", \"direct\", \"all\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n project_id: { required: true, type: \"integer\" }\n },\n url: \"/projects/:project_id/collaborators\"\n },\n listColumns: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n project_id: { required: true, type: \"integer\" }\n },\n url: \"/projects/:project_id/columns\"\n },\n listForOrg: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/orgs/:org/projects\"\n },\n listForRepo: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/projects\"\n },\n listForUser: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/projects\"\n },\n moveCard: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n card_id: { required: true, type: \"integer\" },\n column_id: { type: \"integer\" },\n position: {\n required: true,\n type: \"string\",\n validation: \"^(top|bottom|after:\\\\d+)$\"\n }\n },\n url: \"/projects/columns/cards/:card_id/moves\"\n },\n moveColumn: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"POST\",\n params: {\n column_id: { required: true, type: \"integer\" },\n position: {\n required: true,\n type: \"string\",\n validation: \"^(first|last|after:\\\\d+)$\"\n }\n },\n url: \"/projects/columns/:column_id/moves\"\n },\n removeCollaborator: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"DELETE\",\n params: {\n project_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/projects/:project_id/collaborators/:username\"\n },\n reviewUserPermissionLevel: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n project_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/projects/:project_id/collaborators/:username/permission\"\n },\n update: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PATCH\",\n params: {\n body: { type: \"string\" },\n name: { type: \"string\" },\n organization_permission: { type: \"string\" },\n private: { type: \"boolean\" },\n project_id: { required: true, type: \"integer\" },\n state: { enum: [\"open\", \"closed\"], type: \"string\" }\n },\n url: \"/projects/:project_id\"\n },\n updateCard: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PATCH\",\n params: {\n archived: { type: \"boolean\" },\n card_id: { required: true, type: \"integer\" },\n note: { type: \"string\" }\n },\n url: \"/projects/columns/cards/:card_id\"\n },\n updateColumn: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PATCH\",\n params: {\n column_id: { required: true, type: \"integer\" },\n name: { required: true, type: \"string\" }\n },\n url: \"/projects/columns/:column_id\"\n }\n },\n pulls: {\n checkIfMerged: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/merge\"\n },\n create: {\n method: \"POST\",\n params: {\n base: { required: true, type: \"string\" },\n body: { type: \"string\" },\n draft: { type: \"boolean\" },\n head: { required: true, type: \"string\" },\n maintainer_can_modify: { type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls\"\n },\n createComment: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n commit_id: { required: true, type: \"string\" },\n in_reply_to: {\n deprecated: true,\n description: \"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 type: \"integer\"\n },\n line: { type: \"integer\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n position: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n side: { enum: [\"LEFT\", \"RIGHT\"], type: \"string\" },\n start_line: { type: \"integer\" },\n start_side: { enum: [\"LEFT\", \"RIGHT\", \"side\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/comments\"\n },\n createCommentReply: {\n deprecated: \"octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09)\",\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n commit_id: { required: true, type: \"string\" },\n in_reply_to: {\n deprecated: true,\n description: \"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 type: \"integer\"\n },\n line: { type: \"integer\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n position: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n side: { enum: [\"LEFT\", \"RIGHT\"], type: \"string\" },\n start_line: { type: \"integer\" },\n start_side: { enum: [\"LEFT\", \"RIGHT\", \"side\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/comments\"\n },\n createFromIssue: {\n deprecated: \"octokit.pulls.createFromIssue() is deprecated, see https://developer.github.com/v3/pulls/#create-a-pull-request\",\n method: \"POST\",\n params: {\n base: { required: true, type: \"string\" },\n draft: { type: \"boolean\" },\n head: { required: true, type: \"string\" },\n issue: { required: true, type: \"integer\" },\n maintainer_can_modify: { type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls\"\n },\n createReview: {\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n comments: { type: \"object[]\" },\n \"comments[].body\": { required: true, type: \"string\" },\n \"comments[].path\": { required: true, type: \"string\" },\n \"comments[].position\": { required: true, type: \"integer\" },\n commit_id: { type: \"string\" },\n event: {\n enum: [\"APPROVE\", \"REQUEST_CHANGES\", \"COMMENT\"],\n type: \"string\"\n },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews\"\n },\n createReviewCommentReply: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies\"\n },\n createReviewRequest: {\n method: \"POST\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n reviewers: { type: \"string[]\" },\n team_reviewers: { type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers\"\n },\n deleteComment: {\n method: \"DELETE\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments/:comment_id\"\n },\n deletePendingReview: {\n method: \"DELETE\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id\"\n },\n deleteReviewRequest: {\n method: \"DELETE\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n reviewers: { type: \"string[]\" },\n team_reviewers: { type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers\"\n },\n dismissReview: {\n method: \"PUT\",\n params: {\n message: { required: true, type: \"string\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals\"\n },\n get: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number\"\n },\n getComment: {\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments/:comment_id\"\n },\n getCommentsForReview: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments\"\n },\n getReview: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id\"\n },\n list: {\n method: \"GET\",\n params: {\n base: { type: \"string\" },\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n head: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sort: {\n enum: [\"created\", \"updated\", \"popularity\", \"long-running\"],\n type: \"string\"\n },\n state: { enum: [\"open\", \"closed\", \"all\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls\"\n },\n listComments: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/comments\"\n },\n listCommentsForRepo: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n since: { type: \"string\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments\"\n },\n listCommits: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/commits\"\n },\n listFiles: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/files\"\n },\n listReviewRequests: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/requested_reviewers\"\n },\n listReviews: {\n method: \"GET\",\n params: {\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews\"\n },\n merge: {\n method: \"PUT\",\n params: {\n commit_message: { type: \"string\" },\n commit_title: { type: \"string\" },\n merge_method: { enum: [\"merge\", \"squash\", \"rebase\"], type: \"string\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/merge\"\n },\n submitReview: {\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n event: {\n enum: [\"APPROVE\", \"REQUEST_CHANGES\", \"COMMENT\"],\n required: true,\n type: \"string\"\n },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events\"\n },\n update: {\n method: \"PATCH\",\n params: {\n base: { type: \"string\" },\n body: { type: \"string\" },\n maintainer_can_modify: { type: \"boolean\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n state: { enum: [\"open\", \"closed\"], type: \"string\" },\n title: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number\"\n },\n updateBranch: {\n headers: { accept: \"application/vnd.github.lydian-preview+json\" },\n method: \"PUT\",\n params: {\n expected_head_sha: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/update-branch\"\n },\n updateComment: {\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments/:comment_id\"\n },\n updateReview: {\n method: \"PUT\",\n params: {\n body: { required: true, type: \"string\" },\n number: { alias: \"pull_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n pull_number: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n review_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id\"\n }\n },\n rateLimit: { get: { method: \"GET\", params: {}, url: \"/rate_limit\" } },\n reactions: {\n createForCommitComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments/:comment_id/reactions\"\n },\n createForIssue: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/reactions\"\n },\n createForIssueComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments/:comment_id/reactions\"\n },\n createForPullRequestReviewComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments/:comment_id/reactions\"\n },\n createForTeamDiscussion: {\n deprecated: \"octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/reactions\"\n },\n createForTeamDiscussionComment: {\n deprecated: \"octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n createForTeamDiscussionCommentInOrg: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n createForTeamDiscussionCommentLegacy: {\n deprecated: \"octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n createForTeamDiscussionInOrg: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions\"\n },\n createForTeamDiscussionLegacy: {\n deprecated: \"octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"POST\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n required: true,\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/reactions\"\n },\n delete: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"DELETE\",\n params: { reaction_id: { required: true, type: \"integer\" } },\n url: \"/reactions/:reaction_id\"\n },\n listForCommitComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments/:comment_id/reactions\"\n },\n listForIssue: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n issue_number: { required: true, type: \"integer\" },\n number: { alias: \"issue_number\", deprecated: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/:issue_number/reactions\"\n },\n listForIssueComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/issues/comments/:comment_id/reactions\"\n },\n listForPullRequestReviewComment: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pulls/comments/:comment_id/reactions\"\n },\n listForTeamDiscussion: {\n deprecated: \"octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/reactions\"\n },\n listForTeamDiscussionComment: {\n deprecated: \"octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n listForTeamDiscussionCommentInOrg: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n listForTeamDiscussionCommentLegacy: {\n deprecated: \"octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions\"\n },\n listForTeamDiscussionInOrg: {\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions\"\n },\n listForTeamDiscussionLegacy: {\n deprecated: \"octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy\",\n headers: { accept: \"application/vnd.github.squirrel-girl-preview+json\" },\n method: \"GET\",\n params: {\n content: {\n enum: [\n \"+1\",\n \"-1\",\n \"laugh\",\n \"confused\",\n \"heart\",\n \"hooray\",\n \"rocket\",\n \"eyes\"\n ],\n type: \"string\"\n },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/reactions\"\n }\n },\n repos: {\n acceptInvitation: {\n method: \"PATCH\",\n params: { invitation_id: { required: true, type: \"integer\" } },\n url: \"/user/repository_invitations/:invitation_id\"\n },\n addCollaborator: {\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n repo: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/collaborators/:username\"\n },\n addDeployKey: {\n method: \"POST\",\n params: {\n key: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n read_only: { type: \"boolean\" },\n repo: { required: true, type: \"string\" },\n title: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/keys\"\n },\n addProtectedBranchAdminEnforcement: {\n method: \"POST\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/enforce_admins\"\n },\n addProtectedBranchAppRestrictions: {\n method: \"POST\",\n params: {\n apps: { mapTo: \"data\", required: true, type: \"string[]\" },\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps\"\n },\n addProtectedBranchRequiredSignatures: {\n headers: { accept: \"application/vnd.github.zzzax-preview+json\" },\n method: \"POST\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_signatures\"\n },\n addProtectedBranchRequiredStatusChecksContexts: {\n method: \"POST\",\n params: {\n branch: { required: true, type: \"string\" },\n contexts: { mapTo: \"data\", required: true, type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts\"\n },\n addProtectedBranchTeamRestrictions: {\n method: \"POST\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n teams: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n addProtectedBranchUserRestrictions: {\n method: \"POST\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n users: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n checkCollaborator: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/collaborators/:username\"\n },\n checkVulnerabilityAlerts: {\n headers: { accept: \"application/vnd.github.dorian-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/vulnerability-alerts\"\n },\n compareCommits: {\n method: \"GET\",\n params: {\n base: { required: true, type: \"string\" },\n head: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/compare/:base...:head\"\n },\n createCommitComment: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n commit_sha: { required: true, type: \"string\" },\n line: { type: \"integer\" },\n owner: { required: true, type: \"string\" },\n path: { type: \"string\" },\n position: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sha: { alias: \"commit_sha\", deprecated: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:commit_sha/comments\"\n },\n createDeployment: {\n method: \"POST\",\n params: {\n auto_merge: { type: \"boolean\" },\n description: { type: \"string\" },\n environment: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n payload: { type: \"string\" },\n production_environment: { type: \"boolean\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n required_contexts: { type: \"string[]\" },\n task: { type: \"string\" },\n transient_environment: { type: \"boolean\" }\n },\n url: \"/repos/:owner/:repo/deployments\"\n },\n createDeploymentStatus: {\n method: \"POST\",\n params: {\n auto_inactive: { type: \"boolean\" },\n deployment_id: { required: true, type: \"integer\" },\n description: { type: \"string\" },\n environment: { enum: [\"production\", \"staging\", \"qa\"], type: \"string\" },\n environment_url: { type: \"string\" },\n log_url: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n state: {\n enum: [\n \"error\",\n \"failure\",\n \"inactive\",\n \"in_progress\",\n \"queued\",\n \"pending\",\n \"success\"\n ],\n required: true,\n type: \"string\"\n },\n target_url: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/deployments/:deployment_id/statuses\"\n },\n createDispatchEvent: {\n method: \"POST\",\n params: {\n client_payload: { type: \"object\" },\n event_type: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/dispatches\"\n },\n createFile: {\n deprecated: \"octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)\",\n method: \"PUT\",\n params: {\n author: { type: \"object\" },\n \"author.email\": { required: true, type: \"string\" },\n \"author.name\": { required: true, type: \"string\" },\n branch: { type: \"string\" },\n committer: { type: \"object\" },\n \"committer.email\": { required: true, type: \"string\" },\n \"committer.name\": { required: true, type: \"string\" },\n content: { required: true, type: \"string\" },\n message: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contents/:path\"\n },\n createForAuthenticatedUser: {\n method: \"POST\",\n params: {\n allow_merge_commit: { type: \"boolean\" },\n allow_rebase_merge: { type: \"boolean\" },\n allow_squash_merge: { type: \"boolean\" },\n auto_init: { type: \"boolean\" },\n delete_branch_on_merge: { type: \"boolean\" },\n description: { type: \"string\" },\n gitignore_template: { type: \"string\" },\n has_issues: { type: \"boolean\" },\n has_projects: { type: \"boolean\" },\n has_wiki: { type: \"boolean\" },\n homepage: { type: \"string\" },\n is_template: { type: \"boolean\" },\n license_template: { type: \"string\" },\n name: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n team_id: { type: \"integer\" },\n visibility: {\n enum: [\"public\", \"private\", \"visibility\", \"internal\"],\n type: \"string\"\n }\n },\n url: \"/user/repos\"\n },\n createFork: {\n method: \"POST\",\n params: {\n organization: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/forks\"\n },\n createHook: {\n method: \"POST\",\n params: {\n active: { type: \"boolean\" },\n config: { required: true, type: \"object\" },\n \"config.content_type\": { type: \"string\" },\n \"config.insecure_ssl\": { type: \"string\" },\n \"config.secret\": { type: \"string\" },\n \"config.url\": { required: true, type: \"string\" },\n events: { type: \"string[]\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks\"\n },\n createInOrg: {\n method: \"POST\",\n params: {\n allow_merge_commit: { type: \"boolean\" },\n allow_rebase_merge: { type: \"boolean\" },\n allow_squash_merge: { type: \"boolean\" },\n auto_init: { type: \"boolean\" },\n delete_branch_on_merge: { type: \"boolean\" },\n description: { type: \"string\" },\n gitignore_template: { type: \"string\" },\n has_issues: { type: \"boolean\" },\n has_projects: { type: \"boolean\" },\n has_wiki: { type: \"boolean\" },\n homepage: { type: \"string\" },\n is_template: { type: \"boolean\" },\n license_template: { type: \"string\" },\n name: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n team_id: { type: \"integer\" },\n visibility: {\n enum: [\"public\", \"private\", \"visibility\", \"internal\"],\n type: \"string\"\n }\n },\n url: \"/orgs/:org/repos\"\n },\n createOrUpdateFile: {\n method: \"PUT\",\n params: {\n author: { type: \"object\" },\n \"author.email\": { required: true, type: \"string\" },\n \"author.name\": { required: true, type: \"string\" },\n branch: { type: \"string\" },\n committer: { type: \"object\" },\n \"committer.email\": { required: true, type: \"string\" },\n \"committer.name\": { required: true, type: \"string\" },\n content: { required: true, type: \"string\" },\n message: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contents/:path\"\n },\n createRelease: {\n method: \"POST\",\n params: {\n body: { type: \"string\" },\n draft: { type: \"boolean\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n prerelease: { type: \"boolean\" },\n repo: { required: true, type: \"string\" },\n tag_name: { required: true, type: \"string\" },\n target_commitish: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases\"\n },\n createStatus: {\n method: \"POST\",\n params: {\n context: { type: \"string\" },\n description: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { required: true, type: \"string\" },\n state: {\n enum: [\"error\", \"failure\", \"pending\", \"success\"],\n required: true,\n type: \"string\"\n },\n target_url: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/statuses/:sha\"\n },\n createUsingTemplate: {\n headers: { accept: \"application/vnd.github.baptiste-preview+json\" },\n method: \"POST\",\n params: {\n description: { type: \"string\" },\n name: { required: true, type: \"string\" },\n owner: { type: \"string\" },\n private: { type: \"boolean\" },\n template_owner: { required: true, type: \"string\" },\n template_repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:template_owner/:template_repo/generate\"\n },\n declineInvitation: {\n method: \"DELETE\",\n params: { invitation_id: { required: true, type: \"integer\" } },\n url: \"/user/repository_invitations/:invitation_id\"\n },\n delete: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo\"\n },\n deleteCommitComment: {\n method: \"DELETE\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments/:comment_id\"\n },\n deleteDownload: {\n method: \"DELETE\",\n params: {\n download_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/downloads/:download_id\"\n },\n deleteFile: {\n method: \"DELETE\",\n params: {\n author: { type: \"object\" },\n \"author.email\": { type: \"string\" },\n \"author.name\": { type: \"string\" },\n branch: { type: \"string\" },\n committer: { type: \"object\" },\n \"committer.email\": { type: \"string\" },\n \"committer.name\": { type: \"string\" },\n message: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contents/:path\"\n },\n deleteHook: {\n method: \"DELETE\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks/:hook_id\"\n },\n deleteInvitation: {\n method: \"DELETE\",\n params: {\n invitation_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/invitations/:invitation_id\"\n },\n deleteRelease: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n release_id: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/:release_id\"\n },\n deleteReleaseAsset: {\n method: \"DELETE\",\n params: {\n asset_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/assets/:asset_id\"\n },\n disableAutomatedSecurityFixes: {\n headers: { accept: \"application/vnd.github.london-preview+json\" },\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/automated-security-fixes\"\n },\n disablePagesSite: {\n headers: { accept: \"application/vnd.github.switcheroo-preview+json\" },\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages\"\n },\n disableVulnerabilityAlerts: {\n headers: { accept: \"application/vnd.github.dorian-preview+json\" },\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/vulnerability-alerts\"\n },\n enableAutomatedSecurityFixes: {\n headers: { accept: \"application/vnd.github.london-preview+json\" },\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/automated-security-fixes\"\n },\n enablePagesSite: {\n headers: { accept: \"application/vnd.github.switcheroo-preview+json\" },\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n source: { type: \"object\" },\n \"source.branch\": { enum: [\"master\", \"gh-pages\"], type: \"string\" },\n \"source.path\": { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages\"\n },\n enableVulnerabilityAlerts: {\n headers: { accept: \"application/vnd.github.dorian-preview+json\" },\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/vulnerability-alerts\"\n },\n get: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo\"\n },\n getAppsWithAccessToProtectedBranch: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps\"\n },\n getArchiveLink: {\n method: \"GET\",\n params: {\n archive_format: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/:archive_format/:ref\"\n },\n getBranch: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch\"\n },\n getBranchProtection: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection\"\n },\n getClones: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n per: { enum: [\"day\", \"week\"], type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/traffic/clones\"\n },\n getCodeFrequencyStats: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stats/code_frequency\"\n },\n getCollaboratorPermissionLevel: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/collaborators/:username/permission\"\n },\n getCombinedStatusForRef: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref/status\"\n },\n getCommit: {\n method: \"GET\",\n params: {\n commit_sha: { alias: \"ref\", deprecated: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { alias: \"ref\", deprecated: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref\"\n },\n getCommitActivityStats: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stats/commit_activity\"\n },\n getCommitComment: {\n method: \"GET\",\n params: {\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments/:comment_id\"\n },\n getCommitRefSha: {\n deprecated: \"octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit\",\n headers: { accept: \"application/vnd.github.v3.sha\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref\"\n },\n getContents: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n ref: { type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contents/:path\"\n },\n getContributorsStats: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stats/contributors\"\n },\n getDeployKey: {\n method: \"GET\",\n params: {\n key_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/keys/:key_id\"\n },\n getDeployment: {\n method: \"GET\",\n params: {\n deployment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/deployments/:deployment_id\"\n },\n getDeploymentStatus: {\n method: \"GET\",\n params: {\n deployment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n status_id: { required: true, type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id\"\n },\n getDownload: {\n method: \"GET\",\n params: {\n download_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/downloads/:download_id\"\n },\n getHook: {\n method: \"GET\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks/:hook_id\"\n },\n getLatestPagesBuild: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages/builds/latest\"\n },\n getLatestRelease: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/latest\"\n },\n getPages: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages\"\n },\n getPagesBuild: {\n method: \"GET\",\n params: {\n build_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages/builds/:build_id\"\n },\n getParticipationStats: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stats/participation\"\n },\n getProtectedBranchAdminEnforcement: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/enforce_admins\"\n },\n getProtectedBranchPullRequestReviewEnforcement: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews\"\n },\n getProtectedBranchRequiredSignatures: {\n headers: { accept: \"application/vnd.github.zzzax-preview+json\" },\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_signatures\"\n },\n getProtectedBranchRequiredStatusChecks: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks\"\n },\n getProtectedBranchRestrictions: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions\"\n },\n getPunchCardStats: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/stats/punch_card\"\n },\n getReadme: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n ref: { type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/readme\"\n },\n getRelease: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n release_id: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/:release_id\"\n },\n getReleaseAsset: {\n method: \"GET\",\n params: {\n asset_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/assets/:asset_id\"\n },\n getReleaseByTag: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n tag: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/tags/:tag\"\n },\n getTeamsWithAccessToProtectedBranch: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n getTopPaths: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/traffic/popular/paths\"\n },\n getTopReferrers: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/traffic/popular/referrers\"\n },\n getUsersWithAccessToProtectedBranch: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n getViews: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n per: { enum: [\"day\", \"week\"], type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/traffic/views\"\n },\n list: {\n method: \"GET\",\n params: {\n affiliation: { type: \"string\" },\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n sort: {\n enum: [\"created\", \"updated\", \"pushed\", \"full_name\"],\n type: \"string\"\n },\n type: {\n enum: [\"all\", \"owner\", \"public\", \"private\", \"member\"],\n type: \"string\"\n },\n visibility: { enum: [\"all\", \"public\", \"private\"], type: \"string\" }\n },\n url: \"/user/repos\"\n },\n listAppsWithAccessToProtectedBranch: {\n deprecated: \"octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13)\",\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps\"\n },\n listAssetsForRelease: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n release_id: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/:release_id/assets\"\n },\n listBranches: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n protected: { type: \"boolean\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches\"\n },\n listBranchesForHeadCommit: {\n headers: { accept: \"application/vnd.github.groot-preview+json\" },\n method: \"GET\",\n params: {\n commit_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:commit_sha/branches-where-head\"\n },\n listCollaborators: {\n method: \"GET\",\n params: {\n affiliation: { enum: [\"outside\", \"direct\", \"all\"], type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/collaborators\"\n },\n listCommentsForCommit: {\n method: \"GET\",\n params: {\n commit_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { alias: \"commit_sha\", deprecated: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:commit_sha/comments\"\n },\n listCommitComments: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments\"\n },\n listCommits: {\n method: \"GET\",\n params: {\n author: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n path: { type: \"string\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" },\n since: { type: \"string\" },\n until: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits\"\n },\n listContributors: {\n method: \"GET\",\n params: {\n anon: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contributors\"\n },\n listDeployKeys: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/keys\"\n },\n listDeploymentStatuses: {\n method: \"GET\",\n params: {\n deployment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/deployments/:deployment_id/statuses\"\n },\n listDeployments: {\n method: \"GET\",\n params: {\n environment: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" },\n task: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/deployments\"\n },\n listDownloads: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/downloads\"\n },\n listForOrg: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n sort: {\n enum: [\"created\", \"updated\", \"pushed\", \"full_name\"],\n type: \"string\"\n },\n type: {\n enum: [\n \"all\",\n \"public\",\n \"private\",\n \"forks\",\n \"sources\",\n \"member\",\n \"internal\"\n ],\n type: \"string\"\n }\n },\n url: \"/orgs/:org/repos\"\n },\n listForUser: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n sort: {\n enum: [\"created\", \"updated\", \"pushed\", \"full_name\"],\n type: \"string\"\n },\n type: { enum: [\"all\", \"owner\", \"member\"], type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/repos\"\n },\n listForks: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" },\n sort: { enum: [\"newest\", \"oldest\", \"stargazers\"], type: \"string\" }\n },\n url: \"/repos/:owner/:repo/forks\"\n },\n listHooks: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks\"\n },\n listInvitations: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/invitations\"\n },\n listInvitationsForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/repository_invitations\"\n },\n listLanguages: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/languages\"\n },\n listPagesBuilds: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages/builds\"\n },\n listProtectedBranchRequiredStatusChecksContexts: {\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts\"\n },\n listProtectedBranchTeamRestrictions: {\n deprecated: \"octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09)\",\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n listProtectedBranchUserRestrictions: {\n deprecated: \"octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09)\",\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n listPublic: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"integer\" }\n },\n url: \"/repositories\"\n },\n listPullRequestsAssociatedWithCommit: {\n headers: { accept: \"application/vnd.github.groot-preview+json\" },\n method: \"GET\",\n params: {\n commit_sha: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:commit_sha/pulls\"\n },\n listReleases: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases\"\n },\n listStatusesForRef: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n ref: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/commits/:ref/statuses\"\n },\n listTags: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/tags\"\n },\n listTeams: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/teams\"\n },\n listTeamsWithAccessToProtectedBranch: {\n deprecated: \"octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13)\",\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n listTopics: {\n headers: { accept: \"application/vnd.github.mercy-preview+json\" },\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/topics\"\n },\n listUsersWithAccessToProtectedBranch: {\n deprecated: \"octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13)\",\n method: \"GET\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n merge: {\n method: \"POST\",\n params: {\n base: { required: true, type: \"string\" },\n commit_message: { type: \"string\" },\n head: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/merges\"\n },\n pingHook: {\n method: \"POST\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks/:hook_id/pings\"\n },\n removeBranchProtection: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection\"\n },\n removeCollaborator: {\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/collaborators/:username\"\n },\n removeDeployKey: {\n method: \"DELETE\",\n params: {\n key_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/keys/:key_id\"\n },\n removeProtectedBranchAdminEnforcement: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/enforce_admins\"\n },\n removeProtectedBranchAppRestrictions: {\n method: \"DELETE\",\n params: {\n apps: { mapTo: \"data\", required: true, type: \"string[]\" },\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps\"\n },\n removeProtectedBranchPullRequestReviewEnforcement: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews\"\n },\n removeProtectedBranchRequiredSignatures: {\n headers: { accept: \"application/vnd.github.zzzax-preview+json\" },\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_signatures\"\n },\n removeProtectedBranchRequiredStatusChecks: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks\"\n },\n removeProtectedBranchRequiredStatusChecksContexts: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n contexts: { mapTo: \"data\", required: true, type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts\"\n },\n removeProtectedBranchRestrictions: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions\"\n },\n removeProtectedBranchTeamRestrictions: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n teams: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n removeProtectedBranchUserRestrictions: {\n method: \"DELETE\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n users: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n replaceProtectedBranchAppRestrictions: {\n method: \"PUT\",\n params: {\n apps: { mapTo: \"data\", required: true, type: \"string[]\" },\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/apps\"\n },\n replaceProtectedBranchRequiredStatusChecksContexts: {\n method: \"PUT\",\n params: {\n branch: { required: true, type: \"string\" },\n contexts: { mapTo: \"data\", required: true, type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts\"\n },\n replaceProtectedBranchTeamRestrictions: {\n method: \"PUT\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n teams: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/teams\"\n },\n replaceProtectedBranchUserRestrictions: {\n method: \"PUT\",\n params: {\n branch: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n users: { mapTo: \"data\", required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/restrictions/users\"\n },\n replaceTopics: {\n headers: { accept: \"application/vnd.github.mercy-preview+json\" },\n method: \"PUT\",\n params: {\n names: { required: true, type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/topics\"\n },\n requestPageBuild: {\n method: \"POST\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/pages/builds\"\n },\n retrieveCommunityProfileMetrics: {\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/community/profile\"\n },\n testPushHook: {\n method: \"POST\",\n params: {\n hook_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks/:hook_id/tests\"\n },\n transfer: {\n method: \"POST\",\n params: {\n new_owner: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_ids: { type: \"integer[]\" }\n },\n url: \"/repos/:owner/:repo/transfer\"\n },\n update: {\n method: \"PATCH\",\n params: {\n allow_merge_commit: { type: \"boolean\" },\n allow_rebase_merge: { type: \"boolean\" },\n allow_squash_merge: { type: \"boolean\" },\n archived: { type: \"boolean\" },\n default_branch: { type: \"string\" },\n delete_branch_on_merge: { type: \"boolean\" },\n description: { type: \"string\" },\n has_issues: { type: \"boolean\" },\n has_projects: { type: \"boolean\" },\n has_wiki: { type: \"boolean\" },\n homepage: { type: \"string\" },\n is_template: { type: \"boolean\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n repo: { required: true, type: \"string\" },\n visibility: {\n enum: [\"public\", \"private\", \"visibility\", \"internal\"],\n type: \"string\"\n }\n },\n url: \"/repos/:owner/:repo\"\n },\n updateBranchProtection: {\n method: \"PUT\",\n params: {\n allow_deletions: { type: \"boolean\" },\n allow_force_pushes: { allowNull: true, type: \"boolean\" },\n branch: { required: true, type: \"string\" },\n enforce_admins: { allowNull: true, required: true, type: \"boolean\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n required_linear_history: { type: \"boolean\" },\n required_pull_request_reviews: {\n allowNull: true,\n required: true,\n type: \"object\"\n },\n \"required_pull_request_reviews.dismiss_stale_reviews\": {\n type: \"boolean\"\n },\n \"required_pull_request_reviews.dismissal_restrictions\": {\n type: \"object\"\n },\n \"required_pull_request_reviews.dismissal_restrictions.teams\": {\n type: \"string[]\"\n },\n \"required_pull_request_reviews.dismissal_restrictions.users\": {\n type: \"string[]\"\n },\n \"required_pull_request_reviews.require_code_owner_reviews\": {\n type: \"boolean\"\n },\n \"required_pull_request_reviews.required_approving_review_count\": {\n type: \"integer\"\n },\n required_status_checks: {\n allowNull: true,\n required: true,\n type: \"object\"\n },\n \"required_status_checks.contexts\": { required: true, type: \"string[]\" },\n \"required_status_checks.strict\": { required: true, type: \"boolean\" },\n restrictions: { allowNull: true, required: true, type: \"object\" },\n \"restrictions.apps\": { type: \"string[]\" },\n \"restrictions.teams\": { required: true, type: \"string[]\" },\n \"restrictions.users\": { required: true, type: \"string[]\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection\"\n },\n updateCommitComment: {\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/comments/:comment_id\"\n },\n updateFile: {\n deprecated: \"octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07)\",\n method: \"PUT\",\n params: {\n author: { type: \"object\" },\n \"author.email\": { required: true, type: \"string\" },\n \"author.name\": { required: true, type: \"string\" },\n branch: { type: \"string\" },\n committer: { type: \"object\" },\n \"committer.email\": { required: true, type: \"string\" },\n \"committer.name\": { required: true, type: \"string\" },\n content: { required: true, type: \"string\" },\n message: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n path: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n sha: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/contents/:path\"\n },\n updateHook: {\n method: \"PATCH\",\n params: {\n active: { type: \"boolean\" },\n add_events: { type: \"string[]\" },\n config: { type: \"object\" },\n \"config.content_type\": { type: \"string\" },\n \"config.insecure_ssl\": { type: \"string\" },\n \"config.secret\": { type: \"string\" },\n \"config.url\": { required: true, type: \"string\" },\n events: { type: \"string[]\" },\n hook_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n remove_events: { type: \"string[]\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/hooks/:hook_id\"\n },\n updateInformationAboutPagesSite: {\n method: \"PUT\",\n params: {\n cname: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n source: {\n enum: ['\"gh-pages\"', '\"master\"', '\"master /docs\"'],\n type: \"string\"\n }\n },\n url: \"/repos/:owner/:repo/pages\"\n },\n updateInvitation: {\n method: \"PATCH\",\n params: {\n invitation_id: { required: true, type: \"integer\" },\n owner: { required: true, type: \"string\" },\n permissions: { enum: [\"read\", \"write\", \"admin\"], type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/invitations/:invitation_id\"\n },\n updateProtectedBranchPullRequestReviewEnforcement: {\n method: \"PATCH\",\n params: {\n branch: { required: true, type: \"string\" },\n dismiss_stale_reviews: { type: \"boolean\" },\n dismissal_restrictions: { type: \"object\" },\n \"dismissal_restrictions.teams\": { type: \"string[]\" },\n \"dismissal_restrictions.users\": { type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n require_code_owner_reviews: { type: \"boolean\" },\n required_approving_review_count: { type: \"integer\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews\"\n },\n updateProtectedBranchRequiredStatusChecks: {\n method: \"PATCH\",\n params: {\n branch: { required: true, type: \"string\" },\n contexts: { type: \"string[]\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n strict: { type: \"boolean\" }\n },\n url: \"/repos/:owner/:repo/branches/:branch/protection/required_status_checks\"\n },\n updateRelease: {\n method: \"PATCH\",\n params: {\n body: { type: \"string\" },\n draft: { type: \"boolean\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n prerelease: { type: \"boolean\" },\n release_id: { required: true, type: \"integer\" },\n repo: { required: true, type: \"string\" },\n tag_name: { type: \"string\" },\n target_commitish: { type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/:release_id\"\n },\n updateReleaseAsset: {\n method: \"PATCH\",\n params: {\n asset_id: { required: true, type: \"integer\" },\n label: { type: \"string\" },\n name: { type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" }\n },\n url: \"/repos/:owner/:repo/releases/assets/:asset_id\"\n },\n uploadReleaseAsset: {\n method: \"POST\",\n params: {\n data: { mapTo: \"data\", required: true, type: \"string | object\" },\n file: { alias: \"data\", deprecated: true, type: \"string | object\" },\n headers: { required: true, type: \"object\" },\n \"headers.content-length\": { required: true, type: \"integer\" },\n \"headers.content-type\": { required: true, type: \"string\" },\n label: { type: \"string\" },\n name: { required: true, type: \"string\" },\n url: { required: true, type: \"string\" }\n },\n url: \":url\"\n }\n },\n search: {\n code: {\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: { enum: [\"indexed\"], type: \"string\" }\n },\n url: \"/search/code\"\n },\n commits: {\n headers: { accept: \"application/vnd.github.cloak-preview+json\" },\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: { enum: [\"author-date\", \"committer-date\"], type: \"string\" }\n },\n url: \"/search/commits\"\n },\n issues: {\n deprecated: \"octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27)\",\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: {\n enum: [\n \"comments\",\n \"reactions\",\n \"reactions-+1\",\n \"reactions--1\",\n \"reactions-smile\",\n \"reactions-thinking_face\",\n \"reactions-heart\",\n \"reactions-tada\",\n \"interactions\",\n \"created\",\n \"updated\"\n ],\n type: \"string\"\n }\n },\n url: \"/search/issues\"\n },\n issuesAndPullRequests: {\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: {\n enum: [\n \"comments\",\n \"reactions\",\n \"reactions-+1\",\n \"reactions--1\",\n \"reactions-smile\",\n \"reactions-thinking_face\",\n \"reactions-heart\",\n \"reactions-tada\",\n \"interactions\",\n \"created\",\n \"updated\"\n ],\n type: \"string\"\n }\n },\n url: \"/search/issues\"\n },\n labels: {\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n q: { required: true, type: \"string\" },\n repository_id: { required: true, type: \"integer\" },\n sort: { enum: [\"created\", \"updated\"], type: \"string\" }\n },\n url: \"/search/labels\"\n },\n repos: {\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: {\n enum: [\"stars\", \"forks\", \"help-wanted-issues\", \"updated\"],\n type: \"string\"\n }\n },\n url: \"/search/repositories\"\n },\n topics: {\n method: \"GET\",\n params: { q: { required: true, type: \"string\" } },\n url: \"/search/topics\"\n },\n users: {\n method: \"GET\",\n params: {\n order: { enum: [\"desc\", \"asc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n q: { required: true, type: \"string\" },\n sort: { enum: [\"followers\", \"repositories\", \"joined\"], type: \"string\" }\n },\n url: \"/search/users\"\n }\n },\n teams: {\n addMember: {\n deprecated: \"octokit.teams.addMember() has been renamed to octokit.teams.addMemberLegacy() (2020-01-16)\",\n method: \"PUT\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n addMemberLegacy: {\n deprecated: \"octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy\",\n method: \"PUT\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n addOrUpdateMembership: {\n deprecated: \"octokit.teams.addOrUpdateMembership() has been renamed to octokit.teams.addOrUpdateMembershipLegacy() (2020-01-16)\",\n method: \"PUT\",\n params: {\n role: { enum: [\"member\", \"maintainer\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n addOrUpdateMembershipInOrg: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n role: { enum: [\"member\", \"maintainer\"], type: \"string\" },\n team_slug: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/memberships/:username\"\n },\n addOrUpdateMembershipLegacy: {\n deprecated: \"octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy\",\n method: \"PUT\",\n params: {\n role: { enum: [\"member\", \"maintainer\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n addOrUpdateProject: {\n deprecated: \"octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PUT\",\n params: {\n permission: { enum: [\"read\", \"write\", \"admin\"], type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n addOrUpdateProjectInOrg: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n permission: { enum: [\"read\", \"write\", \"admin\"], type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/projects/:project_id\"\n },\n addOrUpdateProjectLegacy: {\n deprecated: \"octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"PUT\",\n params: {\n permission: { enum: [\"read\", \"write\", \"admin\"], type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n addOrUpdateRepo: {\n deprecated: \"octokit.teams.addOrUpdateRepo() has been renamed to octokit.teams.addOrUpdateRepoLegacy() (2020-01-16)\",\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n addOrUpdateRepoInOrg: {\n method: \"PUT\",\n params: {\n org: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/repos/:owner/:repo\"\n },\n addOrUpdateRepoLegacy: {\n deprecated: \"octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy\",\n method: \"PUT\",\n params: {\n owner: { required: true, type: \"string\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n checkManagesRepo: {\n deprecated: \"octokit.teams.checkManagesRepo() has been renamed to octokit.teams.checkManagesRepoLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n checkManagesRepoInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/repos/:owner/:repo\"\n },\n checkManagesRepoLegacy: {\n deprecated: \"octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy\",\n method: \"GET\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n create: {\n method: \"POST\",\n params: {\n description: { type: \"string\" },\n maintainers: { type: \"string[]\" },\n name: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" },\n parent_team_id: { type: \"integer\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n privacy: { enum: [\"secret\", \"closed\"], type: \"string\" },\n repo_names: { type: \"string[]\" }\n },\n url: \"/orgs/:org/teams\"\n },\n createDiscussion: {\n deprecated: \"octokit.teams.createDiscussion() has been renamed to octokit.teams.createDiscussionLegacy() (2020-01-16)\",\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n team_id: { required: true, type: \"integer\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/discussions\"\n },\n createDiscussionComment: {\n deprecated: \"octokit.teams.createDiscussionComment() has been renamed to octokit.teams.createDiscussionCommentLegacy() (2020-01-16)\",\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments\"\n },\n createDiscussionCommentInOrg: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments\"\n },\n createDiscussionCommentLegacy: {\n deprecated: \"octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy\",\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments\"\n },\n createDiscussionInOrg: {\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n team_slug: { required: true, type: \"string\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions\"\n },\n createDiscussionLegacy: {\n deprecated: \"octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy\",\n method: \"POST\",\n params: {\n body: { required: true, type: \"string\" },\n private: { type: \"boolean\" },\n team_id: { required: true, type: \"integer\" },\n title: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/discussions\"\n },\n delete: {\n deprecated: \"octokit.teams.delete() has been renamed to octokit.teams.deleteLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: { team_id: { required: true, type: \"integer\" } },\n url: \"/teams/:team_id\"\n },\n deleteDiscussion: {\n deprecated: \"octokit.teams.deleteDiscussion() has been renamed to octokit.teams.deleteDiscussionLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n deleteDiscussionComment: {\n deprecated: \"octokit.teams.deleteDiscussionComment() has been renamed to octokit.teams.deleteDiscussionCommentLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n deleteDiscussionCommentInOrg: {\n method: \"DELETE\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number\"\n },\n deleteDiscussionCommentLegacy: {\n deprecated: \"octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy\",\n method: \"DELETE\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n deleteDiscussionInOrg: {\n method: \"DELETE\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number\"\n },\n deleteDiscussionLegacy: {\n deprecated: \"octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy\",\n method: \"DELETE\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n deleteInOrg: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug\"\n },\n deleteLegacy: {\n deprecated: \"octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy\",\n method: \"DELETE\",\n params: { team_id: { required: true, type: \"integer\" } },\n url: \"/teams/:team_id\"\n },\n get: {\n deprecated: \"octokit.teams.get() has been renamed to octokit.teams.getLegacy() (2020-01-16)\",\n method: \"GET\",\n params: { team_id: { required: true, type: \"integer\" } },\n url: \"/teams/:team_id\"\n },\n getByName: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug\"\n },\n getDiscussion: {\n deprecated: \"octokit.teams.getDiscussion() has been renamed to octokit.teams.getDiscussionLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n getDiscussionComment: {\n deprecated: \"octokit.teams.getDiscussionComment() has been renamed to octokit.teams.getDiscussionCommentLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n getDiscussionCommentInOrg: {\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number\"\n },\n getDiscussionCommentLegacy: {\n deprecated: \"octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy\",\n method: \"GET\",\n params: {\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n getDiscussionInOrg: {\n method: \"GET\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number\"\n },\n getDiscussionLegacy: {\n deprecated: \"octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy\",\n method: \"GET\",\n params: {\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n getLegacy: {\n deprecated: \"octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy\",\n method: \"GET\",\n params: { team_id: { required: true, type: \"integer\" } },\n url: \"/teams/:team_id\"\n },\n getMember: {\n deprecated: \"octokit.teams.getMember() has been renamed to octokit.teams.getMemberLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n getMemberLegacy: {\n deprecated: \"octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy\",\n method: \"GET\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n getMembership: {\n deprecated: \"octokit.teams.getMembership() has been renamed to octokit.teams.getMembershipLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n getMembershipInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/memberships/:username\"\n },\n getMembershipLegacy: {\n deprecated: \"octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy\",\n method: \"GET\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n list: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" }\n },\n url: \"/orgs/:org/teams\"\n },\n listChild: {\n deprecated: \"octokit.teams.listChild() has been renamed to octokit.teams.listChildLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/teams\"\n },\n listChildInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/teams\"\n },\n listChildLegacy: {\n deprecated: \"octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/teams\"\n },\n listDiscussionComments: {\n deprecated: \"octokit.teams.listDiscussionComments() has been renamed to octokit.teams.listDiscussionCommentsLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments\"\n },\n listDiscussionCommentsInOrg: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments\"\n },\n listDiscussionCommentsLegacy: {\n deprecated: \"octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy\",\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments\"\n },\n listDiscussions: {\n deprecated: \"octokit.teams.listDiscussions() has been renamed to octokit.teams.listDiscussionsLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions\"\n },\n listDiscussionsInOrg: {\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions\"\n },\n listDiscussionsLegacy: {\n deprecated: \"octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy\",\n method: \"GET\",\n params: {\n direction: { enum: [\"asc\", \"desc\"], type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions\"\n },\n listForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/teams\"\n },\n listMembers: {\n deprecated: \"octokit.teams.listMembers() has been renamed to octokit.teams.listMembersLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n role: { enum: [\"member\", \"maintainer\", \"all\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/members\"\n },\n listMembersInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n role: { enum: [\"member\", \"maintainer\", \"all\"], type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/members\"\n },\n listMembersLegacy: {\n deprecated: \"octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n role: { enum: [\"member\", \"maintainer\", \"all\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/members\"\n },\n listPendingInvitations: {\n deprecated: \"octokit.teams.listPendingInvitations() has been renamed to octokit.teams.listPendingInvitationsLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/invitations\"\n },\n listPendingInvitationsInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/invitations\"\n },\n listPendingInvitationsLegacy: {\n deprecated: \"octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/invitations\"\n },\n listProjects: {\n deprecated: \"octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects\"\n },\n listProjectsInOrg: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/projects\"\n },\n listProjectsLegacy: {\n deprecated: \"octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects\"\n },\n listRepos: {\n deprecated: \"octokit.teams.listRepos() has been renamed to octokit.teams.listReposLegacy() (2020-01-16)\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos\"\n },\n listReposInOrg: {\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/repos\"\n },\n listReposLegacy: {\n deprecated: \"octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy\",\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos\"\n },\n removeMember: {\n deprecated: \"octokit.teams.removeMember() has been renamed to octokit.teams.removeMemberLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n removeMemberLegacy: {\n deprecated: \"octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy\",\n method: \"DELETE\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/members/:username\"\n },\n removeMembership: {\n deprecated: \"octokit.teams.removeMembership() has been renamed to octokit.teams.removeMembershipLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n removeMembershipInOrg: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/memberships/:username\"\n },\n removeMembershipLegacy: {\n deprecated: \"octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy\",\n method: \"DELETE\",\n params: {\n team_id: { required: true, type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/teams/:team_id/memberships/:username\"\n },\n removeProject: {\n deprecated: \"octokit.teams.removeProject() has been renamed to octokit.teams.removeProjectLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n removeProjectInOrg: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/projects/:project_id\"\n },\n removeProjectLegacy: {\n deprecated: \"octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy\",\n method: \"DELETE\",\n params: {\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n removeRepo: {\n deprecated: \"octokit.teams.removeRepo() has been renamed to octokit.teams.removeRepoLegacy() (2020-01-16)\",\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n removeRepoInOrg: {\n method: \"DELETE\",\n params: {\n org: { required: true, type: \"string\" },\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/repos/:owner/:repo\"\n },\n removeRepoLegacy: {\n deprecated: \"octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy\",\n method: \"DELETE\",\n params: {\n owner: { required: true, type: \"string\" },\n repo: { required: true, type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/repos/:owner/:repo\"\n },\n reviewProject: {\n deprecated: \"octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n reviewProjectInOrg: {\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n org: { required: true, type: \"string\" },\n project_id: { required: true, type: \"integer\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/projects/:project_id\"\n },\n reviewProjectLegacy: {\n deprecated: \"octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy\",\n headers: { accept: \"application/vnd.github.inertia-preview+json\" },\n method: \"GET\",\n params: {\n project_id: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/projects/:project_id\"\n },\n update: {\n deprecated: \"octokit.teams.update() has been renamed to octokit.teams.updateLegacy() (2020-01-16)\",\n method: \"PATCH\",\n params: {\n description: { type: \"string\" },\n name: { required: true, type: \"string\" },\n parent_team_id: { type: \"integer\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n privacy: { enum: [\"secret\", \"closed\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id\"\n },\n updateDiscussion: {\n deprecated: \"octokit.teams.updateDiscussion() has been renamed to octokit.teams.updateDiscussionLegacy() (2020-01-16)\",\n method: \"PATCH\",\n params: {\n body: { type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" },\n title: { type: \"string\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n updateDiscussionComment: {\n deprecated: \"octokit.teams.updateDiscussionComment() has been renamed to octokit.teams.updateDiscussionCommentLegacy() (2020-01-16)\",\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n updateDiscussionCommentInOrg: {\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number\"\n },\n updateDiscussionCommentLegacy: {\n deprecated: \"octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy\",\n method: \"PATCH\",\n params: {\n body: { required: true, type: \"string\" },\n comment_number: { required: true, type: \"integer\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number/comments/:comment_number\"\n },\n updateDiscussionInOrg: {\n method: \"PATCH\",\n params: {\n body: { type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n org: { required: true, type: \"string\" },\n team_slug: { required: true, type: \"string\" },\n title: { type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug/discussions/:discussion_number\"\n },\n updateDiscussionLegacy: {\n deprecated: \"octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy\",\n method: \"PATCH\",\n params: {\n body: { type: \"string\" },\n discussion_number: { required: true, type: \"integer\" },\n team_id: { required: true, type: \"integer\" },\n title: { type: \"string\" }\n },\n url: \"/teams/:team_id/discussions/:discussion_number\"\n },\n updateInOrg: {\n method: \"PATCH\",\n params: {\n description: { type: \"string\" },\n name: { required: true, type: \"string\" },\n org: { required: true, type: \"string\" },\n parent_team_id: { type: \"integer\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n privacy: { enum: [\"secret\", \"closed\"], type: \"string\" },\n team_slug: { required: true, type: \"string\" }\n },\n url: \"/orgs/:org/teams/:team_slug\"\n },\n updateLegacy: {\n deprecated: \"octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy\",\n method: \"PATCH\",\n params: {\n description: { type: \"string\" },\n name: { required: true, type: \"string\" },\n parent_team_id: { type: \"integer\" },\n permission: { enum: [\"pull\", \"push\", \"admin\"], type: \"string\" },\n privacy: { enum: [\"secret\", \"closed\"], type: \"string\" },\n team_id: { required: true, type: \"integer\" }\n },\n url: \"/teams/:team_id\"\n }\n },\n users: {\n addEmails: {\n method: \"POST\",\n params: { emails: { required: true, type: \"string[]\" } },\n url: \"/user/emails\"\n },\n block: {\n method: \"PUT\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/blocks/:username\"\n },\n checkBlocked: {\n method: \"GET\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/blocks/:username\"\n },\n checkFollowing: {\n method: \"GET\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/following/:username\"\n },\n checkFollowingForUser: {\n method: \"GET\",\n params: {\n target_user: { required: true, type: \"string\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/following/:target_user\"\n },\n createGpgKey: {\n method: \"POST\",\n params: { armored_public_key: { type: \"string\" } },\n url: \"/user/gpg_keys\"\n },\n createPublicKey: {\n method: \"POST\",\n params: { key: { type: \"string\" }, title: { type: \"string\" } },\n url: \"/user/keys\"\n },\n deleteEmails: {\n method: \"DELETE\",\n params: { emails: { required: true, type: \"string[]\" } },\n url: \"/user/emails\"\n },\n deleteGpgKey: {\n method: \"DELETE\",\n params: { gpg_key_id: { required: true, type: \"integer\" } },\n url: \"/user/gpg_keys/:gpg_key_id\"\n },\n deletePublicKey: {\n method: \"DELETE\",\n params: { key_id: { required: true, type: \"integer\" } },\n url: \"/user/keys/:key_id\"\n },\n follow: {\n method: \"PUT\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/following/:username\"\n },\n getAuthenticated: { method: \"GET\", params: {}, url: \"/user\" },\n getByUsername: {\n method: \"GET\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/users/:username\"\n },\n getContextForUser: {\n method: \"GET\",\n params: {\n subject_id: { type: \"string\" },\n subject_type: {\n enum: [\"organization\", \"repository\", \"issue\", \"pull_request\"],\n type: \"string\"\n },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/hovercard\"\n },\n getGpgKey: {\n method: \"GET\",\n params: { gpg_key_id: { required: true, type: \"integer\" } },\n url: \"/user/gpg_keys/:gpg_key_id\"\n },\n getPublicKey: {\n method: \"GET\",\n params: { key_id: { required: true, type: \"integer\" } },\n url: \"/user/keys/:key_id\"\n },\n list: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n since: { type: \"string\" }\n },\n url: \"/users\"\n },\n listBlocked: { method: \"GET\", params: {}, url: \"/user/blocks\" },\n listEmails: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/emails\"\n },\n listFollowersForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/followers\"\n },\n listFollowersForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/followers\"\n },\n listFollowingForAuthenticatedUser: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/following\"\n },\n listFollowingForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/following\"\n },\n listGpgKeys: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/gpg_keys\"\n },\n listGpgKeysForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/gpg_keys\"\n },\n listPublicEmails: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/public_emails\"\n },\n listPublicKeys: {\n method: \"GET\",\n params: { page: { type: \"integer\" }, per_page: { type: \"integer\" } },\n url: \"/user/keys\"\n },\n listPublicKeysForUser: {\n method: \"GET\",\n params: {\n page: { type: \"integer\" },\n per_page: { type: \"integer\" },\n username: { required: true, type: \"string\" }\n },\n url: \"/users/:username/keys\"\n },\n togglePrimaryEmailVisibility: {\n method: \"PATCH\",\n params: {\n email: { required: true, type: \"string\" },\n visibility: { required: true, type: \"string\" }\n },\n url: \"/user/email/visibility\"\n },\n unblock: {\n method: \"DELETE\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/blocks/:username\"\n },\n unfollow: {\n method: \"DELETE\",\n params: { username: { required: true, type: \"string\" } },\n url: \"/user/following/:username\"\n },\n updateAuthenticated: {\n method: \"PATCH\",\n params: {\n bio: { type: \"string\" },\n blog: { type: \"string\" },\n company: { type: \"string\" },\n email: { type: \"string\" },\n hireable: { type: \"boolean\" },\n location: { type: \"string\" },\n name: { type: \"string\" }\n },\n url: \"/user\"\n }\n }\n};\n","export const VERSION = \"2.4.0\";\n","import { Deprecation } from \"deprecation\";\nexport function registerEndpoints(octokit, routes) {\n Object.keys(routes).forEach(namespaceName => {\n if (!octokit[namespaceName]) {\n octokit[namespaceName] = {};\n }\n Object.keys(routes[namespaceName]).forEach(apiName => {\n const apiOptions = routes[namespaceName][apiName];\n const endpointDefaults = [\"method\", \"url\", \"headers\"].reduce((map, key) => {\n if (typeof apiOptions[key] !== \"undefined\") {\n map[key] = apiOptions[key];\n }\n return map;\n }, {});\n endpointDefaults.request = {\n validate: apiOptions.params\n };\n let request = octokit.request.defaults(endpointDefaults);\n // patch request & endpoint methods to support deprecated parameters.\n // Not the most elegant solution, but we don’t want to move deprecation\n // logic into octokit/endpoint.js as it’s out of scope\n const hasDeprecatedParam = Object.keys(apiOptions.params || {}).find(key => apiOptions.params[key].deprecated);\n if (hasDeprecatedParam) {\n const patch = patchForDeprecation.bind(null, octokit, apiOptions);\n request = patch(octokit.request.defaults(endpointDefaults), `.${namespaceName}.${apiName}()`);\n request.endpoint = patch(request.endpoint, `.${namespaceName}.${apiName}.endpoint()`);\n request.endpoint.merge = patch(request.endpoint.merge, `.${namespaceName}.${apiName}.endpoint.merge()`);\n }\n if (apiOptions.deprecated) {\n octokit[namespaceName][apiName] = Object.assign(function deprecatedEndpointMethod() {\n octokit.log.warn(new Deprecation(`[@octokit/rest] ${apiOptions.deprecated}`));\n octokit[namespaceName][apiName] = request;\n return request.apply(null, arguments);\n }, request);\n return;\n }\n octokit[namespaceName][apiName] = request;\n });\n });\n}\nfunction patchForDeprecation(octokit, apiOptions, method, methodName) {\n const patchedMethod = (options) => {\n options = Object.assign({}, options);\n Object.keys(options).forEach(key => {\n if (apiOptions.params[key] && apiOptions.params[key].deprecated) {\n const aliasKey = apiOptions.params[key].alias;\n octokit.log.warn(new Deprecation(`[@octokit/rest] \"${key}\" parameter is deprecated for \"${methodName}\". Use \"${aliasKey}\" instead`));\n if (!(aliasKey in options)) {\n options[aliasKey] = options[key];\n }\n delete options[key];\n }\n });\n return method(options);\n };\n Object.keys(method).forEach(key => {\n patchedMethod[key] = method[key];\n });\n return patchedMethod;\n}\n","import { Deprecation } from \"deprecation\";\nimport endpointsByScope from \"./generated/endpoints\";\nimport { VERSION } from \"./version\";\nimport { registerEndpoints } from \"./register-endpoints\";\n/**\n * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary\n * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is\n * done, we will remove the registerEndpoints methods and return the methods\n * directly as with the other plugins. At that point we will also remove the\n * legacy workarounds and deprecations.\n *\n * See the plan at\n * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1\n */\nexport function restEndpointMethods(octokit) {\n // @ts-ignore\n octokit.registerEndpoints = registerEndpoints.bind(null, octokit);\n registerEndpoints(octokit, endpointsByScope);\n // Aliasing scopes for backward compatibility\n // See https://github.com/octokit/rest.js/pull/1134\n [\n [\"gitdata\", \"git\"],\n [\"authorization\", \"oauthAuthorizations\"],\n [\"pullRequests\", \"pulls\"]\n ].forEach(([deprecatedScope, scope]) => {\n Object.defineProperty(octokit, deprecatedScope, {\n get() {\n octokit.log.warn(\n // @ts-ignore\n new Deprecation(`[@octokit/plugin-rest-endpoint-methods] \"octokit.${deprecatedScope}.*\" methods are deprecated, use \"octokit.${scope}.*\" instead`));\n // @ts-ignore\n return octokit[scope];\n }\n });\n });\n return {};\n}\nrestEndpointMethods.VERSION = VERSION;\n"],"names":[],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/generated/endpoints.js","../dist-src/version.js","../dist-src/endpoints-to-methods.js","../dist-src/index.js"],"sourcesContent":["const Endpoints = {\n actions: {\n addSelectedRepoToOrgSecret: [\n \"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\",\n ],\n cancelWorkflowRun: [\n \"POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel\",\n ],\n createOrUpdateOrgSecret: [\"PUT /orgs/{org}/actions/secrets/{secret_name}\"],\n createOrUpdateRepoSecret: [\n \"PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}\",\n ],\n createRegistrationTokenForOrg: [\n \"POST /orgs/{org}/actions/runners/registration-token\",\n ],\n createRegistrationTokenForRepo: [\n \"POST /repos/{owner}/{repo}/actions/runners/registration-token\",\n ],\n createRemoveTokenForOrg: [\"POST /orgs/{org}/actions/runners/remove-token\"],\n createRemoveTokenForRepo: [\n \"POST /repos/{owner}/{repo}/actions/runners/remove-token\",\n ],\n createWorkflowDispatch: [\n \"POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches\",\n ],\n deleteArtifact: [\n \"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\",\n ],\n deleteOrgSecret: [\"DELETE /orgs/{org}/actions/secrets/{secret_name}\"],\n deleteRepoSecret: [\n \"DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}\",\n ],\n deleteSelfHostedRunnerFromOrg: [\n \"DELETE /orgs/{org}/actions/runners/{runner_id}\",\n ],\n deleteSelfHostedRunnerFromRepo: [\n \"DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}\",\n ],\n deleteWorkflowRun: [\"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}\"],\n deleteWorkflowRunLogs: [\n \"DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs\",\n ],\n disableSelectedRepositoryGithubActionsOrganization: [\n \"DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}\",\n ],\n disableWorkflow: [\n \"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable\",\n ],\n downloadArtifact: [\n \"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}\",\n ],\n downloadJobLogsForWorkflowRun: [\n \"GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs\",\n ],\n downloadWorkflowRunLogs: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs\",\n ],\n enableSelectedRepositoryGithubActionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions/repositories/{repository_id}\",\n ],\n enableWorkflow: [\n \"PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable\",\n ],\n getAllowedActionsOrganization: [\n \"GET /orgs/{org}/actions/permissions/selected-actions\",\n ],\n getAllowedActionsRepository: [\n \"GET /repos/{owner}/{repo}/actions/permissions/selected-actions\",\n ],\n getArtifact: [\"GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}\"],\n getGithubActionsPermissionsOrganization: [\n \"GET /orgs/{org}/actions/permissions\",\n ],\n getGithubActionsPermissionsRepository: [\n \"GET /repos/{owner}/{repo}/actions/permissions\",\n ],\n getJobForWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/jobs/{job_id}\"],\n getOrgPublicKey: [\"GET /orgs/{org}/actions/secrets/public-key\"],\n getOrgSecret: [\"GET /orgs/{org}/actions/secrets/{secret_name}\"],\n getRepoPermissions: [\n \"GET /repos/{owner}/{repo}/actions/permissions\",\n {},\n { renamed: [\"actions\", \"getGithubActionsPermissionsRepository\"] },\n ],\n getRepoPublicKey: [\"GET /repos/{owner}/{repo}/actions/secrets/public-key\"],\n getRepoSecret: [\"GET /repos/{owner}/{repo}/actions/secrets/{secret_name}\"],\n getSelfHostedRunnerForOrg: [\"GET /orgs/{org}/actions/runners/{runner_id}\"],\n getSelfHostedRunnerForRepo: [\n \"GET /repos/{owner}/{repo}/actions/runners/{runner_id}\",\n ],\n getWorkflow: [\"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}\"],\n getWorkflowRun: [\"GET /repos/{owner}/{repo}/actions/runs/{run_id}\"],\n getWorkflowRunUsage: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing\",\n ],\n getWorkflowUsage: [\n \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing\",\n ],\n listArtifactsForRepo: [\"GET /repos/{owner}/{repo}/actions/artifacts\"],\n listJobsForWorkflowRun: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs\",\n ],\n listOrgSecrets: [\"GET /orgs/{org}/actions/secrets\"],\n listRepoSecrets: [\"GET /repos/{owner}/{repo}/actions/secrets\"],\n listRepoWorkflows: [\"GET /repos/{owner}/{repo}/actions/workflows\"],\n listRunnerApplicationsForOrg: [\"GET /orgs/{org}/actions/runners/downloads\"],\n listRunnerApplicationsForRepo: [\n \"GET /repos/{owner}/{repo}/actions/runners/downloads\",\n ],\n listSelectedReposForOrgSecret: [\n \"GET /orgs/{org}/actions/secrets/{secret_name}/repositories\",\n ],\n listSelectedRepositoriesEnabledGithubActionsOrganization: [\n \"GET /orgs/{org}/actions/permissions/repositories\",\n ],\n listSelfHostedRunnersForOrg: [\"GET /orgs/{org}/actions/runners\"],\n listSelfHostedRunnersForRepo: [\"GET /repos/{owner}/{repo}/actions/runners\"],\n listWorkflowRunArtifacts: [\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts\",\n ],\n listWorkflowRuns: [\n \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\",\n ],\n listWorkflowRunsForRepo: [\"GET /repos/{owner}/{repo}/actions/runs\"],\n reRunWorkflow: [\"POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun\"],\n removeSelectedRepoFromOrgSecret: [\n \"DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}\",\n ],\n setAllowedActionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions/selected-actions\",\n ],\n setAllowedActionsRepository: [\n \"PUT /repos/{owner}/{repo}/actions/permissions/selected-actions\",\n ],\n setGithubActionsPermissionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions\",\n ],\n setGithubActionsPermissionsRepository: [\n \"PUT /repos/{owner}/{repo}/actions/permissions\",\n ],\n setSelectedReposForOrgSecret: [\n \"PUT /orgs/{org}/actions/secrets/{secret_name}/repositories\",\n ],\n setSelectedRepositoriesEnabledGithubActionsOrganization: [\n \"PUT /orgs/{org}/actions/permissions/repositories\",\n ],\n },\n activity: {\n checkRepoIsStarredByAuthenticatedUser: [\"GET /user/starred/{owner}/{repo}\"],\n deleteRepoSubscription: [\"DELETE /repos/{owner}/{repo}/subscription\"],\n deleteThreadSubscription: [\n \"DELETE /notifications/threads/{thread_id}/subscription\",\n ],\n getFeeds: [\"GET /feeds\"],\n getRepoSubscription: [\"GET /repos/{owner}/{repo}/subscription\"],\n getThread: [\"GET /notifications/threads/{thread_id}\"],\n getThreadSubscriptionForAuthenticatedUser: [\n \"GET /notifications/threads/{thread_id}/subscription\",\n ],\n listEventsForAuthenticatedUser: [\"GET /users/{username}/events\"],\n listNotificationsForAuthenticatedUser: [\"GET /notifications\"],\n listOrgEventsForAuthenticatedUser: [\n \"GET /users/{username}/events/orgs/{org}\",\n ],\n listPublicEvents: [\"GET /events\"],\n listPublicEventsForRepoNetwork: [\"GET /networks/{owner}/{repo}/events\"],\n listPublicEventsForUser: [\"GET /users/{username}/events/public\"],\n listPublicOrgEvents: [\"GET /orgs/{org}/events\"],\n listReceivedEventsForUser: [\"GET /users/{username}/received_events\"],\n listReceivedPublicEventsForUser: [\n \"GET /users/{username}/received_events/public\",\n ],\n listRepoEvents: [\"GET /repos/{owner}/{repo}/events\"],\n listRepoNotificationsForAuthenticatedUser: [\n \"GET /repos/{owner}/{repo}/notifications\",\n ],\n listReposStarredByAuthenticatedUser: [\"GET /user/starred\"],\n listReposStarredByUser: [\"GET /users/{username}/starred\"],\n listReposWatchedByUser: [\"GET /users/{username}/subscriptions\"],\n listStargazersForRepo: [\"GET /repos/{owner}/{repo}/stargazers\"],\n listWatchedReposForAuthenticatedUser: [\"GET /user/subscriptions\"],\n listWatchersForRepo: [\"GET /repos/{owner}/{repo}/subscribers\"],\n markNotificationsAsRead: [\"PUT /notifications\"],\n markRepoNotificationsAsRead: [\"PUT /repos/{owner}/{repo}/notifications\"],\n markThreadAsRead: [\"PATCH /notifications/threads/{thread_id}\"],\n setRepoSubscription: [\"PUT /repos/{owner}/{repo}/subscription\"],\n setThreadSubscription: [\n \"PUT /notifications/threads/{thread_id}/subscription\",\n ],\n starRepoForAuthenticatedUser: [\"PUT /user/starred/{owner}/{repo}\"],\n unstarRepoForAuthenticatedUser: [\"DELETE /user/starred/{owner}/{repo}\"],\n },\n apps: {\n addRepoToInstallation: [\n \"PUT /user/installations/{installation_id}/repositories/{repository_id}\",\n ],\n checkToken: [\"POST /applications/{client_id}/token\"],\n createContentAttachment: [\n \"POST /content_references/{content_reference_id}/attachments\",\n { mediaType: { previews: [\"corsair\"] } },\n ],\n createFromManifest: [\"POST /app-manifests/{code}/conversions\"],\n createInstallationAccessToken: [\n \"POST /app/installations/{installation_id}/access_tokens\",\n ],\n deleteAuthorization: [\"DELETE /applications/{client_id}/grant\"],\n deleteInstallation: [\"DELETE /app/installations/{installation_id}\"],\n deleteToken: [\"DELETE /applications/{client_id}/token\"],\n getAuthenticated: [\"GET /app\"],\n getBySlug: [\"GET /apps/{app_slug}\"],\n getInstallation: [\"GET /app/installations/{installation_id}\"],\n getOrgInstallation: [\"GET /orgs/{org}/installation\"],\n getRepoInstallation: [\"GET /repos/{owner}/{repo}/installation\"],\n getSubscriptionPlanForAccount: [\n \"GET /marketplace_listing/accounts/{account_id}\",\n ],\n getSubscriptionPlanForAccountStubbed: [\n \"GET /marketplace_listing/stubbed/accounts/{account_id}\",\n ],\n getUserInstallation: [\"GET /users/{username}/installation\"],\n getWebhookConfigForApp: [\"GET /app/hook/config\"],\n listAccountsForPlan: [\"GET /marketplace_listing/plans/{plan_id}/accounts\"],\n listAccountsForPlanStubbed: [\n \"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts\",\n ],\n listInstallationReposForAuthenticatedUser: [\n \"GET /user/installations/{installation_id}/repositories\",\n ],\n listInstallations: [\"GET /app/installations\"],\n listInstallationsForAuthenticatedUser: [\"GET /user/installations\"],\n listPlans: [\"GET /marketplace_listing/plans\"],\n listPlansStubbed: [\"GET /marketplace_listing/stubbed/plans\"],\n listReposAccessibleToInstallation: [\"GET /installation/repositories\"],\n listSubscriptionsForAuthenticatedUser: [\"GET /user/marketplace_purchases\"],\n listSubscriptionsForAuthenticatedUserStubbed: [\n \"GET /user/marketplace_purchases/stubbed\",\n ],\n removeRepoFromInstallation: [\n \"DELETE /user/installations/{installation_id}/repositories/{repository_id}\",\n ],\n resetToken: [\"PATCH /applications/{client_id}/token\"],\n revokeInstallationAccessToken: [\"DELETE /installation/token\"],\n suspendInstallation: [\"PUT /app/installations/{installation_id}/suspended\"],\n unsuspendInstallation: [\n \"DELETE /app/installations/{installation_id}/suspended\",\n ],\n updateWebhookConfigForApp: [\"PATCH /app/hook/config\"],\n },\n billing: {\n getGithubActionsBillingOrg: [\"GET /orgs/{org}/settings/billing/actions\"],\n getGithubActionsBillingUser: [\n \"GET /users/{username}/settings/billing/actions\",\n ],\n getGithubPackagesBillingOrg: [\"GET /orgs/{org}/settings/billing/packages\"],\n getGithubPackagesBillingUser: [\n \"GET /users/{username}/settings/billing/packages\",\n ],\n getSharedStorageBillingOrg: [\n \"GET /orgs/{org}/settings/billing/shared-storage\",\n ],\n getSharedStorageBillingUser: [\n \"GET /users/{username}/settings/billing/shared-storage\",\n ],\n },\n checks: {\n create: [\"POST /repos/{owner}/{repo}/check-runs\"],\n createSuite: [\"POST /repos/{owner}/{repo}/check-suites\"],\n get: [\"GET /repos/{owner}/{repo}/check-runs/{check_run_id}\"],\n getSuite: [\"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}\"],\n listAnnotations: [\n \"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\",\n ],\n listForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/check-runs\"],\n listForSuite: [\n \"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\",\n ],\n listSuitesForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/check-suites\"],\n rerequestSuite: [\n \"POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest\",\n ],\n setSuitesPreferences: [\n \"PATCH /repos/{owner}/{repo}/check-suites/preferences\",\n ],\n update: [\"PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}\"],\n },\n codeScanning: {\n getAlert: [\n \"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\",\n {},\n { renamedParameters: { alert_id: \"alert_number\" } },\n ],\n listAlertsForRepo: [\"GET /repos/{owner}/{repo}/code-scanning/alerts\"],\n listRecentAnalyses: [\"GET /repos/{owner}/{repo}/code-scanning/analyses\"],\n updateAlert: [\n \"PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}\",\n ],\n uploadSarif: [\"POST /repos/{owner}/{repo}/code-scanning/sarifs\"],\n },\n codesOfConduct: {\n getAllCodesOfConduct: [\n \"GET /codes_of_conduct\",\n { mediaType: { previews: [\"scarlet-witch\"] } },\n ],\n getConductCode: [\n \"GET /codes_of_conduct/{key}\",\n { mediaType: { previews: [\"scarlet-witch\"] } },\n ],\n getForRepo: [\n \"GET /repos/{owner}/{repo}/community/code_of_conduct\",\n { mediaType: { previews: [\"scarlet-witch\"] } },\n ],\n },\n emojis: { get: [\"GET /emojis\"] },\n enterpriseAdmin: {\n disableSelectedOrganizationGithubActionsEnterprise: [\n \"DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\",\n ],\n enableSelectedOrganizationGithubActionsEnterprise: [\n \"PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}\",\n ],\n getAllowedActionsEnterprise: [\n \"GET /enterprises/{enterprise}/actions/permissions/selected-actions\",\n ],\n getGithubActionsPermissionsEnterprise: [\n \"GET /enterprises/{enterprise}/actions/permissions\",\n ],\n listSelectedOrganizationsEnabledGithubActionsEnterprise: [\n \"GET /enterprises/{enterprise}/actions/permissions/organizations\",\n ],\n setAllowedActionsEnterprise: [\n \"PUT /enterprises/{enterprise}/actions/permissions/selected-actions\",\n ],\n setGithubActionsPermissionsEnterprise: [\n \"PUT /enterprises/{enterprise}/actions/permissions\",\n ],\n setSelectedOrganizationsEnabledGithubActionsEnterprise: [\n \"PUT /enterprises/{enterprise}/actions/permissions/organizations\",\n ],\n },\n gists: {\n checkIsStarred: [\"GET /gists/{gist_id}/star\"],\n create: [\"POST /gists\"],\n createComment: [\"POST /gists/{gist_id}/comments\"],\n delete: [\"DELETE /gists/{gist_id}\"],\n deleteComment: [\"DELETE /gists/{gist_id}/comments/{comment_id}\"],\n fork: [\"POST /gists/{gist_id}/forks\"],\n get: [\"GET /gists/{gist_id}\"],\n getComment: [\"GET /gists/{gist_id}/comments/{comment_id}\"],\n getRevision: [\"GET /gists/{gist_id}/{sha}\"],\n list: [\"GET /gists\"],\n listComments: [\"GET /gists/{gist_id}/comments\"],\n listCommits: [\"GET /gists/{gist_id}/commits\"],\n listForUser: [\"GET /users/{username}/gists\"],\n listForks: [\"GET /gists/{gist_id}/forks\"],\n listPublic: [\"GET /gists/public\"],\n listStarred: [\"GET /gists/starred\"],\n star: [\"PUT /gists/{gist_id}/star\"],\n unstar: [\"DELETE /gists/{gist_id}/star\"],\n update: [\"PATCH /gists/{gist_id}\"],\n updateComment: [\"PATCH /gists/{gist_id}/comments/{comment_id}\"],\n },\n git: {\n createBlob: [\"POST /repos/{owner}/{repo}/git/blobs\"],\n createCommit: [\"POST /repos/{owner}/{repo}/git/commits\"],\n createRef: [\"POST /repos/{owner}/{repo}/git/refs\"],\n createTag: [\"POST /repos/{owner}/{repo}/git/tags\"],\n createTree: [\"POST /repos/{owner}/{repo}/git/trees\"],\n deleteRef: [\"DELETE /repos/{owner}/{repo}/git/refs/{ref}\"],\n getBlob: [\"GET /repos/{owner}/{repo}/git/blobs/{file_sha}\"],\n getCommit: [\"GET /repos/{owner}/{repo}/git/commits/{commit_sha}\"],\n getRef: [\"GET /repos/{owner}/{repo}/git/ref/{ref}\"],\n getTag: [\"GET /repos/{owner}/{repo}/git/tags/{tag_sha}\"],\n getTree: [\"GET /repos/{owner}/{repo}/git/trees/{tree_sha}\"],\n listMatchingRefs: [\"GET /repos/{owner}/{repo}/git/matching-refs/{ref}\"],\n updateRef: [\"PATCH /repos/{owner}/{repo}/git/refs/{ref}\"],\n },\n gitignore: {\n getAllTemplates: [\"GET /gitignore/templates\"],\n getTemplate: [\"GET /gitignore/templates/{name}\"],\n },\n interactions: {\n getRestrictionsForOrg: [\"GET /orgs/{org}/interaction-limits\"],\n getRestrictionsForRepo: [\"GET /repos/{owner}/{repo}/interaction-limits\"],\n getRestrictionsForYourPublicRepos: [\"GET /user/interaction-limits\"],\n removeRestrictionsForOrg: [\"DELETE /orgs/{org}/interaction-limits\"],\n removeRestrictionsForRepo: [\n \"DELETE /repos/{owner}/{repo}/interaction-limits\",\n ],\n removeRestrictionsForYourPublicRepos: [\"DELETE /user/interaction-limits\"],\n setRestrictionsForOrg: [\"PUT /orgs/{org}/interaction-limits\"],\n setRestrictionsForRepo: [\"PUT /repos/{owner}/{repo}/interaction-limits\"],\n setRestrictionsForYourPublicRepos: [\"PUT /user/interaction-limits\"],\n },\n issues: {\n addAssignees: [\n \"POST /repos/{owner}/{repo}/issues/{issue_number}/assignees\",\n ],\n addLabels: [\"POST /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n checkUserCanBeAssigned: [\"GET /repos/{owner}/{repo}/assignees/{assignee}\"],\n create: [\"POST /repos/{owner}/{repo}/issues\"],\n createComment: [\n \"POST /repos/{owner}/{repo}/issues/{issue_number}/comments\",\n ],\n createLabel: [\"POST /repos/{owner}/{repo}/labels\"],\n createMilestone: [\"POST /repos/{owner}/{repo}/milestones\"],\n deleteComment: [\n \"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}\",\n ],\n deleteLabel: [\"DELETE /repos/{owner}/{repo}/labels/{name}\"],\n deleteMilestone: [\n \"DELETE /repos/{owner}/{repo}/milestones/{milestone_number}\",\n ],\n get: [\"GET /repos/{owner}/{repo}/issues/{issue_number}\"],\n getComment: [\"GET /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n getEvent: [\"GET /repos/{owner}/{repo}/issues/events/{event_id}\"],\n getLabel: [\"GET /repos/{owner}/{repo}/labels/{name}\"],\n getMilestone: [\"GET /repos/{owner}/{repo}/milestones/{milestone_number}\"],\n list: [\"GET /issues\"],\n listAssignees: [\"GET /repos/{owner}/{repo}/assignees\"],\n listComments: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/comments\"],\n listCommentsForRepo: [\"GET /repos/{owner}/{repo}/issues/comments\"],\n listEvents: [\"GET /repos/{owner}/{repo}/issues/{issue_number}/events\"],\n listEventsForRepo: [\"GET /repos/{owner}/{repo}/issues/events\"],\n listEventsForTimeline: [\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\",\n { mediaType: { previews: [\"mockingbird\"] } },\n ],\n listForAuthenticatedUser: [\"GET /user/issues\"],\n listForOrg: [\"GET /orgs/{org}/issues\"],\n listForRepo: [\"GET /repos/{owner}/{repo}/issues\"],\n listLabelsForMilestone: [\n \"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\",\n ],\n listLabelsForRepo: [\"GET /repos/{owner}/{repo}/labels\"],\n listLabelsOnIssue: [\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/labels\",\n ],\n listMilestones: [\"GET /repos/{owner}/{repo}/milestones\"],\n lock: [\"PUT /repos/{owner}/{repo}/issues/{issue_number}/lock\"],\n removeAllLabels: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels\",\n ],\n removeAssignees: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees\",\n ],\n removeLabel: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}\",\n ],\n setLabels: [\"PUT /repos/{owner}/{repo}/issues/{issue_number}/labels\"],\n unlock: [\"DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock\"],\n update: [\"PATCH /repos/{owner}/{repo}/issues/{issue_number}\"],\n updateComment: [\"PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}\"],\n updateLabel: [\"PATCH /repos/{owner}/{repo}/labels/{name}\"],\n updateMilestone: [\n \"PATCH /repos/{owner}/{repo}/milestones/{milestone_number}\",\n ],\n },\n licenses: {\n get: [\"GET /licenses/{license}\"],\n getAllCommonlyUsed: [\"GET /licenses\"],\n getForRepo: [\"GET /repos/{owner}/{repo}/license\"],\n },\n markdown: {\n render: [\"POST /markdown\"],\n renderRaw: [\n \"POST /markdown/raw\",\n { headers: { \"content-type\": \"text/plain; charset=utf-8\" } },\n ],\n },\n meta: {\n get: [\"GET /meta\"],\n getOctocat: [\"GET /octocat\"],\n getZen: [\"GET /zen\"],\n root: [\"GET /\"],\n },\n migrations: {\n cancelImport: [\"DELETE /repos/{owner}/{repo}/import\"],\n deleteArchiveForAuthenticatedUser: [\n \"DELETE /user/migrations/{migration_id}/archive\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n deleteArchiveForOrg: [\n \"DELETE /orgs/{org}/migrations/{migration_id}/archive\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n downloadArchiveForOrg: [\n \"GET /orgs/{org}/migrations/{migration_id}/archive\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n getArchiveForAuthenticatedUser: [\n \"GET /user/migrations/{migration_id}/archive\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n getCommitAuthors: [\"GET /repos/{owner}/{repo}/import/authors\"],\n getImportStatus: [\"GET /repos/{owner}/{repo}/import\"],\n getLargeFiles: [\"GET /repos/{owner}/{repo}/import/large_files\"],\n getStatusForAuthenticatedUser: [\n \"GET /user/migrations/{migration_id}\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n getStatusForOrg: [\n \"GET /orgs/{org}/migrations/{migration_id}\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n listForAuthenticatedUser: [\n \"GET /user/migrations\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n listForOrg: [\n \"GET /orgs/{org}/migrations\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n listReposForOrg: [\n \"GET /orgs/{org}/migrations/{migration_id}/repositories\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n listReposForUser: [\n \"GET /user/migrations/{migration_id}/repositories\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n mapCommitAuthor: [\"PATCH /repos/{owner}/{repo}/import/authors/{author_id}\"],\n setLfsPreference: [\"PATCH /repos/{owner}/{repo}/import/lfs\"],\n startForAuthenticatedUser: [\"POST /user/migrations\"],\n startForOrg: [\"POST /orgs/{org}/migrations\"],\n startImport: [\"PUT /repos/{owner}/{repo}/import\"],\n unlockRepoForAuthenticatedUser: [\n \"DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n unlockRepoForOrg: [\n \"DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock\",\n { mediaType: { previews: [\"wyandotte\"] } },\n ],\n updateImport: [\"PATCH /repos/{owner}/{repo}/import\"],\n },\n orgs: {\n blockUser: [\"PUT /orgs/{org}/blocks/{username}\"],\n checkBlockedUser: [\"GET /orgs/{org}/blocks/{username}\"],\n checkMembershipForUser: [\"GET /orgs/{org}/members/{username}\"],\n checkPublicMembershipForUser: [\"GET /orgs/{org}/public_members/{username}\"],\n convertMemberToOutsideCollaborator: [\n \"PUT /orgs/{org}/outside_collaborators/{username}\",\n ],\n createInvitation: [\"POST /orgs/{org}/invitations\"],\n createWebhook: [\"POST /orgs/{org}/hooks\"],\n deleteWebhook: [\"DELETE /orgs/{org}/hooks/{hook_id}\"],\n get: [\"GET /orgs/{org}\"],\n getMembershipForAuthenticatedUser: [\"GET /user/memberships/orgs/{org}\"],\n getMembershipForUser: [\"GET /orgs/{org}/memberships/{username}\"],\n getWebhook: [\"GET /orgs/{org}/hooks/{hook_id}\"],\n getWebhookConfigForOrg: [\"GET /orgs/{org}/hooks/{hook_id}/config\"],\n list: [\"GET /organizations\"],\n listAppInstallations: [\"GET /orgs/{org}/installations\"],\n listBlockedUsers: [\"GET /orgs/{org}/blocks\"],\n listForAuthenticatedUser: [\"GET /user/orgs\"],\n listForUser: [\"GET /users/{username}/orgs\"],\n listInvitationTeams: [\"GET /orgs/{org}/invitations/{invitation_id}/teams\"],\n listMembers: [\"GET /orgs/{org}/members\"],\n listMembershipsForAuthenticatedUser: [\"GET /user/memberships/orgs\"],\n listOutsideCollaborators: [\"GET /orgs/{org}/outside_collaborators\"],\n listPendingInvitations: [\"GET /orgs/{org}/invitations\"],\n listPublicMembers: [\"GET /orgs/{org}/public_members\"],\n listWebhooks: [\"GET /orgs/{org}/hooks\"],\n pingWebhook: [\"POST /orgs/{org}/hooks/{hook_id}/pings\"],\n removeMember: [\"DELETE /orgs/{org}/members/{username}\"],\n removeMembershipForUser: [\"DELETE /orgs/{org}/memberships/{username}\"],\n removeOutsideCollaborator: [\n \"DELETE /orgs/{org}/outside_collaborators/{username}\",\n ],\n removePublicMembershipForAuthenticatedUser: [\n \"DELETE /orgs/{org}/public_members/{username}\",\n ],\n setMembershipForUser: [\"PUT /orgs/{org}/memberships/{username}\"],\n setPublicMembershipForAuthenticatedUser: [\n \"PUT /orgs/{org}/public_members/{username}\",\n ],\n unblockUser: [\"DELETE /orgs/{org}/blocks/{username}\"],\n update: [\"PATCH /orgs/{org}\"],\n updateMembershipForAuthenticatedUser: [\n \"PATCH /user/memberships/orgs/{org}\",\n ],\n updateWebhook: [\"PATCH /orgs/{org}/hooks/{hook_id}\"],\n updateWebhookConfigForOrg: [\"PATCH /orgs/{org}/hooks/{hook_id}/config\"],\n },\n projects: {\n addCollaborator: [\n \"PUT /projects/{project_id}/collaborators/{username}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n createCard: [\n \"POST /projects/columns/{column_id}/cards\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n createColumn: [\n \"POST /projects/{project_id}/columns\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n createForAuthenticatedUser: [\n \"POST /user/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n createForOrg: [\n \"POST /orgs/{org}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n createForRepo: [\n \"POST /repos/{owner}/{repo}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n delete: [\n \"DELETE /projects/{project_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n deleteCard: [\n \"DELETE /projects/columns/cards/{card_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n deleteColumn: [\n \"DELETE /projects/columns/{column_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n get: [\n \"GET /projects/{project_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n getCard: [\n \"GET /projects/columns/cards/{card_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n getColumn: [\n \"GET /projects/columns/{column_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n getPermissionForUser: [\n \"GET /projects/{project_id}/collaborators/{username}/permission\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listCards: [\n \"GET /projects/columns/{column_id}/cards\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listCollaborators: [\n \"GET /projects/{project_id}/collaborators\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listColumns: [\n \"GET /projects/{project_id}/columns\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listForOrg: [\n \"GET /orgs/{org}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listForRepo: [\n \"GET /repos/{owner}/{repo}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listForUser: [\n \"GET /users/{username}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n moveCard: [\n \"POST /projects/columns/cards/{card_id}/moves\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n moveColumn: [\n \"POST /projects/columns/{column_id}/moves\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n removeCollaborator: [\n \"DELETE /projects/{project_id}/collaborators/{username}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n update: [\n \"PATCH /projects/{project_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n updateCard: [\n \"PATCH /projects/columns/cards/{card_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n updateColumn: [\n \"PATCH /projects/columns/{column_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n },\n pulls: {\n checkIfMerged: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/merge\"],\n create: [\"POST /repos/{owner}/{repo}/pulls\"],\n createReplyForReviewComment: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies\",\n ],\n createReview: [\"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews\"],\n createReviewComment: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/comments\",\n ],\n deletePendingReview: [\n \"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\",\n ],\n deleteReviewComment: [\n \"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}\",\n ],\n dismissReview: [\n \"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals\",\n ],\n get: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}\"],\n getReview: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\",\n ],\n getReviewComment: [\"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}\"],\n list: [\"GET /repos/{owner}/{repo}/pulls\"],\n listCommentsForReview: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\",\n ],\n listCommits: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\"],\n listFiles: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/files\"],\n listRequestedReviewers: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\",\n ],\n listReviewComments: [\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\",\n ],\n listReviewCommentsForRepo: [\"GET /repos/{owner}/{repo}/pulls/comments\"],\n listReviews: [\"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\"],\n merge: [\"PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge\"],\n removeRequestedReviewers: [\n \"DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\",\n ],\n requestReviewers: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\",\n ],\n submitReview: [\n \"POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events\",\n ],\n update: [\"PATCH /repos/{owner}/{repo}/pulls/{pull_number}\"],\n updateBranch: [\n \"PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch\",\n { mediaType: { previews: [\"lydian\"] } },\n ],\n updateReview: [\n \"PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}\",\n ],\n updateReviewComment: [\n \"PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}\",\n ],\n },\n rateLimit: { get: [\"GET /rate_limit\"] },\n reactions: {\n createForCommitComment: [\n \"POST /repos/{owner}/{repo}/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n createForIssue: [\n \"POST /repos/{owner}/{repo}/issues/{issue_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n createForIssueComment: [\n \"POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n createForPullRequestReviewComment: [\n \"POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n createForTeamDiscussionCommentInOrg: [\n \"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n createForTeamDiscussionInOrg: [\n \"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForCommitComment: [\n \"DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForIssue: [\n \"DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForIssueComment: [\n \"DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForPullRequestComment: [\n \"DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForTeamDiscussion: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteForTeamDiscussionComment: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n deleteLegacy: [\n \"DELETE /reactions/{reaction_id}\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n {\n deprecated: \"octokit.reactions.deleteLegacy() is deprecated, see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy\",\n },\n ],\n listForCommitComment: [\n \"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n listForIssue: [\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n listForIssueComment: [\n \"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n listForPullRequestReviewComment: [\n \"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n listForTeamDiscussionCommentInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n listForTeamDiscussionInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\",\n { mediaType: { previews: [\"squirrel-girl\"] } },\n ],\n },\n repos: {\n acceptInvitation: [\"PATCH /user/repository_invitations/{invitation_id}\"],\n addAppAccessRestrictions: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n {},\n { mapToData: \"apps\" },\n ],\n addCollaborator: [\"PUT /repos/{owner}/{repo}/collaborators/{username}\"],\n addStatusCheckContexts: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n {},\n { mapToData: \"contexts\" },\n ],\n addTeamAccessRestrictions: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n {},\n { mapToData: \"teams\" },\n ],\n addUserAccessRestrictions: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n {},\n { mapToData: \"users\" },\n ],\n checkCollaborator: [\"GET /repos/{owner}/{repo}/collaborators/{username}\"],\n checkVulnerabilityAlerts: [\n \"GET /repos/{owner}/{repo}/vulnerability-alerts\",\n { mediaType: { previews: [\"dorian\"] } },\n ],\n compareCommits: [\"GET /repos/{owner}/{repo}/compare/{base}...{head}\"],\n createCommitComment: [\n \"POST /repos/{owner}/{repo}/commits/{commit_sha}/comments\",\n ],\n createCommitSignatureProtection: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\",\n { mediaType: { previews: [\"zzzax\"] } },\n ],\n createCommitStatus: [\"POST /repos/{owner}/{repo}/statuses/{sha}\"],\n createDeployKey: [\"POST /repos/{owner}/{repo}/keys\"],\n createDeployment: [\"POST /repos/{owner}/{repo}/deployments\"],\n createDeploymentStatus: [\n \"POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\",\n ],\n createDispatchEvent: [\"POST /repos/{owner}/{repo}/dispatches\"],\n createForAuthenticatedUser: [\"POST /user/repos\"],\n createFork: [\"POST /repos/{owner}/{repo}/forks\"],\n createInOrg: [\"POST /orgs/{org}/repos\"],\n createOrUpdateFileContents: [\"PUT /repos/{owner}/{repo}/contents/{path}\"],\n createPagesSite: [\n \"POST /repos/{owner}/{repo}/pages\",\n { mediaType: { previews: [\"switcheroo\"] } },\n ],\n createRelease: [\"POST /repos/{owner}/{repo}/releases\"],\n createUsingTemplate: [\n \"POST /repos/{template_owner}/{template_repo}/generate\",\n { mediaType: { previews: [\"baptiste\"] } },\n ],\n createWebhook: [\"POST /repos/{owner}/{repo}/hooks\"],\n declineInvitation: [\"DELETE /user/repository_invitations/{invitation_id}\"],\n delete: [\"DELETE /repos/{owner}/{repo}\"],\n deleteAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\",\n ],\n deleteAdminBranchProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\",\n ],\n deleteBranchProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection\",\n ],\n deleteCommitComment: [\"DELETE /repos/{owner}/{repo}/comments/{comment_id}\"],\n deleteCommitSignatureProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\",\n { mediaType: { previews: [\"zzzax\"] } },\n ],\n deleteDeployKey: [\"DELETE /repos/{owner}/{repo}/keys/{key_id}\"],\n deleteDeployment: [\n \"DELETE /repos/{owner}/{repo}/deployments/{deployment_id}\",\n ],\n deleteFile: [\"DELETE /repos/{owner}/{repo}/contents/{path}\"],\n deleteInvitation: [\n \"DELETE /repos/{owner}/{repo}/invitations/{invitation_id}\",\n ],\n deletePagesSite: [\n \"DELETE /repos/{owner}/{repo}/pages\",\n { mediaType: { previews: [\"switcheroo\"] } },\n ],\n deletePullRequestReviewProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\",\n ],\n deleteRelease: [\"DELETE /repos/{owner}/{repo}/releases/{release_id}\"],\n deleteReleaseAsset: [\n \"DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}\",\n ],\n deleteWebhook: [\"DELETE /repos/{owner}/{repo}/hooks/{hook_id}\"],\n disableAutomatedSecurityFixes: [\n \"DELETE /repos/{owner}/{repo}/automated-security-fixes\",\n { mediaType: { previews: [\"london\"] } },\n ],\n disableVulnerabilityAlerts: [\n \"DELETE /repos/{owner}/{repo}/vulnerability-alerts\",\n { mediaType: { previews: [\"dorian\"] } },\n ],\n downloadArchive: [\n \"GET /repos/{owner}/{repo}/zipball/{ref}\",\n {},\n { renamed: [\"repos\", \"downloadZipballArchive\"] },\n ],\n downloadTarballArchive: [\"GET /repos/{owner}/{repo}/tarball/{ref}\"],\n downloadZipballArchive: [\"GET /repos/{owner}/{repo}/zipball/{ref}\"],\n enableAutomatedSecurityFixes: [\n \"PUT /repos/{owner}/{repo}/automated-security-fixes\",\n { mediaType: { previews: [\"london\"] } },\n ],\n enableVulnerabilityAlerts: [\n \"PUT /repos/{owner}/{repo}/vulnerability-alerts\",\n { mediaType: { previews: [\"dorian\"] } },\n ],\n get: [\"GET /repos/{owner}/{repo}\"],\n getAccessRestrictions: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions\",\n ],\n getAdminBranchProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\",\n ],\n getAllStatusCheckContexts: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n ],\n getAllTopics: [\n \"GET /repos/{owner}/{repo}/topics\",\n { mediaType: { previews: [\"mercy\"] } },\n ],\n getAppsWithAccessToProtectedBranch: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n ],\n getBranch: [\"GET /repos/{owner}/{repo}/branches/{branch}\"],\n getBranchProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection\",\n ],\n getClones: [\"GET /repos/{owner}/{repo}/traffic/clones\"],\n getCodeFrequencyStats: [\"GET /repos/{owner}/{repo}/stats/code_frequency\"],\n getCollaboratorPermissionLevel: [\n \"GET /repos/{owner}/{repo}/collaborators/{username}/permission\",\n ],\n getCombinedStatusForRef: [\"GET /repos/{owner}/{repo}/commits/{ref}/status\"],\n getCommit: [\"GET /repos/{owner}/{repo}/commits/{ref}\"],\n getCommitActivityStats: [\"GET /repos/{owner}/{repo}/stats/commit_activity\"],\n getCommitComment: [\"GET /repos/{owner}/{repo}/comments/{comment_id}\"],\n getCommitSignatureProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures\",\n { mediaType: { previews: [\"zzzax\"] } },\n ],\n getCommunityProfileMetrics: [\"GET /repos/{owner}/{repo}/community/profile\"],\n getContent: [\"GET /repos/{owner}/{repo}/contents/{path}\"],\n getContributorsStats: [\"GET /repos/{owner}/{repo}/stats/contributors\"],\n getDeployKey: [\"GET /repos/{owner}/{repo}/keys/{key_id}\"],\n getDeployment: [\"GET /repos/{owner}/{repo}/deployments/{deployment_id}\"],\n getDeploymentStatus: [\n \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}\",\n ],\n getLatestPagesBuild: [\"GET /repos/{owner}/{repo}/pages/builds/latest\"],\n getLatestRelease: [\"GET /repos/{owner}/{repo}/releases/latest\"],\n getPages: [\"GET /repos/{owner}/{repo}/pages\"],\n getPagesBuild: [\"GET /repos/{owner}/{repo}/pages/builds/{build_id}\"],\n getParticipationStats: [\"GET /repos/{owner}/{repo}/stats/participation\"],\n getPullRequestReviewProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\",\n ],\n getPunchCardStats: [\"GET /repos/{owner}/{repo}/stats/punch_card\"],\n getReadme: [\"GET /repos/{owner}/{repo}/readme\"],\n getRelease: [\"GET /repos/{owner}/{repo}/releases/{release_id}\"],\n getReleaseAsset: [\"GET /repos/{owner}/{repo}/releases/assets/{asset_id}\"],\n getReleaseByTag: [\"GET /repos/{owner}/{repo}/releases/tags/{tag}\"],\n getStatusChecksProtection: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\",\n ],\n getTeamsWithAccessToProtectedBranch: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n ],\n getTopPaths: [\"GET /repos/{owner}/{repo}/traffic/popular/paths\"],\n getTopReferrers: [\"GET /repos/{owner}/{repo}/traffic/popular/referrers\"],\n getUsersWithAccessToProtectedBranch: [\n \"GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n ],\n getViews: [\"GET /repos/{owner}/{repo}/traffic/views\"],\n getWebhook: [\"GET /repos/{owner}/{repo}/hooks/{hook_id}\"],\n getWebhookConfigForRepo: [\n \"GET /repos/{owner}/{repo}/hooks/{hook_id}/config\",\n ],\n listBranches: [\"GET /repos/{owner}/{repo}/branches\"],\n listBranchesForHeadCommit: [\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head\",\n { mediaType: { previews: [\"groot\"] } },\n ],\n listCollaborators: [\"GET /repos/{owner}/{repo}/collaborators\"],\n listCommentsForCommit: [\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\",\n ],\n listCommitCommentsForRepo: [\"GET /repos/{owner}/{repo}/comments\"],\n listCommitStatusesForRef: [\n \"GET /repos/{owner}/{repo}/commits/{ref}/statuses\",\n ],\n listCommits: [\"GET /repos/{owner}/{repo}/commits\"],\n listContributors: [\"GET /repos/{owner}/{repo}/contributors\"],\n listDeployKeys: [\"GET /repos/{owner}/{repo}/keys\"],\n listDeploymentStatuses: [\n \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\",\n ],\n listDeployments: [\"GET /repos/{owner}/{repo}/deployments\"],\n listForAuthenticatedUser: [\"GET /user/repos\"],\n listForOrg: [\"GET /orgs/{org}/repos\"],\n listForUser: [\"GET /users/{username}/repos\"],\n listForks: [\"GET /repos/{owner}/{repo}/forks\"],\n listInvitations: [\"GET /repos/{owner}/{repo}/invitations\"],\n listInvitationsForAuthenticatedUser: [\"GET /user/repository_invitations\"],\n listLanguages: [\"GET /repos/{owner}/{repo}/languages\"],\n listPagesBuilds: [\"GET /repos/{owner}/{repo}/pages/builds\"],\n listPublic: [\"GET /repositories\"],\n listPullRequestsAssociatedWithCommit: [\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\",\n { mediaType: { previews: [\"groot\"] } },\n ],\n listReleaseAssets: [\n \"GET /repos/{owner}/{repo}/releases/{release_id}/assets\",\n ],\n listReleases: [\"GET /repos/{owner}/{repo}/releases\"],\n listTags: [\"GET /repos/{owner}/{repo}/tags\"],\n listTeams: [\"GET /repos/{owner}/{repo}/teams\"],\n listWebhooks: [\"GET /repos/{owner}/{repo}/hooks\"],\n merge: [\"POST /repos/{owner}/{repo}/merges\"],\n pingWebhook: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/pings\"],\n removeAppAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n {},\n { mapToData: \"apps\" },\n ],\n removeCollaborator: [\n \"DELETE /repos/{owner}/{repo}/collaborators/{username}\",\n ],\n removeStatusCheckContexts: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n {},\n { mapToData: \"contexts\" },\n ],\n removeStatusCheckProtection: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\",\n ],\n removeTeamAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n {},\n { mapToData: \"teams\" },\n ],\n removeUserAccessRestrictions: [\n \"DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n {},\n { mapToData: \"users\" },\n ],\n replaceAllTopics: [\n \"PUT /repos/{owner}/{repo}/topics\",\n { mediaType: { previews: [\"mercy\"] } },\n ],\n requestPagesBuild: [\"POST /repos/{owner}/{repo}/pages/builds\"],\n setAdminBranchProtection: [\n \"POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins\",\n ],\n setAppAccessRestrictions: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps\",\n {},\n { mapToData: \"apps\" },\n ],\n setStatusCheckContexts: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts\",\n {},\n { mapToData: \"contexts\" },\n ],\n setTeamAccessRestrictions: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams\",\n {},\n { mapToData: \"teams\" },\n ],\n setUserAccessRestrictions: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users\",\n {},\n { mapToData: \"users\" },\n ],\n testPushWebhook: [\"POST /repos/{owner}/{repo}/hooks/{hook_id}/tests\"],\n transfer: [\"POST /repos/{owner}/{repo}/transfer\"],\n update: [\"PATCH /repos/{owner}/{repo}\"],\n updateBranchProtection: [\n \"PUT /repos/{owner}/{repo}/branches/{branch}/protection\",\n ],\n updateCommitComment: [\"PATCH /repos/{owner}/{repo}/comments/{comment_id}\"],\n updateInformationAboutPagesSite: [\"PUT /repos/{owner}/{repo}/pages\"],\n updateInvitation: [\n \"PATCH /repos/{owner}/{repo}/invitations/{invitation_id}\",\n ],\n updatePullRequestReviewProtection: [\n \"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews\",\n ],\n updateRelease: [\"PATCH /repos/{owner}/{repo}/releases/{release_id}\"],\n updateReleaseAsset: [\n \"PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}\",\n ],\n updateStatusCheckPotection: [\n \"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\",\n {},\n { renamed: [\"repos\", \"updateStatusCheckProtection\"] },\n ],\n updateStatusCheckProtection: [\n \"PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks\",\n ],\n updateWebhook: [\"PATCH /repos/{owner}/{repo}/hooks/{hook_id}\"],\n updateWebhookConfigForRepo: [\n \"PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config\",\n ],\n uploadReleaseAsset: [\n \"POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}\",\n { baseUrl: \"https://uploads.github.com\" },\n ],\n },\n search: {\n code: [\"GET /search/code\"],\n commits: [\"GET /search/commits\", { mediaType: { previews: [\"cloak\"] } }],\n issuesAndPullRequests: [\"GET /search/issues\"],\n labels: [\"GET /search/labels\"],\n repos: [\"GET /search/repositories\"],\n topics: [\"GET /search/topics\", { mediaType: { previews: [\"mercy\"] } }],\n users: [\"GET /search/users\"],\n },\n teams: {\n addOrUpdateMembershipForUserInOrg: [\n \"PUT /orgs/{org}/teams/{team_slug}/memberships/{username}\",\n ],\n addOrUpdateProjectPermissionsInOrg: [\n \"PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n addOrUpdateRepoPermissionsInOrg: [\n \"PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\",\n ],\n checkPermissionsForProjectInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/projects/{project_id}\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n checkPermissionsForRepoInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\",\n ],\n create: [\"POST /orgs/{org}/teams\"],\n createDiscussionCommentInOrg: [\n \"POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\",\n ],\n createDiscussionInOrg: [\"POST /orgs/{org}/teams/{team_slug}/discussions\"],\n deleteDiscussionCommentInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\",\n ],\n deleteDiscussionInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\",\n ],\n deleteInOrg: [\"DELETE /orgs/{org}/teams/{team_slug}\"],\n getByName: [\"GET /orgs/{org}/teams/{team_slug}\"],\n getDiscussionCommentInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\",\n ],\n getDiscussionInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\",\n ],\n getMembershipForUserInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/memberships/{username}\",\n ],\n list: [\"GET /orgs/{org}/teams\"],\n listChildInOrg: [\"GET /orgs/{org}/teams/{team_slug}/teams\"],\n listDiscussionCommentsInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\",\n ],\n listDiscussionsInOrg: [\"GET /orgs/{org}/teams/{team_slug}/discussions\"],\n listForAuthenticatedUser: [\"GET /user/teams\"],\n listMembersInOrg: [\"GET /orgs/{org}/teams/{team_slug}/members\"],\n listPendingInvitationsInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/invitations\",\n ],\n listProjectsInOrg: [\n \"GET /orgs/{org}/teams/{team_slug}/projects\",\n { mediaType: { previews: [\"inertia\"] } },\n ],\n listReposInOrg: [\"GET /orgs/{org}/teams/{team_slug}/repos\"],\n removeMembershipForUserInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}\",\n ],\n removeProjectInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}\",\n ],\n removeRepoInOrg: [\n \"DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}\",\n ],\n updateDiscussionCommentInOrg: [\n \"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}\",\n ],\n updateDiscussionInOrg: [\n \"PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}\",\n ],\n updateInOrg: [\"PATCH /orgs/{org}/teams/{team_slug}\"],\n },\n users: {\n addEmailForAuthenticated: [\"POST /user/emails\"],\n block: [\"PUT /user/blocks/{username}\"],\n checkBlocked: [\"GET /user/blocks/{username}\"],\n checkFollowingForUser: [\"GET /users/{username}/following/{target_user}\"],\n checkPersonIsFollowedByAuthenticated: [\"GET /user/following/{username}\"],\n createGpgKeyForAuthenticated: [\"POST /user/gpg_keys\"],\n createPublicSshKeyForAuthenticated: [\"POST /user/keys\"],\n deleteEmailForAuthenticated: [\"DELETE /user/emails\"],\n deleteGpgKeyForAuthenticated: [\"DELETE /user/gpg_keys/{gpg_key_id}\"],\n deletePublicSshKeyForAuthenticated: [\"DELETE /user/keys/{key_id}\"],\n follow: [\"PUT /user/following/{username}\"],\n getAuthenticated: [\"GET /user\"],\n getByUsername: [\"GET /users/{username}\"],\n getContextForUser: [\"GET /users/{username}/hovercard\"],\n getGpgKeyForAuthenticated: [\"GET /user/gpg_keys/{gpg_key_id}\"],\n getPublicSshKeyForAuthenticated: [\"GET /user/keys/{key_id}\"],\n list: [\"GET /users\"],\n listBlockedByAuthenticated: [\"GET /user/blocks\"],\n listEmailsForAuthenticated: [\"GET /user/emails\"],\n listFollowedByAuthenticated: [\"GET /user/following\"],\n listFollowersForAuthenticatedUser: [\"GET /user/followers\"],\n listFollowersForUser: [\"GET /users/{username}/followers\"],\n listFollowingForUser: [\"GET /users/{username}/following\"],\n listGpgKeysForAuthenticated: [\"GET /user/gpg_keys\"],\n listGpgKeysForUser: [\"GET /users/{username}/gpg_keys\"],\n listPublicEmailsForAuthenticated: [\"GET /user/public_emails\"],\n listPublicKeysForUser: [\"GET /users/{username}/keys\"],\n listPublicSshKeysForAuthenticated: [\"GET /user/keys\"],\n setPrimaryEmailVisibilityForAuthenticated: [\"PATCH /user/email/visibility\"],\n unblock: [\"DELETE /user/blocks/{username}\"],\n unfollow: [\"DELETE /user/following/{username}\"],\n updateAuthenticated: [\"PATCH /user\"],\n },\n};\nexport default Endpoints;\n","export const VERSION = \"4.3.1\";\n","export function endpointsToMethods(octokit, endpointsMap) {\n const newMethods = {};\n for (const [scope, endpoints] of Object.entries(endpointsMap)) {\n for (const [methodName, endpoint] of Object.entries(endpoints)) {\n const [route, defaults, decorations] = endpoint;\n const [method, url] = route.split(/ /);\n const endpointDefaults = Object.assign({ method, url }, defaults);\n if (!newMethods[scope]) {\n newMethods[scope] = {};\n }\n const scopeMethods = newMethods[scope];\n if (decorations) {\n scopeMethods[methodName] = decorate(octokit, scope, methodName, endpointDefaults, decorations);\n continue;\n }\n scopeMethods[methodName] = octokit.request.defaults(endpointDefaults);\n }\n }\n return newMethods;\n}\nfunction decorate(octokit, scope, methodName, defaults, decorations) {\n const requestWithDefaults = octokit.request.defaults(defaults);\n /* istanbul ignore next */\n function withDecorations(...args) {\n // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n let options = requestWithDefaults.endpoint.merge(...args);\n // There are currently no other decorations than `.mapToData`\n if (decorations.mapToData) {\n options = Object.assign({}, options, {\n data: options[decorations.mapToData],\n [decorations.mapToData]: undefined,\n });\n return requestWithDefaults(options);\n }\n if (decorations.renamed) {\n const [newScope, newMethodName] = decorations.renamed;\n octokit.log.warn(`octokit.${scope}.${methodName}() has been renamed to octokit.${newScope}.${newMethodName}()`);\n }\n if (decorations.deprecated) {\n octokit.log.warn(decorations.deprecated);\n }\n if (decorations.renamedParameters) {\n // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n const options = requestWithDefaults.endpoint.merge(...args);\n for (const [name, alias] of Object.entries(decorations.renamedParameters)) {\n if (name in options) {\n octokit.log.warn(`\"${name}\" parameter is deprecated for \"octokit.${scope}.${methodName}()\". Use \"${alias}\" instead`);\n if (!(alias in options)) {\n options[alias] = options[name];\n }\n delete options[name];\n }\n }\n return requestWithDefaults(options);\n }\n // @ts-ignore https://github.com/microsoft/TypeScript/issues/25488\n return requestWithDefaults(...args);\n }\n return Object.assign(withDecorations, requestWithDefaults);\n}\n","import ENDPOINTS from \"./generated/endpoints\";\nimport { VERSION } from \"./version\";\nimport { endpointsToMethods } from \"./endpoints-to-methods\";\n/**\n * This plugin is a 1:1 copy of internal @octokit/rest plugins. The primary\n * goal is to rebuild @octokit/rest on top of @octokit/core. Once that is\n * done, we will remove the registerEndpoints methods and return the methods\n * directly as with the other plugins. At that point we will also remove the\n * legacy workarounds and deprecations.\n *\n * See the plan at\n * https://github.com/octokit/plugin-rest-endpoint-methods.js/pull/1\n */\nexport function restEndpointMethods(octokit) {\n return endpointsToMethods(octokit, ENDPOINTS);\n}\nrestEndpointMethods.VERSION = VERSION;\n"],"names":["ENDPOINTS"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/README.md b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/README.md index 25b8f03bf..707894566 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/README.md +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/README.md @@ -4,7 +4,6 @@ [![@latest](https://img.shields.io/npm/v/@octokit/types.svg)](https://www.npmjs.com/package/@octokit/types) [![Build Status](https://github.com/octokit/types.ts/workflows/Test/badge.svg)](https://github.com/octokit/types.ts/actions?workflow=Test) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/types.ts.svg)](https://greenkeeper.io/) @@ -26,7 +25,7 @@ See all exported types at https://octokit.github.io/types.ts ### Get parameter and response data types for a REST API endpoint ```ts -import { Endpoints } from "./src"; +import { Endpoints } from "@octokit/types"; type listUserReposParameters = Endpoints["GET /repos/:owner/:repo"]["parameters"]; type listUserReposResponse = Endpoints["GET /repos/:owner/:repo"]["response"]; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-node/index.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-node/index.js index 4c5b65fec..b888f5732 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-node/index.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-node/index.js @@ -2,7 +2,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); -const VERSION = "2.16.2"; +const VERSION = "6.0.3"; exports.VERSION = VERSION; //# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/AuthInterface.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/AuthInterface.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/AuthInterface.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/AuthInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointDefaults.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointDefaults.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointDefaults.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointDefaults.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointInterface.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointInterface.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointInterface.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointOptions.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointOptions.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointOptions.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/EndpointOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Fetch.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Fetch.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Fetch.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Fetch.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/OctokitResponse.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/OctokitResponse.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/OctokitResponse.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/OctokitResponse.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestError.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestError.js new file mode 100644 index 000000000..cb0ff5c3b --- /dev/null +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestError.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestHeaders.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestHeaders.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestHeaders.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestHeaders.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestInterface.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestInterface.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestInterface.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestMethod.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestMethod.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestMethod.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestMethod.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestOptions.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestOptions.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestOptions.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestParameters.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestParameters.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestParameters.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestParameters.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestRequestOptions.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestRequestOptions.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestRequestOptions.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/RequestRequestOptions.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/ResponseHeaders.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/ResponseHeaders.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/ResponseHeaders.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/ResponseHeaders.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Route.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Route.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Route.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Route.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Signal.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Signal.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Signal.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Signal.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/StrategyInterface.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/StrategyInterface.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/StrategyInterface.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/StrategyInterface.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Url.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Url.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Url.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/Url.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/VERSION.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/VERSION.js index 66bc3f74f..38cea4357 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/VERSION.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/VERSION.js @@ -1 +1 @@ -export const VERSION = "2.16.2"; +export const VERSION = "6.0.3"; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/generated/Endpoints.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/generated/Endpoints.js index e69de29bb..cb0ff5c3b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/generated/Endpoints.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/generated/Endpoints.js @@ -0,0 +1 @@ +export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/index.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/index.js index 04b216360..004ae9b22 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/index.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-src/index.js @@ -1 +1,21 @@ +export * from "./AuthInterface"; +export * from "./EndpointDefaults"; +export * from "./EndpointInterface"; +export * from "./EndpointOptions"; +export * from "./Fetch"; +export * from "./OctokitResponse"; +export * from "./RequestError"; +export * from "./RequestHeaders"; +export * from "./RequestInterface"; +export * from "./RequestMethod"; +export * from "./RequestOptions"; +export * from "./RequestParameters"; +export * from "./RequestRequestOptions"; +export * from "./ResponseHeaders"; +export * from "./Route"; +export * from "./Signal"; +export * from "./StrategyInterface"; +export * from "./Url"; export * from "./VERSION"; +export * from "./GetResponseTypeFromEndpointMethod"; +export * from "./generated/Endpoints"; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts index 9a2dd7f65..19ffff822 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts @@ -1,11 +1,11 @@ import { ResponseHeaders } from "./ResponseHeaders"; import { Url } from "./Url"; -export declare type OctokitResponse = { +export declare type OctokitResponse = { headers: ResponseHeaders; /** * http response code */ - status: number; + status: S; /** * URL of response after all redirects */ diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/RequestError.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/RequestError.d.ts new file mode 100644 index 000000000..89174e6ee --- /dev/null +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/RequestError.d.ts @@ -0,0 +1,11 @@ +export declare type RequestError = { + name: string; + status: number; + documentation_url: string; + errors?: Array<{ + resource: string; + code: string; + field: string; + message?: string; + }>; +}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/VERSION.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/VERSION.d.ts index c24737b27..af986fe4f 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/VERSION.d.ts +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/VERSION.d.ts @@ -1 +1 @@ -export declare const VERSION = "2.16.2"; +export declare const VERSION = "6.0.3"; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts index d10c4c921..399f673bf 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts @@ -1,41416 +1,2972 @@ +import { paths } from "@octokit/openapi-types"; import { OctokitResponse } from "../OctokitResponse"; import { RequestHeaders } from "../RequestHeaders"; import { RequestRequestOptions } from "../RequestRequestOptions"; -declare type RequiredPreview = { +declare type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; +declare type ExtractParameters = "parameters" extends keyof T ? UnionToIntersection<{ + [K in keyof T["parameters"]]: T["parameters"][K]; +}[keyof T["parameters"]]> : {}; +declare type ExtractRequestBody = "requestBody" extends keyof T ? "application/json" extends keyof T["requestBody"] ? T["requestBody"]["application/json"] : { + data: { + [K in keyof T["requestBody"]]: T["requestBody"][K]; + }[keyof T["requestBody"]]; +} : {}; +declare type ToOctokitParameters = ExtractParameters & ExtractRequestBody; +declare type RequiredPreview = T extends string ? { mediaType: { previews: [T, ...string[]]; }; +} : {}; +declare type Operation = { + parameters: ToOctokitParameters & RequiredPreview; + request: { + method: Method extends keyof MethodsMap ? MethodsMap[Method] : never; + url: Url; + headers: RequestHeaders; + request: RequestRequestOptions; + }; + response: Url extends keyof EndpointsWithMissingRequiredResponseDataSchema ? Method extends EndpointsWithMissingRequiredResponseDataSchema[Url] ? DeepRequired> : ExtractFirstSuccessResponse : ExtractFirstSuccessResponse; +}; +declare type MethodsMap = { + delete: "DELETE"; + get: "GET"; + patch: "PATCH"; + post: "POST"; + put: "PUT"; +}; +declare type SuccessStatusesMap = { + "200": 200; + "201": 201; + "204": 204; +}; +declare type RedirectStatusesMap = { + "301": 301; + "302": 302; +}; +declare type DataType = "application/json" extends keyof T ? T["application/json"] : "application/scim+json" extends keyof T ? T["application/scim+json"] : unknown; +declare type ExtractFirstSuccessResponse = "responses" extends keyof R ? FirstSuccessResponse : unknown; +declare type FirstSuccessResponse = S extends keyof SuccessStatusesMap ? R[S] extends never ? Omit, "data"> : OctokitResponse, SuccessStatusesMap[S]> : S extends keyof RedirectStatusesMap ? OctokitResponse : never; +declare type EndpointsWithMissingRequiredResponseDataSchema = { + "/app/hook/config": "get" | "patch"; + "/app/installations/{installation_id}/access_tokens": "post"; + "/emojis": "get"; + "/enterprises/{enterprise}/actions/permissions": "get"; + "/enterprises/{enterprise}/actions/permissions/organizations": "get"; + "/enterprises/{enterprise}/actions/permissions/selected-actions": "get"; + "/enterprises/{enterprise}/actions/runner-groups": "get" | "post"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": "get" | "patch"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": "get"; + "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": "get"; + "/enterprises/{enterprise}/actions/runners": "get"; + "/enterprises/{enterprise}/actions/runners/downloads": "get"; + "/enterprises/{enterprise}/settings/billing/actions": "get"; + "/enterprises/{enterprise}/settings/billing/packages": "get"; + "/enterprises/{enterprise}/settings/billing/shared-storage": "get"; + "/installation/repositories": "get"; + "/notifications": "get"; + "/notifications/threads/{thread_id}": "get"; + "/orgs/{org}/actions/permissions": "get"; + "/orgs/{org}/actions/permissions/repositories": "get"; + "/orgs/{org}/actions/permissions/selected-actions": "get"; + "/orgs/{org}/actions/runner-groups": "get" | "post"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}": "get" | "patch"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": "get"; + "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners": "get"; + "/orgs/{org}/actions/runners": "get"; + "/orgs/{org}/actions/runners/downloads": "get"; + "/orgs/{org}/actions/secrets": "get"; + "/orgs/{org}/actions/secrets/{secret_name}/repositories": "get"; + "/orgs/{org}/hooks/{hook_id}/config": "get" | "patch"; + "/orgs/{org}/installations": "get"; + "/orgs/{org}/invitations": "get" | "post"; + "/orgs/{org}/settings/billing/actions": "get"; + "/orgs/{org}/settings/billing/packages": "get"; + "/orgs/{org}/settings/billing/shared-storage": "get"; + "/orgs/{org}/team-sync/groups": "get"; + "/orgs/{org}/teams/{team_slug}/invitations": "get"; + "/orgs/{org}/teams/{team_slug}/projects": "get"; + "/orgs/{org}/teams/{team_slug}/projects/{project_id}": "get"; + "/orgs/{org}/teams/{team_slug}/team-sync/group-mappings": "get" | "patch"; + "/projects/columns/cards/{card_id}/moves": "post"; + "/projects/columns/{column_id}/moves": "post"; + "/repos/{owner}/{repo}/actions/artifacts": "get"; + "/repos/{owner}/{repo}/actions/permissions": "get"; + "/repos/{owner}/{repo}/actions/permissions/selected-actions": "get"; + "/repos/{owner}/{repo}/actions/runners": "get"; + "/repos/{owner}/{repo}/actions/runners/downloads": "get"; + "/repos/{owner}/{repo}/actions/runs": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/jobs": "get"; + "/repos/{owner}/{repo}/actions/runs/{run_id}/timing": "get"; + "/repos/{owner}/{repo}/actions/secrets": "get"; + "/repos/{owner}/{repo}/actions/workflows": "get"; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": "get"; + "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": "get"; + "/repos/{owner}/{repo}/check-suites/preferences": "patch"; + "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": "get"; + "/repos/{owner}/{repo}/code-scanning/alerts": "get"; + "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": "get" | "patch"; + "/repos/{owner}/{repo}/code-scanning/analyses": "get"; + "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": "get"; + "/repos/{owner}/{repo}/commits/{ref}/check-runs": "get"; + "/repos/{owner}/{repo}/commits/{ref}/check-suites": "get"; + "/repos/{owner}/{repo}/commits/{ref}/statuses": "get"; + "/repos/{owner}/{repo}/contents/{path}": "put" | "delete"; + "/repos/{owner}/{repo}/git/blobs": "post"; + "/repos/{owner}/{repo}/git/commits": "post"; + "/repos/{owner}/{repo}/git/commits/{commit_sha}": "get"; + "/repos/{owner}/{repo}/git/matching-refs/{ref}": "get"; + "/repos/{owner}/{repo}/git/ref/{ref}": "get"; + "/repos/{owner}/{repo}/git/refs": "post"; + "/repos/{owner}/{repo}/git/refs/{ref}": "patch"; + "/repos/{owner}/{repo}/hooks/{hook_id}/config": "get" | "patch"; + "/repos/{owner}/{repo}/issues/{issue_number}/events": "get"; + "/repos/{owner}/{repo}/issues/{issue_number}/timeline": "get"; + "/repos/{owner}/{repo}/keys": "get" | "post"; + "/repos/{owner}/{repo}/keys/{key_id}": "get"; + "/repos/{owner}/{repo}/languages": "get"; + "/repos/{owner}/{repo}/notifications": "get"; + "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": "get"; + "/repos/{owner}/{repo}/stats/participation": "get"; + "/repos/{owner}/{repo}/statuses/{sha}": "post"; + "/repos/{owner}/{repo}/topics": "get" | "put"; + "/scim/v2/enterprises/{enterprise}/Groups": "get" | "post"; + "/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": "get" | "put" | "patch"; + "/scim/v2/enterprises/{enterprise}/Users": "get" | "post"; + "/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": "get" | "put" | "patch"; + "/search/code": "get"; + "/search/commits": "get"; + "/search/issues": "get"; + "/search/labels": "get"; + "/search/repositories": "get"; + "/search/topics": "get"; + "/search/users": "get"; + "/teams/{team_id}/invitations": "get"; + "/teams/{team_id}/projects": "get"; + "/teams/{team_id}/projects/{project_id}": "get"; + "/teams/{team_id}/team-sync/group-mappings": "get" | "patch"; + "/user/installations": "get"; + "/user/installations/{installation_id}/repositories": "get"; + "/user/keys": "get" | "post"; + "/user/keys/{key_id}": "get"; + "/users/{username}/settings/billing/actions": "get"; + "/users/{username}/settings/billing/packages": "get"; + "/users/{username}/settings/billing/shared-storage": "get"; +}; +declare type NotNill = T extends null | undefined ? never : T; +declare type Primitive = undefined | null | boolean | string | number | Function; +declare type DeepRequired = T extends Primitive ? NotNill : { + [P in keyof T]-?: T[P] extends Array ? Array> : T[P] extends ReadonlyArray ? DeepRequired : DeepRequired; }; export interface Endpoints { /** - * @see https://developer.github.com/v3/apps/#delete-an-installation + * @see https://docs.github.com/v3/apps/#delete-an-installation-for-the-authenticated-app */ - "DELETE /app/installations/:installation_id": { - parameters: AppsDeleteInstallationEndpoint; - request: AppsDeleteInstallationRequestOptions; - response: OctokitResponse; - }; + "DELETE /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/#unsuspend-an-installation + * @see https://docs.github.com/v3/apps/#unsuspend-an-app-installation */ - "DELETE /app/installations/:installation_id/suspended": { - parameters: AppsUnsuspendInstallationEndpoint; - request: AppsUnsuspendInstallationRequestOptions; - response: OctokitResponse; - }; + "DELETE /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "delete">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-authorization + * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-a-grant */ - "DELETE /applications/:client_id/grant": { - parameters: AppsDeleteAuthorizationEndpoint; - request: AppsDeleteAuthorizationRequestOptions; - response: OctokitResponse; - }; + "DELETE /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application + * @see https://docs.github.com/rest/reference/apps#delete-an-app-authorization */ - "DELETE /applications/:client_id/grants/:access_token": { - parameters: AppsRevokeGrantForApplicationEndpoint; - request: AppsRevokeGrantForApplicationRequestOptions; - response: OctokitResponse; - }; + "DELETE /applications/{client_id}/grant": Operation<"/applications/{client_id}/grant", "delete">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-token + * @see https://docs.github.com/rest/reference/apps#revoke-a-grant-for-an-application */ - "DELETE /applications/:client_id/token": { - parameters: AppsDeleteTokenEndpoint; - request: AppsDeleteTokenRequestOptions; - response: OctokitResponse; - }; + "DELETE /applications/{client_id}/grants/{access_token}": Operation<"/applications/{client_id}/grants/{access_token}", "delete">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application + * @see https://docs.github.com/rest/reference/apps#delete-an-app-token */ - "DELETE /applications/:client_id/tokens/:access_token": { - parameters: AppsRevokeAuthorizationForApplicationEndpoint; - request: AppsRevokeAuthorizationForApplicationRequestOptions; - response: OctokitResponse; - }; + "DELETE /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant + * @see https://docs.github.com/rest/reference/apps#revoke-an-authorization-for-an-application */ - "DELETE /applications/grants/:grant_id": { - parameters: OauthAuthorizationsDeleteGrantEndpoint; - request: OauthAuthorizationsDeleteGrantRequestOptions; - response: OctokitResponse; - }; + "DELETE /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization + * @see https://docs.github.com/rest/reference/oauth-authorizations#delete-an-authorization */ - "DELETE /authorizations/:authorization_id": { - parameters: OauthAuthorizationsDeleteAuthorizationEndpoint; - request: OauthAuthorizationsDeleteAuthorizationRequestOptions; - response: OctokitResponse; - }; + "DELETE /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "delete">; /** - * @see https://developer.github.com/v3/gists/#delete-a-gist + * @see https://docs.github.com/rest/reference/enterprise-admin#disable-a-selected-organization-for-github-actions-in-an-enterprise */ - "DELETE /gists/:gist_id": { - parameters: GistsDeleteEndpoint; - request: GistsDeleteRequestOptions; - response: OctokitResponse; - }; + "DELETE /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "delete">; /** - * @see https://developer.github.com/v3/gists/comments/#delete-a-comment + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-self-hosted-runner-group-from-an-enterprise */ - "DELETE /gists/:gist_id/comments/:comment_id": { - parameters: GistsDeleteCommentEndpoint; - request: GistsDeleteCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "delete">; /** - * @see https://developer.github.com/v3/gists/#unstar-a-gist + * @see https://docs.github.com/rest/reference/enterprise-admin#remove-organization-access-to-a-self-hosted-runner-group-in-an-enterprise */ - "DELETE /gists/:gist_id/star": { - parameters: GistsUnstarEndpoint; - request: GistsUnstarRequestOptions; - response: OctokitResponse; - }; + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/installations/#revoke-an-installation-token + * @see https://docs.github.com/rest/reference/enterprise-admin#remove-a-self-hosted-runner-from-a-group-for-an-enterprise */ - "DELETE /installation/token": { - parameters: AppsRevokeInstallationTokenEndpoint; - request: AppsRevokeInstallationTokenRequestOptions; - response: OctokitResponse; - }; + "DELETE /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "delete">; /** - * @see https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-self-hosted-runner-from-an-enterprise */ - "DELETE /notifications/threads/:thread_id/subscription": { - parameters: ActivityDeleteThreadSubscriptionEndpoint; - request: ActivityDeleteThreadSubscriptionRequestOptions; - response: OctokitResponse; - }; + "DELETE /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "delete">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-an-organization + * @see https://docs.github.com/v3/gists/#delete-a-gist */ - "DELETE /orgs/:org/actions/runners/:runner_id": { - parameters: ActionsDeleteSelfHostedRunnerFromOrgEndpoint; - request: ActionsDeleteSelfHostedRunnerFromOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /gists/{gist_id}": Operation<"/gists/{gist_id}", "delete">; /** - * @see https://developer.github.com/v3/orgs/blocking/#unblock-a-user + * @see https://docs.github.com/rest/reference/gists#delete-a-gist-comment */ - "DELETE /orgs/:org/blocks/:username": { - parameters: OrgsUnblockUserEndpoint; - request: OrgsUnblockUserRequestOptions; - response: OctokitResponse; - }; + "DELETE /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "delete">; /** - * @see https://developer.github.com/v3/orgs/#remove-a-credential-authorization-for-an-organization + * @see https://docs.github.com/v3/gists/#unstar-a-gist */ - "DELETE /orgs/:org/credential-authorizations/:credential_id": { - parameters: OrgsRemoveCredentialAuthorizationEndpoint; - request: OrgsRemoveCredentialAuthorizationRequestOptions; - response: OctokitResponse; - }; + "DELETE /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "delete">; /** - * @see https://developer.github.com/v3/orgs/hooks/#delete-a-hook + * @see https://docs.github.com/rest/reference/apps#revoke-an-installation-access-token */ - "DELETE /orgs/:org/hooks/:hook_id": { - parameters: OrgsDeleteHookEndpoint; - request: OrgsDeleteHookRequestOptions; - response: OctokitResponse; - }; + "DELETE /installation/token": Operation<"/installation/token", "delete">; /** - * @see https://developer.github.com/v3/interactions/orgs/#remove-interaction-restrictions-for-an-organization + * @see https://docs.github.com/rest/reference/activity#delete-a-thread-subscription */ - "DELETE /orgs/:org/interaction-limits": { - parameters: InteractionsRemoveRestrictionsForOrgEndpoint; - request: InteractionsRemoveRestrictionsForOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "delete">; /** - * @see https://developer.github.com/v3/orgs/members/#remove-a-member + * @see https://docs.github.com/rest/reference/actions#disable-a-selected-repository-for-github-actions-in-an-organization */ - "DELETE /orgs/:org/members/:username": { - parameters: OrgsRemoveMemberEndpoint; - request: OrgsRemoveMemberRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "delete">; /** - * @see https://developer.github.com/v3/orgs/members/#remove-organization-membership + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-group-from-an-organization */ - "DELETE /orgs/:org/memberships/:username": { - parameters: OrgsRemoveMembershipEndpoint; - request: OrgsRemoveMembershipRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "delete">; /** - * @see https://developer.github.com/v3/migrations/orgs/#delete-an-organization-migration-archive + * @see https://docs.github.com/rest/reference/actions#remove-repository-access-to-a-self-hosted-runner-group-in-an-organization */ - "DELETE /orgs/:org/migrations/:migration_id/archive": { - parameters: MigrationsDeleteArchiveForOrgEndpoint; - request: MigrationsDeleteArchiveForOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "delete">; /** - * @see https://developer.github.com/v3/migrations/orgs/#unlock-an-organization-repository + * @see https://docs.github.com/rest/reference/actions#remove-a-self-hosted-runner-from-a-group-for-an-organization */ - "DELETE /orgs/:org/migrations/:migration_id/repos/:repo_name/lock": { - parameters: MigrationsUnlockRepoForOrgEndpoint; - request: MigrationsUnlockRepoForOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "delete">; /** - * @see https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-an-organization */ - "DELETE /orgs/:org/outside_collaborators/:username": { - parameters: OrgsRemoveOutsideCollaboratorEndpoint; - request: OrgsRemoveOutsideCollaboratorRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/runners/{runner_id}": Operation<"/orgs/{org}/actions/runners/{runner_id}", "delete">; /** - * @see https://developer.github.com/v3/orgs/members/#conceal-a-users-membership + * @see https://docs.github.com/rest/reference/actions#delete-an-organization-secret */ - "DELETE /orgs/:org/public_members/:username": { - parameters: OrgsConcealMembershipEndpoint; - request: OrgsConcealMembershipRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "delete">; /** - * @see https://developer.github.com/v3/teams/#delete-team + * @see https://docs.github.com/rest/reference/actions#remove-selected-repository-from-an-organization-secret */ - "DELETE /orgs/:org/teams/:team_slug": { - parameters: TeamsDeleteInOrgEndpoint; - request: TeamsDeleteInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "delete">; /** - * @see https://developer.github.com/v3/teams/discussions/#delete-a-discussion + * @see https://docs.github.com/rest/reference/orgs#unblock-a-user-from-an-organization */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number": { - parameters: TeamsDeleteDiscussionInOrgEndpoint; - request: TeamsDeleteDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "delete">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment + * @see https://docs.github.com/v3/orgs/#remove-a-saml-sso-authorization-for-an-organization */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsDeleteDiscussionCommentInOrgEndpoint; - request: TeamsDeleteDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/credential-authorizations/{credential_id}": Operation<"/orgs/{org}/credential-authorizations/{credential_id}", "delete">; /** - * @see https://developer.github.com/v3/reactions/#delete-team-discussion-comment-reaction + * @see https://docs.github.com/rest/reference/orgs#delete-an-organization-webhook */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id": { - parameters: ReactionsDeleteForTeamDiscussionCommentEndpoint; - request: ReactionsDeleteForTeamDiscussionCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "delete">; /** - * @see https://developer.github.com/v3/reactions/#delete-team-discussion-reaction + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-an-organization */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id": { - parameters: ReactionsDeleteForTeamDiscussionEndpoint; - request: ReactionsDeleteForTeamDiscussionRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "delete">; /** - * @see https://developer.github.com/v3/teams/members/#remove-team-membership + * @see https://docs.github.com/rest/reference/orgs#remove-an-organization-member */ - "DELETE /orgs/:org/teams/:team_slug/memberships/:username": { - parameters: TeamsRemoveMembershipInOrgEndpoint; - request: TeamsRemoveMembershipInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "delete">; /** - * @see https://developer.github.com/v3/teams/#remove-team-project + * @see https://docs.github.com/rest/reference/orgs#remove-organization-membership-for-a-user */ - "DELETE /orgs/:org/teams/:team_slug/projects/:project_id": { - parameters: TeamsRemoveProjectInOrgEndpoint; - request: TeamsRemoveProjectInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "delete">; /** - * @see https://developer.github.com/v3/teams/#remove-team-repository + * @see https://docs.github.com/rest/reference/migrations#delete-an-organization-migration-archive */ - "DELETE /orgs/:org/teams/:team_slug/repos/:owner/:repo": { - parameters: TeamsRemoveRepoInOrgEndpoint; - request: TeamsRemoveRepoInOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/migrations/{migration_id}/archive": Operation<"/orgs/{org}/migrations/{migration_id}/archive", "delete", "wyandotte">; /** - * @see https://developer.github.com/v3/projects/#delete-a-project + * @see https://docs.github.com/rest/reference/migrations#unlock-an-organization-repository */ - "DELETE /projects/:project_id": { - parameters: ProjectsDeleteEndpoint; - request: ProjectsDeleteRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock": Operation<"/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock", "delete", "wyandotte">; /** - * @see https://developer.github.com/v3/projects/collaborators/#remove-user-as-a-collaborator + * @see https://docs.github.com/rest/reference/orgs#remove-outside-collaborator-from-an-organization */ - "DELETE /projects/:project_id/collaborators/:username": { - parameters: ProjectsRemoveCollaboratorEndpoint; - request: ProjectsRemoveCollaboratorRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/outside_collaborators/{username}": Operation<"/orgs/{org}/outside_collaborators/{username}", "delete">; /** - * @see https://developer.github.com/v3/projects/columns/#delete-a-project-column + * @see https://docs.github.com/rest/reference/orgs#remove-public-organization-membership-for-the-authenticated-user */ - "DELETE /projects/columns/:column_id": { - parameters: ProjectsDeleteColumnEndpoint; - request: ProjectsDeleteColumnRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "delete">; /** - * @see https://developer.github.com/v3/projects/cards/#delete-a-project-card + * @see https://docs.github.com/v3/teams/#delete-a-team */ - "DELETE /projects/columns/cards/:card_id": { - parameters: ProjectsDeleteCardEndpoint; - request: ProjectsDeleteCardRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "delete">; /** - * @see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion */ - "DELETE /reactions/:reaction_id": { - parameters: ReactionsDeleteLegacyEndpoint; - request: ReactionsDeleteLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "delete">; /** - * @see https://developer.github.com/v3/repos/#delete-a-repository + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-comment */ - "DELETE /repos/:owner/:repo": { - parameters: ReposDeleteEndpoint; - request: ReposDeleteRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "delete">; /** - * @see https://developer.github.com/v3/actions/artifacts/#delete-an-artifact + * @see https://docs.github.com/v3/reactions/#delete-team-discussion-comment-reaction */ - "DELETE /repos/:owner/:repo/actions/artifacts/:artifact_id": { - parameters: ActionsDeleteArtifactEndpoint; - request: ActionsDeleteArtifactRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-a-repository + * @see https://docs.github.com/v3/reactions/#delete-team-discussion-reaction */ - "DELETE /repos/:owner/:repo/actions/runners/:runner_id": { - parameters: ActionsDeleteSelfHostedRunnerFromRepoEndpoint; - request: ActionsDeleteSelfHostedRunnerFromRepoRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#delete-workflow-run-logs + * @see https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user */ - "DELETE /repos/:owner/:repo/actions/runs/:run_id/logs": { - parameters: ActionsDeleteWorkflowRunLogsEndpoint; - request: ActionsDeleteWorkflowRunLogsRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "delete">; /** - * @see https://developer.github.com/v3/actions/secrets/#delete-a-secret-from-a-repository + * @see https://docs.github.com/v3/teams/#remove-a-project-from-a-team */ - "DELETE /repos/:owner/:repo/actions/secrets/:name": { - parameters: ActionsDeleteSecretFromRepoEndpoint; - request: ActionsDeleteSecretFromRepoRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "delete">; /** - * @see https://developer.github.com/v3/repos/#disable-automated-security-fixes + * @see https://docs.github.com/v3/teams/#remove-a-repository-from-a-team */ - "DELETE /repos/:owner/:repo/automated-security-fixes": { - parameters: ReposDisableAutomatedSecurityFixesEndpoint; - request: ReposDisableAutomatedSecurityFixesRequestOptions; - response: OctokitResponse; - }; + "DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "delete">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-branch-protection + * @see https://docs.github.com/rest/reference/projects#delete-a-project-card */ - "DELETE /repos/:owner/:repo/branches/:branch/protection": { - parameters: ReposRemoveBranchProtectionEndpoint; - request: ReposRemoveBranchProtectionRequestOptions; - response: OctokitResponse; - }; + "DELETE /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "delete", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-admin-enforcement-of-protected-branch + * @see https://docs.github.com/rest/reference/projects#delete-a-project-column */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { - parameters: ReposRemoveProtectedBranchAdminEnforcementEndpoint; - request: ReposRemoveProtectedBranchAdminEnforcementRequestOptions; - response: OctokitResponse; - }; + "DELETE /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "delete", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch + * @see https://docs.github.com/v3/projects/#delete-a-project */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { - parameters: ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint; - request: ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions; - response: OctokitResponse; - }; + "DELETE /projects/{project_id}": Operation<"/projects/{project_id}", "delete", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-required-signatures-of-protected-branch + * @see https://docs.github.com/rest/reference/projects#remove-project-collaborator */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_signatures": { - parameters: ReposRemoveProtectedBranchRequiredSignaturesEndpoint; - request: ReposRemoveProtectedBranchRequiredSignaturesRequestOptions; - response: OctokitResponse; - }; + "DELETE /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "delete", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-required-status-checks-of-protected-branch + * @see https://docs.github.com/v3/reactions/#delete-a-reaction-legacy */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { - parameters: ReposRemoveProtectedBranchRequiredStatusChecksEndpoint; - request: ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions; - response: OctokitResponse; - }; + "DELETE /reactions/{reaction_id}": Operation<"/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch + * @see https://docs.github.com/v3/repos/#delete-a-repository */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "delete">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/actions#delete-an-artifact */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions": { - parameters: ReposRemoveProtectedBranchRestrictionsEndpoint; - request: ReposRemoveProtectedBranchRestrictionsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "delete">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-app-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/actions#delete-a-self-hosted-runner-from-a-repository */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposRemoveProtectedBranchAppRestrictionsEndpoint; - request: ReposRemoveProtectedBranchAppRestrictionsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}": Operation<"/repos/{owner}/{repo}/actions/runners/{runner_id}", "delete">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-team-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/actions#delete-a-workflow-run */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposRemoveProtectedBranchTeamRestrictionsEndpoint; - request: ReposRemoveProtectedBranchTeamRestrictionsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}", "delete">; /** - * @see https://developer.github.com/v3/repos/branches/#remove-user-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/actions#delete-workflow-run-logs */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposRemoveProtectedBranchUserRestrictionsEndpoint; - request: ReposRemoveProtectedBranchUserRestrictionsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/logs", "delete">; /** - * @see https://developer.github.com/v3/repos/collaborators/#remove-user-as-a-collaborator + * @see https://docs.github.com/rest/reference/actions#delete-a-repository-secret */ - "DELETE /repos/:owner/:repo/collaborators/:username": { - parameters: ReposRemoveCollaboratorEndpoint; - request: ReposRemoveCollaboratorRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "delete">; /** - * @see https://developer.github.com/v3/repos/comments/#delete-a-commit-comment + * @see https://docs.github.com/v3/repos/#disable-automated-security-fixes */ - "DELETE /repos/:owner/:repo/comments/:comment_id": { - parameters: ReposDeleteCommitCommentEndpoint; - request: ReposDeleteCommitCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "delete", "london">; /** - * @see https://developer.github.com/v3/reactions/#delete-a-commit-comment-reaction + * @see https://docs.github.com/rest/reference/repos#delete-branch-protection */ - "DELETE /repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id": { - parameters: ReactionsDeleteForCommitCommentEndpoint; - request: ReactionsDeleteForCommitCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "delete">; /** - * @see https://developer.github.com/v3/repos/contents/#delete-a-file + * @see https://docs.github.com/rest/reference/repos#delete-admin-branch-protection */ - "DELETE /repos/:owner/:repo/contents/:path": { - parameters: ReposDeleteFileEndpoint; - request: ReposDeleteFileRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "delete">; /** - * @see https://developer.github.com/v3/repos/deployments/#delete-a-deployment + * @see https://docs.github.com/rest/reference/repos#delete-pull-request-review-protection */ - "DELETE /repos/:owner/:repo/deployments/:deployment_id": { - parameters: ReposDeleteDeploymentEndpoint; - request: ReposDeleteDeploymentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "delete">; /** - * @see https://developer.github.com/v3/repos/downloads/#delete-a-download + * @see https://docs.github.com/rest/reference/repos#delete-commit-signature-protection */ - "DELETE /repos/:owner/:repo/downloads/:download_id": { - parameters: ReposDeleteDownloadEndpoint; - request: ReposDeleteDownloadRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "delete", "zzzax">; /** - * @see https://developer.github.com/v3/git/refs/#delete-a-reference + * @see https://docs.github.com/rest/reference/repos#remove-status-check-protection */ - "DELETE /repos/:owner/:repo/git/refs/:ref": { - parameters: GitDeleteRefEndpoint; - request: GitDeleteRefRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "delete">; /** - * @see https://developer.github.com/v3/repos/hooks/#delete-a-hook + * @see https://docs.github.com/rest/reference/repos#remove-status-check-contexts */ - "DELETE /repos/:owner/:repo/hooks/:hook_id": { - parameters: ReposDeleteHookEndpoint; - request: ReposDeleteHookRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "delete">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#cancel-an-import + * @see https://docs.github.com/rest/reference/repos#delete-access-restrictions */ - "DELETE /repos/:owner/:repo/import": { - parameters: MigrationsCancelImportEndpoint; - request: MigrationsCancelImportRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "delete">; /** - * @see https://developer.github.com/v3/interactions/repos/#remove-interaction-restrictions-for-a-repository + * @see https://docs.github.com/rest/reference/repos#remove-app-access-restrictions */ - "DELETE /repos/:owner/:repo/interaction-limits": { - parameters: InteractionsRemoveRestrictionsForRepoEndpoint; - request: InteractionsRemoveRestrictionsForRepoRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "delete">; /** - * @see https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation + * @see https://docs.github.com/rest/reference/repos#remove-team-access-restrictions */ - "DELETE /repos/:owner/:repo/invitations/:invitation_id": { - parameters: ReposDeleteInvitationEndpoint; - request: ReposDeleteInvitationRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "delete">; /** - * @see https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue + * @see https://docs.github.com/rest/reference/repos#remove-user-access-restrictions */ - "DELETE /repos/:owner/:repo/issues/:issue_number/assignees": { - parameters: IssuesRemoveAssigneesEndpoint; - request: IssuesRemoveAssigneesRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "delete">; /** - * @see https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue + * @see https://docs.github.com/rest/reference/repos#remove-a-repository-collaborator */ - "DELETE /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesRemoveAllLabelsEndpoint; - request: IssuesRemoveAllLabelsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "delete">; /** - * @see https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue + * @see https://docs.github.com/rest/reference/repos#delete-a-commit-comment */ - "DELETE /repos/:owner/:repo/issues/:issue_number/labels/:name": { - parameters: IssuesRemoveLabelEndpoint; - request: IssuesRemoveLabelRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "delete">; /** - * @see https://developer.github.com/v3/issues/#unlock-an-issue + * @see https://docs.github.com/v3/reactions/#delete-a-commit-comment-reaction */ - "DELETE /repos/:owner/:repo/issues/:issue_number/lock": { - parameters: IssuesUnlockEndpoint; - request: IssuesUnlockRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/reactions/#delete-an-issue-reaction + * @see https://docs.github.com/rest/reference/repos#delete-a-file */ - "DELETE /repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id": { - parameters: ReactionsDeleteForIssueEndpoint; - request: ReactionsDeleteForIssueRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "delete">; /** - * @see https://developer.github.com/v3/issues/comments/#delete-a-comment + * @see https://docs.github.com/rest/reference/repos#delete-a-deployment */ - "DELETE /repos/:owner/:repo/issues/comments/:comment_id": { - parameters: IssuesDeleteCommentEndpoint; - request: IssuesDeleteCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "delete">; /** - * @see https://developer.github.com/v3/reactions/#delete-an-issue-comment-reaction + * @see https://docs.github.com/rest/reference/git#delete-a-reference */ - "DELETE /repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id": { - parameters: ReactionsDeleteForIssueCommentEndpoint; - request: ReactionsDeleteForIssueCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "delete">; /** - * @see https://developer.github.com/v3/repos/keys/#remove-a-deploy-key + * @see https://docs.github.com/rest/reference/repos#delete-a-repository-webhook */ - "DELETE /repos/:owner/:repo/keys/:key_id": { - parameters: ReposRemoveDeployKeyEndpoint; - request: ReposRemoveDeployKeyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "delete">; /** - * @see https://developer.github.com/v3/issues/labels/#delete-a-label + * @see https://docs.github.com/rest/reference/migrations#cancel-an-import */ - "DELETE /repos/:owner/:repo/labels/:name": { - parameters: IssuesDeleteLabelEndpoint; - request: IssuesDeleteLabelRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "delete">; /** - * @see https://developer.github.com/v3/issues/milestones/#delete-a-milestone + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-for-a-repository */ - "DELETE /repos/:owner/:repo/milestones/:milestone_number": { - parameters: IssuesDeleteMilestoneEndpoint; - request: IssuesDeleteMilestoneRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "delete">; /** - * @see https://developer.github.com/v3/repos/pages/#disable-a-pages-site + * @see https://docs.github.com/rest/reference/repos#delete-a-repository-invitation */ - "DELETE /repos/:owner/:repo/pages": { - parameters: ReposDisablePagesSiteEndpoint; - request: ReposDisablePagesSiteRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "delete">; /** - * @see https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request + * @see https://docs.github.com/rest/reference/issues#delete-an-issue-comment */ - "DELETE /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { - parameters: PullsDeleteReviewRequestEndpoint; - request: PullsDeleteReviewRequestRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "delete">; /** - * @see https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review + * @see https://docs.github.com/v3/reactions/#delete-an-issue-comment-reaction */ - "DELETE /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { - parameters: PullsDeletePendingReviewEndpoint; - request: PullsDeletePendingReviewRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/pulls/comments/#delete-a-comment + * @see https://docs.github.com/rest/reference/issues#remove-assignees-from-an-issue */ - "DELETE /repos/:owner/:repo/pulls/comments/:comment_id": { - parameters: PullsDeleteCommentEndpoint; - request: PullsDeleteCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees", "delete">; /** - * @see https://developer.github.com/v3/reactions/#delete-a-pull-request-comment-reaction + * @see https://docs.github.com/rest/reference/issues#remove-all-labels-from-an-issue */ - "DELETE /repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id": { - parameters: ReactionsDeleteForPullRequestCommentEndpoint; - request: ReactionsDeleteForPullRequestCommentRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "delete">; /** - * @see https://developer.github.com/v3/repos/releases/#delete-a-release + * @see https://docs.github.com/rest/reference/issues#remove-a-label-from-an-issue */ - "DELETE /repos/:owner/:repo/releases/:release_id": { - parameters: ReposDeleteReleaseEndpoint; - request: ReposDeleteReleaseRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}", "delete">; /** - * @see https://developer.github.com/v3/repos/releases/#delete-a-release-asset + * @see https://docs.github.com/v3/issues/#unlock-an-issue */ - "DELETE /repos/:owner/:repo/releases/assets/:asset_id": { - parameters: ReposDeleteReleaseAssetEndpoint; - request: ReposDeleteReleaseAssetRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/lock", "delete">; /** - * @see https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription + * @see https://docs.github.com/v3/reactions/#delete-an-issue-reaction */ - "DELETE /repos/:owner/:repo/subscription": { - parameters: ActivityDeleteRepoSubscriptionEndpoint; - request: ActivityDeleteRepoSubscriptionRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/#disable-vulnerability-alerts + * @see https://docs.github.com/rest/reference/repos#delete-a-deploy-key */ - "DELETE /repos/:owner/:repo/vulnerability-alerts": { - parameters: ReposDisableVulnerabilityAlertsEndpoint; - request: ReposDisableVulnerabilityAlertsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "delete">; /** - * @see https://developer.github.com/v3/scim/#remove-a-user-from-the-organization + * @see https://docs.github.com/rest/reference/issues#delete-a-label */ - "DELETE /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimRemoveUserFromOrgEndpoint; - request: ScimRemoveUserFromOrgRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "delete">; /** - * @see https://developer.github.com/v3/teams/#delete-team-legacy + * @see https://docs.github.com/rest/reference/issues#delete-a-milestone */ - "DELETE /teams/:team_id": { - parameters: TeamsDeleteLegacyEndpoint; - request: TeamsDeleteLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "delete">; /** - * @see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy + * @see https://docs.github.com/rest/reference/repos#delete-a-github-pages-site */ - "DELETE /teams/:team_id/discussions/:discussion_number": { - parameters: TeamsDeleteDiscussionLegacyEndpoint; - request: TeamsDeleteDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "delete", "switcheroo">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy + * @see https://docs.github.com/rest/reference/pulls#delete-a-review-comment-for-a-pull-request */ - "DELETE /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsDeleteDiscussionCommentLegacyEndpoint; - request: TeamsDeleteDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "delete">; /** - * @see https://developer.github.com/v3/teams/members/#remove-team-member-legacy + * @see https://docs.github.com/v3/reactions/#delete-a-pull-request-comment-reaction */ - "DELETE /teams/:team_id/members/:username": { - parameters: TeamsRemoveMemberLegacyEndpoint; - request: TeamsRemoveMemberLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}", "delete", "squirrel-girl">; /** - * @see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy + * @see https://docs.github.com/rest/reference/pulls#remove-requested-reviewers-from-a-pull-request */ - "DELETE /teams/:team_id/memberships/:username": { - parameters: TeamsRemoveMembershipLegacyEndpoint; - request: TeamsRemoveMembershipLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "delete">; /** - * @see https://developer.github.com/v3/teams/#remove-team-project-legacy + * @see https://docs.github.com/rest/reference/pulls#delete-a-pending-review-for-a-pull-request */ - "DELETE /teams/:team_id/projects/:project_id": { - parameters: TeamsRemoveProjectLegacyEndpoint; - request: TeamsRemoveProjectLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "delete">; /** - * @see https://developer.github.com/v3/teams/#remove-team-repository-legacy + * @see https://docs.github.com/rest/reference/repos#delete-a-release-asset */ - "DELETE /teams/:team_id/repos/:owner/:repo": { - parameters: TeamsRemoveRepoLegacyEndpoint; - request: TeamsRemoveRepoLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "delete">; /** - * @see https://developer.github.com/v3/users/blocking/#unblock-a-user + * @see https://docs.github.com/rest/reference/repos#delete-a-release */ - "DELETE /user/blocks/:username": { - parameters: UsersUnblockEndpoint; - request: UsersUnblockRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "delete">; /** - * @see https://developer.github.com/v3/users/emails/#delete-email-addresses + * @see https://docs.github.com/rest/reference/activity#delete-a-repository-subscription */ - "DELETE /user/emails": { - parameters: UsersDeleteEmailsEndpoint; - request: UsersDeleteEmailsRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "delete">; /** - * @see https://developer.github.com/v3/users/followers/#unfollow-a-user + * @see https://docs.github.com/v3/repos/#disable-vulnerability-alerts */ - "DELETE /user/following/:username": { - parameters: UsersUnfollowEndpoint; - request: UsersUnfollowRequestOptions; - response: OctokitResponse; - }; + "DELETE /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "delete", "dorian">; /** - * @see https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-group-from-an-enterprise */ - "DELETE /user/gpg_keys/:gpg_key_id": { - parameters: UsersDeleteGpgKeyEndpoint; - request: UsersDeleteGpgKeyRequestOptions; - response: OctokitResponse; - }; + "DELETE /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/installations/#remove-repository-from-installation + * @see https://docs.github.com/rest/reference/enterprise-admin#delete-a-scim-user-from-an-enterprise */ - "DELETE /user/installations/:installation_id/repositories/:repository_id": { - parameters: AppsRemoveRepoFromInstallationEndpoint; - request: AppsRemoveRepoFromInstallationRequestOptions; - response: OctokitResponse; - }; + "DELETE /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "delete">; /** - * @see https://developer.github.com/v3/users/keys/#delete-a-public-key + * @see https://docs.github.com/v3/scim/#delete-a-scim-user-from-an-organization */ - "DELETE /user/keys/:key_id": { - parameters: UsersDeletePublicKeyEndpoint; - request: UsersDeletePublicKeyRequestOptions; - response: OctokitResponse; - }; + "DELETE /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "delete">; /** - * @see https://developer.github.com/v3/migrations/users/#delete-a-user-migration-archive + * @see https://docs.github.com/v3/teams/#delete-a-team-legacy */ - "DELETE /user/migrations/:migration_id/archive": { - parameters: MigrationsDeleteArchiveForAuthenticatedUserEndpoint; - request: MigrationsDeleteArchiveForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}": Operation<"/teams/{team_id}", "delete">; /** - * @see https://developer.github.com/v3/migrations/users/#unlock-a-user-repository + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-legacy */ - "DELETE /user/migrations/:migration_id/repos/:repo_name/lock": { - parameters: MigrationsUnlockRepoForAuthenticatedUserEndpoint; - request: MigrationsUnlockRepoForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "delete">; /** - * @see https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation + * @see https://docs.github.com/rest/reference/teams#delete-a-discussion-comment-legacy */ - "DELETE /user/repository_invitations/:invitation_id": { - parameters: ReposDeclineInvitationEndpoint; - request: ReposDeclineInvitationRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "delete">; /** - * @see https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user + * @see https://docs.github.com/rest/reference/teams#remove-team-member-legacy */ - "DELETE /user/starred/:owner/:repo": { - parameters: ActivityUnstarRepoForAuthenticatedUserEndpoint; - request: ActivityUnstarRepoForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "delete">; /** - * @see https://developer.github.com/v3/activity/watching/#stop-watching-a-repository-legacy + * @see https://docs.github.com/rest/reference/teams#remove-team-membership-for-a-user-legacy */ - "DELETE /user/subscriptions/:owner/:repo": { - parameters: ActivityStopWatchingRepoLegacyEndpoint; - request: ActivityStopWatchingRepoLegacyRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "delete">; /** - * @see https://developer.github.com/v3/apps/#get-the-authenticated-github-app + * @see https://docs.github.com/v3/teams/#remove-a-project-from-a-team-legacy */ - "GET /app": { - parameters: AppsGetAuthenticatedEndpoint; - request: AppsGetAuthenticatedRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/#list-installations + * @see https://docs.github.com/v3/teams/#remove-a-repository-from-a-team-legacy */ - "GET /app/installations": { - parameters: AppsListInstallationsEndpoint; - request: AppsListInstallationsRequestOptions; - response: OctokitResponse; - }; + "DELETE /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "delete">; /** - * @see https://developer.github.com/v3/apps/#get-an-installation + * @see https://docs.github.com/rest/reference/users#unblock-a-user */ - "GET /app/installations/:installation_id": { - parameters: AppsGetInstallationEndpoint; - request: AppsGetInstallationRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/blocks/{username}": Operation<"/user/blocks/{username}", "delete">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization + * @see https://docs.github.com/rest/reference/users#delete-an-email-address-for-the-authenticated-user */ - "GET /applications/:client_id/tokens/:access_token": { - parameters: AppsCheckAuthorizationEndpoint; - request: AppsCheckAuthorizationRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/emails": Operation<"/user/emails", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#list-your-grants + * @see https://docs.github.com/rest/reference/users#unfollow-a-user */ - "GET /applications/grants": { - parameters: OauthAuthorizationsListGrantsEndpoint; - request: OauthAuthorizationsListGrantsRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/following/{username}": Operation<"/user/following/{username}", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant + * @see https://docs.github.com/rest/reference/users#delete-a-gpg-key-for-the-authenticated-user */ - "GET /applications/grants/:grant_id": { - parameters: OauthAuthorizationsGetGrantEndpoint; - request: OauthAuthorizationsGetGrantRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/gpg_keys/{gpg_key_id}": Operation<"/user/gpg_keys/{gpg_key_id}", "delete">; /** - * @see https://developer.github.com/v3/apps/#get-a-single-github-app + * @see https://docs.github.com/rest/reference/apps#remove-a-repository-from-an-app-installation */ - "GET /apps/:app_slug": { - parameters: AppsGetBySlugEndpoint; - request: AppsGetBySlugRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/installations/{installation_id}/repositories/{repository_id}": Operation<"/user/installations/{installation_id}/repositories/{repository_id}", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations + * @see https://docs.github.com/rest/reference/interactions#remove-interaction-restrictions-from-your-public-repositories */ - "GET /authorizations": { - parameters: OauthAuthorizationsListAuthorizationsEndpoint; - request: OauthAuthorizationsListAuthorizationsRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/interaction-limits": Operation<"/user/interaction-limits", "delete">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization + * @see https://docs.github.com/rest/reference/users#delete-a-public-ssh-key-for-the-authenticated-user */ - "GET /authorizations/:authorization_id": { - parameters: OauthAuthorizationsGetAuthorizationEndpoint; - request: OauthAuthorizationsGetAuthorizationRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/keys/{key_id}": Operation<"/user/keys/{key_id}", "delete">; /** - * @see https://developer.github.com/v3/codes_of_conduct/#list-all-codes-of-conduct + * @see https://docs.github.com/rest/reference/migrations#delete-a-user-migration-archive */ - "GET /codes_of_conduct": { - parameters: CodesOfConductGetAllCodesOfConductEndpoint; - request: CodesOfConductGetAllCodesOfConductRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/migrations/{migration_id}/archive": Operation<"/user/migrations/{migration_id}/archive", "delete", "wyandotte">; /** - * @see https://developer.github.com/v3/codes_of_conduct/#get-an-individual-code-of-conduct + * @see https://docs.github.com/rest/reference/migrations#unlock-a-user-repository */ - "GET /codes_of_conduct/:key": { - parameters: CodesOfConductGetConductCodeEndpoint; - request: CodesOfConductGetConductCodeRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock": Operation<"/user/migrations/{migration_id}/repos/{repo_name}/lock", "delete", "wyandotte">; /** - * @see https://developer.github.com/v3/emojis/#emojis + * @see https://docs.github.com/rest/reference/repos#decline-a-repository-invitation */ - "GET /emojis": { - parameters: EmojisGetEndpoint; - request: EmojisGetRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "delete">; /** - * @see https://developer.github.com/v3/activity/events/#list-public-events + * @see https://docs.github.com/rest/reference/activity#unstar-a-repository-for-the-authenticated-user */ - "GET /events": { - parameters: ActivityListPublicEventsEndpoint; - request: ActivityListPublicEventsRequestOptions; - response: OctokitResponse; - }; + "DELETE /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "delete">; /** - * @see https://developer.github.com/v3/activity/feeds/#get-feeds + * @see */ - "GET /feeds": { - parameters: ActivityGetFeedsEndpoint; - request: ActivityGetFeedsRequestOptions; - response: OctokitResponse; - }; + "GET /": Operation<"/", "get">; /** - * @see https://developer.github.com/v3/gists/#list-gists-for-the-authenticated-user + * @see https://docs.github.com/v3/apps/#get-the-authenticated-app */ - "GET /gists": { - parameters: GistsListEndpoint; - request: GistsListRequestOptions; - response: OctokitResponse; - }; + "GET /app": Operation<"/app", "get">; /** - * @see https://developer.github.com/v3/gists/#get-a-gist + * @see https://docs.github.com/v3/apps#get-a-webhook-configuration-for-an-app */ - "GET /gists/:gist_id": { - parameters: GistsGetEndpoint; - request: GistsGetRequestOptions; - response: OctokitResponse; - }; + "GET /app/hook/config": Operation<"/app/hook/config", "get">; /** - * @see https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist + * @see https://docs.github.com/v3/apps/#list-installations-for-the-authenticated-app */ - "GET /gists/:gist_id/:sha": { - parameters: GistsGetRevisionEndpoint; - request: GistsGetRevisionRequestOptions; - response: OctokitResponse; - }; + "GET /app/installations": Operation<"/app/installations", "get">; /** - * @see https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist + * @see https://docs.github.com/v3/apps/#get-an-installation-for-the-authenticated-app */ - "GET /gists/:gist_id/comments": { - parameters: GistsListCommentsEndpoint; - request: GistsListCommentsRequestOptions; - response: OctokitResponse; - }; + "GET /app/installations/{installation_id}": Operation<"/app/installations/{installation_id}", "get">; /** - * @see https://developer.github.com/v3/gists/comments/#get-a-single-comment + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-grants */ - "GET /gists/:gist_id/comments/:comment_id": { - parameters: GistsGetCommentEndpoint; - request: GistsGetCommentRequestOptions; - response: OctokitResponse; - }; + "GET /applications/grants": Operation<"/applications/grants", "get">; /** - * @see https://developer.github.com/v3/gists/#list-gist-commits + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-grant */ - "GET /gists/:gist_id/commits": { - parameters: GistsListCommitsEndpoint; - request: GistsListCommitsRequestOptions; - response: OctokitResponse; - }; + "GET /applications/grants/{grant_id}": Operation<"/applications/grants/{grant_id}", "get">; /** - * @see https://developer.github.com/v3/gists/#list-gist-forks + * @see https://docs.github.com/rest/reference/apps#check-an-authorization */ - "GET /gists/:gist_id/forks": { - parameters: GistsListForksEndpoint; - request: GistsListForksRequestOptions; - response: OctokitResponse; - }; + "GET /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "get">; /** - * @see https://developer.github.com/v3/gists/#check-if-a-gist-is-starred + * @see https://docs.github.com/v3/apps/#get-an-app */ - "GET /gists/:gist_id/star": { - parameters: GistsCheckIsStarredEndpoint; - request: GistsCheckIsStarredRequestOptions; - response: OctokitResponse; - }; + "GET /apps/{app_slug}": Operation<"/apps/{app_slug}", "get">; /** - * @see https://developer.github.com/v3/gists/#list-public-gists + * @see https://docs.github.com/rest/reference/oauth-authorizations#list-your-authorizations */ - "GET /gists/public": { - parameters: GistsListPublicEndpoint; - request: GistsListPublicRequestOptions; - response: OctokitResponse; - }; + "GET /authorizations": Operation<"/authorizations", "get">; /** - * @see https://developer.github.com/v3/gists/#list-starred-gists + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-a-single-authorization */ - "GET /gists/starred": { - parameters: GistsListStarredEndpoint; - request: GistsListStarredRequestOptions; - response: OctokitResponse; - }; + "GET /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "get">; /** - * @see https://developer.github.com/v3/gitignore/#listing-available-templates + * @see https://docs.github.com/v3/codes_of_conduct/#get-all-codes-of-conduct */ - "GET /gitignore/templates": { - parameters: GitignoreListTemplatesEndpoint; - request: GitignoreListTemplatesRequestOptions; - response: OctokitResponse; - }; + "GET /codes_of_conduct": Operation<"/codes_of_conduct", "get", "scarlet-witch">; /** - * @see https://developer.github.com/v3/gitignore/#get-a-single-template + * @see https://docs.github.com/v3/codes_of_conduct/#get-a-code-of-conduct */ - "GET /gitignore/templates/:name": { - parameters: GitignoreGetTemplateEndpoint; - request: GitignoreGetTemplateRequestOptions; - response: OctokitResponse; - }; + "GET /codes_of_conduct/{key}": Operation<"/codes_of_conduct/{key}", "get", "scarlet-witch">; /** - * @see https://developer.github.com/v3/apps/installations/#list-repositories + * @see https://docs.github.com/v3/emojis/#get-emojis */ - "GET /installation/repositories": { - parameters: AppsListReposEndpoint; - request: AppsListReposRequestOptions; - response: OctokitResponse; - }; + "GET /emojis": Operation<"/emojis", "get">; /** - * @see https://developer.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user + * @see https://docs.github.com/rest/reference/enterprise-admin#get-github-actions-permissions-for-an-enterprise */ - "GET /issues": { - parameters: IssuesListEndpoint; - request: IssuesListRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "get">; /** - * @see https://developer.github.com/v3/search/legacy/#search-issues + * @see https://docs.github.com/rest/reference/enterprise-admin#list-selected-organizations-enabled-for-github-actions-in-an-enterprise */ - "GET /legacy/issues/search/:owner/:repository/:state/:keyword": { - parameters: SearchIssuesLegacyEndpoint; - request: SearchIssuesLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "get">; /** - * @see https://developer.github.com/v3/search/legacy/#search-repositories + * @see https://docs.github.com/rest/reference/enterprise-admin#get-allowed-actions-for-an-enterprise */ - "GET /legacy/repos/search/:keyword": { - parameters: SearchReposLegacyEndpoint; - request: SearchReposLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "get">; /** - * @see https://developer.github.com/v3/search/legacy/#email-search + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runner-groups-for-an-enterprise */ - "GET /legacy/user/email/:email": { - parameters: SearchEmailLegacyEndpoint; - request: SearchEmailLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "get">; /** - * @see https://developer.github.com/v3/search/legacy/#search-users + * @see https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-group-for-an-enterprise */ - "GET /legacy/user/search/:keyword": { - parameters: SearchUsersLegacyEndpoint; - request: SearchUsersLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "get">; /** - * @see https://developer.github.com/v3/licenses/#list-commonly-used-licenses + * @see https://docs.github.com/rest/reference/enterprise-admin#list-organization-access-to-a-self-hosted-runner-group-in-a-enterprise */ - "GET /licenses": { - parameters: LicensesListCommonlyUsedEndpoint; - request: LicensesListCommonlyUsedRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "get">; /** - * @see https://developer.github.com/v3/licenses/#get-an-individual-license + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-in-a-group-for-an-enterprise */ - "GET /licenses/:license": { - parameters: LicensesGetEndpoint; - request: LicensesGetRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#get-a-subscription-plan-for-an-account + * @see https://docs.github.com/rest/reference/enterprise-admin#list-self-hosted-runners-for-an-enterprise */ - "GET /marketplace_listing/accounts/:account_id": { - parameters: AppsGetSubscriptionPlanForAccountEndpoint; - request: AppsGetSubscriptionPlanForAccountRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runners": Operation<"/enterprises/{enterprise}/actions/runners", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-plans + * @see https://docs.github.com/rest/reference/enterprise-admin#list-runner-applications-for-an-enterprise */ - "GET /marketplace_listing/plans": { - parameters: AppsListPlansEndpoint; - request: AppsListPlansRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runners/downloads": Operation<"/enterprises/{enterprise}/actions/runners/downloads", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-accounts-for-a-plan + * @see https://docs.github.com/rest/reference/enterprise-admin#get-a-self-hosted-runner-for-an-enterprise */ - "GET /marketplace_listing/plans/:plan_id/accounts": { - parameters: AppsListAccountsForPlanEndpoint; - request: AppsListAccountsForPlanRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/actions/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runners/{runner_id}", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#get-a-subscription-plan-for-an-account-stubbed + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-enterprise */ - "GET /marketplace_listing/stubbed/accounts/:account_id": { - parameters: AppsGetSubscriptionPlanForAccountStubbedEndpoint; - request: AppsGetSubscriptionPlanForAccountStubbedRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/settings/billing/actions": Operation<"/enterprises/{enterprise}/settings/billing/actions", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-plans-stubbed + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-enterprise */ - "GET /marketplace_listing/stubbed/plans": { - parameters: AppsListPlansStubbedEndpoint; - request: AppsListPlansStubbedRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/settings/billing/packages": Operation<"/enterprises/{enterprise}/settings/billing/packages", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-accounts-for-a-plan-stubbed + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-enterprise */ - "GET /marketplace_listing/stubbed/plans/:plan_id/accounts": { - parameters: AppsListAccountsForPlanStubbedEndpoint; - request: AppsListAccountsForPlanStubbedRequestOptions; - response: OctokitResponse; - }; + "GET /enterprises/{enterprise}/settings/billing/shared-storage": Operation<"/enterprises/{enterprise}/settings/billing/shared-storage", "get">; /** - * @see https://developer.github.com/v3/meta/#meta + * @see https://docs.github.com/rest/reference/activity#list-public-events */ - "GET /meta": { - parameters: MetaGetEndpoint; - request: MetaGetRequestOptions; - response: OctokitResponse; - }; + "GET /events": Operation<"/events", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories + * @see https://docs.github.com/rest/reference/activity#get-feeds */ - "GET /networks/:owner/:repo/events": { - parameters: ActivityListPublicEventsForRepoNetworkEndpoint; - request: ActivityListPublicEventsForRepoNetworkRequestOptions; - response: OctokitResponse; - }; + "GET /feeds": Operation<"/feeds", "get">; /** - * @see https://developer.github.com/v3/activity/notifications/#list-notifications-for-the-authenticated-user + * @see https://docs.github.com/v3/gists/#list-gists-for-the-authenticated-user */ - "GET /notifications": { - parameters: ActivityListNotificationsForAuthenticatedUserEndpoint; - request: ActivityListNotificationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /gists": Operation<"/gists", "get">; /** - * @see https://developer.github.com/v3/activity/notifications/#get-a-thread + * @see https://docs.github.com/v3/gists/#list-public-gists */ - "GET /notifications/threads/:thread_id": { - parameters: ActivityGetThreadEndpoint; - request: ActivityGetThreadRequestOptions; - response: OctokitResponse; - }; + "GET /gists/public": Operation<"/gists/public", "get">; /** - * @see https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription-for-the-authenticated-user + * @see https://docs.github.com/v3/gists/#list-starred-gists */ - "GET /notifications/threads/:thread_id/subscription": { - parameters: ActivityGetThreadSubscriptionForAuthenticatedUserEndpoint; - request: ActivityGetThreadSubscriptionForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /gists/starred": Operation<"/gists/starred", "get">; /** - * @see https://developer.github.com/v3/orgs/#list-all-organizations + * @see https://docs.github.com/v3/gists/#get-a-gist */ - "GET /organizations": { - parameters: OrgsListEndpoint; - request: OrgsListRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}": Operation<"/gists/{gist_id}", "get">; /** - * @see https://developer.github.com/v3/orgs/#get-an-organization + * @see https://docs.github.com/rest/reference/gists#list-gist-comments */ - "GET /orgs/:org": { - parameters: OrgsGetEndpoint; - request: OrgsGetRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/comments": Operation<"/gists/{gist_id}/comments", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization + * @see https://docs.github.com/rest/reference/gists#get-a-gist-comment */ - "GET /orgs/:org/actions/runners": { - parameters: ActionsListSelfHostedRunnersForOrgEndpoint; - request: ActionsListSelfHostedRunnersForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-an-organization + * @see https://docs.github.com/v3/gists/#list-gist-commits */ - "GET /orgs/:org/actions/runners/:runner_id": { - parameters: ActionsGetSelfHostedRunnerForOrgEndpoint; - request: ActionsGetSelfHostedRunnerForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/commits": Operation<"/gists/{gist_id}/commits", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-an-organization + * @see https://docs.github.com/v3/gists/#list-gist-forks */ - "GET /orgs/:org/actions/runners/downloads": { - parameters: ActionsListRunnerApplicationsForOrgEndpoint; - request: ActionsListRunnerApplicationsForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/forks": Operation<"/gists/{gist_id}/forks", "get">; /** - * @see https://developer.github.com/v3/orgs/blocking/#list-blocked-users + * @see https://docs.github.com/v3/gists/#check-if-a-gist-is-starred */ - "GET /orgs/:org/blocks": { - parameters: OrgsListBlockedUsersEndpoint; - request: OrgsListBlockedUsersRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "get">; /** - * @see https://developer.github.com/v3/orgs/blocking/#check-whether-a-user-is-blocked-from-an-organization + * @see https://docs.github.com/v3/gists/#get-a-gist-revision */ - "GET /orgs/:org/blocks/:username": { - parameters: OrgsCheckBlockedUserEndpoint; - request: OrgsCheckBlockedUserRequestOptions; - response: OctokitResponse; - }; + "GET /gists/{gist_id}/{sha}": Operation<"/gists/{gist_id}/{sha}", "get">; /** - * @see https://developer.github.com/v3/orgs/#list-credential-authorizations-for-an-organization + * @see https://docs.github.com/v3/gitignore/#get-all-gitignore-templates */ - "GET /orgs/:org/credential-authorizations": { - parameters: OrgsListCredentialAuthorizationsEndpoint; - request: OrgsListCredentialAuthorizationsRequestOptions; - response: OctokitResponse; - }; + "GET /gitignore/templates": Operation<"/gitignore/templates", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-public-organization-events + * @see https://docs.github.com/v3/gitignore/#get-a-gitignore-template */ - "GET /orgs/:org/events": { - parameters: ActivityListPublicOrgEventsEndpoint; - request: ActivityListPublicOrgEventsRequestOptions; - response: OctokitResponse; - }; + "GET /gitignore/templates/{name}": Operation<"/gitignore/templates/{name}", "get">; /** - * @see https://developer.github.com/v3/orgs/hooks/#list-hooks + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-app-installation */ - "GET /orgs/:org/hooks": { - parameters: OrgsListHooksEndpoint; - request: OrgsListHooksRequestOptions; - response: OctokitResponse; - }; + "GET /installation/repositories": Operation<"/installation/repositories", "get">; /** - * @see https://developer.github.com/v3/orgs/hooks/#get-single-hook + * @see https://docs.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user */ - "GET /orgs/:org/hooks/:hook_id": { - parameters: OrgsGetHookEndpoint; - request: OrgsGetHookRequestOptions; - response: OctokitResponse; - }; + "GET /issues": Operation<"/issues", "get">; /** - * @see https://developer.github.com/v3/apps/#get-an-organization-installation + * @see https://docs.github.com/v3/licenses/#get-all-commonly-used-licenses */ - "GET /orgs/:org/installation": { - parameters: AppsGetOrgInstallationEndpoint; - request: AppsGetOrgInstallationRequestOptions; - response: OctokitResponse; - }; + "GET /licenses": Operation<"/licenses", "get">; /** - * @see https://developer.github.com/v3/orgs/#list-installations-for-an-organization + * @see https://docs.github.com/v3/licenses/#get-a-license */ - "GET /orgs/:org/installations": { - parameters: OrgsListInstallationsEndpoint; - request: OrgsListInstallationsRequestOptions; - response: OctokitResponse; - }; + "GET /licenses/{license}": Operation<"/licenses/{license}", "get">; /** - * @see https://developer.github.com/v3/interactions/orgs/#get-interaction-restrictions-for-an-organization + * @see https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account */ - "GET /orgs/:org/interaction-limits": { - parameters: InteractionsGetRestrictionsForOrgEndpoint; - request: InteractionsGetRestrictionsForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/accounts/{account_id}": Operation<"/marketplace_listing/accounts/{account_id}", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations + * @see https://docs.github.com/rest/reference/apps#list-plans */ - "GET /orgs/:org/invitations": { - parameters: OrgsListPendingInvitationsEndpoint; - request: OrgsListPendingInvitationsRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/plans": Operation<"/marketplace_listing/plans", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#list-organization-invitation-teams + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan */ - "GET /orgs/:org/invitations/:invitation_id/teams": { - parameters: OrgsListInvitationTeamsEndpoint; - request: OrgsListInvitationTeamsRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/plans/{plan_id}/accounts": Operation<"/marketplace_listing/plans/{plan_id}/accounts", "get">; /** - * @see https://developer.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user + * @see https://docs.github.com/rest/reference/apps#get-a-subscription-plan-for-an-account-stubbed */ - "GET /orgs/:org/issues": { - parameters: IssuesListForOrgEndpoint; - request: IssuesListForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/stubbed/accounts/{account_id}": Operation<"/marketplace_listing/stubbed/accounts/{account_id}", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#members-list + * @see https://docs.github.com/rest/reference/apps#list-plans-stubbed */ - "GET /orgs/:org/members": { - parameters: OrgsListMembersEndpoint; - request: OrgsListMembersRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/stubbed/plans": Operation<"/marketplace_listing/stubbed/plans", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#check-membership + * @see https://docs.github.com/rest/reference/apps#list-accounts-for-a-plan-stubbed */ - "GET /orgs/:org/members/:username": { - parameters: OrgsCheckMembershipEndpoint; - request: OrgsCheckMembershipRequestOptions; - response: OctokitResponse; - }; + "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts": Operation<"/marketplace_listing/stubbed/plans/{plan_id}/accounts", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#get-organization-membership + * @see https://docs.github.com/v3/meta/#get-github-meta-information */ - "GET /orgs/:org/memberships/:username": { - parameters: OrgsGetMembershipEndpoint; - request: OrgsGetMembershipRequestOptions; - response: OctokitResponse; - }; + "GET /meta": Operation<"/meta", "get">; /** - * @see https://developer.github.com/v3/migrations/orgs/#list-organization-migrations + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-network-of-repositories */ - "GET /orgs/:org/migrations": { - parameters: MigrationsListForOrgEndpoint; - request: MigrationsListForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /networks/{owner}/{repo}/events": Operation<"/networks/{owner}/{repo}/events", "get">; /** - * @see https://developer.github.com/v3/migrations/orgs/#get-the-status-of-an-organization-migration + * @see https://docs.github.com/rest/reference/activity#list-notifications-for-the-authenticated-user */ - "GET /orgs/:org/migrations/:migration_id": { - parameters: MigrationsGetStatusForOrgEndpoint; - request: MigrationsGetStatusForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /notifications": Operation<"/notifications", "get">; /** - * @see https://developer.github.com/v3/migrations/orgs/#download-an-organization-migration-archive + * @see https://docs.github.com/rest/reference/activity#get-a-thread */ - "GET /orgs/:org/migrations/:migration_id/archive": { - parameters: MigrationsDownloadArchiveForOrgEndpoint; - request: MigrationsDownloadArchiveForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "get">; /** - * @see https://developer.github.com/v3/migrations/orgs/#list-repositories-in-an-organization-migration + * @see https://docs.github.com/rest/reference/activity#get-a-thread-subscription-for-the-authenticated-user */ - "GET /orgs/:org/migrations/:migration_id/repositories": { - parameters: MigrationsListReposForOrgEndpoint; - request: MigrationsListReposForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "get">; /** - * @see https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators + * @see */ - "GET /orgs/:org/outside_collaborators": { - parameters: OrgsListOutsideCollaboratorsEndpoint; - request: OrgsListOutsideCollaboratorsRequestOptions; - response: OctokitResponse; - }; + "GET /octocat": Operation<"/octocat", "get">; /** - * @see https://developer.github.com/v3/projects/#list-organization-projects + * @see https://docs.github.com/v3/orgs/#list-organizations */ - "GET /orgs/:org/projects": { - parameters: ProjectsListForOrgEndpoint; - request: ProjectsListForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /organizations": Operation<"/organizations", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#public-members-list + * @see https://docs.github.com/v3/orgs/#get-an-organization */ - "GET /orgs/:org/public_members": { - parameters: OrgsListPublicMembersEndpoint; - request: OrgsListPublicMembersRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}": Operation<"/orgs/{org}", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#check-public-membership + * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-an-organization */ - "GET /orgs/:org/public_members/:username": { - parameters: OrgsCheckPublicMembershipEndpoint; - request: OrgsCheckPublicMembershipRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/permissions": Operation<"/orgs/{org}/actions/permissions", "get">; /** - * @see https://developer.github.com/v3/repos/#list-organization-repositories + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization */ - "GET /orgs/:org/repos": { - parameters: ReposListForOrgEndpoint; - request: ReposListForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/permissions/repositories": Operation<"/orgs/{org}/actions/permissions/repositories", "get">; /** - * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-in-an-organization + * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-an-organization */ - "GET /orgs/:org/team-sync/groups": { - parameters: TeamsListIdPGroupsForOrgEndpoint; - request: TeamsListIdPGroupsForOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/permissions/selected-actions": Operation<"/orgs/{org}/actions/permissions/selected-actions", "get">; /** - * @see https://developer.github.com/v3/teams/#list-teams + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runner-groups-for-an-organization */ - "GET /orgs/:org/teams": { - parameters: TeamsListEndpoint; - request: TeamsListRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runner-groups": Operation<"/orgs/{org}/actions/runner-groups", "get">; /** - * @see https://developer.github.com/v3/teams/#get-team-by-name + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-group-for-an-organization */ - "GET /orgs/:org/teams/:team_slug": { - parameters: TeamsGetByNameEndpoint; - request: TeamsGetByNameRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "get">; /** - * @see https://developer.github.com/v3/teams/discussions/#list-discussions + * @see https://docs.github.com/rest/reference/actions#list-repository-access-to-a-self-hosted-runner-group-in-an-organization */ - "GET /orgs/:org/teams/:team_slug/discussions": { - parameters: TeamsListDiscussionsInOrgEndpoint; - request: TeamsListDiscussionsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "get">; /** - * @see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-in-a-group-for-an-organization */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number": { - parameters: TeamsGetDiscussionInOrgEndpoint; - request: TeamsGetDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#list-comments + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-an-organization */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": { - parameters: TeamsListDiscussionCommentsInOrgEndpoint; - request: TeamsListDiscussionCommentsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runners": Operation<"/orgs/{org}/actions/runners", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-an-organization */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsGetDiscussionCommentInOrgEndpoint; - request: TeamsGetDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runners/downloads": Operation<"/orgs/{org}/actions/runners/downloads", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-an-organization */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsListForTeamDiscussionCommentInOrgEndpoint; - request: ReactionsListForTeamDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/runners/{runner_id}": Operation<"/orgs/{org}/actions/runners/{runner_id}", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion + * @see https://docs.github.com/rest/reference/actions#list-organization-secrets */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions": { - parameters: ReactionsListForTeamDiscussionInOrgEndpoint; - request: ReactionsListForTeamDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/secrets": Operation<"/orgs/{org}/actions/secrets", "get">; /** - * @see https://developer.github.com/v3/teams/members/#list-pending-team-invitations + * @see https://docs.github.com/rest/reference/actions#get-an-organization-public-key */ - "GET /orgs/:org/teams/:team_slug/invitations": { - parameters: TeamsListPendingInvitationsInOrgEndpoint; - request: TeamsListPendingInvitationsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/secrets/public-key": Operation<"/orgs/{org}/actions/secrets/public-key", "get">; /** - * @see https://developer.github.com/v3/teams/members/#list-team-members + * @see https://docs.github.com/rest/reference/actions#get-an-organization-secret */ - "GET /orgs/:org/teams/:team_slug/members": { - parameters: TeamsListMembersInOrgEndpoint; - request: TeamsListMembersInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "get">; /** - * @see https://developer.github.com/v3/teams/members/#get-team-membership + * @see https://docs.github.com/rest/reference/actions#list-selected-repositories-for-an-organization-secret */ - "GET /orgs/:org/teams/:team_slug/memberships/:username": { - parameters: TeamsGetMembershipInOrgEndpoint; - request: TeamsGetMembershipInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "get">; /** - * @see https://developer.github.com/v3/teams/#list-team-projects + * @see https://docs.github.com/rest/reference/orgs#list-users-blocked-by-an-organization */ - "GET /orgs/:org/teams/:team_slug/projects": { - parameters: TeamsListProjectsInOrgEndpoint; - request: TeamsListProjectsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/blocks": Operation<"/orgs/{org}/blocks", "get">; /** - * @see https://developer.github.com/v3/teams/#review-a-team-project + * @see https://docs.github.com/rest/reference/orgs#check-if-a-user-is-blocked-by-an-organization */ - "GET /orgs/:org/teams/:team_slug/projects/:project_id": { - parameters: TeamsReviewProjectInOrgEndpoint; - request: TeamsReviewProjectInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "get">; /** - * @see https://developer.github.com/v3/teams/#list-team-repos + * @see https://docs.github.com/v3/orgs/#list-saml-sso-authorizations-for-an-organization */ - "GET /orgs/:org/teams/:team_slug/repos": { - parameters: TeamsListReposInOrgEndpoint; - request: TeamsListReposInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/credential-authorizations": Operation<"/orgs/{org}/credential-authorizations", "get">; /** - * @see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository + * @see https://docs.github.com/rest/reference/activity#list-public-organization-events */ - "GET /orgs/:org/teams/:team_slug/repos/:owner/:repo": { - parameters: TeamsCheckManagesRepoInOrgEndpoint; - request: TeamsCheckManagesRepoInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/events": Operation<"/orgs/{org}/events", "get">; /** - * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team + * @see https://docs.github.com/rest/reference/orgs#list-organization-webhooks */ - "GET /orgs/:org/teams/:team_slug/team-sync/group-mappings": { - parameters: TeamsListIdPGroupsInOrgEndpoint; - request: TeamsListIdPGroupsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/hooks": Operation<"/orgs/{org}/hooks", "get">; /** - * @see https://developer.github.com/v3/teams/#list-child-teams + * @see https://docs.github.com/rest/reference/orgs#get-an-organization-webhook */ - "GET /orgs/:org/teams/:team_slug/teams": { - parameters: TeamsListChildInOrgEndpoint; - request: TeamsListChildInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "get">; /** - * @see https://developer.github.com/v3/projects/#get-a-project + * @see https://docs.github.com/v3/orgs#get-a-webhook-configuration-for-an-organization */ - "GET /projects/:project_id": { - parameters: ProjectsGetEndpoint; - request: ProjectsGetRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/hooks/{hook_id}/config": Operation<"/orgs/{org}/hooks/{hook_id}/config", "get">; /** - * @see https://developer.github.com/v3/projects/collaborators/#list-collaborators + * @see https://docs.github.com/v3/apps/#get-an-organization-installation-for-the-authenticated-app */ - "GET /projects/:project_id/collaborators": { - parameters: ProjectsListCollaboratorsEndpoint; - request: ProjectsListCollaboratorsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/installation": Operation<"/orgs/{org}/installation", "get">; /** - * @see https://developer.github.com/v3/projects/collaborators/#review-a-users-permission-level + * @see https://docs.github.com/v3/orgs/#list-app-installations-for-an-organization */ - "GET /projects/:project_id/collaborators/:username/permission": { - parameters: ProjectsReviewUserPermissionLevelEndpoint; - request: ProjectsReviewUserPermissionLevelRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/installations": Operation<"/orgs/{org}/installations", "get">; /** - * @see https://developer.github.com/v3/projects/columns/#list-project-columns + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-an-organization */ - "GET /projects/:project_id/columns": { - parameters: ProjectsListColumnsEndpoint; - request: ProjectsListColumnsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "get">; /** - * @see https://developer.github.com/v3/projects/columns/#get-a-project-column + * @see https://docs.github.com/rest/reference/orgs#list-pending-organization-invitations */ - "GET /projects/columns/:column_id": { - parameters: ProjectsGetColumnEndpoint; - request: ProjectsGetColumnRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "get">; /** - * @see https://developer.github.com/v3/projects/cards/#list-project-cards + * @see https://docs.github.com/rest/reference/orgs#list-organization-invitation-teams */ - "GET /projects/columns/:column_id/cards": { - parameters: ProjectsListCardsEndpoint; - request: ProjectsListCardsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/invitations/{invitation_id}/teams": Operation<"/orgs/{org}/invitations/{invitation_id}/teams", "get">; /** - * @see https://developer.github.com/v3/projects/cards/#get-a-project-card + * @see https://docs.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user */ - "GET /projects/columns/cards/:card_id": { - parameters: ProjectsGetCardEndpoint; - request: ProjectsGetCardRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/issues": Operation<"/orgs/{org}/issues", "get">; /** - * @see https://developer.github.com/v3/rate_limit/#get-your-current-rate-limit-status + * @see https://docs.github.com/rest/reference/orgs#list-organization-members */ - "GET /rate_limit": { - parameters: RateLimitGetEndpoint; - request: RateLimitGetRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/members": Operation<"/orgs/{org}/members", "get">; /** - * @see https://developer.github.com/v3/repos/#get-a-repository + * @see https://docs.github.com/rest/reference/orgs#check-organization-membership-for-a-user */ - "GET /repos/:owner/:repo": { - parameters: ReposGetEndpoint; - request: ReposGetRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/members/{username}": Operation<"/orgs/{org}/members/{username}", "get">; /** - * @see https://developer.github.com/v3/repos/contents/#get-archive-link + * @see https://docs.github.com/rest/reference/orgs#get-organization-membership-for-a-user */ - "GET /repos/:owner/:repo/:archive_format/:ref": { - parameters: ReposGetArchiveLinkEndpoint; - request: ReposGetArchiveLinkRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "get">; /** - * @see https://developer.github.com/v3/actions/artifacts/#list-artifacts-for-a-repository + * @see https://docs.github.com/rest/reference/migrations#list-organization-migrations */ - "GET /repos/:owner/:repo/actions/artifacts": { - parameters: ActionsListArtifactsForRepoEndpoint; - request: ActionsListArtifactsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/actions/artifacts/#get-an-artifact + * @see https://docs.github.com/rest/reference/migrations#get-an-organization-migration-status */ - "GET /repos/:owner/:repo/actions/artifacts/:artifact_id": { - parameters: ActionsGetArtifactEndpoint; - request: ActionsGetArtifactRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/migrations/{migration_id}": Operation<"/orgs/{org}/migrations/{migration_id}", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/actions/artifacts/#download-an-artifact + * @see https://docs.github.com/rest/reference/migrations#download-an-organization-migration-archive */ - "GET /repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format": { - parameters: ActionsDownloadArtifactEndpoint; - request: ActionsDownloadArtifactRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/migrations/{migration_id}/archive": Operation<"/orgs/{org}/migrations/{migration_id}/archive", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/actions/workflow-jobs/#get-a-workflow-job + * @see https://docs.github.com/rest/reference/migrations#list-repositories-in-an-organization-migration */ - "GET /repos/:owner/:repo/actions/jobs/:job_id": { - parameters: ActionsGetWorkflowJobEndpoint; - request: ActionsGetWorkflowJobRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/migrations/{migration_id}/repositories": Operation<"/orgs/{org}/migrations/{migration_id}/repositories", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/actions/workflow-jobs/#download-workflow-job-logs + * @see https://docs.github.com/rest/reference/orgs#list-outside-collaborators-for-an-organization */ - "GET /repos/:owner/:repo/actions/jobs/:job_id/logs": { - parameters: ActionsDownloadWorkflowJobLogsEndpoint; - request: ActionsDownloadWorkflowJobLogsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/outside_collaborators": Operation<"/orgs/{org}/outside_collaborators", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository + * @see https://docs.github.com/v3/projects/#list-organization-projects */ - "GET /repos/:owner/:repo/actions/runners": { - parameters: ActionsListSelfHostedRunnersForRepoEndpoint; - request: ActionsListSelfHostedRunnersForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "get", "inertia">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-a-repository + * @see https://docs.github.com/rest/reference/orgs#list-public-organization-members */ - "GET /repos/:owner/:repo/actions/runners/:runner_id": { - parameters: ActionsGetSelfHostedRunnerForRepoEndpoint; - request: ActionsGetSelfHostedRunnerForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/public_members": Operation<"/orgs/{org}/public_members", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-a-repository + * @see https://docs.github.com/rest/reference/orgs#check-public-organization-membership-for-a-user */ - "GET /repos/:owner/:repo/actions/runners/downloads": { - parameters: ActionsListRunnerApplicationsForRepoEndpoint; - request: ActionsListRunnerApplicationsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "get">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#list-repository-workflow-runs + * @see https://docs.github.com/v3/repos/#list-organization-repositories */ - "GET /repos/:owner/:repo/actions/runs": { - parameters: ActionsListRepoWorkflowRunsEndpoint; - request: ActionsListRepoWorkflowRunsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/repos": Operation<"/orgs/{org}/repos", "get">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#get-a-workflow-run + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-an-organization */ - "GET /repos/:owner/:repo/actions/runs/:run_id": { - parameters: ActionsGetWorkflowRunEndpoint; - request: ActionsGetWorkflowRunRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/settings/billing/actions": Operation<"/orgs/{org}/settings/billing/actions", "get">; /** - * @see https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-an-organization */ - "GET /repos/:owner/:repo/actions/runs/:run_id/artifacts": { - parameters: ActionsListWorkflowRunArtifactsEndpoint; - request: ActionsListWorkflowRunArtifactsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/settings/billing/packages": Operation<"/orgs/{org}/settings/billing/packages", "get">; /** - * @see https://developer.github.com/v3/actions/workflow-jobs/#list-jobs-for-a-workflow-run + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-an-organization */ - "GET /repos/:owner/:repo/actions/runs/:run_id/jobs": { - parameters: ActionsListJobsForWorkflowRunEndpoint; - request: ActionsListJobsForWorkflowRunRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/settings/billing/shared-storage": Operation<"/orgs/{org}/settings/billing/shared-storage", "get">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#download-workflow-run-logs + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-an-organization */ - "GET /repos/:owner/:repo/actions/runs/:run_id/logs": { - parameters: ActionsDownloadWorkflowRunLogsEndpoint; - request: ActionsDownloadWorkflowRunLogsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/team-sync/groups": Operation<"/orgs/{org}/team-sync/groups", "get">; /** - * @see https://developer.github.com/v3/actions/secrets/#list-secrets-for-a-repository + * @see https://docs.github.com/v3/teams/#list-teams */ - "GET /repos/:owner/:repo/actions/secrets": { - parameters: ActionsListSecretsForRepoEndpoint; - request: ActionsListSecretsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams": Operation<"/orgs/{org}/teams", "get">; /** - * @see https://developer.github.com/v3/actions/secrets/#get-a-secret + * @see https://docs.github.com/v3/teams/#get-a-team-by-name */ - "GET /repos/:owner/:repo/actions/secrets/:name": { - parameters: ActionsGetSecretEndpoint; - request: ActionsGetSecretRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "get">; /** - * @see https://developer.github.com/v3/actions/secrets/#get-your-public-key + * @see https://docs.github.com/rest/reference/teams#list-discussions */ - "GET /repos/:owner/:repo/actions/secrets/public-key": { - parameters: ActionsGetPublicKeyEndpoint; - request: ActionsGetPublicKeyRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions": Operation<"/orgs/{org}/teams/{team_slug}/discussions", "get">; /** - * @see https://developer.github.com/v3/actions/workflows/#list-repository-workflows + * @see https://docs.github.com/rest/reference/teams#get-a-discussion */ - "GET /repos/:owner/:repo/actions/workflows": { - parameters: ActionsListRepoWorkflowsEndpoint; - request: ActionsListRepoWorkflowsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "get">; /** - * @see https://developer.github.com/v3/actions/workflows/#get-a-workflow + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments */ - "GET /repos/:owner/:repo/actions/workflows/:workflow_id": { - parameters: ActionsGetWorkflowEndpoint; - request: ActionsGetWorkflowRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "get">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-comment */ - "GET /repos/:owner/:repo/actions/workflows/:workflow_id/runs": { - parameters: ActionsListWorkflowRunsEndpoint; - request: ActionsListWorkflowRunsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "get">; /** - * @see https://developer.github.com/v3/issues/assignees/#list-assignees + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment */ - "GET /repos/:owner/:repo/assignees": { - parameters: IssuesListAssigneesEndpoint; - request: IssuesListAssigneesRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/issues/assignees/#check-assignee + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion */ - "GET /repos/:owner/:repo/assignees/:assignee": { - parameters: IssuesCheckAssigneeEndpoint; - request: IssuesCheckAssigneeRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/branches/#list-branches + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations */ - "GET /repos/:owner/:repo/branches": { - parameters: ReposListBranchesEndpoint; - request: ReposListBranchesRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/invitations": Operation<"/orgs/{org}/teams/{team_slug}/invitations", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#get-branch + * @see https://docs.github.com/rest/reference/teams#list-team-members */ - "GET /repos/:owner/:repo/branches/:branch": { - parameters: ReposGetBranchEndpoint; - request: ReposGetBranchRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/members": Operation<"/orgs/{org}/teams/{team_slug}/members", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#get-branch-protection + * @see https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user */ - "GET /repos/:owner/:repo/branches/:branch/protection": { - parameters: ReposGetBranchProtectionEndpoint; - request: ReposGetBranchProtectionRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#get-admin-enforcement-of-protected-branch + * @see https://docs.github.com/v3/teams/#list-team-projects */ - "GET /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { - parameters: ReposGetProtectedBranchAdminEnforcementEndpoint; - request: ReposGetProtectedBranchAdminEnforcementRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/projects": Operation<"/orgs/{org}/teams/{team_slug}/projects", "get", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-project */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { - parameters: ReposGetProtectedBranchPullRequestReviewEnforcementEndpoint; - request: ReposGetProtectedBranchPullRequestReviewEnforcementRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "get", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#get-required-signatures-of-protected-branch + * @see https://docs.github.com/v3/teams/#list-team-repositories */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_signatures": { - parameters: ReposGetProtectedBranchRequiredSignaturesEndpoint; - request: ReposGetProtectedBranchRequiredSignaturesRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/repos": Operation<"/orgs/{org}/teams/{team_slug}/repos", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#get-required-status-checks-of-protected-branch + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { - parameters: ReposGetProtectedBranchRequiredStatusChecksEndpoint; - request: ReposGetProtectedBranchRequiredStatusChecksRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposListProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposListProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": Operation<"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#get-restrictions-of-protected-branch + * @see https://docs.github.com/v3/teams/#list-child-teams */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions": { - parameters: ReposGetProtectedBranchRestrictionsEndpoint; - request: ReposGetProtectedBranchRestrictionsRequestOptions; - response: OctokitResponse; - }; + "GET /orgs/{org}/teams/{team_slug}/teams": Operation<"/orgs/{org}/teams/{team_slug}/teams", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#list-apps-with-access-to-protected-branch + * @see https://docs.github.com/rest/reference/projects#get-a-project-card */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposGetAppsWithAccessToProtectedBranchEndpoint; - request: ReposGetAppsWithAccessToProtectedBranchRequestOptions; - response: OctokitResponse; - }; + "GET /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "get", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#list-teams-with-access-to-protected-branch + * @see https://docs.github.com/rest/reference/projects#get-a-project-column */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposGetTeamsWithAccessToProtectedBranchEndpoint; - request: ReposGetTeamsWithAccessToProtectedBranchRequestOptions; - response: OctokitResponse; - }; + "GET /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "get", "inertia">; /** - * @see https://developer.github.com/v3/repos/branches/#list-users-with-access-to-protected-branch + * @see https://docs.github.com/rest/reference/projects#list-project-cards */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposGetUsersWithAccessToProtectedBranchEndpoint; - request: ReposGetUsersWithAccessToProtectedBranchRequestOptions; - response: OctokitResponse; - }; + "GET /projects/columns/{column_id}/cards": Operation<"/projects/columns/{column_id}/cards", "get", "inertia">; /** - * @see https://developer.github.com/v3/checks/runs/#get-a-check-run + * @see https://docs.github.com/v3/projects/#get-a-project */ - "GET /repos/:owner/:repo/check-runs/:check_run_id": { - parameters: ChecksGetEndpoint; - request: ChecksGetRequestOptions; - response: OctokitResponse; - }; + "GET /projects/{project_id}": Operation<"/projects/{project_id}", "get", "inertia">; /** - * @see https://developer.github.com/v3/checks/runs/#list-check-run-annotations + * @see https://docs.github.com/rest/reference/projects#list-project-collaborators */ - "GET /repos/:owner/:repo/check-runs/:check_run_id/annotations": { - parameters: ChecksListAnnotationsEndpoint; - request: ChecksListAnnotationsRequestOptions; - response: OctokitResponse; - }; + "GET /projects/{project_id}/collaborators": Operation<"/projects/{project_id}/collaborators", "get", "inertia">; /** - * @see https://developer.github.com/v3/checks/suites/#get-a-check-suite + * @see https://docs.github.com/rest/reference/projects#get-project-permission-for-a-user */ - "GET /repos/:owner/:repo/check-suites/:check_suite_id": { - parameters: ChecksGetSuiteEndpoint; - request: ChecksGetSuiteRequestOptions; - response: OctokitResponse; - }; + "GET /projects/{project_id}/collaborators/{username}/permission": Operation<"/projects/{project_id}/collaborators/{username}/permission", "get", "inertia">; /** - * @see https://developer.github.com/v3/checks/runs/#list-check-runs-in-a-check-suite + * @see https://docs.github.com/rest/reference/projects#list-project-columns */ - "GET /repos/:owner/:repo/check-suites/:check_suite_id/check-runs": { - parameters: ChecksListForSuiteEndpoint; - request: ChecksListForSuiteRequestOptions; - response: OctokitResponse; - }; + "GET /projects/{project_id}/columns": Operation<"/projects/{project_id}/columns", "get", "inertia">; /** - * @see https://developer.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository + * @see https://docs.github.com/v3/rate_limit/#get-rate-limit-status-for-the-authenticated-user */ - "GET /repos/:owner/:repo/code-scanning/alerts": { - parameters: CodeScanningListAlertsForRepoEndpoint; - request: CodeScanningListAlertsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /rate_limit": Operation<"/rate_limit", "get">; /** - * @see https://developer.github.com/v3/code-scanning/#get-a-code-scanning-alert + * @see https://docs.github.com/v3/repos/#get-a-repository */ - "GET /repos/:owner/:repo/code-scanning/alerts/:alert_id": { - parameters: CodeScanningGetAlertEndpoint; - request: CodeScanningGetAlertRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "get">; /** - * @see https://developer.github.com/v3/repos/collaborators/#list-collaborators + * @see https://docs.github.com/rest/reference/actions#list-artifacts-for-a-repository */ - "GET /repos/:owner/:repo/collaborators": { - parameters: ReposListCollaboratorsEndpoint; - request: ReposListCollaboratorsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/artifacts": Operation<"/repos/{owner}/{repo}/actions/artifacts", "get">; /** - * @see https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator + * @see https://docs.github.com/rest/reference/actions#get-an-artifact */ - "GET /repos/:owner/:repo/collaborators/:username": { - parameters: ReposCheckCollaboratorEndpoint; - request: ReposCheckCollaboratorRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}", "get">; /** - * @see https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level + * @see https://docs.github.com/rest/reference/actions#download-an-artifact */ - "GET /repos/:owner/:repo/collaborators/:username/permission": { - parameters: ReposGetCollaboratorPermissionLevelEndpoint; - request: ReposGetCollaboratorPermissionLevelRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}": Operation<"/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}", "get">; /** - * @see https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository + * @see https://docs.github.com/rest/reference/actions#get-a-job-for-a-workflow-run */ - "GET /repos/:owner/:repo/comments": { - parameters: ReposListCommitCommentsEndpoint; - request: ReposListCommitCommentsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}", "get">; /** - * @see https://developer.github.com/v3/repos/comments/#get-a-single-commit-comment + * @see https://docs.github.com/rest/reference/actions#download-job-logs-for-a-workflow-run */ - "GET /repos/:owner/:repo/comments/:comment_id": { - parameters: ReposGetCommitCommentEndpoint; - request: ReposGetCommitCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs": Operation<"/repos/{owner}/{repo}/actions/jobs/{job_id}/logs", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment + * @see https://docs.github.com/rest/reference/actions#get-github-actions-permissions-for-a-repository */ - "GET /repos/:owner/:repo/comments/:comment_id/reactions": { - parameters: ReactionsListForCommitCommentEndpoint; - request: ReactionsListForCommitCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/permissions": Operation<"/repos/{owner}/{repo}/actions/permissions", "get">; /** - * @see https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository + * @see https://docs.github.com/rest/reference/actions#get-allowed-actions-for-a-repository */ - "GET /repos/:owner/:repo/commits": { - parameters: ReposListCommitsEndpoint; - request: ReposListCommitsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/permissions/selected-actions": Operation<"/repos/{owner}/{repo}/actions/permissions/selected-actions", "get">; /** - * @see https://developer.github.com/v3/repos/commits/#list-branches-for-head-commit + * @see https://docs.github.com/rest/reference/actions#list-self-hosted-runners-for-a-repository */ - "GET /repos/:owner/:repo/commits/:commit_sha/branches-where-head": { - parameters: ReposListBranchesForHeadCommitEndpoint; - request: ReposListBranchesForHeadCommitRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runners": Operation<"/repos/{owner}/{repo}/actions/runners", "get">; /** - * @see https://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit + * @see https://docs.github.com/rest/reference/actions#list-runner-applications-for-a-repository */ - "GET /repos/:owner/:repo/commits/:commit_sha/comments": { - parameters: ReposListCommentsForCommitEndpoint; - request: ReposListCommentsForCommitRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runners/downloads": Operation<"/repos/{owner}/{repo}/actions/runners/downloads", "get">; /** - * @see https://developer.github.com/v3/repos/commits/#list-pull-requests-associated-with-commit + * @see https://docs.github.com/rest/reference/actions#get-a-self-hosted-runner-for-a-repository */ - "GET /repos/:owner/:repo/commits/:commit_sha/pulls": { - parameters: ReposListPullRequestsAssociatedWithCommitEndpoint; - request: ReposListPullRequestsAssociatedWithCommitRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runners/{runner_id}": Operation<"/repos/{owner}/{repo}/actions/runners/{runner_id}", "get">; /** - * @see https://developer.github.com/v3/repos/commits/#get-a-single-commit + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs-for-a-repository */ - "GET /repos/:owner/:repo/commits/:ref": { - parameters: ReposGetCommitEndpoint; - request: ReposGetCommitRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs": Operation<"/repos/{owner}/{repo}/actions/runs", "get">; /** - * @see https://developer.github.com/v3/checks/runs/#list-check-runs-for-a-git-reference + * @see https://docs.github.com/rest/reference/actions#get-a-workflow-run */ - "GET /repos/:owner/:repo/commits/:ref/check-runs": { - parameters: ChecksListForRefEndpoint; - request: ChecksListForRefRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs/{run_id}": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}", "get">; /** - * @see https://developer.github.com/v3/checks/suites/#list-check-suites-for-a-git-reference + * @see https://docs.github.com/rest/reference/actions#list-workflow-run-artifacts */ - "GET /repos/:owner/:repo/commits/:ref/check-suites": { - parameters: ChecksListSuitesForRefEndpoint; - request: ChecksListSuitesForRefRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", "get">; /** - * @see https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref + * @see https://docs.github.com/rest/reference/actions#list-jobs-for-a-workflow-run */ - "GET /repos/:owner/:repo/commits/:ref/status": { - parameters: ReposGetCombinedStatusForRefEndpoint; - request: ReposGetCombinedStatusForRefRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/jobs", "get">; /** - * @see https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref + * @see https://docs.github.com/rest/reference/actions#download-workflow-run-logs */ - "GET /repos/:owner/:repo/commits/:ref/statuses": { - parameters: ReposListStatusesForRefEndpoint; - request: ReposListStatusesForRefRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/logs", "get">; /** - * @see https://developer.github.com/v3/codes_of_conduct/#get-the-contents-of-a-repositorys-code-of-conduct + * @see https://docs.github.com/rest/reference/actions#get-workflow-run-usage */ - "GET /repos/:owner/:repo/community/code_of_conduct": { - parameters: CodesOfConductGetForRepoEndpoint; - request: CodesOfConductGetForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/timing", "get">; /** - * @see https://developer.github.com/v3/repos/community/#retrieve-community-profile-metrics + * @see https://docs.github.com/rest/reference/actions#list-repository-secrets */ - "GET /repos/:owner/:repo/community/profile": { - parameters: ReposRetrieveCommunityProfileMetricsEndpoint; - request: ReposRetrieveCommunityProfileMetricsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/secrets": Operation<"/repos/{owner}/{repo}/actions/secrets", "get">; /** - * @see https://developer.github.com/v3/repos/commits/#compare-two-commits + * @see https://docs.github.com/rest/reference/actions#get-a-repository-public-key */ - "GET /repos/:owner/:repo/compare/:base...:head": { - parameters: ReposCompareCommitsEndpoint; - request: ReposCompareCommitsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/secrets/public-key": Operation<"/repos/{owner}/{repo}/actions/secrets/public-key", "get">; /** - * @see https://developer.github.com/v3/repos/contents/#get-contents + * @see https://docs.github.com/rest/reference/actions#get-a-repository-secret */ - "GET /repos/:owner/:repo/contents/:path": { - parameters: ReposGetContentsEndpoint; - request: ReposGetContentsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "get">; /** - * @see https://developer.github.com/v3/repos/#list-contributors + * @see https://docs.github.com/rest/reference/actions#list-repository-workflows */ - "GET /repos/:owner/:repo/contributors": { - parameters: ReposListContributorsEndpoint; - request: ReposListContributorsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/workflows": Operation<"/repos/{owner}/{repo}/actions/workflows", "get">; /** - * @see https://developer.github.com/v3/repos/deployments/#list-deployments + * @see https://docs.github.com/rest/reference/actions#get-a-workflow */ - "GET /repos/:owner/:repo/deployments": { - parameters: ReposListDeploymentsEndpoint; - request: ReposListDeploymentsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}", "get">; /** - * @see https://developer.github.com/v3/repos/deployments/#get-a-single-deployment + * @see https://docs.github.com/rest/reference/actions#list-workflow-runs */ - "GET /repos/:owner/:repo/deployments/:deployment_id": { - parameters: ReposGetDeploymentEndpoint; - request: ReposGetDeploymentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", "get">; /** - * @see https://developer.github.com/v3/repos/deployments/#list-deployment-statuses + * @see https://docs.github.com/rest/reference/actions#get-workflow-usage */ - "GET /repos/:owner/:repo/deployments/:deployment_id/statuses": { - parameters: ReposListDeploymentStatusesEndpoint; - request: ReposListDeploymentStatusesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing", "get">; /** - * @see https://developer.github.com/v3/repos/deployments/#get-a-single-deployment-status + * @see https://docs.github.com/rest/reference/issues#list-assignees */ - "GET /repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id": { - parameters: ReposGetDeploymentStatusEndpoint; - request: ReposGetDeploymentStatusRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/assignees": Operation<"/repos/{owner}/{repo}/assignees", "get">; /** - * @see https://developer.github.com/v3/repos/downloads/#list-downloads-for-a-repository + * @see https://docs.github.com/rest/reference/issues#check-if-a-user-can-be-assigned */ - "GET /repos/:owner/:repo/downloads": { - parameters: ReposListDownloadsEndpoint; - request: ReposListDownloadsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/assignees/{assignee}": Operation<"/repos/{owner}/{repo}/assignees/{assignee}", "get">; /** - * @see https://developer.github.com/v3/repos/downloads/#get-a-single-download + * @see https://docs.github.com/rest/reference/repos#list-branches */ - "GET /repos/:owner/:repo/downloads/:download_id": { - parameters: ReposGetDownloadEndpoint; - request: ReposGetDownloadRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches": Operation<"/repos/{owner}/{repo}/branches", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-repository-events + * @see https://docs.github.com/rest/reference/repos#get-a-branch */ - "GET /repos/:owner/:repo/events": { - parameters: ActivityListRepoEventsEndpoint; - request: ActivityListRepoEventsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}": Operation<"/repos/{owner}/{repo}/branches/{branch}", "get">; /** - * @see https://developer.github.com/v3/repos/forks/#list-forks + * @see https://docs.github.com/rest/reference/repos#get-branch-protection */ - "GET /repos/:owner/:repo/forks": { - parameters: ReposListForksEndpoint; - request: ReposListForksRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "get">; /** - * @see https://developer.github.com/v3/git/blobs/#get-a-blob + * @see https://docs.github.com/rest/reference/repos#get-admin-branch-protection */ - "GET /repos/:owner/:repo/git/blobs/:file_sha": { - parameters: GitGetBlobEndpoint; - request: GitGetBlobRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "get">; /** - * @see https://developer.github.com/v3/git/commits/#get-a-commit + * @see https://docs.github.com/rest/reference/repos#get-pull-request-review-protection */ - "GET /repos/:owner/:repo/git/commits/:commit_sha": { - parameters: GitGetCommitEndpoint; - request: GitGetCommitRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "get">; /** - * @see https://developer.github.com/v3/git/refs/#list-matching-references + * @see https://docs.github.com/rest/reference/repos#get-commit-signature-protection */ - "GET /repos/:owner/:repo/git/matching-refs/:ref": { - parameters: GitListMatchingRefsEndpoint; - request: GitListMatchingRefsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "get", "zzzax">; /** - * @see https://developer.github.com/v3/git/refs/#get-a-single-reference + * @see https://docs.github.com/rest/reference/repos#get-status-checks-protection */ - "GET /repos/:owner/:repo/git/ref/:ref": { - parameters: GitGetRefEndpoint; - request: GitGetRefRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "get">; /** - * @see https://developer.github.com/v3/git/tags/#get-a-tag + * @see https://docs.github.com/rest/reference/repos#get-all-status-check-contexts */ - "GET /repos/:owner/:repo/git/tags/:tag_sha": { - parameters: GitGetTagEndpoint; - request: GitGetTagRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "get">; /** - * @see https://developer.github.com/v3/git/trees/#get-a-tree + * @see https://docs.github.com/rest/reference/repos#get-access-restrictions */ - "GET /repos/:owner/:repo/git/trees/:tree_sha": { - parameters: GitGetTreeEndpoint; - request: GitGetTreeRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions", "get">; /** - * @see https://developer.github.com/v3/repos/hooks/#list-hooks + * @see https://docs.github.com/rest/reference/repos#list-apps-with-access-to-the-protected-branch */ - "GET /repos/:owner/:repo/hooks": { - parameters: ReposListHooksEndpoint; - request: ReposListHooksRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "get">; /** - * @see https://developer.github.com/v3/repos/hooks/#get-single-hook + * @see https://docs.github.com/rest/reference/repos#list-teams-with-access-to-the-protected-branch */ - "GET /repos/:owner/:repo/hooks/:hook_id": { - parameters: ReposGetHookEndpoint; - request: ReposGetHookRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "get">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#get-import-progress + * @see https://docs.github.com/rest/reference/repos#list-users-with-access-to-the-protected-branch */ - "GET /repos/:owner/:repo/import": { - parameters: MigrationsGetImportProgressEndpoint; - request: MigrationsGetImportProgressRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "get">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#get-commit-authors + * @see https://docs.github.com/rest/reference/checks#get-a-check-run */ - "GET /repos/:owner/:repo/import/authors": { - parameters: MigrationsGetCommitAuthorsEndpoint; - request: MigrationsGetCommitAuthorsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}", "get">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#get-large-files + * @see https://docs.github.com/rest/reference/checks#list-check-run-annotations */ - "GET /repos/:owner/:repo/import/large_files": { - parameters: MigrationsGetLargeFilesEndpoint; - request: MigrationsGetLargeFilesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", "get">; /** - * @see https://developer.github.com/v3/apps/#get-a-repository-installation + * @see https://docs.github.com/rest/reference/checks#get-a-check-suite */ - "GET /repos/:owner/:repo/installation": { - parameters: AppsGetRepoInstallationEndpoint; - request: AppsGetRepoInstallationRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}", "get">; /** - * @see https://developer.github.com/v3/interactions/repos/#get-interaction-restrictions-for-a-repository + * @see https://docs.github.com/rest/reference/checks#list-check-runs-in-a-check-suite */ - "GET /repos/:owner/:repo/interaction-limits": { - parameters: InteractionsGetRestrictionsForRepoEndpoint; - request: InteractionsGetRestrictionsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", "get">; /** - * @see https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository + * @see https://docs.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository */ - "GET /repos/:owner/:repo/invitations": { - parameters: ReposListInvitationsEndpoint; - request: ReposListInvitationsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/code-scanning/alerts": Operation<"/repos/{owner}/{repo}/code-scanning/alerts", "get">; /** - * @see https://developer.github.com/v3/issues/#list-repository-issues + * @see https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert + * @deprecated "alert_id" is now "alert_number" */ - "GET /repos/:owner/:repo/issues": { - parameters: IssuesListForRepoEndpoint; - request: IssuesListForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_id}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "get">; /** - * @see https://developer.github.com/v3/issues/#get-an-issue + * @see https://docs.github.com/v3/code-scanning/#get-a-code-scanning-alert */ - "GET /repos/:owner/:repo/issues/:issue_number": { - parameters: IssuesGetEndpoint; - request: IssuesGetRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "get">; /** - * @see https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue + * @see https://docs.github.com/v3/code-scanning/#list-recent-analyses */ - "GET /repos/:owner/:repo/issues/:issue_number/comments": { - parameters: IssuesListCommentsEndpoint; - request: IssuesListCommentsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/code-scanning/analyses": Operation<"/repos/{owner}/{repo}/code-scanning/analyses", "get">; /** - * @see https://developer.github.com/v3/issues/events/#list-events-for-an-issue + * @see https://docs.github.com/rest/reference/repos#list-repository-collaborators */ - "GET /repos/:owner/:repo/issues/:issue_number/events": { - parameters: IssuesListEventsEndpoint; - request: IssuesListEventsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/collaborators": Operation<"/repos/{owner}/{repo}/collaborators", "get">; /** - * @see https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue + * @see https://docs.github.com/rest/reference/repos#check-if-a-user-is-a-repository-collaborator */ - "GET /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesListLabelsOnIssueEndpoint; - request: IssuesListLabelsOnIssueRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-an-issue + * @see https://docs.github.com/rest/reference/repos#get-repository-permissions-for-a-user */ - "GET /repos/:owner/:repo/issues/:issue_number/reactions": { - parameters: ReactionsListForIssueEndpoint; - request: ReactionsListForIssueRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/collaborators/{username}/permission": Operation<"/repos/{owner}/{repo}/collaborators/{username}/permission", "get">; /** - * @see https://developer.github.com/v3/issues/timeline/#list-events-for-an-issue + * @see https://docs.github.com/rest/reference/repos#list-commit-comments-for-a-repository */ - "GET /repos/:owner/:repo/issues/:issue_number/timeline": { - parameters: IssuesListEventsForTimelineEndpoint; - request: IssuesListEventsForTimelineRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/comments": Operation<"/repos/{owner}/{repo}/comments", "get">; /** - * @see https://developer.github.com/v3/issues/comments/#list-comments-in-a-repository + * @see https://docs.github.com/rest/reference/repos#get-a-commit-comment */ - "GET /repos/:owner/:repo/issues/comments": { - parameters: IssuesListCommentsForRepoEndpoint; - request: IssuesListCommentsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "get">; /** - * @see https://developer.github.com/v3/issues/comments/#get-a-single-comment + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-commit-comment */ - "GET /repos/:owner/:repo/issues/comments/:comment_id": { - parameters: IssuesGetCommentEndpoint; - request: IssuesGetCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment + * @see https://docs.github.com/rest/reference/repos#list-commits */ - "GET /repos/:owner/:repo/issues/comments/:comment_id/reactions": { - parameters: ReactionsListForIssueCommentEndpoint; - request: ReactionsListForIssueCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits": Operation<"/repos/{owner}/{repo}/commits", "get">; /** - * @see https://developer.github.com/v3/issues/events/#list-events-for-a-repository + * @see https://docs.github.com/rest/reference/repos#list-branches-for-head-commit */ - "GET /repos/:owner/:repo/issues/events": { - parameters: IssuesListEventsForRepoEndpoint; - request: IssuesListEventsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head", "get", "groot">; /** - * @see https://developer.github.com/v3/issues/events/#get-a-single-event + * @see https://docs.github.com/rest/reference/repos#list-commit-comments */ - "GET /repos/:owner/:repo/issues/events/:event_id": { - parameters: IssuesGetEventEndpoint; - request: IssuesGetEventRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "get">; /** - * @see https://developer.github.com/v3/repos/keys/#list-deploy-keys + * @see https://docs.github.com/rest/reference/repos#list-pull-requests-associated-with-a-commit */ - "GET /repos/:owner/:repo/keys": { - parameters: ReposListDeployKeysEndpoint; - request: ReposListDeployKeysRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/pulls", "get", "groot">; /** - * @see https://developer.github.com/v3/repos/keys/#get-a-deploy-key + * @see https://docs.github.com/rest/reference/repos#get-a-commit */ - "GET /repos/:owner/:repo/keys/:key_id": { - parameters: ReposGetDeployKeyEndpoint; - request: ReposGetDeployKeyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{ref}": Operation<"/repos/{owner}/{repo}/commits/{ref}", "get">; /** - * @see https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository + * @see https://docs.github.com/rest/reference/checks#list-check-runs-for-a-git-reference */ - "GET /repos/:owner/:repo/labels": { - parameters: IssuesListLabelsForRepoEndpoint; - request: IssuesListLabelsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{ref}/check-runs": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-runs", "get">; /** - * @see https://developer.github.com/v3/issues/labels/#get-a-single-label + * @see https://docs.github.com/rest/reference/checks#list-check-suites-for-a-git-reference */ - "GET /repos/:owner/:repo/labels/:name": { - parameters: IssuesGetLabelEndpoint; - request: IssuesGetLabelRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{ref}/check-suites": Operation<"/repos/{owner}/{repo}/commits/{ref}/check-suites", "get">; /** - * @see https://developer.github.com/v3/repos/#list-languages + * @see https://docs.github.com/rest/reference/repos#get-the-combined-status-for-a-specific-reference */ - "GET /repos/:owner/:repo/languages": { - parameters: ReposListLanguagesEndpoint; - request: ReposListLanguagesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{ref}/status": Operation<"/repos/{owner}/{repo}/commits/{ref}/status", "get">; /** - * @see https://developer.github.com/v3/licenses/#get-the-contents-of-a-repositorys-license + * @see https://docs.github.com/rest/reference/repos#list-commit-statuses-for-a-reference */ - "GET /repos/:owner/:repo/license": { - parameters: LicensesGetForRepoEndpoint; - request: LicensesGetForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/commits/{ref}/statuses": Operation<"/repos/{owner}/{repo}/commits/{ref}/statuses", "get">; /** - * @see https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository + * @see https://docs.github.com/v3/codes_of_conduct/#get-the-code-of-conduct-for-a-repository */ - "GET /repos/:owner/:repo/milestones": { - parameters: IssuesListMilestonesForRepoEndpoint; - request: IssuesListMilestonesForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/community/code_of_conduct": Operation<"/repos/{owner}/{repo}/community/code_of_conduct", "get", "scarlet-witch">; /** - * @see https://developer.github.com/v3/issues/milestones/#get-a-single-milestone + * @see https://docs.github.com/rest/reference/repos#get-community-profile-metrics */ - "GET /repos/:owner/:repo/milestones/:milestone_number": { - parameters: IssuesGetMilestoneEndpoint; - request: IssuesGetMilestoneRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/community/profile": Operation<"/repos/{owner}/{repo}/community/profile", "get">; /** - * @see https://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone + * @see https://docs.github.com/rest/reference/repos#compare-two-commits */ - "GET /repos/:owner/:repo/milestones/:milestone_number/labels": { - parameters: IssuesListLabelsForMilestoneEndpoint; - request: IssuesListLabelsForMilestoneRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/compare/{base}...{head}": Operation<"/repos/{owner}/{repo}/compare/{base}...{head}", "get">; /** - * @see https://developer.github.com/v3/activity/notifications/#list-repository-notifications-for-the-authenticated-user + * @see https://docs.github.com/rest/reference/repos#get-repository-content */ - "GET /repos/:owner/:repo/notifications": { - parameters: ActivityListRepoNotificationsForAuthenticatedUserEndpoint; - request: ActivityListRepoNotificationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "get">; /** - * @see https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site + * @see https://docs.github.com/v3/repos/#list-repository-contributors */ - "GET /repos/:owner/:repo/pages": { - parameters: ReposGetPagesEndpoint; - request: ReposGetPagesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/contributors": Operation<"/repos/{owner}/{repo}/contributors", "get">; /** - * @see https://developer.github.com/v3/repos/pages/#list-pages-builds + * @see https://docs.github.com/rest/reference/repos#list-deployments */ - "GET /repos/:owner/:repo/pages/builds": { - parameters: ReposListPagesBuildsEndpoint; - request: ReposListPagesBuildsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "get">; /** - * @see https://developer.github.com/v3/repos/pages/#get-a-specific-pages-build + * @see https://docs.github.com/rest/reference/repos#get-a-deployment */ - "GET /repos/:owner/:repo/pages/builds/:build_id": { - parameters: ReposGetPagesBuildEndpoint; - request: ReposGetPagesBuildRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/deployments/{deployment_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}", "get">; /** - * @see https://developer.github.com/v3/repos/pages/#get-latest-pages-build + * @see https://docs.github.com/rest/reference/repos#list-deployment-statuses */ - "GET /repos/:owner/:repo/pages/builds/latest": { - parameters: ReposGetLatestPagesBuildEndpoint; - request: ReposGetLatestPagesBuildRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "get">; /** - * @see https://developer.github.com/v3/projects/#list-repository-projects + * @see https://docs.github.com/rest/reference/repos#get-a-deployment-status */ - "GET /repos/:owner/:repo/projects": { - parameters: ProjectsListForRepoEndpoint; - request: ProjectsListForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}", "get">; /** - * @see https://developer.github.com/v3/pulls/#list-pull-requests + * @see https://docs.github.com/rest/reference/activity#list-repository-events */ - "GET /repos/:owner/:repo/pulls": { - parameters: PullsListEndpoint; - request: PullsListRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/events": Operation<"/repos/{owner}/{repo}/events", "get">; /** - * @see https://developer.github.com/v3/pulls/#get-a-single-pull-request + * @see https://docs.github.com/rest/reference/repos#list-forks */ - "GET /repos/:owner/:repo/pulls/:pull_number": { - parameters: PullsGetEndpoint; - request: PullsGetRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/forks": Operation<"/repos/{owner}/{repo}/forks", "get">; /** - * @see https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request + * @see https://docs.github.com/rest/reference/git#get-a-blob */ - "GET /repos/:owner/:repo/pulls/:pull_number/comments": { - parameters: PullsListCommentsEndpoint; - request: PullsListCommentsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/blobs/{file_sha}": Operation<"/repos/{owner}/{repo}/git/blobs/{file_sha}", "get">; /** - * @see https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request + * @see https://docs.github.com/rest/reference/git#get-a-commit */ - "GET /repos/:owner/:repo/pulls/:pull_number/commits": { - parameters: PullsListCommitsEndpoint; - request: PullsListCommitsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/commits/{commit_sha}": Operation<"/repos/{owner}/{repo}/git/commits/{commit_sha}", "get">; /** - * @see https://developer.github.com/v3/pulls/#list-pull-requests-files + * @see https://docs.github.com/rest/reference/git#list-matching-references */ - "GET /repos/:owner/:repo/pulls/:pull_number/files": { - parameters: PullsListFilesEndpoint; - request: PullsListFilesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/matching-refs/{ref}": Operation<"/repos/{owner}/{repo}/git/matching-refs/{ref}", "get">; /** - * @see https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged + * @see https://docs.github.com/rest/reference/git#get-a-reference */ - "GET /repos/:owner/:repo/pulls/:pull_number/merge": { - parameters: PullsCheckIfMergedEndpoint; - request: PullsCheckIfMergedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/ref/{ref}": Operation<"/repos/{owner}/{repo}/git/ref/{ref}", "get">; /** - * @see https://developer.github.com/v3/pulls/review_requests/#list-review-requests + * @see https://docs.github.com/rest/reference/git#get-a-tag */ - "GET /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { - parameters: PullsListReviewRequestsEndpoint; - request: PullsListReviewRequestsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/tags/{tag_sha}": Operation<"/repos/{owner}/{repo}/git/tags/{tag_sha}", "get">; /** - * @see https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request + * @see https://docs.github.com/rest/reference/git#get-a-tree */ - "GET /repos/:owner/:repo/pulls/:pull_number/reviews": { - parameters: PullsListReviewsEndpoint; - request: PullsListReviewsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/git/trees/{tree_sha}": Operation<"/repos/{owner}/{repo}/git/trees/{tree_sha}", "get">; /** - * @see https://developer.github.com/v3/pulls/reviews/#get-a-single-review + * @see https://docs.github.com/rest/reference/repos#list-repository-webhooks */ - "GET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { - parameters: PullsGetReviewEndpoint; - request: PullsGetReviewRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "get">; /** - * @see https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review + * @see https://docs.github.com/rest/reference/repos#get-a-repository-webhook */ - "GET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments": { - parameters: PullsGetCommentsForReviewEndpoint; - request: PullsGetCommentsForReviewRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "get">; /** - * @see https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository + * @see https://docs.github.com/v3/repos#get-a-webhook-configuration-for-a-repository */ - "GET /repos/:owner/:repo/pulls/comments": { - parameters: PullsListCommentsForRepoEndpoint; - request: PullsListCommentsForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "get">; /** - * @see https://developer.github.com/v3/pulls/comments/#get-a-single-comment + * @see https://docs.github.com/rest/reference/migrations#get-an-import-status */ - "GET /repos/:owner/:repo/pulls/comments/:comment_id": { - parameters: PullsGetCommentEndpoint; - request: PullsGetCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment + * @see https://docs.github.com/rest/reference/migrations#get-commit-authors */ - "GET /repos/:owner/:repo/pulls/comments/:comment_id/reactions": { - parameters: ReactionsListForPullRequestReviewCommentEndpoint; - request: ReactionsListForPullRequestReviewCommentRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/import/authors": Operation<"/repos/{owner}/{repo}/import/authors", "get">; /** - * @see https://developer.github.com/v3/repos/contents/#get-the-readme + * @see https://docs.github.com/rest/reference/migrations#get-large-files */ - "GET /repos/:owner/:repo/readme": { - parameters: ReposGetReadmeEndpoint; - request: ReposGetReadmeRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/import/large_files": Operation<"/repos/{owner}/{repo}/import/large_files", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository + * @see https://docs.github.com/v3/apps/#get-a-repository-installation-for-the-authenticated-app */ - "GET /repos/:owner/:repo/releases": { - parameters: ReposListReleasesEndpoint; - request: ReposListReleasesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/installation": Operation<"/repos/{owner}/{repo}/installation", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#get-a-single-release + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-a-repository */ - "GET /repos/:owner/:repo/releases/:release_id": { - parameters: ReposGetReleaseEndpoint; - request: ReposGetReleaseRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#list-assets-for-a-release + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations */ - "GET /repos/:owner/:repo/releases/:release_id/assets": { - parameters: ReposListAssetsForReleaseEndpoint; - request: ReposListAssetsForReleaseRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/invitations": Operation<"/repos/{owner}/{repo}/invitations", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#get-a-single-release-asset + * @see https://docs.github.com/v3/issues/#list-repository-issues */ - "GET /repos/:owner/:repo/releases/assets/:asset_id": { - parameters: ReposGetReleaseAssetEndpoint; - request: ReposGetReleaseAssetRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues": Operation<"/repos/{owner}/{repo}/issues", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#get-the-latest-release + * @see https://docs.github.com/rest/reference/issues#list-issue-comments-for-a-repository */ - "GET /repos/:owner/:repo/releases/latest": { - parameters: ReposGetLatestReleaseEndpoint; - request: ReposGetLatestReleaseRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/comments": Operation<"/repos/{owner}/{repo}/issues/comments", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name + * @see https://docs.github.com/rest/reference/issues#get-an-issue-comment */ - "GET /repos/:owner/:repo/releases/tags/:tag": { - parameters: ReposGetReleaseByTagEndpoint; - request: ReposGetReleaseByTagRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "get">; /** - * @see https://developer.github.com/v3/activity/starring/#list-stargazers + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue-comment */ - "GET /repos/:owner/:repo/stargazers": { - parameters: ActivityListStargazersForRepoEndpoint; - request: ActivityListStargazersForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week + * @see https://docs.github.com/rest/reference/issues#list-issue-events-for-a-repository */ - "GET /repos/:owner/:repo/stats/code_frequency": { - parameters: ReposGetCodeFrequencyStatsEndpoint; - request: ReposGetCodeFrequencyStatsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/events": Operation<"/repos/{owner}/{repo}/issues/events", "get">; /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data + * @see https://docs.github.com/rest/reference/issues#get-an-issue-event */ - "GET /repos/:owner/:repo/stats/commit_activity": { - parameters: ReposGetCommitActivityStatsEndpoint; - request: ReposGetCommitActivityStatsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/events/{event_id}": Operation<"/repos/{owner}/{repo}/issues/events/{event_id}", "get">; /** - * @see https://developer.github.com/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts + * @see https://docs.github.com/v3/issues/#get-an-issue */ - "GET /repos/:owner/:repo/stats/contributors": { - parameters: ReposGetContributorsStatsEndpoint; - request: ReposGetContributorsStatsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "get">; /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repository-owner-and-everyone-else + * @see https://docs.github.com/rest/reference/issues#list-issue-comments */ - "GET /repos/:owner/:repo/stats/participation": { - parameters: ReposGetParticipationStatsEndpoint; - request: ReposGetParticipationStatsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}/comments": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/comments", "get">; /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day + * @see https://docs.github.com/rest/reference/issues#list-issue-events */ - "GET /repos/:owner/:repo/stats/punch_card": { - parameters: ReposGetPunchCardStatsEndpoint; - request: ReposGetPunchCardStatsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}/events": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/events", "get">; /** - * @see https://developer.github.com/v3/activity/watching/#list-watchers + * @see https://docs.github.com/rest/reference/issues#list-labels-for-an-issue */ - "GET /repos/:owner/:repo/subscribers": { - parameters: ActivityListWatchersForRepoEndpoint; - request: ActivityListWatchersForRepoRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "get">; /** - * @see https://developer.github.com/v3/activity/watching/#get-a-repository-subscription + * @see https://docs.github.com/v3/reactions/#list-reactions-for-an-issue */ - "GET /repos/:owner/:repo/subscription": { - parameters: ActivityGetRepoSubscriptionEndpoint; - request: ActivityGetRepoSubscriptionRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/#list-tags + * @see https://docs.github.com/rest/reference/issues#list-timeline-events-for-an-issue */ - "GET /repos/:owner/:repo/tags": { - parameters: ReposListTagsEndpoint; - request: ReposListTagsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/timeline", "get", "mockingbird">; /** - * @see https://developer.github.com/v3/repos/#list-teams + * @see https://docs.github.com/rest/reference/repos#list-deploy-keys */ - "GET /repos/:owner/:repo/teams": { - parameters: ReposListTeamsEndpoint; - request: ReposListTeamsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "get">; /** - * @see https://developer.github.com/v3/repos/#get-all-repository-topics + * @see https://docs.github.com/rest/reference/repos#get-a-deploy-key */ - "GET /repos/:owner/:repo/topics": { - parameters: ReposGetAllTopicsEndpoint; - request: ReposGetAllTopicsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/keys/{key_id}": Operation<"/repos/{owner}/{repo}/keys/{key_id}", "get">; /** - * @see https://developer.github.com/v3/repos/traffic/#clones + * @see https://docs.github.com/rest/reference/issues#list-labels-for-a-repository */ - "GET /repos/:owner/:repo/traffic/clones": { - parameters: ReposGetClonesEndpoint; - request: ReposGetClonesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "get">; /** - * @see https://developer.github.com/v3/repos/traffic/#list-paths + * @see https://docs.github.com/rest/reference/issues#get-a-label */ - "GET /repos/:owner/:repo/traffic/popular/paths": { - parameters: ReposGetTopPathsEndpoint; - request: ReposGetTopPathsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "get">; /** - * @see https://developer.github.com/v3/repos/traffic/#list-referrers + * @see https://docs.github.com/v3/repos/#list-repository-languages */ - "GET /repos/:owner/:repo/traffic/popular/referrers": { - parameters: ReposGetTopReferrersEndpoint; - request: ReposGetTopReferrersRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/languages": Operation<"/repos/{owner}/{repo}/languages", "get">; /** - * @see https://developer.github.com/v3/repos/traffic/#views + * @see https://docs.github.com/v3/licenses/#get-the-license-for-a-repository */ - "GET /repos/:owner/:repo/traffic/views": { - parameters: ReposGetViewsEndpoint; - request: ReposGetViewsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/license": Operation<"/repos/{owner}/{repo}/license", "get">; /** - * @see https://developer.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository + * @see https://docs.github.com/rest/reference/issues#list-milestones */ - "GET /repos/:owner/:repo/vulnerability-alerts": { - parameters: ReposCheckVulnerabilityAlertsEndpoint; - request: ReposCheckVulnerabilityAlertsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "get">; /** - * @see https://developer.github.com/v3/repos/#list-public-repositories + * @see https://docs.github.com/rest/reference/issues#get-a-milestone */ - "GET /repositories": { - parameters: ReposListPublicEndpoint; - request: ReposListPublicRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "get">; /** - * @see https://developer.github.com/v3/scim/#get-a-list-of-provisioned-identities + * @see https://docs.github.com/rest/reference/issues#list-labels-for-issues-in-a-milestone */ - "GET /scim/v2/organizations/:org/Users": { - parameters: ScimListProvisionedIdentitiesEndpoint; - request: ScimListProvisionedIdentitiesRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}/labels", "get">; /** - * @see https://developer.github.com/v3/scim/#get-provisioning-details-for-a-single-user + * @see https://docs.github.com/rest/reference/activity#list-repository-notifications-for-the-authenticated-user */ - "GET /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimGetProvisioningDetailsForUserEndpoint; - request: ScimGetProvisioningDetailsForUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "get">; /** - * @see https://developer.github.com/v3/search/#search-code + * @see https://docs.github.com/rest/reference/repos#get-a-github-pages-site */ - "GET /search/code": { - parameters: SearchCodeEndpoint; - request: SearchCodeRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "get">; /** - * @see https://developer.github.com/v3/search/#search-commits + * @see https://docs.github.com/rest/reference/repos#list-github-pages-builds */ - "GET /search/commits": { - parameters: SearchCommitsEndpoint; - request: SearchCommitsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "get">; /** - * @see https://developer.github.com/v3/search/#search-issues-and-pull-requests + * @see https://docs.github.com/rest/reference/repos#get-latest-pages-build */ - "GET /search/issues": { - parameters: SearchIssuesAndPullRequestsEndpoint; - request: SearchIssuesAndPullRequestsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pages/builds/latest": Operation<"/repos/{owner}/{repo}/pages/builds/latest", "get">; /** - * @see https://developer.github.com/v3/search/#search-labels + * @see https://docs.github.com/rest/reference/repos#get-github-pages-build */ - "GET /search/labels": { - parameters: SearchLabelsEndpoint; - request: SearchLabelsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pages/builds/{build_id}": Operation<"/repos/{owner}/{repo}/pages/builds/{build_id}", "get">; /** - * @see https://developer.github.com/v3/search/#search-repositories + * @see https://docs.github.com/v3/projects/#list-repository-projects */ - "GET /search/repositories": { - parameters: SearchReposEndpoint; - request: SearchReposRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/projects": Operation<"/repos/{owner}/{repo}/projects", "get", "inertia">; /** - * @see https://developer.github.com/v3/search/#search-topics + * @see https://docs.github.com/v3/pulls/#list-pull-requests */ - "GET /search/topics": { - parameters: SearchTopicsEndpoint; - request: SearchTopicsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls": Operation<"/repos/{owner}/{repo}/pulls", "get">; /** - * @see https://developer.github.com/v3/search/#search-users + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-in-a-repository */ - "GET /search/users": { - parameters: SearchUsersEndpoint; - request: SearchUsersRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/comments": Operation<"/repos/{owner}/{repo}/pulls/comments", "get">; /** - * @see https://developer.github.com/v3/teams/#get-team-legacy + * @see https://docs.github.com/rest/reference/pulls#get-a-review-comment-for-a-pull-request */ - "GET /teams/:team_id": { - parameters: TeamsGetLegacyEndpoint; - request: TeamsGetLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "get">; /** - * @see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment */ - "GET /teams/:team_id/discussions": { - parameters: TeamsListDiscussionsLegacyEndpoint; - request: TeamsListDiscussionsLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy + * @see https://docs.github.com/v3/pulls/#get-a-pull-request */ - "GET /teams/:team_id/discussions/:discussion_number": { - parameters: TeamsGetDiscussionLegacyEndpoint; - request: TeamsGetDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy + * @see https://docs.github.com/rest/reference/pulls#list-review-comments-on-a-pull-request */ - "GET /teams/:team_id/discussions/:discussion_number/comments": { - parameters: TeamsListDiscussionCommentsLegacyEndpoint; - request: TeamsListDiscussionCommentsLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy + * @see https://docs.github.com/v3/pulls/#list-commits-on-a-pull-request */ - "GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsGetDiscussionCommentLegacyEndpoint; - request: TeamsGetDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/commits", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy + * @see https://docs.github.com/v3/pulls/#list-pull-requests-files */ - "GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsListForTeamDiscussionCommentLegacyEndpoint; - request: ReactionsListForTeamDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/files": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/files", "get">; /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy + * @see https://docs.github.com/v3/pulls/#check-if-a-pull-request-has-been-merged */ - "GET /teams/:team_id/discussions/:discussion_number/reactions": { - parameters: ReactionsListForTeamDiscussionLegacyEndpoint; - request: ReactionsListForTeamDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "get">; /** - * @see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy + * @see https://docs.github.com/rest/reference/pulls#list-requested-reviewers-for-a-pull-request */ - "GET /teams/:team_id/invitations": { - parameters: TeamsListPendingInvitationsLegacyEndpoint; - request: TeamsListPendingInvitationsLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "get">; /** - * @see https://developer.github.com/v3/teams/members/#list-team-members-legacy + * @see https://docs.github.com/rest/reference/pulls#list-reviews-for-a-pull-request */ - "GET /teams/:team_id/members": { - parameters: TeamsListMembersLegacyEndpoint; - request: TeamsListMembersLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "get">; /** - * @see https://developer.github.com/v3/teams/members/#get-team-member-legacy + * @see https://docs.github.com/rest/reference/pulls#get-a-review-for-a-pull-request */ - "GET /teams/:team_id/members/:username": { - parameters: TeamsGetMemberLegacyEndpoint; - request: TeamsGetMemberLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "get">; /** - * @see https://developer.github.com/v3/teams/members/#get-team-membership-legacy + * @see https://docs.github.com/rest/reference/pulls#list-comments-for-a-pull-request-review */ - "GET /teams/:team_id/memberships/:username": { - parameters: TeamsGetMembershipLegacyEndpoint; - request: TeamsGetMembershipLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", "get">; /** - * @see https://developer.github.com/v3/teams/#list-team-projects-legacy + * @see https://docs.github.com/rest/reference/repos#get-a-repository-readme */ - "GET /teams/:team_id/projects": { - parameters: TeamsListProjectsLegacyEndpoint; - request: TeamsListProjectsLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/readme": Operation<"/repos/{owner}/{repo}/readme", "get">; /** - * @see https://developer.github.com/v3/teams/#review-a-team-project-legacy + * @see https://docs.github.com/rest/reference/repos#list-releases */ - "GET /teams/:team_id/projects/:project_id": { - parameters: TeamsReviewProjectLegacyEndpoint; - request: TeamsReviewProjectLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "get">; /** - * @see https://developer.github.com/v3/teams/#list-team-repos-legacy + * @see https://docs.github.com/rest/reference/repos#get-a-release-asset */ - "GET /teams/:team_id/repos": { - parameters: TeamsListReposLegacyEndpoint; - request: TeamsListReposLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "get">; /** - * @see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy + * @see https://docs.github.com/rest/reference/repos#get-the-latest-release */ - "GET /teams/:team_id/repos/:owner/:repo": { - parameters: TeamsCheckManagesRepoLegacyEndpoint; - request: TeamsCheckManagesRepoLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases/latest": Operation<"/repos/{owner}/{repo}/releases/latest", "get">; /** - * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team-legacy + * @see https://docs.github.com/rest/reference/repos#get-a-release-by-tag-name */ - "GET /teams/:team_id/team-sync/group-mappings": { - parameters: TeamsListIdPGroupsForLegacyEndpoint; - request: TeamsListIdPGroupsForLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases/tags/{tag}": Operation<"/repos/{owner}/{repo}/releases/tags/{tag}", "get">; /** - * @see https://developer.github.com/v3/teams/#list-child-teams-legacy + * @see https://docs.github.com/rest/reference/repos#get-a-release */ - "GET /teams/:team_id/teams": { - parameters: TeamsListChildLegacyEndpoint; - request: TeamsListChildLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "get">; /** - * @see https://developer.github.com/v3/users/#get-the-authenticated-user + * @see https://docs.github.com/rest/reference/repos#list-release-assets */ - "GET /user": { - parameters: UsersGetAuthenticatedEndpoint; - request: UsersGetAuthenticatedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/releases/{release_id}/assets": Operation<"/repos/{owner}/{repo}/releases/{release_id}/assets", "get">; /** - * @see https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration + * @see https://docs.github.com/rest/reference/activity#list-stargazers */ - "GET /user/:migration_id/repositories": { - parameters: MigrationsListReposForUserEndpoint; - request: MigrationsListReposForUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stargazers": Operation<"/repos/{owner}/{repo}/stargazers", "get">; /** - * @see https://developer.github.com/v3/users/blocking/#list-blocked-users + * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-activity */ - "GET /user/blocks": { - parameters: UsersListBlockedEndpoint; - request: UsersListBlockedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stats/code_frequency": Operation<"/repos/{owner}/{repo}/stats/code_frequency", "get">; /** - * @see https://developer.github.com/v3/users/blocking/#check-whether-youve-blocked-a-user + * @see https://docs.github.com/rest/reference/repos#get-the-last-year-of-commit-activity */ - "GET /user/blocks/:username": { - parameters: UsersCheckBlockedEndpoint; - request: UsersCheckBlockedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stats/commit_activity": Operation<"/repos/{owner}/{repo}/stats/commit_activity", "get">; /** - * @see https://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user + * @see https://docs.github.com/rest/reference/repos#get-all-contributor-commit-activity */ - "GET /user/emails": { - parameters: UsersListEmailsEndpoint; - request: UsersListEmailsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stats/contributors": Operation<"/repos/{owner}/{repo}/stats/contributors", "get">; /** - * @see https://developer.github.com/v3/users/followers/#list-followers-of-the-authenticated-user + * @see https://docs.github.com/rest/reference/repos#get-the-weekly-commit-count */ - "GET /user/followers": { - parameters: UsersListFollowersForAuthenticatedUserEndpoint; - request: UsersListFollowersForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stats/participation": Operation<"/repos/{owner}/{repo}/stats/participation", "get">; /** - * @see https://developer.github.com/v3/users/followers/#list-users-followed-by-the-authenticated-user + * @see https://docs.github.com/rest/reference/repos#get-the-hourly-commit-count-for-each-day */ - "GET /user/following": { - parameters: UsersListFollowedByAuthenticatedEndpoint; - request: UsersListFollowedByAuthenticatedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/stats/punch_card": Operation<"/repos/{owner}/{repo}/stats/punch_card", "get">; /** - * @see https://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user + * @see https://docs.github.com/rest/reference/activity#list-watchers */ - "GET /user/following/:username": { - parameters: UsersCheckFollowingEndpoint; - request: UsersCheckFollowingRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/subscribers": Operation<"/repos/{owner}/{repo}/subscribers", "get">; /** - * @see https://developer.github.com/v3/users/gpg_keys/#list-your-gpg-keys + * @see https://docs.github.com/rest/reference/activity#get-a-repository-subscription */ - "GET /user/gpg_keys": { - parameters: UsersListGpgKeysEndpoint; - request: UsersListGpgKeysRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "get">; /** - * @see https://developer.github.com/v3/users/gpg_keys/#get-a-single-gpg-key + * @see https://docs.github.com/v3/repos/#list-repository-tags */ - "GET /user/gpg_keys/:gpg_key_id": { - parameters: UsersGetGpgKeyEndpoint; - request: UsersGetGpgKeyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/tags": Operation<"/repos/{owner}/{repo}/tags", "get">; /** - * @see https://developer.github.com/v3/apps/installations/#list-installations-for-a-user + * @see https://docs.github.com/rest/reference/repos#download-a-repository-archive */ - "GET /user/installations": { - parameters: AppsListInstallationsForAuthenticatedUserEndpoint; - request: AppsListInstallationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/tarball/{ref}": Operation<"/repos/{owner}/{repo}/tarball/{ref}", "get">; /** - * @see https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation + * @see https://docs.github.com/v3/repos/#list-repository-teams */ - "GET /user/installations/:installation_id/repositories": { - parameters: AppsListInstallationReposForAuthenticatedUserEndpoint; - request: AppsListInstallationReposForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/teams": Operation<"/repos/{owner}/{repo}/teams", "get">; /** - * @see https://developer.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user + * @see https://docs.github.com/v3/repos/#get-all-repository-topics */ - "GET /user/issues": { - parameters: IssuesListForAuthenticatedUserEndpoint; - request: IssuesListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "get", "mercy">; /** - * @see https://developer.github.com/v3/users/keys/#list-your-public-keys + * @see https://docs.github.com/rest/reference/repos#get-repository-clones */ - "GET /user/keys": { - parameters: UsersListPublicKeysEndpoint; - request: UsersListPublicKeysRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/traffic/clones": Operation<"/repos/{owner}/{repo}/traffic/clones", "get">; /** - * @see https://developer.github.com/v3/users/keys/#get-a-single-public-key + * @see https://docs.github.com/rest/reference/repos#get-top-referral-paths */ - "GET /user/keys/:key_id": { - parameters: UsersGetPublicKeyEndpoint; - request: UsersGetPublicKeyRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/traffic/popular/paths": Operation<"/repos/{owner}/{repo}/traffic/popular/paths", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-subscriptions-for-the-authenticated-user + * @see https://docs.github.com/rest/reference/repos#get-top-referral-sources */ - "GET /user/marketplace_purchases": { - parameters: AppsListSubscriptionsForAuthenticatedUserEndpoint; - request: AppsListSubscriptionsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/traffic/popular/referrers": Operation<"/repos/{owner}/{repo}/traffic/popular/referrers", "get">; /** - * @see https://developer.github.com/v3/apps/marketplace/#list-subscriptions-for-the-authenticated-user-stubbed + * @see https://docs.github.com/rest/reference/repos#get-page-views */ - "GET /user/marketplace_purchases/stubbed": { - parameters: AppsListSubscriptionsForAuthenticatedUserStubbedEndpoint; - request: AppsListSubscriptionsForAuthenticatedUserStubbedRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/traffic/views": Operation<"/repos/{owner}/{repo}/traffic/views", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#list-your-organization-memberships + * @see https://docs.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository */ - "GET /user/memberships/orgs": { - parameters: OrgsListMembershipsEndpoint; - request: OrgsListMembershipsRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "get", "dorian">; /** - * @see https://developer.github.com/v3/orgs/members/#get-your-organization-membership + * @see https://docs.github.com/rest/reference/repos#download-a-repository-archive */ - "GET /user/memberships/orgs/:org": { - parameters: OrgsGetMembershipForAuthenticatedUserEndpoint; - request: OrgsGetMembershipForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repos/{owner}/{repo}/zipball/{ref}": Operation<"/repos/{owner}/{repo}/zipball/{ref}", "get">; /** - * @see https://developer.github.com/v3/migrations/users/#list-user-migrations + * @see https://docs.github.com/v3/repos/#list-public-repositories */ - "GET /user/migrations": { - parameters: MigrationsListForAuthenticatedUserEndpoint; - request: MigrationsListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /repositories": Operation<"/repositories", "get">; /** - * @see https://developer.github.com/v3/migrations/users/#get-the-status-of-a-user-migration + * @see https://docs.github.com/rest/reference/enterprise-admin#list-provisioned-scim groups-for-an-enterprise */ - "GET /user/migrations/:migration_id": { - parameters: MigrationsGetStatusForAuthenticatedUserEndpoint; - request: MigrationsGetStatusForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/enterprises/{enterprise}/Groups": Operation<"/scim/v2/enterprises/{enterprise}/Groups", "get">; /** - * @see https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive + * @see https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise group */ - "GET /user/migrations/:migration_id/archive": { - parameters: MigrationsGetArchiveForAuthenticatedUserEndpoint; - request: MigrationsGetArchiveForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "get">; /** - * @see https://developer.github.com/v3/orgs/#list-your-organizations + * @see https://docs.github.com/rest/reference/enterprise-admin#list-scim-provisioned-identities-for-an-enterprise */ - "GET /user/orgs": { - parameters: OrgsListForAuthenticatedUserEndpoint; - request: OrgsListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/enterprises/{enterprise}/Users": Operation<"/scim/v2/enterprises/{enterprise}/Users", "get">; /** - * @see https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-a-user + * @see https://docs.github.com/rest/reference/enterprise-admin#get-scim-provisioning-information-for-an-enterprise-user */ - "GET /user/public_emails": { - parameters: UsersListPublicEmailsEndpoint; - request: UsersListPublicEmailsRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "get">; /** - * @see https://developer.github.com/v3/repos/#list-repositories-for-the-authenticated-user + * @see https://docs.github.com/v3/scim/#list-scim-provisioned-identities */ - "GET /user/repos": { - parameters: ReposListForAuthenticatedUserEndpoint; - request: ReposListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/organizations/{org}/Users": Operation<"/scim/v2/organizations/{org}/Users", "get">; /** - * @see https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations + * @see https://docs.github.com/v3/scim/#get-scim-provisioning-information-for-a-user */ - "GET /user/repository_invitations": { - parameters: ReposListInvitationsForAuthenticatedUserEndpoint; - request: ReposListInvitationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "get">; /** - * @see https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-the-authenticated-user + * @see https://docs.github.com/v3/search/#search-code */ - "GET /user/starred": { - parameters: ActivityListReposStarredByAuthenticatedUserEndpoint; - request: ActivityListReposStarredByAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /search/code": Operation<"/search/code", "get">; /** - * @see https://developer.github.com/v3/activity/starring/#check-if-a-repository-is-starred-by-the-authenticated-user + * @see https://docs.github.com/v3/search/#search-commits */ - "GET /user/starred/:owner/:repo": { - parameters: ActivityCheckRepoIsStarredByAuthenticatedUserEndpoint; - request: ActivityCheckRepoIsStarredByAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /search/commits": Operation<"/search/commits", "get", "cloak">; /** - * @see https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-the-authenticated-user + * @see https://docs.github.com/v3/search/#search-issues-and-pull-requests */ - "GET /user/subscriptions": { - parameters: ActivityListWatchedReposForAuthenticatedUserEndpoint; - request: ActivityListWatchedReposForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /search/issues": Operation<"/search/issues", "get">; /** - * @see https://developer.github.com/v3/activity/watching/#check-if-you-are-watching-a-repository-legacy + * @see https://docs.github.com/v3/search/#search-labels */ - "GET /user/subscriptions/:owner/:repo": { - parameters: ActivityCheckWatchingRepoLegacyEndpoint; - request: ActivityCheckWatchingRepoLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /search/labels": Operation<"/search/labels", "get">; /** - * @see https://developer.github.com/v3/teams/#list-user-teams + * @see https://docs.github.com/v3/search/#search-repositories */ - "GET /user/teams": { - parameters: TeamsListForAuthenticatedUserEndpoint; - request: TeamsListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /search/repositories": Operation<"/search/repositories", "get">; /** - * @see https://developer.github.com/v3/users/#get-all-users + * @see https://docs.github.com/v3/search/#search-topics */ - "GET /users": { - parameters: UsersListEndpoint; - request: UsersListRequestOptions; - response: OctokitResponse; - }; + "GET /search/topics": Operation<"/search/topics", "get", "mercy">; /** - * @see https://developer.github.com/v3/users/#get-a-single-user + * @see https://docs.github.com/v3/search/#search-users */ - "GET /users/:username": { - parameters: UsersGetByUsernameEndpoint; - request: UsersGetByUsernameRequestOptions; - response: OctokitResponse; - }; + "GET /search/users": Operation<"/search/users", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user + * @see https://docs.github.com/v3/teams/#get-a-team-legacy */ - "GET /users/:username/events": { - parameters: ActivityListEventsForAuthenticatedUserEndpoint; - request: ActivityListEventsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}": Operation<"/teams/{team_id}", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user + * @see https://docs.github.com/rest/reference/teams#list-discussions-legacy */ - "GET /users/:username/events/orgs/:org": { - parameters: ActivityListOrgEventsForAuthenticatedUserEndpoint; - request: ActivityListOrgEventsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions": Operation<"/teams/{team_id}/discussions", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-public-events-for-a-user + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-legacy */ - "GET /users/:username/events/public": { - parameters: ActivityListPublicEventsForUserEndpoint; - request: ActivityListPublicEventsForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "get">; /** - * @see https://developer.github.com/v3/users/followers/#list-followers-of-a-user + * @see https://docs.github.com/rest/reference/teams#list-discussion-comments-legacy */ - "GET /users/:username/followers": { - parameters: UsersListFollowersForUserEndpoint; - request: UsersListFollowersForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions/{discussion_number}/comments": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments", "get">; /** - * @see https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user + * @see https://docs.github.com/rest/reference/teams#get-a-discussion-comment-legacy */ - "GET /users/:username/following": { - parameters: UsersListFollowingForUserEndpoint; - request: UsersListFollowingForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "get">; /** - * @see https://developer.github.com/v3/users/followers/#check-if-one-user-follows-another + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy */ - "GET /users/:username/following/:target_user": { - parameters: UsersCheckFollowingForUserEndpoint; - request: UsersCheckFollowingForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/gists/#list-gists-for-a-user + * @see https://docs.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy */ - "GET /users/:username/gists": { - parameters: GistsListForUserEndpoint; - request: GistsListForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/discussions/{discussion_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/reactions", "get", "squirrel-girl">; /** - * @see https://developer.github.com/v3/users/gpg_keys/#list-gpg-keys-for-a-user + * @see https://docs.github.com/rest/reference/teams#list-pending-team-invitations-legacy */ - "GET /users/:username/gpg_keys": { - parameters: UsersListGpgKeysForUserEndpoint; - request: UsersListGpgKeysForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/invitations": Operation<"/teams/{team_id}/invitations", "get">; /** - * @see https://developer.github.com/v3/users/#get-contextual-information-about-a-user + * @see https://docs.github.com/rest/reference/teams#list-team-members-legacy */ - "GET /users/:username/hovercard": { - parameters: UsersGetContextForUserEndpoint; - request: UsersGetContextForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/members": Operation<"/teams/{team_id}/members", "get">; /** - * @see https://developer.github.com/v3/apps/#get-a-user-installation + * @see https://docs.github.com/rest/reference/teams#get-team-member-legacy */ - "GET /users/:username/installation": { - parameters: AppsGetUserInstallationEndpoint; - request: AppsGetUserInstallationRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "get">; /** - * @see https://developer.github.com/v3/users/keys/#list-public-keys-for-a-user + * @see https://docs.github.com/rest/reference/teams#get-team-membership-for-a-user-legacy */ - "GET /users/:username/keys": { - parameters: UsersListPublicKeysForUserEndpoint; - request: UsersListPublicKeysForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "get">; /** - * @see https://developer.github.com/v3/orgs/#list-user-organizations + * @see https://docs.github.com/v3/teams/#list-team-projects-legacy */ - "GET /users/:username/orgs": { - parameters: OrgsListForUserEndpoint; - request: OrgsListForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/projects": Operation<"/teams/{team_id}/projects", "get", "inertia">; /** - * @see https://developer.github.com/v3/projects/#list-user-projects + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-project-legacy */ - "GET /users/:username/projects": { - parameters: ProjectsListForUserEndpoint; - request: ProjectsListForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "get", "inertia">; /** - * @see https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user + * @see https://docs.github.com/v3/teams/#list-team-repositories-legacy */ - "GET /users/:username/received_events": { - parameters: ActivityListReceivedEventsForUserEndpoint; - request: ActivityListReceivedEventsForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/repos": Operation<"/teams/{team_id}/repos", "get">; /** - * @see https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user + * @see https://docs.github.com/v3/teams/#check-team-permissions-for-a-repository-legacy */ - "GET /users/:username/received_events/public": { - parameters: ActivityListReceivedPublicEventsForUserEndpoint; - request: ActivityListReceivedPublicEventsForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "get">; /** - * @see https://developer.github.com/v3/repos/#list-repositories-for-a-user + * @see https://docs.github.com/rest/reference/teams#list-idp-groups-for-a-team-legacy */ - "GET /users/:username/repos": { - parameters: ReposListForUserEndpoint; - request: ReposListForUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/team-sync/group-mappings": Operation<"/teams/{team_id}/team-sync/group-mappings", "get">; /** - * @see https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user + * @see https://docs.github.com/v3/teams/#list-child-teams-legacy */ - "GET /users/:username/starred": { - parameters: ActivityListReposStarredByUserEndpoint; - request: ActivityListReposStarredByUserRequestOptions; - response: OctokitResponse; - }; + "GET /teams/{team_id}/teams": Operation<"/teams/{team_id}/teams", "get">; /** - * @see https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user + * @see https://docs.github.com/v3/users/#get-the-authenticated-user */ - "GET /users/:username/subscriptions": { - parameters: ActivityListReposWatchedByUserEndpoint; - request: ActivityListReposWatchedByUserRequestOptions; - response: OctokitResponse; - }; + "GET /user": Operation<"/user", "get">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#reset-a-token + * @see https://docs.github.com/rest/reference/users#list-users-blocked-by-the-authenticated-user */ - "PATCH /applications/:client_id/token": { - parameters: AppsResetTokenEndpoint; - request: AppsResetTokenRequestOptions; - response: OctokitResponse; - }; + "GET /user/blocks": Operation<"/user/blocks", "get">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization + * @see https://docs.github.com/rest/reference/users#check-if-a-user-is-blocked-by-the-authenticated-user */ - "PATCH /authorizations/:authorization_id": { - parameters: OauthAuthorizationsUpdateAuthorizationEndpoint; - request: OauthAuthorizationsUpdateAuthorizationRequestOptions; - response: OctokitResponse; - }; + "GET /user/blocks/{username}": Operation<"/user/blocks/{username}", "get">; /** - * @see https://developer.github.com/v3/gists/#update-a-gist + * @see https://docs.github.com/rest/reference/users#list-email-addresses-for-the-authenticated-user */ - "PATCH /gists/:gist_id": { - parameters: GistsUpdateEndpoint; - request: GistsUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/emails": Operation<"/user/emails", "get">; /** - * @see https://developer.github.com/v3/gists/comments/#edit-a-comment + * @see https://docs.github.com/rest/reference/users#list-followers-of-the-authenticated-user */ - "PATCH /gists/:gist_id/comments/:comment_id": { - parameters: GistsUpdateCommentEndpoint; - request: GistsUpdateCommentRequestOptions; - response: OctokitResponse; - }; + "GET /user/followers": Operation<"/user/followers", "get">; /** - * @see https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read + * @see https://docs.github.com/rest/reference/users#list-the-people-the-authenticated-user-follows */ - "PATCH /notifications/threads/:thread_id": { - parameters: ActivityMarkThreadAsReadEndpoint; - request: ActivityMarkThreadAsReadRequestOptions; - response: OctokitResponse; - }; + "GET /user/following": Operation<"/user/following", "get">; /** - * @see https://developer.github.com/v3/orgs/#edit-an-organization + * @see https://docs.github.com/rest/reference/users#check-if-a-person-is-followed-by-the-authenticated-user */ - "PATCH /orgs/:org": { - parameters: OrgsUpdateEndpoint; - request: OrgsUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/following/{username}": Operation<"/user/following/{username}", "get">; /** - * @see https://developer.github.com/v3/orgs/hooks/#edit-a-hook + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-the-authenticated-user */ - "PATCH /orgs/:org/hooks/:hook_id": { - parameters: OrgsUpdateHookEndpoint; - request: OrgsUpdateHookRequestOptions; - response: OctokitResponse; - }; + "GET /user/gpg_keys": Operation<"/user/gpg_keys", "get">; /** - * @see https://developer.github.com/v3/teams/#edit-team + * @see https://docs.github.com/rest/reference/users#get-a-gpg-key-for-the-authenticated-user */ - "PATCH /orgs/:org/teams/:team_slug": { - parameters: TeamsUpdateInOrgEndpoint; - request: TeamsUpdateInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /user/gpg_keys/{gpg_key_id}": Operation<"/user/gpg_keys/{gpg_key_id}", "get">; /** - * @see https://developer.github.com/v3/teams/discussions/#edit-a-discussion + * @see https://docs.github.com/rest/reference/apps#list-app-installations-accessible-to-the-user-access-token */ - "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number": { - parameters: TeamsUpdateDiscussionInOrgEndpoint; - request: TeamsUpdateDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /user/installations": Operation<"/user/installations", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment + * @see https://docs.github.com/rest/reference/apps#list-repositories-accessible-to-the-user-access-token */ - "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsUpdateDiscussionCommentInOrgEndpoint; - request: TeamsUpdateDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /user/installations/{installation_id}/repositories": Operation<"/user/installations/{installation_id}/repositories", "get">; /** - * @see https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections + * @see https://docs.github.com/rest/reference/interactions#get-interaction-restrictions-for-your-public-repositories */ - "PATCH /orgs/:org/teams/:team_slug/team-sync/group-mappings": { - parameters: TeamsCreateOrUpdateIdPGroupConnectionsInOrgEndpoint; - request: TeamsCreateOrUpdateIdPGroupConnectionsInOrgRequestOptions; - response: OctokitResponse; - }; + "GET /user/interaction-limits": Operation<"/user/interaction-limits", "get">; /** - * @see https://developer.github.com/v3/projects/#update-a-project + * @see https://docs.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user */ - "PATCH /projects/:project_id": { - parameters: ProjectsUpdateEndpoint; - request: ProjectsUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/issues": Operation<"/user/issues", "get">; /** - * @see https://developer.github.com/v3/projects/columns/#update-a-project-column + * @see https://docs.github.com/rest/reference/users#list-public-ssh-keys-for-the-authenticated-user */ - "PATCH /projects/columns/:column_id": { - parameters: ProjectsUpdateColumnEndpoint; - request: ProjectsUpdateColumnRequestOptions; - response: OctokitResponse; - }; + "GET /user/keys": Operation<"/user/keys", "get">; /** - * @see https://developer.github.com/v3/projects/cards/#update-a-project-card + * @see https://docs.github.com/rest/reference/users#get-a-public-ssh-key-for-the-authenticated-user */ - "PATCH /projects/columns/cards/:card_id": { - parameters: ProjectsUpdateCardEndpoint; - request: ProjectsUpdateCardRequestOptions; - response: OctokitResponse; - }; + "GET /user/keys/{key_id}": Operation<"/user/keys/{key_id}", "get">; /** - * @see https://developer.github.com/v3/repos/#update-a-repository + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo": { - parameters: ReposUpdateEndpoint; - request: ReposUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/marketplace_purchases": Operation<"/user/marketplace_purchases", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch + * @see https://docs.github.com/rest/reference/apps#list-subscriptions-for-the-authenticated-user-stubbed */ - "PATCH /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { - parameters: ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint; - request: ReposUpdateProtectedBranchPullRequestReviewEnforcementRequestOptions; - response: OctokitResponse; - }; + "GET /user/marketplace_purchases/stubbed": Operation<"/user/marketplace_purchases/stubbed", "get">; /** - * @see https://developer.github.com/v3/repos/branches/#update-required-status-checks-of-protected-branch + * @see https://docs.github.com/rest/reference/orgs#list-organization-memberships-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { - parameters: ReposUpdateProtectedBranchRequiredStatusChecksEndpoint; - request: ReposUpdateProtectedBranchRequiredStatusChecksRequestOptions; - response: OctokitResponse; - }; + "GET /user/memberships/orgs": Operation<"/user/memberships/orgs", "get">; /** - * @see https://developer.github.com/v3/checks/runs/#update-a-check-run + * @see https://docs.github.com/rest/reference/orgs#get-an-organization-membership-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/check-runs/:check_run_id": { - parameters: ChecksUpdateEndpoint; - request: ChecksUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "get">; /** - * @see https://developer.github.com/v3/checks/suites/#update-repository-preferences-for-check-suites + * @see https://docs.github.com/rest/reference/migrations#list-user-migrations */ - "PATCH /repos/:owner/:repo/check-suites/preferences": { - parameters: ChecksSetSuitesPreferencesEndpoint; - request: ChecksSetSuitesPreferencesRequestOptions; - response: OctokitResponse; - }; + "GET /user/migrations": Operation<"/user/migrations", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/repos/comments/#update-a-commit-comment + * @see https://docs.github.com/rest/reference/migrations#get-a-user-migration-status */ - "PATCH /repos/:owner/:repo/comments/:comment_id": { - parameters: ReposUpdateCommitCommentEndpoint; - request: ReposUpdateCommitCommentRequestOptions; - response: OctokitResponse; - }; + "GET /user/migrations/{migration_id}": Operation<"/user/migrations/{migration_id}", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/git/refs/#update-a-reference + * @see https://docs.github.com/rest/reference/migrations#download-a-user-migration-archive */ - "PATCH /repos/:owner/:repo/git/refs/:ref": { - parameters: GitUpdateRefEndpoint; - request: GitUpdateRefRequestOptions; - response: OctokitResponse; - }; + "GET /user/migrations/{migration_id}/archive": Operation<"/user/migrations/{migration_id}/archive", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/repos/hooks/#edit-a-hook + * @see https://docs.github.com/rest/reference/migrations#list-repositories-for-a-user-migration */ - "PATCH /repos/:owner/:repo/hooks/:hook_id": { - parameters: ReposUpdateHookEndpoint; - request: ReposUpdateHookRequestOptions; - response: OctokitResponse; - }; + "GET /user/migrations/{migration_id}/repositories": Operation<"/user/migrations/{migration_id}/repositories", "get", "wyandotte">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#update-existing-import + * @see https://docs.github.com/v3/orgs/#list-organizations-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/import": { - parameters: MigrationsUpdateImportEndpoint; - request: MigrationsUpdateImportRequestOptions; - response: OctokitResponse; - }; + "GET /user/orgs": Operation<"/user/orgs", "get">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author + * @see https://docs.github.com/rest/reference/users#list-public-email-addresses-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/import/authors/:author_id": { - parameters: MigrationsMapCommitAuthorEndpoint; - request: MigrationsMapCommitAuthorRequestOptions; - response: OctokitResponse; - }; + "GET /user/public_emails": Operation<"/user/public_emails", "get">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#set-git-lfs-preference + * @see https://docs.github.com/v3/repos/#list-repositories-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/import/lfs": { - parameters: MigrationsSetLfsPreferenceEndpoint; - request: MigrationsSetLfsPreferenceRequestOptions; - response: OctokitResponse; - }; + "GET /user/repos": Operation<"/user/repos", "get">; /** - * @see https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation + * @see https://docs.github.com/rest/reference/repos#list-repository-invitations-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/invitations/:invitation_id": { - parameters: ReposUpdateInvitationEndpoint; - request: ReposUpdateInvitationRequestOptions; - response: OctokitResponse; - }; + "GET /user/repository_invitations": Operation<"/user/repository_invitations", "get">; /** - * @see https://developer.github.com/v3/issues/#update-an-issue + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-the-authenticated-user */ - "PATCH /repos/:owner/:repo/issues/:issue_number": { - parameters: IssuesUpdateEndpoint; - request: IssuesUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /user/starred": Operation<"/user/starred", "get">; /** - * @see https://developer.github.com/v3/issues/comments/#edit-a-comment + * @see https://docs.github.com/rest/reference/activity#check-if-a-repository-is-starred-by-the-authenticated-user */ - "PATCH /repos/:owner/:repo/issues/comments/:comment_id": { - parameters: IssuesUpdateCommentEndpoint; - request: IssuesUpdateCommentRequestOptions; - response: OctokitResponse; - }; + "GET /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "get">; /** - * @see https://developer.github.com/v3/issues/labels/#update-a-label + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-the-authenticated-user */ - "PATCH /repos/:owner/:repo/labels/:name": { - parameters: IssuesUpdateLabelEndpoint; - request: IssuesUpdateLabelRequestOptions; - response: OctokitResponse; - }; + "GET /user/subscriptions": Operation<"/user/subscriptions", "get">; /** - * @see https://developer.github.com/v3/issues/milestones/#update-a-milestone + * @see https://docs.github.com/v3/teams/#list-teams-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/milestones/:milestone_number": { - parameters: IssuesUpdateMilestoneEndpoint; - request: IssuesUpdateMilestoneRequestOptions; - response: OctokitResponse; - }; + "GET /user/teams": Operation<"/user/teams", "get">; /** - * @see https://developer.github.com/v3/pulls/#update-a-pull-request + * @see https://docs.github.com/v3/users/#list-users */ - "PATCH /repos/:owner/:repo/pulls/:pull_number": { - parameters: PullsUpdateEndpoint; - request: PullsUpdateRequestOptions; - response: OctokitResponse; - }; + "GET /users": Operation<"/users", "get">; /** - * @see https://developer.github.com/v3/pulls/comments/#edit-a-comment + * @see https://docs.github.com/v3/users/#get-a-user */ - "PATCH /repos/:owner/:repo/pulls/comments/:comment_id": { - parameters: PullsUpdateCommentEndpoint; - request: PullsUpdateCommentRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}": Operation<"/users/{username}", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#edit-a-release + * @see https://docs.github.com/rest/reference/activity#list-events-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/releases/:release_id": { - parameters: ReposUpdateReleaseEndpoint; - request: ReposUpdateReleaseRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/events": Operation<"/users/{username}/events", "get">; /** - * @see https://developer.github.com/v3/repos/releases/#edit-a-release-asset + * @see https://docs.github.com/rest/reference/activity#list-organization-events-for-the-authenticated-user */ - "PATCH /repos/:owner/:repo/releases/assets/:asset_id": { - parameters: ReposUpdateReleaseAssetEndpoint; - request: ReposUpdateReleaseAssetRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/events/orgs/{org}": Operation<"/users/{username}/events/orgs/{org}", "get">; /** - * @see https://developer.github.com/v3/scim/#update-a-user-attribute + * @see https://docs.github.com/rest/reference/activity#list-public-events-for-a-user */ - "PATCH /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimUpdateUserAttributeEndpoint; - request: ScimUpdateUserAttributeRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/events/public": Operation<"/users/{username}/events/public", "get">; /** - * @see https://developer.github.com/v3/teams/#edit-team-legacy + * @see https://docs.github.com/rest/reference/users#list-followers-of-a-user */ - "PATCH /teams/:team_id": { - parameters: TeamsUpdateLegacyEndpoint; - request: TeamsUpdateLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/followers": Operation<"/users/{username}/followers", "get">; /** - * @see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy + * @see https://docs.github.com/rest/reference/users#list-the-people-a-user-follows */ - "PATCH /teams/:team_id/discussions/:discussion_number": { - parameters: TeamsUpdateDiscussionLegacyEndpoint; - request: TeamsUpdateDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/following": Operation<"/users/{username}/following", "get">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy + * @see https://docs.github.com/rest/reference/users#check-if-a-user-follows-another-user */ - "PATCH /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsUpdateDiscussionCommentLegacyEndpoint; - request: TeamsUpdateDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/following/{target_user}": Operation<"/users/{username}/following/{target_user}", "get">; /** - * @see https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections-legacy + * @see https://docs.github.com/v3/gists/#list-gists-for-a-user */ - "PATCH /teams/:team_id/team-sync/group-mappings": { - parameters: TeamsCreateOrUpdateIdPGroupConnectionsLegacyEndpoint; - request: TeamsCreateOrUpdateIdPGroupConnectionsLegacyRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/gists": Operation<"/users/{username}/gists", "get">; /** - * @see https://developer.github.com/v3/users/#update-the-authenticated-user + * @see https://docs.github.com/rest/reference/users#list-gpg-keys-for-a-user */ - "PATCH /user": { - parameters: UsersUpdateAuthenticatedEndpoint; - request: UsersUpdateAuthenticatedRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/gpg_keys": Operation<"/users/{username}/gpg_keys", "get">; /** - * @see https://developer.github.com/v3/users/emails/#toggle-primary-email-visibility + * @see https://docs.github.com/v3/users/#get-contextual-information-for-a-user */ - "PATCH /user/email/visibility": { - parameters: UsersTogglePrimaryEmailVisibilityEndpoint; - request: UsersTogglePrimaryEmailVisibilityRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/hovercard": Operation<"/users/{username}/hovercard", "get">; /** - * @see https://developer.github.com/v3/orgs/members/#edit-your-organization-membership + * @see https://docs.github.com/v3/apps/#get-a-user-installation-for-the-authenticated-app */ - "PATCH /user/memberships/orgs/:org": { - parameters: OrgsUpdateMembershipEndpoint; - request: OrgsUpdateMembershipRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/installation": Operation<"/users/{username}/installation", "get">; /** - * @see https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation + * @see https://docs.github.com/rest/reference/users#list-public-keys-for-a-user */ - "PATCH /user/repository_invitations/:invitation_id": { - parameters: ReposAcceptInvitationEndpoint; - request: ReposAcceptInvitationRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/keys": Operation<"/users/{username}/keys", "get">; /** - * @see https://developer.github.com/v3/apps/#create-a-github-app-from-a-manifest + * @see https://docs.github.com/v3/orgs/#list-organizations-for-a-user */ - "POST /app-manifests/:code/conversions": { - parameters: AppsCreateFromManifestEndpoint; - request: AppsCreateFromManifestRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/orgs": Operation<"/users/{username}/orgs", "get">; /** - * @see https://developer.github.com/v3/apps/#create-a-new-installation-token + * @see https://docs.github.com/v3/projects/#list-user-projects */ - "POST /app/installations/:installation_id/access_tokens": { - parameters: AppsCreateInstallationTokenEndpoint; - request: AppsCreateInstallationTokenRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/projects": Operation<"/users/{username}/projects", "get", "inertia">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#check-a-token + * @see https://docs.github.com/rest/reference/activity#list-events-received-by-the-authenticated-user */ - "POST /applications/:client_id/token": { - parameters: AppsCheckTokenEndpoint; - request: AppsCheckTokenRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/received_events": Operation<"/users/{username}/received_events", "get">; /** - * @see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization + * @see https://docs.github.com/rest/reference/activity#list-public-events-received-by-a-user */ - "POST /applications/:client_id/tokens/:access_token": { - parameters: AppsResetAuthorizationEndpoint; - request: AppsResetAuthorizationRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/received_events/public": Operation<"/users/{username}/received_events/public", "get">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization + * @see https://docs.github.com/v3/repos/#list-repositories-for-a-user */ - "POST /authorizations": { - parameters: OauthAuthorizationsCreateAuthorizationEndpoint; - request: OauthAuthorizationsCreateAuthorizationRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/repos": Operation<"/users/{username}/repos", "get">; /** - * @see https://developer.github.com/v3/apps/installations/#create-a-content-attachment + * @see https://docs.github.com/v3/billing/#get-github-actions-billing-for-a-user */ - "POST /content_references/:content_reference_id/attachments": { - parameters: AppsCreateContentAttachmentEndpoint; - request: AppsCreateContentAttachmentRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/settings/billing/actions": Operation<"/users/{username}/settings/billing/actions", "get">; /** - * @see https://developer.github.com/v3/gists/#create-a-gist + * @see https://docs.github.com/v3/billing/#get-github-packages-billing-for-a-user */ - "POST /gists": { - parameters: GistsCreateEndpoint; - request: GistsCreateRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/settings/billing/packages": Operation<"/users/{username}/settings/billing/packages", "get">; /** - * @see https://developer.github.com/v3/gists/comments/#create-a-comment + * @see https://docs.github.com/v3/billing/#get-shared-storage-billing-for-a-user */ - "POST /gists/:gist_id/comments": { - parameters: GistsCreateCommentEndpoint; - request: GistsCreateCommentRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/settings/billing/shared-storage": Operation<"/users/{username}/settings/billing/shared-storage", "get">; /** - * @see https://developer.github.com/v3/gists/#fork-a-gist + * @see https://docs.github.com/rest/reference/activity#list-repositories-starred-by-a-user */ - "POST /gists/:gist_id/forks": { - parameters: GistsForkEndpoint; - request: GistsForkRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/starred": Operation<"/users/{username}/starred", "get">; /** - * @see https://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document + * @see https://docs.github.com/rest/reference/activity#list-repositories-watched-by-a-user */ - "POST /markdown": { - parameters: MarkdownRenderEndpoint; - request: MarkdownRenderRequestOptions; - response: OctokitResponse; - }; + "GET /users/{username}/subscriptions": Operation<"/users/{username}/subscriptions", "get">; /** - * @see https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode + * @see */ - "POST /markdown/raw": { - parameters: MarkdownRenderRawEndpoint; - request: MarkdownRenderRawRequestOptions; - response: OctokitResponse; - }; + "GET /zen": Operation<"/zen", "get">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-an-organization + * @see https://docs.github.com/v3/apps#update-a-webhook-configuration-for-an-app */ - "POST /orgs/:org/actions/runners/registration-token": { - parameters: ActionsCreateRegistrationTokenForOrgEndpoint; - request: ActionsCreateRegistrationTokenForOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /app/hook/config": Operation<"/app/hook/config", "patch">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-an-organization + * @see https://docs.github.com/rest/reference/apps#reset-a-token */ - "POST /orgs/:org/actions/runners/remove-token": { - parameters: ActionsCreateRemoveTokenForOrgEndpoint; - request: ActionsCreateRemoveTokenForOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "patch">; /** - * @see https://developer.github.com/v3/orgs/hooks/#create-a-hook + * @see https://docs.github.com/rest/reference/oauth-authorizations#update-an-existing-authorization */ - "POST /orgs/:org/hooks": { - parameters: OrgsCreateHookEndpoint; - request: OrgsCreateHookRequestOptions; - response: OctokitResponse; - }; + "PATCH /authorizations/{authorization_id}": Operation<"/authorizations/{authorization_id}", "patch">; /** - * @see https://developer.github.com/v3/orgs/hooks/#ping-a-hook + * @see https://docs.github.com/rest/reference/enterprise-admin#update-a-self-hosted-runner-group-for-an-enterprise */ - "POST /orgs/:org/hooks/:hook_id/pings": { - parameters: OrgsPingHookEndpoint; - request: OrgsPingHookRequestOptions; - response: OctokitResponse; - }; + "PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}", "patch">; /** - * @see https://developer.github.com/v3/orgs/members/#create-organization-invitation + * @see https://docs.github.com/v3/gists/#update-a-gist */ - "POST /orgs/:org/invitations": { - parameters: OrgsCreateInvitationEndpoint; - request: OrgsCreateInvitationRequestOptions; - response: OctokitResponse; - }; + "PATCH /gists/{gist_id}": Operation<"/gists/{gist_id}", "patch">; /** - * @see https://developer.github.com/v3/migrations/orgs/#start-an-organization-migration + * @see https://docs.github.com/rest/reference/gists#update-a-gist-comment */ - "POST /orgs/:org/migrations": { - parameters: MigrationsStartForOrgEndpoint; - request: MigrationsStartForOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /gists/{gist_id}/comments/{comment_id}": Operation<"/gists/{gist_id}/comments/{comment_id}", "patch">; /** - * @see https://developer.github.com/v3/projects/#create-an-organization-project + * @see https://docs.github.com/rest/reference/activity#mark-a-thread-as-read */ - "POST /orgs/:org/projects": { - parameters: ProjectsCreateForOrgEndpoint; - request: ProjectsCreateForOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /notifications/threads/{thread_id}": Operation<"/notifications/threads/{thread_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/#create-an-organization-repository + * @see https://docs.github.com/v3/orgs/#update-an-organization */ - "POST /orgs/:org/repos": { - parameters: ReposCreateInOrgEndpoint; - request: ReposCreateInOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}": Operation<"/orgs/{org}", "patch">; /** - * @see https://developer.github.com/v3/teams/#create-team + * @see https://docs.github.com/rest/reference/actions#update-a-self-hosted-runner-group-for-an-organization */ - "POST /orgs/:org/teams": { - parameters: TeamsCreateEndpoint; - request: TeamsCreateRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}", "patch">; /** - * @see https://developer.github.com/v3/teams/discussions/#create-a-discussion + * @see https://docs.github.com/rest/reference/orgs#update-an-organization-webhook */ - "POST /orgs/:org/teams/:team_slug/discussions": { - parameters: TeamsCreateDiscussionInOrgEndpoint; - request: TeamsCreateDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/hooks/{hook_id}": Operation<"/orgs/{org}/hooks/{hook_id}", "patch">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment + * @see https://docs.github.com/v3/orgs#update-a-webhook-configuration-for-an-organization */ - "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": { - parameters: TeamsCreateDiscussionCommentInOrgEndpoint; - request: TeamsCreateDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/hooks/{hook_id}/config": Operation<"/orgs/{org}/hooks/{hook_id}/config", "patch">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment + * @see https://docs.github.com/v3/teams/#update-a-team */ - "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionCommentInOrgEndpoint; - request: ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/teams/{team_slug}": Operation<"/orgs/{org}/teams/{team_slug}", "patch">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion + * @see https://docs.github.com/rest/reference/teams#update-a-discussion */ - "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionInOrgEndpoint; - request: ReactionsCreateForTeamDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}", "patch">; /** - * @see https://developer.github.com/v3/projects/columns/#create-a-project-column + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-comment */ - "POST /projects/:project_id/columns": { - parameters: ProjectsCreateColumnEndpoint; - request: ProjectsCreateColumnRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}", "patch">; /** - * @see https://developer.github.com/v3/projects/cards/#create-a-project-card + * @see https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections */ - "POST /projects/columns/:column_id/cards": { - parameters: ProjectsCreateCardEndpoint; - request: ProjectsCreateCardRequestOptions; - response: OctokitResponse; - }; + "PATCH /orgs/{org}/teams/{team_slug}/team-sync/group-mappings": Operation<"/orgs/{org}/teams/{team_slug}/team-sync/group-mappings", "patch">; /** - * @see https://developer.github.com/v3/projects/columns/#move-a-project-column + * @see https://docs.github.com/rest/reference/projects#update-a-project-card */ - "POST /projects/columns/:column_id/moves": { - parameters: ProjectsMoveColumnEndpoint; - request: ProjectsMoveColumnRequestOptions; - response: OctokitResponse; - }; + "PATCH /projects/columns/cards/{card_id}": Operation<"/projects/columns/cards/{card_id}", "patch", "inertia">; /** - * @see https://developer.github.com/v3/projects/cards/#move-a-project-card + * @see https://docs.github.com/rest/reference/projects#update-a-project-column */ - "POST /projects/columns/cards/:card_id/moves": { - parameters: ProjectsMoveCardEndpoint; - request: ProjectsMoveCardRequestOptions; - response: OctokitResponse; - }; + "PATCH /projects/columns/{column_id}": Operation<"/projects/columns/{column_id}", "patch", "inertia">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-a-repository + * @see https://docs.github.com/v3/projects/#update-a-project */ - "POST /repos/:owner/:repo/actions/runners/registration-token": { - parameters: ActionsCreateRegistrationTokenForRepoEndpoint; - request: ActionsCreateRegistrationTokenForRepoRequestOptions; - response: OctokitResponse; - }; + "PATCH /projects/{project_id}": Operation<"/projects/{project_id}", "patch", "inertia">; /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-a-repository + * @see https://docs.github.com/v3/repos/#update-a-repository */ - "POST /repos/:owner/:repo/actions/runners/remove-token": { - parameters: ActionsCreateRemoveTokenForRepoEndpoint; - request: ActionsCreateRemoveTokenForRepoRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}": Operation<"/repos/{owner}/{repo}", "patch">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#cancel-a-workflow-run + * @see https://docs.github.com/rest/reference/repos#update-pull-request-review-protection */ - "POST /repos/:owner/:repo/actions/runs/:run_id/cancel": { - parameters: ActionsCancelWorkflowRunEndpoint; - request: ActionsCancelWorkflowRunRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews", "patch">; /** - * @see https://developer.github.com/v3/actions/workflow-runs/#re-run-a-workflow + * @see https://docs.github.com/rest/reference/repos#update-status-check-potection */ - "POST /repos/:owner/:repo/actions/runs/:run_id/rerun": { - parameters: ActionsReRunWorkflowEndpoint; - request: ActionsReRunWorkflowRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-admin-enforcement-of-protected-branch + * @see https://docs.github.com/rest/reference/checks#update-a-check-run */ - "POST /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { - parameters: ReposAddProtectedBranchAdminEnforcementEndpoint; - request: ReposAddProtectedBranchAdminEnforcementRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}": Operation<"/repos/{owner}/{repo}/check-runs/{check_run_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-required-signatures-of-protected-branch + * @see https://docs.github.com/rest/reference/checks#update-repository-preferences-for-check-suites */ - "POST /repos/:owner/:repo/branches/:branch/protection/required_signatures": { - parameters: ReposAddProtectedBranchRequiredSignaturesEndpoint; - request: ReposAddProtectedBranchRequiredSignaturesRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/check-suites/preferences": Operation<"/repos/{owner}/{repo}/check-suites/preferences", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-required-status-checks-contexts-of-protected-branch + * @see https://docs.github.com/v3/code-scanning/#upload-a-code-scanning-alert */ - "POST /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposAddProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}": Operation<"/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-app-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/repos#update-a-commit-comment */ - "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposAddProtectedBranchAppRestrictionsEndpoint; - request: ReposAddProtectedBranchAppRestrictionsRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/comments/{comment_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-team-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/git#update-a-reference */ - "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposAddProtectedBranchTeamRestrictionsEndpoint; - request: ReposAddProtectedBranchTeamRestrictionsRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/git/refs/{ref}": Operation<"/repos/{owner}/{repo}/git/refs/{ref}", "patch">; /** - * @see https://developer.github.com/v3/repos/branches/#add-user-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/repos#update-a-repository-webhook */ - "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposAddProtectedBranchUserRestrictionsEndpoint; - request: ReposAddProtectedBranchUserRestrictionsRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}", "patch">; /** - * @see https://developer.github.com/v3/checks/runs/#create-a-check-run + * @see https://docs.github.com/v3/repos#update-a-webhook-configuration-for-a-repository */ - "POST /repos/:owner/:repo/check-runs": { - parameters: ChecksCreateEndpoint; - request: ChecksCreateRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/config", "patch">; /** - * @see https://developer.github.com/v3/checks/suites/#create-a-check-suite + * @see https://docs.github.com/rest/reference/migrations#update-an-import */ - "POST /repos/:owner/:repo/check-suites": { - parameters: ChecksCreateSuiteEndpoint; - request: ChecksCreateSuiteRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "patch">; /** - * @see https://developer.github.com/v3/checks/suites/#rerequest-a-check-suite + * @see https://docs.github.com/rest/reference/migrations#map-a-commit-author */ - "POST /repos/:owner/:repo/check-suites/:check_suite_id/rerequest": { - parameters: ChecksRerequestSuiteEndpoint; - request: ChecksRerequestSuiteRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/import/authors/{author_id}": Operation<"/repos/{owner}/{repo}/import/authors/{author_id}", "patch">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment + * @see https://docs.github.com/rest/reference/migrations#update-git-lfs-preference */ - "POST /repos/:owner/:repo/comments/:comment_id/reactions": { - parameters: ReactionsCreateForCommitCommentEndpoint; - request: ReactionsCreateForCommitCommentRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/import/lfs": Operation<"/repos/{owner}/{repo}/import/lfs", "patch">; /** - * @see https://developer.github.com/v3/repos/comments/#create-a-commit-comment + * @see https://docs.github.com/rest/reference/repos#update-a-repository-invitation */ - "POST /repos/:owner/:repo/commits/:commit_sha/comments": { - parameters: ReposCreateCommitCommentEndpoint; - request: ReposCreateCommitCommentRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/invitations/{invitation_id}": Operation<"/repos/{owner}/{repo}/invitations/{invitation_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/deployments/#create-a-deployment + * @see https://docs.github.com/rest/reference/issues#update-an-issue-comment */ - "POST /repos/:owner/:repo/deployments": { - parameters: ReposCreateDeploymentEndpoint; - request: ReposCreateDeploymentRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status + * @see https://docs.github.com/v3/issues/#update-an-issue */ - "POST /repos/:owner/:repo/deployments/:deployment_id/statuses": { - parameters: ReposCreateDeploymentStatusEndpoint; - request: ReposCreateDeploymentStatusRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/issues/{issue_number}": Operation<"/repos/{owner}/{repo}/issues/{issue_number}", "patch">; /** - * @see https://developer.github.com/v3/repos/#create-a-repository-dispatch-event + * @see https://docs.github.com/rest/reference/issues#update-a-label */ - "POST /repos/:owner/:repo/dispatches": { - parameters: ReposCreateDispatchEventEndpoint; - request: ReposCreateDispatchEventRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/labels/{name}": Operation<"/repos/{owner}/{repo}/labels/{name}", "patch">; /** - * @see https://developer.github.com/v3/repos/forks/#create-a-fork + * @see https://docs.github.com/rest/reference/issues#update-a-milestone */ - "POST /repos/:owner/:repo/forks": { - parameters: ReposCreateForkEndpoint; - request: ReposCreateForkRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/milestones/{milestone_number}": Operation<"/repos/{owner}/{repo}/milestones/{milestone_number}", "patch">; /** - * @see https://developer.github.com/v3/git/blobs/#create-a-blob + * @see https://docs.github.com/rest/reference/pulls#update-a-review-comment-for-a-pull-request */ - "POST /repos/:owner/:repo/git/blobs": { - parameters: GitCreateBlobEndpoint; - request: GitCreateBlobRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}", "patch">; /** - * @see https://developer.github.com/v3/git/commits/#create-a-commit + * @see https://docs.github.com/v3/pulls/#update-a-pull-request */ - "POST /repos/:owner/:repo/git/commits": { - parameters: GitCreateCommitEndpoint; - request: GitCreateCommitRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/pulls/{pull_number}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}", "patch">; /** - * @see https://developer.github.com/v3/git/refs/#create-a-reference + * @see https://docs.github.com/rest/reference/repos#update-a-release-asset */ - "POST /repos/:owner/:repo/git/refs": { - parameters: GitCreateRefEndpoint; - request: GitCreateRefRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}": Operation<"/repos/{owner}/{repo}/releases/assets/{asset_id}", "patch">; /** - * @see https://developer.github.com/v3/git/tags/#create-a-tag-object + * @see https://docs.github.com/rest/reference/repos#update-a-release */ - "POST /repos/:owner/:repo/git/tags": { - parameters: GitCreateTagEndpoint; - request: GitCreateTagRequestOptions; - response: OctokitResponse; - }; + "PATCH /repos/{owner}/{repo}/releases/{release_id}": Operation<"/repos/{owner}/{repo}/releases/{release_id}", "patch">; /** - * @see https://developer.github.com/v3/git/trees/#create-a-tree + * @see https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-group */ - "POST /repos/:owner/:repo/git/trees": { - parameters: GitCreateTreeEndpoint; - request: GitCreateTreeRequestOptions; - response: OctokitResponse; - }; + "PATCH /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/hooks/#create-a-hook + * @see https://docs.github.com/rest/reference/enterprise-admin#update-an-attribute-for-a-scim-enterprise-user */ - "POST /repos/:owner/:repo/hooks": { - parameters: ReposCreateHookEndpoint; - request: ReposCreateHookRequestOptions; - response: OctokitResponse; - }; + "PATCH /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/hooks/#ping-a-hook + * @see https://docs.github.com/v3/scim/#update-an-attribute-for-a-scim-user */ - "POST /repos/:owner/:repo/hooks/:hook_id/pings": { - parameters: ReposPingHookEndpoint; - request: ReposPingHookRequestOptions; - response: OctokitResponse; - }; + "PATCH /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "patch">; /** - * @see https://developer.github.com/v3/repos/hooks/#test-a-push-hook + * @see https://docs.github.com/v3/teams/#update-a-team-legacy */ - "POST /repos/:owner/:repo/hooks/:hook_id/tests": { - parameters: ReposTestPushHookEndpoint; - request: ReposTestPushHookRequestOptions; - response: OctokitResponse; - }; + "PATCH /teams/{team_id}": Operation<"/teams/{team_id}", "patch">; /** - * @see https://developer.github.com/v3/issues/#create-an-issue + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-legacy */ - "POST /repos/:owner/:repo/issues": { - parameters: IssuesCreateEndpoint; - request: IssuesCreateRequestOptions; - response: OctokitResponse; - }; + "PATCH /teams/{team_id}/discussions/{discussion_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}", "patch">; /** - * @see https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue + * @see https://docs.github.com/rest/reference/teams#update-a-discussion-comment-legacy */ - "POST /repos/:owner/:repo/issues/:issue_number/assignees": { - parameters: IssuesAddAssigneesEndpoint; - request: IssuesAddAssigneesRequestOptions; - response: OctokitResponse; - }; + "PATCH /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}", "patch">; /** - * @see https://developer.github.com/v3/issues/comments/#create-a-comment + * @see https://docs.github.com/rest/reference/teams#create-or-update-idp-group-connections-legacy */ - "POST /repos/:owner/:repo/issues/:issue_number/comments": { - parameters: IssuesCreateCommentEndpoint; - request: IssuesCreateCommentRequestOptions; - response: OctokitResponse; - }; + "PATCH /teams/{team_id}/team-sync/group-mappings": Operation<"/teams/{team_id}/team-sync/group-mappings", "patch">; /** - * @see https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue + * @see https://docs.github.com/v3/users/#update-the-authenticated-user */ - "POST /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesAddLabelsEndpoint; - request: IssuesAddLabelsRequestOptions; - response: OctokitResponse; - }; + "PATCH /user": Operation<"/user", "patch">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-an-issue + * @see https://docs.github.com/rest/reference/users#set-primary-email-visibility-for-the-authenticated-user */ - "POST /repos/:owner/:repo/issues/:issue_number/reactions": { - parameters: ReactionsCreateForIssueEndpoint; - request: ReactionsCreateForIssueRequestOptions; - response: OctokitResponse; - }; + "PATCH /user/email/visibility": Operation<"/user/email/visibility", "patch">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment + * @see https://docs.github.com/rest/reference/orgs#update-an-organization-membership-for-the-authenticated-user */ - "POST /repos/:owner/:repo/issues/comments/:comment_id/reactions": { - parameters: ReactionsCreateForIssueCommentEndpoint; - request: ReactionsCreateForIssueCommentRequestOptions; - response: OctokitResponse; - }; + "PATCH /user/memberships/orgs/{org}": Operation<"/user/memberships/orgs/{org}", "patch">; /** - * @see https://developer.github.com/v3/repos/keys/#add-a-new-deploy-key + * @see https://docs.github.com/rest/reference/repos#accept-a-repository-invitation */ - "POST /repos/:owner/:repo/keys": { - parameters: ReposAddDeployKeyEndpoint; - request: ReposAddDeployKeyRequestOptions; - response: OctokitResponse; - }; + "PATCH /user/repository_invitations/{invitation_id}": Operation<"/user/repository_invitations/{invitation_id}", "patch">; /** - * @see https://developer.github.com/v3/issues/labels/#create-a-label + * @see https://docs.github.com/v3/apps/#create-a-github-app-from-a-manifest */ - "POST /repos/:owner/:repo/labels": { - parameters: IssuesCreateLabelEndpoint; - request: IssuesCreateLabelRequestOptions; - response: OctokitResponse; - }; + "POST /app-manifests/{code}/conversions": Operation<"/app-manifests/{code}/conversions", "post">; /** - * @see https://developer.github.com/v3/repos/merging/#perform-a-merge + * @see https://docs.github.com/v3/apps/#create-an-installation-access-token-for-an-app */ - "POST /repos/:owner/:repo/merges": { - parameters: ReposMergeEndpoint; - request: ReposMergeRequestOptions; - response: OctokitResponse; - }; + "POST /app/installations/{installation_id}/access_tokens": Operation<"/app/installations/{installation_id}/access_tokens", "post">; /** - * @see https://developer.github.com/v3/issues/milestones/#create-a-milestone + * @see https://docs.github.com/rest/reference/apps#check-a-token */ - "POST /repos/:owner/:repo/milestones": { - parameters: IssuesCreateMilestoneEndpoint; - request: IssuesCreateMilestoneRequestOptions; - response: OctokitResponse; - }; + "POST /applications/{client_id}/token": Operation<"/applications/{client_id}/token", "post">; /** - * @see https://developer.github.com/v3/repos/pages/#enable-a-pages-site + * @see https://docs.github.com/rest/reference/apps#reset-an-authorization */ - "POST /repos/:owner/:repo/pages": { - parameters: ReposEnablePagesSiteEndpoint; - request: ReposEnablePagesSiteRequestOptions; - response: OctokitResponse; - }; + "POST /applications/{client_id}/tokens/{access_token}": Operation<"/applications/{client_id}/tokens/{access_token}", "post">; /** - * @see https://developer.github.com/v3/repos/pages/#request-a-page-build + * @see https://docs.github.com/rest/reference/oauth-authorizations#create-a-new-authorization */ - "POST /repos/:owner/:repo/pages/builds": { - parameters: ReposRequestPageBuildEndpoint; - request: ReposRequestPageBuildRequestOptions; - response: OctokitResponse; - }; + "POST /authorizations": Operation<"/authorizations", "post">; /** - * @see https://developer.github.com/v3/projects/#create-a-repository-project + * @see https://docs.github.com/rest/reference/apps#create-a-content-attachment */ - "POST /repos/:owner/:repo/projects": { - parameters: ProjectsCreateForRepoEndpoint; - request: ProjectsCreateForRepoRequestOptions; - response: OctokitResponse; - }; + "POST /content_references/{content_reference_id}/attachments": Operation<"/content_references/{content_reference_id}/attachments", "post", "corsair">; /** - * @see https://developer.github.com/v3/pulls/#create-a-pull-request + * @see https://docs.github.com/rest/reference/enterprise-admin#create-self-hosted-runner-group-for-an-enterprise */ - "POST /repos/:owner/:repo/pulls": { - parameters: PullsCreateEndpoint; - request: PullsCreateRequestOptions; - response: OctokitResponse; - }; + "POST /enterprises/{enterprise}/actions/runner-groups": Operation<"/enterprises/{enterprise}/actions/runner-groups", "post">; /** - * @see https://developer.github.com/v3/pulls/comments/#create-a-comment + * @see https://docs.github.com/rest/reference/enterprise-admin#create-a-registration-token-for-an-enterprise */ - "POST /repos/:owner/:repo/pulls/:pull_number/comments": { - parameters: PullsCreateCommentEndpoint; - request: PullsCreateCommentRequestOptions; - response: OctokitResponse; - }; + "POST /enterprises/{enterprise}/actions/runners/registration-token": Operation<"/enterprises/{enterprise}/actions/runners/registration-token", "post">; /** - * @see https://developer.github.com/v3/pulls/comments/#create-a-review-comment-reply + * @see https://docs.github.com/rest/reference/enterprise-admin#create-a-remove-token-for-an-enterprise */ - "POST /repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies": { - parameters: PullsCreateReviewCommentReplyEndpoint; - request: PullsCreateReviewCommentReplyRequestOptions; - response: OctokitResponse; - }; + "POST /enterprises/{enterprise}/actions/runners/remove-token": Operation<"/enterprises/{enterprise}/actions/runners/remove-token", "post">; /** - * @see https://developer.github.com/v3/pulls/review_requests/#create-a-review-request + * @see https://docs.github.com/v3/gists/#create-a-gist */ - "POST /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { - parameters: PullsCreateReviewRequestEndpoint; - request: PullsCreateReviewRequestRequestOptions; - response: OctokitResponse; - }; + "POST /gists": Operation<"/gists", "post">; /** - * @see https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review + * @see https://docs.github.com/rest/reference/gists#create-a-gist-comment */ - "POST /repos/:owner/:repo/pulls/:pull_number/reviews": { - parameters: PullsCreateReviewEndpoint; - request: PullsCreateReviewRequestOptions; - response: OctokitResponse; - }; + "POST /gists/{gist_id}/comments": Operation<"/gists/{gist_id}/comments", "post">; /** - * @see https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review + * @see https://docs.github.com/v3/gists/#fork-a-gist */ - "POST /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events": { - parameters: PullsSubmitReviewEndpoint; - request: PullsSubmitReviewRequestOptions; - response: OctokitResponse; - }; + "POST /gists/{gist_id}/forks": Operation<"/gists/{gist_id}/forks", "post">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment + * @see https://docs.github.com/v3/markdown/#render-a-markdown-document */ - "POST /repos/:owner/:repo/pulls/comments/:comment_id/reactions": { - parameters: ReactionsCreateForPullRequestReviewCommentEndpoint; - request: ReactionsCreateForPullRequestReviewCommentRequestOptions; - response: OctokitResponse; - }; + "POST /markdown": Operation<"/markdown", "post">; /** - * @see https://developer.github.com/v3/repos/releases/#create-a-release + * @see https://docs.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode */ - "POST /repos/:owner/:repo/releases": { - parameters: ReposCreateReleaseEndpoint; - request: ReposCreateReleaseRequestOptions; - response: OctokitResponse; - }; + "POST /markdown/raw": Operation<"/markdown/raw", "post">; /** - * @see https://developer.github.com/v3/repos/releases/#upload-a-release-asset + * @see https://docs.github.com/rest/reference/actions#create-a-self-hosted-runner-group-for-an-organization */ - "POST /repos/:owner/:repo/releases/:release_id/assets{?name,label}": { - parameters: ReposUploadReleaseAssetEndpoint; - request: ReposUploadReleaseAssetRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/actions/runner-groups": Operation<"/orgs/{org}/actions/runner-groups", "post">; /** - * @see https://developer.github.com/v3/repos/statuses/#create-a-status + * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-an-organization */ - "POST /repos/:owner/:repo/statuses/:sha": { - parameters: ReposCreateStatusEndpoint; - request: ReposCreateStatusRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/actions/runners/registration-token": Operation<"/orgs/{org}/actions/runners/registration-token", "post">; /** - * @see https://developer.github.com/v3/repos/#transfer-a-repository + * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-an-organization */ - "POST /repos/:owner/:repo/transfer": { - parameters: ReposTransferEndpoint; - request: ReposTransferRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/actions/runners/remove-token": Operation<"/orgs/{org}/actions/runners/remove-token", "post">; /** - * @see https://developer.github.com/v3/repos/#create-a-repository-using-a-template + * @see https://docs.github.com/rest/reference/orgs#create-an-organization-webhook */ - "POST /repos/:template_owner/:template_repo/generate": { - parameters: ReposCreateUsingTemplateEndpoint; - request: ReposCreateUsingTemplateRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/hooks": Operation<"/orgs/{org}/hooks", "post">; /** - * @see https://developer.github.com/v3/scim/#provision-and-invite-users + * @see https://docs.github.com/rest/reference/orgs#ping-an-organization-webhook */ - "POST /scim/v2/organizations/:org/Users": { - parameters: ScimProvisionAndInviteUsersEndpoint; - request: ScimProvisionAndInviteUsersRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/hooks/{hook_id}/pings": Operation<"/orgs/{org}/hooks/{hook_id}/pings", "post">; /** - * @see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy + * @see https://docs.github.com/rest/reference/orgs#create-an-organization-invitation */ - "POST /teams/:team_id/discussions": { - parameters: TeamsCreateDiscussionLegacyEndpoint; - request: TeamsCreateDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/invitations": Operation<"/orgs/{org}/invitations", "post">; /** - * @see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy + * @see https://docs.github.com/rest/reference/migrations#start-an-organization-migration */ - "POST /teams/:team_id/discussions/:discussion_number/comments": { - parameters: TeamsCreateDiscussionCommentLegacyEndpoint; - request: TeamsCreateDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/migrations": Operation<"/orgs/{org}/migrations", "post">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy + * @see https://docs.github.com/v3/projects/#create-an-organization-project */ - "POST /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionCommentLegacyEndpoint; - request: ReactionsCreateForTeamDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/projects": Operation<"/orgs/{org}/projects", "post", "inertia">; /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy + * @see https://docs.github.com/v3/repos/#create-an-organization-repository */ - "POST /teams/:team_id/discussions/:discussion_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionLegacyEndpoint; - request: ReactionsCreateForTeamDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/repos": Operation<"/orgs/{org}/repos", "post">; /** - * @see https://developer.github.com/v3/users/emails/#add-email-addresses + * @see https://docs.github.com/v3/teams/#create-a-team */ - "POST /user/emails": { - parameters: UsersAddEmailsEndpoint; - request: UsersAddEmailsRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/teams": Operation<"/orgs/{org}/teams", "post">; /** - * @see https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key + * @see https://docs.github.com/rest/reference/teams#create-a-discussion */ - "POST /user/gpg_keys": { - parameters: UsersCreateGpgKeyEndpoint; - request: UsersCreateGpgKeyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/teams/{team_slug}/discussions": Operation<"/orgs/{org}/teams/{team_slug}/discussions", "post">; /** - * @see https://developer.github.com/v3/users/keys/#create-a-public-key + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-comment */ - "POST /user/keys": { - parameters: UsersCreatePublicKeyEndpoint; - request: UsersCreatePublicKeyRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "post">; /** - * @see https://developer.github.com/v3/migrations/users/#start-a-user-migration + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment */ - "POST /user/migrations": { - parameters: MigrationsStartForAuthenticatedUserEndpoint; - request: MigrationsStartForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "post", "squirrel-girl">; /** - * @see https://developer.github.com/v3/projects/#create-a-user-project + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion */ - "POST /user/projects": { - parameters: ProjectsCreateForAuthenticatedUserEndpoint; - request: ProjectsCreateForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions": Operation<"/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "post", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/#create-a-repository-for-the-authenticated-user + * @see https://docs.github.com/rest/reference/projects#move-a-project-card */ - "POST /user/repos": { - parameters: ReposCreateForAuthenticatedUserEndpoint; - request: ReposCreateForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "POST /projects/columns/cards/{card_id}/moves": Operation<"/projects/columns/cards/{card_id}/moves", "post", "inertia">; /** - * @see https://developer.github.com/v3/apps/#suspend-an-installation + * @see https://docs.github.com/rest/reference/projects#create-a-project-card */ - "PUT /app/installations/:installation_id/suspended": { - parameters: AppsSuspendInstallationEndpoint; - request: AppsSuspendInstallationRequestOptions; - response: OctokitResponse; - }; + "POST /projects/columns/{column_id}/cards": Operation<"/projects/columns/{column_id}/cards", "post", "inertia">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app + * @see https://docs.github.com/rest/reference/projects#move-a-project-column */ - "PUT /authorizations/clients/:client_id": { - parameters: OauthAuthorizationsGetOrCreateAuthorizationForAppEndpoint; - request: OauthAuthorizationsGetOrCreateAuthorizationForAppRequestOptions; - response: OctokitResponse; - }; + "POST /projects/columns/{column_id}/moves": Operation<"/projects/columns/{column_id}/moves", "post", "inertia">; /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint + * @see https://docs.github.com/rest/reference/projects#create-a-project-column */ - "PUT /authorizations/clients/:client_id/:fingerprint": { - parameters: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintEndpoint; - request: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequestOptions; - response: OctokitResponse; - }; + "POST /projects/{project_id}/columns": Operation<"/projects/{project_id}/columns", "post", "inertia">; /** - * @see https://developer.github.com/v3/gists/#star-a-gist + * @see https://docs.github.com/rest/reference/actions#create-a-registration-token-for-a-repository */ - "PUT /gists/:gist_id/star": { - parameters: GistsStarEndpoint; - request: GistsStarRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/actions/runners/registration-token": Operation<"/repos/{owner}/{repo}/actions/runners/registration-token", "post">; /** - * @see https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read + * @see https://docs.github.com/rest/reference/actions#create-a-remove-token-for-a-repository */ - "PUT /notifications": { - parameters: ActivityMarkNotificationsAsReadEndpoint; - request: ActivityMarkNotificationsAsReadRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/actions/runners/remove-token": Operation<"/repos/{owner}/{repo}/actions/runners/remove-token", "post">; /** - * @see https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription + * @see https://docs.github.com/rest/reference/actions#cancel-a-workflow-run */ - "PUT /notifications/threads/:thread_id/subscription": { - parameters: ActivitySetThreadSubscriptionEndpoint; - request: ActivitySetThreadSubscriptionRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/cancel", "post">; /** - * @see https://developer.github.com/v3/orgs/blocking/#block-a-user + * @see https://docs.github.com/rest/reference/actions#re-run-a-workflow */ - "PUT /orgs/:org/blocks/:username": { - parameters: OrgsBlockUserEndpoint; - request: OrgsBlockUserRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun": Operation<"/repos/{owner}/{repo}/actions/runs/{run_id}/rerun", "post">; /** - * @see https://developer.github.com/v3/interactions/orgs/#add-or-update-interaction-restrictions-for-an-organization + * @see https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event */ - "PUT /orgs/:org/interaction-limits": { - parameters: InteractionsAddOrUpdateRestrictionsForOrgEndpoint; - request: InteractionsAddOrUpdateRestrictionsForOrgRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches", "post">; /** - * @see https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership + * @see https://docs.github.com/rest/reference/repos#set-admin-branch-protection */ - "PUT /orgs/:org/memberships/:username": { - parameters: OrgsAddOrUpdateMembershipEndpoint; - request: OrgsAddOrUpdateMembershipRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins", "post">; /** - * @see https://developer.github.com/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator + * @see https://docs.github.com/rest/reference/repos#create-commit-signature-protection */ - "PUT /orgs/:org/outside_collaborators/:username": { - parameters: OrgsConvertMemberToOutsideCollaboratorEndpoint; - request: OrgsConvertMemberToOutsideCollaboratorRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures", "post", "zzzax">; /** - * @see https://developer.github.com/v3/orgs/members/#publicize-a-users-membership + * @see https://docs.github.com/rest/reference/repos#add-status-check-contexts */ - "PUT /orgs/:org/public_members/:username": { - parameters: OrgsPublicizeMembershipEndpoint; - request: OrgsPublicizeMembershipRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "post">; /** - * @see https://developer.github.com/v3/teams/members/#add-or-update-team-membership + * @see https://docs.github.com/rest/reference/repos#add-app-access-restrictions */ - "PUT /orgs/:org/teams/:team_slug/memberships/:username": { - parameters: TeamsAddOrUpdateMembershipInOrgEndpoint; - request: TeamsAddOrUpdateMembershipInOrgRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "post">; /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-project + * @see https://docs.github.com/rest/reference/repos#add-team-access-restrictions */ - "PUT /orgs/:org/teams/:team_slug/projects/:project_id": { - parameters: TeamsAddOrUpdateProjectInOrgEndpoint; - request: TeamsAddOrUpdateProjectInOrgRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "post">; /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-repository + * @see https://docs.github.com/rest/reference/repos#add-user-access-restrictions */ - "PUT /orgs/:org/teams/:team_slug/repos/:owner/:repo": { - parameters: TeamsAddOrUpdateRepoInOrgEndpoint; - request: TeamsAddOrUpdateRepoInOrgRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "post">; /** - * @see https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator + * @see https://docs.github.com/rest/reference/checks#create-a-check-run */ - "PUT /projects/:project_id/collaborators/:username": { - parameters: ProjectsAddCollaboratorEndpoint; - request: ProjectsAddCollaboratorRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/check-runs": Operation<"/repos/{owner}/{repo}/check-runs", "post">; /** - * @see https://developer.github.com/v3/actions/secrets/#create-or-update-a-secret-for-a-repository + * @see https://docs.github.com/rest/reference/checks#create-a-check-suite */ - "PUT /repos/:owner/:repo/actions/secrets/:name": { - parameters: ActionsCreateOrUpdateSecretForRepoEndpoint; - request: ActionsCreateOrUpdateSecretForRepoRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/check-suites": Operation<"/repos/{owner}/{repo}/check-suites", "post">; /** - * @see https://developer.github.com/v3/repos/#enable-automated-security-fixes + * @see https://docs.github.com/rest/reference/checks#rerequest-a-check-suite */ - "PUT /repos/:owner/:repo/automated-security-fixes": { - parameters: ReposEnableAutomatedSecurityFixesEndpoint; - request: ReposEnableAutomatedSecurityFixesRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest": Operation<"/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest", "post">; /** - * @see https://developer.github.com/v3/repos/branches/#update-branch-protection + * @see https://docs.github.com/v3/code-scanning/#upload-a-sarif-analysis */ - "PUT /repos/:owner/:repo/branches/:branch/protection": { - parameters: ReposUpdateBranchProtectionEndpoint; - request: ReposUpdateBranchProtectionRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/code-scanning/sarifs": Operation<"/repos/{owner}/{repo}/code-scanning/sarifs", "post">; /** - * @see https://developer.github.com/v3/repos/branches/#replace-required-status-checks-contexts-of-protected-branch + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-commit-comment */ - "PUT /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposReplaceProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/comments/{comment_id}/reactions", "post", "squirrel-girl">; /** - * @see https://developer.github.com/v3/repos/branches/#replace-app-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/repos#create-a-commit-comment */ - "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposReplaceProtectedBranchAppRestrictionsEndpoint; - request: ReposReplaceProtectedBranchAppRestrictionsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/commits/{commit_sha}/comments": Operation<"/repos/{owner}/{repo}/commits/{commit_sha}/comments", "post">; /** - * @see https://developer.github.com/v3/repos/branches/#replace-team-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/repos#create-a-deployment */ - "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposReplaceProtectedBranchTeamRestrictionsEndpoint; - request: ReposReplaceProtectedBranchTeamRestrictionsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/deployments": Operation<"/repos/{owner}/{repo}/deployments", "post">; /** - * @see https://developer.github.com/v3/repos/branches/#replace-user-restrictions-of-protected-branch + * @see https://docs.github.com/rest/reference/repos#create-a-deployment-status */ - "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposReplaceProtectedBranchUserRestrictionsEndpoint; - request: ReposReplaceProtectedBranchUserRestrictionsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses": Operation<"/repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "post">; /** - * @see https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator + * @see https://docs.github.com/v3/repos/#create-a-repository-dispatch-event */ - "PUT /repos/:owner/:repo/collaborators/:username": { - parameters: ReposAddCollaboratorEndpoint; - request: ReposAddCollaboratorRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/dispatches": Operation<"/repos/{owner}/{repo}/dispatches", "post">; /** - * @see https://developer.github.com/v3/repos/contents/#create-or-update-a-file + * @see https://docs.github.com/rest/reference/repos#create-a-fork */ - "PUT /repos/:owner/:repo/contents/:path": { - parameters: ReposCreateOrUpdateFileEndpoint; - request: ReposCreateOrUpdateFileRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/forks": Operation<"/repos/{owner}/{repo}/forks", "post">; /** - * @see https://developer.github.com/v3/migrations/source_imports/#start-an-import + * @see https://docs.github.com/rest/reference/git#create-a-blob */ - "PUT /repos/:owner/:repo/import": { - parameters: MigrationsStartImportEndpoint; - request: MigrationsStartImportRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/git/blobs": Operation<"/repos/{owner}/{repo}/git/blobs", "post">; /** - * @see https://developer.github.com/v3/interactions/repos/#add-or-update-interaction-restrictions-for-a-repository + * @see https://docs.github.com/rest/reference/git#create-a-commit */ - "PUT /repos/:owner/:repo/interaction-limits": { - parameters: InteractionsAddOrUpdateRestrictionsForRepoEndpoint; - request: InteractionsAddOrUpdateRestrictionsForRepoRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/git/commits": Operation<"/repos/{owner}/{repo}/git/commits", "post">; /** - * @see https://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue + * @see https://docs.github.com/rest/reference/git#create-a-reference */ - "PUT /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesReplaceAllLabelsEndpoint; - request: IssuesReplaceAllLabelsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/git/refs": Operation<"/repos/{owner}/{repo}/git/refs", "post">; /** - * @see https://developer.github.com/v3/issues/#lock-an-issue + * @see https://docs.github.com/rest/reference/git#create-a-tag-object */ - "PUT /repos/:owner/:repo/issues/:issue_number/lock": { - parameters: IssuesLockEndpoint; - request: IssuesLockRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/git/tags": Operation<"/repos/{owner}/{repo}/git/tags", "post">; /** - * @see https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read + * @see https://docs.github.com/rest/reference/git#create-a-tree */ - "PUT /repos/:owner/:repo/notifications": { - parameters: ActivityMarkRepoNotificationsAsReadEndpoint; - request: ActivityMarkRepoNotificationsAsReadRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/git/trees": Operation<"/repos/{owner}/{repo}/git/trees", "post">; /** - * @see https://developer.github.com/v3/repos/pages/#update-information-about-a-pages-site + * @see https://docs.github.com/rest/reference/repos#create-a-repository-webhook */ - "PUT /repos/:owner/:repo/pages": { - parameters: ReposUpdateInformationAboutPagesSiteEndpoint; - request: ReposUpdateInformationAboutPagesSiteRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/hooks": Operation<"/repos/{owner}/{repo}/hooks", "post">; /** - * @see https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button + * @see https://docs.github.com/rest/reference/repos#ping-a-repository-webhook */ - "PUT /repos/:owner/:repo/pulls/:pull_number/merge": { - parameters: PullsMergeEndpoint; - request: PullsMergeRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/hooks/{hook_id}/pings": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/pings", "post">; /** - * @see https://developer.github.com/v3/pulls/reviews/#update-a-pull-request-review + * @see https://docs.github.com/rest/reference/repos#test-the-push-repository-webhook */ - "PUT /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { - parameters: PullsUpdateReviewEndpoint; - request: PullsUpdateReviewRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/hooks/{hook_id}/tests": Operation<"/repos/{owner}/{repo}/hooks/{hook_id}/tests", "post">; /** - * @see https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review + * @see https://docs.github.com/v3/issues/#create-an-issue */ - "PUT /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals": { - parameters: PullsDismissReviewEndpoint; - request: PullsDismissReviewRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues": Operation<"/repos/{owner}/{repo}/issues", "post">; /** - * @see https://developer.github.com/v3/pulls/#update-a-pull-request-branch + * @see https://docs.github.com/v3/reactions/#create-reaction-for-an-issue-comment */ - "PUT /repos/:owner/:repo/pulls/:pull_number/update-branch": { - parameters: PullsUpdateBranchEndpoint; - request: PullsUpdateBranchRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "post", "squirrel-girl">; /** - * @see https://developer.github.com/v3/activity/watching/#set-a-repository-subscription + * @see https://docs.github.com/rest/reference/issues#add-assignees-to-an-issue */ - "PUT /repos/:owner/:repo/subscription": { - parameters: ActivitySetRepoSubscriptionEndpoint; - request: ActivitySetRepoSubscriptionRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues/{issue_number}/assignees": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/assignees", "post">; /** - * @see https://developer.github.com/v3/repos/#replace-all-repository-topics + * @see https://docs.github.com/rest/reference/issues#create-an-issue-comment */ - "PUT /repos/:owner/:repo/topics": { - parameters: ReposReplaceAllTopicsEndpoint; - request: ReposReplaceAllTopicsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues/{issue_number}/comments": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/comments", "post">; /** - * @see https://developer.github.com/v3/repos/#enable-vulnerability-alerts + * @see https://docs.github.com/rest/reference/issues#add-labels-to-an-issue */ - "PUT /repos/:owner/:repo/vulnerability-alerts": { - parameters: ReposEnableVulnerabilityAlertsEndpoint; - request: ReposEnableVulnerabilityAlertsRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "post">; /** - * @see https://developer.github.com/v3/scim/#replace-a-provisioned-users-information + * @see https://docs.github.com/v3/reactions/#create-reaction-for-an-issue */ - "PUT /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimReplaceProvisionedUserInformationEndpoint; - request: ScimReplaceProvisionedUserInformationRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/issues/{issue_number}/reactions": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/reactions", "post", "squirrel-girl">; /** - * @see https://developer.github.com/v3/teams/members/#add-team-member-legacy + * @see https://docs.github.com/rest/reference/repos#create-a-deploy-key */ - "PUT /teams/:team_id/members/:username": { - parameters: TeamsAddMemberLegacyEndpoint; - request: TeamsAddMemberLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/keys": Operation<"/repos/{owner}/{repo}/keys", "post">; /** - * @see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy + * @see https://docs.github.com/rest/reference/issues#create-a-label */ - "PUT /teams/:team_id/memberships/:username": { - parameters: TeamsAddOrUpdateMembershipLegacyEndpoint; - request: TeamsAddOrUpdateMembershipLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/labels": Operation<"/repos/{owner}/{repo}/labels", "post">; /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy + * @see https://docs.github.com/rest/reference/repos#merge-a-branch */ - "PUT /teams/:team_id/projects/:project_id": { - parameters: TeamsAddOrUpdateProjectLegacyEndpoint; - request: TeamsAddOrUpdateProjectLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/merges": Operation<"/repos/{owner}/{repo}/merges", "post">; /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy + * @see https://docs.github.com/rest/reference/issues#create-a-milestone */ - "PUT /teams/:team_id/repos/:owner/:repo": { - parameters: TeamsAddOrUpdateRepoLegacyEndpoint; - request: TeamsAddOrUpdateRepoLegacyRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/milestones": Operation<"/repos/{owner}/{repo}/milestones", "post">; /** - * @see https://developer.github.com/v3/users/blocking/#block-a-user + * @see https://docs.github.com/rest/reference/repos#create-a-github-pages-site */ - "PUT /user/blocks/:username": { - parameters: UsersBlockEndpoint; - request: UsersBlockRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "post", "switcheroo">; /** - * @see https://developer.github.com/v3/users/followers/#follow-a-user + * @see https://docs.github.com/rest/reference/repos#request-a-github-pages-build */ - "PUT /user/following/:username": { - parameters: UsersFollowEndpoint; - request: UsersFollowRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/pages/builds": Operation<"/repos/{owner}/{repo}/pages/builds", "post">; /** - * @see https://developer.github.com/v3/apps/installations/#add-repository-to-installation + * @see https://docs.github.com/v3/projects/#create-a-repository-project */ - "PUT /user/installations/:installation_id/repositories/:repository_id": { - parameters: AppsAddRepoToInstallationEndpoint; - request: AppsAddRepoToInstallationRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/projects": Operation<"/repos/{owner}/{repo}/projects", "post", "inertia">; /** - * @see https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user + * @see https://docs.github.com/v3/pulls/#create-a-pull-request */ - "PUT /user/starred/:owner/:repo": { - parameters: ActivityStarRepoForAuthenticatedUserEndpoint; - request: ActivityStarRepoForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; + "POST /repos/{owner}/{repo}/pulls": Operation<"/repos/{owner}/{repo}/pulls", "post">; /** - * @see https://developer.github.com/v3/activity/watching/#watch-a-repository-legacy + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment */ - "PUT /user/subscriptions/:owner/:repo": { - parameters: ActivityWatchRepoLegacyEndpoint; - request: ActivityWatchRepoLegacyRequestOptions; - response: OctokitResponse; - }; -} -declare type AppsGetAuthenticatedEndpoint = {} & RequiredPreview<"machine-man">; -declare type AppsGetAuthenticatedRequestOptions = { - method: "GET"; - url: "/app"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetAuthenticatedResponseDataPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsGetAuthenticatedResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsGetAuthenticatedResponseData = { - id: number; - slug: string; - node_id: string; - owner: AppsGetAuthenticatedResponseDataOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: AppsGetAuthenticatedResponseDataPermissions; - events: Array; - installations_count: number; -}; -declare type AppsCreateFromManifestEndpoint = { + "POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions": Operation<"/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "post", "squirrel-girl">; /** - * code parameter + * @see https://docs.github.com/rest/reference/pulls#create-a-review-comment-for-a-pull-request */ - code: string; -}; -declare type AppsCreateFromManifestRequestOptions = { - method: "POST"; - url: "/app-manifests/:code/conversions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateFromManifestResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCreateFromManifestResponseData = { - id: number; - node_id: string; - owner: AppsCreateFromManifestResponseDataOwner; - name: string; - description: null; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - client_id: string; - client_secret: string; - webhook_secret: string; - pem: string; -}; -declare type AppsListInstallationsEndpoint = { + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments", "post">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/pulls#create-a-reply-for-a-review-comment */ - per_page?: number; + "POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies", "post">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListInstallationsRequestOptions = { - method: "GET"; - url: "/app/installations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsListInstallationsResponseDataItemAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsListInstallationsResponseDataItem = { - id: number; - account: AppsListInstallationsResponseDataItemAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsListInstallationsResponseDataItemPermissions; - events: Array; - single_file_name: string; - repository_selection: string; -}; -declare type AppsListInstallationsResponseData = Array; -declare type AppsGetInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsGetInstallationRequestOptions = { - method: "GET"; - url: "/app/installations/:installation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetInstallationResponseDataPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsGetInstallationResponseDataAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsGetInstallationResponseData = { - id: number; - account: AppsGetInstallationResponseDataAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetInstallationResponseDataPermissions; - events: Array; - single_file_name: string; - repository_selection: string; -}; -declare type AppsDeleteInstallationEndpoint = { + "POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "post">; /** - * installation_id parameter + * @see https://docs.github.com/rest/reference/pulls#create-a-review-for-a-pull-request */ - installation_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsDeleteInstallationRequestOptions = { - method: "DELETE"; - url: "/app/installations/:installation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateInstallationTokenEndpoint = { + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews", "post">; /** - * installation_id parameter + * @see https://docs.github.com/rest/reference/pulls#submit-a-review-for-a-pull-request */ - installation_id: number; + "POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events", "post">; /** - * The `id`s of the repositories that the installation token can access. Providing repository `id`s restricts the access of an installation token to specific repositories. You can use the "[List repositories](https://developer.github.com/v3/apps/installations/#list-repositories)" endpoint to get the `id` of all repositories that an installation can access. For example, you can select specific repositories when creating an installation token to restrict the number of repositories that can be cloned using the token. + * @see https://docs.github.com/rest/reference/repos#create-a-release */ - repository_ids?: number[]; + "POST /repos/{owner}/{repo}/releases": Operation<"/repos/{owner}/{repo}/releases", "post">; /** - * The permissions granted to the access token. The permissions object includes the permission names and their access type. For a complete list of permissions and allowable values, see "[GitHub App permissions](https://developer.github.com/apps/building-github-apps/creating-github-apps-using-url-parameters/#github-app-permissions)." + * @see https://docs.github.com/rest/reference/repos#create-a-commit-status */ - permissions?: AppsCreateInstallationTokenParamsPermissions; -} & RequiredPreview<"machine-man">; -declare type AppsCreateInstallationTokenRequestOptions = { - method: "POST"; - url: "/app/installations/:installation_id/access_tokens"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateInstallationTokenResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type AppsCreateInstallationTokenResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCreateInstallationTokenResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsCreateInstallationTokenResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: AppsCreateInstallationTokenResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type AppsCreateInstallationTokenResponseDataPermissions = { - issues: string; - contents: string; -}; -declare type AppsCreateInstallationTokenResponseData = { - token: string; - expires_at: string; - permissions: AppsCreateInstallationTokenResponseDataPermissions; - repositories: Array; -}; -declare type AppsSuspendInstallationEndpoint = { + "POST /repos/{owner}/{repo}/statuses/{sha}": Operation<"/repos/{owner}/{repo}/statuses/{sha}", "post">; /** - * installation_id parameter + * @see https://docs.github.com/v3/repos/#transfer-a-repository */ - installation_id: number; -}; -declare type AppsSuspendInstallationRequestOptions = { - method: "PUT"; - url: "/app/installations/:installation_id/suspended"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsUnsuspendInstallationEndpoint = { + "POST /repos/{owner}/{repo}/transfer": Operation<"/repos/{owner}/{repo}/transfer", "post">; /** - * installation_id parameter + * @see https://docs.github.com/v3/repos/#create-a-repository-using-a-template */ - installation_id: number; -}; -declare type AppsUnsuspendInstallationRequestOptions = { - method: "DELETE"; - url: "/app/installations/:installation_id/suspended"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsListGrantsEndpoint = { + "POST /repos/{template_owner}/{template_repo}/generate": Operation<"/repos/{template_owner}/{template_repo}/generate", "post", "baptiste">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/enterprise-admin#provision-a-scim-enterprise-group-and-invite-users */ - per_page?: number; + "POST /scim/v2/enterprises/{enterprise}/Groups": Operation<"/scim/v2/enterprises/{enterprise}/Groups", "post">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/enterprise-admin#provision-and-invite-a-scim-enterprise-user */ - page?: number; -}; -declare type OauthAuthorizationsListGrantsRequestOptions = { - method: "GET"; - url: "/applications/grants"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsListGrantsResponseDataItemApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsListGrantsResponseDataItem = { - id: number; - url: string; - app: OauthAuthorizationsListGrantsResponseDataItemApp; - created_at: string; - updated_at: string; - scopes: Array; -}; -declare type OauthAuthorizationsListGrantsResponseData = Array; -declare type OauthAuthorizationsGetGrantEndpoint = { + "POST /scim/v2/enterprises/{enterprise}/Users": Operation<"/scim/v2/enterprises/{enterprise}/Users", "post">; /** - * grant_id parameter + * @see https://docs.github.com/v3/scim/#provision-and-invite-a-scim-user */ - grant_id: number; -}; -declare type OauthAuthorizationsGetGrantRequestOptions = { - method: "GET"; - url: "/applications/grants/:grant_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetGrantResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetGrantResponseData = { - id: number; - url: string; - app: OauthAuthorizationsGetGrantResponseDataApp; - created_at: string; - updated_at: string; - scopes: Array; -}; -declare type OauthAuthorizationsDeleteGrantEndpoint = { + "POST /scim/v2/organizations/{org}/Users": Operation<"/scim/v2/organizations/{org}/Users", "post">; /** - * grant_id parameter + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-legacy */ - grant_id: number; -}; -declare type OauthAuthorizationsDeleteGrantRequestOptions = { - method: "DELETE"; - url: "/applications/grants/:grant_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsDeleteAuthorizationEndpoint = { + "POST /teams/{team_id}/discussions": Operation<"/teams/{team_id}/discussions", "post">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/teams#create-a-discussion-comment-legacy */ - client_id: string; + "POST /teams/{team_id}/discussions/{discussion_number}/comments": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments", "post">; /** - * The OAuth access token used to authenticate to the GitHub API. + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy */ - access_token?: string; -}; -declare type AppsDeleteAuthorizationRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/grant"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsRevokeGrantForApplicationEndpoint = { + "POST /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "post", "squirrel-girl">; /** - * client_id parameter + * @see https://docs.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy */ - client_id: string; + "POST /teams/{team_id}/discussions/{discussion_number}/reactions": Operation<"/teams/{team_id}/discussions/{discussion_number}/reactions", "post", "squirrel-girl">; /** - * access_token parameter + * @see https://docs.github.com/rest/reference/users#add-an-email-address-for-the-authenticated-user */ - access_token: string; -}; -declare type AppsRevokeGrantForApplicationRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/grants/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckTokenEndpoint = { + "POST /user/emails": Operation<"/user/emails", "post">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/users#create-a-gpg-key-for-the-authenticated-user */ - client_id: string; + "POST /user/gpg_keys": Operation<"/user/gpg_keys", "post">; /** - * The OAuth access token used to authenticate to the GitHub API. + * @see https://docs.github.com/rest/reference/users#create-a-public-ssh-key-for-the-authenticated-user */ - access_token?: string; -}; -declare type AppsCheckTokenRequestOptions = { - method: "POST"; - url: "/applications/:client_id/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckTokenResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCheckTokenResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsCheckTokenResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsCheckTokenResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsCheckTokenResponseDataUser; -}; -declare type AppsResetTokenEndpoint = { + "POST /user/keys": Operation<"/user/keys", "post">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/migrations#start-a-user-migration */ - client_id: string; + "POST /user/migrations": Operation<"/user/migrations", "post">; /** - * The OAuth access token used to authenticate to the GitHub API. + * @see https://docs.github.com/v3/projects/#create-a-user-project */ - access_token?: string; -}; -declare type AppsResetTokenRequestOptions = { - method: "PATCH"; - url: "/applications/:client_id/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsResetTokenResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsResetTokenResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsResetTokenResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsResetTokenResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsResetTokenResponseDataUser; -}; -declare type AppsDeleteTokenEndpoint = { + "POST /user/projects": Operation<"/user/projects", "post", "inertia">; /** - * client_id parameter + * @see https://docs.github.com/v3/repos/#create-a-repository-for-the-authenticated-user */ - client_id: string; + "POST /user/repos": Operation<"/user/repos", "post">; /** - * The OAuth access token used to authenticate to the GitHub API. + * @see https://docs.github.com/rest/reference/repos#upload-a-release-asset */ - access_token?: string; -}; -declare type AppsDeleteTokenRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckAuthorizationEndpoint = { + "POST {origin}/repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}": Operation<"/repos/{owner}/{repo}/releases/{release_id}/assets", "post">; /** - * client_id parameter + * @see https://docs.github.com/v3/apps/#suspend-an-app-installation */ - client_id: string; + "PUT /app/installations/{installation_id}/suspended": Operation<"/app/installations/{installation_id}/suspended", "put">; /** - * access_token parameter + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app */ - access_token: string; -}; -declare type AppsCheckAuthorizationRequestOptions = { - method: "GET"; - url: "/applications/:client_id/tokens/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckAuthorizationResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCheckAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsCheckAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsCheckAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsCheckAuthorizationResponseDataUser; -}; -declare type AppsResetAuthorizationEndpoint = { + "PUT /authorizations/clients/{client_id}": Operation<"/authorizations/clients/{client_id}", "put">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/oauth-authorizations#get-or-create-an-authorization-for-a-specific-app-and-fingerprint */ - client_id: string; + "PUT /authorizations/clients/{client_id}/{fingerprint}": Operation<"/authorizations/clients/{client_id}/{fingerprint}", "put">; /** - * access_token parameter + * @see https://docs.github.com/rest/reference/enterprise-admin#set-github-actions-permissions-for-an-enterprise */ - access_token: string; -}; -declare type AppsResetAuthorizationRequestOptions = { - method: "POST"; - url: "/applications/:client_id/tokens/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsResetAuthorizationResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsResetAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsResetAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsResetAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsResetAuthorizationResponseDataUser; -}; -declare type AppsRevokeAuthorizationForApplicationEndpoint = { + "PUT /enterprises/{enterprise}/actions/permissions": Operation<"/enterprises/{enterprise}/actions/permissions", "put">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/enterprise-admin#set-selected-organizations-enabled-for-github-actions-in-an-enterprise */ - client_id: string; + "PUT /enterprises/{enterprise}/actions/permissions/organizations": Operation<"/enterprises/{enterprise}/actions/permissions/organizations", "put">; /** - * access_token parameter + * @see https://docs.github.com/rest/reference/enterprise-admin#enable-a-selected-organization-for-github-actions-in-an-enterprise */ - access_token: string; -}; -declare type AppsRevokeAuthorizationForApplicationRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/tokens/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetBySlugEndpoint = { + "PUT /enterprises/{enterprise}/actions/permissions/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/permissions/organizations/{org_id}", "put">; /** - * app_slug parameter + * @see https://docs.github.com/rest/reference/enterprise-admin#set-allowed-actions-for-an-enterprise */ - app_slug: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetBySlugRequestOptions = { - method: "GET"; - url: "/apps/:app_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetBySlugResponseDataPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsGetBySlugResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsGetBySlugResponseData = { - id: number; - slug: string; - node_id: string; - owner: AppsGetBySlugResponseDataOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: AppsGetBySlugResponseDataPermissions; - events: Array; -}; -declare type OauthAuthorizationsListAuthorizationsEndpoint = { + "PUT /enterprises/{enterprise}/actions/permissions/selected-actions": Operation<"/enterprises/{enterprise}/actions/permissions/selected-actions", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/enterprise-admin#set-organization-access-to-a-self-hosted-runner-group-in-an-enterprise */ - per_page?: number; + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/enterprise-admin#add-organization-access-to-a-self-hosted-runner-group-in-an-enterprise */ - page?: number; -}; -declare type OauthAuthorizationsListAuthorizationsRequestOptions = { - method: "GET"; - url: "/authorizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsListAuthorizationsResponseDataItemApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsListAuthorizationsResponseDataItem = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsListAuthorizationsResponseDataItemApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsListAuthorizationsResponseData = Array; -declare type OauthAuthorizationsCreateAuthorizationEndpoint = { + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}", "put">; /** - * A list of scopes that this authorization is in. + * @see https://docs.github.com/rest/reference/enterprise-admin#set-self-hosted-runners-in-a-group-for-an-enterprise */ - scopes?: string[]; + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "put">; /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. + * @see https://docs.github.com/rest/reference/enterprise-admin#add-a-self-hosted-runner-to-a-group-for-an-enterprise */ - note: string; + "PUT /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">; /** - * A URL to remind you what app the OAuth token is for. + * @see https://docs.github.com/v3/gists/#star-a-gist */ - note_url?: string; + "PUT /gists/{gist_id}/star": Operation<"/gists/{gist_id}/star", "put">; /** - * The 20 character OAuth app client key for which to create the token. + * @see https://docs.github.com/rest/reference/activity#mark-notifications-as-read */ - client_id?: string; + "PUT /notifications": Operation<"/notifications", "put">; /** - * The 40 character OAuth app client secret for which to create the token. + * @see https://docs.github.com/rest/reference/activity#set-a-thread-subscription */ - client_secret?: string; + "PUT /notifications/threads/{thread_id}/subscription": Operation<"/notifications/threads/{thread_id}/subscription", "put">; /** - * A unique string to distinguish an authorization from others created for the same client ID and user. + * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-an-organization */ - fingerprint?: string; -}; -declare type OauthAuthorizationsCreateAuthorizationRequestOptions = { - method: "POST"; - url: "/authorizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsCreateAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsCreateAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsCreateAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppEndpoint = { + "PUT /orgs/{org}/actions/permissions": Operation<"/orgs/{org}/actions/permissions", "put">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-enabled-for-github-actions-in-an-organization */ - client_id: string; + "PUT /orgs/{org}/actions/permissions/repositories": Operation<"/orgs/{org}/actions/permissions/repositories", "put">; /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. + * @see https://docs.github.com/rest/reference/actions#enable-a-selected-repository-for-github-actions-in-an-organization */ - client_secret: string; + "PUT /orgs/{org}/actions/permissions/repositories/{repository_id}": Operation<"/orgs/{org}/actions/permissions/repositories/{repository_id}", "put">; /** - * A list of scopes that this authorization is in. + * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-an-organization */ - scopes?: string[]; + "PUT /orgs/{org}/actions/permissions/selected-actions": Operation<"/orgs/{org}/actions/permissions/selected-actions", "put">; /** - * A note to remind you what the OAuth token is for. + * @see https://docs.github.com/rest/reference/actions#set-repository-access-to-a-self-hosted-runner-group-in-an-organization */ - note?: string; + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "put">; /** - * A URL to remind you what app the OAuth token is for. + * @see https://docs.github.com/rest/reference/actions#add-repository-acess-to-a-self-hosted-runner-group-in-an-organization */ - note_url?: string; + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}", "put">; /** - * A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint). + * @see https://docs.github.com/rest/reference/actions#set-self-hosted-runners-in-a-group-for-an-organization */ - fingerprint?: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppRequestOptions = { - method: "PUT"; - url: "/authorizations/clients/:client_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsGetOrCreateAuthorizationForAppResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintEndpoint = { + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "put">; /** - * client_id parameter + * @see https://docs.github.com/rest/reference/actions#add-a-self-hosted-runner-to-a-group-for-an-organization */ - client_id: string; + "PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": Operation<"/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}", "put">; /** - * fingerprint parameter + * @see https://docs.github.com/rest/reference/actions#create-or-update-an-organization-secret */ - fingerprint: string; + "PUT /orgs/{org}/actions/secrets/{secret_name}": Operation<"/orgs/{org}/actions/secrets/{secret_name}", "put">; /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. + * @see https://docs.github.com/rest/reference/actions#set-selected-repositories-for-an-organization-secret */ - client_secret: string; + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories", "put">; /** - * A list of scopes that this authorization is in. + * @see https://docs.github.com/rest/reference/actions#add-selected-repository-to-an-organization-secret */ - scopes?: string[]; + "PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}": Operation<"/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}", "put">; /** - * A note to remind you what the OAuth token is for. + * @see https://docs.github.com/rest/reference/orgs#block-a-user-from-an-organization */ - note?: string; + "PUT /orgs/{org}/blocks/{username}": Operation<"/orgs/{org}/blocks/{username}", "put">; /** - * A URL to remind you what app the OAuth token is for. + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-an-organization */ - note_url?: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequestOptions = { - method: "PUT"; - url: "/authorizations/clients/:client_id/:fingerprint"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsGetAuthorizationEndpoint = { + "PUT /orgs/{org}/interaction-limits": Operation<"/orgs/{org}/interaction-limits", "put">; /** - * authorization_id parameter + * @see https://docs.github.com/rest/reference/orgs#set-organization-membership-for-a-user */ - authorization_id: number; -}; -declare type OauthAuthorizationsGetAuthorizationRequestOptions = { - method: "GET"; - url: "/authorizations/:authorization_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsGetAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsUpdateAuthorizationEndpoint = { + "PUT /orgs/{org}/memberships/{username}": Operation<"/orgs/{org}/memberships/{username}", "put">; /** - * authorization_id parameter + * @see https://docs.github.com/rest/reference/orgs#convert-an-organization-member-to-outside-collaborator */ - authorization_id: number; + "PUT /orgs/{org}/outside_collaborators/{username}": Operation<"/orgs/{org}/outside_collaborators/{username}", "put">; /** - * Replaces the authorization scopes with these. + * @see https://docs.github.com/rest/reference/orgs#set-public-organization-membership-for-the-authenticated-user */ - scopes?: string[]; + "PUT /orgs/{org}/public_members/{username}": Operation<"/orgs/{org}/public_members/{username}", "put">; /** - * A list of scopes to add to this authorization. + * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user */ - add_scopes?: string[]; + "PUT /orgs/{org}/teams/{team_slug}/memberships/{username}": Operation<"/orgs/{org}/teams/{team_slug}/memberships/{username}", "put">; /** - * A list of scopes to remove from this authorization. + * @see https://docs.github.com/v3/teams/#add-or-update-team-project-permissions */ - remove_scopes?: string[]; + "PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}": Operation<"/orgs/{org}/teams/{team_slug}/projects/{project_id}", "put", "inertia">; /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. + * @see https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions */ - note?: string; + "PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}": Operation<"/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}", "put">; /** - * A URL to remind you what app the OAuth token is for. + * @see https://docs.github.com/rest/reference/projects#add-project-collaborator */ - note_url?: string; + "PUT /projects/{project_id}/collaborators/{username}": Operation<"/projects/{project_id}/collaborators/{username}", "put", "inertia">; /** - * A unique string to distinguish an authorization from others created for the same client ID and user. + * @see https://docs.github.com/rest/reference/actions#set-github-actions-permissions-for-a-repository */ - fingerprint?: string; -}; -declare type OauthAuthorizationsUpdateAuthorizationRequestOptions = { - method: "PATCH"; - url: "/authorizations/:authorization_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsUpdateAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsUpdateAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsUpdateAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsDeleteAuthorizationEndpoint = { + "PUT /repos/{owner}/{repo}/actions/permissions": Operation<"/repos/{owner}/{repo}/actions/permissions", "put">; /** - * authorization_id parameter + * @see https://docs.github.com/rest/reference/actions#set-allowed-actions-for-a-repository */ - authorization_id: number; -}; -declare type OauthAuthorizationsDeleteAuthorizationRequestOptions = { - method: "DELETE"; - url: "/authorizations/:authorization_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetAllCodesOfConductEndpoint = {} & RequiredPreview<"scarlet-witch">; -declare type CodesOfConductGetAllCodesOfConductRequestOptions = { - method: "GET"; - url: "/codes_of_conduct"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetAllCodesOfConductResponseDataItem = { - key: string; - name: string; - url: string; -}; -declare type CodesOfConductGetAllCodesOfConductResponseData = Array; -declare type CodesOfConductGetConductCodeEndpoint = { - /** - * key parameter - */ - key: string; -} & RequiredPreview<"scarlet-witch">; -declare type CodesOfConductGetConductCodeRequestOptions = { - method: "GET"; - url: "/codes_of_conduct/:key"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetConductCodeResponseData = { - key: string; - name: string; - url: string; - body: string; -}; -declare type AppsCreateContentAttachmentEndpoint = { + "PUT /repos/{owner}/{repo}/actions/permissions/selected-actions": Operation<"/repos/{owner}/{repo}/actions/permissions/selected-actions", "put">; /** - * content_reference_id parameter + * @see https://docs.github.com/rest/reference/actions#create-or-update-a-repository-secret */ - content_reference_id: number; + "PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}": Operation<"/repos/{owner}/{repo}/actions/secrets/{secret_name}", "put">; /** - * The title of the content attachment displayed in the body or comment of an issue or pull request. + * @see https://docs.github.com/rest/reference/actions#disable-a-workflow */ - title: string; + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable", "put">; /** - * The body text of the content attachment displayed in the body or comment of an issue or pull request. This parameter supports markdown. + * @see https://docs.github.com/rest/reference/actions#enable-a-workflow */ - body: string; -} & RequiredPreview<"corsair">; -declare type AppsCreateContentAttachmentRequestOptions = { - method: "POST"; - url: "/content_references/:content_reference_id/attachments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateContentAttachmentResponseData = { - id: number; - title: string; - body: string; -}; -declare type EmojisGetEndpoint = {}; -declare type EmojisGetRequestOptions = { - method: "GET"; - url: "/emojis"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListPublicEventsEndpoint = { + "PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable": Operation<"/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/v3/repos/#enable-automated-security-fixes */ - per_page?: number; + "PUT /repos/{owner}/{repo}/automated-security-fixes": Operation<"/repos/{owner}/{repo}/automated-security-fixes", "put", "london">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/repos#update-branch-protection */ - page?: number; -}; -declare type ActivityListPublicEventsRequestOptions = { - method: "GET"; - url: "/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetFeedsEndpoint = {}; -declare type ActivityGetFeedsRequestOptions = { - method: "GET"; - url: "/feeds"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetFeedsResponseDataLinksSecurityAdvisories = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserOrganizationsItem = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserOrganization = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserActor = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUser = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserPublic = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksUser = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksTimeline = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinks = { - timeline: ActivityGetFeedsResponseDataLinksTimeline; - user: ActivityGetFeedsResponseDataLinksUser; - current_user_public: ActivityGetFeedsResponseDataLinksCurrentUserPublic; - current_user: ActivityGetFeedsResponseDataLinksCurrentUser; - current_user_actor: ActivityGetFeedsResponseDataLinksCurrentUserActor; - current_user_organization: ActivityGetFeedsResponseDataLinksCurrentUserOrganization; - current_user_organizations: Array; - security_advisories: ActivityGetFeedsResponseDataLinksSecurityAdvisories; -}; -declare type ActivityGetFeedsResponseData = { - timeline_url: string; - user_url: string; - current_user_public_url: string; - current_user_url: string; - current_user_actor_url: string; - current_user_organization_url: string; - current_user_organization_urls: Array; - security_advisories_url: string; - _links: ActivityGetFeedsResponseDataLinks; -}; -declare type GistsListEndpoint = { + "PUT /repos/{owner}/{repo}/branches/{branch}/protection": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection", "put">; /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. + * @see https://docs.github.com/rest/reference/repos#set-status-check-contexts */ - since?: string; + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/repos#set-app-access-restrictions */ - per_page?: number; + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/repos#set-team-access-restrictions */ - page?: number; -}; -declare type GistsListRequestOptions = { - method: "GET"; - url: "/gists"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListResponseDataItemFiles = { - "hello_world.rb": GistsListResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListResponseData = Array; -declare type GistsCreateEndpoint = { + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams", "put">; /** - * The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`. + * @see https://docs.github.com/rest/reference/repos#set-user-access-restrictions */ - files: GistsCreateParamsFiles; + "PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users": Operation<"/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users", "put">; /** - * A descriptive name for this gist. + * @see https://docs.github.com/rest/reference/repos#add-a-repository-collaborator */ - description?: string; + "PUT /repos/{owner}/{repo}/collaborators/{username}": Operation<"/repos/{owner}/{repo}/collaborators/{username}", "put">; /** - * When `true`, the gist will be public and available for anyone to see. + * @see https://docs.github.com/rest/reference/repos#create-or-update-file-contents */ - public?: boolean; -}; -declare type GistsCreateRequestOptions = { - method: "POST"; - url: "/gists"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsCreateResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsCreateResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateResponseDataHistoryItem = { - url: string; - version: string; - user: GistsCreateResponseDataHistoryItemUser; - change_status: GistsCreateResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsCreateResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateResponseDataForksItem = { - user: GistsCreateResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsCreateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateResponseDataFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFiles = { - "hello_world.rb": GistsCreateResponseDataFilesHelloWorldRb; - "hello_world.py": GistsCreateResponseDataFilesHelloWorldPy; - "hello_world_ruby.txt": GistsCreateResponseDataFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsCreateResponseDataFilesHelloWorldPythonTxt; -}; -declare type GistsCreateResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsCreateResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsCreateResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GistsListPublicEndpoint = { + "PUT /repos/{owner}/{repo}/contents/{path}": Operation<"/repos/{owner}/{repo}/contents/{path}", "put">; /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. + * @see https://docs.github.com/rest/reference/migrations#start-an-import */ - since?: string; + "PUT /repos/{owner}/{repo}/import": Operation<"/repos/{owner}/{repo}/import", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-a-repository */ - per_page?: number; + "PUT /repos/{owner}/{repo}/interaction-limits": Operation<"/repos/{owner}/{repo}/interaction-limits", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/issues#set-labels-for-an-issue */ - page?: number; -}; -declare type GistsListPublicRequestOptions = { - method: "GET"; - url: "/gists/public"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListPublicResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListPublicResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListPublicResponseDataItemFiles = { - "hello_world.rb": GistsListPublicResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListPublicResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListPublicResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListPublicResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListPublicResponseData = Array; -declare type GistsListStarredEndpoint = { + "PUT /repos/{owner}/{repo}/issues/{issue_number}/labels": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/labels", "put">; /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. + * @see https://docs.github.com/v3/issues/#lock-an-issue */ - since?: string; + "PUT /repos/{owner}/{repo}/issues/{issue_number}/lock": Operation<"/repos/{owner}/{repo}/issues/{issue_number}/lock", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/activity#mark-repository-notifications-as-read */ - per_page?: number; + "PUT /repos/{owner}/{repo}/notifications": Operation<"/repos/{owner}/{repo}/notifications", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/repos#update-information-about-a-github-pages-site */ - page?: number; -}; -declare type GistsListStarredRequestOptions = { - method: "GET"; - url: "/gists/starred"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListStarredResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListStarredResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListStarredResponseDataItemFiles = { - "hello_world.rb": GistsListStarredResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListStarredResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListStarredResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListStarredResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListStarredResponseData = Array; -declare type GistsGetEndpoint = { + "PUT /repos/{owner}/{repo}/pages": Operation<"/repos/{owner}/{repo}/pages", "put">; /** - * gist_id parameter + * @see https://docs.github.com/v3/pulls/#merge-a-pull-request */ - gist_id: string; -}; -declare type GistsGetRequestOptions = { - method: "GET"; - url: "/gists/:gist_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsGetResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetResponseDataHistoryItem = { - url: string; - version: string; - user: GistsGetResponseDataHistoryItemUser; - change_status: GistsGetResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsGetResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetResponseDataForksItem = { - user: GistsGetResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsGetResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetResponseDataFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFiles = { - "hello_world.rb": GistsGetResponseDataFilesHelloWorldRb; - "hello_world.py": GistsGetResponseDataFilesHelloWorldPy; - "hello_world_ruby.txt": GistsGetResponseDataFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsGetResponseDataFilesHelloWorldPythonTxt; -}; -declare type GistsGetResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsGetResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsGetResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GistsUpdateEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * A descriptive name for this gist. - */ - description?: string; - /** - * The filenames and content that make up this gist. - */ - files?: GistsUpdateParamsFiles; -}; -declare type GistsUpdateRequestOptions = { - method: "PATCH"; - url: "/gists/:gist_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsUpdateResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsUpdateResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateResponseDataHistoryItem = { - url: string; - version: string; - user: GistsUpdateResponseDataHistoryItemUser; - change_status: GistsUpdateResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsUpdateResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateResponseDataForksItem = { - user: GistsUpdateResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsUpdateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateResponseDataFilesNewFileTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFilesHelloWorldMd = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFiles = { - "hello_world.rb": GistsUpdateResponseDataFilesHelloWorldRb; - "hello_world.py": GistsUpdateResponseDataFilesHelloWorldPy; - "hello_world.md": GistsUpdateResponseDataFilesHelloWorldMd; - "new_file.txt": GistsUpdateResponseDataFilesNewFileTxt; -}; -declare type GistsUpdateResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsUpdateResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsUpdateResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GistsDeleteEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsDeleteRequestOptions = { - method: "DELETE"; - url: "/gists/:gist_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommentsEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListCommentsRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListCommentsResponseDataItem = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsListCommentsResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type GistsListCommentsResponseData = Array; -declare type GistsCreateCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * The comment text. - */ - body: string; -}; -declare type GistsCreateCommentRequestOptions = { - method: "POST"; - url: "/gists/:gist_id/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsCreateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateCommentResponseData = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsCreateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type GistsGetCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type GistsGetCommentRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetCommentResponseData = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsGetCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type GistsUpdateCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The comment text. - */ - body: string; -}; -declare type GistsUpdateCommentRequestOptions = { - method: "PATCH"; - url: "/gists/:gist_id/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsUpdateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateCommentResponseData = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsUpdateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type GistsDeleteCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type GistsDeleteCommentRequestOptions = { - method: "DELETE"; - url: "/gists/:gist_id/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommitsEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListCommitsRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommitsResponseDataItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsListCommitsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListCommitsResponseDataItem = { - url: string; - version: string; - user: GistsListCommitsResponseDataItemUser; - change_status: GistsListCommitsResponseDataItemChangeStatus; - committed_at: string; -}; -declare type GistsListCommitsResponseData = Array; -declare type GistsForkEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsForkRequestOptions = { - method: "POST"; - url: "/gists/:gist_id/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsForkResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsForkResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsForkResponseDataFiles = { - "hello_world.rb": GistsForkResponseDataFilesHelloWorldRb; -}; -declare type GistsForkResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsForkResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsForkResponseDataOwner; - truncated: boolean; -}; -declare type GistsListForksEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListForksRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListForksResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListForksResponseDataItem = { - user: GistsListForksResponseDataItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsListForksResponseData = Array; -declare type GistsStarEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsStarRequestOptions = { - method: "PUT"; - url: "/gists/:gist_id/star"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsUnstarEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsUnstarRequestOptions = { - method: "DELETE"; - url: "/gists/:gist_id/star"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsCheckIsStarredEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsCheckIsStarredRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/star"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetRevisionEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * sha parameter - */ - sha: string; -}; -declare type GistsGetRevisionRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/:sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetRevisionResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsGetRevisionResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetRevisionResponseDataHistoryItem = { - url: string; - version: string; - user: GistsGetRevisionResponseDataHistoryItemUser; - change_status: GistsGetRevisionResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsGetRevisionResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetRevisionResponseDataForksItem = { - user: GistsGetRevisionResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsGetRevisionResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFiles = { - "hello_world.rb": GistsGetRevisionResponseDataFilesHelloWorldRb; - "hello_world.py": GistsGetRevisionResponseDataFilesHelloWorldPy; - "hello_world_ruby.txt": GistsGetRevisionResponseDataFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsGetRevisionResponseDataFilesHelloWorldPythonTxt; -}; -declare type GistsGetRevisionResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsGetRevisionResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsGetRevisionResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GitignoreListTemplatesEndpoint = {}; -declare type GitignoreListTemplatesRequestOptions = { - method: "GET"; - url: "/gitignore/templates"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitignoreListTemplatesResponseData = Array; -declare type GitignoreGetTemplateEndpoint = { - /** - * name parameter - */ - name: string; -}; -declare type GitignoreGetTemplateRequestOptions = { - method: "GET"; - url: "/gitignore/templates/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitignoreGetTemplateResponseData = { - name: string; - source: string; -}; -declare type AppsListReposEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListReposRequestOptions = { - method: "GET"; - url: "/installation/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListReposResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsListReposResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsListReposResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type AppsListReposResponseData = { - total_count: number; - repositories: Array; -}; -declare type AppsRevokeInstallationTokenEndpoint = {}; -declare type AppsRevokeInstallationTokenRequestOptions = { - method: "DELETE"; - url: "/installation/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEndpoint = { - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListRequestOptions = { - method: "GET"; - url: "/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListResponseDataItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type IssuesListResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListResponseDataItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type IssuesListResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListResponseDataItemUser; - labels: Array; - assignee: IssuesListResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListResponseDataItemRepository; -}; -declare type IssuesListResponseData = Array; -declare type SearchIssuesLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repository parameter - */ - repository: string; - /** - * Indicates the state of the issues to return. Can be either `open` or `closed`. - */ - state: "open" | "closed"; - /** - * The search term. - */ - keyword: string; -}; -declare type SearchIssuesLegacyRequestOptions = { - method: "GET"; - url: "/legacy/issues/search/:owner/:repository/:state/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchIssuesLegacyResponseDataIssuesItem = { - gravatar_id: string; - position: number; - number: number; - votes: number; - created_at: string; - comments: number; - body: string; - title: string; - updated_at: string; - html_url: string; - user: string; - labels: Array; - state: string; -}; -declare type SearchIssuesLegacyResponseData = { - issues: Array; -}; -declare type SearchReposLegacyEndpoint = { - /** - * The search term. - */ - keyword: string; - /** - * Filter results by language. - */ - language?: string; - /** - * The page number to fetch. - */ - start_page?: string; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; -}; -declare type SearchReposLegacyRequestOptions = { - method: "GET"; - url: "/legacy/repos/search/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchReposLegacyResponseDataRepositoriesItem = { - type: string; - created: string; - watchers: number; - has_downloads: boolean; - username: string; - homepage: string; - url: string; - fork: boolean; - has_issues: boolean; - has_wiki: boolean; - forks: number; - size: number; - private: boolean; - followers: number; - name: string; - owner: string; - open_issues: number; - pushed_at: string; - score: number; - pushed: string; - description: string; - language: string; - created_at: string; -}; -declare type SearchReposLegacyResponseData = { - repositories: Array; -}; -declare type SearchEmailLegacyEndpoint = { - /** - * The email address. - */ - email: string; -}; -declare type SearchEmailLegacyRequestOptions = { - method: "GET"; - url: "/legacy/user/email/:email"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchEmailLegacyResponseDataUser = { - public_repo_count: number; - public_gist_count: number; - followers_count: number; - following_count: number; - created: string; - created_at: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - id: number; - login: string; - type: string; - gravatar_id: string; -}; -declare type SearchEmailLegacyResponseData = { - user: SearchEmailLegacyResponseDataUser; -}; -declare type SearchUsersLegacyEndpoint = { - /** - * The search term. - */ - keyword: string; - /** - * The page number to fetch. - */ - start_page?: string; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; -}; -declare type SearchUsersLegacyRequestOptions = { - method: "GET"; - url: "/legacy/user/search/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchUsersLegacyResponseDataUsersItem = { - gravatar_id: string; - name: string; - created_at: string; - location: string; - public_repo_count: number; - followers: number; - language: string; - fullname: string; - username: string; - id: string; - repos: number; - type: string; - followers_count: number; - login: string; - score: number; - created: string; -}; -declare type SearchUsersLegacyResponseData = { - users: Array; -}; -declare type LicensesListCommonlyUsedEndpoint = {}; -declare type LicensesListCommonlyUsedRequestOptions = { - method: "GET"; - url: "/licenses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type LicensesListCommonlyUsedResponseDataItem = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id?: string; -}; -declare type LicensesListCommonlyUsedResponseData = Array; -declare type LicensesGetEndpoint = { - /** - * license parameter - */ - license: string; -}; -declare type LicensesGetRequestOptions = { - method: "GET"; - url: "/licenses/:license"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type LicensesGetResponseData = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - html_url: string; - description: string; - implementation: string; - permissions: Array; - conditions: Array; - limitations: Array; - body: string; - featured: boolean; -}; -declare type MarkdownRenderEndpoint = { - /** - * The Markdown text to render in HTML. Markdown content must be 400 KB or less. - */ - text: string; - /** - * The rendering mode. Can be either: - * \* `markdown` to render a document in plain Markdown, just like README.md files are rendered. - * \* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests. - */ - mode?: "markdown" | "gfm"; - /** - * The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode. - */ - context?: string; -}; -declare type MarkdownRenderRequestOptions = { - method: "POST"; - url: "/markdown"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MarkdownRenderRawEndpoint = { - /** - * data parameter - */ - data: string; -} & { - headers: { - "content-type": "text/plain; charset=utf-8"; - }; -}; -declare type MarkdownRenderRawRequestOptions = { - method: "POST"; - url: "/markdown/raw"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetSubscriptionPlanForAccountEndpoint = { - /** - * account_id parameter - */ - account_id: number; -}; -declare type AppsGetSubscriptionPlanForAccountRequestOptions = { - method: "GET"; - url: "/marketplace_listing/accounts/:account_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchasePlan; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChangePlan; -}; -declare type AppsGetSubscriptionPlanForAccountResponseData = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChange; - marketplace_purchase: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchase; -}; -declare type AppsListPlansEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListPlansRequestOptions = { - method: "GET"; - url: "/marketplace_listing/plans"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListPlansResponseDataItem = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListPlansResponseData = Array; -declare type AppsListAccountsForPlanEndpoint = { - /** - * plan_id parameter - */ - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListAccountsForPlanRequestOptions = { - method: "GET"; - url: "/marketplace_listing/plans/:plan_id/accounts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsListAccountsForPlanResponseDataItemMarketplacePurchasePlan; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsListAccountsForPlanResponseDataItemMarketplacePendingChangePlan; -}; -declare type AppsListAccountsForPlanResponseDataItem = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsListAccountsForPlanResponseDataItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsForPlanResponseDataItemMarketplacePurchase; -}; -declare type AppsListAccountsForPlanResponseData = Array; -declare type AppsGetSubscriptionPlanForAccountStubbedEndpoint = { - /** - * account_id parameter - */ - account_id: number; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedRequestOptions = { - method: "GET"; - url: "/marketplace_listing/stubbed/accounts/:account_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchasePlan; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChangePlan; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseData = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChange; - marketplace_purchase: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchase; -}; -declare type AppsListPlansStubbedEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListPlansStubbedRequestOptions = { - method: "GET"; - url: "/marketplace_listing/stubbed/plans"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListPlansStubbedResponseDataItem = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListPlansStubbedResponseData = Array; -declare type AppsListAccountsForPlanStubbedEndpoint = { - /** - * plan_id parameter - */ - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListAccountsForPlanStubbedRequestOptions = { - method: "GET"; - url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchasePlan; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChangePlan; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItem = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchase; -}; -declare type AppsListAccountsForPlanStubbedResponseData = Array; -declare type MetaGetEndpoint = {}; -declare type MetaGetRequestOptions = { - method: "GET"; - url: "/meta"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MetaGetResponseDataSshKeyFingerprints = { - MD5_RSA: string; - MD5_DSA: string; - SHA256_RSA: string; - SHA256_DSA: string; -}; -declare type MetaGetResponseData = { - verifiable_password_authentication: boolean; - ssh_key_fingerprints: MetaGetResponseDataSshKeyFingerprints; - hooks: Array; - web: Array; - api: Array; - git: Array; - pages: Array; - importer: Array; -}; -declare type ActivityListPublicEventsForRepoNetworkEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListPublicEventsForRepoNetworkRequestOptions = { - method: "GET"; - url: "/networks/:owner/:repo/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListNotificationsForAuthenticatedUserEndpoint = { - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * 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`. - */ - since?: string; - /** - * 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`. - */ - before?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListNotificationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItemSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItem = { - id: string; - repository: ActivityListNotificationsForAuthenticatedUserResponseDataItemRepository; - subject: ActivityListNotificationsForAuthenticatedUserResponseDataItemSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseData = Array; -declare type ActivityMarkNotificationsAsReadEndpoint = { - /** - * 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. - */ - last_read_at?: string; -}; -declare type ActivityMarkNotificationsAsReadRequestOptions = { - method: "PUT"; - url: "/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityGetThreadRequestOptions = { - method: "GET"; - url: "/notifications/threads/:thread_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadResponseDataSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; -}; -declare type ActivityGetThreadResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityGetThreadResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityGetThreadResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActivityGetThreadResponseData = { - id: string; - repository: ActivityGetThreadResponseDataRepository; - subject: ActivityGetThreadResponseDataSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; -}; -declare type ActivityMarkThreadAsReadEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityMarkThreadAsReadRequestOptions = { - method: "PATCH"; - url: "/notifications/threads/:thread_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadSubscriptionForAuthenticatedUserEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityGetThreadSubscriptionForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/notifications/threads/:thread_id/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadSubscriptionForAuthenticatedUserResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - thread_url: string; -}; -declare type ActivitySetThreadSubscriptionEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; - /** - * Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread. - */ - ignored?: boolean; -}; -declare type ActivitySetThreadSubscriptionRequestOptions = { - method: "PUT"; - url: "/notifications/threads/:thread_id/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivitySetThreadSubscriptionResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - thread_url: string; -}; -declare type ActivityDeleteThreadSubscriptionEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityDeleteThreadSubscriptionRequestOptions = { - method: "DELETE"; - url: "/notifications/threads/:thread_id/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListEndpoint = { - /** - * The integer ID of the last organization that you've seen. - */ - since?: number; -}; -declare type OrgsListRequestOptions = { - method: "GET"; - url: "/organizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListResponseDataItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListResponseData = Array; -declare type OrgsGetEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsGetRequestOptions = { - method: "GET"; - url: "/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetResponseDataPlan = { - name: string; - space: number; - private_repos: number; - filled_seats?: number; - seats?: number; -}; -declare type OrgsGetResponseData = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - total_private_repos?: number; - owned_private_repos?: number; - private_gists?: number; - disk_usage?: number; - collaborators?: number; - billing_email?: string; - plan: OrgsGetResponseDataPlan; - default_repository_permission?: string; - members_can_create_repositories?: boolean; - two_factor_requirement_enabled?: boolean; - members_allowed_repository_creation_type?: string; - members_can_create_public_repositories?: boolean; - members_can_create_private_repositories?: boolean; - members_can_create_internal_repositories?: boolean; -}; -declare type OrgsUpdateEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Billing email address. This address is not publicized. - */ - billing_email?: string; - /** - * The company name. - */ - company?: string; - /** - * The publicly visible email address. - */ - email?: string; - /** - * The location. - */ - location?: string; - /** - * The shorthand name of the company. - */ - name?: string; - /** - * The description of the company. - */ - description?: string; - /** - * Toggles whether an organization can use organization projects. - */ - has_organization_projects?: boolean; - /** - * Toggles whether repositories that belong to the organization can use repository projects. - */ - has_repository_projects?: boolean; - /** - * 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. - */ - default_repository_permission?: "read" | "write" | "admin" | "none"; - /** - * 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_repositories?: boolean; - /** - * 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_internal_repositories?: boolean; - /** - * 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_private_repositories?: boolean; - /** - * 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_can_create_public_repositories?: boolean; - /** - * 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 [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. - */ - members_allowed_repository_creation_type?: "all" | "private" | "none"; -}; -declare type OrgsUpdateRequestOptions = { - method: "PATCH"; - url: "/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUpdateResponseDataPlan = { - name: string; - space: number; - private_repos: number; -}; -declare type OrgsUpdateResponseData = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - total_private_repos: number; - owned_private_repos: number; - private_gists: number; - disk_usage: number; - collaborators: number; - billing_email: string; - plan: OrgsUpdateResponseDataPlan; - default_repository_permission: string; - members_can_create_repositories: boolean; - two_factor_requirement_enabled: boolean; - members_allowed_repository_creation_type: string; - members_can_create_public_repositories: boolean; - members_can_create_private_repositories: boolean; - members_can_create_internal_repositories: boolean; -}; -declare type ActionsListSelfHostedRunnersForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListSelfHostedRunnersForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/actions/runners"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSelfHostedRunnersForOrgResponseDataRunnersItem = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsListSelfHostedRunnersForOrgResponseData = { - total_count: number; - runners: Array; -}; -declare type ActionsListRunnerApplicationsForOrgEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ActionsListRunnerApplicationsForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/actions/runners/downloads"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRunnerApplicationsForOrgResponseDataItem = { - os: string; - architecture: string; - download_url: string; - filename: string; -}; -declare type ActionsListRunnerApplicationsForOrgResponseData = Array; -declare type ActionsCreateRegistrationTokenForOrgEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ActionsCreateRegistrationTokenForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/actions/runners/registration-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRegistrationTokenForOrgResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsCreateRemoveTokenForOrgEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ActionsCreateRemoveTokenForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/actions/runners/remove-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRemoveTokenForOrgResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsGetSelfHostedRunnerForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsGetSelfHostedRunnerForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetSelfHostedRunnerForOrgResponseData = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsDeleteSelfHostedRunnerFromOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsDeleteSelfHostedRunnerFromOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListBlockedUsersEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsListBlockedUsersRequestOptions = { - method: "GET"; - url: "/orgs/:org/blocks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListBlockedUsersResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListBlockedUsersResponseData = Array; -declare type OrgsCheckBlockedUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsCheckBlockedUserRequestOptions = { - method: "GET"; - url: "/orgs/:org/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsBlockUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsBlockUserRequestOptions = { - method: "PUT"; - url: "/orgs/:org/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUnblockUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsUnblockUserRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListCredentialAuthorizationsEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsListCredentialAuthorizationsRequestOptions = { - method: "GET"; - url: "/orgs/:org/credential-authorizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListCredentialAuthorizationsResponseDataItem = { - login: string; - credential_id: string; - credential_type: string; - token_last_eight: string; - credential_authorized_at: string; - scopes: Array; -}; -declare type OrgsListCredentialAuthorizationsResponseData = Array; -declare type OrgsRemoveCredentialAuthorizationEndpoint = { - /** - * org parameter - */ - org: string; - /** - * credential_id parameter - */ - credential_id: number; -}; -declare type OrgsRemoveCredentialAuthorizationRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/credential-authorizations/:credential_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListPublicOrgEventsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListPublicOrgEventsRequestOptions = { - method: "GET"; - url: "/orgs/:org/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListHooksEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListHooksRequestOptions = { - method: "GET"; - url: "/orgs/:org/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListHooksResponseDataItemConfig = { - url: string; - content_type: string; -}; -declare type OrgsListHooksResponseDataItem = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsListHooksResponseDataItemConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsListHooksResponseData = Array; -declare type OrgsCreateHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Must be passed as "web". - */ - name: string; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#create-hook-config-params). - */ - config: OrgsCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type OrgsCreateHookRequestOptions = { - method: "POST"; - url: "/orgs/:org/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsCreateHookResponseDataConfig = { - url: string; - content_type: string; -}; -declare type OrgsCreateHookResponseData = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsCreateHookResponseDataConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsGetHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type OrgsGetHookRequestOptions = { - method: "GET"; - url: "/orgs/:org/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetHookResponseDataConfig = { - url: string; - content_type: string; -}; -declare type OrgsGetHookResponseData = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsGetHookResponseDataConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsUpdateHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#update-hook-config-params). - */ - config?: OrgsUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type OrgsUpdateHookRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUpdateHookResponseDataConfig = { - url: string; - content_type: string; -}; -declare type OrgsUpdateHookResponseData = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsUpdateHookResponseDataConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsDeleteHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type OrgsDeleteHookRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsPingHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type OrgsPingHookRequestOptions = { - method: "POST"; - url: "/orgs/:org/hooks/:hook_id/pings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetOrgInstallationEndpoint = { - /** - * org parameter - */ - org: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetOrgInstallationRequestOptions = { - method: "GET"; - url: "/orgs/:org/installation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetOrgInstallationResponseDataPermissions = { - checks: string; - metadata: string; - contents: string; -}; -declare type AppsGetOrgInstallationResponseDataAccount = { - login: string; - id: number; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsGetOrgInstallationResponseData = { - id: number; - account: AppsGetOrgInstallationResponseDataAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetOrgInstallationResponseDataPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type OrgsListInstallationsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type OrgsListInstallationsRequestOptions = { - method: "GET"; - url: "/orgs/:org/installations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListInstallationsResponseDataInstallationsItemPermissions = { - deployments: string; - metadata: string; - pull_requests: string; - statuses: string; -}; -declare type OrgsListInstallationsResponseDataInstallationsItemAccount = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListInstallationsResponseDataInstallationsItem = { - id: number; - account: OrgsListInstallationsResponseDataInstallationsItemAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: OrgsListInstallationsResponseDataInstallationsItemPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type OrgsListInstallationsResponseData = { - total_count: number; - installations: Array; -}; -declare type InteractionsGetRestrictionsForOrgEndpoint = { - /** - * org parameter - */ - org: string; -} & RequiredPreview<"sombra">; -declare type InteractionsGetRestrictionsForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsGetRestrictionsForOrgResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsAddOrUpdateRestrictionsForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests in public repositories for the given organization. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. - */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; -} & RequiredPreview<"sombra">; -declare type InteractionsAddOrUpdateRestrictionsForOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsAddOrUpdateRestrictionsForOrgResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsRemoveRestrictionsForOrgEndpoint = { - /** - * org parameter - */ - org: string; -} & RequiredPreview<"sombra">; -declare type InteractionsRemoveRestrictionsForOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListPendingInvitationsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListPendingInvitationsRequestOptions = { - method: "GET"; - url: "/orgs/:org/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListPendingInvitationsResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListPendingInvitationsResponseDataItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: OrgsListPendingInvitationsResponseDataItemInviter; - team_count: number; - invitation_team_url: string; -}; -declare type OrgsListPendingInvitationsResponseData = Array; -declare type OrgsCreateInvitationEndpoint = { - /** - * org parameter - */ - org: string; - /** - * **Required unless you provide `email`**. GitHub user ID for the person you are inviting. - */ - invitee_id?: number; - /** - * **Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user. - */ - email?: string; - /** - * Specify role for new member. Can be one of: - * \* `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. - * \* `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. - * \* `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. - */ - role?: "admin" | "direct_member" | "billing_manager"; - /** - * Specify IDs for the teams you want to invite new members to. - */ - team_ids?: number[]; -}; -declare type OrgsCreateInvitationRequestOptions = { - method: "POST"; - url: "/orgs/:org/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsCreateInvitationResponseDataInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsCreateInvitationResponseData = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: OrgsCreateInvitationResponseDataInviter; - team_count: number; - invitation_team_url: string; -}; -declare type OrgsListInvitationTeamsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * invitation_id parameter - */ - invitation_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListInvitationTeamsRequestOptions = { - method: "GET"; - url: "/orgs/:org/invitations/:invitation_id/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListInvitationTeamsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type OrgsListInvitationTeamsResponseData = Array; -declare type IssuesListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForOrgResponseDataItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type IssuesListForOrgResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListForOrgResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListForOrgResponseDataItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type IssuesListForOrgResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListForOrgResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForOrgResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListForOrgResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListForOrgResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForOrgResponseDataItemUser; - labels: Array; - assignee: IssuesListForOrgResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListForOrgResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForOrgResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListForOrgResponseDataItemRepository; -}; -declare type IssuesListForOrgResponseData = Array; -declare type OrgsListMembersEndpoint = { - /** - * org parameter - */ - org: string; - /** - * 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. - */ - filter?: "2fa_disabled" | "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. - */ - role?: "all" | "admin" | "member"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListMembersRequestOptions = { - method: "GET"; - url: "/orgs/:org/members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListMembersResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListMembersResponseData = Array; -declare type OrgsCheckMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsCheckMembershipRequestOptions = { - method: "GET"; - url: "/orgs/:org/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsRemoveMemberEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsRemoveMemberRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsGetMembershipRequestOptions = { - method: "GET"; - url: "/orgs/:org/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetMembershipResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsGetMembershipResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsGetMembershipResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsGetMembershipResponseDataOrganization; - user: OrgsGetMembershipResponseDataUser; -}; -declare type OrgsAddOrUpdateMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - role?: "admin" | "member"; -}; -declare type OrgsAddOrUpdateMembershipRequestOptions = { - method: "PUT"; - url: "/orgs/:org/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsAddOrUpdateMembershipResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsAddOrUpdateMembershipResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsAddOrUpdateMembershipResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsAddOrUpdateMembershipResponseDataOrganization; - user: OrgsAddOrUpdateMembershipResponseDataUser; -}; -declare type OrgsRemoveMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsRemoveMembershipRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * A list of arrays indicating which repositories should be migrated. - */ - repositories: string[]; - /** - * Indicates whether repositories should be locked (to prevent manipulation) while migrating data. - */ - lock_repositories?: boolean; - /** - * Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). - */ - exclude_attachments?: boolean; -}; -declare type MigrationsStartForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartForOrgResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsStartForOrgResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsStartForOrgResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsStartForOrgResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsStartForOrgResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsStartForOrgResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type MigrationsStartForOrgResponseData = { - id: number; - owner: MigrationsStartForOrgResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListForOrgResponseDataItemRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListForOrgResponseDataItemRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListForOrgResponseDataItemRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListForOrgResponseDataItemRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListForOrgResponseDataItemRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsListForOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type MigrationsListForOrgResponseDataItem = { - id: number; - owner: MigrationsListForOrgResponseDataItemOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForOrgResponseData = Array; -declare type MigrationsGetStatusForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsGetStatusForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations/:migration_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetStatusForOrgResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsGetStatusForOrgResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsGetStatusForOrgResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsGetStatusForOrgResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsGetStatusForOrgResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsGetStatusForOrgResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type MigrationsGetStatusForOrgResponseData = { - id: number; - owner: MigrationsGetStatusForOrgResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsDownloadArchiveForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsDownloadArchiveForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsDeleteArchiveForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsDeleteArchiveForOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsUnlockRepoForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; - /** - * repo_name parameter - */ - repo_name: string; -} & RequiredPreview<"wyandotte">; -declare type MigrationsUnlockRepoForOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListReposForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListReposForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations/:migration_id/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListReposForOrgResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type MigrationsListReposForOrgResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListReposForOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListReposForOrgResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListReposForOrgResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListReposForOrgResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: MigrationsListReposForOrgResponseDataItemLicense; -}; -declare type MigrationsListReposForOrgResponseData = Array; -declare type OrgsListOutsideCollaboratorsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * 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. - */ - filter?: "2fa_disabled" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListOutsideCollaboratorsRequestOptions = { - method: "GET"; - url: "/orgs/:org/outside_collaborators"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListOutsideCollaboratorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListOutsideCollaboratorsResponseData = Array; -declare type OrgsRemoveOutsideCollaboratorEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsRemoveOutsideCollaboratorRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/outside_collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsRemoveOutsideCollaboratorResponseData = { - message: string; - documentation_url: string; -}; -declare type OrgsConvertMemberToOutsideCollaboratorEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsConvertMemberToOutsideCollaboratorRequestOptions = { - method: "PUT"; - url: "/orgs/:org/outside_collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsConvertMemberToOutsideCollaboratorResponseData = { - message: string; - documentation_url: string; -}; -declare type ProjectsListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListForOrgResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListForOrgResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForOrgResponseDataItemCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForOrgResponseData = Array; -declare type ProjectsCreateForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The name of the project. - */ - name: string; - /** - * The description of the project. - */ - body?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateForOrgResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateForOrgResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForOrgResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type OrgsListPublicMembersEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListPublicMembersRequestOptions = { - method: "GET"; - url: "/orgs/:org/public_members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListPublicMembersResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListPublicMembersResponseData = Array; -declare type OrgsCheckPublicMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsCheckPublicMembershipRequestOptions = { - method: "GET"; - url: "/orgs/:org/public_members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsPublicizeMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsPublicizeMembershipRequestOptions = { - method: "PUT"; - url: "/orgs/:org/public_members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsConcealMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsConcealMembershipRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/public_members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `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`. - */ - type?: "all" | "public" | "private" | "forks" | "sources" | "member" | "internal"; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForOrgResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ReposListForOrgResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListForOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListForOrgResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListForOrgResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListForOrgResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ReposListForOrgResponseDataItemLicense; -}; -declare type ReposListForOrgResponseData = Array; -declare type ReposCreateInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The name of the repository. - */ - name: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to create a private repository or `false` to create a public one. - */ - private?: boolean; - /** - * 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`. 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. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * 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". - */ - gitignore_template?: string; - /** - * 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". - */ - license_template?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; -}; -declare type ReposCreateInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateInOrgResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateInOrgResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateInOrgResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateInOrgResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateInOrgResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsListIdPGroupsForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListIdPGroupsForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/team-sync/groups"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsForOrgResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsListIdPGroupsForOrgResponseData = { - groups: Array; -}; -declare type TeamsListEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type TeamsListResponseData = Array; -declare type TeamsCreateEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * List GitHub IDs for organization members who will become team maintainers. - */ - maintainers?: string[]; - /** - * The full name (e.g., "organization-name/repository-name") of repositories to add the team to. - */ - repo_names?: string[]; - /** - * 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` - */ - privacy?: "secret" | "closed"; - /** - * **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. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; -}; -declare type TeamsCreateRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsCreateResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsCreateResponseDataOrganization; -}; -declare type TeamsGetByNameEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; -}; -declare type TeamsGetByNameRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetByNameResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsGetByNameResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsGetByNameResponseDataOrganization; -}; -declare type TeamsUpdateInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. 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. - */ - privacy?: "secret" | "closed"; - /** - * **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. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; -}; -declare type TeamsUpdateInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateInOrgResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsUpdateInOrgResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsUpdateInOrgResponseDataOrganization; -}; -declare type TeamsDeleteInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; -}; -declare type TeamsDeleteInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsInOrgResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionsInOrgResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionsInOrgResponseDataItem = { - author: TeamsListDiscussionsInOrgResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsListDiscussionsInOrgResponseDataItemReactions; -}; -declare type TeamsListDiscussionsInOrgResponseData = Array; -declare type TeamsCreateDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * The discussion post's title. - */ - title: string; - /** - * The discussion post's body text. - */ - body: string; - /** - * 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. - */ - private?: boolean; -}; -declare type TeamsCreateDiscussionInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionInOrgResponseData = { - author: TeamsCreateDiscussionInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionInOrgResponseDataReactions; -}; -declare type TeamsGetDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsGetDiscussionInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionInOrgResponseData = { - author: TeamsGetDiscussionInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionInOrgResponseDataReactions; -}; -declare type TeamsUpdateDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion post's title. - */ - title?: string; - /** - * The discussion post's body text. - */ - body?: string; -}; -declare type TeamsUpdateDiscussionInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionInOrgResponseData = { - author: TeamsUpdateDiscussionInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: string; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionInOrgResponseDataReactions; -}; -declare type TeamsDeleteDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsDeleteDiscussionInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionCommentsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsInOrgResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionCommentsInOrgResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionCommentsInOrgResponseDataItem = { - author: TeamsListDiscussionCommentsInOrgResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsListDiscussionCommentsInOrgResponseDataItemReactions; -}; -declare type TeamsListDiscussionCommentsInOrgResponseData = Array; -declare type TeamsCreateDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsCreateDiscussionCommentInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseData = { - author: TeamsCreateDiscussionCommentInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionCommentInOrgResponseDataReactions; -}; -declare type TeamsGetDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsGetDiscussionCommentInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionCommentInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionCommentInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionCommentInOrgResponseData = { - author: TeamsGetDiscussionCommentInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionCommentInOrgResponseDataReactions; -}; -declare type TeamsUpdateDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsUpdateDiscussionCommentInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseData = { - author: TeamsUpdateDiscussionCommentInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: string; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionCommentInOrgResponseDataReactions; -}; -declare type TeamsDeleteDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsDeleteDiscussionCommentInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionCommentInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentInOrgResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseData = Array; -declare type ReactionsCreateForTeamDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionCommentInOrgResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionCommentInOrgResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentInOrgResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForTeamDiscussionCommentEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForTeamDiscussionCommentRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionInOrgResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseData = Array; -declare type ReactionsCreateForTeamDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionInOrgResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionInOrgResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionInOrgResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForTeamDiscussionEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForTeamDiscussionRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListPendingInvitationsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListPendingInvitationsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListPendingInvitationsInOrgResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListPendingInvitationsInOrgResponseDataItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: TeamsListPendingInvitationsInOrgResponseDataItemInviter; - team_count: number; - invitation_team_url: string; -}; -declare type TeamsListPendingInvitationsInOrgResponseData = Array; -declare type TeamsListMembersInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListMembersInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListMembersInOrgResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListMembersInOrgResponseData = Array; -declare type TeamsGetMembershipInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * username parameter - */ - username: string; -}; -declare type TeamsGetMembershipInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetMembershipInOrgResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsAddOrUpdateMembershipInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - role?: "member" | "maintainer"; -}; -declare type TeamsAddOrUpdateMembershipInOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/teams/:team_slug/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateMembershipInOrgResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsRemoveMembershipInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * username parameter - */ - username: string; -}; -declare type TeamsRemoveMembershipInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type TeamsListProjectsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsInOrgResponseDataItemPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsListProjectsInOrgResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListProjectsInOrgResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsListProjectsInOrgResponseDataItemCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsListProjectsInOrgResponseDataItemPermissions; -}; -declare type TeamsListProjectsInOrgResponseData = Array; -declare type TeamsReviewProjectInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type TeamsReviewProjectInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsReviewProjectInOrgResponseDataPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsReviewProjectInOrgResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsReviewProjectInOrgResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsReviewProjectInOrgResponseDataCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsReviewProjectInOrgResponseDataPermissions; -}; -declare type TeamsAddOrUpdateProjectInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * project_id parameter - */ - project_id: number; - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; -} & RequiredPreview<"inertia">; -declare type TeamsAddOrUpdateProjectInOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/teams/:team_slug/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateProjectInOrgResponseData = { - message: string; - documentation_url: string; -}; -declare type TeamsRemoveProjectInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * project_id parameter - */ - project_id: number; -}; -declare type TeamsRemoveProjectInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListReposInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposInOrgResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type TeamsListReposInOrgResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsListReposInOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListReposInOrgResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsListReposInOrgResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsListReposInOrgResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: TeamsListReposInOrgResponseDataItemLicense; -}; -declare type TeamsListReposInOrgResponseData = Array; -declare type TeamsCheckManagesRepoInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsCheckManagesRepoInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoInOrgResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoInOrgResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoInOrgResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoInOrgResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseData = { - organization: TeamsCheckManagesRepoInOrgResponseDataOrganization; - parent: TeamsCheckManagesRepoInOrgResponseDataParent; - source: TeamsCheckManagesRepoInOrgResponseDataSource; - permissions: TeamsCheckManagesRepoInOrgResponseDataPermissions; -}; -declare type TeamsAddOrUpdateRepoInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - * \* `maintain` - team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations. - * \* `triage` - team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations. - * - * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. - */ - permission?: "pull" | "push" | "admin" | "maintain" | "triage"; -}; -declare type TeamsAddOrUpdateRepoInOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsRemoveRepoInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsRemoveRepoInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; -}; -declare type TeamsListIdPGroupsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsInOrgResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsListIdPGroupsInOrgResponseData = { - groups: Array; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. - */ - groups: TeamsCreateOrUpdateIdPGroupConnectionsInOrgParamsGroups[]; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgResponseDataGroups = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgResponseData = { - groups: TeamsCreateOrUpdateIdPGroupConnectionsInOrgResponseDataGroups; -}; -declare type TeamsListChildInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListChildInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListChildInOrgResponseDataItemParent = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; -}; -declare type TeamsListChildInOrgResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: TeamsListChildInOrgResponseDataItemParent; -}; -declare type TeamsListChildInOrgResponseData = Array; -declare type ProjectsGetCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsGetCardRequestOptions = { - method: "GET"; - url: "/projects/columns/cards/:card_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetCardResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsGetCardResponseData = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsGetCardResponseDataCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsUpdateCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`. - */ - note?: string; - /** - * Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card. - */ - archived?: boolean; -} & RequiredPreview<"inertia">; -declare type ProjectsUpdateCardRequestOptions = { - method: "PATCH"; - url: "/projects/columns/cards/:card_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsUpdateCardResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsUpdateCardResponseData = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsUpdateCardResponseDataCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsDeleteCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsDeleteCardRequestOptions = { - method: "DELETE"; - url: "/projects/columns/cards/:card_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsMoveCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; - /** - * Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`. - */ - position: string; - /** - * The `id` value of a column in the same project. - */ - column_id?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsMoveCardRequestOptions = { - method: "POST"; - url: "/projects/columns/cards/:card_id/moves"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsGetColumnRequestOptions = { - method: "GET"; - url: "/projects/columns/:column_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetColumnResponseData = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type ProjectsUpdateColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * The new name of the column. - */ - name: string; -} & RequiredPreview<"inertia">; -declare type ProjectsUpdateColumnRequestOptions = { - method: "PATCH"; - url: "/projects/columns/:column_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsUpdateColumnResponseData = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type ProjectsDeleteColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsDeleteColumnRequestOptions = { - method: "DELETE"; - url: "/projects/columns/:column_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCardsEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`. - */ - archived_state?: "all" | "archived" | "not_archived"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListCardsRequestOptions = { - method: "GET"; - url: "/projects/columns/:column_id/cards"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCardsResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListCardsResponseDataItem = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsListCardsResponseDataItemCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsListCardsResponseData = Array; -declare type ProjectsCreateCardEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`. - */ - note?: string; - /** - * The issue or pull request id you want to associate with this card. You can use the [List repository issues](https://developer.github.com/v3/issues/#list-repository-issues) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. - * **Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`. - */ - content_id?: number; - /** - * **Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id. - */ - content_type?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateCardRequestOptions = { - method: "POST"; - url: "/projects/columns/:column_id/cards"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateCardResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateCardResponseData = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsCreateCardResponseDataCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsMoveColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project. - */ - position: string; -} & RequiredPreview<"inertia">; -declare type ProjectsMoveColumnRequestOptions = { - method: "POST"; - url: "/projects/columns/:column_id/moves"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetEndpoint = { - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsGetRequestOptions = { - method: "GET"; - url: "/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsGetResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsGetResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsUpdateEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * The name of the project. - */ - name?: string; - /** - * The description of the project. - */ - body?: string; - /** - * State of the project. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator). - * - * **Note:** Updating a project's `organization_permission` requires `admin` access to the project. - * - * Can be one of: - * \* `read` - Organization members can read, but not write to or administer this project. - * \* `write` - Organization members can read and write, but not administer this project. - * \* `admin` - Organization members can read, write and administer this project. - * \* `none` - Organization members can only see this project if it is public. - */ - organization_permission?: string; - /** - * Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. - * - * Can be one of: - * \* `false` - Anyone can see the project. - * \* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account. - */ - private?: boolean; -} & RequiredPreview<"inertia">; -declare type ProjectsUpdateRequestOptions = { - method: "PATCH"; - url: "/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsUpdateResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsUpdateResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsUpdateResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsDeleteEndpoint = { - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsDeleteRequestOptions = { - method: "DELETE"; - url: "/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCollaboratorsEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * 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. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListCollaboratorsRequestOptions = { - method: "GET"; - url: "/projects/:project_id/collaborators"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCollaboratorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListCollaboratorsResponseData = Array; -declare type ProjectsAddCollaboratorEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * username parameter - */ - username: string; - /** - * The permission to grant the collaborator. 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://developer.github.com/v3/#http-verbs)." Can be one of: - * \* `read` - can read, but not write to or administer this project. - * \* `write` - can read and write, but not administer this project. - * \* `admin` - can read, write and administer this project. - */ - permission?: "read" | "write" | "admin"; -} & RequiredPreview<"inertia">; -declare type ProjectsAddCollaboratorRequestOptions = { - method: "PUT"; - url: "/projects/:project_id/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsRemoveCollaboratorEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * username parameter - */ - username: string; -} & RequiredPreview<"inertia">; -declare type ProjectsRemoveCollaboratorRequestOptions = { - method: "DELETE"; - url: "/projects/:project_id/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsReviewUserPermissionLevelEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * username parameter - */ - username: string; -} & RequiredPreview<"inertia">; -declare type ProjectsReviewUserPermissionLevelRequestOptions = { - method: "GET"; - url: "/projects/:project_id/collaborators/:username/permission"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsReviewUserPermissionLevelResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsReviewUserPermissionLevelResponseData = { - permission: string; - user: ProjectsReviewUserPermissionLevelResponseDataUser; -}; -declare type ProjectsListColumnsEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListColumnsRequestOptions = { - method: "GET"; - url: "/projects/:project_id/columns"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListColumnsResponseDataItem = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type ProjectsListColumnsResponseData = Array; -declare type ProjectsCreateColumnEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * The name of the column. - */ - name: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateColumnRequestOptions = { - method: "POST"; - url: "/projects/:project_id/columns"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateColumnResponseData = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type RateLimitGetEndpoint = {}; -declare type RateLimitGetRequestOptions = { - method: "GET"; - url: "/rate_limit"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type RateLimitGetResponseDataRate = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesIntegrationManifest = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesGraphql = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesSearch = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesCore = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResources = { - core: RateLimitGetResponseDataResourcesCore; - search: RateLimitGetResponseDataResourcesSearch; - graphql: RateLimitGetResponseDataResourcesGraphql; - integration_manifest: RateLimitGetResponseDataResourcesIntegrationManifest; -}; -declare type RateLimitGetResponseData = { - resources: RateLimitGetResponseDataResources; - rate: RateLimitGetResponseDataRate; -}; -declare type ReactionsDeleteLegacyEndpoint = { - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteLegacyRequestOptions = { - method: "DELETE"; - url: "/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetResponseDataCodeOfConduct = { - key: string; - name: string; - url: string; -}; -declare type ReposGetResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposGetResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposGetResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposGetResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposGetResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposGetResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposGetResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseDataLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ReposGetResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type ReposGetResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseDataOwner; - private: boolean; - html_url: string; - description: string | null; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string | null; - hooks_url: string; - svn_url: string; - homepage: string | null; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template?: boolean; - topics?: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived?: boolean; - disabled?: boolean; - visibility?: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions?: ReposGetResponseDataPermissions; - allow_rebase_merge?: boolean; - template_repository?: null; - temp_clone_token?: string; - allow_squash_merge?: boolean; - allow_merge_commit?: boolean; - subscribers_count: number; - network_count: number; - license?: ReposGetResponseDataLicense; - organization?: ReposGetResponseDataOrganization; - parent?: ReposGetResponseDataParent; - source?: ReposGetResponseDataSource; - forks?: number; - open_issues?: number; - watchers?: number; - code_of_conduct?: ReposGetResponseDataCodeOfConduct; -}; -declare type ReposUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the repository. - */ - name?: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * 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. - */ - private?: boolean; - /** - * 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. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * Updates the default branch for this repository. - */ - default_branch?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; - /** - * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API. - */ - archived?: boolean; -}; -declare type ReposUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposUpdateResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposUpdateResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposUpdateResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposUpdateResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type ReposUpdateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - organization: ReposUpdateResponseDataOrganization; - parent: ReposUpdateResponseDataParent; - source: ReposUpdateResponseDataSource; -}; -declare type ReposDeleteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposDeleteRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDeleteResponseData = { - message: string; - documentation_url: string; -}; -declare type ActionsListArtifactsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListArtifactsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/artifacts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListArtifactsForRepoResponseDataArtifactsItem = { - id: number; - node_id: string; - name: string; - size_in_bytes: number; - url: string; - archive_download_url: string; - expired: boolean; - created_at: string; - expires_at: string; -}; -declare type ActionsListArtifactsForRepoResponseData = { - total_count: number; - artifacts: Array; -}; -declare type ActionsGetArtifactEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * artifact_id parameter - */ - artifact_id: number; -}; -declare type ActionsGetArtifactRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetArtifactResponseData = { - id: number; - node_id: string; - name: string; - size_in_bytes: number; - url: string; - archive_download_url: string; - expired: boolean; - created_at: string; - expires_at: string; -}; -declare type ActionsDeleteArtifactEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * artifact_id parameter - */ - artifact_id: number; -}; -declare type ActionsDeleteArtifactRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsDownloadArtifactEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * artifact_id parameter - */ - artifact_id: number; - /** - * archive_format parameter - */ - archive_format: string; -}; -declare type ActionsDownloadArtifactRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowJobEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * job_id parameter - */ - job_id: number; -}; -declare type ActionsGetWorkflowJobRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/jobs/:job_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowJobResponseDataStepsItem = { - name: string; - status: string; - conclusion: string; - number: number; - started_at: string; - completed_at: string; -}; -declare type ActionsGetWorkflowJobResponseData = { - id: number; - run_id: number; - run_url: string; - node_id: string; - head_sha: string; - url: string; - html_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - name: string; - steps: Array; - check_run_url: string; -}; -declare type ActionsDownloadWorkflowJobLogsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * job_id parameter - */ - job_id: number; -}; -declare type ActionsDownloadWorkflowJobLogsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSelfHostedRunnersForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListSelfHostedRunnersForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runners"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSelfHostedRunnersForRepoResponseDataRunnersItem = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsListSelfHostedRunnersForRepoResponseData = { - total_count: number; - runners: Array; -}; -declare type ActionsListRunnerApplicationsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsListRunnerApplicationsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runners/downloads"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRunnerApplicationsForRepoResponseDataItem = { - os: string; - architecture: string; - download_url: string; - filename: string; -}; -declare type ActionsListRunnerApplicationsForRepoResponseData = Array; -declare type ActionsCreateRegistrationTokenForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsCreateRegistrationTokenForRepoRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runners/registration-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRegistrationTokenForRepoResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsCreateRemoveTokenForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsCreateRemoveTokenForRepoRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runners/remove-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRemoveTokenForRepoResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsGetSelfHostedRunnerForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsGetSelfHostedRunnerForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetSelfHostedRunnerForRepoResponseData = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsDeleteSelfHostedRunnerFromRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsDeleteSelfHostedRunnerFromRepoRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowRunsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. - */ - actor?: string; - /** - * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. - */ - branch?: string; - /** - * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation. - */ - event?: string; - /** - * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." - */ - status?: "completed" | "status" | "conclusion"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListRepoWorkflowRunsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - private: boolean; - owner: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner; - html_url: string; - description: null; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter = { - name: string; - email: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor = { - name: string; - email: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommit = { - id: string; - tree_id: string; - message: string; - timestamp: string; - author: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor; - committer: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItem = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - run_number: number; - event: string; - status: string; - conclusion: null; - url: string; - html_url: string; - pull_requests: Array; - created_at: string; - updated_at: string; - jobs_url: string; - logs_url: string; - check_suite_url: string; - artifacts_url: string; - cancel_url: string; - rerun_url: string; - workflow_url: string; - head_commit: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommit; - repository: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepository; - head_repository: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepository; -}; -declare type ActionsListRepoWorkflowRunsResponseData = { - total_count: number; - workflow_runs: Array; -}; -declare type ActionsGetWorkflowRunEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsGetWorkflowRunRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowRunResponseDataHeadRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsGetWorkflowRunResponseDataHeadRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - private: boolean; - owner: ActionsGetWorkflowRunResponseDataHeadRepositoryOwner; - html_url: string; - description: null; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type ActionsGetWorkflowRunResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsGetWorkflowRunResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActionsGetWorkflowRunResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActionsGetWorkflowRunResponseDataHeadCommitCommitter = { - name: string; - email: string; -}; -declare type ActionsGetWorkflowRunResponseDataHeadCommitAuthor = { - name: string; - email: string; -}; -declare type ActionsGetWorkflowRunResponseDataHeadCommit = { - id: string; - tree_id: string; - message: string; - timestamp: string; - author: ActionsGetWorkflowRunResponseDataHeadCommitAuthor; - committer: ActionsGetWorkflowRunResponseDataHeadCommitCommitter; -}; -declare type ActionsGetWorkflowRunResponseData = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - run_number: number; - event: string; - status: string; - conclusion: null; - url: string; - html_url: string; - pull_requests: Array; - created_at: string; - updated_at: string; - jobs_url: string; - logs_url: string; - check_suite_url: string; - artifacts_url: string; - cancel_url: string; - rerun_url: string; - workflow_url: string; - head_commit: ActionsGetWorkflowRunResponseDataHeadCommit; - repository: ActionsGetWorkflowRunResponseDataRepository; - head_repository: ActionsGetWorkflowRunResponseDataHeadRepository; -}; -declare type ActionsListWorkflowRunArtifactsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListWorkflowRunArtifactsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListWorkflowRunArtifactsResponseDataArtifactsItem = { - id: number; - node_id: string; - name: string; - size_in_bytes: number; - url: string; - archive_download_url: string; - expired: boolean; - created_at: string; - expires_at: string; -}; -declare type ActionsListWorkflowRunArtifactsResponseData = { - total_count: number; - artifacts: Array; -}; -declare type ActionsCancelWorkflowRunEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsCancelWorkflowRunRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListJobsForWorkflowRunEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; - /** - * Filters jobs by their `completed_at` timestamp. Can be one of: - * \* `latest`: Returns jobs from the most recent execution of the workflow run. - * \* `all`: Returns all jobs for a workflow run, including from old executions of the workflow run. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListJobsForWorkflowRunRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListJobsForWorkflowRunResponseDataJobsItemStepsItem = { - name: string; - status: string; - conclusion: string; - number: number; - started_at: string; - completed_at: string; -}; -declare type ActionsListJobsForWorkflowRunResponseDataJobsItem = { - id: number; - run_id: number; - run_url: string; - node_id: string; - head_sha: string; - url: string; - html_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - name: string; - steps: Array; - check_run_url: string; -}; -declare type ActionsListJobsForWorkflowRunResponseData = { - total_count: number; - jobs: Array; -}; -declare type ActionsDownloadWorkflowRunLogsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsDownloadWorkflowRunLogsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id/logs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsDeleteWorkflowRunLogsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsDeleteWorkflowRunLogsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/runs/:run_id/logs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsReRunWorkflowEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsReRunWorkflowRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSecretsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListSecretsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/secrets"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSecretsForRepoResponseDataSecretsItem = { - name: string; - created_at: string; - updated_at: string; -}; -declare type ActionsListSecretsForRepoResponseData = { - total_count: number; - secrets: Array; -}; -declare type ActionsGetPublicKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsGetPublicKeyRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/secrets/public-key"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetPublicKeyResponseData = { - key_id: string; - key: string; -}; -declare type ActionsGetSecretEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type ActionsGetSecretRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/secrets/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetSecretResponseData = { - name: string; - created_at: string; - updated_at: string; -}; -declare type ActionsCreateOrUpdateSecretForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; - /** - * Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get your public key](https://developer.github.com/v3/actions/secrets/#get-your-public-key) endpoint. - */ - encrypted_value?: string; - /** - * ID of the key you used to encrypt the secret. - */ - key_id?: string; -}; -declare type ActionsCreateOrUpdateSecretForRepoRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/actions/secrets/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsDeleteSecretFromRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type ActionsDeleteSecretFromRepoRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/secrets/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListRepoWorkflowsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/workflows"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowsResponseDataWorkflowsItem = { - id: number; - node_id: string; - name: string; - path: string; - state: string; - created_at: string; - updated_at: string; - url: string; - html_url: string; - badge_url: string; -}; -declare type ActionsListRepoWorkflowsResponseData = { - total_count: number; - workflows: Array; -}; -declare type ActionsGetWorkflowEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * workflow_id parameter - */ - workflow_id: number; -}; -declare type ActionsGetWorkflowRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/workflows/:workflow_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowResponseData = { - id: number; - node_id: string; - name: string; - path: string; - state: string; - created_at: string; - updated_at: string; - url: string; - html_url: string; - badge_url: string; -}; -declare type ActionsListWorkflowRunsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * workflow_id parameter - */ - workflow_id: number; - /** - * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. - */ - actor?: string; - /** - * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. - */ - branch?: string; - /** - * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation. - */ - event?: string; - /** - * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." - */ - status?: "completed" | "status" | "conclusion"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListWorkflowRunsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - private: boolean; - owner: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner; - html_url: string; - description: null; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter = { - name: string; - email: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor = { - name: string; - email: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommit = { - id: string; - tree_id: string; - message: string; - timestamp: string; - author: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor; - committer: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItem = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - run_number: number; - event: string; - status: string; - conclusion: null; - url: string; - html_url: string; - pull_requests: Array; - created_at: string; - updated_at: string; - jobs_url: string; - logs_url: string; - check_suite_url: string; - artifacts_url: string; - cancel_url: string; - rerun_url: string; - workflow_url: string; - head_commit: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommit; - repository: ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepository; - head_repository: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepository; -}; -declare type ActionsListWorkflowRunsResponseData = { - total_count: number; - workflow_runs: Array; -}; -declare type IssuesListAssigneesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListAssigneesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/assignees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListAssigneesResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListAssigneesResponseData = Array; -declare type IssuesCheckAssigneeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * assignee parameter - */ - assignee: string; -}; -declare type IssuesCheckAssigneeRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/assignees/:assignee"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposEnableAutomatedSecurityFixesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"london">; -declare type ReposEnableAutomatedSecurityFixesRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/automated-security-fixes"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDisableAutomatedSecurityFixesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"london">; -declare type ReposDisableAutomatedSecurityFixesRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/automated-security-fixes"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListBranchesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. - */ - protected?: boolean; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListBranchesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListBranchesResponseDataItemProtectionRequiredStatusChecks = { - enforcement_level: string; - contexts: Array; -}; -declare type ReposListBranchesResponseDataItemProtection = { - enabled: boolean; - required_status_checks: ReposListBranchesResponseDataItemProtectionRequiredStatusChecks; -}; -declare type ReposListBranchesResponseDataItemCommit = { - sha: string; - url: string; -}; -declare type ReposListBranchesResponseDataItem = { - name: string; - commit: ReposListBranchesResponseDataItemCommit; - protected: boolean; - protection: ReposListBranchesResponseDataItemProtection; - protection_url: string; -}; -declare type ReposListBranchesResponseData = Array; -declare type ReposGetBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetBranchResponseDataProtectionRequiredStatusChecks = { - enforcement_level: string; - contexts: Array; -}; -declare type ReposGetBranchResponseDataProtection = { - enabled: boolean; - required_status_checks: ReposGetBranchResponseDataProtectionRequiredStatusChecks; -}; -declare type ReposGetBranchResponseDataLinks = { - html: string; - self: string; -}; -declare type ReposGetBranchResponseDataCommitCommitter = { - gravatar_id: string; - avatar_url: string; - url: string; - id: number; - login: string; -}; -declare type ReposGetBranchResponseDataCommitParentsItem = { - sha: string; - url: string; -}; -declare type ReposGetBranchResponseDataCommitAuthor = { - gravatar_id: string; - avatar_url: string; - url: string; - id: number; - login: string; -}; -declare type ReposGetBranchResponseDataCommitCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposGetBranchResponseDataCommitCommitCommitter = { - name: string; - date: string; - email: string; -}; -declare type ReposGetBranchResponseDataCommitCommitTree = { - sha: string; - url: string; -}; -declare type ReposGetBranchResponseDataCommitCommitAuthor = { - name: string; - date: string; - email: string; -}; -declare type ReposGetBranchResponseDataCommitCommit = { - author: ReposGetBranchResponseDataCommitCommitAuthor; - url: string; - message: string; - tree: ReposGetBranchResponseDataCommitCommitTree; - committer: ReposGetBranchResponseDataCommitCommitCommitter; - verification: ReposGetBranchResponseDataCommitCommitVerification; -}; -declare type ReposGetBranchResponseDataCommit = { - sha: string; - node_id: string; - commit: ReposGetBranchResponseDataCommitCommit; - author: ReposGetBranchResponseDataCommitAuthor; - parents: Array; - url: string; - committer: ReposGetBranchResponseDataCommitCommitter; -}; -declare type ReposGetBranchResponseData = { - name: string; - commit: ReposGetBranchResponseDataCommit; - _links: ReposGetBranchResponseDataLinks; - protected: boolean; - protection: ReposGetBranchResponseDataProtection; - protection_url: string; -}; -declare type ReposGetBranchProtectionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetBranchProtectionRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetBranchProtectionResponseDataAllowDeletions = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataAllowForcePushes = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRequiredLinearHistory = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsAppsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsAppsItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsAppsItem = { - id: number; - slug: string; - node_id: string; - owner: ReposGetBranchProtectionResponseDataRestrictionsAppsItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposGetBranchProtectionResponseDataRestrictionsAppsItemPermissions; - events: Array; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRestrictions = { - url: string; - users_url: string; - teams_url: string; - apps_url: string; - users: Array; - teams: Array; - apps: Array; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviews = { - url: string; - dismissal_restrictions: ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposGetBranchProtectionResponseDataEnforceAdmins = { - url: string; - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRequiredStatusChecks = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposGetBranchProtectionResponseData = { - url: string; - required_status_checks: ReposGetBranchProtectionResponseDataRequiredStatusChecks; - enforce_admins: ReposGetBranchProtectionResponseDataEnforceAdmins; - required_pull_request_reviews: ReposGetBranchProtectionResponseDataRequiredPullRequestReviews; - restrictions: ReposGetBranchProtectionResponseDataRestrictions; - required_linear_history: ReposGetBranchProtectionResponseDataRequiredLinearHistory; - allow_force_pushes: ReposGetBranchProtectionResponseDataAllowForcePushes; - allow_deletions: ReposGetBranchProtectionResponseDataAllowDeletions; -}; -declare type ReposUpdateBranchProtectionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * Require status checks to pass before merging. Set to `null` to disable. - */ - required_status_checks: ReposUpdateBranchProtectionParamsRequiredStatusChecks | null; - /** - * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. - */ - enforce_admins: boolean | null; - /** - * Require at least one approving review on a pull request, before merging. Set to `null` to disable. - */ - required_pull_request_reviews: ReposUpdateBranchProtectionParamsRequiredPullRequestReviews | null; - /** - * 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. - */ - restrictions: ReposUpdateBranchProtectionParamsRestrictions | null; - /** - * 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. - */ - required_linear_history?: boolean; - /** - * 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_force_pushes?: boolean | null; - /** - * 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. - */ - allow_deletions?: boolean; -}; -declare type ReposUpdateBranchProtectionRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateBranchProtectionResponseDataAllowDeletions = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataAllowForcePushes = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredLinearHistory = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsAppsItem = { - id: number; - slug: string; - node_id: string; - owner: ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemPermissions; - events: Array; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictions = { - url: string; - users_url: string; - teams_url: string; - apps_url: string; - users: Array; - teams: Array; - apps: Array; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviews = { - url: string; - dismissal_restrictions: ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposUpdateBranchProtectionResponseDataEnforceAdmins = { - url: string; - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredStatusChecks = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposUpdateBranchProtectionResponseData = { - url: string; - required_status_checks: ReposUpdateBranchProtectionResponseDataRequiredStatusChecks; - enforce_admins: ReposUpdateBranchProtectionResponseDataEnforceAdmins; - required_pull_request_reviews: ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviews; - restrictions: ReposUpdateBranchProtectionResponseDataRestrictions; - required_linear_history: ReposUpdateBranchProtectionResponseDataRequiredLinearHistory; - allow_force_pushes: ReposUpdateBranchProtectionResponseDataAllowForcePushes; - allow_deletions: ReposUpdateBranchProtectionResponseDataAllowDeletions; -}; -declare type ReposRemoveBranchProtectionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveBranchProtectionRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchAdminEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchAdminEnforcementRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchAdminEnforcementResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposAddProtectedBranchAdminEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposAddProtectedBranchAdminEnforcementRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchAdminEnforcementResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposRemoveProtectedBranchAdminEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchAdminEnforcementRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseData = { - url: string; - dismissal_restrictions: ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * 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. - */ - dismissal_restrictions?: ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions; - /** - * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. - */ - dismiss_stale_reviews?: boolean; - /** - * Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed. - */ - require_code_owner_reviews?: boolean; - /** - * Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6. - */ - required_approving_review_count?: number; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseData = { - url: string; - dismissal_restrictions: ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredSignaturesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -} & RequiredPreview<"zzzax">; -declare type ReposGetProtectedBranchRequiredSignaturesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredSignaturesResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposAddProtectedBranchRequiredSignaturesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -} & RequiredPreview<"zzzax">; -declare type ReposAddProtectedBranchRequiredSignaturesRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchRequiredSignaturesResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposRemoveProtectedBranchRequiredSignaturesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -} & RequiredPreview<"zzzax">; -declare type ReposRemoveProtectedBranchRequiredSignaturesRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchRequiredStatusChecksRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredStatusChecksResponseData = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposUpdateProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * Require branches to be up to date before merging. - */ - strict?: boolean; - /** - * The list of status checks to require in order to merge into this branch - */ - contexts?: string[]; -}; -declare type ReposUpdateProtectedBranchRequiredStatusChecksRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateProtectedBranchRequiredStatusChecksResponseData = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposListProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * contexts parameter - */ - contexts: string[]; -}; -declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * contexts parameter - */ - contexts: string[]; -}; -declare type ReposAddProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * contexts parameter - */ - contexts: string[]; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposGetProtectedBranchRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchRestrictionsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataAppsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataAppsItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataAppsItem = { - id: number; - slug: string; - node_id: string; - owner: ReposGetProtectedBranchRestrictionsResponseDataAppsItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposGetProtectedBranchRestrictionsResponseDataAppsItemPermissions; - events: Array; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetProtectedBranchRestrictionsResponseData = { - url: string; - users_url: string; - teams_url: string; - apps_url: string; - users: Array; - teams: Array; - apps: Array; -}; -declare type ReposRemoveProtectedBranchRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetAppsWithAccessToProtectedBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposGetAppsWithAccessToProtectedBranchResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposGetAppsWithAccessToProtectedBranchResponseDataItemPermissions; - events: Array; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseData = Array; -declare type ReposReplaceProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * apps parameter - */ - apps: string[]; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposReplaceProtectedBranchAppRestrictionsResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposReplaceProtectedBranchAppRestrictionsResponseDataItemPermissions; - events: Array; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseData = Array; -declare type ReposAddProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * apps parameter - */ - apps: string[]; -}; -declare type ReposAddProtectedBranchAppRestrictionsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposAddProtectedBranchAppRestrictionsResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposAddProtectedBranchAppRestrictionsResponseDataItemPermissions; - events: Array; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseData = Array; -declare type ReposRemoveProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * apps parameter - */ - apps: string[]; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposRemoveProtectedBranchAppRestrictionsResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposRemoveProtectedBranchAppRestrictionsResponseDataItemPermissions; - events: Array; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseData = Array; -declare type ReposGetTeamsWithAccessToProtectedBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetTeamsWithAccessToProtectedBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetTeamsWithAccessToProtectedBranchResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetTeamsWithAccessToProtectedBranchResponseData = Array; -declare type ReposReplaceProtectedBranchTeamRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * teams parameter - */ - teams: string[]; -}; -declare type ReposReplaceProtectedBranchTeamRestrictionsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchTeamRestrictionsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposReplaceProtectedBranchTeamRestrictionsResponseData = Array; -declare type ReposAddProtectedBranchTeamRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * teams parameter - */ - teams: string[]; -}; -declare type ReposAddProtectedBranchTeamRestrictionsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchTeamRestrictionsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposAddProtectedBranchTeamRestrictionsResponseData = Array; -declare type ReposRemoveProtectedBranchTeamRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * teams parameter - */ - teams: string[]; -}; -declare type ReposRemoveProtectedBranchTeamRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchTeamRestrictionsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposRemoveProtectedBranchTeamRestrictionsResponseData = Array; -declare type ReposGetUsersWithAccessToProtectedBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetUsersWithAccessToProtectedBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetUsersWithAccessToProtectedBranchResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetUsersWithAccessToProtectedBranchResponseData = Array; -declare type ReposReplaceProtectedBranchUserRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * users parameter - */ - users: string[]; -}; -declare type ReposReplaceProtectedBranchUserRestrictionsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchUserRestrictionsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposReplaceProtectedBranchUserRestrictionsResponseData = Array; -declare type ReposAddProtectedBranchUserRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * users parameter - */ - users: string[]; -}; -declare type ReposAddProtectedBranchUserRestrictionsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchUserRestrictionsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddProtectedBranchUserRestrictionsResponseData = Array; -declare type ReposRemoveProtectedBranchUserRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * users parameter - */ - users: string[]; -}; -declare type ReposRemoveProtectedBranchUserRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchUserRestrictionsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposRemoveProtectedBranchUserRestrictionsResponseData = Array; -declare type ChecksCreateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the check. For example, "code-coverage". - */ - name: string; - /** - * The SHA of the commit. - */ - head_sha: string; - /** - * 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. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * 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`. - */ - started_at?: string; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. 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`. Only GitHub can change a check run conclusion to `stale`. - */ - conclusion?: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required"; - /** - * 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`. - */ - completed_at?: string; - /** - * 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://developer.github.com/v3/checks/runs/#output-object) description. - */ - output?: ChecksCreateParamsOutput; - /** - * 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://developer.github.com/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." - */ - actions?: ChecksCreateParamsActions[]; -} & RequiredPreview<"antiope">; -declare type ChecksCreateRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/check-runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksCreateResponseDataPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksCreateResponseDataPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksCreateResponseDataPullRequestsItemBaseRepo; -}; -declare type ChecksCreateResponseDataPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksCreateResponseDataPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksCreateResponseDataPullRequestsItemHeadRepo; -}; -declare type ChecksCreateResponseDataPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksCreateResponseDataPullRequestsItemHead; - base: ChecksCreateResponseDataPullRequestsItemBase; -}; -declare type ChecksCreateResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksCreateResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksCreateResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksCreateResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksCreateResponseDataAppPermissions; - events: Array; -}; -declare type ChecksCreateResponseDataCheckSuite = { - id: number; -}; -declare type ChecksCreateResponseDataOutput = { - title: string; - summary: string; - text: string; - annotations_count?: number; - annotations_url?: string; -}; -declare type ChecksCreateResponseData = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: null | string; - started_at: string; - completed_at: null | string; - output: ChecksCreateResponseDataOutput; - name: string; - check_suite: ChecksCreateResponseDataCheckSuite; - app: ChecksCreateResponseDataApp; - pull_requests: Array; -}; -declare type ChecksUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_run_id parameter - */ - check_run_id: number; - /** - * The name of the check. For example, "code-coverage". - */ - name?: string; - /** - * The URL of the integrator's site that has the full details of the check. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - started_at?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. - * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. Only GitHub can change a check run conclusion to `stale`. - */ - conclusion?: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required"; - /** - * 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`. - */ - completed_at?: string; - /** - * 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://developer.github.com/v3/checks/runs/#output-object-1) description. - */ - output?: ChecksUpdateParamsOutput; - /** - * 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://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." - */ - actions?: ChecksUpdateParamsActions[]; -} & RequiredPreview<"antiope">; -declare type ChecksUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/check-runs/:check_run_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksUpdateResponseDataPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksUpdateResponseDataPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksUpdateResponseDataPullRequestsItemBaseRepo; -}; -declare type ChecksUpdateResponseDataPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksUpdateResponseDataPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksUpdateResponseDataPullRequestsItemHeadRepo; -}; -declare type ChecksUpdateResponseDataPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksUpdateResponseDataPullRequestsItemHead; - base: ChecksUpdateResponseDataPullRequestsItemBase; -}; -declare type ChecksUpdateResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksUpdateResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksUpdateResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksUpdateResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksUpdateResponseDataAppPermissions; - events: Array; -}; -declare type ChecksUpdateResponseDataCheckSuite = { - id: number; -}; -declare type ChecksUpdateResponseDataOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksUpdateResponseData = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksUpdateResponseDataOutput; - name: string; - check_suite: ChecksUpdateResponseDataCheckSuite; - app: ChecksUpdateResponseDataApp; - pull_requests: Array; -}; -declare type ChecksGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_run_id parameter - */ - check_run_id: number; -} & RequiredPreview<"antiope">; -declare type ChecksGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-runs/:check_run_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksGetResponseDataPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksGetResponseDataPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksGetResponseDataPullRequestsItemBaseRepo; -}; -declare type ChecksGetResponseDataPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksGetResponseDataPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksGetResponseDataPullRequestsItemHeadRepo; -}; -declare type ChecksGetResponseDataPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksGetResponseDataPullRequestsItemHead; - base: ChecksGetResponseDataPullRequestsItemBase; -}; -declare type ChecksGetResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksGetResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksGetResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksGetResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksGetResponseDataAppPermissions; - events: Array; -}; -declare type ChecksGetResponseDataCheckSuite = { - id: number; -}; -declare type ChecksGetResponseDataOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksGetResponseData = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksGetResponseDataOutput; - name: string; - check_suite: ChecksGetResponseDataCheckSuite; - app: ChecksGetResponseDataApp; - pull_requests: Array; -}; -declare type ChecksListAnnotationsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_run_id parameter - */ - check_run_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListAnnotationsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListAnnotationsResponseDataItem = { - path: string; - start_line: number; - end_line: number; - start_column: number; - end_column: number; - annotation_level: string; - title: string; - message: string; - raw_details: string; -}; -declare type ChecksListAnnotationsResponseData = Array; -declare type ChecksCreateSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The sha of the head commit. - */ - head_sha: string; -} & RequiredPreview<"antiope">; -declare type ChecksCreateSuiteRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/check-suites"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksCreateSuiteResponseDataRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksCreateSuiteResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksCreateSuiteResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksCreateSuiteResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksCreateSuiteResponseDataRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksCreateSuiteResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksCreateSuiteResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksCreateSuiteResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksCreateSuiteResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksCreateSuiteResponseDataAppPermissions; - events: Array; -}; -declare type ChecksCreateSuiteResponseData = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksCreateSuiteResponseDataApp; - repository: ChecksCreateSuiteResponseDataRepository; -}; -declare type ChecksSetSuitesPreferencesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/v3/checks/suites/#auto_trigger_checks-object) description for details. - */ - auto_trigger_checks?: ChecksSetSuitesPreferencesParamsAutoTriggerChecks[]; -} & RequiredPreview<"antiope">; -declare type ChecksSetSuitesPreferencesRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/check-suites/preferences"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksSetSuitesPreferencesResponseDataRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksSetSuitesPreferencesResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksSetSuitesPreferencesResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksSetSuitesPreferencesResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksSetSuitesPreferencesResponseDataRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksSetSuitesPreferencesResponseDataPreferencesAutoTriggerChecksItem = { - app_id: number; - setting: boolean; -}; -declare type ChecksSetSuitesPreferencesResponseDataPreferences = { - auto_trigger_checks: Array; -}; -declare type ChecksSetSuitesPreferencesResponseData = { - preferences: ChecksSetSuitesPreferencesResponseDataPreferences; - repository: ChecksSetSuitesPreferencesResponseDataRepository; -}; -declare type ChecksGetSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_suite_id parameter - */ - check_suite_id: number; -} & RequiredPreview<"antiope">; -declare type ChecksGetSuiteRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-suites/:check_suite_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksGetSuiteResponseDataRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksGetSuiteResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksGetSuiteResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksGetSuiteResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksGetSuiteResponseDataRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksGetSuiteResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksGetSuiteResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksGetSuiteResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksGetSuiteResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksGetSuiteResponseDataAppPermissions; - events: Array; -}; -declare type ChecksGetSuiteResponseData = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksGetSuiteResponseDataApp; - repository: ChecksGetSuiteResponseDataRepository; -}; -declare type ChecksListForSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_suite_id parameter - */ - check_suite_id: number; - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListForSuiteRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBaseRepo; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHeadRepo; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHead; - base: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBase; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksListForSuiteResponseDataCheckRunsItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksListForSuiteResponseDataCheckRunsItemAppPermissions; - events: Array; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemCheckSuite = { - id: number; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItem = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksListForSuiteResponseDataCheckRunsItemOutput; - name: string; - check_suite: ChecksListForSuiteResponseDataCheckRunsItemCheckSuite; - app: ChecksListForSuiteResponseDataCheckRunsItemApp; - pull_requests: Array; -}; -declare type ChecksListForSuiteResponseData = { - total_count: number; - check_runs: Array; -}; -declare type ChecksRerequestSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_suite_id parameter - */ - check_suite_id: number; -} & RequiredPreview<"antiope">; -declare type ChecksRerequestSuiteRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodeScanningListAlertsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Set to `closed` to list only closed code scanning alerts. - */ - state?: string; - /** - * Returns a list of code scanning alerts for a specific brach reference. The `ref` must be formatted as `heads/`. - */ - ref?: string; -}; -declare type CodeScanningListAlertsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/code-scanning/alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodeScanningListAlertsForRepoResponseDataItem = { - rule_id: string; - rule_severity: string; - rule_description: string; - tool: string; - created_at: string; - open: boolean; - closed_by: null; - closed_at: null; - url: string; - html_url: string; -}; -declare type CodeScanningListAlertsForRepoResponseData = Array; -declare type CodeScanningGetAlertEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * alert_id parameter - */ - alert_id: number; -}; -declare type CodeScanningGetAlertRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/code-scanning/alerts/:alert_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodeScanningGetAlertResponseData = { - rule_id: string; - rule_severity: string; - rule_description: string; - tool: string; - created_at: string; - open: boolean; - closed_by: null; - closed_at: null; - url: string; - html_url: string; -}; -declare type ReposListCollaboratorsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCollaboratorsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/collaborators"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCollaboratorsResponseDataItemPermissions = { - pull: boolean; - push: boolean; - admin: boolean; -}; -declare type ReposListCollaboratorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - permissions: ReposListCollaboratorsResponseDataItemPermissions; -}; -declare type ReposListCollaboratorsResponseData = Array; -declare type ReposCheckCollaboratorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; -}; -declare type ReposCheckCollaboratorRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddCollaboratorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin" | "maintain" | "triage"; -}; -declare type ReposAddCollaboratorRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddCollaboratorResponseDataInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddCollaboratorResponseDataInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddCollaboratorResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddCollaboratorResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposAddCollaboratorResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposAddCollaboratorResponseData = { - id: number; - repository: ReposAddCollaboratorResponseDataRepository; - invitee: ReposAddCollaboratorResponseDataInvitee; - inviter: ReposAddCollaboratorResponseDataInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type ReposRemoveCollaboratorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; -}; -declare type ReposRemoveCollaboratorRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCollaboratorPermissionLevelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; -}; -declare type ReposGetCollaboratorPermissionLevelRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/collaborators/:username/permission"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCollaboratorPermissionLevelResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCollaboratorPermissionLevelResponseData = { - permission: string; - user: ReposGetCollaboratorPermissionLevelResponseDataUser; -}; -declare type ReposListCommitCommentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCommitCommentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommitCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommitCommentsResponseDataItem = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposListCommitCommentsResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type ReposListCommitCommentsResponseData = Array; -declare type ReposGetCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type ReposGetCommitCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCommitCommentResponseData = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposGetCommitCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type ReposUpdateCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The contents of the comment - */ - body: string; -}; -declare type ReposUpdateCommitCommentRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateCommitCommentResponseData = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposUpdateCommitCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type ReposDeleteCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type ReposDeleteCommitCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForCommitCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForCommitCommentResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForCommitCommentResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForCommitCommentResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForCommitCommentResponseData = Array; -declare type ReactionsCreateForCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForCommitCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForCommitCommentResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForCommitCommentResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForCommitCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommitsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`). - */ - sha?: string; - /** - * Only commits containing this file path will be returned. - */ - path?: string; - /** - * GitHub login or email address by which to filter by commit author. - */ - author?: string; - /** - * Only commits after 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`. - */ - since?: string; - /** - * 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`. - */ - until?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCommitsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommitsResponseDataItemParentsItem = { - url: string; - sha: string; -}; -declare type ReposListCommitsResponseDataItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommitsResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommitsResponseDataItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposListCommitsResponseDataItemCommitTree = { - url: string; - sha: string; -}; -declare type ReposListCommitsResponseDataItemCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposListCommitsResponseDataItemCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposListCommitsResponseDataItemCommit = { - url: string; - author: ReposListCommitsResponseDataItemCommitAuthor; - committer: ReposListCommitsResponseDataItemCommitCommitter; - message: string; - tree: ReposListCommitsResponseDataItemCommitTree; - comment_count: number; - verification: ReposListCommitsResponseDataItemCommitVerification; -}; -declare type ReposListCommitsResponseDataItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposListCommitsResponseDataItemCommit; - author: ReposListCommitsResponseDataItemAuthor; - committer: ReposListCommitsResponseDataItemCommitter; - parents: Array; -}; -declare type ReposListCommitsResponseData = Array; -declare type ReposListBranchesForHeadCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; -} & RequiredPreview<"groot">; -declare type ReposListBranchesForHeadCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListBranchesForHeadCommitResponseDataItemCommit = { - sha: string; - url: string; -}; -declare type ReposListBranchesForHeadCommitResponseDataItem = { - name: string; - commit: ReposListBranchesForHeadCommitResponseDataItemCommit; - protected: boolean; -}; -declare type ReposListBranchesForHeadCommitResponseData = Array; -declare type ReposListCommentsForCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCommentsForCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:commit_sha/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommentsForCommitResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommentsForCommitResponseDataItem = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposListCommentsForCommitResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type ReposListCommentsForCommitResponseData = Array; -declare type ReposCreateCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; - /** - * The contents of the comment. - */ - body: string; - /** - * Relative path of the file to comment on. - */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - /** - * **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. - */ - line?: number; -}; -declare type ReposCreateCommitCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/commits/:commit_sha/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateCommitCommentResponseData = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposCreateCommitCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"groot">; -declare type ReposListPullRequestsAssociatedWithCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:commit_sha/pulls"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksStatuses = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksCommits = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComment = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComments = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksComments = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksIssue = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksHtml = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksSelf = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinks = { - self: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksSelf; - html: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksHtml; - issue: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksIssue; - comments: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksComments; - review_comments: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComments; - review_comment: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComment; - commits: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksCommits; - statuses: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksStatuses; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBase = { - label: string; - ref: string; - sha: string; - user: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseUser; - repo: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepo; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHead = { - label: string; - ref: string; - sha: string; - user: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadUser; - repo: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepo; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItem = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: ReposListPullRequestsAssociatedWithCommitResponseDataItemUser; - body: string; - labels: Array; - milestone: ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: ReposListPullRequestsAssociatedWithCommitResponseDataItemAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: ReposListPullRequestsAssociatedWithCommitResponseDataItemHead; - base: ReposListPullRequestsAssociatedWithCommitResponseDataItemBase; - _links: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinks; - author_association: string; - draft: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseData = Array; -declare type ReposGetCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type ReposGetCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCommitResponseDataFilesItem = { - filename: string; - additions: number; - deletions: number; - changes: number; - status: string; - raw_url: string; - blob_url: string; - patch: string; -}; -declare type ReposGetCommitResponseDataStats = { - additions: number; - deletions: number; - total: number; -}; -declare type ReposGetCommitResponseDataParentsItem = { - url: string; - sha: string; -}; -declare type ReposGetCommitResponseDataCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCommitResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCommitResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposGetCommitResponseDataCommitTree = { - url: string; - sha: string; -}; -declare type ReposGetCommitResponseDataCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposGetCommitResponseDataCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposGetCommitResponseDataCommit = { - url: string; - author: ReposGetCommitResponseDataCommitAuthor; - committer: ReposGetCommitResponseDataCommitCommitter; - message: string; - tree: ReposGetCommitResponseDataCommitTree; - comment_count: number; - verification: ReposGetCommitResponseDataCommitVerification; -}; -declare type ReposGetCommitResponseData = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposGetCommitResponseDataCommit; - author: ReposGetCommitResponseDataAuthor; - committer: ReposGetCommitResponseDataCommitter; - parents: Array; - stats: ReposGetCommitResponseDataStats; - files: Array; -}; -declare type ChecksListForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/check-runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBaseRepo; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHeadRepo; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHead; - base: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBase; -}; -declare type ChecksListForRefResponseDataCheckRunsItemAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksListForRefResponseDataCheckRunsItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksListForRefResponseDataCheckRunsItemAppPermissions; - events: Array; -}; -declare type ChecksListForRefResponseDataCheckRunsItemCheckSuite = { - id: number; -}; -declare type ChecksListForRefResponseDataCheckRunsItemOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItem = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksListForRefResponseDataCheckRunsItemOutput; - name: string; - check_suite: ChecksListForRefResponseDataCheckRunsItemCheckSuite; - app: ChecksListForRefResponseDataCheckRunsItemApp; - pull_requests: Array; -}; -declare type ChecksListForRefResponseData = { - total_count: number; - check_runs: Array; -}; -declare type ChecksListSuitesForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Filters check suites by GitHub App `id`. - */ - app_id?: number; - /** - * Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/). - */ - check_name?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListSuitesForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/check-suites"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksListSuitesForRefResponseDataCheckSuitesItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksListSuitesForRefResponseDataCheckSuitesItemAppPermissions; - events: Array; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItem = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksListSuitesForRefResponseDataCheckSuitesItemApp; - repository: ChecksListSuitesForRefResponseDataCheckSuitesItemRepository; -}; -declare type ChecksListSuitesForRefResponseData = { - total_count: number; - check_suites: Array; -}; -declare type ReposGetCombinedStatusForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type ReposGetCombinedStatusForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/status"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCombinedStatusForRefResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCombinedStatusForRefResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetCombinedStatusForRefResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposGetCombinedStatusForRefResponseDataStatusesItem = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; -}; -declare type ReposGetCombinedStatusForRefResponseData = { - state: string; - statuses: Array; - sha: string; - total_count: number; - repository: ReposGetCombinedStatusForRefResponseDataRepository; - commit_url: string; - url: string; -}; -declare type ReposListStatusesForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListStatusesForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/statuses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListStatusesForRefResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListStatusesForRefResponseDataItem = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; - creator: ReposListStatusesForRefResponseDataItemCreator; -}; -declare type ReposListStatusesForRefResponseData = Array; -declare type CodesOfConductGetForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"scarlet-witch">; -declare type CodesOfConductGetForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/community/code_of_conduct"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetForRepoResponseData = { - key: string; - name: string; - url: string; - body: string; -}; -declare type ReposRetrieveCommunityProfileMetricsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposRetrieveCommunityProfileMetricsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/community/profile"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesReadme = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesLicense = { - name: string; - key: string; - spdx_id: string; - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesPullRequestTemplate = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesIssueTemplate = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesContributing = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesCodeOfConduct = { - name: string; - key: string; - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFiles = { - code_of_conduct: ReposRetrieveCommunityProfileMetricsResponseDataFilesCodeOfConduct; - contributing: ReposRetrieveCommunityProfileMetricsResponseDataFilesContributing; - issue_template: ReposRetrieveCommunityProfileMetricsResponseDataFilesIssueTemplate; - pull_request_template: ReposRetrieveCommunityProfileMetricsResponseDataFilesPullRequestTemplate; - license: ReposRetrieveCommunityProfileMetricsResponseDataFilesLicense; - readme: ReposRetrieveCommunityProfileMetricsResponseDataFilesReadme; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseData = { - health_percentage: number; - description: string; - documentation: boolean; - files: ReposRetrieveCommunityProfileMetricsResponseDataFiles; - updated_at: string; -}; -declare type ReposCompareCommitsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * base parameter - */ - base: string; - /** - * head parameter - */ - head: string; -}; -declare type ReposCompareCommitsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/compare/:base...:head"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCompareCommitsResponseDataFilesItem = { - sha: string; - filename: string; - status: string; - additions: number; - deletions: number; - changes: number; - blob_url: string; - raw_url: string; - contents_url: string; - patch: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemParentsItem = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataCommitsItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitTree = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommit = { - url: string; - author: ReposCompareCommitsResponseDataCommitsItemCommitAuthor; - committer: ReposCompareCommitsResponseDataCommitsItemCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseDataCommitsItemCommitTree; - comment_count: number; - verification: ReposCompareCommitsResponseDataCommitsItemCommitVerification; -}; -declare type ReposCompareCommitsResponseDataCommitsItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposCompareCommitsResponseDataCommitsItemCommit; - author: ReposCompareCommitsResponseDataCommitsItemAuthor; - committer: ReposCompareCommitsResponseDataCommitsItemCommitter; - parents: Array; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitParentsItem = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitTree = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommit = { - url: string; - author: ReposCompareCommitsResponseDataMergeBaseCommitCommitAuthor; - committer: ReposCompareCommitsResponseDataMergeBaseCommitCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseDataMergeBaseCommitCommitTree; - comment_count: number; - verification: ReposCompareCommitsResponseDataMergeBaseCommitCommitVerification; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommit = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposCompareCommitsResponseDataMergeBaseCommitCommit; - author: ReposCompareCommitsResponseDataMergeBaseCommitAuthor; - committer: ReposCompareCommitsResponseDataMergeBaseCommitCommitter; - parents: Array; -}; -declare type ReposCompareCommitsResponseDataBaseCommitParentsItem = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataBaseCommitAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitTree = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommit = { - url: string; - author: ReposCompareCommitsResponseDataBaseCommitCommitAuthor; - committer: ReposCompareCommitsResponseDataBaseCommitCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseDataBaseCommitCommitTree; - comment_count: number; - verification: ReposCompareCommitsResponseDataBaseCommitCommitVerification; -}; -declare type ReposCompareCommitsResponseDataBaseCommit = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposCompareCommitsResponseDataBaseCommitCommit; - author: ReposCompareCommitsResponseDataBaseCommitAuthor; - committer: ReposCompareCommitsResponseDataBaseCommitCommitter; - parents: Array; -}; -declare type ReposCompareCommitsResponseData = { - url: string; - html_url: string; - permalink_url: string; - diff_url: string; - patch_url: string; - base_commit: ReposCompareCommitsResponseDataBaseCommit; - merge_base_commit: ReposCompareCommitsResponseDataMergeBaseCommit; - status: string; - ahead_by: number; - behind_by: number; - total_commits: number; - commits: Array; - files: Array; -}; -declare type ReposGetContentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * path parameter - */ - path: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; -}; -declare type ReposGetContentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/contents/:path"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetContentsResponseDataItemLinks = { - self: string; - git: string; - html: string; -}; -declare type ReposGetContentsResponseDataItem = { - type: string; - size: number; - name: string; - path: string; - sha: string; - url: string; - git_url: string; - html_url: string; - download_url: string | null; - _links: ReposGetContentsResponseDataItemLinks; -}; -declare type ReposGetContentsResponseDataLinks = { - git: string; - self: string; - html: string; -}; -declare type ReposGetContentsResponseData = { - type: string; - encoding?: string; - size: number; - name: string; - path: string; - content?: string; - sha: string; - url: string; - git_url: string; - html_url: string; - download_url: string | null; - _links: ReposGetContentsResponseDataLinks; - target?: string; - submodule_git_url?: string; -} | Array; -declare type ReposCreateOrUpdateFileEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * path parameter - */ - path: string; - /** - * The commit message. - */ - message: string; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. - */ - sha?: string; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * The person that committed the file. Default: the authenticated user. - */ - committer?: ReposCreateOrUpdateFileParamsCommitter; - /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. - */ - author?: ReposCreateOrUpdateFileParamsAuthor; -}; -declare type ReposCreateOrUpdateFileRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/contents/:path"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitParentsItem = { - url: string; - html_url: string; - sha: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitTree = { - url: string; - sha: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitCommitter = { - date: string; - name: string; - email: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitAuthor = { - date: string; - name: string; - email: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommit = { - sha: string; - node_id: string; - url: string; - html_url: string; - author: ReposCreateOrUpdateFileResponseDataCommitAuthor; - committer: ReposCreateOrUpdateFileResponseDataCommitCommitter; - message: string; - tree: ReposCreateOrUpdateFileResponseDataCommitTree; - parents: Array; - verification: ReposCreateOrUpdateFileResponseDataCommitVerification; -}; -declare type ReposCreateOrUpdateFileResponseDataContentLinks = { - self: string; - git: string; - html: string; -}; -declare type ReposCreateOrUpdateFileResponseDataContent = { - name: string; - path: string; - sha: string; - size: number; - url: string; - html_url: string; - git_url: string; - download_url: string; - type: string; - _links: ReposCreateOrUpdateFileResponseDataContentLinks; -}; -declare type ReposCreateOrUpdateFileResponseData = { - content: ReposCreateOrUpdateFileResponseDataContent; - commit: ReposCreateOrUpdateFileResponseDataCommit; -}; -declare type ReposDeleteFileEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * path parameter - */ - path: string; - /** - * The commit message. - */ - message: string; - /** - * The blob SHA of the file being replaced. - */ - sha: string; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * object containing information about the committer. - */ - committer?: ReposDeleteFileParamsCommitter; - /** - * object containing information about the author. - */ - author?: ReposDeleteFileParamsAuthor; -}; -declare type ReposDeleteFileRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/contents/:path"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDeleteFileResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposDeleteFileResponseDataCommitParentsItem = { - url: string; - html_url: string; - sha: string; -}; -declare type ReposDeleteFileResponseDataCommitTree = { - url: string; - sha: string; -}; -declare type ReposDeleteFileResponseDataCommitCommitter = { - date: string; - name: string; - email: string; -}; -declare type ReposDeleteFileResponseDataCommitAuthor = { - date: string; - name: string; - email: string; -}; -declare type ReposDeleteFileResponseDataCommit = { - sha: string; - node_id: string; - url: string; - html_url: string; - author: ReposDeleteFileResponseDataCommitAuthor; - committer: ReposDeleteFileResponseDataCommitCommitter; - message: string; - tree: ReposDeleteFileResponseDataCommitTree; - parents: Array; - verification: ReposDeleteFileResponseDataCommitVerification; -}; -declare type ReposDeleteFileResponseData = { - content: null; - commit: ReposDeleteFileResponseDataCommit; -}; -declare type ReposListContributorsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Set to `1` or `true` to include anonymous contributors in results. - */ - anon?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListContributorsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/contributors"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListContributorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - contributions: number; -}; -declare type ReposListContributorsResponseData = Array; -declare type ReposListDeploymentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The SHA recorded at creation time. - */ - sha?: string; - /** - * The name of the ref. This can be a branch, tag, or SHA. - */ - ref?: string; - /** - * The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - /** - * The name of the environment that was deployed to (e.g., `staging` or `production`). - */ - environment?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDeploymentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeploymentsResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListDeploymentsResponseDataItemPayload = { - deploy: string; -}; -declare type ReposListDeploymentsResponseDataItem = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposListDeploymentsResponseDataItemPayload; - original_environment: string; - environment: string; - description: string; - creator: ReposListDeploymentsResponseDataItemCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; -}; -declare type ReposListDeploymentsResponseData = Array; -declare type ReposCreateDeploymentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The ref to deploy. This can be a branch, tag, or SHA. - */ - ref: string; - /** - * Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - /** - * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. - */ - auto_merge?: boolean; - /** - * The [status](https://developer.github.com/v3/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. - */ - required_contexts?: string[]; - /** - * JSON payload with extra information about the deployment. - */ - payload?: string; - /** - * Name for the target deployment environment (e.g., `production`, `staging`, `qa`). - */ - environment?: string; - /** - * Short description of the deployment. - */ - description?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - transient_environment?: boolean; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - production_environment?: boolean; -}; -declare type ReposCreateDeploymentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/deployments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateDeploymentResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateDeploymentResponseDataPayload = { - deploy: string; -}; -declare type ReposCreateDeploymentResponseData = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposCreateDeploymentResponseDataPayload; - original_environment: string; - environment: string; - description: string; - creator: ReposCreateDeploymentResponseDataCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; -}; -declare type ReposGetDeploymentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; -}; -declare type ReposGetDeploymentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments/:deployment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDeploymentResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetDeploymentResponseDataPayload = { - deploy: string; -}; -declare type ReposGetDeploymentResponseData = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposGetDeploymentResponseDataPayload; - original_environment: string; - environment: string; - description: string; - creator: ReposGetDeploymentResponseDataCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; -}; -declare type ReposDeleteDeploymentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; -}; -declare type ReposDeleteDeploymentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/deployments/:deployment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeploymentStatusesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDeploymentStatusesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeploymentStatusesResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListDeploymentStatusesResponseDataItem = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposListDeploymentStatusesResponseDataItemCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; -}; -declare type ReposListDeploymentStatusesResponseData = Array; -declare type ReposCreateDeploymentStatusEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; - /** - * 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://developer.github.com/v3/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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - state: "error" | "failure" | "inactive" | "in_progress" | "queued" | "pending" | "success"; - /** - * 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`. - */ - target_url?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - log_url?: string; - /** - * A short description of the status. The maximum description length is 140 characters. - */ - description?: string; - /** - * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - environment?: "production" | "staging" | "qa"; - /** - * Sets the URL for accessing your environment. Default: `""` - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - environment_url?: string; - /** - * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - auto_inactive?: boolean; -}; -declare type ReposCreateDeploymentStatusRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateDeploymentStatusResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateDeploymentStatusResponseData = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposCreateDeploymentStatusResponseDataCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; -}; -declare type ReposGetDeploymentStatusEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; - /** - * status_id parameter - */ - status_id: number; -}; -declare type ReposGetDeploymentStatusRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDeploymentStatusResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetDeploymentStatusResponseData = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposGetDeploymentStatusResponseDataCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; -}; -declare type ReposCreateDispatchEventEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * **Required:** A custom webhook event name. - */ - event_type?: string; - /** - * JSON payload with extra information about the webhook event that your action or worklow may use. - */ - client_payload?: ReposCreateDispatchEventParamsClientPayload; -}; -declare type ReposCreateDispatchEventRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/dispatches"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDownloadsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDownloadsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/downloads"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDownloadsResponseDataItem = { - url: string; - html_url: string; - id: number; - name: string; - description: string; - size: number; - download_count: number; - content_type: string; -}; -declare type ReposListDownloadsResponseData = Array; -declare type ReposGetDownloadEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * download_id parameter - */ - download_id: number; -}; -declare type ReposGetDownloadRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/downloads/:download_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDownloadResponseData = { - url: string; - html_url: string; - id: number; - name: string; - description: string; - size: number; - download_count: number; - content_type: string; -}; -declare type ReposDeleteDownloadEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * download_id parameter - */ - download_id: number; -}; -declare type ReposDeleteDownloadRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/downloads/:download_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListRepoEventsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListRepoEventsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The sort order. Can be either `newest`, `oldest`, or `stargazers`. - */ - sort?: "newest" | "oldest" | "stargazers"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListForksRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForksResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ReposListForksResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListForksResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListForksResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListForksResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListForksResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ReposListForksResponseDataItemLicense; -}; -declare type ReposListForksResponseData = Array; -declare type ReposCreateForkEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Optional parameter to specify the organization name if forking into an organization. - */ - organization?: string; -}; -declare type ReposCreateForkRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateForkResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateForkResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateForkResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateForkResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateForkResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type GitCreateBlobEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The new blob's content. - */ - content: string; - /** - * The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. - */ - encoding?: string; -}; -declare type GitCreateBlobRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/blobs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateBlobResponseData = { - url: string; - sha: string; -}; -declare type GitGetBlobEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * file_sha parameter - */ - file_sha: string; -}; -declare type GitGetBlobRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/blobs/:file_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetBlobResponseData = { - content: string; - encoding: string; - url: string; - sha: string; - size: number; -}; -declare type GitCreateCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The commit message - */ - message: string; - /** - * The SHA of the tree object this commit points to - */ - tree: string; - /** - * 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. - */ - parents: string[]; - /** - * 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. - */ - author?: GitCreateCommitParamsAuthor; - /** - * 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. - */ - committer?: GitCreateCommitParamsCommitter; - /** - * 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. - */ - signature?: string; -}; -declare type GitCreateCommitRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateCommitResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitCreateCommitResponseDataParentsItem = { - url: string; - sha: string; -}; -declare type GitCreateCommitResponseDataTree = { - url: string; - sha: string; -}; -declare type GitCreateCommitResponseDataCommitter = { - date: string; - name: string; - email: string; -}; -declare type GitCreateCommitResponseDataAuthor = { - date: string; - name: string; - email: string; -}; -declare type GitCreateCommitResponseData = { - sha: string; - node_id: string; - url: string; - author: GitCreateCommitResponseDataAuthor; - committer: GitCreateCommitResponseDataCommitter; - message: string; - tree: GitCreateCommitResponseDataTree; - parents: Array; - verification: GitCreateCommitResponseDataVerification; -}; -declare type GitGetCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; -}; -declare type GitGetCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/commits/:commit_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetCommitResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitGetCommitResponseDataParentsItem = { - url: string; - sha: string; -}; -declare type GitGetCommitResponseDataTree = { - url: string; - sha: string; -}; -declare type GitGetCommitResponseDataCommitter = { - date: string; - name: string; - email: string; -}; -declare type GitGetCommitResponseDataAuthor = { - date: string; - name: string; - email: string; -}; -declare type GitGetCommitResponseData = { - sha: string; - url: string; - author: GitGetCommitResponseDataAuthor; - committer: GitGetCommitResponseDataCommitter; - message: string; - tree: GitGetCommitResponseDataTree; - parents: Array; - verification: GitGetCommitResponseDataVerification; -}; -declare type GitListMatchingRefsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GitListMatchingRefsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/matching-refs/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitListMatchingRefsResponseDataItemObject = { - type: string; - sha: string; - url: string; -}; -declare type GitListMatchingRefsResponseDataItem = { - ref: string; - node_id: string; - url: string; - object: GitListMatchingRefsResponseDataItemObject; -}; -declare type GitListMatchingRefsResponseData = Array; -declare type GitGetRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type GitGetRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/ref/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetRefResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitGetRefResponseData = { - ref: string; - node_id: string; - url: string; - object: GitGetRefResponseDataObject; -}; -declare type GitCreateRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - ref: string; - /** - * The SHA1 value for this reference. - */ - sha: string; -}; -declare type GitCreateRefRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/refs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateRefResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitCreateRefResponseData = { - ref: string; - node_id: string; - url: string; - object: GitCreateRefResponseDataObject; -}; -declare type GitUpdateRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * The SHA1 value to set this reference to - */ - sha: string; - /** - * 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. - */ - force?: boolean; -}; -declare type GitUpdateRefRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/git/refs/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitUpdateRefResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitUpdateRefResponseData = { - ref: string; - node_id: string; - url: string; - object: GitUpdateRefResponseDataObject; -}; -declare type GitDeleteRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type GitDeleteRefRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/git/refs/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateTagEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The tag's name. This is typically a version (e.g., "v0.0.1"). - */ - tag: string; - /** - * The tag message. - */ - message: string; - /** - * The SHA of the git object this is tagging. - */ - object: string; - /** - * The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. - */ - type: "commit" | "tree" | "blob"; - /** - * An object with information about the individual creating the tag. - */ - tagger?: GitCreateTagParamsTagger; -}; -declare type GitCreateTagRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/tags"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateTagResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitCreateTagResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitCreateTagResponseDataTagger = { - name: string; - email: string; - date: string; -}; -declare type GitCreateTagResponseData = { - node_id: string; - tag: string; - sha: string; - url: string; - message: string; - tagger: GitCreateTagResponseDataTagger; - object: GitCreateTagResponseDataObject; - verification: GitCreateTagResponseDataVerification; -}; -declare type GitGetTagEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * tag_sha parameter - */ - tag_sha: string; -}; -declare type GitGetTagRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/tags/:tag_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetTagResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitGetTagResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitGetTagResponseDataTagger = { - name: string; - email: string; - date: string; -}; -declare type GitGetTagResponseData = { - node_id: string; - tag: string; - sha: string; - url: string; - message: string; - tagger: GitGetTagResponseDataTagger; - object: GitGetTagResponseDataObject; - verification: GitGetTagResponseDataVerification; -}; -declare type GitCreateTreeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. - */ - tree: GitCreateTreeParamsTree[]; - /** - * The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted. - */ - base_tree?: string; -}; -declare type GitCreateTreeRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/trees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateTreeResponseDataTreeItem = { - path: string; - mode: string; - type: string; - size: number; - sha: string; - url: string; -}; -declare type GitCreateTreeResponseData = { - sha: string; - url: string; - tree: Array; -}; -declare type GitGetTreeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * tree_sha parameter - */ - tree_sha: string; - /** - * recursive parameter - */ - recursive?: "1"; -}; -declare type GitGetTreeRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/trees/:tree_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetTreeResponseDataTreeItem = { - path: string; - mode: string; - type: string; - size?: number; - sha: string; - url: string; -}; -declare type GitGetTreeResponseData = { - sha: string; - url: string; - tree: Array; - truncated: boolean; -}; -declare type ReposListHooksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListHooksRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListHooksResponseDataItemLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposListHooksResponseDataItemConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposListHooksResponseDataItem = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposListHooksResponseDataItemConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposListHooksResponseDataItemLastResponse; -}; -declare type ReposListHooksResponseData = Array; -declare type ReposCreateHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. - */ - name?: string; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). - */ - config: ReposCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type ReposCreateHookRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateHookResponseDataLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposCreateHookResponseDataConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposCreateHookResponseData = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposCreateHookResponseDataConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposCreateHookResponseDataLastResponse; -}; -declare type ReposGetHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposGetHookRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetHookResponseDataLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposGetHookResponseDataConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposGetHookResponseData = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposGetHookResponseDataConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposGetHookResponseDataLastResponse; -}; -declare type ReposUpdateHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). - */ - config?: ReposUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events. - */ - events?: string[]; - /** - * Determines a list of events to be added to the list of events that the Hook triggers for. - */ - add_events?: string[]; - /** - * Determines a list of events to be removed from the list of events that the Hook triggers for. - */ - remove_events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type ReposUpdateHookRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateHookResponseDataLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposUpdateHookResponseDataConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposUpdateHookResponseData = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposUpdateHookResponseDataConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposUpdateHookResponseDataLastResponse; -}; -declare type ReposDeleteHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposDeleteHookRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposPingHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposPingHookRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/hooks/:hook_id/pings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposTestPushHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposTestPushHookRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/hooks/:hook_id/tests"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartImportEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The URL of the originating repository. - */ - vcs_url: string; - /** - * The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. - */ - vcs?: "subversion" | "git" | "mercurial" | "tfvc"; - /** - * If authentication is required, the username to provide to `vcs_url`. - */ - vcs_username?: string; - /** - * If authentication is required, the password to provide to `vcs_url`. - */ - vcs_password?: string; - /** - * For a tfvc import, the name of the project that is being imported. - */ - tfvc_project?: string; -}; -declare type MigrationsStartImportRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartImportResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - percent: number; - commit_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; -}; -declare type MigrationsGetImportProgressEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type MigrationsGetImportProgressRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetImportProgressResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; -}; -declare type MigrationsUpdateImportEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The username to provide to the originating repository. - */ - vcs_username?: string; - /** - * The password to provide to the originating repository. - */ - vcs_password?: string; -}; -declare type MigrationsUpdateImportRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsUpdateImportResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - url: string; - html_url: string; - authors_url: string; - repository_url: string; - tfvc_project?: string; - status_text?: string; - has_large_files?: boolean; - large_files_size?: number; - large_files_count?: number; - authors_count?: number; - percent?: number; - commit_count?: number; -}; -declare type MigrationsCancelImportEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type MigrationsCancelImportRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetCommitAuthorsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step. - */ - since?: string; -}; -declare type MigrationsGetCommitAuthorsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/import/authors"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetCommitAuthorsResponseDataItem = { - id: number; - remote_id: string; - remote_name: string; - email: string; - name: string; - url: string; - import_url: string; -}; -declare type MigrationsGetCommitAuthorsResponseData = Array; -declare type MigrationsMapCommitAuthorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * author_id parameter - */ - author_id: number; - /** - * The new Git author email. - */ - email?: string; - /** - * The new Git author name. - */ - name?: string; -}; -declare type MigrationsMapCommitAuthorRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/import/authors/:author_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsMapCommitAuthorResponseData = { - id: number; - remote_id: string; - remote_name: string; - email: string; - name: string; - url: string; - import_url: string; -}; -declare type MigrationsGetLargeFilesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type MigrationsGetLargeFilesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/import/large_files"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetLargeFilesResponseDataItem = { - ref_name: string; - path: string; - oid: string; - size: number; -}; -declare type MigrationsGetLargeFilesResponseData = Array; -declare type MigrationsSetLfsPreferenceEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). - */ - use_lfs: "opt_in" | "opt_out"; -}; -declare type MigrationsSetLfsPreferenceRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/import/lfs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsSetLfsPreferenceResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; -}; -declare type AppsGetRepoInstallationEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetRepoInstallationRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/installation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetRepoInstallationResponseDataPermissions = { - checks: string; - metadata: string; - contents: string; -}; -declare type AppsGetRepoInstallationResponseDataAccount = { - login: string; - id: number; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsGetRepoInstallationResponseData = { - id: number; - account: AppsGetRepoInstallationResponseDataAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetRepoInstallationResponseDataPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type InteractionsGetRestrictionsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"sombra">; -declare type InteractionsGetRestrictionsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsGetRestrictionsForRepoResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsAddOrUpdateRestrictionsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. - */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; -} & RequiredPreview<"sombra">; -declare type InteractionsAddOrUpdateRestrictionsForRepoRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsAddOrUpdateRestrictionsForRepoResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsRemoveRestrictionsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"sombra">; -declare type InteractionsRemoveRestrictionsForRepoRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListInvitationsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListInvitationsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListInvitationsResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsResponseDataItemInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListInvitationsResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposListInvitationsResponseDataItem = { - id: number; - repository: ReposListInvitationsResponseDataItemRepository; - invitee: ReposListInvitationsResponseDataItemInvitee; - inviter: ReposListInvitationsResponseDataItemInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type ReposListInvitationsResponseData = Array; -declare type ReposDeleteInvitationEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * invitation_id parameter - */ - invitation_id: number; -}; -declare type ReposDeleteInvitationRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateInvitationEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * invitation_id parameter - */ - invitation_id: number; - /** - * The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`. - */ - permissions?: "read" | "write" | "maintain" | "triage" | "admin"; -}; -declare type ReposUpdateInvitationRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateInvitationResponseDataInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateInvitationResponseDataInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateInvitationResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateInvitationResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateInvitationResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposUpdateInvitationResponseData = { - id: number; - repository: ReposUpdateInvitationResponseDataRepository; - invitee: ReposUpdateInvitationResponseDataInvitee; - inviter: ReposUpdateInvitationResponseDataInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type IssuesListForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - milestone?: string; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. - */ - assignee?: string; - /** - * The user that created the issue. - */ - creator?: string; - /** - * A user that's mentioned in the issue. - */ - mentioned?: string; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForRepoResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListForRepoResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForRepoResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListForRepoResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListForRepoResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForRepoResponseDataItemUser; - labels: Array; - assignee: IssuesListForRepoResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListForRepoResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForRepoResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesListForRepoResponseData = Array; -declare type IssuesCreateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The title of the issue. - */ - title: string; - /** - * The contents of the issue. - */ - body?: string; - /** - * 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.**_ - */ - assignee?: string; - /** - * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ - */ - milestone?: number; - /** - * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ - */ - labels?: string[]; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesCreateRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateResponseDataClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesCreateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesCreateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesCreateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesCreateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesCreateResponseDataUser; - labels: Array; - assignee: IssuesCreateResponseDataAssignee; - assignees: Array; - milestone: IssuesCreateResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesCreateResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesCreateResponseDataClosedBy; -}; -declare type IssuesListCommentsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Either `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * Either `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListCommentsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListCommentsForRepoResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListCommentsForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesListCommentsForRepoResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type IssuesListCommentsForRepoResponseData = Array; -declare type IssuesGetCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type IssuesGetCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetCommentResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesGetCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type IssuesUpdateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The contents of the comment. - */ - body: string; -}; -declare type IssuesUpdateCommentRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/issues/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateCommentResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesUpdateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type IssuesDeleteCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type IssuesDeleteCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForIssueCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueCommentResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForIssueCommentResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForIssueCommentResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForIssueCommentResponseData = Array; -declare type ReactionsCreateForIssueCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForIssueCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForIssueCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForIssueCommentResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForIssueCommentResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForIssueCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForIssueCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListEventsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForRepoResponseDataItemIssuePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListEventsForRepoResponseDataItemIssueMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssue = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListEventsForRepoResponseDataItemIssueUser; - labels: Array; - assignee: IssuesListEventsForRepoResponseDataItemIssueAssignee; - assignees: Array; - milestone: IssuesListEventsForRepoResponseDataItemIssueMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListEventsForRepoResponseDataItemIssuePullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesListEventsForRepoResponseDataItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsForRepoResponseDataItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; - issue: IssuesListEventsForRepoResponseDataItemIssue; -}; -declare type IssuesListEventsForRepoResponseData = Array; -declare type IssuesGetEventEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * event_id parameter - */ - event_id: number; -}; -declare type IssuesGetEventRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/events/:event_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetEventResponseDataIssuePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesGetEventResponseDataIssueMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssueMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetEventResponseDataIssueMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesGetEventResponseDataIssueAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssueAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssueLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesGetEventResponseDataIssueUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssue = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesGetEventResponseDataIssueUser; - labels: Array; - assignee: IssuesGetEventResponseDataIssueAssignee; - assignees: Array; - milestone: IssuesGetEventResponseDataIssueMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesGetEventResponseDataIssuePullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesGetEventResponseDataActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseData = { - id: number; - node_id: string; - url: string; - actor: IssuesGetEventResponseDataActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; - issue: IssuesGetEventResponseDataIssue; -}; -declare type IssuesGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; -}; -declare type IssuesGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetResponseDataClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesGetResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesGetResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesGetResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesGetResponseDataUser; - labels: Array; - assignee: IssuesGetResponseDataAssignee; - assignees: Array; - milestone: IssuesGetResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesGetResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesGetResponseDataClosedBy; -}; -declare type IssuesUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The title of the issue. - */ - title?: string; - /** - * The contents of the issue. - */ - body?: string; - /** - * Login for the user that this issue should be assigned to. **This field is deprecated.** - */ - assignee?: string; - /** - * State of the issue. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ - */ - milestone?: number | null; - /** - * 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._ - */ - labels?: string[]; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/issues/:issue_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateResponseDataClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesUpdateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesUpdateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesUpdateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesUpdateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesUpdateResponseDataUser; - labels: Array; - assignee: IssuesUpdateResponseDataAssignee; - assignees: Array; - milestone: IssuesUpdateResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesUpdateResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesUpdateResponseDataClosedBy; -}; -declare type IssuesAddAssigneesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesAddAssigneesRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/assignees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesAddAssigneesResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesAddAssigneesResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesAddAssigneesResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesAddAssigneesResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesAddAssigneesResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesAddAssigneesResponseDataUser; - labels: Array; - assignee: IssuesAddAssigneesResponseDataAssignee; - assignees: Array; - milestone: IssuesAddAssigneesResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesAddAssigneesResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesRemoveAssigneesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesRemoveAssigneesRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/assignees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesRemoveAssigneesResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesRemoveAssigneesResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesRemoveAssigneesResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesRemoveAssigneesResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesRemoveAssigneesResponseDataUser; - labels: Array; - assignee: IssuesRemoveAssigneesResponseDataAssignee; - assignees: Array; - milestone: IssuesRemoveAssigneesResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesRemoveAssigneesResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesListCommentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListCommentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListCommentsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesListCommentsResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type IssuesListCommentsResponseData = Array; -declare type IssuesCreateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The contents of the comment. - */ - body: string; -}; -declare type IssuesCreateCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateCommentResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesCreateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type IssuesListEventsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListEventsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsResponseDataItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsResponseDataItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsResponseDataItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; -}; -declare type IssuesListEventsResponseData = Array; -declare type IssuesListLabelsOnIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListLabelsOnIssueRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsOnIssueResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListLabelsOnIssueResponseData = Array; -declare type IssuesAddLabelsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels: string[]; -}; -declare type IssuesAddLabelsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesAddLabelsResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesAddLabelsResponseData = Array; -declare type IssuesReplaceAllLabelsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels?: string[]; -}; -declare type IssuesReplaceAllLabelsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesReplaceAllLabelsResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesReplaceAllLabelsResponseData = Array; -declare type IssuesRemoveAllLabelsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; -}; -declare type IssuesRemoveAllLabelsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesRemoveLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * name parameter - */ - name: string; -}; -declare type IssuesRemoveLabelRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesRemoveLabelResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesRemoveLabelResponseData = Array; -declare type IssuesLockEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * 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` - */ - lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; -}; -declare type IssuesLockRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/issues/:issue_number/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUnlockEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; -}; -declare type IssuesUnlockRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForIssueRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForIssueResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForIssueResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForIssueResponseData = Array; -declare type ReactionsCreateForIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForIssueRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForIssueResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForIssueResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForIssueResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForIssueRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForTimelineEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"mockingbird">; -declare type IssuesListEventsForTimelineRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/timeline"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForTimelineResponseDataItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForTimelineResponseDataItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsForTimelineResponseDataItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; -}; -declare type IssuesListEventsForTimelineResponseData = Array; -declare type ReposListDeployKeysEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDeployKeysRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeployKeysResponseDataItem = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; -}; -declare type ReposListDeployKeysResponseData = Array; -declare type ReposAddDeployKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * A name for the key. - */ - title?: string; - /** - * The contents of the key. - */ - key: string; - /** - * 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/)." - */ - read_only?: boolean; -}; -declare type ReposAddDeployKeyRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddDeployKeyResponseData = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; -}; -declare type ReposGetDeployKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * key_id parameter - */ - key_id: number; -}; -declare type ReposGetDeployKeyRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDeployKeyResponseData = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; -}; -declare type ReposRemoveDeployKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * key_id parameter - */ - key_id: number; -}; -declare type ReposRemoveDeployKeyRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListLabelsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListLabelsForRepoResponseData = Array; -declare type IssuesCreateLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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.com](http://emoji-cheat-sheet.com/). - */ - name: string; - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color: string; - /** - * A short description of the label. - */ - description?: string; -}; -declare type IssuesCreateLabelRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateLabelResponseData = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesGetLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type IssuesGetLabelRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetLabelResponseData = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesUpdateLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; - /** - * 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.com](http://emoji-cheat-sheet.com/). - */ - new_name?: string; - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color?: string; - /** - * A short description of the label. - */ - description?: string; -}; -declare type IssuesUpdateLabelRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateLabelResponseData = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesDeleteLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type IssuesDeleteLabelRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListLanguagesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposListLanguagesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/languages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListLanguagesResponseData = { - C: number; - Python: number; -}; -declare type LicensesGetForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type LicensesGetForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/license"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type LicensesGetForRepoResponseDataLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type LicensesGetForRepoResponseDataLinks = { - self: string; - git: string; - html: string; -}; -declare type LicensesGetForRepoResponseData = { - name: string; - path: string; - sha: string; - size: number; - url: string; - html_url: string; - git_url: string; - download_url: string; - type: string; - content: string; - encoding: string; - _links: LicensesGetForRepoResponseDataLinks; - license: LicensesGetForRepoResponseDataLicense; -}; -declare type ReposMergeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the base branch that the head will be merged into. - */ - base: string; - /** - * The head to merge. This can be a branch name or a commit SHA1. - */ - head: string; - /** - * Commit message to use for the merge commit. If omitted, a default message will be used. - */ - commit_message?: string; -}; -declare type ReposMergeRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/merges"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposMergeResponseDataParentsItem = { - sha: string; - url: string; -}; -declare type ReposMergeResponseDataCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposMergeResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposMergeResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposMergeResponseDataCommitTree = { - sha: string; - url: string; -}; -declare type ReposMergeResponseDataCommitCommitter = { - name: string; - date: string; - email: string; -}; -declare type ReposMergeResponseDataCommitAuthor = { - name: string; - date: string; - email: string; -}; -declare type ReposMergeResponseDataCommit = { - author: ReposMergeResponseDataCommitAuthor; - committer: ReposMergeResponseDataCommitCommitter; - message: string; - tree: ReposMergeResponseDataCommitTree; - url: string; - comment_count: number; - verification: ReposMergeResponseDataCommitVerification; -}; -declare type ReposMergeResponseData = { - sha: string; - node_id: string; - commit: ReposMergeResponseDataCommit; - url: string; - html_url: string; - comments_url: string; - author: ReposMergeResponseDataAuthor; - committer: ReposMergeResponseDataCommitter; - parents: Array; -}; -declare type IssuesListMilestonesForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The state of the milestone. Either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * What to sort results by. Either `due_on` or `completeness`. - */ - sort?: "due_on" | "completeness"; - /** - * The direction of the sort. Either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListMilestonesForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/milestones"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListMilestonesForRepoResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListMilestonesForRepoResponseDataItem = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListMilestonesForRepoResponseDataItemCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListMilestonesForRepoResponseData = Array; -declare type IssuesCreateMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The title of the milestone. - */ - title: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; -}; -declare type IssuesCreateMilestoneRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/milestones"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateMilestoneResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateMilestoneResponseData = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesCreateMilestoneResponseDataCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesGetMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; -}; -declare type IssuesGetMilestoneRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/milestones/:milestone_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetMilestoneResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetMilestoneResponseData = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetMilestoneResponseDataCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesUpdateMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; - /** - * The title of the milestone. - */ - title?: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; -}; -declare type IssuesUpdateMilestoneRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/milestones/:milestone_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateMilestoneResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateMilestoneResponseData = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesUpdateMilestoneResponseDataCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesDeleteMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; -}; -declare type IssuesDeleteMilestoneRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/milestones/:milestone_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListLabelsForMilestoneRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/milestones/:milestone_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForMilestoneResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListLabelsForMilestoneResponseData = Array; -declare type ActivityListRepoNotificationsForAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * 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`. - */ - since?: string; - /** - * 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`. - */ - before?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItem = { - id: string; - repository: ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepository; - subject: ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseData = Array; -declare type ActivityMarkRepoNotificationsAsReadEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - last_read_at?: string; -}; -declare type ActivityMarkRepoNotificationsAsReadRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPagesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetPagesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPagesResponseDataSource = { - branch: string; - directory: string; -}; -declare type ReposGetPagesResponseData = { - url: string; - status: string; - cname: string; - custom_404: boolean; - html_url: string; - source: ReposGetPagesResponseDataSource; -}; -declare type ReposEnablePagesSiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * source parameter - */ - source?: ReposEnablePagesSiteParamsSource; -} & RequiredPreview<"switcheroo">; -declare type ReposEnablePagesSiteRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposEnablePagesSiteResponseDataSource = { - branch: string; - directory: string; -}; -declare type ReposEnablePagesSiteResponseData = { - url: string; - status: string; - cname: string; - custom_404: boolean; - html_url: string; - source: ReposEnablePagesSiteResponseDataSource; -}; -declare type ReposDisablePagesSiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"switcheroo">; -declare type ReposDisablePagesSiteRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateInformationAboutPagesSiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/)." - */ - cname?: string; - /** - * 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"`. - */ - source?: '"gh-pages"' | '"master"' | '"master /docs"'; -}; -declare type ReposUpdateInformationAboutPagesSiteRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRequestPageBuildEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposRequestPageBuildRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pages/builds"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRequestPageBuildResponseData = { - url: string; - status: string; -}; -declare type ReposListPagesBuildsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListPagesBuildsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages/builds"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListPagesBuildsResponseDataItemPusher = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPagesBuildsResponseDataItemError = { - message: null; -}; -declare type ReposListPagesBuildsResponseDataItem = { - url: string; - status: string; - error: ReposListPagesBuildsResponseDataItemError; - pusher: ReposListPagesBuildsResponseDataItemPusher; - commit: string; - duration: number; - created_at: string; - updated_at: string; -}; -declare type ReposListPagesBuildsResponseData = Array; -declare type ReposGetLatestPagesBuildEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetLatestPagesBuildRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages/builds/latest"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetLatestPagesBuildResponseDataPusher = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetLatestPagesBuildResponseDataError = { - message: null; -}; -declare type ReposGetLatestPagesBuildResponseData = { - url: string; - status: string; - error: ReposGetLatestPagesBuildResponseDataError; - pusher: ReposGetLatestPagesBuildResponseDataPusher; - commit: string; - duration: number; - created_at: string; - updated_at: string; -}; -declare type ReposGetPagesBuildEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * build_id parameter - */ - build_id: number; -}; -declare type ReposGetPagesBuildRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages/builds/:build_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPagesBuildResponseDataPusher = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetPagesBuildResponseDataError = { - message: null; -}; -declare type ReposGetPagesBuildResponseData = { - url: string; - status: string; - error: ReposGetPagesBuildResponseDataError; - pusher: ReposGetPagesBuildResponseDataPusher; - commit: string; - duration: number; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListForRepoResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListForRepoResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForRepoResponseDataItemCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForRepoResponseData = Array; -declare type ProjectsCreateForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the project. - */ - name: string; - /** - * The description of the project. - */ - body?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateForRepoRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateForRepoResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateForRepoResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForRepoResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type PullsListEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Either `open`, `closed`, or `all` to filter by state. - */ - state?: "open" | "closed" | "all"; - /** - * 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`. - */ - head?: string; - /** - * Filter pulls by base branch name. Example: `gh-pages`. - */ - base?: string; - /** - * 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). - */ - sort?: "created" | "updated" | "popularity" | "long-running"; - /** - * The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListResponseDataItemLinksStatuses = { - href: string; -}; -declare type PullsListResponseDataItemLinksCommits = { - href: string; -}; -declare type PullsListResponseDataItemLinksReviewComment = { - href: string; -}; -declare type PullsListResponseDataItemLinksReviewComments = { - href: string; -}; -declare type PullsListResponseDataItemLinksComments = { - href: string; -}; -declare type PullsListResponseDataItemLinksIssue = { - href: string; -}; -declare type PullsListResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsListResponseDataItemLinks = { - self: PullsListResponseDataItemLinksSelf; - html: PullsListResponseDataItemLinksHtml; - issue: PullsListResponseDataItemLinksIssue; - comments: PullsListResponseDataItemLinksComments; - review_comments: PullsListResponseDataItemLinksReviewComments; - review_comment: PullsListResponseDataItemLinksReviewComment; - commits: PullsListResponseDataItemLinksCommits; - statuses: PullsListResponseDataItemLinksStatuses; -}; -declare type PullsListResponseDataItemBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsListResponseDataItemBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsListResponseDataItemBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsListResponseDataItemBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsListResponseDataItemBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemBase = { - label: string; - ref: string; - sha: string; - user: PullsListResponseDataItemBaseUser; - repo: PullsListResponseDataItemBaseRepo; -}; -declare type PullsListResponseDataItemHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsListResponseDataItemHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsListResponseDataItemHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsListResponseDataItemHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsListResponseDataItemHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemHead = { - label: string; - ref: string; - sha: string; - user: PullsListResponseDataItemHeadUser; - repo: PullsListResponseDataItemHeadRepo; -}; -declare type PullsListResponseDataItemRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsListResponseDataItemRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsListResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsListResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsListResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItem = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsListResponseDataItemUser; - body: string; - labels: Array; - milestone: PullsListResponseDataItemMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsListResponseDataItemAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsListResponseDataItemHead; - base: PullsListResponseDataItemBase; - _links: PullsListResponseDataItemLinks; - author_association: string; - draft: boolean; -}; -declare type PullsListResponseData = Array; -declare type PullsCreateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The title of the new pull request. - */ - title: string; - /** - * 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`. - */ - head: string; - /** - * 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. - */ - base: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - /** - * 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. - */ - draft?: boolean; -}; -declare type PullsCreateRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateResponseDataMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataLinksStatuses = { - href: string; -}; -declare type PullsCreateResponseDataLinksCommits = { - href: string; -}; -declare type PullsCreateResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsCreateResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsCreateResponseDataLinksComments = { - href: string; -}; -declare type PullsCreateResponseDataLinksIssue = { - href: string; -}; -declare type PullsCreateResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateResponseDataLinks = { - self: PullsCreateResponseDataLinksSelf; - html: PullsCreateResponseDataLinksHtml; - issue: PullsCreateResponseDataLinksIssue; - comments: PullsCreateResponseDataLinksComments; - review_comments: PullsCreateResponseDataLinksReviewComments; - review_comment: PullsCreateResponseDataLinksReviewComment; - commits: PullsCreateResponseDataLinksCommits; - statuses: PullsCreateResponseDataLinksStatuses; -}; -declare type PullsCreateResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsCreateResponseDataBaseUser; - repo: PullsCreateResponseDataBaseRepo; -}; -declare type PullsCreateResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsCreateResponseDataHeadUser; - repo: PullsCreateResponseDataHeadRepo; -}; -declare type PullsCreateResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsCreateResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsCreateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsCreateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsCreateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsCreateResponseDataUser; - body: string; - labels: Array; - milestone: PullsCreateResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsCreateResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsCreateResponseDataHead; - base: PullsCreateResponseDataBase; - _links: PullsCreateResponseDataLinks; - author_association: string; - draft: boolean; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsCreateResponseDataMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; -}; -declare type PullsListCommentsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListCommentsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListCommentsForRepoResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsListCommentsForRepoResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListCommentsForRepoResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsListCommentsForRepoResponseDataItemLinks = { - self: PullsListCommentsForRepoResponseDataItemLinksSelf; - html: PullsListCommentsForRepoResponseDataItemLinksHtml; - pull_request: PullsListCommentsForRepoResponseDataItemLinksPullRequest; -}; -declare type PullsListCommentsForRepoResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommentsForRepoResponseDataItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsListCommentsForRepoResponseDataItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsListCommentsForRepoResponseDataItemLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsListCommentsForRepoResponseData = Array; -declare type PullsGetCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type PullsGetCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetCommentResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsGetCommentResponseDataLinksHtml = { - href: string; -}; -declare type PullsGetCommentResponseDataLinksSelf = { - href: string; -}; -declare type PullsGetCommentResponseDataLinks = { - self: PullsGetCommentResponseDataLinksSelf; - html: PullsGetCommentResponseDataLinksHtml; - pull_request: PullsGetCommentResponseDataLinksPullRequest; -}; -declare type PullsGetCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetCommentResponseData = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsGetCommentResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsGetCommentResponseDataLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsUpdateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The text of the reply to the review comment. - */ - body: string; -}; -declare type PullsUpdateCommentRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateCommentResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsUpdateCommentResponseDataLinksHtml = { - href: string; -}; -declare type PullsUpdateCommentResponseDataLinksSelf = { - href: string; -}; -declare type PullsUpdateCommentResponseDataLinks = { - self: PullsUpdateCommentResponseDataLinksSelf; - html: PullsUpdateCommentResponseDataLinksHtml; - pull_request: PullsUpdateCommentResponseDataLinksPullRequest; -}; -declare type PullsUpdateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateCommentResponseData = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsUpdateCommentResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsUpdateCommentResponseDataLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsDeleteCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type PullsDeleteCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForPullRequestReviewCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForPullRequestReviewCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForPullRequestReviewCommentResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForPullRequestReviewCommentResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForPullRequestReviewCommentResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForPullRequestReviewCommentResponseData = Array; -declare type ReactionsCreateForPullRequestReviewCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForPullRequestReviewCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForPullRequestReviewCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForPullRequestReviewCommentResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForPullRequestReviewCommentResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForPullRequestCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForPullRequestCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; -}; -declare type PullsGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetResponseDataMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataLinksStatuses = { - href: string; -}; -declare type PullsGetResponseDataLinksCommits = { - href: string; -}; -declare type PullsGetResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsGetResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsGetResponseDataLinksComments = { - href: string; -}; -declare type PullsGetResponseDataLinksIssue = { - href: string; -}; -declare type PullsGetResponseDataLinksHtml = { - href: string; -}; -declare type PullsGetResponseDataLinksSelf = { - href: string; -}; -declare type PullsGetResponseDataLinks = { - self: PullsGetResponseDataLinksSelf; - html: PullsGetResponseDataLinksHtml; - issue: PullsGetResponseDataLinksIssue; - comments: PullsGetResponseDataLinksComments; - review_comments: PullsGetResponseDataLinksReviewComments; - review_comment: PullsGetResponseDataLinksReviewComment; - commits: PullsGetResponseDataLinksCommits; - statuses: PullsGetResponseDataLinksStatuses; -}; -declare type PullsGetResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsGetResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsGetResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsGetResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsGetResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsGetResponseDataBaseUser; - repo: PullsGetResponseDataBaseRepo; -}; -declare type PullsGetResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsGetResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsGetResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsGetResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsGetResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsGetResponseDataHeadUser; - repo: PullsGetResponseDataHeadRepo; -}; -declare type PullsGetResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsGetResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsGetResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsGetResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsGetResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsGetResponseDataUser; - body: string; - labels: Array; - milestone: PullsGetResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsGetResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsGetResponseDataHead; - base: PullsGetResponseDataBase; - _links: PullsGetResponseDataLinks; - author_association: string; - draft: boolean; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsGetResponseDataMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; -}; -declare type PullsUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * The title of the pull request. - */ - title?: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * State of this Pull Request. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * 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. - */ - base?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; -}; -declare type PullsUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/pulls/:pull_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateResponseDataMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataLinksStatuses = { - href: string; -}; -declare type PullsUpdateResponseDataLinksCommits = { - href: string; -}; -declare type PullsUpdateResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsUpdateResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsUpdateResponseDataLinksComments = { - href: string; -}; -declare type PullsUpdateResponseDataLinksIssue = { - href: string; -}; -declare type PullsUpdateResponseDataLinksHtml = { - href: string; -}; -declare type PullsUpdateResponseDataLinksSelf = { - href: string; -}; -declare type PullsUpdateResponseDataLinks = { - self: PullsUpdateResponseDataLinksSelf; - html: PullsUpdateResponseDataLinksHtml; - issue: PullsUpdateResponseDataLinksIssue; - comments: PullsUpdateResponseDataLinksComments; - review_comments: PullsUpdateResponseDataLinksReviewComments; - review_comment: PullsUpdateResponseDataLinksReviewComment; - commits: PullsUpdateResponseDataLinksCommits; - statuses: PullsUpdateResponseDataLinksStatuses; -}; -declare type PullsUpdateResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsUpdateResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsUpdateResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsUpdateResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsUpdateResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsUpdateResponseDataBaseUser; - repo: PullsUpdateResponseDataBaseRepo; -}; -declare type PullsUpdateResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsUpdateResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsUpdateResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsUpdateResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsUpdateResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsUpdateResponseDataHeadUser; - repo: PullsUpdateResponseDataHeadRepo; -}; -declare type PullsUpdateResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsUpdateResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsUpdateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsUpdateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsUpdateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsUpdateResponseDataUser; - body: string; - labels: Array; - milestone: PullsUpdateResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsUpdateResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsUpdateResponseDataHead; - base: PullsUpdateResponseDataBase; - _links: PullsUpdateResponseDataLinks; - author_association: string; - draft: boolean; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsUpdateResponseDataMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; -}; -declare type PullsListCommentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListCommentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListCommentsResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsListCommentsResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListCommentsResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsListCommentsResponseDataItemLinks = { - self: PullsListCommentsResponseDataItemLinksSelf; - html: PullsListCommentsResponseDataItemLinksHtml; - pull_request: PullsListCommentsResponseDataItemLinksPullRequest; -}; -declare type PullsListCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommentsResponseDataItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsListCommentsResponseDataItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsListCommentsResponseDataItemLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsListCommentsResponseData = Array; -declare type PullsCreateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; -}; -declare type PullsCreateCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateCommentResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsCreateCommentResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateCommentResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateCommentResponseDataLinks = { - self: PullsCreateCommentResponseDataLinksSelf; - html: PullsCreateCommentResponseDataLinksHtml; - pull_request: PullsCreateCommentResponseDataLinksPullRequest; -}; -declare type PullsCreateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateCommentResponseData = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsCreateCommentResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsCreateCommentResponseDataLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsCreateReviewCommentReplyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The text of the review comment. - */ - body: string; -}; -declare type PullsCreateReviewCommentReplyRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinks = { - self: PullsCreateReviewCommentReplyResponseDataLinksSelf; - html: PullsCreateReviewCommentReplyResponseDataLinksHtml; - pull_request: PullsCreateReviewCommentReplyResponseDataLinksPullRequest; -}; -declare type PullsCreateReviewCommentReplyResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewCommentReplyResponseData = { - url: string; - pull_request_review_id: number; - id: number; - node_id: string; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - user: PullsCreateReviewCommentReplyResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsCreateReviewCommentReplyResponseDataLinks; -}; -declare type PullsListCommitsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListCommitsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListCommitsResponseDataItemParentsItem = { - url: string; - sha: string; -}; -declare type PullsListCommitsResponseDataItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommitsResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommitsResponseDataItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type PullsListCommitsResponseDataItemCommitTree = { - url: string; - sha: string; -}; -declare type PullsListCommitsResponseDataItemCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type PullsListCommitsResponseDataItemCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type PullsListCommitsResponseDataItemCommit = { - url: string; - author: PullsListCommitsResponseDataItemCommitAuthor; - committer: PullsListCommitsResponseDataItemCommitCommitter; - message: string; - tree: PullsListCommitsResponseDataItemCommitTree; - comment_count: number; - verification: PullsListCommitsResponseDataItemCommitVerification; -}; -declare type PullsListCommitsResponseDataItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: PullsListCommitsResponseDataItemCommit; - author: PullsListCommitsResponseDataItemAuthor; - committer: PullsListCommitsResponseDataItemCommitter; - parents: Array; -}; -declare type PullsListCommitsResponseData = Array; -declare type PullsListFilesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListFilesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/files"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListFilesResponseDataItem = { - sha: string; - filename: string; - status: string; - additions: number; - deletions: number; - changes: number; - blob_url: string; - raw_url: string; - contents_url: string; - patch: string; -}; -declare type PullsListFilesResponseData = Array; -declare type PullsCheckIfMergedEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; -}; -declare type PullsCheckIfMergedRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/merge"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsMergeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Title for the automatic commit message. - */ - commit_title?: string; - /** - * Extra detail to append to automatic commit message. - */ - commit_message?: string; - /** - * SHA that pull request head must match to allow merge. - */ - sha?: string; - /** - * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. - */ - merge_method?: "merge" | "squash" | "rebase"; -}; -declare type PullsMergeRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/merge"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsMergeResponseData = { - sha: string; - merged: boolean; - message: string; -}; -declare type PullsListReviewRequestsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListReviewRequestsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListReviewRequestsResponseDataTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsListReviewRequestsResponseDataUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListReviewRequestsResponseData = { - users: Array; - teams: Array; -}; -declare type PullsCreateReviewRequestEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * An array of user `login`s that will be requested. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be requested. - */ - team_reviewers?: string[]; -}; -declare type PullsCreateReviewRequestRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateReviewRequestResponseDataLinksStatuses = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksCommits = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksComments = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksIssue = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinks = { - self: PullsCreateReviewRequestResponseDataLinksSelf; - html: PullsCreateReviewRequestResponseDataLinksHtml; - issue: PullsCreateReviewRequestResponseDataLinksIssue; - comments: PullsCreateReviewRequestResponseDataLinksComments; - review_comments: PullsCreateReviewRequestResponseDataLinksReviewComments; - review_comment: PullsCreateReviewRequestResponseDataLinksReviewComment; - commits: PullsCreateReviewRequestResponseDataLinksCommits; - statuses: PullsCreateReviewRequestResponseDataLinksStatuses; -}; -declare type PullsCreateReviewRequestResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateReviewRequestResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateReviewRequestResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateReviewRequestResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateReviewRequestResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsCreateReviewRequestResponseDataBaseUser; - repo: PullsCreateReviewRequestResponseDataBaseRepo; -}; -declare type PullsCreateReviewRequestResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateReviewRequestResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateReviewRequestResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateReviewRequestResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateReviewRequestResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsCreateReviewRequestResponseDataHeadUser; - repo: PullsCreateReviewRequestResponseDataHeadRepo; -}; -declare type PullsCreateReviewRequestResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsCreateReviewRequestResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsCreateReviewRequestResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsCreateReviewRequestResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsCreateReviewRequestResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsCreateReviewRequestResponseDataUser; - body: string; - labels: Array; - milestone: PullsCreateReviewRequestResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsCreateReviewRequestResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsCreateReviewRequestResponseDataHead; - base: PullsCreateReviewRequestResponseDataBase; - _links: PullsCreateReviewRequestResponseDataLinks; - author_association: string; - draft: boolean; -}; -declare type PullsDeleteReviewRequestEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * An array of user `login`s that will be removed. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be removed. - */ - team_reviewers?: string[]; -}; -declare type PullsDeleteReviewRequestRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListReviewsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListReviewsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListReviewsResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsListReviewsResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListReviewsResponseDataItemLinks = { - html: PullsListReviewsResponseDataItemLinksHtml; - pull_request: PullsListReviewsResponseDataItemLinksPullRequest; -}; -declare type PullsListReviewsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListReviewsResponseDataItem = { - id: number; - node_id: string; - user: PullsListReviewsResponseDataItemUser; - body: string; - submitted_at: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsListReviewsResponseDataItemLinks; -}; -declare type PullsListReviewsResponseData = Array; -declare type PullsCreateReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * 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. - */ - commit_id?: string; - /** - * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. - */ - body?: string; - /** - * 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://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready. - */ - event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - /** - * Use the following table to specify the location, destination, and contents of the draft review comment. - */ - comments?: PullsCreateReviewParamsComments[]; -}; -declare type PullsCreateReviewRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsCreateReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateReviewResponseDataLinks = { - html: PullsCreateReviewResponseDataLinksHtml; - pull_request: PullsCreateReviewResponseDataLinksPullRequest; -}; -declare type PullsCreateReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewResponseData = { - id: number; - node_id: string; - user: PullsCreateReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsCreateReviewResponseDataLinks; -}; -declare type PullsGetReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; -}; -declare type PullsGetReviewRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsGetReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsGetReviewResponseDataLinks = { - html: PullsGetReviewResponseDataLinksHtml; - pull_request: PullsGetReviewResponseDataLinksPullRequest; -}; -declare type PullsGetReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetReviewResponseData = { - id: number; - node_id: string; - user: PullsGetReviewResponseDataUser; - body: string; - submitted_at: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsGetReviewResponseDataLinks; -}; -declare type PullsDeletePendingReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; -}; -declare type PullsDeletePendingReviewRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsDeletePendingReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsDeletePendingReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsDeletePendingReviewResponseDataLinks = { - html: PullsDeletePendingReviewResponseDataLinksHtml; - pull_request: PullsDeletePendingReviewResponseDataLinksPullRequest; -}; -declare type PullsDeletePendingReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsDeletePendingReviewResponseData = { - id: number; - node_id: string; - user: PullsDeletePendingReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsDeletePendingReviewResponseDataLinks; -}; -declare type PullsUpdateReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * The body text of the pull request review. - */ - body: string; -}; -declare type PullsUpdateReviewRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsUpdateReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsUpdateReviewResponseDataLinks = { - html: PullsUpdateReviewResponseDataLinksHtml; - pull_request: PullsUpdateReviewResponseDataLinksPullRequest; -}; -declare type PullsUpdateReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateReviewResponseData = { - id: number; - node_id: string; - user: PullsUpdateReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsUpdateReviewResponseDataLinks; -}; -declare type PullsGetCommentsForReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsGetCommentsForReviewRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinks = { - self: PullsGetCommentsForReviewResponseDataItemLinksSelf; - html: PullsGetCommentsForReviewResponseDataItemLinksHtml; - pull_request: PullsGetCommentsForReviewResponseDataItemLinksPullRequest; -}; -declare type PullsGetCommentsForReviewResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetCommentsForReviewResponseDataItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsGetCommentsForReviewResponseDataItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsGetCommentsForReviewResponseDataItemLinks; -}; -declare type PullsGetCommentsForReviewResponseData = Array; -declare type PullsDismissReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * The message for the pull request review dismissal - */ - message: string; -}; -declare type PullsDismissReviewRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsDismissReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsDismissReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsDismissReviewResponseDataLinks = { - html: PullsDismissReviewResponseDataLinksHtml; - pull_request: PullsDismissReviewResponseDataLinksPullRequest; -}; -declare type PullsDismissReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsDismissReviewResponseData = { - id: number; - node_id: string; - user: PullsDismissReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsDismissReviewResponseDataLinks; -}; -declare type PullsSubmitReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * The body text of the pull request review - */ - body?: string; - /** - * 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. - */ - event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; -}; -declare type PullsSubmitReviewRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsSubmitReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsSubmitReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsSubmitReviewResponseDataLinks = { - html: PullsSubmitReviewResponseDataLinksHtml; - pull_request: PullsSubmitReviewResponseDataLinksPullRequest; -}; -declare type PullsSubmitReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsSubmitReviewResponseData = { - id: number; - node_id: string; - user: PullsSubmitReviewResponseDataUser; - body: string; - submitted_at: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsSubmitReviewResponseDataLinks; -}; -declare type PullsUpdateBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * 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 on a repository](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. - */ - expected_head_sha?: string; -} & RequiredPreview<"lydian">; -declare type PullsUpdateBranchRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateBranchResponseData = { - message: string; - url: string; -}; -declare type ReposGetReadmeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; -}; -declare type ReposGetReadmeRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/readme"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReadmeResponseDataLinks = { - git: string; - self: string; - html: string; -}; -declare type ReposGetReadmeResponseData = { - type: string; - encoding: string; - size: number; - name: string; - path: string; - content: string; - sha: string; - url: string; - git_url: string; - html_url: string; - download_url: string; - _links: ReposGetReadmeResponseDataLinks; -}; -declare type ReposListReleasesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListReleasesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListReleasesResponseDataItemAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListReleasesResponseDataItemAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposListReleasesResponseDataItemAssetsItemUploader; -}; -declare type ReposListReleasesResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListReleasesResponseDataItem = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposListReleasesResponseDataItemAuthor; - assets: Array; -}; -declare type ReposListReleasesResponseData = Array; -declare type ReposCreateReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the tag. - */ - tag_name: string; - /** - * 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`). - */ - target_commitish?: string; - /** - * The name of the release. - */ - name?: string; - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` to create a draft (unpublished) release, `false` to create a published one. - */ - draft?: boolean; - /** - * `true` to identify the release as a prerelease. `false` to identify the release as a full release. - */ - prerelease?: boolean; -}; -declare type ReposCreateReleaseRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/releases"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposCreateReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposGetReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * asset_id parameter - */ - asset_id: number; -}; -declare type ReposGetReleaseAssetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/assets/:asset_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReleaseAssetResponseDataUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseAssetResponseData = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseAssetResponseDataUploader; -}; -declare type ReposUpdateReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * asset_id parameter - */ - asset_id: number; - /** - * The file name of the asset. - */ - name?: string; - /** - * An alternate short description of the asset. Used in place of the filename. - */ - label?: string; -}; -declare type ReposUpdateReleaseAssetRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/releases/assets/:asset_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateReleaseAssetResponseDataUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateReleaseAssetResponseData = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUpdateReleaseAssetResponseDataUploader; -}; -declare type ReposDeleteReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * asset_id parameter - */ - asset_id: number; -}; -declare type ReposDeleteReleaseAssetRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/releases/assets/:asset_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetLatestReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetLatestReleaseRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/latest"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetLatestReleaseResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetLatestReleaseResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetLatestReleaseResponseDataAssetsItemUploader; -}; -declare type ReposGetLatestReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetLatestReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetLatestReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposGetReleaseByTagEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * tag parameter - */ - tag: string; -}; -declare type ReposGetReleaseByTagRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/tags/:tag"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReleaseByTagResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseByTagResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseByTagResponseDataAssetsItemUploader; -}; -declare type ReposGetReleaseByTagResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseByTagResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetReleaseByTagResponseDataAuthor; - assets: Array; -}; -declare type ReposGetReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; -}; -declare type ReposGetReleaseRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/:release_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReleaseResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseResponseDataAssetsItemUploader; -}; -declare type ReposGetReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposUpdateReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; - /** - * The name of the tag. - */ - tag_name?: string; - /** - * 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`). - */ - target_commitish?: string; - /** - * The name of the release. - */ - name?: string; - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` makes the release a draft, and `false` publishes the release. - */ - draft?: boolean; - /** - * `true` to identify the release as a prerelease, `false` to identify the release as a full release. - */ - prerelease?: boolean; -}; -declare type ReposUpdateReleaseRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/releases/:release_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateReleaseResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateReleaseResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUpdateReleaseResponseDataAssetsItemUploader; -}; -declare type ReposUpdateReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposUpdateReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposDeleteReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; -}; -declare type ReposDeleteReleaseRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/releases/:release_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListAssetsForReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListAssetsForReleaseRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/:release_id/assets"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListAssetsForReleaseResponseDataItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListAssetsForReleaseResponseDataItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposListAssetsForReleaseResponseDataItemUploader; -}; -declare type ReposListAssetsForReleaseResponseData = Array; -declare type ReposUploadReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; - /** - * name parameter - */ - name?: string; - /** - * label parameter - */ - label?: string; - /** - * The raw file data - */ - data: string; - /** - * The URL origin (protocol + host name + port) is included in `upload_url` returned in the response of the "Create a release" endpoint - */ - origin?: string; - /** - * For https://api.github.com, set `baseUrl` to `https://uploads.github.com`. For GitHub Enterprise Server, set it to `/api/uploads` - */ - baseUrl: string; -} & { - headers: { - "content-type": string; - }; -}; -declare type ReposUploadReleaseAssetRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/releases/:release_id/assets{?name,label}"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUploadReleaseAssetResponseDataUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUploadReleaseAssetResponseData = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUploadReleaseAssetResponseDataUploader; -}; -declare type ActivityListStargazersForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListStargazersForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stargazers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListStargazersForRepoResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListStargazersForRepoResponseData = Array; -declare type ReposGetCodeFrequencyStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetCodeFrequencyStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/code_frequency"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCodeFrequencyStatsResponseData = Array>; -declare type ReposGetCommitActivityStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetCommitActivityStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/commit_activity"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCommitActivityStatsResponseDataItem = { - days: Array; - total: number; - week: number; -}; -declare type ReposGetCommitActivityStatsResponseData = Array; -declare type ReposGetContributorsStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetContributorsStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/contributors"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetContributorsStatsResponseDataItemWeeksItem = { - w: string; - a: number; - d: number; - c: number; -}; -declare type ReposGetContributorsStatsResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetContributorsStatsResponseDataItem = { - author: ReposGetContributorsStatsResponseDataItemAuthor; - total: number; - weeks: Array; -}; -declare type ReposGetContributorsStatsResponseData = Array; -declare type ReposGetParticipationStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetParticipationStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/participation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetParticipationStatsResponseData = { - all: Array; - owner: Array; -}; -declare type ReposGetPunchCardStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetPunchCardStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/punch_card"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPunchCardStatsResponseData = Array>; -declare type ReposCreateStatusEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * sha parameter - */ - sha: string; - /** - * The state of the status. Can be one of `error`, `failure`, `pending`, or `success`. - */ - state: "error" | "failure" | "pending" | "success"; - /** - * 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` - */ - target_url?: string; - /** - * A short description of the status. - */ - description?: string; - /** - * A string label to differentiate this status from the status of other systems. - */ - context?: string; -}; -declare type ReposCreateStatusRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/statuses/:sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateStatusResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateStatusResponseData = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; - creator: ReposCreateStatusResponseDataCreator; -}; -declare type ActivityListWatchersForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListWatchersForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/subscribers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListWatchersForRepoResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListWatchersForRepoResponseData = Array; -declare type ActivityGetRepoSubscriptionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityGetRepoSubscriptionRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetRepoSubscriptionResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - repository_url: string; -}; -declare type ActivitySetRepoSubscriptionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Determines if notifications should be received from this repository. - */ - subscribed?: boolean; - /** - * Determines if all notifications should be blocked from this repository. - */ - ignored?: boolean; -}; -declare type ActivitySetRepoSubscriptionRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivitySetRepoSubscriptionResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - repository_url: string; -}; -declare type ActivityDeleteRepoSubscriptionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityDeleteRepoSubscriptionRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListTagsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListTagsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/tags"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListTagsResponseDataItemCommit = { - sha: string; - url: string; -}; -declare type ReposListTagsResponseDataItem = { - name: string; - commit: ReposListTagsResponseDataItemCommit; - zipball_url: string; - tarball_url: string; -}; -declare type ReposListTagsResponseData = Array; -declare type ReposListTeamsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListTeamsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListTeamsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposListTeamsResponseData = Array; -declare type ReposGetAllTopicsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"mercy">; -declare type ReposGetAllTopicsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/topics"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetAllTopicsResponseData = { - names: Array; -}; -declare type ReposReplaceAllTopicsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - names: string[]; -} & RequiredPreview<"mercy">; -declare type ReposReplaceAllTopicsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/topics"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceAllTopicsResponseData = { - names: Array; -}; -declare type ReposGetClonesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; -}; -declare type ReposGetClonesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/clones"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetClonesResponseDataClonesItem = { - timestamp: string; - count: number; - uniques: number; -}; -declare type ReposGetClonesResponseData = { - count: number; - uniques: number; - clones: Array; -}; -declare type ReposGetTopPathsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetTopPathsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/popular/paths"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetTopPathsResponseDataItem = { - path: string; - title: string; - count: number; - uniques: number; -}; -declare type ReposGetTopPathsResponseData = Array; -declare type ReposGetTopReferrersEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetTopReferrersRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/popular/referrers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetTopReferrersResponseDataItem = { - referrer: string; - count: number; - uniques: number; -}; -declare type ReposGetTopReferrersResponseData = Array; -declare type ReposGetViewsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; -}; -declare type ReposGetViewsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/views"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetViewsResponseDataViewsItem = { - timestamp: string; - count: number; - uniques: number; -}; -declare type ReposGetViewsResponseData = { - count: number; - uniques: number; - views: Array; -}; -declare type ReposTransferEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * **Required:** The username or organization name the repository will be transferred to. - */ - new_owner?: string; - /** - * ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. - */ - team_ids?: number[]; -}; -declare type ReposTransferRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/transfer"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposTransferResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposTransferResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposTransferResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposTransferResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposTransferResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposCheckVulnerabilityAlertsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"dorian">; -declare type ReposCheckVulnerabilityAlertsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/vulnerability-alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposEnableVulnerabilityAlertsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"dorian">; -declare type ReposEnableVulnerabilityAlertsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/vulnerability-alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDisableVulnerabilityAlertsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"dorian">; -declare type ReposDisableVulnerabilityAlertsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/vulnerability-alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetArchiveLinkEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * archive_format parameter - */ - archive_format: string; - /** - * ref parameter - */ - ref: string; -}; -declare type ReposGetArchiveLinkRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/:archive_format/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateUsingTemplateEndpoint = { - /** - * template_owner parameter - */ - template_owner: string; - /** - * template_repo parameter - */ - template_repo: string; - /** - * 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. - */ - owner?: string; - /** - * The name of the new repository. - */ - name: string; - /** - * A short description of the new repository. - */ - description?: string; - /** - * Either `true` to create a new private repository or `false` to create a new public one. - */ - private?: boolean; -} & RequiredPreview<"baptiste">; -declare type ReposCreateUsingTemplateRequestOptions = { - method: "POST"; - url: "/repos/:template_owner/:template_repo/generate"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateUsingTemplateResponseDataTemplateRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateUsingTemplateResponseDataTemplateRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateUsingTemplateResponseDataTemplateRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateUsingTemplateResponseDataTemplateRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateUsingTemplateResponseDataTemplateRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposCreateUsingTemplateResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateUsingTemplateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateUsingTemplateResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateUsingTemplateResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateUsingTemplateResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: ReposCreateUsingTemplateResponseDataTemplateRepository; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListPublicEndpoint = { - /** - * The integer ID of the last repository that you've seen. - */ - since?: number; -}; -declare type ReposListPublicRequestOptions = { - method: "GET"; - url: "/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListPublicResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPublicResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListPublicResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposListPublicResponseData = Array; -declare type ScimListProvisionedIdentitiesEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Used for pagination: the index of the first result to return. - */ - startIndex?: number; - /** - * Used for pagination: the number of results to return. - */ - count?: number; - /** - * Filters results using the equals query parameter operator (`eq`). You can filter results that are equal to `id`, `userName`, `emails`, and `external_id`. For example, to search for an identity with the `userName` Octocat, you would use this query: `?filter=userName%20eq%20\"Octocat\"`. - */ - filter?: string; -}; -declare type ScimListProvisionedIdentitiesRequestOptions = { - method: "GET"; - url: "/scim/v2/organizations/:org/Users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItemMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItemEmailsItem = { - value: string; - primary: boolean; - type: string; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItemName = { - givenName: string; - familyName: string; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItem = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimListProvisionedIdentitiesResponseDataResourcesItemName; - emails: Array; - active: boolean; - meta: ScimListProvisionedIdentitiesResponseDataResourcesItemMeta; -}; -declare type ScimListProvisionedIdentitiesResponseData = { - schemas: Array; - totalResults: number; - itemsPerPage: number; - startIndex: number; - Resources: Array; -}; -declare type ScimProvisionAndInviteUsersEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ScimProvisionAndInviteUsersRequestOptions = { - method: "POST"; - url: "/scim/v2/organizations/:org/Users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimProvisionAndInviteUsersResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimProvisionAndInviteUsersResponseDataEmailsItem = { - value: string; - type: string; - primary: boolean; -}; -declare type ScimProvisionAndInviteUsersResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimProvisionAndInviteUsersResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimProvisionAndInviteUsersResponseDataName; - emails: Array; - active: boolean; - meta: ScimProvisionAndInviteUsersResponseDataMeta; -}; -declare type ScimGetProvisioningDetailsForUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimGetProvisioningDetailsForUserRequestOptions = { - method: "GET"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimGetProvisioningDetailsForUserResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimGetProvisioningDetailsForUserResponseDataEmailsItem = { - value: string; - type: string; - primary: boolean; -}; -declare type ScimGetProvisioningDetailsForUserResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimGetProvisioningDetailsForUserResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimGetProvisioningDetailsForUserResponseDataName; - emails: Array; - active: boolean; - meta: ScimGetProvisioningDetailsForUserResponseDataMeta; -}; -declare type ScimReplaceProvisionedUserInformationEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimReplaceProvisionedUserInformationRequestOptions = { - method: "PUT"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimReplaceProvisionedUserInformationResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimReplaceProvisionedUserInformationResponseDataEmailsItem = { - value: string; - type: string; - primary: boolean; -}; -declare type ScimReplaceProvisionedUserInformationResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimReplaceProvisionedUserInformationResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimReplaceProvisionedUserInformationResponseDataName; - emails: Array; - active: boolean; - meta: ScimReplaceProvisionedUserInformationResponseDataMeta; -}; -declare type ScimUpdateUserAttributeEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimUpdateUserAttributeRequestOptions = { - method: "PATCH"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimUpdateUserAttributeResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimUpdateUserAttributeResponseDataEmailsItem = { - value: string; - type: string; - primary?: boolean; -}; -declare type ScimUpdateUserAttributeResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimUpdateUserAttributeResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimUpdateUserAttributeResponseDataName; - emails: Array; - active: boolean; - meta: ScimUpdateUserAttributeResponseDataMeta; -}; -declare type ScimRemoveUserFromOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimRemoveUserFromOrgRequestOptions = { - method: "DELETE"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchCodeEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching code](https://help.github.com/articles/searching-code/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "indexed"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchCodeRequestOptions = { - method: "GET"; - url: "/search/code"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchCodeResponseDataItemsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCodeResponseDataItemsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: SearchCodeResponseDataItemsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; -}; -declare type SearchCodeResponseDataItemsItem = { - name: string; - path: string; - sha: string; - url: string; - git_url: string; - html_url: string; - repository: SearchCodeResponseDataItemsItemRepository; - score: number; -}; -declare type SearchCodeResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchCommitsEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching commits](https://help.github.com/articles/searching-commits/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "author-date" | "committer-date"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"cloak">; -declare type SearchCommitsRequestOptions = { - method: "GET"; - url: "/search/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchCommitsResponseDataItemsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCommitsResponseDataItemsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: SearchCommitsResponseDataItemsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type SearchCommitsResponseDataItemsItemParentsItem = { - url: string; - html_url: string; - sha: string; -}; -declare type SearchCommitsResponseDataItemsItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCommitsResponseDataItemsItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCommitsResponseDataItemsItemCommitTree = { - url: string; - sha: string; -}; -declare type SearchCommitsResponseDataItemsItemCommitCommitter = { - date: string; - name: string; - email: string; -}; -declare type SearchCommitsResponseDataItemsItemCommitAuthor = { - date: string; - name: string; - email: string; -}; -declare type SearchCommitsResponseDataItemsItemCommit = { - url: string; - author: SearchCommitsResponseDataItemsItemCommitAuthor; - committer: SearchCommitsResponseDataItemsItemCommitCommitter; - message: string; - tree: SearchCommitsResponseDataItemsItemCommitTree; - comment_count: number; -}; -declare type SearchCommitsResponseDataItemsItem = { - url: string; - sha: string; - html_url: string; - comments_url: string; - commit: SearchCommitsResponseDataItemsItemCommit; - author: SearchCommitsResponseDataItemsItemAuthor; - committer: SearchCommitsResponseDataItemsItemCommitter; - parents: Array; - repository: SearchCommitsResponseDataItemsItemRepository; - score: number; -}; -declare type SearchCommitsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchIssuesAndPullRequestsEndpoint = { - /** - * 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://developer.github.com/v3/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. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "comments" | "reactions" | "reactions-+1" | "reactions--1" | "reactions-smile" | "reactions-thinking_face" | "reactions-heart" | "reactions-tada" | "interactions" | "created" | "updated"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchIssuesAndPullRequestsRequestOptions = { - method: "GET"; - url: "/search/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItemPullRequest = { - html_url: null; - diff_url: null; - patch_url: null; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - color: string; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItem = { - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - id: number; - node_id: string; - number: number; - title: string; - user: SearchIssuesAndPullRequestsResponseDataItemsItemUser; - labels: Array; - state: string; - assignee: null; - milestone: null; - comments: number; - created_at: string; - updated_at: string; - closed_at: null; - pull_request: SearchIssuesAndPullRequestsResponseDataItemsItemPullRequest; - body: string; - score: number; -}; -declare type SearchIssuesAndPullRequestsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchLabelsEndpoint = { - /** - * The id of the repository. - */ - repository_id: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). - */ - q: string; - /** - * Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "created" | "updated"; - /** - * 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`. - */ - order?: "desc" | "asc"; -}; -declare type SearchLabelsRequestOptions = { - method: "GET"; - url: "/search/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchLabelsResponseDataItemsItem = { - id: number; - node_id: string; - url: string; - name: string; - color: string; - default: boolean; - description: string; - score: number; -}; -declare type SearchLabelsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchReposEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "stars" | "forks" | "help-wanted-issues" | "updated"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchReposRequestOptions = { - method: "GET"; - url: "/search/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchReposResponseDataItemsItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - received_events_url: string; - type: string; -}; -declare type SearchReposResponseDataItemsItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: SearchReposResponseDataItemsItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - created_at: string; - updated_at: string; - pushed_at: string; - homepage: string; - size: number; - stargazers_count: number; - watchers_count: number; - language: string; - forks_count: number; - open_issues_count: number; - master_branch: string; - default_branch: string; - score: number; -}; -declare type SearchReposResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchTopicsEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). - */ - q: string; -}; -declare type SearchTopicsRequestOptions = { - method: "GET"; - url: "/search/topics"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchTopicsResponseDataItemsItem = { - name: string; - display_name: string; - short_description: string; - description: string; - created_by: string; - released: string; - created_at: string; - updated_at: string; - featured: boolean; - curated: boolean; - score: number; -}; -declare type SearchTopicsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchUsersEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching users](https://help.github.com/articles/searching-users/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "followers" | "repositories" | "joined"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchUsersRequestOptions = { - method: "GET"; - url: "/search/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchUsersResponseDataItemsItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - received_events_url: string; - type: string; - score: number; -}; -declare type SearchUsersResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type TeamsGetLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; -}; -declare type TeamsGetLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetLegacyResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsGetLegacyResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsGetLegacyResponseDataOrganization; -}; -declare type TeamsUpdateLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * 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. - */ - privacy?: "secret" | "closed"; - /** - * **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. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; -}; -declare type TeamsUpdateLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateLegacyResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsUpdateLegacyResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsUpdateLegacyResponseDataOrganization; -}; -declare type TeamsDeleteLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; -}; -declare type TeamsDeleteLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsLegacyResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionsLegacyResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionsLegacyResponseDataItem = { - author: TeamsListDiscussionsLegacyResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsListDiscussionsLegacyResponseDataItemReactions; -}; -declare type TeamsListDiscussionsLegacyResponseData = Array; -declare type TeamsCreateDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * The discussion post's title. - */ - title: string; - /** - * The discussion post's body text. - */ - body: string; - /** - * 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. - */ - private?: boolean; -}; -declare type TeamsCreateDiscussionLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionLegacyResponseData = { - author: TeamsCreateDiscussionLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionLegacyResponseDataReactions; -}; -declare type TeamsGetDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsGetDiscussionLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionLegacyResponseData = { - author: TeamsGetDiscussionLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionLegacyResponseDataReactions; -}; -declare type TeamsUpdateDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion post's title. - */ - title?: string; - /** - * The discussion post's body text. - */ - body?: string; -}; -declare type TeamsUpdateDiscussionLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionLegacyResponseData = { - author: TeamsUpdateDiscussionLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: string; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionLegacyResponseDataReactions; -}; -declare type TeamsDeleteDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsDeleteDiscussionLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionCommentsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsLegacyResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionCommentsLegacyResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionCommentsLegacyResponseDataItem = { - author: TeamsListDiscussionCommentsLegacyResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsListDiscussionCommentsLegacyResponseDataItemReactions; -}; -declare type TeamsListDiscussionCommentsLegacyResponseData = Array; -declare type TeamsCreateDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsCreateDiscussionCommentLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseData = { - author: TeamsCreateDiscussionCommentLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionCommentLegacyResponseDataReactions; -}; -declare type TeamsGetDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsGetDiscussionCommentLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionCommentLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionCommentLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionCommentLegacyResponseData = { - author: TeamsGetDiscussionCommentLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionCommentLegacyResponseDataReactions; -}; -declare type TeamsUpdateDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsUpdateDiscussionCommentLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseData = { - author: TeamsUpdateDiscussionCommentLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: string; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionCommentLegacyResponseDataReactions; -}; -declare type TeamsDeleteDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsDeleteDiscussionCommentLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionCommentLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentLegacyResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseData = Array; -declare type ReactionsCreateForTeamDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionCommentLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionCommentLegacyResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionCommentLegacyResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentLegacyResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionLegacyResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseData = Array; -declare type ReactionsCreateForTeamDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionLegacyResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionLegacyResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionLegacyResponseDataUser; - content: string; - created_at: string; -}; -declare type TeamsListPendingInvitationsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListPendingInvitationsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListPendingInvitationsLegacyResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListPendingInvitationsLegacyResponseDataItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: TeamsListPendingInvitationsLegacyResponseDataItemInviter; - team_count: number; - invitation_team_url: string; -}; -declare type TeamsListPendingInvitationsLegacyResponseData = Array; -declare type TeamsListMembersLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListMembersLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListMembersLegacyResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListMembersLegacyResponseData = Array; -declare type TeamsGetMemberLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsGetMemberLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddMemberLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsAddMemberLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddMemberLegacyResponseDataErrorsItem = { - code: string; - field: string; - resource: string; -}; -declare type TeamsAddMemberLegacyResponseData = { - message: string; - errors: Array; -}; -declare type TeamsRemoveMemberLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsRemoveMemberLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetMembershipLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsGetMembershipLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetMembershipLegacyResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsAddOrUpdateMembershipLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - role?: "member" | "maintainer"; -}; -declare type TeamsAddOrUpdateMembershipLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateMembershipLegacyResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsRemoveMembershipLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsRemoveMembershipLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type TeamsListProjectsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsLegacyResponseDataItemPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsListProjectsLegacyResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListProjectsLegacyResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsListProjectsLegacyResponseDataItemCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsListProjectsLegacyResponseDataItemPermissions; -}; -declare type TeamsListProjectsLegacyResponseData = Array; -declare type TeamsReviewProjectLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type TeamsReviewProjectLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsReviewProjectLegacyResponseDataPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsReviewProjectLegacyResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsReviewProjectLegacyResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsReviewProjectLegacyResponseDataCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsReviewProjectLegacyResponseDataPermissions; -}; -declare type TeamsAddOrUpdateProjectLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * project_id parameter - */ - project_id: number; - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; -} & RequiredPreview<"inertia">; -declare type TeamsAddOrUpdateProjectLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateProjectLegacyResponseData = { - message: string; - documentation_url: string; -}; -declare type TeamsRemoveProjectLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * project_id parameter - */ - project_id: number; -}; -declare type TeamsRemoveProjectLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListReposLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposLegacyResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type TeamsListReposLegacyResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsListReposLegacyResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListReposLegacyResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsListReposLegacyResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsListReposLegacyResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: TeamsListReposLegacyResponseDataItemLicense; -}; -declare type TeamsListReposLegacyResponseData = Array; -declare type TeamsCheckManagesRepoLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsCheckManagesRepoLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoLegacyResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoLegacyResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoLegacyResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoLegacyResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseData = { - organization: TeamsCheckManagesRepoLegacyResponseDataOrganization; - parent: TeamsCheckManagesRepoLegacyResponseDataParent; - source: TeamsCheckManagesRepoLegacyResponseDataSource; - permissions: TeamsCheckManagesRepoLegacyResponseDataPermissions; -}; -declare type TeamsAddOrUpdateRepoLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; -}; -declare type TeamsAddOrUpdateRepoLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsRemoveRepoLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsRemoveRepoLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsForLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; -}; -declare type TeamsListIdPGroupsForLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsForLegacyResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsListIdPGroupsForLegacyResponseData = { - groups: Array; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. - */ - groups: TeamsCreateOrUpdateIdPGroupConnectionsLegacyParamsGroups[]; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyResponseData = { - groups: Array; -}; -declare type TeamsListChildLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListChildLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListChildLegacyResponseDataItemParent = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; -}; -declare type TeamsListChildLegacyResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: TeamsListChildLegacyResponseDataItemParent; -}; -declare type TeamsListChildLegacyResponseData = Array; -declare type UsersGetAuthenticatedEndpoint = {}; -declare type UsersGetAuthenticatedRequestOptions = { - method: "GET"; - url: "/user"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetAuthenticatedResponseDataPlan = { - name: string; - space: number; - private_repos: number; - collaborators: number; -}; -declare type UsersGetAuthenticatedResponseData = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - private_gists?: number; - total_private_repos?: number; - owned_private_repos?: number; - disk_usage?: number; - collaborators?: number; - two_factor_authentication?: boolean; - plan?: UsersGetAuthenticatedResponseDataPlan; -}; -declare type UsersUpdateAuthenticatedEndpoint = { - /** - * The new name of the user. - */ - name?: string; - /** - * The publicly visible email address of the user. - */ - email?: string; - /** - * The new blog URL of the user. - */ - blog?: string; - /** - * The new company of the user. - */ - company?: string; - /** - * The new location of the user. - */ - location?: string; - /** - * The new hiring availability of the user. - */ - hireable?: boolean; - /** - * The new short biography of the user. - */ - bio?: string; -}; -declare type UsersUpdateAuthenticatedRequestOptions = { - method: "PATCH"; - url: "/user"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersUpdateAuthenticatedResponseDataPlan = { - name: string; - space: number; - private_repos: number; - collaborators: number; -}; -declare type UsersUpdateAuthenticatedResponseData = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - private_gists: number; - total_private_repos: number; - owned_private_repos: number; - disk_usage: number; - collaborators: number; - two_factor_authentication: boolean; - plan: UsersUpdateAuthenticatedResponseDataPlan; -}; -declare type UsersListBlockedEndpoint = {}; -declare type UsersListBlockedRequestOptions = { - method: "GET"; - url: "/user/blocks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListBlockedResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListBlockedResponseData = Array; -declare type UsersCheckBlockedEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersCheckBlockedRequestOptions = { - method: "GET"; - url: "/user/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersBlockEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersBlockRequestOptions = { - method: "PUT"; - url: "/user/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersUnblockEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersUnblockRequestOptions = { - method: "DELETE"; - url: "/user/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersTogglePrimaryEmailVisibilityEndpoint = { - /** - * Specify the _primary_ email address that needs a visibility change. - */ - email: string; - /** - * Use `public` to enable an authenticated user to view the specified email address, or use `private` so this primary email address cannot be seen publicly. - */ - visibility: string; -}; -declare type UsersTogglePrimaryEmailVisibilityRequestOptions = { - method: "PATCH"; - url: "/user/email/visibility"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersTogglePrimaryEmailVisibilityResponseDataItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string; -}; -declare type UsersTogglePrimaryEmailVisibilityResponseData = Array; -declare type UsersListEmailsEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListEmailsRequestOptions = { - method: "GET"; - url: "/user/emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListEmailsResponseDataItem = { - email: string; - verified: boolean; - primary: boolean; - visibility: string; -}; -declare type UsersListEmailsResponseData = Array; -declare type UsersAddEmailsEndpoint = { - /** - * Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; -}; -declare type UsersAddEmailsRequestOptions = { - method: "POST"; - url: "/user/emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersAddEmailsResponseDataItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string | null; -}; -declare type UsersAddEmailsResponseData = Array; -declare type UsersDeleteEmailsEndpoint = { - /** - * Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; -}; -declare type UsersDeleteEmailsRequestOptions = { - method: "DELETE"; - url: "/user/emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowersForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/followers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForAuthenticatedUserResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowersForAuthenticatedUserResponseData = Array; -declare type UsersListFollowedByAuthenticatedEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowedByAuthenticatedRequestOptions = { - method: "GET"; - url: "/user/following"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowedByAuthenticatedResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowedByAuthenticatedResponseData = Array; -declare type UsersCheckFollowingEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersCheckFollowingRequestOptions = { - method: "GET"; - url: "/user/following/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersFollowEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersFollowRequestOptions = { - method: "PUT"; - url: "/user/following/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersUnfollowEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersUnfollowRequestOptions = { - method: "DELETE"; - url: "/user/following/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListGpgKeysEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListGpgKeysRequestOptions = { - method: "GET"; - url: "/user/gpg_keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListGpgKeysResponseDataItemSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysResponseDataItemEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersListGpgKeysResponseDataItem = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysResponseData = Array; -declare type UsersCreateGpgKeyEndpoint = { - /** - * Your GPG key, generated in ASCII-armored format. See "[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)" for help creating a GPG key. - */ - armored_public_key?: string; -}; -declare type UsersCreateGpgKeyRequestOptions = { - method: "POST"; - url: "/user/gpg_keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersCreateGpgKeyResponseDataSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersCreateGpgKeyResponseDataEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersCreateGpgKeyResponseData = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersGetGpgKeyEndpoint = { - /** - * gpg_key_id parameter - */ - gpg_key_id: number; -}; -declare type UsersGetGpgKeyRequestOptions = { - method: "GET"; - url: "/user/gpg_keys/:gpg_key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetGpgKeyResponseDataSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersGetGpgKeyResponseDataEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersGetGpgKeyResponseData = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersDeleteGpgKeyEndpoint = { - /** - * gpg_key_id parameter - */ - gpg_key_id: number; -}; -declare type UsersDeleteGpgKeyRequestOptions = { - method: "DELETE"; - url: "/user/gpg_keys/:gpg_key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationsForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListInstallationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/installations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url?: string; - issues_url?: string; - members_url?: string; - public_members_url?: string; - avatar_url: string; - description?: string; - gravatar_id?: string; - html_url?: string; - followers_url?: string; - following_url?: string; - gists_url?: string; - starred_url?: string; - subscriptions_url?: string; - organizations_url?: string; - received_events_url?: string; - type?: string; - site_admin?: boolean; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItem = { - id: number; - account: AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemPermissions; - events: Array; - single_file_name: string; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseData = { - total_count: number; - installations: Array; -}; -declare type AppsListInstallationReposForAuthenticatedUserEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListInstallationReposForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/installations/:installation_id/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseData = { - total_count: number; - repositories: Array; -}; -declare type AppsAddRepoToInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; - /** - * repository_id parameter - */ - repository_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsAddRepoToInstallationRequestOptions = { - method: "PUT"; - url: "/user/installations/:installation_id/repositories/:repository_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsRemoveRepoFromInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; - /** - * repository_id parameter - */ - repository_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsRemoveRepoFromInstallationRequestOptions = { - method: "DELETE"; - url: "/user/installations/:installation_id/repositories/:repository_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForAuthenticatedUserEndpoint = { - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListForAuthenticatedUserResponseDataItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForAuthenticatedUserResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForAuthenticatedUserResponseDataItemUser; - labels: Array; - assignee: IssuesListForAuthenticatedUserResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListForAuthenticatedUserResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForAuthenticatedUserResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListForAuthenticatedUserResponseDataItemRepository; -}; -declare type IssuesListForAuthenticatedUserResponseData = Array; -declare type UsersListPublicKeysEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListPublicKeysRequestOptions = { - method: "GET"; - url: "/user/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListPublicKeysResponseDataItem = { - key_id: string; - key: string; -}; -declare type UsersListPublicKeysResponseData = Array; -declare type UsersCreatePublicKeyEndpoint = { - /** - * A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air". - */ - title?: string; - /** - * The public SSH key to add to your GitHub account. See "[Generating a new SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)" for guidance on how to create a public SSH key. - */ - key?: string; -}; -declare type UsersCreatePublicKeyRequestOptions = { - method: "POST"; - url: "/user/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersCreatePublicKeyResponseData = { - key_id: string; - key: string; -}; -declare type UsersGetPublicKeyEndpoint = { - /** - * key_id parameter - */ - key_id: number; -}; -declare type UsersGetPublicKeyRequestOptions = { - method: "GET"; - url: "/user/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetPublicKeyResponseData = { - key_id: string; - key: string; -}; -declare type UsersDeletePublicKeyEndpoint = { - /** - * key_id parameter - */ - key_id: number; -}; -declare type UsersDeletePublicKeyRequestOptions = { - method: "DELETE"; - url: "/user/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListSubscriptionsForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListSubscriptionsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/marketplace_purchases"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseDataItemPlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseDataItemAccount = { - login: string; - id: number; - url: string; - email: null; - organization_billing_email: string; - type: string; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseDataItem = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - account: AppsListSubscriptionsForAuthenticatedUserResponseDataItemAccount; - plan: AppsListSubscriptionsForAuthenticatedUserResponseDataItemPlan; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseData = Array; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedRequestOptions = { - method: "GET"; - url: "/user/marketplace_purchases/stubbed"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemPlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemAccount = { - login: string; - id: number; - url: string; - email: null; - organization_billing_email: string; - type: string; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItem = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - account: AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemAccount; - plan: AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemPlan; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseData = Array; -declare type OrgsListMembershipsEndpoint = { - /** - * 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. - */ - state?: "active" | "pending"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListMembershipsRequestOptions = { - method: "GET"; - url: "/user/memberships/orgs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListMembershipsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListMembershipsResponseDataItemOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListMembershipsResponseDataItem = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsListMembershipsResponseDataItemOrganization; - user: OrgsListMembershipsResponseDataItemUser; -}; -declare type OrgsListMembershipsResponseData = Array; -declare type OrgsGetMembershipForAuthenticatedUserEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsGetMembershipForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/memberships/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsGetMembershipForAuthenticatedUserResponseDataOrganization; - user: OrgsGetMembershipForAuthenticatedUserResponseDataUser; -}; -declare type OrgsUpdateMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The state that the membership should be in. Only `"active"` will be accepted. - */ - state: "active"; -}; -declare type OrgsUpdateMembershipRequestOptions = { - method: "PATCH"; - url: "/user/memberships/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUpdateMembershipResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsUpdateMembershipResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsUpdateMembershipResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsUpdateMembershipResponseDataOrganization; - user: OrgsUpdateMembershipResponseDataUser; -}; -declare type MigrationsStartForAuthenticatedUserEndpoint = { - /** - * An array of repositories to include in the migration. - */ - repositories: string[]; - /** - * Locks the `repositories` to prevent changes during the migration when set to `true`. - */ - lock_repositories?: boolean; - /** - * Does not include attachments uploaded to GitHub.com in the migration data when set to `true`. Excluding attachments will reduce the migration archive file size. - */ - exclude_attachments?: boolean; -}; -declare type MigrationsStartForAuthenticatedUserRequestOptions = { - method: "POST"; - url: "/user/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsStartForAuthenticatedUserResponseData = { - id: number; - owner: MigrationsStartForAuthenticatedUserResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItem = { - id: number; - owner: MigrationsListForAuthenticatedUserResponseDataItemOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForAuthenticatedUserResponseData = Array; -declare type MigrationsGetStatusForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsGetStatusForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/migrations/:migration_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseData = { - id: number; - owner: MigrationsGetStatusForAuthenticatedUserResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsGetArchiveForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsGetArchiveForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsDeleteArchiveForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsDeleteArchiveForAuthenticatedUserRequestOptions = { - method: "DELETE"; - url: "/user/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsUnlockRepoForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; - /** - * repo_name parameter - */ - repo_name: string; -} & RequiredPreview<"wyandotte">; -declare type MigrationsUnlockRepoForAuthenticatedUserRequestOptions = { - method: "DELETE"; - url: "/user/migrations/:migration_id/repos/:repo_name/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/orgs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListForAuthenticatedUserResponseDataItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListForAuthenticatedUserResponseData = Array; -declare type ProjectsCreateForAuthenticatedUserEndpoint = { - /** - * The name of the project. - */ - name: string; - /** - * The description of the project. - */ - body?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateForAuthenticatedUserRequestOptions = { - method: "POST"; - url: "/user/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateForAuthenticatedUserResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateForAuthenticatedUserResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForAuthenticatedUserResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type UsersListPublicEmailsEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListPublicEmailsRequestOptions = { - method: "GET"; - url: "/user/public_emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListPublicEmailsResponseDataItem = { - email: string; - verified: boolean; - primary: boolean; - visibility: string; -}; -declare type UsersListPublicEmailsResponseData = Array; -declare type ReposListForAuthenticatedUserEndpoint = { - /** - * Can be one of `all`, `public`, or `private`. - */ - visibility?: "all" | "public" | "private"; - /** - * 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. - */ - affiliation?: string; - /** - * Can be one of `all`, `owner`, `public`, `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**. - */ - type?: "all" | "owner" | "public" | "private" | "member"; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateForAuthenticatedUserEndpoint = { - /** - * The name of the repository. - */ - name: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to create a private repository or `false` to create a public one. - */ - private?: boolean; - /** - * 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`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. - * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * 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". - */ - gitignore_template?: string; - /** - * 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". - */ - license_template?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; -}; -declare type ReposCreateForAuthenticatedUserRequestOptions = { - method: "POST"; - url: "/user/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateForAuthenticatedUserResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateForAuthenticatedUserResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateForAuthenticatedUserResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateForAuthenticatedUserResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateForAuthenticatedUserResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListInvitationsForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListInvitationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/repository_invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListInvitationsForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItem = { - id: number; - repository: ReposListInvitationsForAuthenticatedUserResponseDataItemRepository; - invitee: ReposListInvitationsForAuthenticatedUserResponseDataItemInvitee; - inviter: ReposListInvitationsForAuthenticatedUserResponseDataItemInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseData = Array; -declare type ReposAcceptInvitationEndpoint = { - /** - * invitation_id parameter - */ - invitation_id: number; -}; -declare type ReposAcceptInvitationRequestOptions = { - method: "PATCH"; - url: "/user/repository_invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDeclineInvitationEndpoint = { - /** - * invitation_id parameter - */ - invitation_id: number; -}; -declare type ReposDeclineInvitationRequestOptions = { - method: "DELETE"; - url: "/user/repository_invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByAuthenticatedUserEndpoint = { - /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). - */ - sort?: "created" | "updated"; - /** - * One of `asc` (ascending) or `desc` (descending). - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListReposStarredByAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/starred"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposStarredByAuthenticatedUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposStarredByAuthenticatedUserResponseDataItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseData = Array; -declare type ActivityCheckRepoIsStarredByAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityCheckRepoIsStarredByAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/starred/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityStarRepoForAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityStarRepoForAuthenticatedUserRequestOptions = { - method: "PUT"; - url: "/user/starred/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityUnstarRepoForAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityUnstarRepoForAuthenticatedUserRequestOptions = { - method: "DELETE"; - url: "/user/starred/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListWatchedReposForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListWatchedReposForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/subscriptions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListWatchedReposForAuthenticatedUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListWatchedReposForAuthenticatedUserResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ActivityListWatchedReposForAuthenticatedUserResponseDataItemLicense; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseData = Array; -declare type ActivityCheckWatchingRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityCheckWatchingRepoLegacyRequestOptions = { - method: "GET"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityWatchRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityWatchRepoLegacyRequestOptions = { - method: "PUT"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityStopWatchingRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityStopWatchingRepoLegacyRequestOptions = { - method: "DELETE"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListForAuthenticatedUserResponseDataItemOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsListForAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsListForAuthenticatedUserResponseDataItemOrganization; -}; -declare type TeamsListForAuthenticatedUserResponseData = Array; -declare type MigrationsListReposForUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListReposForUserRequestOptions = { - method: "GET"; - url: "/user/:migration_id/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListReposForUserResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type MigrationsListReposForUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListReposForUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListReposForUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListReposForUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListReposForUserResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: MigrationsListReposForUserResponseDataItemLicense; -}; -declare type MigrationsListReposForUserResponseData = Array; -declare type UsersListEndpoint = { - /** - * The integer ID of the last User that you've seen. - */ - since?: string; -}; -declare type UsersListRequestOptions = { - method: "GET"; - url: "/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListResponseData = Array; -declare type UsersGetByUsernameEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersGetByUsernameRequestOptions = { - method: "GET"; - url: "/users/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetByUsernameResponseDataPlan = { - name: string; - space: number; - collaborators: number; - private_repos: number; -}; -declare type UsersGetByUsernameResponseData = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - plan?: UsersGetByUsernameResponseDataPlan; -}; -declare type ActivityListEventsForAuthenticatedUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListEventsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/users/:username/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListOrgEventsForAuthenticatedUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListOrgEventsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/users/:username/events/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListPublicEventsForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListPublicEventsForUserRequestOptions = { - method: "GET"; - url: "/users/:username/events/public"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowersForUserRequestOptions = { - method: "GET"; - url: "/users/:username/followers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForUserResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowersForUserResponseData = Array; -declare type UsersListFollowingForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowingForUserRequestOptions = { - method: "GET"; - url: "/users/:username/following"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowingForUserResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowingForUserResponseData = Array; -declare type UsersCheckFollowingForUserEndpoint = { - /** - * username parameter - */ - username: string; + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/merge", "put">; /** - * target_user parameter + * @see https://docs.github.com/rest/reference/pulls#update-a-review-for-a-pull-request */ - target_user: string; -}; -declare type UsersCheckFollowingForUserRequestOptions = { - method: "GET"; - url: "/users/:username/following/:target_user"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/gists"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListForUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListForUserResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListForUserResponseDataItemFiles = { - "hello_world.rb": GistsListForUserResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListForUserResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListForUserResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListForUserResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListForUserResponseData = Array; -declare type UsersListGpgKeysForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListGpgKeysForUserRequestOptions = { - method: "GET"; - url: "/users/:username/gpg_keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListGpgKeysForUserResponseDataItemSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysForUserResponseDataItemEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersListGpgKeysForUserResponseDataItem = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysForUserResponseData = Array; -declare type UsersGetContextForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * 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_type?: "organization" | "repository" | "issue" | "pull_request"; - /** - * Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. - */ - subject_id?: string; -}; -declare type UsersGetContextForUserRequestOptions = { - method: "GET"; - url: "/users/:username/hovercard"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetContextForUserResponseDataContextsItem = { - message: string; - octicon: string; -}; -declare type UsersGetContextForUserResponseData = { - contexts: Array; -}; -declare type AppsGetUserInstallationEndpoint = { - /** - * username parameter - */ - username: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetUserInstallationRequestOptions = { - method: "GET"; - url: "/users/:username/installation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetUserInstallationResponseDataPermissions = { - checks: string; - metadata: string; - contents: string; -}; -declare type AppsGetUserInstallationResponseDataAccount = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsGetUserInstallationResponseData = { - id: number; - account: AppsGetUserInstallationResponseDataAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetUserInstallationResponseDataPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type UsersListPublicKeysForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListPublicKeysForUserRequestOptions = { - method: "GET"; - url: "/users/:username/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListPublicKeysForUserResponseDataItem = { - id: number; - key: string; -}; -declare type UsersListPublicKeysForUserResponseData = Array; -declare type OrgsListForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/orgs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListForUserResponseDataItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListForUserResponseData = Array; -declare type ProjectsListForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListForUserResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListForUserResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForUserResponseDataItemCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForUserResponseData = Array; -declare type ActivityListReceivedEventsForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListReceivedEventsForUserRequestOptions = { - method: "GET"; - url: "/users/:username/received_events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReceivedPublicEventsForUserEndpoint = { + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}", "put">; /** - * username parameter + * @see https://docs.github.com/rest/reference/pulls#dismiss-a-review-for-a-pull-request */ - username: string; + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/v3/pulls/#update-a-pull-request-branch */ - per_page?: number; + "PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch": Operation<"/repos/{owner}/{repo}/pulls/{pull_number}/update-branch", "put", "lydian">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/activity#set-a-repository-subscription */ - page?: number; -}; -declare type ActivityListReceivedPublicEventsForUserRequestOptions = { - method: "GET"; - url: "/users/:username/received_events/public"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForUserEndpoint = { + "PUT /repos/{owner}/{repo}/subscription": Operation<"/repos/{owner}/{repo}/subscription", "put">; /** - * username parameter + * @see https://docs.github.com/v3/repos/#replace-all-repository-topics */ - username: string; + "PUT /repos/{owner}/{repo}/topics": Operation<"/repos/{owner}/{repo}/topics", "put", "mercy">; /** - * Can be one of `all`, `owner`, `member`. + * @see https://docs.github.com/v3/repos/#enable-vulnerability-alerts */ - type?: "all" | "owner" | "member"; + "PUT /repos/{owner}/{repo}/vulnerability-alerts": Operation<"/repos/{owner}/{repo}/vulnerability-alerts", "put", "dorian">; /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. + * @see https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-group */ - sort?: "created" | "updated" | "pushed" | "full_name"; + "PUT /scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}": Operation<"/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}", "put">; /** - * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` + * @see https://docs.github.com/rest/reference/enterprise-admin#set-scim-information-for-a-provisioned-enterprise-user */ - direction?: "asc" | "desc"; + "PUT /scim/v2/enterprises/{enterprise}/Users/{scim_user_id}": Operation<"/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/v3/scim/#set-scim-information-for-a-provisioned-user */ - per_page?: number; + "PUT /scim/v2/organizations/{org}/Users/{scim_user_id}": Operation<"/scim/v2/organizations/{org}/Users/{scim_user_id}", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/teams#add-team-member-legacy */ - page?: number; -}; -declare type ReposListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByUserEndpoint = { + "PUT /teams/{team_id}/members/{username}": Operation<"/teams/{team_id}/members/{username}", "put">; /** - * username parameter + * @see https://docs.github.com/rest/reference/teams#add-or-update-team-membership-for-a-user-legacy */ - username: string; + "PUT /teams/{team_id}/memberships/{username}": Operation<"/teams/{team_id}/memberships/{username}", "put">; /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). + * @see https://docs.github.com/v3/teams/#add-or-update-team-project-permissions-legacy */ - sort?: "created" | "updated"; + "PUT /teams/{team_id}/projects/{project_id}": Operation<"/teams/{team_id}/projects/{project_id}", "put", "inertia">; /** - * One of `asc` (ascending) or `desc` (descending). + * @see https://docs.github.com/v3/teams/#add-or-update-team-repository-permissions-legacy */ - direction?: "asc" | "desc"; + "PUT /teams/{team_id}/repos/{owner}/{repo}": Operation<"/teams/{team_id}/repos/{owner}/{repo}", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/users#block-a-user */ - per_page?: number; + "PUT /user/blocks/{username}": Operation<"/user/blocks/{username}", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/users#follow-a-user */ - page?: number; -}; -declare type ActivityListReposStarredByUserRequestOptions = { - method: "GET"; - url: "/users/:username/starred"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListReposStarredByUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListReposStarredByUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposStarredByUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposStarredByUserResponseDataItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ActivityListReposStarredByUserResponseData = Array; -declare type ActivityListReposWatchedByUserEndpoint = { + "PUT /user/following/{username}": Operation<"/user/following/{username}", "put">; /** - * username parameter + * @see https://docs.github.com/rest/reference/apps#add-a-repository-to-an-app-installation */ - username: string; + "PUT /user/installations/{installation_id}/repositories/{repository_id}": Operation<"/user/installations/{installation_id}/repositories/{repository_id}", "put">; /** - * Results per page (max 100) + * @see https://docs.github.com/rest/reference/interactions#set-interaction-restrictions-for-your-public-repositories */ - per_page?: number; + "PUT /user/interaction-limits": Operation<"/user/interaction-limits", "put">; /** - * Page number of the results to fetch. + * @see https://docs.github.com/rest/reference/activity#star-a-repository-for-the-authenticated-user */ - page?: number; -}; -declare type ActivityListReposWatchedByUserRequestOptions = { - method: "GET"; - url: "/users/:username/subscriptions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposWatchedByUserResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ActivityListReposWatchedByUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListReposWatchedByUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListReposWatchedByUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposWatchedByUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposWatchedByUserResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ActivityListReposWatchedByUserResponseDataItemLicense; -}; -declare type ActivityListReposWatchedByUserResponseData = Array; -declare type AppsCreateInstallationTokenParamsPermissions = {}; -declare type GistsCreateParamsFiles = { - content?: string; -}; -declare type GistsUpdateParamsFiles = { - content?: string; - filename?: string; -}; -declare type OrgsCreateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type OrgsUpdateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgParamsGroups = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type ReposUpdateBranchProtectionParamsRequiredStatusChecks = { - strict: boolean; - contexts: string[]; -}; -declare type ReposUpdateBranchProtectionParamsRequiredPullRequestReviews = { - dismissal_restrictions?: ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews?: boolean; - require_code_owner_reviews?: boolean; - required_approving_review_count?: number; -}; -declare type ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions = { - users?: string[]; - teams?: string[]; -}; -declare type ReposUpdateBranchProtectionParamsRestrictions = { - users: string[]; - teams: string[]; - apps?: string[]; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions = { - users?: string[]; - teams?: string[]; -}; -declare type ChecksCreateParamsOutput = { - title: string; - summary: string; - text?: string; - annotations?: ChecksCreateParamsOutputAnnotations[]; - images?: ChecksCreateParamsOutputImages[]; -}; -declare type ChecksCreateParamsOutputAnnotations = { - path: string; - start_line: number; - end_line: number; - start_column?: number; - end_column?: number; - annotation_level: "notice" | "warning" | "failure"; - message: string; - title?: string; - raw_details?: string; -}; -declare type ChecksCreateParamsOutputImages = { - alt: string; - image_url: string; - caption?: string; -}; -declare type ChecksCreateParamsActions = { - label: string; - description: string; - identifier: string; -}; -declare type ChecksUpdateParamsOutput = { - title?: string; - summary: string; - text?: string; - annotations?: ChecksUpdateParamsOutputAnnotations[]; - images?: ChecksUpdateParamsOutputImages[]; -}; -declare type ChecksUpdateParamsOutputAnnotations = { - path: string; - start_line: number; - end_line: number; - start_column?: number; - end_column?: number; - annotation_level: "notice" | "warning" | "failure"; - message: string; - title?: string; - raw_details?: string; -}; -declare type ChecksUpdateParamsOutputImages = { - alt: string; - image_url: string; - caption?: string; -}; -declare type ChecksUpdateParamsActions = { - label: string; - description: string; - identifier: string; -}; -declare type ChecksSetSuitesPreferencesParamsAutoTriggerChecks = { - app_id: number; - setting: boolean; -}; -declare type ReposCreateOrUpdateFileParamsCommitter = { - name: string; - email: string; -}; -declare type ReposCreateOrUpdateFileParamsAuthor = { - name: string; - email: string; -}; -declare type ReposDeleteFileParamsCommitter = { - name?: string; - email?: string; -}; -declare type ReposDeleteFileParamsAuthor = { - name?: string; - email?: string; -}; -declare type ReposCreateDispatchEventParamsClientPayload = {}; -declare type GitCreateCommitParamsAuthor = { - name?: string; - email?: string; - date?: string; -}; -declare type GitCreateCommitParamsCommitter = { - name?: string; - email?: string; - date?: string; -}; -declare type GitCreateTagParamsTagger = { - name?: string; - email?: string; - date?: string; -}; -declare type GitCreateTreeParamsTree = { - path?: string; - mode?: "100644" | "100755" | "040000" | "160000" | "120000"; - type?: "blob" | "tree" | "commit"; - sha?: string | null; - content?: string; -}; -declare type ReposCreateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type ReposUpdateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type ReposEnablePagesSiteParamsSource = { - branch?: "master" | "gh-pages"; - path?: string; -}; -declare type PullsCreateReviewParamsComments = { - path: string; - position: number; - body: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyParamsGroups = { - group_id: string; - group_name: string; - group_description: string; -}; + "PUT /user/starred/{owner}/{repo}": Operation<"/user/starred/{owner}/{repo}", "put">; +} export {}; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/index.d.ts b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/index.d.ts index 5d2d5ae09..004ae9b22 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/index.d.ts +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-types/index.d.ts @@ -4,6 +4,7 @@ export * from "./EndpointInterface"; export * from "./EndpointOptions"; export * from "./Fetch"; export * from "./OctokitResponse"; +export * from "./RequestError"; export * from "./RequestHeaders"; export * from "./RequestInterface"; export * from "./RequestMethod"; diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-web/index.js b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-web/index.js index 3c0cafc19..ce27278ed 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-web/index.js +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/dist-web/index.js @@ -1,4 +1,4 @@ -const VERSION = "2.16.2"; +const VERSION = "6.0.3"; export { VERSION }; //# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/package.json b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/package.json index 9036e41f7..1176062e4 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/package.json +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/types", "description": "Shared TypeScript definitions for Octokit projects", - "version": "2.16.2", + "version": "6.0.3", "license": "MIT", "files": [ "dist-*/", @@ -18,26 +18,28 @@ ], "repository": "https://github.com/octokit/types.ts", "dependencies": { + "@octokit/openapi-types": "^1.2.0", "@types/node": ">= 8" }, "devDependencies": { - "@gimenete/type-writer": "^0.1.5", "@octokit/graphql": "^4.2.2", "@pika/pack": "^0.5.0", "@pika/plugin-build-node": "^0.9.0", "@pika/plugin-build-web": "^0.9.0", "@pika/plugin-ts-standard-pkg": "^0.9.0", "handlebars": "^4.7.6", + "json-schema-to-typescript": "^10.0.0", "lodash.set": "^4.3.2", "npm-run-all": "^4.1.5", + "openapi-typescript": "^2.3.1", "pascal-case": "^3.1.1", "prettier": "^2.0.0", "semantic-release": "^17.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", "sort-keys": "^4.0.0", "string-to-jsdoc-comment": "^1.0.0", - "typedoc": "^0.17.0", - "typescript": "^3.6.4" + "typedoc": "^0.19.0", + "typescript": "^4.0.2" }, "publishConfig": { "access": "public" diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/package.json b/node_modules/@octokit/plugin-rest-endpoint-methods/package.json index 351d1433f..86b3b976c 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/package.json +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/plugin-rest-endpoint-methods", "description": "Octokit plugin adding one method for all of api.github.com REST API endpoints", - "version": "2.4.0", + "version": "4.3.1", "license": "MIT", "files": [ "dist-*/", @@ -17,34 +17,35 @@ ], "repository": "https://github.com/octokit/plugin-rest-endpoint-methods.js", "dependencies": { - "@octokit/types": "^2.0.1", + "@octokit/types": "^6.0.3", "deprecation": "^2.3.1" }, "devDependencies": { - "@gimenete/type-writer": "^0.1.4", - "@octokit/core": "^2.1.2", + "@gimenete/type-writer": "^0.1.5", + "@octokit/core": "^3.0.0", "@octokit/graphql": "^4.3.1", "@pika/pack": "^0.5.0", - "@pika/plugin-build-node": "^0.7.1", - "@pika/plugin-build-web": "^0.7.1", - "@pika/plugin-ts-standard-pkg": "^0.7.1", + "@pika/plugin-build-node": "^0.9.0", + "@pika/plugin-build-web": "^0.9.0", + "@pika/plugin-ts-standard-pkg": "^0.9.0", "@types/fetch-mock": "^7.3.1", - "@types/jest": "^25.1.0", - "@types/node": "^13.1.0", - "fetch-mock": "^8.0.0", - "jest": "^24.9.0", + "@types/jest": "^26.0.0", + "@types/node": "^14.0.4", + "fetch-mock": "^9.0.0", + "fs-extra": "^9.0.0", + "jest": "^26.1.0", "lodash.camelcase": "^4.3.0", "lodash.set": "^4.3.2", "lodash.upperfirst": "^4.3.1", "mustache": "^4.0.0", "npm-run-all": "^4.1.5", - "prettier": "^1.19.1", + "prettier": "^2.0.1", "semantic-release": "^17.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", "sort-keys": "^4.0.0", "string-to-jsdoc-comment": "^1.0.0", - "ts-jest": "^25.1.0", - "typescript": "^3.7.2" + "ts-jest": "^26.1.3", + "typescript": "^4.0.2" }, "publishConfig": { "access": "public" diff --git a/node_modules/@octokit/request/dist-node/index.js b/node_modules/@octokit/request/dist-node/index.js index 72048946d..8518d8043 100644 --- a/node_modules/@octokit/request/dist-node/index.js +++ b/node_modules/@octokit/request/dist-node/index.js @@ -6,18 +6,18 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau var endpoint = require('@octokit/endpoint'); var universalUserAgent = require('universal-user-agent'); -var isPlainObject = _interopDefault(require('is-plain-object')); +var isPlainObject = require('is-plain-object'); var nodeFetch = _interopDefault(require('node-fetch')); var requestError = require('@octokit/request-error'); -const VERSION = "5.4.7"; +const VERSION = "5.4.9"; function getBufferResponse(response) { return response.arrayBuffer(); } function fetchWrapper(requestOptions) { - if (isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) { + if (isPlainObject.isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body)) { requestOptions.body = JSON.stringify(requestOptions.body); } diff --git a/node_modules/@octokit/request/dist-node/index.js.map b/node_modules/@octokit/request/dist-node/index.js.map index 7beace707..11d9ddcb3 100644 --- a/node_modules/@octokit/request/dist-node/index.js.map +++ b/node_modules/@octokit/request/dist-node/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.7\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import isPlainObject from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["VERSION","getBufferResponse","response","arrayBuffer","fetchWrapper","requestOptions","isPlainObject","body","Array","isArray","JSON","stringify","headers","status","url","fetch","request","nodeFetch","Object","assign","method","redirect","then","keyAndValue","RequestError","statusText","text","message","error","responseBody","parse","errors","map","join","e","contentType","get","test","json","getBuffer","data","catch","withDefaults","oldEndpoint","newDefaults","endpoint","defaults","newApi","route","parameters","endpointOptions","merge","hook","bind","getUserAgent"],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.9\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import { isPlainObject } from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["VERSION","getBufferResponse","response","arrayBuffer","fetchWrapper","requestOptions","isPlainObject","body","Array","isArray","JSON","stringify","headers","status","url","fetch","request","nodeFetch","Object","assign","method","redirect","then","keyAndValue","RequestError","statusText","text","message","error","responseBody","parse","errors","map","join","e","contentType","get","test","json","getBuffer","data","catch","withDefaults","oldEndpoint","newDefaults","endpoint","defaults","newApi","route","parameters","endpointOptions","merge","hook","bind","getUserAgent"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/request/dist-src/fetch-wrapper.js b/node_modules/@octokit/request/dist-src/fetch-wrapper.js index 5fef6e5fc..e4ae1b0b4 100644 --- a/node_modules/@octokit/request/dist-src/fetch-wrapper.js +++ b/node_modules/@octokit/request/dist-src/fetch-wrapper.js @@ -1,4 +1,4 @@ -import isPlainObject from "is-plain-object"; +import { isPlainObject } from "is-plain-object"; import nodeFetch from "node-fetch"; import { RequestError } from "@octokit/request-error"; import getBuffer from "./get-buffer-response"; diff --git a/node_modules/@octokit/request/dist-src/version.js b/node_modules/@octokit/request/dist-src/version.js index 37a8e689f..856641b39 100644 --- a/node_modules/@octokit/request/dist-src/version.js +++ b/node_modules/@octokit/request/dist-src/version.js @@ -1 +1 @@ -export const VERSION = "5.4.7"; +export const VERSION = "5.4.9"; diff --git a/node_modules/@octokit/request/dist-types/version.d.ts b/node_modules/@octokit/request/dist-types/version.d.ts index 0671088d7..cfc9b7aff 100644 --- a/node_modules/@octokit/request/dist-types/version.d.ts +++ b/node_modules/@octokit/request/dist-types/version.d.ts @@ -1 +1 @@ -export declare const VERSION = "5.4.7"; +export declare const VERSION = "5.4.9"; diff --git a/node_modules/@octokit/request/dist-web/index.js b/node_modules/@octokit/request/dist-web/index.js index 7c54c1ffd..37fefe452 100644 --- a/node_modules/@octokit/request/dist-web/index.js +++ b/node_modules/@octokit/request/dist-web/index.js @@ -1,10 +1,10 @@ import { endpoint } from '@octokit/endpoint'; import { getUserAgent } from 'universal-user-agent'; -import isPlainObject from 'is-plain-object'; +import { isPlainObject } from 'is-plain-object'; import nodeFetch from 'node-fetch'; import { RequestError } from '@octokit/request-error'; -const VERSION = "5.4.7"; +const VERSION = "5.4.9"; function getBufferResponse(response) { return response.arrayBuffer(); diff --git a/node_modules/@octokit/request/dist-web/index.js.map b/node_modules/@octokit/request/dist-web/index.js.map index 9e2cc2037..a0f0426b0 100644 --- a/node_modules/@octokit/request/dist-web/index.js.map +++ b/node_modules/@octokit/request/dist-web/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.7\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import isPlainObject from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["getBuffer"],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/get-buffer-response.js","../dist-src/fetch-wrapper.js","../dist-src/with-defaults.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"5.4.9\";\n","export default function getBufferResponse(response) {\n return response.arrayBuffer();\n}\n","import { isPlainObject } from \"is-plain-object\";\nimport nodeFetch from \"node-fetch\";\nimport { RequestError } from \"@octokit/request-error\";\nimport getBuffer from \"./get-buffer-response\";\nexport default function fetchWrapper(requestOptions) {\n if (isPlainObject(requestOptions.body) ||\n Array.isArray(requestOptions.body)) {\n requestOptions.body = JSON.stringify(requestOptions.body);\n }\n let headers = {};\n let status;\n let url;\n const fetch = (requestOptions.request && requestOptions.request.fetch) || nodeFetch;\n return fetch(requestOptions.url, Object.assign({\n method: requestOptions.method,\n body: requestOptions.body,\n headers: requestOptions.headers,\n redirect: requestOptions.redirect,\n }, requestOptions.request))\n .then((response) => {\n url = response.url;\n status = response.status;\n for (const keyAndValue of response.headers) {\n headers[keyAndValue[0]] = keyAndValue[1];\n }\n if (status === 204 || status === 205) {\n return;\n }\n // GitHub API returns 200 for HEAD requests\n if (requestOptions.method === \"HEAD\") {\n if (status < 400) {\n return;\n }\n throw new RequestError(response.statusText, status, {\n headers,\n request: requestOptions,\n });\n }\n if (status === 304) {\n throw new RequestError(\"Not modified\", status, {\n headers,\n request: requestOptions,\n });\n }\n if (status >= 400) {\n return response\n .text()\n .then((message) => {\n const error = new RequestError(message, status, {\n headers,\n request: requestOptions,\n });\n try {\n let responseBody = JSON.parse(error.message);\n Object.assign(error, responseBody);\n let errors = responseBody.errors;\n // Assumption `errors` would always be in Array format\n error.message =\n error.message + \": \" + errors.map(JSON.stringify).join(\", \");\n }\n catch (e) {\n // ignore, see octokit/rest.js#684\n }\n throw error;\n });\n }\n const contentType = response.headers.get(\"content-type\");\n if (/application\\/json/.test(contentType)) {\n return response.json();\n }\n if (!contentType || /^text\\/|charset=utf-8$/.test(contentType)) {\n return response.text();\n }\n return getBuffer(response);\n })\n .then((data) => {\n return {\n status,\n url,\n headers,\n data,\n };\n })\n .catch((error) => {\n if (error instanceof RequestError) {\n throw error;\n }\n throw new RequestError(error.message, 500, {\n headers,\n request: requestOptions,\n });\n });\n}\n","import fetchWrapper from \"./fetch-wrapper\";\nexport default function withDefaults(oldEndpoint, newDefaults) {\n const endpoint = oldEndpoint.defaults(newDefaults);\n const newApi = function (route, parameters) {\n const endpointOptions = endpoint.merge(route, parameters);\n if (!endpointOptions.request || !endpointOptions.request.hook) {\n return fetchWrapper(endpoint.parse(endpointOptions));\n }\n const request = (route, parameters) => {\n return fetchWrapper(endpoint.parse(endpoint.merge(route, parameters)));\n };\n Object.assign(request, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n return endpointOptions.request.hook(request, endpointOptions);\n };\n return Object.assign(newApi, {\n endpoint,\n defaults: withDefaults.bind(null, endpoint),\n });\n}\n","import { endpoint } from \"@octokit/endpoint\";\nimport { getUserAgent } from \"universal-user-agent\";\nimport { VERSION } from \"./version\";\nimport withDefaults from \"./with-defaults\";\nexport const request = withDefaults(endpoint, {\n headers: {\n \"user-agent\": `octokit-request.js/${VERSION} ${getUserAgent()}`,\n },\n});\n"],"names":["getBuffer"],"mappings":"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"} \ No newline at end of file diff --git a/node_modules/@octokit/request/node_modules/is-plain-object/README.md b/node_modules/@octokit/request/node_modules/is-plain-object/README.md index 8e322b966..5c074ab06 100644 --- a/node_modules/@octokit/request/node_modules/is-plain-object/README.md +++ b/node_modules/@octokit/request/node_modules/is-plain-object/README.md @@ -16,8 +16,14 @@ Use [isobject](https://github.com/jonschlinkert/isobject) if you only want to ch ## Usage +with es modules ```js -import isPlainObject from 'is-plain-object'; +import { isPlainObject } from 'is-plain-object'; +``` + +or with commonjs +```js +const { isPlainObject } = require('is-plain-object'); ``` **true** when created by the `Object` constructor, or Object.create(null). diff --git a/node_modules/@octokit/request/node_modules/is-plain-object/index.cjs.js b/node_modules/@octokit/request/node_modules/is-plain-object/dist/is-plain-object.js similarity index 87% rename from node_modules/@octokit/request/node_modules/is-plain-object/index.cjs.js rename to node_modules/@octokit/request/node_modules/is-plain-object/dist/is-plain-object.js index 34a441490..d134e4f28 100644 --- a/node_modules/@octokit/request/node_modules/is-plain-object/index.cjs.js +++ b/node_modules/@octokit/request/node_modules/is-plain-object/dist/is-plain-object.js @@ -1,5 +1,7 @@ 'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); + /*! * is-plain-object * @@ -33,4 +35,4 @@ function isPlainObject(o) { return true; } -module.exports = isPlainObject; +exports.isPlainObject = isPlainObject; diff --git a/node_modules/@octokit/request/node_modules/is-plain-object/index.es.js b/node_modules/@octokit/request/node_modules/is-plain-object/dist/is-plain-object.mjs similarity index 96% rename from node_modules/@octokit/request/node_modules/is-plain-object/index.es.js rename to node_modules/@octokit/request/node_modules/is-plain-object/dist/is-plain-object.mjs index 5b0098e2a..c2d9f351f 100644 --- a/node_modules/@octokit/request/node_modules/is-plain-object/index.es.js +++ b/node_modules/@octokit/request/node_modules/is-plain-object/dist/is-plain-object.mjs @@ -31,4 +31,4 @@ function isPlainObject(o) { return true; } -export default isPlainObject; +export { isPlainObject }; diff --git a/node_modules/@octokit/request/node_modules/is-plain-object/index.d.ts b/node_modules/@octokit/request/node_modules/is-plain-object/index.d.ts deleted file mode 100644 index fd131f01c..000000000 --- a/node_modules/@octokit/request/node_modules/is-plain-object/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -declare function isPlainObject(o: any): boolean; - -export default isPlainObject; diff --git a/node_modules/@octokit/request/node_modules/is-plain-object/is-plain-object.d.ts b/node_modules/@octokit/request/node_modules/is-plain-object/is-plain-object.d.ts new file mode 100644 index 000000000..a359940d5 --- /dev/null +++ b/node_modules/@octokit/request/node_modules/is-plain-object/is-plain-object.d.ts @@ -0,0 +1 @@ +export function isPlainObject(o: any): boolean; diff --git a/node_modules/@octokit/request/node_modules/is-plain-object/package.json b/node_modules/@octokit/request/node_modules/is-plain-object/package.json index e4923f1f4..3ea169a7d 100644 --- a/node_modules/@octokit/request/node_modules/is-plain-object/package.json +++ b/node_modules/@octokit/request/node_modules/is-plain-object/package.json @@ -1,7 +1,7 @@ { "name": "is-plain-object", "description": "Returns true if an object was created by the `Object` constructor, or Object.create(null).", - "version": "4.1.1", + "version": "5.0.0", "homepage": "https://github.com/jonschlinkert/is-plain-object", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", "contributors": [ @@ -16,14 +16,20 @@ "url": "https://github.com/jonschlinkert/is-plain-object/issues" }, "license": "MIT", - "main": "index.cjs.js", - "module": "index.es.js", - "types": "index.d.ts", + "main": "dist/is-plain-object.js", + "module": "dist/is-plain-object.mjs", + "types": "is-plain-object.d.ts", "files": [ - "index.d.ts", - "index.es.js", - "index.cjs.js" + "is-plain-object.d.ts", + "dist" ], + "exports": { + ".": { + "import": "./dist/is-plain-object.mjs", + "require": "./dist/is-plain-object.js" + }, + "./package.json": "./package.json" + }, "engines": { "node": ">=0.10.0" }, diff --git a/node_modules/@octokit/request/package.json b/node_modules/@octokit/request/package.json index f4a7c98af..db18c8086 100644 --- a/node_modules/@octokit/request/package.json +++ b/node_modules/@octokit/request/package.json @@ -1,7 +1,7 @@ { "name": "@octokit/request", "description": "Send parameterized requests to GitHub’s APIs with sensible defaults in browsers and Node", - "version": "5.4.7", + "version": "5.4.9", "license": "MIT", "files": [ "dist-*/", @@ -28,8 +28,8 @@ "@octokit/request-error": "^2.0.0", "@octokit/types": "^5.0.0", "deprecation": "^2.0.0", - "is-plain-object": "^4.0.0", - "node-fetch": "^2.3.0", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.1", "once": "^1.4.0", "universal-user-agent": "^6.0.0" }, @@ -52,7 +52,7 @@ "semantic-release": "^17.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", "ts-jest": "^26.1.0", - "typescript": "^3.9.5" + "typescript": "^4.0.2" }, "publishConfig": { "access": "public" diff --git a/node_modules/@octokit/rest/README.md b/node_modules/@octokit/rest/README.md index 2dd439704..31e11974a 100644 --- a/node_modules/@octokit/rest/README.md +++ b/node_modules/@octokit/rest/README.md @@ -3,26 +3,47 @@ > GitHub REST API client for JavaScript [![@latest](https://img.shields.io/npm/v/@octokit/rest.svg)](https://www.npmjs.com/package/@octokit/rest) -![Build Status](https://github.com/octokit/rest.js/workflows/Test/badge.svg) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/rest.js.svg)](https://greenkeeper.io/) +[![Build Status](https://github.com/octokit/rest.js/workflows/Test/badge.svg)](https://github.com/octokit/rest.js/actions?query=workflow%3ATest+branch%3Amaster) -## Installation +## Usage -```shell -npm install @octokit/rest + + + + + +
+Browsers + +Load @octokit/rest directly from cdn.skypack.dev + +```html + ``` -## Usage +
+Node + + +Install with npm install @octokit/rest ```js const { Octokit } = require("@octokit/rest"); +// or: import { Octokit } from "@octokit/rest"; +``` + +
+ +```js const octokit = new Octokit(); -// Compare: https://developer.github.com/v3/repos/#list-organization-repositories +// Compare: https://docs.github.com/en/rest/reference/repos/#list-organization-repositories octokit.repos .listForOrg({ org: "octokit", - type: "public" + type: "public", }) .then(({ data }) => { // handle data @@ -37,9 +58,9 @@ We would love you to contribute to `@octokit/rest`, pull requests are very welco ## Credits -`@octokit/rest` was originally created as [`node-github`](https://www.npmjs.com/package/github) in 2012 by Mike de Boer from Cloud9 IDE, Inc. +`@octokit/rest` was originally created as [`node-github`](https://www.npmjs.com/package/github) in 2012 by Mike de Boer from Cloud9 IDE, Inc. [The original commit](https://github.blog/2020-04-09-from-48k-lines-of-code-to-10-the-story-of-githubs-javascript-sdk/) is from 2010 which predates the npm registry. -It was adopted and renamed by GitHub in 2017 +It was adopted and renamed by GitHub in 2017. Learn more about it's origin on GitHub's blog: [From 48k lines of code to 10—the story of GitHub’s JavaScript SDK](https://github.blog/2020-04-09-from-48k-lines-of-code-to-10-the-story-of-githubs-javascript-sdk/) ## LICENSE diff --git a/node_modules/@octokit/rest/dist-node/index.js b/node_modules/@octokit/rest/dist-node/index.js new file mode 100644 index 000000000..69375cc15 --- /dev/null +++ b/node_modules/@octokit/rest/dist-node/index.js @@ -0,0 +1,17 @@ +'use strict'; + +Object.defineProperty(exports, '__esModule', { value: true }); + +var core = require('@octokit/core'); +var pluginRequestLog = require('@octokit/plugin-request-log'); +var pluginPaginateRest = require('@octokit/plugin-paginate-rest'); +var pluginRestEndpointMethods = require('@octokit/plugin-rest-endpoint-methods'); + +const VERSION = "18.0.11"; + +const Octokit = core.Octokit.plugin(pluginRequestLog.requestLog, pluginRestEndpointMethods.restEndpointMethods, pluginPaginateRest.paginateRest).defaults({ + userAgent: `octokit-rest.js/${VERSION}` +}); + +exports.Octokit = Octokit; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/rest/dist-node/index.js.map b/node_modules/@octokit/rest/dist-node/index.js.map new file mode 100644 index 000000000..5ed0b9e5e --- /dev/null +++ b/node_modules/@octokit/rest/dist-node/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"18.0.11\";\n","import { Octokit as Core } from \"@octokit/core\";\nimport { requestLog } from \"@octokit/plugin-request-log\";\nimport { paginateRest } from \"@octokit/plugin-paginate-rest\";\nimport { restEndpointMethods } from \"@octokit/plugin-rest-endpoint-methods\";\nimport { VERSION } from \"./version\";\nexport const Octokit = Core.plugin(requestLog, restEndpointMethods, paginateRest).defaults({\n userAgent: `octokit-rest.js/${VERSION}`,\n});\n"],"names":["VERSION","Octokit","Core","plugin","requestLog","restEndpointMethods","paginateRest","defaults","userAgent"],"mappings":";;;;;;;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;MCKMC,OAAO,GAAGC,YAAI,CAACC,MAAL,CAAYC,2BAAZ,EAAwBC,6CAAxB,EAA6CC,+BAA7C,EAA2DC,QAA3D,CAAoE;AACvFC,EAAAA,SAAS,EAAG,mBAAkBR,OAAQ;AADiD,CAApE,CAAhB;;;;"} \ No newline at end of file diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/rest/dist-src/index.js b/node_modules/@octokit/rest/dist-src/index.js similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/rest/dist-src/index.js rename to node_modules/@octokit/rest/dist-src/index.js diff --git a/node_modules/@octokit/rest/dist-src/version.js b/node_modules/@octokit/rest/dist-src/version.js new file mode 100644 index 000000000..54ad64d20 --- /dev/null +++ b/node_modules/@octokit/rest/dist-src/version.js @@ -0,0 +1 @@ +export const VERSION = "18.0.11"; diff --git a/node_modules/@semantic-release/github/node_modules/@octokit/rest/dist-types/index.d.ts b/node_modules/@octokit/rest/dist-types/index.d.ts similarity index 100% rename from node_modules/@semantic-release/github/node_modules/@octokit/rest/dist-types/index.d.ts rename to node_modules/@octokit/rest/dist-types/index.d.ts diff --git a/node_modules/@octokit/rest/dist-types/version.d.ts b/node_modules/@octokit/rest/dist-types/version.d.ts new file mode 100644 index 000000000..47fb4dd9c --- /dev/null +++ b/node_modules/@octokit/rest/dist-types/version.d.ts @@ -0,0 +1 @@ +export declare const VERSION = "18.0.11"; diff --git a/node_modules/@octokit/rest/dist-web/index.js b/node_modules/@octokit/rest/dist-web/index.js new file mode 100644 index 000000000..071ae093c --- /dev/null +++ b/node_modules/@octokit/rest/dist-web/index.js @@ -0,0 +1,13 @@ +import { Octokit as Octokit$1 } from '@octokit/core'; +import { requestLog } from '@octokit/plugin-request-log'; +import { paginateRest } from '@octokit/plugin-paginate-rest'; +import { restEndpointMethods } from '@octokit/plugin-rest-endpoint-methods'; + +const VERSION = "18.0.11"; + +const Octokit = Octokit$1.plugin(requestLog, restEndpointMethods, paginateRest).defaults({ + userAgent: `octokit-rest.js/${VERSION}`, +}); + +export { Octokit }; +//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/rest/dist-web/index.js.map b/node_modules/@octokit/rest/dist-web/index.js.map new file mode 100644 index 000000000..47e9fe8bd --- /dev/null +++ b/node_modules/@octokit/rest/dist-web/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"18.0.11\";\n","import { Octokit as Core } from \"@octokit/core\";\nimport { requestLog } from \"@octokit/plugin-request-log\";\nimport { paginateRest } from \"@octokit/plugin-paginate-rest\";\nimport { restEndpointMethods } from \"@octokit/plugin-rest-endpoint-methods\";\nimport { VERSION } from \"./version\";\nexport const Octokit = Core.plugin(requestLog, restEndpointMethods, paginateRest).defaults({\n userAgent: `octokit-rest.js/${VERSION}`,\n});\n"],"names":["Core"],"mappings":";;;;;AAAO,MAAM,OAAO,GAAG,mBAAmB;;ACK9B,MAAC,OAAO,GAAGA,SAAI,CAAC,MAAM,CAAC,UAAU,EAAE,mBAAmB,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC;AAC3F,IAAI,SAAS,EAAE,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;AAC3C,CAAC,CAAC;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/rest/index.d.ts b/node_modules/@octokit/rest/index.d.ts deleted file mode 100644 index d57858306..000000000 --- a/node_modules/@octokit/rest/index.d.ts +++ /dev/null @@ -1,42072 +0,0 @@ -/** - * This file is generated based on https://github.com/octokit/routes/ & "npm run build:ts". - * - * DO NOT EDIT MANUALLY. - */ - -/** - * This declaration file requires TypeScript 3.1 or above. - */ - -/// - -import * as http from "http"; - -declare namespace Octokit { - type json = any; - type date = string; - - export interface Static { - plugin(plugin: Plugin): Static; - new (options?: Octokit.Options): Octokit; - } - - export interface Response { - /** This is the data you would see in https://developer.github.com/v3/ */ - data: T; - - /** Response status number */ - status: number; - - /** Response headers */ - headers: { - date: string; - "x-ratelimit-limit": string; - "x-ratelimit-remaining": string; - "x-ratelimit-reset": string; - "x-Octokit-request-id": string; - "x-Octokit-media-type": string; - link: string; - "last-modified": string; - etag: string; - status: string; - }; - - [Symbol.iterator](): Iterator; - } - - export type AnyResponse = Response; - - export interface EmptyParams {} - - export interface Options { - authStrategy?: any; - auth?: - | string - | { username: string; password: string; on2fa: () => Promise } - | { clientId: string; clientSecret: string } - | { (): string | Promise } - | any; - userAgent?: string; - previews?: string[]; - baseUrl?: string; - log?: { - debug?: (message: string, info?: object) => void; - info?: (message: string, info?: object) => void; - warn?: (message: string, info?: object) => void; - error?: (message: string, info?: object) => void; - }; - request?: { - agent?: http.Agent; - timeout?: number; - }; - /** - * @deprecated Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request - */ - timeout?: number; - /** - * @deprecated Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request - */ - headers?: { [header: string]: any }; - /** - * @deprecated Use {request: {agent}} instead. See https://github.com/octokit/request.js#request - */ - agent?: http.Agent; - [option: string]: any; - } - - export type RequestMethod = - | "DELETE" - | "GET" - | "HEAD" - | "PATCH" - | "POST" - | "PUT"; - - export interface EndpointOptions { - baseUrl?: string; - method?: RequestMethod; - url?: string; - headers?: { [header: string]: any }; - data?: any; - request?: { [option: string]: any }; - [parameter: string]: any; - } - - export interface RequestOptions { - method?: RequestMethod; - url?: string; - headers?: RequestHeaders; - body?: any; - request?: OctokitRequestOptions; - /** - * Media type options, see {@link https://developer.github.com/v3/media/|GitHub Developer Guide} - */ - mediaType?: { - /** - * `json` by default. Can be `raw`, `text`, `html`, `full`, `diff`, `patch`, `sha`, `base64`. Depending on endpoint - */ - format?: string; - - /** - * Custom media type names of {@link https://developer.github.com/v3/media/|API Previews} without the `-preview` suffix. - * Example for single preview: `['squirrel-girl']`. - * Example for multiple previews: `['squirrel-girl', 'mister-fantastic']`. - */ - previews?: string[]; - }; - } - - export type RequestHeaders = { - /** - * Avoid setting `accept`, use `mediaFormat.{format|previews}` instead. - */ - accept?: string; - /** - * Use `authorization` to send authenticated request, remember `token ` / `bearer ` prefixes. Example: `token 1234567890abcdef1234567890abcdef12345678` - */ - authorization?: string; - /** - * `user-agent` is set do a default and can be overwritten as needed. - */ - "user-agent"?: string; - - [header: string]: string | number | undefined; - }; - - export type OctokitRequestOptions = { - /** - * Node only. Useful for custom proxy, certificate, or dns lookup. - */ - agent?: http.Agent; - /** - * Custom replacement for built-in fetch method. Useful for testing or request hooks. - */ - fetch?: any; - /** - * Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests. - */ - signal?: any; - /** - * Node only. Request/response timeout in ms, it resets on redirect. 0 to disable (OS limit applies). `options.request.signal` is recommended instead. - */ - timeout?: number; - - [option: string]: any; - }; - - export interface Log { - debug: (message: string, additionalInfo?: object) => void; - info: (message: string, additionalInfo?: object) => void; - warn: (message: string, additionalInfo?: object) => void; - error: (message: string, additionalInfo?: object) => void; - } - - export interface Endpoint { - ( - Route: string, - EndpointOptions?: Octokit.EndpointOptions - ): Octokit.RequestOptions; - (EndpointOptions: Octokit.EndpointOptions): Octokit.RequestOptions; - /** - * Current default options - */ - DEFAULTS: Octokit.EndpointOptions; - /** - * Get the defaulted endpoint options, but without parsing them into request options: - */ - merge( - Route: string, - EndpointOptions?: Octokit.EndpointOptions - ): Octokit.RequestOptions; - merge(EndpointOptions: Octokit.EndpointOptions): Octokit.RequestOptions; - /** - * Stateless method to turn endpoint options into request options. Calling endpoint(options) is the same as calling endpoint.parse(endpoint.merge(options)). - */ - parse(EndpointOptions: Octokit.EndpointOptions): Octokit.RequestOptions; - /** - * Merges existing defaults with passed options and returns new endpoint() method with new defaults - */ - defaults(EndpointOptions: Octokit.EndpointOptions): Octokit.Endpoint; - } - - export interface Request { - (Route: string, EndpointOptions?: Octokit.EndpointOptions): Promise< - Octokit.AnyResponse - >; - (EndpointOptions: Octokit.EndpointOptions): Promise; - endpoint: Octokit.Endpoint; - } - - export interface AuthBasic { - type: "basic"; - username: string; - password: string; - } - - export interface AuthOAuthToken { - type: "oauth"; - token: string; - } - - export interface AuthOAuthSecret { - type: "oauth"; - key: string; - secret: string; - } - - export interface AuthUserToken { - type: "token"; - token: string; - } - - export interface AuthJWT { - type: "app"; - token: string; - } - - export type Link = { link: string } | { headers: { link: string } } | string; - - export interface Callback { - (error: Error | null, result: T): any; - } - - export type Plugin = (octokit: Octokit, options: Octokit.Options) => void; - - // See https://github.com/octokit/request.js#request - export type HookOptions = { - baseUrl: string; - headers: { [header: string]: string }; - method: string; - url: string; - data: any; - // See https://github.com/bitinn/node-fetch#options - request: { - follow?: number; - timeout?: number; - compress?: boolean; - size?: number; - agent?: string | null; - }; - [index: string]: any; - }; - - export type HookError = Error & { - status: number; - headers: { [header: string]: string }; - documentation_url?: string; - errors?: [ - { - resource: string; - field: string; - code: string; - } - ]; - }; - - export interface Paginate { - ( - Route: string, - EndpointOptions?: Octokit.EndpointOptions, - callback?: (response: Octokit.AnyResponse, done: () => void) => any - ): Promise; - ( - EndpointOptions: Octokit.EndpointOptions, - callback?: (response: Octokit.AnyResponse, done: () => void) => any - ): Promise; - iterator: ( - EndpointOptions: Octokit.EndpointOptions - ) => AsyncIterableIterator; - } - - // response types - type UsersUpdateAuthenticatedResponsePlan = { - collaborators: number; - name: string; - private_repos: number; - space: number; - }; - type UsersUpdateAuthenticatedResponse = { - avatar_url: string; - bio: string; - blog: string; - collaborators: number; - company: string; - created_at: string; - disk_usage: number; - email: string; - events_url: string; - followers: number; - followers_url: string; - following: number; - following_url: string; - gists_url: string; - gravatar_id: string; - hireable: boolean; - html_url: string; - id: number; - location: string; - login: string; - name: string; - node_id: string; - organizations_url: string; - owned_private_repos: number; - plan: UsersUpdateAuthenticatedResponsePlan; - private_gists: number; - public_gists: number; - public_repos: number; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - total_private_repos: number; - two_factor_authentication: boolean; - type: string; - updated_at: string; - url: string; - }; - type UsersTogglePrimaryEmailVisibilityResponseItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string; - }; - type UsersListPublicKeysForUserResponseItem = { id: number; key: string }; - type UsersListPublicKeysResponseItem = { key: string; key_id: string }; - type UsersListPublicEmailsResponseItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string; - }; - type UsersListGpgKeysForUserResponseItemSubkeysItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: number; - public_key: string; - subkeys: Array; - }; - type UsersListGpgKeysForUserResponseItemEmailsItem = { - email: string; - verified: boolean; - }; - type UsersListGpgKeysForUserResponseItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: null; - public_key: string; - subkeys: Array; - }; - type UsersListGpgKeysResponseItemSubkeysItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: number; - public_key: string; - subkeys: Array; - }; - type UsersListGpgKeysResponseItemEmailsItem = { - email: string; - verified: boolean; - }; - type UsersListGpgKeysResponseItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: null; - public_key: string; - subkeys: Array; - }; - type UsersListFollowingForUserResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type UsersListFollowingForAuthenticatedUserResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type UsersListFollowersForUserResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type UsersListFollowersForAuthenticatedUserResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type UsersListEmailsResponseItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string; - }; - type UsersListBlockedResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type UsersListResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type UsersGetPublicKeyResponse = { key: string; key_id: string }; - type UsersGetGpgKeyResponseSubkeysItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: number; - public_key: string; - subkeys: Array; - }; - type UsersGetGpgKeyResponseEmailsItem = { email: string; verified: boolean }; - type UsersGetGpgKeyResponse = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: null; - public_key: string; - subkeys: Array; - }; - type UsersGetContextForUserResponseContextsItem = { - message: string; - octicon: string; - }; - type UsersGetContextForUserResponse = { - contexts: Array; - }; - type UsersGetByUsernameResponsePlan = { - collaborators: number; - name: string; - private_repos: number; - space: number; - }; - type UsersGetByUsernameResponse = { - avatar_url: string; - bio: string; - blog: string; - company: string; - created_at: string; - email: string; - events_url: string; - followers: number; - followers_url: string; - following: number; - following_url: string; - gists_url: string; - gravatar_id: string; - hireable: boolean; - html_url: string; - id: number; - location: string; - login: string; - name: string; - node_id: string; - organizations_url: string; - public_gists: number; - public_repos: number; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - updated_at: string; - url: string; - plan?: UsersGetByUsernameResponsePlan; - }; - type UsersGetAuthenticatedResponsePlan = { - collaborators: number; - name: string; - private_repos: number; - space: number; - }; - type UsersGetAuthenticatedResponse = { - avatar_url: string; - bio: string; - blog: string; - collaborators?: number; - company: string; - created_at: string; - disk_usage?: number; - email: string; - events_url: string; - followers: number; - followers_url: string; - following: number; - following_url: string; - gists_url: string; - gravatar_id: string; - hireable: boolean; - html_url: string; - id: number; - location: string; - login: string; - name: string; - node_id: string; - organizations_url: string; - owned_private_repos?: number; - plan?: UsersGetAuthenticatedResponsePlan; - private_gists?: number; - public_gists: number; - public_repos: number; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - total_private_repos?: number; - two_factor_authentication?: boolean; - type: string; - updated_at: string; - url: string; - }; - type UsersCreatePublicKeyResponse = { key: string; key_id: string }; - type UsersCreateGpgKeyResponseSubkeysItem = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: number; - public_key: string; - subkeys: Array; - }; - type UsersCreateGpgKeyResponseEmailsItem = { - email: string; - verified: boolean; - }; - type UsersCreateGpgKeyResponse = { - can_certify: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_sign: boolean; - created_at: string; - emails: Array; - expires_at: null; - id: number; - key_id: string; - primary_key_id: null; - public_key: string; - subkeys: Array; - }; - type UsersAddEmailsResponseItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string | null; - }; - type TeamsUpdateLegacyResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; - }; - type TeamsUpdateLegacyResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsUpdateLegacyResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; - }; - type TeamsUpdateInOrgResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; - }; - type TeamsUpdateInOrgResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsUpdateInOrgResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; - }; - type TeamsUpdateDiscussionLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsUpdateDiscussionLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsUpdateDiscussionLegacyResponse = { - author: TeamsUpdateDiscussionLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsUpdateDiscussionLegacyResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsUpdateDiscussionInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsUpdateDiscussionInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsUpdateDiscussionInOrgResponse = { - author: TeamsUpdateDiscussionInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsUpdateDiscussionInOrgResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsUpdateDiscussionCommentLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsUpdateDiscussionCommentLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsUpdateDiscussionCommentLegacyResponse = { - author: TeamsUpdateDiscussionCommentLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - reactions: TeamsUpdateDiscussionCommentLegacyResponseReactions; - updated_at: string; - url: string; - }; - type TeamsUpdateDiscussionCommentInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsUpdateDiscussionCommentInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsUpdateDiscussionCommentInOrgResponse = { - author: TeamsUpdateDiscussionCommentInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - reactions: TeamsUpdateDiscussionCommentInOrgResponseReactions; - updated_at: string; - url: string; - }; - type TeamsUpdateDiscussionCommentResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsUpdateDiscussionCommentResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsUpdateDiscussionCommentResponse = { - author: TeamsUpdateDiscussionCommentResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - reactions: TeamsUpdateDiscussionCommentResponseReactions; - updated_at: string; - url: string; - }; - type TeamsUpdateDiscussionResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsUpdateDiscussionResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsUpdateDiscussionResponse = { - author: TeamsUpdateDiscussionResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsUpdateDiscussionResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsUpdateResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; - }; - type TeamsUpdateResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsUpdateResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; - }; - type TeamsReviewProjectLegacyResponsePermissions = { - admin: boolean; - read: boolean; - write: boolean; - }; - type TeamsReviewProjectLegacyResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsReviewProjectLegacyResponse = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsReviewProjectLegacyResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsReviewProjectLegacyResponsePermissions; - private: boolean; - state: string; - updated_at: string; - url: string; - }; - type TeamsReviewProjectInOrgResponsePermissions = { - admin: boolean; - read: boolean; - write: boolean; - }; - type TeamsReviewProjectInOrgResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsReviewProjectInOrgResponse = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsReviewProjectInOrgResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsReviewProjectInOrgResponsePermissions; - private: boolean; - state: string; - updated_at: string; - url: string; - }; - type TeamsReviewProjectResponsePermissions = { - admin: boolean; - read: boolean; - write: boolean; - }; - type TeamsReviewProjectResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsReviewProjectResponse = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsReviewProjectResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsReviewProjectResponsePermissions; - private: boolean; - state: string; - updated_at: string; - url: string; - }; - type TeamsListReposLegacyResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type TeamsListReposLegacyResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListReposLegacyResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type TeamsListReposLegacyResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: TeamsListReposLegacyResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsListReposLegacyResponseItemOwner; - permissions: TeamsListReposLegacyResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type TeamsListReposInOrgResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type TeamsListReposInOrgResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListReposInOrgResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type TeamsListReposInOrgResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: TeamsListReposInOrgResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsListReposInOrgResponseItemOwner; - permissions: TeamsListReposInOrgResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type TeamsListReposResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type TeamsListReposResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListReposResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type TeamsListReposResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: TeamsListReposResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsListReposResponseItemOwner; - permissions: TeamsListReposResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type TeamsListProjectsLegacyResponseItemPermissions = { - admin: boolean; - read: boolean; - write: boolean; - }; - type TeamsListProjectsLegacyResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListProjectsLegacyResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsListProjectsLegacyResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsListProjectsLegacyResponseItemPermissions; - private: boolean; - state: string; - updated_at: string; - url: string; - }; - type TeamsListProjectsInOrgResponseItemPermissions = { - admin: boolean; - read: boolean; - write: boolean; - }; - type TeamsListProjectsInOrgResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListProjectsInOrgResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsListProjectsInOrgResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsListProjectsInOrgResponseItemPermissions; - private: boolean; - state: string; - updated_at: string; - url: string; - }; - type TeamsListProjectsResponseItemPermissions = { - admin: boolean; - read: boolean; - write: boolean; - }; - type TeamsListProjectsResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListProjectsResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: TeamsListProjectsResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - organization_permission: string; - owner_url: string; - permissions: TeamsListProjectsResponseItemPermissions; - private: boolean; - state: string; - updated_at: string; - url: string; - }; - type TeamsListPendingInvitationsLegacyResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListPendingInvitationsLegacyResponseItem = { - created_at: string; - email: string; - id: number; - invitation_team_url: string; - inviter: TeamsListPendingInvitationsLegacyResponseItemInviter; - login: string; - role: string; - team_count: number; - }; - type TeamsListPendingInvitationsInOrgResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListPendingInvitationsInOrgResponseItem = { - created_at: string; - email: string; - id: number; - invitation_team_url: string; - inviter: TeamsListPendingInvitationsInOrgResponseItemInviter; - login: string; - role: string; - team_count: number; - }; - type TeamsListPendingInvitationsResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListPendingInvitationsResponseItem = { - created_at: string; - email: string; - id: number; - invitation_team_url: string; - inviter: TeamsListPendingInvitationsResponseItemInviter; - login: string; - role: string; - team_count: number; - }; - type TeamsListMembersLegacyResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListMembersInOrgResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListMembersResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListForAuthenticatedUserResponseItemOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; - }; - type TeamsListForAuthenticatedUserResponseItem = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsListForAuthenticatedUserResponseItemOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; - }; - type TeamsListDiscussionsLegacyResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsListDiscussionsLegacyResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListDiscussionsLegacyResponseItem = { - author: TeamsListDiscussionsLegacyResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsListDiscussionsLegacyResponseItemReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsListDiscussionsInOrgResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsListDiscussionsInOrgResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListDiscussionsInOrgResponseItem = { - author: TeamsListDiscussionsInOrgResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsListDiscussionsInOrgResponseItemReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsListDiscussionsResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsListDiscussionsResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListDiscussionsResponseItem = { - author: TeamsListDiscussionsResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsListDiscussionsResponseItemReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsListDiscussionCommentsLegacyResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsListDiscussionCommentsLegacyResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListDiscussionCommentsLegacyResponseItem = { - author: TeamsListDiscussionCommentsLegacyResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsListDiscussionCommentsLegacyResponseItemReactions; - updated_at: string; - url: string; - }; - type TeamsListDiscussionCommentsInOrgResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsListDiscussionCommentsInOrgResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListDiscussionCommentsInOrgResponseItem = { - author: TeamsListDiscussionCommentsInOrgResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsListDiscussionCommentsInOrgResponseItemReactions; - updated_at: string; - url: string; - }; - type TeamsListDiscussionCommentsResponseItemReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsListDiscussionCommentsResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsListDiscussionCommentsResponseItem = { - author: TeamsListDiscussionCommentsResponseItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsListDiscussionCommentsResponseItemReactions; - updated_at: string; - url: string; - }; - type TeamsListChildLegacyResponseItemParent = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type TeamsListChildLegacyResponseItem = { - description: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: TeamsListChildLegacyResponseItemParent; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type TeamsListChildInOrgResponseItemParent = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type TeamsListChildInOrgResponseItem = { - description: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: TeamsListChildInOrgResponseItemParent; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type TeamsListChildResponseItemParent = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type TeamsListChildResponseItem = { - description: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: TeamsListChildResponseItemParent; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type TeamsListResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type TeamsGetMembershipLegacyResponse = { - role: string; - state: string; - url: string; - }; - type TeamsGetMembershipInOrgResponse = { - role: string; - state: string; - url: string; - }; - type TeamsGetMembershipResponse = { - role: string; - state: string; - url: string; - }; - type TeamsGetLegacyResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; - }; - type TeamsGetLegacyResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsGetLegacyResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; - }; - type TeamsGetDiscussionLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsGetDiscussionLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsGetDiscussionLegacyResponse = { - author: TeamsGetDiscussionLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsGetDiscussionLegacyResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsGetDiscussionInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsGetDiscussionInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsGetDiscussionInOrgResponse = { - author: TeamsGetDiscussionInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsGetDiscussionInOrgResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsGetDiscussionCommentLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsGetDiscussionCommentLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsGetDiscussionCommentLegacyResponse = { - author: TeamsGetDiscussionCommentLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsGetDiscussionCommentLegacyResponseReactions; - updated_at: string; - url: string; - }; - type TeamsGetDiscussionCommentInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsGetDiscussionCommentInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsGetDiscussionCommentInOrgResponse = { - author: TeamsGetDiscussionCommentInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsGetDiscussionCommentInOrgResponseReactions; - updated_at: string; - url: string; - }; - type TeamsGetDiscussionCommentResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsGetDiscussionCommentResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsGetDiscussionCommentResponse = { - author: TeamsGetDiscussionCommentResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsGetDiscussionCommentResponseReactions; - updated_at: string; - url: string; - }; - type TeamsGetDiscussionResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsGetDiscussionResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsGetDiscussionResponse = { - author: TeamsGetDiscussionResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsGetDiscussionResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsGetByNameResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; - }; - type TeamsGetByNameResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsGetByNameResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; - }; - type TeamsGetResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; - }; - type TeamsGetResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsGetResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; - }; - type TeamsCreateDiscussionLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsCreateDiscussionLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsCreateDiscussionLegacyResponse = { - author: TeamsCreateDiscussionLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsCreateDiscussionLegacyResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsCreateDiscussionInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsCreateDiscussionInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsCreateDiscussionInOrgResponse = { - author: TeamsCreateDiscussionInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsCreateDiscussionInOrgResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsCreateDiscussionCommentLegacyResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsCreateDiscussionCommentLegacyResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsCreateDiscussionCommentLegacyResponse = { - author: TeamsCreateDiscussionCommentLegacyResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsCreateDiscussionCommentLegacyResponseReactions; - updated_at: string; - url: string; - }; - type TeamsCreateDiscussionCommentInOrgResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsCreateDiscussionCommentInOrgResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsCreateDiscussionCommentInOrgResponse = { - author: TeamsCreateDiscussionCommentInOrgResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsCreateDiscussionCommentInOrgResponseReactions; - updated_at: string; - url: string; - }; - type TeamsCreateDiscussionCommentResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsCreateDiscussionCommentResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsCreateDiscussionCommentResponse = { - author: TeamsCreateDiscussionCommentResponseAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - discussion_url: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - reactions: TeamsCreateDiscussionCommentResponseReactions; - updated_at: string; - url: string; - }; - type TeamsCreateDiscussionResponseReactions = { - "+1": number; - "-1": number; - confused: number; - heart: number; - hooray: number; - laugh: number; - total_count: number; - url: string; - }; - type TeamsCreateDiscussionResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsCreateDiscussionResponse = { - author: TeamsCreateDiscussionResponseAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - html_url: string; - last_edited_at: null; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - reactions: TeamsCreateDiscussionResponseReactions; - team_url: string; - title: string; - updated_at: string; - url: string; - }; - type TeamsCreateResponseOrganization = { - avatar_url: string; - blog: string; - company: string; - created_at: string; - description: string; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_url: string; - name: string; - node_id: string; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - type: string; - url: string; - }; - type TeamsCreateResponse = { - created_at: string; - description: string; - html_url: string; - id: number; - members_count: number; - members_url: string; - name: string; - node_id: string; - organization: TeamsCreateResponseOrganization; - parent: null; - permission: string; - privacy: string; - repos_count: number; - repositories_url: string; - slug: string; - updated_at: string; - url: string; - }; - type TeamsCheckManagesRepoLegacyResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type TeamsCheckManagesRepoLegacyResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsCheckManagesRepoLegacyResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsCheckManagesRepoLegacyResponseOwner; - permissions: TeamsCheckManagesRepoLegacyResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type TeamsCheckManagesRepoInOrgResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type TeamsCheckManagesRepoInOrgResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsCheckManagesRepoInOrgResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsCheckManagesRepoInOrgResponseOwner; - permissions: TeamsCheckManagesRepoInOrgResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type TeamsCheckManagesRepoResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type TeamsCheckManagesRepoResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type TeamsCheckManagesRepoResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: TeamsCheckManagesRepoResponseOwner; - permissions: TeamsCheckManagesRepoResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type TeamsAddOrUpdateProjectLegacyResponse = { - documentation_url: string; - message: string; - }; - type TeamsAddOrUpdateProjectInOrgResponse = { - documentation_url: string; - message: string; - }; - type TeamsAddOrUpdateProjectResponse = { - documentation_url: string; - message: string; - }; - type TeamsAddOrUpdateMembershipLegacyResponse = { - role: string; - state: string; - url: string; - }; - type TeamsAddOrUpdateMembershipInOrgResponse = { - role: string; - state: string; - url: string; - }; - type TeamsAddOrUpdateMembershipResponse = { - role: string; - state: string; - url: string; - }; - type TeamsAddMemberLegacyResponseErrorsItem = { - code: string; - field: string; - resource: string; - }; - type TeamsAddMemberLegacyResponse = { - errors: Array; - message: string; - }; - type TeamsAddMemberResponseErrorsItem = { - code: string; - field: string; - resource: string; - }; - type TeamsAddMemberResponse = { - errors: Array; - message: string; - }; - type SearchUsersLegacyResponseUsersItem = { - created: string; - created_at: string; - followers: number; - followers_count: number; - fullname: string; - gravatar_id: string; - id: string; - language: string; - location: string; - login: string; - name: string; - public_repo_count: number; - repos: number; - score: number; - type: string; - username: string; - }; - type SearchUsersLegacyResponse = { - users: Array; - }; - type SearchUsersResponseItemsItem = { - avatar_url: string; - followers_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - score: number; - subscriptions_url: string; - type: string; - url: string; - }; - type SearchUsersResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; - }; - type SearchTopicsResponseItemsItem = { - created_at: string; - created_by: string; - curated: boolean; - description: string; - display_name: string; - featured: boolean; - name: string; - released: string; - score: number; - short_description: string; - updated_at: string; - }; - type SearchTopicsResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; - }; - type SearchReposLegacyResponseRepositoriesItem = { - created: string; - created_at: string; - description: string; - followers: number; - fork: boolean; - forks: number; - has_downloads: boolean; - has_issues: boolean; - has_wiki: boolean; - homepage: string; - language: string; - name: string; - open_issues: number; - owner: string; - private: boolean; - pushed: string; - pushed_at: string; - score: number; - size: number; - type: string; - url: string; - username: string; - watchers: number; - }; - type SearchReposLegacyResponse = { - repositories: Array; - }; - type SearchReposResponseItemsItemOwner = { - avatar_url: string; - gravatar_id: string; - id: number; - login: string; - node_id: string; - received_events_url: string; - type: string; - url: string; - }; - type SearchReposResponseItemsItem = { - created_at: string; - default_branch: string; - description: string; - fork: boolean; - forks_count: number; - full_name: string; - homepage: string; - html_url: string; - id: number; - language: string; - master_branch: string; - name: string; - node_id: string; - open_issues_count: number; - owner: SearchReposResponseItemsItemOwner; - private: boolean; - pushed_at: string; - score: number; - size: number; - stargazers_count: number; - updated_at: string; - url: string; - watchers_count: number; - }; - type SearchReposResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; - }; - type SearchLabelsResponseItemsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - score: number; - url: string; - }; - type SearchLabelsResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; - }; - type SearchIssuesLegacyResponseIssuesItem = { - body: string; - comments: number; - created_at: string; - gravatar_id: string; - html_url: string; - labels: Array; - number: number; - position: number; - state: string; - title: string; - updated_at: string; - user: string; - votes: number; - }; - type SearchIssuesLegacyResponse = { - issues: Array; - }; - type SearchIssuesAndPullRequestsResponseItemsItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type SearchIssuesAndPullRequestsResponseItemsItemPullRequest = { - diff_url: null; - html_url: null; - patch_url: null; - }; - type SearchIssuesAndPullRequestsResponseItemsItemLabelsItem = { - color: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type SearchIssuesAndPullRequestsResponseItemsItem = { - assignee: null; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - milestone: null; - node_id: string; - number: number; - pull_request: SearchIssuesAndPullRequestsResponseItemsItemPullRequest; - repository_url: string; - score: number; - state: string; - title: string; - updated_at: string; - url: string; - user: SearchIssuesAndPullRequestsResponseItemsItemUser; - }; - type SearchIssuesAndPullRequestsResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; - }; - type SearchIssuesResponseItemsItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type SearchIssuesResponseItemsItemPullRequest = { - diff_url: null; - html_url: null; - patch_url: null; - }; - type SearchIssuesResponseItemsItemLabelsItem = { - color: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type SearchIssuesResponseItemsItem = { - assignee: null; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - milestone: null; - node_id: string; - number: number; - pull_request: SearchIssuesResponseItemsItemPullRequest; - repository_url: string; - score: number; - state: string; - title: string; - updated_at: string; - url: string; - user: SearchIssuesResponseItemsItemUser; - }; - type SearchIssuesResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; - }; - type SearchEmailLegacyResponseUser = { - blog: string; - company: string; - created: string; - created_at: string; - email: string; - followers_count: number; - following_count: number; - gravatar_id: string; - id: number; - location: string; - login: string; - name: string; - public_gist_count: number; - public_repo_count: number; - type: string; - }; - type SearchEmailLegacyResponse = { user: SearchEmailLegacyResponseUser }; - type SearchCommitsResponseItemsItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type SearchCommitsResponseItemsItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - hooks_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: SearchCommitsResponseItemsItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type SearchCommitsResponseItemsItemParentsItem = { - html_url: string; - sha: string; - url: string; - }; - type SearchCommitsResponseItemsItemCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type SearchCommitsResponseItemsItemCommitTree = { sha: string; url: string }; - type SearchCommitsResponseItemsItemCommitCommitter = { - date: string; - email: string; - name: string; - }; - type SearchCommitsResponseItemsItemCommitAuthor = { - date: string; - email: string; - name: string; - }; - type SearchCommitsResponseItemsItemCommit = { - author: SearchCommitsResponseItemsItemCommitAuthor; - comment_count: number; - committer: SearchCommitsResponseItemsItemCommitCommitter; - message: string; - tree: SearchCommitsResponseItemsItemCommitTree; - url: string; - }; - type SearchCommitsResponseItemsItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type SearchCommitsResponseItemsItem = { - author: SearchCommitsResponseItemsItemAuthor; - comments_url: string; - commit: SearchCommitsResponseItemsItemCommit; - committer: SearchCommitsResponseItemsItemCommitter; - html_url: string; - parents: Array; - repository: SearchCommitsResponseItemsItemRepository; - score: number; - sha: string; - url: string; - }; - type SearchCommitsResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; - }; - type SearchCodeResponseItemsItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type SearchCodeResponseItemsItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - hooks_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: SearchCodeResponseItemsItemRepositoryOwner; - private: boolean; - pulls_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type SearchCodeResponseItemsItem = { - git_url: string; - html_url: string; - name: string; - path: string; - repository: SearchCodeResponseItemsItemRepository; - score: number; - sha: string; - url: string; - }; - type SearchCodeResponse = { - incomplete_results: boolean; - items: Array; - total_count: number; - }; - type ReposUploadReleaseAssetResponseValueUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUploadReleaseAssetResponseValue = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposUploadReleaseAssetResponseValueUploader; - url: string; - }; - type ReposUploadReleaseAssetResponse = { - value: ReposUploadReleaseAssetResponseValue; - }; - type ReposUpdateReleaseAssetResponseUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateReleaseAssetResponse = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposUpdateReleaseAssetResponseUploader; - url: string; - }; - type ReposUpdateReleaseResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateReleaseResponseAssetsItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateReleaseResponseAssetsItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposUpdateReleaseResponseAssetsItemUploader; - url: string; - }; - type ReposUpdateReleaseResponse = { - assets: Array; - assets_url: string; - author: ReposUpdateReleaseResponseAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; - }; - type ReposUpdateProtectedBranchRequiredStatusChecksResponse = { - contexts: Array; - contexts_url: string; - strict: boolean; - url: string; - }; - type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions = { - teams: Array< - ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsTeamsItem - >; - teams_url: string; - url: string; - users: Array< - ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsUsersItem - >; - users_url: string; - }; - type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponse = { - dismiss_stale_reviews: boolean; - dismissal_restrictions: ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - url: string; - }; - type ReposUpdateInvitationResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateInvitationResponseRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposUpdateInvitationResponseRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ReposUpdateInvitationResponseInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateInvitationResponseInvitee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateInvitationResponse = { - created_at: string; - html_url: string; - id: number; - invitee: ReposUpdateInvitationResponseInvitee; - inviter: ReposUpdateInvitationResponseInviter; - permissions: string; - repository: ReposUpdateInvitationResponseRepository; - url: string; - }; - type ReposUpdateHookResponseLastResponse = { - code: null; - message: null; - status: string; - }; - type ReposUpdateHookResponseConfig = { - content_type: string; - insecure_ssl: string; - url: string; - }; - type ReposUpdateHookResponse = { - active: boolean; - config: ReposUpdateHookResponseConfig; - created_at: string; - events: Array; - id: number; - last_response: ReposUpdateHookResponseLastResponse; - name: string; - ping_url: string; - test_url: string; - type: string; - updated_at: string; - url: string; - }; - type ReposUpdateFileResponseContentLinks = { - git: string; - html: string; - self: string; - }; - type ReposUpdateFileResponseContent = { - _links: ReposUpdateFileResponseContentLinks; - download_url: string; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; - }; - type ReposUpdateFileResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposUpdateFileResponseCommitTree = { sha: string; url: string }; - type ReposUpdateFileResponseCommitParentsItem = { - html_url: string; - sha: string; - url: string; - }; - type ReposUpdateFileResponseCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposUpdateFileResponseCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposUpdateFileResponseCommit = { - author: ReposUpdateFileResponseCommitAuthor; - committer: ReposUpdateFileResponseCommitCommitter; - html_url: string; - message: string; - node_id: string; - parents: Array; - sha: string; - tree: ReposUpdateFileResponseCommitTree; - url: string; - verification: ReposUpdateFileResponseCommitVerification; - }; - type ReposUpdateFileResponse = { - commit: ReposUpdateFileResponseCommit; - content: ReposUpdateFileResponseContent; - }; - type ReposUpdateCommitCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateCommitCommentResponse = { - body: string; - commit_id: string; - created_at: string; - html_url: string; - id: number; - line: number; - node_id: string; - path: string; - position: number; - updated_at: string; - url: string; - user: ReposUpdateCommitCommentResponseUser; - }; - type ReposUpdateBranchProtectionResponseRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateBranchProtectionResponseRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposUpdateBranchProtectionResponseRestrictionsAppsItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ReposUpdateBranchProtectionResponseRestrictionsAppsItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ReposUpdateBranchProtectionResponseRestrictionsAppsItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposUpdateBranchProtectionResponseRestrictionsAppsItemOwner; - permissions: ReposUpdateBranchProtectionResponseRestrictionsAppsItemPermissions; - slug: string; - updated_at: string; - }; - type ReposUpdateBranchProtectionResponseRestrictions = { - apps: Array; - apps_url: string; - teams: Array; - teams_url: string; - url: string; - users: Array; - users_url: string; - }; - type ReposUpdateBranchProtectionResponseRequiredStatusChecks = { - contexts: Array; - contexts_url: string; - strict: boolean; - url: string; - }; - type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions = { - teams: Array< - ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem - >; - teams_url: string; - url: string; - users: Array< - ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem - >; - users_url: string; - }; - type ReposUpdateBranchProtectionResponseRequiredPullRequestReviews = { - dismiss_stale_reviews: boolean; - dismissal_restrictions: ReposUpdateBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - url: string; - }; - type ReposUpdateBranchProtectionResponseRequiredLinearHistory = { - enabled: boolean; - }; - type ReposUpdateBranchProtectionResponseEnforceAdmins = { - enabled: boolean; - url: string; - }; - type ReposUpdateBranchProtectionResponseAllowForcePushes = { - enabled: boolean; - }; - type ReposUpdateBranchProtectionResponseAllowDeletions = { enabled: boolean }; - type ReposUpdateBranchProtectionResponse = { - allow_deletions: ReposUpdateBranchProtectionResponseAllowDeletions; - allow_force_pushes: ReposUpdateBranchProtectionResponseAllowForcePushes; - enforce_admins: ReposUpdateBranchProtectionResponseEnforceAdmins; - required_linear_history: ReposUpdateBranchProtectionResponseRequiredLinearHistory; - required_pull_request_reviews: ReposUpdateBranchProtectionResponseRequiredPullRequestReviews; - required_status_checks: ReposUpdateBranchProtectionResponseRequiredStatusChecks; - restrictions: ReposUpdateBranchProtectionResponseRestrictions; - url: string; - }; - type ReposUpdateResponseSourcePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposUpdateResponseSourceOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateResponseSource = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposUpdateResponseSourceOwner; - permissions: ReposUpdateResponseSourcePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposUpdateResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposUpdateResponseParentPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposUpdateResponseParentOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateResponseParent = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposUpdateResponseParentOwner; - permissions: ReposUpdateResponseParentPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposUpdateResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateResponseOrganization = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposUpdateResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - organization: ReposUpdateResponseOrganization; - owner: ReposUpdateResponseOwner; - parent: ReposUpdateResponseParent; - permissions: ReposUpdateResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - source: ReposUpdateResponseSource; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposTransferResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposTransferResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposTransferResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposTransferResponseOwner; - permissions: ReposTransferResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesReadme = { - html_url: string; - url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesPullRequestTemplate = { - html_url: string; - url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesLicense = { - html_url: string; - key: string; - name: string; - spdx_id: string; - url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesIssueTemplate = { - html_url: string; - url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesContributing = { - html_url: string; - url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFilesCodeOfConduct = { - html_url: string; - key: string; - name: string; - url: string; - }; - type ReposRetrieveCommunityProfileMetricsResponseFiles = { - code_of_conduct: ReposRetrieveCommunityProfileMetricsResponseFilesCodeOfConduct; - contributing: ReposRetrieveCommunityProfileMetricsResponseFilesContributing; - issue_template: ReposRetrieveCommunityProfileMetricsResponseFilesIssueTemplate; - license: ReposRetrieveCommunityProfileMetricsResponseFilesLicense; - pull_request_template: ReposRetrieveCommunityProfileMetricsResponseFilesPullRequestTemplate; - readme: ReposRetrieveCommunityProfileMetricsResponseFilesReadme; - }; - type ReposRetrieveCommunityProfileMetricsResponse = { - description: string; - documentation: boolean; - files: ReposRetrieveCommunityProfileMetricsResponseFiles; - health_percentage: number; - updated_at: string; - }; - type ReposRequestPageBuildResponse = { status: string; url: string }; - type ReposReplaceTopicsResponse = { names: Array }; - type ReposReplaceProtectedBranchUserRestrictionsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposReplaceProtectedBranchTeamRestrictionsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposReplaceProtectedBranchAppRestrictionsResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ReposReplaceProtectedBranchAppRestrictionsResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ReposReplaceProtectedBranchAppRestrictionsResponseItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposReplaceProtectedBranchAppRestrictionsResponseItemOwner; - permissions: ReposReplaceProtectedBranchAppRestrictionsResponseItemPermissions; - slug: string; - updated_at: string; - }; - type ReposRemoveProtectedBranchUserRestrictionsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposRemoveProtectedBranchTeamRestrictionsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposRemoveProtectedBranchAppRestrictionsResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ReposRemoveProtectedBranchAppRestrictionsResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ReposRemoveProtectedBranchAppRestrictionsResponseItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposRemoveProtectedBranchAppRestrictionsResponseItemOwner; - permissions: ReposRemoveProtectedBranchAppRestrictionsResponseItemPermissions; - slug: string; - updated_at: string; - }; - type ReposMergeResponseParentsItem = { sha: string; url: string }; - type ReposMergeResponseCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposMergeResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposMergeResponseCommitTree = { sha: string; url: string }; - type ReposMergeResponseCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposMergeResponseCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposMergeResponseCommit = { - author: ReposMergeResponseCommitAuthor; - comment_count: number; - committer: ReposMergeResponseCommitCommitter; - message: string; - tree: ReposMergeResponseCommitTree; - url: string; - verification: ReposMergeResponseCommitVerification; - }; - type ReposMergeResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposMergeResponse = { - author: ReposMergeResponseAuthor; - comments_url: string; - commit: ReposMergeResponseCommit; - committer: ReposMergeResponseCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; - }; - type ReposListUsersWithAccessToProtectedBranchResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListTopicsResponse = { names: Array }; - type ReposListTeamsWithAccessToProtectedBranchResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposListTeamsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposListTagsResponseItemCommit = { sha: string; url: string }; - type ReposListTagsResponseItem = { - commit: ReposListTagsResponseItemCommit; - name: string; - tarball_url: string; - zipball_url: string; - }; - type ReposListStatusesForRefResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListStatusesForRefResponseItem = { - avatar_url: string; - context: string; - created_at: string; - creator: ReposListStatusesForRefResponseItemCreator; - description: string; - id: number; - node_id: string; - state: string; - target_url: string; - updated_at: string; - url: string; - }; - type ReposListReleasesResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListReleasesResponseItemAssetsItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListReleasesResponseItemAssetsItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposListReleasesResponseItemAssetsItemUploader; - url: string; - }; - type ReposListReleasesResponseItem = { - assets: Array; - assets_url: string; - author: ReposListReleasesResponseItemAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: ReposListPullRequestsAssociatedWithCommitResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepoOwner; - permissions: ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemHead = { - label: string; - ref: string; - repo: ReposListPullRequestsAssociatedWithCommitResponseItemHeadRepo; - sha: string; - user: ReposListPullRequestsAssociatedWithCommitResponseItemHeadUser; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepoOwner; - permissions: ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemBase = { - label: string; - ref: string; - repo: ReposListPullRequestsAssociatedWithCommitResponseItemBaseRepo; - sha: string; - user: ReposListPullRequestsAssociatedWithCommitResponseItemBaseUser; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemLinksStatuses = { - href: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemLinksSelf = { - href: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemLinksReviewComments = { - href: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemLinksReviewComment = { - href: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemLinksIssue = { - href: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemLinksHtml = { - href: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemLinksCommits = { - href: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemLinksComments = { - href: string; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItemLinks = { - comments: ReposListPullRequestsAssociatedWithCommitResponseItemLinksComments; - commits: ReposListPullRequestsAssociatedWithCommitResponseItemLinksCommits; - html: ReposListPullRequestsAssociatedWithCommitResponseItemLinksHtml; - issue: ReposListPullRequestsAssociatedWithCommitResponseItemLinksIssue; - review_comment: ReposListPullRequestsAssociatedWithCommitResponseItemLinksReviewComment; - review_comments: ReposListPullRequestsAssociatedWithCommitResponseItemLinksReviewComments; - self: ReposListPullRequestsAssociatedWithCommitResponseItemLinksSelf; - statuses: ReposListPullRequestsAssociatedWithCommitResponseItemLinksStatuses; - }; - type ReposListPullRequestsAssociatedWithCommitResponseItem = { - _links: ReposListPullRequestsAssociatedWithCommitResponseItemLinks; - active_lock_reason: string; - assignee: ReposListPullRequestsAssociatedWithCommitResponseItemAssignee; - assignees: Array< - ReposListPullRequestsAssociatedWithCommitResponseItemAssigneesItem - >; - author_association: string; - base: ReposListPullRequestsAssociatedWithCommitResponseItemBase; - body: string; - closed_at: string; - comments_url: string; - commits_url: string; - created_at: string; - diff_url: string; - draft: boolean; - head: ReposListPullRequestsAssociatedWithCommitResponseItemHead; - html_url: string; - id: number; - issue_url: string; - labels: Array< - ReposListPullRequestsAssociatedWithCommitResponseItemLabelsItem - >; - locked: boolean; - merge_commit_sha: string; - merged_at: string; - milestone: ReposListPullRequestsAssociatedWithCommitResponseItemMilestone; - node_id: string; - number: number; - patch_url: string; - requested_reviewers: Array< - ReposListPullRequestsAssociatedWithCommitResponseItemRequestedReviewersItem - >; - requested_teams: Array< - ReposListPullRequestsAssociatedWithCommitResponseItemRequestedTeamsItem - >; - review_comment_url: string; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: ReposListPullRequestsAssociatedWithCommitResponseItemUser; - }; - type ReposListPublicResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPublicResponseItem = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposListPublicResponseItemOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ReposListProtectedBranchUserRestrictionsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListProtectedBranchTeamRestrictionsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposListPagesBuildsResponseItemPusher = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListPagesBuildsResponseItemError = { message: null }; - type ReposListPagesBuildsResponseItem = { - commit: string; - created_at: string; - duration: number; - error: ReposListPagesBuildsResponseItemError; - pusher: ReposListPagesBuildsResponseItemPusher; - status: string; - updated_at: string; - url: string; - }; - type ReposListLanguagesResponse = { C: number; Python: number }; - type ReposListInvitationsForAuthenticatedUserResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListInvitationsForAuthenticatedUserResponseItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposListInvitationsForAuthenticatedUserResponseItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ReposListInvitationsForAuthenticatedUserResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListInvitationsForAuthenticatedUserResponseItemInvitee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListInvitationsForAuthenticatedUserResponseItem = { - created_at: string; - html_url: string; - id: number; - invitee: ReposListInvitationsForAuthenticatedUserResponseItemInvitee; - inviter: ReposListInvitationsForAuthenticatedUserResponseItemInviter; - permissions: string; - repository: ReposListInvitationsForAuthenticatedUserResponseItemRepository; - url: string; - }; - type ReposListInvitationsResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListInvitationsResponseItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposListInvitationsResponseItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ReposListInvitationsResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListInvitationsResponseItemInvitee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListInvitationsResponseItem = { - created_at: string; - html_url: string; - id: number; - invitee: ReposListInvitationsResponseItemInvitee; - inviter: ReposListInvitationsResponseItemInviter; - permissions: string; - repository: ReposListInvitationsResponseItemRepository; - url: string; - }; - type ReposListHooksResponseItemLastResponse = { - code: null; - message: null; - status: string; - }; - type ReposListHooksResponseItemConfig = { - content_type: string; - insecure_ssl: string; - url: string; - }; - type ReposListHooksResponseItem = { - active: boolean; - config: ReposListHooksResponseItemConfig; - created_at: string; - events: Array; - id: number; - last_response: ReposListHooksResponseItemLastResponse; - name: string; - ping_url: string; - test_url: string; - type: string; - updated_at: string; - url: string; - }; - type ReposListForksResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposListForksResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListForksResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type ReposListForksResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: ReposListForksResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposListForksResponseItemOwner; - permissions: ReposListForksResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposListForOrgResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposListForOrgResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListForOrgResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type ReposListForOrgResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: ReposListForOrgResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposListForOrgResponseItemOwner; - permissions: ReposListForOrgResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposListDownloadsResponseItem = { - content_type: string; - description: string; - download_count: number; - html_url: string; - id: number; - name: string; - size: number; - url: string; - }; - type ReposListDeploymentsResponseItemPayload = { deploy: string }; - type ReposListDeploymentsResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListDeploymentsResponseItem = { - created_at: string; - creator: ReposListDeploymentsResponseItemCreator; - description: string; - environment: string; - id: number; - node_id: string; - original_environment: string; - payload: ReposListDeploymentsResponseItemPayload; - production_environment: boolean; - ref: string; - repository_url: string; - sha: string; - statuses_url: string; - task: string; - transient_environment: boolean; - updated_at: string; - url: string; - }; - type ReposListDeploymentStatusesResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListDeploymentStatusesResponseItem = { - created_at: string; - creator: ReposListDeploymentStatusesResponseItemCreator; - deployment_url: string; - description: string; - environment: string; - environment_url: string; - id: number; - log_url: string; - node_id: string; - repository_url: string; - state: string; - target_url: string; - updated_at: string; - url: string; - }; - type ReposListDeployKeysResponseItem = { - created_at: string; - id: number; - key: string; - read_only: boolean; - title: string; - url: string; - verified: boolean; - }; - type ReposListContributorsResponseItem = { - avatar_url: string; - contributions: number; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListCommitsResponseItemParentsItem = { sha: string; url: string }; - type ReposListCommitsResponseItemCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListCommitsResponseItemCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposListCommitsResponseItemCommitTree = { sha: string; url: string }; - type ReposListCommitsResponseItemCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposListCommitsResponseItemCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposListCommitsResponseItemCommit = { - author: ReposListCommitsResponseItemCommitAuthor; - comment_count: number; - committer: ReposListCommitsResponseItemCommitCommitter; - message: string; - tree: ReposListCommitsResponseItemCommitTree; - url: string; - verification: ReposListCommitsResponseItemCommitVerification; - }; - type ReposListCommitsResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListCommitsResponseItem = { - author: ReposListCommitsResponseItemAuthor; - comments_url: string; - commit: ReposListCommitsResponseItemCommit; - committer: ReposListCommitsResponseItemCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; - }; - type ReposListCommitCommentsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListCommitCommentsResponseItem = { - body: string; - commit_id: string; - created_at: string; - html_url: string; - id: number; - line: number; - node_id: string; - path: string; - position: number; - updated_at: string; - url: string; - user: ReposListCommitCommentsResponseItemUser; - }; - type ReposListCommentsForCommitResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListCommentsForCommitResponseItem = { - body: string; - commit_id: string; - created_at: string; - html_url: string; - id: number; - line: number; - node_id: string; - path: string; - position: number; - updated_at: string; - url: string; - user: ReposListCommentsForCommitResponseItemUser; - }; - type ReposListCollaboratorsResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposListCollaboratorsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - permissions: ReposListCollaboratorsResponseItemPermissions; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListBranchesForHeadCommitResponseItemCommit = { - sha: string; - url: string; - }; - type ReposListBranchesForHeadCommitResponseItem = { - commit: ReposListBranchesForHeadCommitResponseItemCommit; - name: string; - protected: string; - }; - type ReposListBranchesResponseItemProtectionRequiredStatusChecks = { - contexts: Array; - enforcement_level: string; - }; - type ReposListBranchesResponseItemProtection = { - enabled: boolean; - required_status_checks: ReposListBranchesResponseItemProtectionRequiredStatusChecks; - }; - type ReposListBranchesResponseItemCommit = { sha: string; url: string }; - type ReposListBranchesResponseItem = { - commit: ReposListBranchesResponseItemCommit; - name: string; - protected: boolean; - protection: ReposListBranchesResponseItemProtection; - protection_url: string; - }; - type ReposListAssetsForReleaseResponseItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposListAssetsForReleaseResponseItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposListAssetsForReleaseResponseItemUploader; - url: string; - }; - type ReposListAppsWithAccessToProtectedBranchResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ReposListAppsWithAccessToProtectedBranchResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ReposListAppsWithAccessToProtectedBranchResponseItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposListAppsWithAccessToProtectedBranchResponseItemOwner; - permissions: ReposListAppsWithAccessToProtectedBranchResponseItemPermissions; - slug: string; - updated_at: string; - }; - type ReposGetViewsResponseViewsItem = { - count: number; - timestamp: string; - uniques: number; - }; - type ReposGetViewsResponse = { - count: number; - uniques: number; - views: Array; - }; - type ReposGetUsersWithAccessToProtectedBranchResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetTopReferrersResponseItem = { - count: number; - referrer: string; - uniques: number; - }; - type ReposGetTopPathsResponseItem = { - count: number; - path: string; - title: string; - uniques: number; - }; - type ReposGetTeamsWithAccessToProtectedBranchResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposGetReleaseByTagResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetReleaseByTagResponseAssetsItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetReleaseByTagResponseAssetsItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposGetReleaseByTagResponseAssetsItemUploader; - url: string; - }; - type ReposGetReleaseByTagResponse = { - assets: Array; - assets_url: string; - author: ReposGetReleaseByTagResponseAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; - }; - type ReposGetReleaseAssetResponseUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetReleaseAssetResponse = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposGetReleaseAssetResponseUploader; - url: string; - }; - type ReposGetReleaseResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetReleaseResponseAssetsItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetReleaseResponseAssetsItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposGetReleaseResponseAssetsItemUploader; - url: string; - }; - type ReposGetReleaseResponse = { - assets: Array; - assets_url: string; - author: ReposGetReleaseResponseAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; - }; - type ReposGetReadmeResponseLinks = { - git: string; - html: string; - self: string; - }; - type ReposGetReadmeResponse = { - _links: ReposGetReadmeResponseLinks; - content: string; - download_url: string; - encoding: string; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; - }; - type ReposGetProtectedBranchRestrictionsResponseUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetProtectedBranchRestrictionsResponseTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposGetProtectedBranchRestrictionsResponseAppsItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ReposGetProtectedBranchRestrictionsResponseAppsItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ReposGetProtectedBranchRestrictionsResponseAppsItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposGetProtectedBranchRestrictionsResponseAppsItemOwner; - permissions: ReposGetProtectedBranchRestrictionsResponseAppsItemPermissions; - slug: string; - updated_at: string; - }; - type ReposGetProtectedBranchRestrictionsResponse = { - apps: Array; - apps_url: string; - teams: Array; - teams_url: string; - url: string; - users: Array; - users_url: string; - }; - type ReposGetProtectedBranchRequiredStatusChecksResponse = { - contexts: Array; - contexts_url: string; - strict: boolean; - url: string; - }; - type ReposGetProtectedBranchRequiredSignaturesResponse = { - enabled: boolean; - url: string; - }; - type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions = { - teams: Array< - ReposGetProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsTeamsItem - >; - teams_url: string; - url: string; - users: Array< - ReposGetProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictionsUsersItem - >; - users_url: string; - }; - type ReposGetProtectedBranchPullRequestReviewEnforcementResponse = { - dismiss_stale_reviews: boolean; - dismissal_restrictions: ReposGetProtectedBranchPullRequestReviewEnforcementResponseDismissalRestrictions; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - url: string; - }; - type ReposGetProtectedBranchAdminEnforcementResponse = { - enabled: boolean; - url: string; - }; - type ReposGetParticipationStatsResponse = { - all: Array; - owner: Array; - }; - type ReposGetPagesBuildResponsePusher = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetPagesBuildResponseError = { message: null }; - type ReposGetPagesBuildResponse = { - commit: string; - created_at: string; - duration: number; - error: ReposGetPagesBuildResponseError; - pusher: ReposGetPagesBuildResponsePusher; - status: string; - updated_at: string; - url: string; - }; - type ReposGetPagesResponseSource = { branch: string; directory: string }; - type ReposGetPagesResponse = { - cname: string; - custom_404: boolean; - html_url: string; - source: ReposGetPagesResponseSource; - status: string; - url: string; - }; - type ReposGetLatestReleaseResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetLatestReleaseResponseAssetsItemUploader = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetLatestReleaseResponseAssetsItem = { - browser_download_url: string; - content_type: string; - created_at: string; - download_count: number; - id: number; - label: string; - name: string; - node_id: string; - size: number; - state: string; - updated_at: string; - uploader: ReposGetLatestReleaseResponseAssetsItemUploader; - url: string; - }; - type ReposGetLatestReleaseResponse = { - assets: Array; - assets_url: string; - author: ReposGetLatestReleaseResponseAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; - }; - type ReposGetLatestPagesBuildResponsePusher = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetLatestPagesBuildResponseError = { message: null }; - type ReposGetLatestPagesBuildResponse = { - commit: string; - created_at: string; - duration: number; - error: ReposGetLatestPagesBuildResponseError; - pusher: ReposGetLatestPagesBuildResponsePusher; - status: string; - updated_at: string; - url: string; - }; - type ReposGetHookResponseLastResponse = { - code: null; - message: null; - status: string; - }; - type ReposGetHookResponseConfig = { - content_type: string; - insecure_ssl: string; - url: string; - }; - type ReposGetHookResponse = { - active: boolean; - config: ReposGetHookResponseConfig; - created_at: string; - events: Array; - id: number; - last_response: ReposGetHookResponseLastResponse; - name: string; - ping_url: string; - test_url: string; - type: string; - updated_at: string; - url: string; - }; - type ReposGetDownloadResponse = { - content_type: string; - description: string; - download_count: number; - html_url: string; - id: number; - name: string; - size: number; - url: string; - }; - type ReposGetDeploymentStatusResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetDeploymentStatusResponse = { - created_at: string; - creator: ReposGetDeploymentStatusResponseCreator; - deployment_url: string; - description: string; - environment: string; - environment_url: string; - id: number; - log_url: string; - node_id: string; - repository_url: string; - state: string; - target_url: string; - updated_at: string; - url: string; - }; - type ReposGetDeploymentResponsePayload = { deploy: string }; - type ReposGetDeploymentResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetDeploymentResponse = { - created_at: string; - creator: ReposGetDeploymentResponseCreator; - description: string; - environment: string; - id: number; - node_id: string; - original_environment: string; - payload: ReposGetDeploymentResponsePayload; - production_environment: boolean; - ref: string; - repository_url: string; - sha: string; - statuses_url: string; - task: string; - transient_environment: boolean; - updated_at: string; - url: string; - }; - type ReposGetDeployKeyResponse = { - created_at: string; - id: number; - key: string; - read_only: boolean; - title: string; - url: string; - verified: boolean; - }; - type ReposGetContributorsStatsResponseItemWeeksItem = { - a: number; - c: number; - d: number; - w: string; - }; - type ReposGetContributorsStatsResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetContributorsStatsResponseItem = { - author: ReposGetContributorsStatsResponseItemAuthor; - total: number; - weeks: Array; - }; - type ReposGetContentsResponseItemLinks = { - git: string; - html: string; - self: string; - }; - type ReposGetContentsResponseItem = { - _links: ReposGetContentsResponseItemLinks; - download_url: string | null; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; - }; - type ReposGetContentsResponseLinks = { - git: string; - html: string; - self: string; - }; - type ReposGetContentsResponse = - | { - _links: ReposGetContentsResponseLinks; - content?: string; - download_url: string | null; - encoding?: string; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; - target?: string; - submodule_git_url?: string; - } - | Array; - type ReposGetCommitCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetCommitCommentResponse = { - body: string; - commit_id: string; - created_at: string; - html_url: string; - id: number; - line: number; - node_id: string; - path: string; - position: number; - updated_at: string; - url: string; - user: ReposGetCommitCommentResponseUser; - }; - type ReposGetCommitActivityStatsResponseItem = { - days: Array; - total: number; - week: number; - }; - type ReposGetCommitResponseStats = { - additions: number; - deletions: number; - total: number; - }; - type ReposGetCommitResponseParentsItem = { sha: string; url: string }; - type ReposGetCommitResponseFilesItem = { - additions: number; - blob_url: string; - changes: number; - deletions: number; - filename: string; - patch: string; - raw_url: string; - status: string; - }; - type ReposGetCommitResponseCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetCommitResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposGetCommitResponseCommitTree = { sha: string; url: string }; - type ReposGetCommitResponseCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposGetCommitResponseCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposGetCommitResponseCommit = { - author: ReposGetCommitResponseCommitAuthor; - comment_count: number; - committer: ReposGetCommitResponseCommitCommitter; - message: string; - tree: ReposGetCommitResponseCommitTree; - url: string; - verification: ReposGetCommitResponseCommitVerification; - }; - type ReposGetCommitResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetCommitResponse = { - author: ReposGetCommitResponseAuthor; - comments_url: string; - commit: ReposGetCommitResponseCommit; - committer: ReposGetCommitResponseCommitter; - files: Array; - html_url: string; - node_id: string; - parents: Array; - sha: string; - stats: ReposGetCommitResponseStats; - url: string; - }; - type ReposGetCombinedStatusForRefResponseStatusesItem = { - avatar_url: string; - context: string; - created_at: string; - description: string; - id: number; - node_id: string; - state: string; - target_url: string; - updated_at: string; - url: string; - }; - type ReposGetCombinedStatusForRefResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetCombinedStatusForRefResponseRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposGetCombinedStatusForRefResponseRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ReposGetCombinedStatusForRefResponse = { - commit_url: string; - repository: ReposGetCombinedStatusForRefResponseRepository; - sha: string; - state: string; - statuses: Array; - total_count: number; - url: string; - }; - type ReposGetCollaboratorPermissionLevelResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetCollaboratorPermissionLevelResponse = { - permission: string; - user: ReposGetCollaboratorPermissionLevelResponseUser; - }; - type ReposGetClonesResponseClonesItem = { - count: number; - timestamp: string; - uniques: number; - }; - type ReposGetClonesResponse = { - clones: Array; - count: number; - uniques: number; - }; - type ReposGetBranchProtectionResponseRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetBranchProtectionResponseRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposGetBranchProtectionResponseRestrictionsAppsItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ReposGetBranchProtectionResponseRestrictionsAppsItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ReposGetBranchProtectionResponseRestrictionsAppsItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposGetBranchProtectionResponseRestrictionsAppsItemOwner; - permissions: ReposGetBranchProtectionResponseRestrictionsAppsItemPermissions; - slug: string; - updated_at: string; - }; - type ReposGetBranchProtectionResponseRestrictions = { - apps: Array; - apps_url: string; - teams: Array; - teams_url: string; - url: string; - users: Array; - users_url: string; - }; - type ReposGetBranchProtectionResponseRequiredStatusChecks = { - contexts: Array; - contexts_url: string; - strict: boolean; - url: string; - }; - type ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions = { - teams: Array< - ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsTeamsItem - >; - teams_url: string; - url: string; - users: Array< - ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictionsUsersItem - >; - users_url: string; - }; - type ReposGetBranchProtectionResponseRequiredPullRequestReviews = { - dismiss_stale_reviews: boolean; - dismissal_restrictions: ReposGetBranchProtectionResponseRequiredPullRequestReviewsDismissalRestrictions; - require_code_owner_reviews: boolean; - required_approving_review_count: number; - url: string; - }; - type ReposGetBranchProtectionResponseRequiredLinearHistory = { - enabled: boolean; - }; - type ReposGetBranchProtectionResponseEnforceAdmins = { - enabled: boolean; - url: string; - }; - type ReposGetBranchProtectionResponseAllowForcePushes = { enabled: boolean }; - type ReposGetBranchProtectionResponseAllowDeletions = { enabled: boolean }; - type ReposGetBranchProtectionResponse = { - allow_deletions: ReposGetBranchProtectionResponseAllowDeletions; - allow_force_pushes: ReposGetBranchProtectionResponseAllowForcePushes; - enforce_admins: ReposGetBranchProtectionResponseEnforceAdmins; - required_linear_history: ReposGetBranchProtectionResponseRequiredLinearHistory; - required_pull_request_reviews: ReposGetBranchProtectionResponseRequiredPullRequestReviews; - required_status_checks: ReposGetBranchProtectionResponseRequiredStatusChecks; - restrictions: ReposGetBranchProtectionResponseRestrictions; - url: string; - }; - type ReposGetBranchResponseProtectionRequiredStatusChecks = { - contexts: Array; - enforcement_level: string; - }; - type ReposGetBranchResponseProtection = { - enabled: boolean; - required_status_checks: ReposGetBranchResponseProtectionRequiredStatusChecks; - }; - type ReposGetBranchResponseCommitParentsItem = { sha: string; url: string }; - type ReposGetBranchResponseCommitCommitter = { - avatar_url: string; - gravatar_id: string; - id: number; - login: string; - url: string; - }; - type ReposGetBranchResponseCommitCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposGetBranchResponseCommitCommitTree = { sha: string; url: string }; - type ReposGetBranchResponseCommitCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposGetBranchResponseCommitCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposGetBranchResponseCommitCommit = { - author: ReposGetBranchResponseCommitCommitAuthor; - committer: ReposGetBranchResponseCommitCommitCommitter; - message: string; - tree: ReposGetBranchResponseCommitCommitTree; - url: string; - verification: ReposGetBranchResponseCommitCommitVerification; - }; - type ReposGetBranchResponseCommitAuthor = { - avatar_url: string; - gravatar_id: string; - id: number; - login: string; - url: string; - }; - type ReposGetBranchResponseCommit = { - author: ReposGetBranchResponseCommitAuthor; - commit: ReposGetBranchResponseCommitCommit; - committer: ReposGetBranchResponseCommitCommitter; - node_id: string; - parents: Array; - sha: string; - url: string; - }; - type ReposGetBranchResponseLinks = { html: string; self: string }; - type ReposGetBranchResponse = { - _links: ReposGetBranchResponseLinks; - commit: ReposGetBranchResponseCommit; - name: string; - protected: boolean; - protection: ReposGetBranchResponseProtection; - protection_url: string; - }; - type ReposGetAppsWithAccessToProtectedBranchResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ReposGetAppsWithAccessToProtectedBranchResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ReposGetAppsWithAccessToProtectedBranchResponseItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposGetAppsWithAccessToProtectedBranchResponseItemOwner; - permissions: ReposGetAppsWithAccessToProtectedBranchResponseItemPermissions; - slug: string; - updated_at: string; - }; - type ReposGetResponseSourcePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposGetResponseSourceOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetResponseSource = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposGetResponseSourceOwner; - permissions: ReposGetResponseSourcePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposGetResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposGetResponseParentPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposGetResponseParentOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetResponseParent = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposGetResponseParentOwner; - permissions: ReposGetResponseParentPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposGetResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetResponseOrganization = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposGetResponseLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type ReposGetResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: ReposGetResponseLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - organization: ReposGetResponseOrganization; - owner: ReposGetResponseOwner; - parent: ReposGetResponseParent; - permissions: ReposGetResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - source: ReposGetResponseSource; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposEnablePagesSiteResponseSource = { - branch: string; - directory: string; - }; - type ReposEnablePagesSiteResponse = { - cname: string; - custom_404: boolean; - html_url: string; - source: ReposEnablePagesSiteResponseSource; - status: string; - url: string; - }; - type ReposDeleteFileResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposDeleteFileResponseCommitTree = { sha: string; url: string }; - type ReposDeleteFileResponseCommitParentsItem = { - html_url: string; - sha: string; - url: string; - }; - type ReposDeleteFileResponseCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposDeleteFileResponseCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposDeleteFileResponseCommit = { - author: ReposDeleteFileResponseCommitAuthor; - committer: ReposDeleteFileResponseCommitCommitter; - html_url: string; - message: string; - node_id: string; - parents: Array; - sha: string; - tree: ReposDeleteFileResponseCommitTree; - url: string; - verification: ReposDeleteFileResponseCommitVerification; - }; - type ReposDeleteFileResponse = { - commit: ReposDeleteFileResponseCommit; - content: null; - }; - type ReposDeleteResponse = { documentation_url: string; message: string }; - type ReposCreateUsingTemplateResponseTemplateRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposCreateUsingTemplateResponseTemplateRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCreateUsingTemplateResponseTemplateRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposCreateUsingTemplateResponseTemplateRepositoryOwner; - permissions: ReposCreateUsingTemplateResponseTemplateRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposCreateUsingTemplateResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposCreateUsingTemplateResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCreateUsingTemplateResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposCreateUsingTemplateResponseOwner; - permissions: ReposCreateUsingTemplateResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: ReposCreateUsingTemplateResponseTemplateRepository; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposCreateStatusResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCreateStatusResponse = { - avatar_url: string; - context: string; - created_at: string; - creator: ReposCreateStatusResponseCreator; - description: string; - id: number; - node_id: string; - state: string; - target_url: string; - updated_at: string; - url: string; - }; - type ReposCreateReleaseResponseAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCreateReleaseResponse = { - assets: Array; - assets_url: string; - author: ReposCreateReleaseResponseAuthor; - body: string; - created_at: string; - draft: boolean; - html_url: string; - id: number; - name: string; - node_id: string; - prerelease: boolean; - published_at: string; - tag_name: string; - tarball_url: string; - target_commitish: string; - upload_url: string; - url: string; - zipball_url: string; - }; - type ReposCreateOrUpdateFileResponseContentLinks = { - git: string; - html: string; - self: string; - }; - type ReposCreateOrUpdateFileResponseContent = { - _links: ReposCreateOrUpdateFileResponseContentLinks; - download_url: string; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; - }; - type ReposCreateOrUpdateFileResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposCreateOrUpdateFileResponseCommitTree = { sha: string; url: string }; - type ReposCreateOrUpdateFileResponseCommitParentsItem = { - html_url: string; - sha: string; - url: string; - }; - type ReposCreateOrUpdateFileResponseCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposCreateOrUpdateFileResponseCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposCreateOrUpdateFileResponseCommit = { - author: ReposCreateOrUpdateFileResponseCommitAuthor; - committer: ReposCreateOrUpdateFileResponseCommitCommitter; - html_url: string; - message: string; - node_id: string; - parents: Array; - sha: string; - tree: ReposCreateOrUpdateFileResponseCommitTree; - url: string; - verification: ReposCreateOrUpdateFileResponseCommitVerification; - }; - type ReposCreateOrUpdateFileResponse = { - commit: ReposCreateOrUpdateFileResponseCommit; - content: ReposCreateOrUpdateFileResponseContent; - }; - type ReposCreateInOrgResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposCreateInOrgResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCreateInOrgResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposCreateInOrgResponseOwner; - permissions: ReposCreateInOrgResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposCreateHookResponseLastResponse = { - code: null; - message: null; - status: string; - }; - type ReposCreateHookResponseConfig = { - content_type: string; - insecure_ssl: string; - url: string; - }; - type ReposCreateHookResponse = { - active: boolean; - config: ReposCreateHookResponseConfig; - created_at: string; - events: Array; - id: number; - last_response: ReposCreateHookResponseLastResponse; - name: string; - ping_url: string; - test_url: string; - type: string; - updated_at: string; - url: string; - }; - type ReposCreateForkResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposCreateForkResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCreateForkResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposCreateForkResponseOwner; - permissions: ReposCreateForkResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposCreateForAuthenticatedUserResponsePermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ReposCreateForAuthenticatedUserResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCreateForAuthenticatedUserResponse = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ReposCreateForAuthenticatedUserResponseOwner; - permissions: ReposCreateForAuthenticatedUserResponsePermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ReposCreateFileResponseContentLinks = { - git: string; - html: string; - self: string; - }; - type ReposCreateFileResponseContent = { - _links: ReposCreateFileResponseContentLinks; - download_url: string; - git_url: string; - html_url: string; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; - }; - type ReposCreateFileResponseCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposCreateFileResponseCommitTree = { sha: string; url: string }; - type ReposCreateFileResponseCommitParentsItem = { - html_url: string; - sha: string; - url: string; - }; - type ReposCreateFileResponseCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposCreateFileResponseCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposCreateFileResponseCommit = { - author: ReposCreateFileResponseCommitAuthor; - committer: ReposCreateFileResponseCommitCommitter; - html_url: string; - message: string; - node_id: string; - parents: Array; - sha: string; - tree: ReposCreateFileResponseCommitTree; - url: string; - verification: ReposCreateFileResponseCommitVerification; - }; - type ReposCreateFileResponse = { - commit: ReposCreateFileResponseCommit; - content: ReposCreateFileResponseContent; - }; - type ReposCreateDeploymentStatusResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCreateDeploymentStatusResponse = { - created_at: string; - creator: ReposCreateDeploymentStatusResponseCreator; - deployment_url: string; - description: string; - environment: string; - environment_url: string; - id: number; - log_url: string; - node_id: string; - repository_url: string; - state: string; - target_url: string; - updated_at: string; - url: string; - }; - type ReposCreateDeploymentResponsePayload = { deploy: string }; - type ReposCreateDeploymentResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCreateDeploymentResponse = { - created_at: string; - creator: ReposCreateDeploymentResponseCreator; - description: string; - environment: string; - id: number; - node_id: string; - original_environment: string; - payload: ReposCreateDeploymentResponsePayload; - production_environment: boolean; - ref: string; - repository_url: string; - sha: string; - statuses_url: string; - task: string; - transient_environment: boolean; - updated_at: string; - url: string; - }; - type ReposCreateCommitCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCreateCommitCommentResponse = { - body: string; - commit_id: string; - created_at: string; - html_url: string; - id: number; - line: number; - node_id: string; - path: string; - position: number; - updated_at: string; - url: string; - user: ReposCreateCommitCommentResponseUser; - }; - type ReposCompareCommitsResponseMergeBaseCommitParentsItem = { - sha: string; - url: string; - }; - type ReposCompareCommitsResponseMergeBaseCommitCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCompareCommitsResponseMergeBaseCommitCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposCompareCommitsResponseMergeBaseCommitCommitTree = { - sha: string; - url: string; - }; - type ReposCompareCommitsResponseMergeBaseCommitCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposCompareCommitsResponseMergeBaseCommitCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposCompareCommitsResponseMergeBaseCommitCommit = { - author: ReposCompareCommitsResponseMergeBaseCommitCommitAuthor; - comment_count: number; - committer: ReposCompareCommitsResponseMergeBaseCommitCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseMergeBaseCommitCommitTree; - url: string; - verification: ReposCompareCommitsResponseMergeBaseCommitCommitVerification; - }; - type ReposCompareCommitsResponseMergeBaseCommitAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCompareCommitsResponseMergeBaseCommit = { - author: ReposCompareCommitsResponseMergeBaseCommitAuthor; - comments_url: string; - commit: ReposCompareCommitsResponseMergeBaseCommitCommit; - committer: ReposCompareCommitsResponseMergeBaseCommitCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; - }; - type ReposCompareCommitsResponseFilesItem = { - additions: number; - blob_url: string; - changes: number; - contents_url: string; - deletions: number; - filename: string; - patch: string; - raw_url: string; - sha: string; - status: string; - }; - type ReposCompareCommitsResponseCommitsItemParentsItem = { - sha: string; - url: string; - }; - type ReposCompareCommitsResponseCommitsItemCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCompareCommitsResponseCommitsItemCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposCompareCommitsResponseCommitsItemCommitTree = { - sha: string; - url: string; - }; - type ReposCompareCommitsResponseCommitsItemCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposCompareCommitsResponseCommitsItemCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposCompareCommitsResponseCommitsItemCommit = { - author: ReposCompareCommitsResponseCommitsItemCommitAuthor; - comment_count: number; - committer: ReposCompareCommitsResponseCommitsItemCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseCommitsItemCommitTree; - url: string; - verification: ReposCompareCommitsResponseCommitsItemCommitVerification; - }; - type ReposCompareCommitsResponseCommitsItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCompareCommitsResponseCommitsItem = { - author: ReposCompareCommitsResponseCommitsItemAuthor; - comments_url: string; - commit: ReposCompareCommitsResponseCommitsItemCommit; - committer: ReposCompareCommitsResponseCommitsItemCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; - }; - type ReposCompareCommitsResponseBaseCommitParentsItem = { - sha: string; - url: string; - }; - type ReposCompareCommitsResponseBaseCommitCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCompareCommitsResponseBaseCommitCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type ReposCompareCommitsResponseBaseCommitCommitTree = { - sha: string; - url: string; - }; - type ReposCompareCommitsResponseBaseCommitCommitCommitter = { - date: string; - email: string; - name: string; - }; - type ReposCompareCommitsResponseBaseCommitCommitAuthor = { - date: string; - email: string; - name: string; - }; - type ReposCompareCommitsResponseBaseCommitCommit = { - author: ReposCompareCommitsResponseBaseCommitCommitAuthor; - comment_count: number; - committer: ReposCompareCommitsResponseBaseCommitCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseBaseCommitCommitTree; - url: string; - verification: ReposCompareCommitsResponseBaseCommitCommitVerification; - }; - type ReposCompareCommitsResponseBaseCommitAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposCompareCommitsResponseBaseCommit = { - author: ReposCompareCommitsResponseBaseCommitAuthor; - comments_url: string; - commit: ReposCompareCommitsResponseBaseCommitCommit; - committer: ReposCompareCommitsResponseBaseCommitCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; - }; - type ReposCompareCommitsResponse = { - ahead_by: number; - base_commit: ReposCompareCommitsResponseBaseCommit; - behind_by: number; - commits: Array; - diff_url: string; - files: Array; - html_url: string; - merge_base_commit: ReposCompareCommitsResponseMergeBaseCommit; - patch_url: string; - permalink_url: string; - status: string; - total_commits: number; - url: string; - }; - type ReposAddProtectedBranchUserRestrictionsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposAddProtectedBranchTeamRestrictionsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type ReposAddProtectedBranchRequiredSignaturesResponse = { - enabled: boolean; - url: string; - }; - type ReposAddProtectedBranchAppRestrictionsResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ReposAddProtectedBranchAppRestrictionsResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ReposAddProtectedBranchAppRestrictionsResponseItem = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ReposAddProtectedBranchAppRestrictionsResponseItemOwner; - permissions: ReposAddProtectedBranchAppRestrictionsResponseItemPermissions; - slug: string; - updated_at: string; - }; - type ReposAddProtectedBranchAdminEnforcementResponse = { - enabled: boolean; - url: string; - }; - type ReposAddDeployKeyResponse = { - created_at: string; - id: number; - key: string; - read_only: boolean; - title: string; - url: string; - verified: boolean; - }; - type ReposAddCollaboratorResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposAddCollaboratorResponseRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ReposAddCollaboratorResponseRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ReposAddCollaboratorResponseInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposAddCollaboratorResponseInvitee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReposAddCollaboratorResponse = { - created_at: string; - html_url: string; - id: number; - invitee: ReposAddCollaboratorResponseInvitee; - inviter: ReposAddCollaboratorResponseInviter; - permissions: string; - repository: ReposAddCollaboratorResponseRepository; - url: string; - }; - type ReactionsListForTeamDiscussionLegacyResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsListForTeamDiscussionLegacyResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionLegacyResponseItemUser; - }; - type ReactionsListForTeamDiscussionInOrgResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsListForTeamDiscussionInOrgResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionInOrgResponseItemUser; - }; - type ReactionsListForTeamDiscussionCommentLegacyResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsListForTeamDiscussionCommentLegacyResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentLegacyResponseItemUser; - }; - type ReactionsListForTeamDiscussionCommentInOrgResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsListForTeamDiscussionCommentInOrgResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentInOrgResponseItemUser; - }; - type ReactionsListForTeamDiscussionCommentResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsListForTeamDiscussionCommentResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentResponseItemUser; - }; - type ReactionsListForTeamDiscussionResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsListForTeamDiscussionResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionResponseItemUser; - }; - type ReactionsListForPullRequestReviewCommentResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsListForPullRequestReviewCommentResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForPullRequestReviewCommentResponseItemUser; - }; - type ReactionsListForIssueCommentResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsListForIssueCommentResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForIssueCommentResponseItemUser; - }; - type ReactionsListForIssueResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsListForIssueResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForIssueResponseItemUser; - }; - type ReactionsListForCommitCommentResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsListForCommitCommentResponseItem = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsListForCommitCommentResponseItemUser; - }; - type ReactionsCreateForTeamDiscussionLegacyResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsCreateForTeamDiscussionLegacyResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionLegacyResponseUser; - }; - type ReactionsCreateForTeamDiscussionInOrgResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsCreateForTeamDiscussionInOrgResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionInOrgResponseUser; - }; - type ReactionsCreateForTeamDiscussionCommentLegacyResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsCreateForTeamDiscussionCommentLegacyResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentLegacyResponseUser; - }; - type ReactionsCreateForTeamDiscussionCommentInOrgResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsCreateForTeamDiscussionCommentInOrgResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentInOrgResponseUser; - }; - type ReactionsCreateForTeamDiscussionCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsCreateForTeamDiscussionCommentResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentResponseUser; - }; - type ReactionsCreateForTeamDiscussionResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsCreateForTeamDiscussionResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionResponseUser; - }; - type ReactionsCreateForPullRequestReviewCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsCreateForPullRequestReviewCommentResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForPullRequestReviewCommentResponseUser; - }; - type ReactionsCreateForIssueCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsCreateForIssueCommentResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForIssueCommentResponseUser; - }; - type ReactionsCreateForIssueResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsCreateForIssueResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForIssueResponseUser; - }; - type ReactionsCreateForCommitCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ReactionsCreateForCommitCommentResponse = { - content: string; - created_at: string; - id: number; - node_id: string; - user: ReactionsCreateForCommitCommentResponseUser; - }; - type RateLimitGetResponseResourcesSearch = { - limit: number; - remaining: number; - reset: number; - }; - type RateLimitGetResponseResourcesIntegrationManifest = { - limit: number; - remaining: number; - reset: number; - }; - type RateLimitGetResponseResourcesGraphql = { - limit: number; - remaining: number; - reset: number; - }; - type RateLimitGetResponseResourcesCore = { - limit: number; - remaining: number; - reset: number; - }; - type RateLimitGetResponseResources = { - core: RateLimitGetResponseResourcesCore; - graphql: RateLimitGetResponseResourcesGraphql; - integration_manifest: RateLimitGetResponseResourcesIntegrationManifest; - search: RateLimitGetResponseResourcesSearch; - }; - type RateLimitGetResponseRate = { - limit: number; - remaining: number; - reset: number; - }; - type RateLimitGetResponse = { - rate: RateLimitGetResponseRate; - resources: RateLimitGetResponseResources; - }; - type PullsUpdateReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateReviewResponseLinksPullRequest = { href: string }; - type PullsUpdateReviewResponseLinksHtml = { href: string }; - type PullsUpdateReviewResponseLinks = { - html: PullsUpdateReviewResponseLinksHtml; - pull_request: PullsUpdateReviewResponseLinksPullRequest; - }; - type PullsUpdateReviewResponse = { - _links: PullsUpdateReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - user: PullsUpdateReviewResponseUser; - }; - type PullsUpdateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateCommentResponseLinksSelf = { href: string }; - type PullsUpdateCommentResponseLinksPullRequest = { href: string }; - type PullsUpdateCommentResponseLinksHtml = { href: string }; - type PullsUpdateCommentResponseLinks = { - html: PullsUpdateCommentResponseLinksHtml; - pull_request: PullsUpdateCommentResponseLinksPullRequest; - self: PullsUpdateCommentResponseLinksSelf; - }; - type PullsUpdateCommentResponse = { - _links: PullsUpdateCommentResponseLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsUpdateCommentResponseUser; - }; - type PullsUpdateBranchResponse = { message: string; url: string }; - type PullsUpdateResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateResponseRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type PullsUpdateResponseRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsUpdateResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type PullsUpdateResponseMergedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type PullsUpdateResponseHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateResponseHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsUpdateResponseHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateResponseHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsUpdateResponseHeadRepoOwner; - permissions: PullsUpdateResponseHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsUpdateResponseHead = { - label: string; - ref: string; - repo: PullsUpdateResponseHeadRepo; - sha: string; - user: PullsUpdateResponseHeadUser; - }; - type PullsUpdateResponseBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateResponseBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsUpdateResponseBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateResponseBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsUpdateResponseBaseRepoOwner; - permissions: PullsUpdateResponseBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsUpdateResponseBase = { - label: string; - ref: string; - repo: PullsUpdateResponseBaseRepo; - sha: string; - user: PullsUpdateResponseBaseUser; - }; - type PullsUpdateResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsUpdateResponseLinksStatuses = { href: string }; - type PullsUpdateResponseLinksSelf = { href: string }; - type PullsUpdateResponseLinksReviewComments = { href: string }; - type PullsUpdateResponseLinksReviewComment = { href: string }; - type PullsUpdateResponseLinksIssue = { href: string }; - type PullsUpdateResponseLinksHtml = { href: string }; - type PullsUpdateResponseLinksCommits = { href: string }; - type PullsUpdateResponseLinksComments = { href: string }; - type PullsUpdateResponseLinks = { - comments: PullsUpdateResponseLinksComments; - commits: PullsUpdateResponseLinksCommits; - html: PullsUpdateResponseLinksHtml; - issue: PullsUpdateResponseLinksIssue; - review_comment: PullsUpdateResponseLinksReviewComment; - review_comments: PullsUpdateResponseLinksReviewComments; - self: PullsUpdateResponseLinksSelf; - statuses: PullsUpdateResponseLinksStatuses; - }; - type PullsUpdateResponse = { - _links: PullsUpdateResponseLinks; - active_lock_reason: string; - additions: number; - assignee: PullsUpdateResponseAssignee; - assignees: Array; - author_association: string; - base: PullsUpdateResponseBase; - body: string; - changed_files: number; - closed_at: string; - comments: number; - comments_url: string; - commits: number; - commits_url: string; - created_at: string; - deletions: number; - diff_url: string; - draft: boolean; - head: PullsUpdateResponseHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - maintainer_can_modify: boolean; - merge_commit_sha: string; - mergeable: boolean; - mergeable_state: string; - merged: boolean; - merged_at: string; - merged_by: PullsUpdateResponseMergedBy; - milestone: PullsUpdateResponseMilestone; - node_id: string; - number: number; - patch_url: string; - rebaseable: boolean; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments: number; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsUpdateResponseUser; - }; - type PullsSubmitReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsSubmitReviewResponseLinksPullRequest = { href: string }; - type PullsSubmitReviewResponseLinksHtml = { href: string }; - type PullsSubmitReviewResponseLinks = { - html: PullsSubmitReviewResponseLinksHtml; - pull_request: PullsSubmitReviewResponseLinksPullRequest; - }; - type PullsSubmitReviewResponse = { - _links: PullsSubmitReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - submitted_at: string; - user: PullsSubmitReviewResponseUser; - }; - type PullsMergeResponse = { merged: boolean; message: string; sha: string }; - type PullsListReviewsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListReviewsResponseItemLinksPullRequest = { href: string }; - type PullsListReviewsResponseItemLinksHtml = { href: string }; - type PullsListReviewsResponseItemLinks = { - html: PullsListReviewsResponseItemLinksHtml; - pull_request: PullsListReviewsResponseItemLinksPullRequest; - }; - type PullsListReviewsResponseItem = { - _links: PullsListReviewsResponseItemLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - submitted_at: string; - user: PullsListReviewsResponseItemUser; - }; - type PullsListReviewRequestsResponseUsersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListReviewRequestsResponseTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type PullsListReviewRequestsResponse = { - teams: Array; - users: Array; - }; - type PullsListFilesResponseItem = { - additions: number; - blob_url: string; - changes: number; - contents_url: string; - deletions: number; - filename: string; - patch: string; - raw_url: string; - sha: string; - status: string; - }; - type PullsListCommitsResponseItemParentsItem = { sha: string; url: string }; - type PullsListCommitsResponseItemCommitter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListCommitsResponseItemCommitVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type PullsListCommitsResponseItemCommitTree = { sha: string; url: string }; - type PullsListCommitsResponseItemCommitCommitter = { - date: string; - email: string; - name: string; - }; - type PullsListCommitsResponseItemCommitAuthor = { - date: string; - email: string; - name: string; - }; - type PullsListCommitsResponseItemCommit = { - author: PullsListCommitsResponseItemCommitAuthor; - comment_count: number; - committer: PullsListCommitsResponseItemCommitCommitter; - message: string; - tree: PullsListCommitsResponseItemCommitTree; - url: string; - verification: PullsListCommitsResponseItemCommitVerification; - }; - type PullsListCommitsResponseItemAuthor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListCommitsResponseItem = { - author: PullsListCommitsResponseItemAuthor; - comments_url: string; - commit: PullsListCommitsResponseItemCommit; - committer: PullsListCommitsResponseItemCommitter; - html_url: string; - node_id: string; - parents: Array; - sha: string; - url: string; - }; - type PullsListCommentsForRepoResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListCommentsForRepoResponseItemLinksSelf = { href: string }; - type PullsListCommentsForRepoResponseItemLinksPullRequest = { href: string }; - type PullsListCommentsForRepoResponseItemLinksHtml = { href: string }; - type PullsListCommentsForRepoResponseItemLinks = { - html: PullsListCommentsForRepoResponseItemLinksHtml; - pull_request: PullsListCommentsForRepoResponseItemLinksPullRequest; - self: PullsListCommentsForRepoResponseItemLinksSelf; - }; - type PullsListCommentsForRepoResponseItem = { - _links: PullsListCommentsForRepoResponseItemLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsListCommentsForRepoResponseItemUser; - }; - type PullsListCommentsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListCommentsResponseItemLinksSelf = { href: string }; - type PullsListCommentsResponseItemLinksPullRequest = { href: string }; - type PullsListCommentsResponseItemLinksHtml = { href: string }; - type PullsListCommentsResponseItemLinks = { - html: PullsListCommentsResponseItemLinksHtml; - pull_request: PullsListCommentsResponseItemLinksPullRequest; - self: PullsListCommentsResponseItemLinksSelf; - }; - type PullsListCommentsResponseItem = { - _links: PullsListCommentsResponseItemLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsListCommentsResponseItemUser; - }; - type PullsListResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListResponseItemRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type PullsListResponseItemRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsListResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type PullsListResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type PullsListResponseItemHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListResponseItemHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsListResponseItemHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListResponseItemHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsListResponseItemHeadRepoOwner; - permissions: PullsListResponseItemHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsListResponseItemHead = { - label: string; - ref: string; - repo: PullsListResponseItemHeadRepo; - sha: string; - user: PullsListResponseItemHeadUser; - }; - type PullsListResponseItemBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListResponseItemBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsListResponseItemBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListResponseItemBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsListResponseItemBaseRepoOwner; - permissions: PullsListResponseItemBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsListResponseItemBase = { - label: string; - ref: string; - repo: PullsListResponseItemBaseRepo; - sha: string; - user: PullsListResponseItemBaseUser; - }; - type PullsListResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsListResponseItemLinksStatuses = { href: string }; - type PullsListResponseItemLinksSelf = { href: string }; - type PullsListResponseItemLinksReviewComments = { href: string }; - type PullsListResponseItemLinksReviewComment = { href: string }; - type PullsListResponseItemLinksIssue = { href: string }; - type PullsListResponseItemLinksHtml = { href: string }; - type PullsListResponseItemLinksCommits = { href: string }; - type PullsListResponseItemLinksComments = { href: string }; - type PullsListResponseItemLinks = { - comments: PullsListResponseItemLinksComments; - commits: PullsListResponseItemLinksCommits; - html: PullsListResponseItemLinksHtml; - issue: PullsListResponseItemLinksIssue; - review_comment: PullsListResponseItemLinksReviewComment; - review_comments: PullsListResponseItemLinksReviewComments; - self: PullsListResponseItemLinksSelf; - statuses: PullsListResponseItemLinksStatuses; - }; - type PullsListResponseItem = { - _links: PullsListResponseItemLinks; - active_lock_reason: string; - assignee: PullsListResponseItemAssignee; - assignees: Array; - author_association: string; - base: PullsListResponseItemBase; - body: string; - closed_at: string; - comments_url: string; - commits_url: string; - created_at: string; - diff_url: string; - draft: boolean; - head: PullsListResponseItemHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - merge_commit_sha: string; - merged_at: string; - milestone: PullsListResponseItemMilestone; - node_id: string; - number: number; - patch_url: string; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsListResponseItemUser; - }; - type PullsGetReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetReviewResponseLinksPullRequest = { href: string }; - type PullsGetReviewResponseLinksHtml = { href: string }; - type PullsGetReviewResponseLinks = { - html: PullsGetReviewResponseLinksHtml; - pull_request: PullsGetReviewResponseLinksPullRequest; - }; - type PullsGetReviewResponse = { - _links: PullsGetReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - submitted_at: string; - user: PullsGetReviewResponseUser; - }; - type PullsGetCommentsForReviewResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetCommentsForReviewResponseItemLinksSelf = { href: string }; - type PullsGetCommentsForReviewResponseItemLinksPullRequest = { href: string }; - type PullsGetCommentsForReviewResponseItemLinksHtml = { href: string }; - type PullsGetCommentsForReviewResponseItemLinks = { - html: PullsGetCommentsForReviewResponseItemLinksHtml; - pull_request: PullsGetCommentsForReviewResponseItemLinksPullRequest; - self: PullsGetCommentsForReviewResponseItemLinksSelf; - }; - type PullsGetCommentsForReviewResponseItem = { - _links: PullsGetCommentsForReviewResponseItemLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - node_id: string; - original_commit_id: string; - original_position: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - updated_at: string; - url: string; - user: PullsGetCommentsForReviewResponseItemUser; - }; - type PullsGetCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetCommentResponseLinksSelf = { href: string }; - type PullsGetCommentResponseLinksPullRequest = { href: string }; - type PullsGetCommentResponseLinksHtml = { href: string }; - type PullsGetCommentResponseLinks = { - html: PullsGetCommentResponseLinksHtml; - pull_request: PullsGetCommentResponseLinksPullRequest; - self: PullsGetCommentResponseLinksSelf; - }; - type PullsGetCommentResponse = { - _links: PullsGetCommentResponseLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsGetCommentResponseUser; - }; - type PullsGetResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetResponseRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type PullsGetResponseRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsGetResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type PullsGetResponseMergedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type PullsGetResponseHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetResponseHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsGetResponseHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetResponseHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsGetResponseHeadRepoOwner; - permissions: PullsGetResponseHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsGetResponseHead = { - label: string; - ref: string; - repo: PullsGetResponseHeadRepo; - sha: string; - user: PullsGetResponseHeadUser; - }; - type PullsGetResponseBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetResponseBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsGetResponseBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetResponseBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsGetResponseBaseRepoOwner; - permissions: PullsGetResponseBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsGetResponseBase = { - label: string; - ref: string; - repo: PullsGetResponseBaseRepo; - sha: string; - user: PullsGetResponseBaseUser; - }; - type PullsGetResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsGetResponseLinksStatuses = { href: string }; - type PullsGetResponseLinksSelf = { href: string }; - type PullsGetResponseLinksReviewComments = { href: string }; - type PullsGetResponseLinksReviewComment = { href: string }; - type PullsGetResponseLinksIssue = { href: string }; - type PullsGetResponseLinksHtml = { href: string }; - type PullsGetResponseLinksCommits = { href: string }; - type PullsGetResponseLinksComments = { href: string }; - type PullsGetResponseLinks = { - comments: PullsGetResponseLinksComments; - commits: PullsGetResponseLinksCommits; - html: PullsGetResponseLinksHtml; - issue: PullsGetResponseLinksIssue; - review_comment: PullsGetResponseLinksReviewComment; - review_comments: PullsGetResponseLinksReviewComments; - self: PullsGetResponseLinksSelf; - statuses: PullsGetResponseLinksStatuses; - }; - type PullsGetResponse = { - _links: PullsGetResponseLinks; - active_lock_reason: string; - additions: number; - assignee: PullsGetResponseAssignee; - assignees: Array; - author_association: string; - base: PullsGetResponseBase; - body: string; - changed_files: number; - closed_at: string; - comments: number; - comments_url: string; - commits: number; - commits_url: string; - created_at: string; - deletions: number; - diff_url: string; - draft: boolean; - head: PullsGetResponseHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - maintainer_can_modify: boolean; - merge_commit_sha: string; - mergeable: boolean; - mergeable_state: string; - merged: boolean; - merged_at: string; - merged_by: PullsGetResponseMergedBy; - milestone: PullsGetResponseMilestone; - node_id: string; - number: number; - patch_url: string; - rebaseable: boolean; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments: number; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsGetResponseUser; - }; - type PullsDismissReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsDismissReviewResponseLinksPullRequest = { href: string }; - type PullsDismissReviewResponseLinksHtml = { href: string }; - type PullsDismissReviewResponseLinks = { - html: PullsDismissReviewResponseLinksHtml; - pull_request: PullsDismissReviewResponseLinksPullRequest; - }; - type PullsDismissReviewResponse = { - _links: PullsDismissReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - user: PullsDismissReviewResponseUser; - }; - type PullsDeletePendingReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsDeletePendingReviewResponseLinksPullRequest = { href: string }; - type PullsDeletePendingReviewResponseLinksHtml = { href: string }; - type PullsDeletePendingReviewResponseLinks = { - html: PullsDeletePendingReviewResponseLinksHtml; - pull_request: PullsDeletePendingReviewResponseLinksPullRequest; - }; - type PullsDeletePendingReviewResponse = { - _links: PullsDeletePendingReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - user: PullsDeletePendingReviewResponseUser; - }; - type PullsCreateReviewRequestResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewRequestResponseRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type PullsCreateReviewRequestResponseRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewRequestResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewRequestResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsCreateReviewRequestResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type PullsCreateReviewRequestResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type PullsCreateReviewRequestResponseHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewRequestResponseHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsCreateReviewRequestResponseHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewRequestResponseHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateReviewRequestResponseHeadRepoOwner; - permissions: PullsCreateReviewRequestResponseHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsCreateReviewRequestResponseHead = { - label: string; - ref: string; - repo: PullsCreateReviewRequestResponseHeadRepo; - sha: string; - user: PullsCreateReviewRequestResponseHeadUser; - }; - type PullsCreateReviewRequestResponseBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewRequestResponseBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsCreateReviewRequestResponseBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewRequestResponseBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateReviewRequestResponseBaseRepoOwner; - permissions: PullsCreateReviewRequestResponseBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsCreateReviewRequestResponseBase = { - label: string; - ref: string; - repo: PullsCreateReviewRequestResponseBaseRepo; - sha: string; - user: PullsCreateReviewRequestResponseBaseUser; - }; - type PullsCreateReviewRequestResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewRequestResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewRequestResponseLinksStatuses = { href: string }; - type PullsCreateReviewRequestResponseLinksSelf = { href: string }; - type PullsCreateReviewRequestResponseLinksReviewComments = { href: string }; - type PullsCreateReviewRequestResponseLinksReviewComment = { href: string }; - type PullsCreateReviewRequestResponseLinksIssue = { href: string }; - type PullsCreateReviewRequestResponseLinksHtml = { href: string }; - type PullsCreateReviewRequestResponseLinksCommits = { href: string }; - type PullsCreateReviewRequestResponseLinksComments = { href: string }; - type PullsCreateReviewRequestResponseLinks = { - comments: PullsCreateReviewRequestResponseLinksComments; - commits: PullsCreateReviewRequestResponseLinksCommits; - html: PullsCreateReviewRequestResponseLinksHtml; - issue: PullsCreateReviewRequestResponseLinksIssue; - review_comment: PullsCreateReviewRequestResponseLinksReviewComment; - review_comments: PullsCreateReviewRequestResponseLinksReviewComments; - self: PullsCreateReviewRequestResponseLinksSelf; - statuses: PullsCreateReviewRequestResponseLinksStatuses; - }; - type PullsCreateReviewRequestResponse = { - _links: PullsCreateReviewRequestResponseLinks; - active_lock_reason: string; - assignee: PullsCreateReviewRequestResponseAssignee; - assignees: Array; - author_association: string; - base: PullsCreateReviewRequestResponseBase; - body: string; - closed_at: string; - comments_url: string; - commits_url: string; - created_at: string; - diff_url: string; - draft: boolean; - head: PullsCreateReviewRequestResponseHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - merge_commit_sha: string; - merged_at: string; - milestone: PullsCreateReviewRequestResponseMilestone; - node_id: string; - number: number; - patch_url: string; - requested_reviewers: Array< - PullsCreateReviewRequestResponseRequestedReviewersItem - >; - requested_teams: Array; - review_comment_url: string; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsCreateReviewRequestResponseUser; - }; - type PullsCreateReviewCommentReplyResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewCommentReplyResponseLinksSelf = { href: string }; - type PullsCreateReviewCommentReplyResponseLinksPullRequest = { href: string }; - type PullsCreateReviewCommentReplyResponseLinksHtml = { href: string }; - type PullsCreateReviewCommentReplyResponseLinks = { - html: PullsCreateReviewCommentReplyResponseLinksHtml; - pull_request: PullsCreateReviewCommentReplyResponseLinksPullRequest; - self: PullsCreateReviewCommentReplyResponseLinksSelf; - }; - type PullsCreateReviewCommentReplyResponse = { - _links: PullsCreateReviewCommentReplyResponseLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - node_id: string; - original_commit_id: string; - original_position: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - updated_at: string; - url: string; - user: PullsCreateReviewCommentReplyResponseUser; - }; - type PullsCreateReviewResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateReviewResponseLinksPullRequest = { href: string }; - type PullsCreateReviewResponseLinksHtml = { href: string }; - type PullsCreateReviewResponseLinks = { - html: PullsCreateReviewResponseLinksHtml; - pull_request: PullsCreateReviewResponseLinksPullRequest; - }; - type PullsCreateReviewResponse = { - _links: PullsCreateReviewResponseLinks; - body: string; - commit_id: string; - html_url: string; - id: number; - node_id: string; - pull_request_url: string; - state: string; - user: PullsCreateReviewResponseUser; - }; - type PullsCreateFromIssueResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateFromIssueResponseRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type PullsCreateFromIssueResponseRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateFromIssueResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateFromIssueResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsCreateFromIssueResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type PullsCreateFromIssueResponseMergedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateFromIssueResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type PullsCreateFromIssueResponseHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateFromIssueResponseHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsCreateFromIssueResponseHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateFromIssueResponseHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateFromIssueResponseHeadRepoOwner; - permissions: PullsCreateFromIssueResponseHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsCreateFromIssueResponseHead = { - label: string; - ref: string; - repo: PullsCreateFromIssueResponseHeadRepo; - sha: string; - user: PullsCreateFromIssueResponseHeadUser; - }; - type PullsCreateFromIssueResponseBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateFromIssueResponseBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsCreateFromIssueResponseBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateFromIssueResponseBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateFromIssueResponseBaseRepoOwner; - permissions: PullsCreateFromIssueResponseBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsCreateFromIssueResponseBase = { - label: string; - ref: string; - repo: PullsCreateFromIssueResponseBaseRepo; - sha: string; - user: PullsCreateFromIssueResponseBaseUser; - }; - type PullsCreateFromIssueResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateFromIssueResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateFromIssueResponseLinksStatuses = { href: string }; - type PullsCreateFromIssueResponseLinksSelf = { href: string }; - type PullsCreateFromIssueResponseLinksReviewComments = { href: string }; - type PullsCreateFromIssueResponseLinksReviewComment = { href: string }; - type PullsCreateFromIssueResponseLinksIssue = { href: string }; - type PullsCreateFromIssueResponseLinksHtml = { href: string }; - type PullsCreateFromIssueResponseLinksCommits = { href: string }; - type PullsCreateFromIssueResponseLinksComments = { href: string }; - type PullsCreateFromIssueResponseLinks = { - comments: PullsCreateFromIssueResponseLinksComments; - commits: PullsCreateFromIssueResponseLinksCommits; - html: PullsCreateFromIssueResponseLinksHtml; - issue: PullsCreateFromIssueResponseLinksIssue; - review_comment: PullsCreateFromIssueResponseLinksReviewComment; - review_comments: PullsCreateFromIssueResponseLinksReviewComments; - self: PullsCreateFromIssueResponseLinksSelf; - statuses: PullsCreateFromIssueResponseLinksStatuses; - }; - type PullsCreateFromIssueResponse = { - _links: PullsCreateFromIssueResponseLinks; - active_lock_reason: string; - additions: number; - assignee: PullsCreateFromIssueResponseAssignee; - assignees: Array; - author_association: string; - base: PullsCreateFromIssueResponseBase; - body: string; - changed_files: number; - closed_at: string; - comments: number; - comments_url: string; - commits: number; - commits_url: string; - created_at: string; - deletions: number; - diff_url: string; - draft: boolean; - head: PullsCreateFromIssueResponseHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - maintainer_can_modify: boolean; - merge_commit_sha: string; - mergeable: boolean; - mergeable_state: string; - merged: boolean; - merged_at: string; - merged_by: PullsCreateFromIssueResponseMergedBy; - milestone: PullsCreateFromIssueResponseMilestone; - node_id: string; - number: number; - patch_url: string; - rebaseable: boolean; - requested_reviewers: Array< - PullsCreateFromIssueResponseRequestedReviewersItem - >; - requested_teams: Array; - review_comment_url: string; - review_comments: number; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsCreateFromIssueResponseUser; - }; - type PullsCreateCommentReplyResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateCommentReplyResponseLinksSelf = { href: string }; - type PullsCreateCommentReplyResponseLinksPullRequest = { href: string }; - type PullsCreateCommentReplyResponseLinksHtml = { href: string }; - type PullsCreateCommentReplyResponseLinks = { - html: PullsCreateCommentReplyResponseLinksHtml; - pull_request: PullsCreateCommentReplyResponseLinksPullRequest; - self: PullsCreateCommentReplyResponseLinksSelf; - }; - type PullsCreateCommentReplyResponse = { - _links: PullsCreateCommentReplyResponseLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsCreateCommentReplyResponseUser; - }; - type PullsCreateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateCommentResponseLinksSelf = { href: string }; - type PullsCreateCommentResponseLinksPullRequest = { href: string }; - type PullsCreateCommentResponseLinksHtml = { href: string }; - type PullsCreateCommentResponseLinks = { - html: PullsCreateCommentResponseLinksHtml; - pull_request: PullsCreateCommentResponseLinksPullRequest; - self: PullsCreateCommentResponseLinksSelf; - }; - type PullsCreateCommentResponse = { - _links: PullsCreateCommentResponseLinks; - author_association: string; - body: string; - commit_id: string; - created_at: string; - diff_hunk: string; - html_url: string; - id: number; - in_reply_to_id: number; - line: number; - node_id: string; - original_commit_id: string; - original_line: number; - original_position: number; - original_start_line: number; - path: string; - position: number; - pull_request_review_id: number; - pull_request_url: string; - side: string; - start_line: number; - start_side: string; - updated_at: string; - url: string; - user: PullsCreateCommentResponseUser; - }; - type PullsCreateResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateResponseRequestedTeamsItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type PullsCreateResponseRequestedReviewersItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: PullsCreateResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type PullsCreateResponseMergedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type PullsCreateResponseHeadUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateResponseHeadRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsCreateResponseHeadRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateResponseHeadRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateResponseHeadRepoOwner; - permissions: PullsCreateResponseHeadRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsCreateResponseHead = { - label: string; - ref: string; - repo: PullsCreateResponseHeadRepo; - sha: string; - user: PullsCreateResponseHeadUser; - }; - type PullsCreateResponseBaseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateResponseBaseRepoPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type PullsCreateResponseBaseRepoOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateResponseBaseRepo = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: PullsCreateResponseBaseRepoOwner; - permissions: PullsCreateResponseBaseRepoPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type PullsCreateResponseBase = { - label: string; - ref: string; - repo: PullsCreateResponseBaseRepo; - sha: string; - user: PullsCreateResponseBaseUser; - }; - type PullsCreateResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type PullsCreateResponseLinksStatuses = { href: string }; - type PullsCreateResponseLinksSelf = { href: string }; - type PullsCreateResponseLinksReviewComments = { href: string }; - type PullsCreateResponseLinksReviewComment = { href: string }; - type PullsCreateResponseLinksIssue = { href: string }; - type PullsCreateResponseLinksHtml = { href: string }; - type PullsCreateResponseLinksCommits = { href: string }; - type PullsCreateResponseLinksComments = { href: string }; - type PullsCreateResponseLinks = { - comments: PullsCreateResponseLinksComments; - commits: PullsCreateResponseLinksCommits; - html: PullsCreateResponseLinksHtml; - issue: PullsCreateResponseLinksIssue; - review_comment: PullsCreateResponseLinksReviewComment; - review_comments: PullsCreateResponseLinksReviewComments; - self: PullsCreateResponseLinksSelf; - statuses: PullsCreateResponseLinksStatuses; - }; - type PullsCreateResponse = { - _links: PullsCreateResponseLinks; - active_lock_reason: string; - additions: number; - assignee: PullsCreateResponseAssignee; - assignees: Array; - author_association: string; - base: PullsCreateResponseBase; - body: string; - changed_files: number; - closed_at: string; - comments: number; - comments_url: string; - commits: number; - commits_url: string; - created_at: string; - deletions: number; - diff_url: string; - draft: boolean; - head: PullsCreateResponseHead; - html_url: string; - id: number; - issue_url: string; - labels: Array; - locked: boolean; - maintainer_can_modify: boolean; - merge_commit_sha: string; - mergeable: boolean; - mergeable_state: string; - merged: boolean; - merged_at: string; - merged_by: PullsCreateResponseMergedBy; - milestone: PullsCreateResponseMilestone; - node_id: string; - number: number; - patch_url: string; - rebaseable: boolean; - requested_reviewers: Array; - requested_teams: Array; - review_comment_url: string; - review_comments: number; - review_comments_url: string; - state: string; - statuses_url: string; - title: string; - updated_at: string; - url: string; - user: PullsCreateResponseUser; - }; - type ProjectsUpdateColumnResponse = { - cards_url: string; - created_at: string; - id: number; - name: string; - node_id: string; - project_url: string; - updated_at: string; - url: string; - }; - type ProjectsUpdateCardResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsUpdateCardResponse = { - archived: boolean; - column_url: string; - content_url: string; - created_at: string; - creator: ProjectsUpdateCardResponseCreator; - id: number; - node_id: string; - note: string; - project_url: string; - updated_at: string; - url: string; - }; - type ProjectsUpdateResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsUpdateResponse = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsUpdateResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; - }; - type ProjectsReviewUserPermissionLevelResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsReviewUserPermissionLevelResponse = { - permission: string; - user: ProjectsReviewUserPermissionLevelResponseUser; - }; - type ProjectsListForUserResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsListForUserResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsListForUserResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; - }; - type ProjectsListForRepoResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsListForRepoResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsListForRepoResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; - }; - type ProjectsListForOrgResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsListForOrgResponseItem = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsListForOrgResponseItemCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; - }; - type ProjectsListColumnsResponseItem = { - cards_url: string; - created_at: string; - id: number; - name: string; - node_id: string; - project_url: string; - updated_at: string; - url: string; - }; - type ProjectsListCollaboratorsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsListCardsResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsListCardsResponseItem = { - archived: boolean; - column_url: string; - content_url: string; - created_at: string; - creator: ProjectsListCardsResponseItemCreator; - id: number; - node_id: string; - note: string; - project_url: string; - updated_at: string; - url: string; - }; - type ProjectsGetColumnResponse = { - cards_url: string; - created_at: string; - id: number; - name: string; - node_id: string; - project_url: string; - updated_at: string; - url: string; - }; - type ProjectsGetCardResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsGetCardResponse = { - archived: boolean; - column_url: string; - content_url: string; - created_at: string; - creator: ProjectsGetCardResponseCreator; - id: number; - node_id: string; - note: string; - project_url: string; - updated_at: string; - url: string; - }; - type ProjectsGetResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsGetResponse = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsGetResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; - }; - type ProjectsCreateForRepoResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsCreateForRepoResponse = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsCreateForRepoResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; - }; - type ProjectsCreateForOrgResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsCreateForOrgResponse = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsCreateForOrgResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; - }; - type ProjectsCreateForAuthenticatedUserResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsCreateForAuthenticatedUserResponse = { - body: string; - columns_url: string; - created_at: string; - creator: ProjectsCreateForAuthenticatedUserResponseCreator; - html_url: string; - id: number; - name: string; - node_id: string; - number: number; - owner_url: string; - state: string; - updated_at: string; - url: string; - }; - type ProjectsCreateColumnResponse = { - cards_url: string; - created_at: string; - id: number; - name: string; - node_id: string; - project_url: string; - updated_at: string; - url: string; - }; - type ProjectsCreateCardResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ProjectsCreateCardResponse = { - archived: boolean; - column_url: string; - content_url: string; - created_at: string; - creator: ProjectsCreateCardResponseCreator; - id: number; - node_id: string; - note: string; - project_url: string; - updated_at: string; - url: string; - }; - type OrgsUpdateMembershipResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsUpdateMembershipResponseOrganization = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type OrgsUpdateMembershipResponse = { - organization: OrgsUpdateMembershipResponseOrganization; - organization_url: string; - role: string; - state: string; - url: string; - user: OrgsUpdateMembershipResponseUser; - }; - type OrgsUpdateHookResponseConfig = { content_type: string; url: string }; - type OrgsUpdateHookResponse = { - active: boolean; - config: OrgsUpdateHookResponseConfig; - created_at: string; - events: Array; - id: number; - name: string; - ping_url: string; - updated_at: string; - url: string; - }; - type OrgsUpdateResponsePlan = { - name: string; - private_repos: number; - space: number; - }; - type OrgsUpdateResponse = { - avatar_url: string; - billing_email: string; - blog: string; - collaborators: number; - company: string; - created_at: string; - default_repository_permission: string; - description: string; - disk_usage: number; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_allowed_repository_creation_type: string; - members_can_create_internal_repositories: boolean; - members_can_create_private_repositories: boolean; - members_can_create_public_repositories: boolean; - members_can_create_repositories: boolean; - members_url: string; - name: string; - node_id: string; - owned_private_repos: number; - plan: OrgsUpdateResponsePlan; - private_gists: number; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - total_private_repos: number; - two_factor_requirement_enabled: boolean; - type: string; - url: string; - }; - type OrgsRemoveOutsideCollaboratorResponse = { - documentation_url: string; - message: string; - }; - type OrgsListPublicMembersResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsListPendingInvitationsResponseItemInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsListPendingInvitationsResponseItem = { - created_at: string; - email: string; - id: number; - invitation_team_url: string; - inviter: OrgsListPendingInvitationsResponseItemInviter; - login: string; - role: string; - team_count: number; - }; - type OrgsListOutsideCollaboratorsResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsListMembershipsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsListMembershipsResponseItemOrganization = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type OrgsListMembershipsResponseItem = { - organization: OrgsListMembershipsResponseItemOrganization; - organization_url: string; - role: string; - state: string; - url: string; - user: OrgsListMembershipsResponseItemUser; - }; - type OrgsListMembersResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsListInvitationTeamsResponseItem = { - description: string; - html_url: string; - id: number; - members_url: string; - name: string; - node_id: string; - parent: null; - permission: string; - privacy: string; - repositories_url: string; - slug: string; - url: string; - }; - type OrgsListInstallationsResponseInstallationsItemPermissions = { - deployments: string; - metadata: string; - pull_requests: string; - statuses: string; - }; - type OrgsListInstallationsResponseInstallationsItemAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsListInstallationsResponseInstallationsItem = { - access_tokens_url: string; - account: OrgsListInstallationsResponseInstallationsItemAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: OrgsListInstallationsResponseInstallationsItemPermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; - }; - type OrgsListInstallationsResponse = { - installations: Array; - total_count: number; - }; - type OrgsListHooksResponseItemConfig = { content_type: string; url: string }; - type OrgsListHooksResponseItem = { - active: boolean; - config: OrgsListHooksResponseItemConfig; - created_at: string; - events: Array; - id: number; - name: string; - ping_url: string; - updated_at: string; - url: string; - }; - type OrgsListForUserResponseItem = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type OrgsListForAuthenticatedUserResponseItem = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type OrgsListBlockedUsersResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsListResponseItem = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type OrgsGetMembershipForAuthenticatedUserResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsGetMembershipForAuthenticatedUserResponseOrganization = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type OrgsGetMembershipForAuthenticatedUserResponse = { - organization: OrgsGetMembershipForAuthenticatedUserResponseOrganization; - organization_url: string; - role: string; - state: string; - url: string; - user: OrgsGetMembershipForAuthenticatedUserResponseUser; - }; - type OrgsGetMembershipResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsGetMembershipResponseOrganization = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type OrgsGetMembershipResponse = { - organization: OrgsGetMembershipResponseOrganization; - organization_url: string; - role: string; - state: string; - url: string; - user: OrgsGetMembershipResponseUser; - }; - type OrgsGetHookResponseConfig = { content_type: string; url: string }; - type OrgsGetHookResponse = { - active: boolean; - config: OrgsGetHookResponseConfig; - created_at: string; - events: Array; - id: number; - name: string; - ping_url: string; - updated_at: string; - url: string; - }; - type OrgsGetResponsePlan = { - name: string; - private_repos: number; - space: number; - filled_seats?: number; - seats?: number; - }; - type OrgsGetResponse = { - avatar_url: string; - billing_email?: string; - blog: string; - collaborators?: number; - company: string; - created_at: string; - default_repository_permission?: string; - description: string; - disk_usage?: number; - email: string; - events_url: string; - followers: number; - following: number; - has_organization_projects: boolean; - has_repository_projects: boolean; - hooks_url: string; - html_url: string; - id: number; - is_verified: boolean; - issues_url: string; - location: string; - login: string; - members_allowed_repository_creation_type?: string; - members_can_create_internal_repositories?: boolean; - members_can_create_private_repositories?: boolean; - members_can_create_public_repositories?: boolean; - members_can_create_repositories?: boolean; - members_url: string; - name: string; - node_id: string; - owned_private_repos?: number; - plan: OrgsGetResponsePlan; - private_gists?: number; - public_gists: number; - public_members_url: string; - public_repos: number; - repos_url: string; - total_private_repos?: number; - two_factor_requirement_enabled?: boolean; - type: string; - url: string; - }; - type OrgsCreateInvitationResponseInviter = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsCreateInvitationResponse = { - created_at: string; - email: string; - id: number; - invitation_team_url: string; - inviter: OrgsCreateInvitationResponseInviter; - login: string; - role: string; - team_count: number; - }; - type OrgsCreateHookResponseConfig = { content_type: string; url: string }; - type OrgsCreateHookResponse = { - active: boolean; - config: OrgsCreateHookResponseConfig; - created_at: string; - events: Array; - id: number; - name: string; - ping_url: string; - updated_at: string; - url: string; - }; - type OrgsConvertMemberToOutsideCollaboratorResponse = { - documentation_url: string; - message: string; - }; - type OrgsAddOrUpdateMembershipResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OrgsAddOrUpdateMembershipResponseOrganization = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type OrgsAddOrUpdateMembershipResponse = { - organization: OrgsAddOrUpdateMembershipResponseOrganization; - organization_url: string; - role: string; - state: string; - url: string; - user: OrgsAddOrUpdateMembershipResponseUser; - }; - type OauthAuthorizationsUpdateAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsUpdateAuthorizationResponse = { - app: OauthAuthorizationsUpdateAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - }; - type OauthAuthorizationsResetAuthorizationResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OauthAuthorizationsResetAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsResetAuthorizationResponse = { - app: OauthAuthorizationsResetAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: OauthAuthorizationsResetAuthorizationResponseUser; - }; - type OauthAuthorizationsListGrantsResponseItemApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsListGrantsResponseItem = { - app: OauthAuthorizationsListGrantsResponseItemApp; - created_at: string; - id: number; - scopes: Array; - updated_at: string; - url: string; - }; - type OauthAuthorizationsListAuthorizationsResponseItemApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsListAuthorizationsResponseItem = { - app: OauthAuthorizationsListAuthorizationsResponseItemApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - }; - type OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintResponseApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintResponse = { - app: OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - }; - type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponse = { - app: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - }; - type OauthAuthorizationsGetOrCreateAuthorizationForAppResponseApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsGetOrCreateAuthorizationForAppResponse = { - app: OauthAuthorizationsGetOrCreateAuthorizationForAppResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - }; - type OauthAuthorizationsGetGrantResponseApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsGetGrantResponse = { - app: OauthAuthorizationsGetGrantResponseApp; - created_at: string; - id: number; - scopes: Array; - updated_at: string; - url: string; - }; - type OauthAuthorizationsGetAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsGetAuthorizationResponse = { - app: OauthAuthorizationsGetAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - }; - type OauthAuthorizationsCreateAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsCreateAuthorizationResponse = { - app: OauthAuthorizationsCreateAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - }; - type OauthAuthorizationsCheckAuthorizationResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type OauthAuthorizationsCheckAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; - }; - type OauthAuthorizationsCheckAuthorizationResponse = { - app: OauthAuthorizationsCheckAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: OauthAuthorizationsCheckAuthorizationResponseUser; - }; - type MigrationsUpdateImportResponse = { - authors_url: string; - html_url: string; - repository_url: string; - status: string; - url: string; - use_lfs: string; - vcs: string; - vcs_url: string; - authors_count?: number; - commit_count?: number; - has_large_files?: boolean; - large_files_count?: number; - large_files_size?: number; - percent?: number; - status_text?: string; - tfvc_project?: string; - }; - type MigrationsStartImportResponse = { - authors_count: number; - authors_url: string; - commit_count: number; - has_large_files: boolean; - html_url: string; - large_files_count: number; - large_files_size: number; - percent: number; - repository_url: string; - status: string; - status_text: string; - url: string; - use_lfs: string; - vcs: string; - vcs_url: string; - }; - type MigrationsStartForOrgResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type MigrationsStartForOrgResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsStartForOrgResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsStartForOrgResponseRepositoriesItemOwner; - permissions: MigrationsStartForOrgResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type MigrationsStartForOrgResponseOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type MigrationsStartForOrgResponse = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsStartForOrgResponseOwner; - repositories: Array; - state: string; - updated_at: string; - url: string; - }; - type MigrationsStartForAuthenticatedUserResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type MigrationsStartForAuthenticatedUserResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsStartForAuthenticatedUserResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsStartForAuthenticatedUserResponseRepositoriesItemOwner; - permissions: MigrationsStartForAuthenticatedUserResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type MigrationsStartForAuthenticatedUserResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsStartForAuthenticatedUserResponse = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsStartForAuthenticatedUserResponseOwner; - repositories: Array< - MigrationsStartForAuthenticatedUserResponseRepositoriesItem - >; - state: string; - updated_at: string; - url: string; - }; - type MigrationsSetLfsPreferenceResponse = { - authors_count: number; - authors_url: string; - has_large_files: boolean; - html_url: string; - large_files_count: number; - large_files_size: number; - repository_url: string; - status: string; - status_text: string; - url: string; - use_lfs: string; - vcs: string; - vcs_url: string; - }; - type MigrationsMapCommitAuthorResponse = { - email: string; - id: number; - import_url: string; - name: string; - remote_id: string; - remote_name: string; - url: string; - }; - type MigrationsListReposForUserResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type MigrationsListReposForUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsListReposForUserResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type MigrationsListReposForUserResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: MigrationsListReposForUserResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsListReposForUserResponseItemOwner; - permissions: MigrationsListReposForUserResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type MigrationsListReposForOrgResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type MigrationsListReposForOrgResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsListReposForOrgResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type MigrationsListReposForOrgResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: MigrationsListReposForOrgResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsListReposForOrgResponseItemOwner; - permissions: MigrationsListReposForOrgResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type MigrationsListForOrgResponseItemRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type MigrationsListForOrgResponseItemRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsListForOrgResponseItemRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsListForOrgResponseItemRepositoriesItemOwner; - permissions: MigrationsListForOrgResponseItemRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type MigrationsListForOrgResponseItemOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type MigrationsListForOrgResponseItem = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsListForOrgResponseItemOwner; - repositories: Array; - state: string; - updated_at: string; - url: string; - }; - type MigrationsListForAuthenticatedUserResponseItemRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type MigrationsListForAuthenticatedUserResponseItemRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsListForAuthenticatedUserResponseItemRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsListForAuthenticatedUserResponseItemRepositoriesItemOwner; - permissions: MigrationsListForAuthenticatedUserResponseItemRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type MigrationsListForAuthenticatedUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsListForAuthenticatedUserResponseItem = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsListForAuthenticatedUserResponseItemOwner; - repositories: Array< - MigrationsListForAuthenticatedUserResponseItemRepositoriesItem - >; - state: string; - updated_at: string; - url: string; - }; - type MigrationsGetStatusForOrgResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type MigrationsGetStatusForOrgResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsGetStatusForOrgResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsGetStatusForOrgResponseRepositoriesItemOwner; - permissions: MigrationsGetStatusForOrgResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type MigrationsGetStatusForOrgResponseOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type MigrationsGetStatusForOrgResponse = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsGetStatusForOrgResponseOwner; - repositories: Array; - state: string; - updated_at: string; - url: string; - }; - type MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemOwner; - permissions: MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type MigrationsGetStatusForAuthenticatedUserResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type MigrationsGetStatusForAuthenticatedUserResponse = { - created_at: string; - exclude_attachments: boolean; - guid: string; - id: number; - lock_repositories: boolean; - owner: MigrationsGetStatusForAuthenticatedUserResponseOwner; - repositories: Array< - MigrationsGetStatusForAuthenticatedUserResponseRepositoriesItem - >; - state: string; - updated_at: string; - url: string; - }; - type MigrationsGetLargeFilesResponseItem = { - oid: string; - path: string; - ref_name: string; - size: number; - }; - type MigrationsGetImportProgressResponse = { - authors_count: number; - authors_url: string; - has_large_files: boolean; - html_url: string; - large_files_count: number; - large_files_size: number; - repository_url: string; - status: string; - status_text: string; - url: string; - use_lfs: string; - vcs: string; - vcs_url: string; - }; - type MigrationsGetCommitAuthorsResponseItem = { - email: string; - id: number; - import_url: string; - name: string; - remote_id: string; - remote_name: string; - url: string; - }; - type MetaGetResponseSshKeyFingerprints = { - MD5_DSA: string; - MD5_RSA: string; - SHA256_DSA: string; - SHA256_RSA: string; - }; - type MetaGetResponse = { - api: Array; - git: Array; - hooks: Array; - importer: Array; - pages: Array; - ssh_key_fingerprints: MetaGetResponseSshKeyFingerprints; - verifiable_password_authentication: boolean; - web: Array; - }; - type LicensesListCommonlyUsedResponseItem = { - key: string; - name: string; - node_id?: string; - spdx_id: string; - url: string; - }; - type LicensesListResponseItem = { - key: string; - name: string; - node_id?: string; - spdx_id: string; - url: string; - }; - type LicensesGetForRepoResponseLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type LicensesGetForRepoResponseLinks = { - git: string; - html: string; - self: string; - }; - type LicensesGetForRepoResponse = { - _links: LicensesGetForRepoResponseLinks; - content: string; - download_url: string; - encoding: string; - git_url: string; - html_url: string; - license: LicensesGetForRepoResponseLicense; - name: string; - path: string; - sha: string; - size: number; - type: string; - url: string; - }; - type LicensesGetResponse = { - body: string; - conditions: Array; - description: string; - featured: boolean; - html_url: string; - implementation: string; - key: string; - limitations: Array; - name: string; - node_id: string; - permissions: Array; - spdx_id: string; - url: string; - }; - type IssuesUpdateMilestoneResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesUpdateMilestoneResponse = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesUpdateMilestoneResponseCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesUpdateLabelResponse = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesUpdateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesUpdateCommentResponse = { - body: string; - created_at: string; - html_url: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: IssuesUpdateCommentResponseUser; - }; - type IssuesUpdateResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesUpdateResponsePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesUpdateResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesUpdateResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesUpdateResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesUpdateResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesUpdateResponseClosedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesUpdateResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesUpdateResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesUpdateResponse = { - active_lock_reason: string; - assignee: IssuesUpdateResponseAssignee; - assignees: Array; - body: string; - closed_at: null; - closed_by: IssuesUpdateResponseClosedBy; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesUpdateResponseMilestone; - node_id: string; - number: number; - pull_request: IssuesUpdateResponsePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesUpdateResponseUser; - }; - type IssuesReplaceLabelsResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesRemoveLabelResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesRemoveAssigneesResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesRemoveAssigneesResponsePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesRemoveAssigneesResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesRemoveAssigneesResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesRemoveAssigneesResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesRemoveAssigneesResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesRemoveAssigneesResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesRemoveAssigneesResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesRemoveAssigneesResponse = { - active_lock_reason: string; - assignee: IssuesRemoveAssigneesResponseAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesRemoveAssigneesResponseMilestone; - node_id: string; - number: number; - pull_request: IssuesRemoveAssigneesResponsePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesRemoveAssigneesResponseUser; - }; - type IssuesListMilestonesForRepoResponseItemCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListMilestonesForRepoResponseItem = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListMilestonesForRepoResponseItemCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesListLabelsOnIssueResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesListLabelsForRepoResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesListLabelsForMilestoneResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesListForRepoResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForRepoResponseItemPullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesListForRepoResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForRepoResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListForRepoResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesListForRepoResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesListForRepoResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForRepoResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForRepoResponseItem = { - active_lock_reason: string; - assignee: IssuesListForRepoResponseItemAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesListForRepoResponseItemMilestone; - node_id: string; - number: number; - pull_request: IssuesListForRepoResponseItemPullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesListForRepoResponseItemUser; - }; - type IssuesListForOrgResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForOrgResponseItemRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type IssuesListForOrgResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForOrgResponseItemRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: IssuesListForOrgResponseItemRepositoryOwner; - permissions: IssuesListForOrgResponseItemRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type IssuesListForOrgResponseItemPullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesListForOrgResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForOrgResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListForOrgResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesListForOrgResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesListForOrgResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForOrgResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForOrgResponseItem = { - active_lock_reason: string; - assignee: IssuesListForOrgResponseItemAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesListForOrgResponseItemMilestone; - node_id: string; - number: number; - pull_request: IssuesListForOrgResponseItemPullRequest; - repository: IssuesListForOrgResponseItemRepository; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesListForOrgResponseItemUser; - }; - type IssuesListForAuthenticatedUserResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForAuthenticatedUserResponseItemRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type IssuesListForAuthenticatedUserResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForAuthenticatedUserResponseItemRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: IssuesListForAuthenticatedUserResponseItemRepositoryOwner; - permissions: IssuesListForAuthenticatedUserResponseItemRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type IssuesListForAuthenticatedUserResponseItemPullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesListForAuthenticatedUserResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForAuthenticatedUserResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListForAuthenticatedUserResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesListForAuthenticatedUserResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesListForAuthenticatedUserResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForAuthenticatedUserResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListForAuthenticatedUserResponseItem = { - active_lock_reason: string; - assignee: IssuesListForAuthenticatedUserResponseItemAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesListForAuthenticatedUserResponseItemMilestone; - node_id: string; - number: number; - pull_request: IssuesListForAuthenticatedUserResponseItemPullRequest; - repository: IssuesListForAuthenticatedUserResponseItemRepository; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesListForAuthenticatedUserResponseItemUser; - }; - type IssuesListEventsForTimelineResponseItemActor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListEventsForTimelineResponseItem = { - actor: IssuesListEventsForTimelineResponseItemActor; - commit_id: string; - commit_url: string; - created_at: string; - event: string; - id: number; - node_id: string; - url: string; - }; - type IssuesListEventsForRepoResponseItemIssueUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListEventsForRepoResponseItemIssuePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesListEventsForRepoResponseItemIssueMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListEventsForRepoResponseItemIssueMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListEventsForRepoResponseItemIssueMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesListEventsForRepoResponseItemIssueLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesListEventsForRepoResponseItemIssueAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListEventsForRepoResponseItemIssueAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListEventsForRepoResponseItemIssue = { - active_lock_reason: string; - assignee: IssuesListEventsForRepoResponseItemIssueAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesListEventsForRepoResponseItemIssueMilestone; - node_id: string; - number: number; - pull_request: IssuesListEventsForRepoResponseItemIssuePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesListEventsForRepoResponseItemIssueUser; - }; - type IssuesListEventsForRepoResponseItemActor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListEventsForRepoResponseItem = { - actor: IssuesListEventsForRepoResponseItemActor; - commit_id: string; - commit_url: string; - created_at: string; - event: string; - id: number; - issue: IssuesListEventsForRepoResponseItemIssue; - node_id: string; - url: string; - }; - type IssuesListEventsResponseItemActor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListEventsResponseItem = { - actor: IssuesListEventsResponseItemActor; - commit_id: string; - commit_url: string; - created_at: string; - event: string; - id: number; - node_id: string; - url: string; - }; - type IssuesListCommentsForRepoResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListCommentsForRepoResponseItem = { - body: string; - created_at: string; - html_url: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: IssuesListCommentsForRepoResponseItemUser; - }; - type IssuesListCommentsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListCommentsResponseItem = { - body: string; - created_at: string; - html_url: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: IssuesListCommentsResponseItemUser; - }; - type IssuesListAssigneesResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListResponseItemRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type IssuesListResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListResponseItemRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: IssuesListResponseItemRepositoryOwner; - permissions: IssuesListResponseItemRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type IssuesListResponseItemPullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesListResponseItemMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListResponseItemMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesListResponseItemMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesListResponseItemLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesListResponseItemAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListResponseItemAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesListResponseItem = { - active_lock_reason: string; - assignee: IssuesListResponseItemAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesListResponseItemMilestone; - node_id: string; - number: number; - pull_request: IssuesListResponseItemPullRequest; - repository: IssuesListResponseItemRepository; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesListResponseItemUser; - }; - type IssuesGetMilestoneResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetMilestoneResponse = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesGetMilestoneResponseCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesGetLabelResponse = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesGetEventResponseIssueUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetEventResponseIssuePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesGetEventResponseIssueMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetEventResponseIssueMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesGetEventResponseIssueMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesGetEventResponseIssueLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesGetEventResponseIssueAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetEventResponseIssueAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetEventResponseIssue = { - active_lock_reason: string; - assignee: IssuesGetEventResponseIssueAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesGetEventResponseIssueMilestone; - node_id: string; - number: number; - pull_request: IssuesGetEventResponseIssuePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesGetEventResponseIssueUser; - }; - type IssuesGetEventResponseActor = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetEventResponse = { - actor: IssuesGetEventResponseActor; - commit_id: string; - commit_url: string; - created_at: string; - event: string; - id: number; - issue: IssuesGetEventResponseIssue; - node_id: string; - url: string; - }; - type IssuesGetCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetCommentResponse = { - body: string; - created_at: string; - html_url: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: IssuesGetCommentResponseUser; - }; - type IssuesGetResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetResponsePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesGetResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesGetResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesGetResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesGetResponseClosedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesGetResponse = { - active_lock_reason: string; - assignee: IssuesGetResponseAssignee; - assignees: Array; - body: string; - closed_at: null; - closed_by: IssuesGetResponseClosedBy; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesGetResponseMilestone; - node_id: string; - number: number; - pull_request: IssuesGetResponsePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesGetResponseUser; - }; - type IssuesCreateMilestoneResponseCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesCreateMilestoneResponse = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesCreateMilestoneResponseCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesCreateLabelResponse = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesCreateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesCreateCommentResponse = { - body: string; - created_at: string; - html_url: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: IssuesCreateCommentResponseUser; - }; - type IssuesCreateResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesCreateResponsePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesCreateResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesCreateResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesCreateResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesCreateResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesCreateResponseClosedBy = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesCreateResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesCreateResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesCreateResponse = { - active_lock_reason: string; - assignee: IssuesCreateResponseAssignee; - assignees: Array; - body: string; - closed_at: null; - closed_by: IssuesCreateResponseClosedBy; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesCreateResponseMilestone; - node_id: string; - number: number; - pull_request: IssuesCreateResponsePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesCreateResponseUser; - }; - type IssuesAddLabelsResponseItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesAddAssigneesResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesAddAssigneesResponsePullRequest = { - diff_url: string; - html_url: string; - patch_url: string; - url: string; - }; - type IssuesAddAssigneesResponseMilestoneCreator = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesAddAssigneesResponseMilestone = { - closed_at: string; - closed_issues: number; - created_at: string; - creator: IssuesAddAssigneesResponseMilestoneCreator; - description: string; - due_on: string; - html_url: string; - id: number; - labels_url: string; - node_id: string; - number: number; - open_issues: number; - state: string; - title: string; - updated_at: string; - url: string; - }; - type IssuesAddAssigneesResponseLabelsItem = { - color: string; - default: boolean; - description: string; - id: number; - name: string; - node_id: string; - url: string; - }; - type IssuesAddAssigneesResponseAssigneesItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesAddAssigneesResponseAssignee = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type IssuesAddAssigneesResponse = { - active_lock_reason: string; - assignee: IssuesAddAssigneesResponseAssignee; - assignees: Array; - body: string; - closed_at: null; - comments: number; - comments_url: string; - created_at: string; - events_url: string; - html_url: string; - id: number; - labels: Array; - labels_url: string; - locked: boolean; - milestone: IssuesAddAssigneesResponseMilestone; - node_id: string; - number: number; - pull_request: IssuesAddAssigneesResponsePullRequest; - repository_url: string; - state: string; - title: string; - updated_at: string; - url: string; - user: IssuesAddAssigneesResponseUser; - }; - type InteractionsGetRestrictionsForRepoResponse = { - expires_at: string; - limit: string; - origin: string; - }; - type InteractionsGetRestrictionsForOrgResponse = { - expires_at: string; - limit: string; - origin: string; - }; - type InteractionsAddOrUpdateRestrictionsForRepoResponse = { - expires_at: string; - limit: string; - origin: string; - }; - type InteractionsAddOrUpdateRestrictionsForOrgResponse = { - expires_at: string; - limit: string; - origin: string; - }; - type GitignoreGetTemplateResponse = { name: string; source: string }; - type GitUpdateRefResponseObject = { sha: string; type: string; url: string }; - type GitUpdateRefResponse = { - node_id: string; - object: GitUpdateRefResponseObject; - ref: string; - url: string; - }; - type GitListMatchingRefsResponseItemObject = { - sha: string; - type: string; - url: string; - }; - type GitListMatchingRefsResponseItem = { - node_id: string; - object: GitListMatchingRefsResponseItemObject; - ref: string; - url: string; - }; - type GitGetTreeResponseTreeItem = { - mode: string; - path: string; - sha: string; - size?: number; - type: string; - url: string; - }; - type GitGetTreeResponse = { - sha: string; - tree: Array; - truncated: boolean; - url: string; - }; - type GitGetTagResponseVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type GitGetTagResponseTagger = { date: string; email: string; name: string }; - type GitGetTagResponseObject = { sha: string; type: string; url: string }; - type GitGetTagResponse = { - message: string; - node_id: string; - object: GitGetTagResponseObject; - sha: string; - tag: string; - tagger: GitGetTagResponseTagger; - url: string; - verification: GitGetTagResponseVerification; - }; - type GitGetRefResponseObject = { sha: string; type: string; url: string }; - type GitGetRefResponse = { - node_id: string; - object: GitGetRefResponseObject; - ref: string; - url: string; - }; - type GitGetCommitResponseVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type GitGetCommitResponseTree = { sha: string; url: string }; - type GitGetCommitResponseParentsItem = { sha: string; url: string }; - type GitGetCommitResponseCommitter = { - date: string; - email: string; - name: string; - }; - type GitGetCommitResponseAuthor = { - date: string; - email: string; - name: string; - }; - type GitGetCommitResponse = { - author: GitGetCommitResponseAuthor; - committer: GitGetCommitResponseCommitter; - message: string; - parents: Array; - sha: string; - tree: GitGetCommitResponseTree; - url: string; - verification: GitGetCommitResponseVerification; - }; - type GitGetBlobResponse = { - content: string; - encoding: string; - sha: string; - size: number; - url: string; - }; - type GitCreateTreeResponseTreeItem = { - mode: string; - path: string; - sha: string; - size: number; - type: string; - url: string; - }; - type GitCreateTreeResponse = { - sha: string; - tree: Array; - url: string; - }; - type GitCreateTagResponseVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type GitCreateTagResponseTagger = { - date: string; - email: string; - name: string; - }; - type GitCreateTagResponseObject = { sha: string; type: string; url: string }; - type GitCreateTagResponse = { - message: string; - node_id: string; - object: GitCreateTagResponseObject; - sha: string; - tag: string; - tagger: GitCreateTagResponseTagger; - url: string; - verification: GitCreateTagResponseVerification; - }; - type GitCreateRefResponseObject = { sha: string; type: string; url: string }; - type GitCreateRefResponse = { - node_id: string; - object: GitCreateRefResponseObject; - ref: string; - url: string; - }; - type GitCreateCommitResponseVerification = { - payload: null; - reason: string; - signature: null; - verified: boolean; - }; - type GitCreateCommitResponseTree = { sha: string; url: string }; - type GitCreateCommitResponseParentsItem = { sha: string; url: string }; - type GitCreateCommitResponseCommitter = { - date: string; - email: string; - name: string; - }; - type GitCreateCommitResponseAuthor = { - date: string; - email: string; - name: string; - }; - type GitCreateCommitResponse = { - author: GitCreateCommitResponseAuthor; - committer: GitCreateCommitResponseCommitter; - message: string; - node_id: string; - parents: Array; - sha: string; - tree: GitCreateCommitResponseTree; - url: string; - verification: GitCreateCommitResponseVerification; - }; - type GitCreateBlobResponse = { sha: string; url: string }; - type GistsUpdateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsUpdateCommentResponse = { - body: string; - created_at: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: GistsUpdateCommentResponseUser; - }; - type GistsUpdateResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsUpdateResponseHistoryItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsUpdateResponseHistoryItemChangeStatus = { - additions: number; - deletions: number; - total: number; - }; - type GistsUpdateResponseHistoryItem = { - change_status: GistsUpdateResponseHistoryItemChangeStatus; - committed_at: string; - url: string; - user: GistsUpdateResponseHistoryItemUser; - version: string; - }; - type GistsUpdateResponseForksItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsUpdateResponseForksItem = { - created_at: string; - id: string; - updated_at: string; - url: string; - user: GistsUpdateResponseForksItemUser; - }; - type GistsUpdateResponseFilesNewFileTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsUpdateResponseFilesHelloWorldRb = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsUpdateResponseFilesHelloWorldPy = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsUpdateResponseFilesHelloWorldMd = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsUpdateResponseFiles = { - "hello_world.md": GistsUpdateResponseFilesHelloWorldMd; - "hello_world.py": GistsUpdateResponseFilesHelloWorldPy; - "hello_world.rb": GistsUpdateResponseFilesHelloWorldRb; - "new_file.txt": GistsUpdateResponseFilesNewFileTxt; - }; - type GistsUpdateResponse = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsUpdateResponseFiles; - forks: Array; - forks_url: string; - git_pull_url: string; - git_push_url: string; - history: Array; - html_url: string; - id: string; - node_id: string; - owner: GistsUpdateResponseOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; - }; - type GistsListStarredResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsListStarredResponseItemFilesHelloWorldRb = { - filename: string; - language: string; - raw_url: string; - size: number; - type: string; - }; - type GistsListStarredResponseItemFiles = { - "hello_world.rb": GistsListStarredResponseItemFilesHelloWorldRb; - }; - type GistsListStarredResponseItem = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsListStarredResponseItemFiles; - forks_url: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - id: string; - node_id: string; - owner: GistsListStarredResponseItemOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; - }; - type GistsListPublicForUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsListPublicForUserResponseItemFilesHelloWorldRb = { - filename: string; - language: string; - raw_url: string; - size: number; - type: string; - }; - type GistsListPublicForUserResponseItemFiles = { - "hello_world.rb": GistsListPublicForUserResponseItemFilesHelloWorldRb; - }; - type GistsListPublicForUserResponseItem = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsListPublicForUserResponseItemFiles; - forks_url: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - id: string; - node_id: string; - owner: GistsListPublicForUserResponseItemOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; - }; - type GistsListPublicResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsListPublicResponseItemFilesHelloWorldRb = { - filename: string; - language: string; - raw_url: string; - size: number; - type: string; - }; - type GistsListPublicResponseItemFiles = { - "hello_world.rb": GistsListPublicResponseItemFilesHelloWorldRb; - }; - type GistsListPublicResponseItem = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsListPublicResponseItemFiles; - forks_url: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - id: string; - node_id: string; - owner: GistsListPublicResponseItemOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; - }; - type GistsListForksResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsListForksResponseItem = { - created_at: string; - id: string; - updated_at: string; - url: string; - user: GistsListForksResponseItemUser; - }; - type GistsListCommitsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsListCommitsResponseItemChangeStatus = { - additions: number; - deletions: number; - total: number; - }; - type GistsListCommitsResponseItem = { - change_status: GistsListCommitsResponseItemChangeStatus; - committed_at: string; - url: string; - user: GistsListCommitsResponseItemUser; - version: string; - }; - type GistsListCommentsResponseItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsListCommentsResponseItem = { - body: string; - created_at: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: GistsListCommentsResponseItemUser; - }; - type GistsListResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsListResponseItemFilesHelloWorldRb = { - filename: string; - language: string; - raw_url: string; - size: number; - type: string; - }; - type GistsListResponseItemFiles = { - "hello_world.rb": GistsListResponseItemFilesHelloWorldRb; - }; - type GistsListResponseItem = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsListResponseItemFiles; - forks_url: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - id: string; - node_id: string; - owner: GistsListResponseItemOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; - }; - type GistsGetRevisionResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsGetRevisionResponseHistoryItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsGetRevisionResponseHistoryItemChangeStatus = { - additions: number; - deletions: number; - total: number; - }; - type GistsGetRevisionResponseHistoryItem = { - change_status: GistsGetRevisionResponseHistoryItemChangeStatus; - committed_at: string; - url: string; - user: GistsGetRevisionResponseHistoryItemUser; - version: string; - }; - type GistsGetRevisionResponseForksItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsGetRevisionResponseForksItem = { - created_at: string; - id: string; - updated_at: string; - url: string; - user: GistsGetRevisionResponseForksItemUser; - }; - type GistsGetRevisionResponseFilesHelloWorldRubyTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsGetRevisionResponseFilesHelloWorldPythonTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsGetRevisionResponseFilesHelloWorldRb = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsGetRevisionResponseFilesHelloWorldPy = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsGetRevisionResponseFiles = { - "hello_world.py": GistsGetRevisionResponseFilesHelloWorldPy; - "hello_world.rb": GistsGetRevisionResponseFilesHelloWorldRb; - "hello_world_python.txt": GistsGetRevisionResponseFilesHelloWorldPythonTxt; - "hello_world_ruby.txt": GistsGetRevisionResponseFilesHelloWorldRubyTxt; - }; - type GistsGetRevisionResponse = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsGetRevisionResponseFiles; - forks: Array; - forks_url: string; - git_pull_url: string; - git_push_url: string; - history: Array; - html_url: string; - id: string; - node_id: string; - owner: GistsGetRevisionResponseOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; - }; - type GistsGetCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsGetCommentResponse = { - body: string; - created_at: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: GistsGetCommentResponseUser; - }; - type GistsGetResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsGetResponseHistoryItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsGetResponseHistoryItemChangeStatus = { - additions: number; - deletions: number; - total: number; - }; - type GistsGetResponseHistoryItem = { - change_status: GistsGetResponseHistoryItemChangeStatus; - committed_at: string; - url: string; - user: GistsGetResponseHistoryItemUser; - version: string; - }; - type GistsGetResponseForksItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsGetResponseForksItem = { - created_at: string; - id: string; - updated_at: string; - url: string; - user: GistsGetResponseForksItemUser; - }; - type GistsGetResponseFilesHelloWorldRubyTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsGetResponseFilesHelloWorldPythonTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsGetResponseFilesHelloWorldRb = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsGetResponseFilesHelloWorldPy = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsGetResponseFiles = { - "hello_world.py": GistsGetResponseFilesHelloWorldPy; - "hello_world.rb": GistsGetResponseFilesHelloWorldRb; - "hello_world_python.txt": GistsGetResponseFilesHelloWorldPythonTxt; - "hello_world_ruby.txt": GistsGetResponseFilesHelloWorldRubyTxt; - }; - type GistsGetResponse = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsGetResponseFiles; - forks: Array; - forks_url: string; - git_pull_url: string; - git_push_url: string; - history: Array; - html_url: string; - id: string; - node_id: string; - owner: GistsGetResponseOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; - }; - type GistsForkResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsForkResponseFilesHelloWorldRb = { - filename: string; - language: string; - raw_url: string; - size: number; - type: string; - }; - type GistsForkResponseFiles = { - "hello_world.rb": GistsForkResponseFilesHelloWorldRb; - }; - type GistsForkResponse = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsForkResponseFiles; - forks_url: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - id: string; - node_id: string; - owner: GistsForkResponseOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; - }; - type GistsCreateCommentResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsCreateCommentResponse = { - body: string; - created_at: string; - id: number; - node_id: string; - updated_at: string; - url: string; - user: GistsCreateCommentResponseUser; - }; - type GistsCreateResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsCreateResponseHistoryItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsCreateResponseHistoryItemChangeStatus = { - additions: number; - deletions: number; - total: number; - }; - type GistsCreateResponseHistoryItem = { - change_status: GistsCreateResponseHistoryItemChangeStatus; - committed_at: string; - url: string; - user: GistsCreateResponseHistoryItemUser; - version: string; - }; - type GistsCreateResponseForksItemUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type GistsCreateResponseForksItem = { - created_at: string; - id: string; - updated_at: string; - url: string; - user: GistsCreateResponseForksItemUser; - }; - type GistsCreateResponseFilesHelloWorldRubyTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsCreateResponseFilesHelloWorldPythonTxt = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsCreateResponseFilesHelloWorldRb = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsCreateResponseFilesHelloWorldPy = { - content: string; - filename: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - type: string; - }; - type GistsCreateResponseFiles = { - "hello_world.py": GistsCreateResponseFilesHelloWorldPy; - "hello_world.rb": GistsCreateResponseFilesHelloWorldRb; - "hello_world_python.txt": GistsCreateResponseFilesHelloWorldPythonTxt; - "hello_world_ruby.txt": GistsCreateResponseFilesHelloWorldRubyTxt; - }; - type GistsCreateResponse = { - comments: number; - comments_url: string; - commits_url: string; - created_at: string; - description: string; - files: GistsCreateResponseFiles; - forks: Array; - forks_url: string; - git_pull_url: string; - git_push_url: string; - history: Array; - html_url: string; - id: string; - node_id: string; - owner: GistsCreateResponseOwner; - public: boolean; - truncated: boolean; - updated_at: string; - url: string; - user: null; - }; - type CodesOfConductListConductCodesResponseItem = { - key: string; - name: string; - url: string; - }; - type CodesOfConductGetForRepoResponse = { - body: string; - key: string; - name: string; - url: string; - }; - type CodesOfConductGetConductCodeResponse = { - body: string; - key: string; - name: string; - url: string; - }; - type ChecksUpdateResponsePullRequestsItemHeadRepo = { - id: number; - name: string; - url: string; - }; - type ChecksUpdateResponsePullRequestsItemHead = { - ref: string; - repo: ChecksUpdateResponsePullRequestsItemHeadRepo; - sha: string; - }; - type ChecksUpdateResponsePullRequestsItemBaseRepo = { - id: number; - name: string; - url: string; - }; - type ChecksUpdateResponsePullRequestsItemBase = { - ref: string; - repo: ChecksUpdateResponsePullRequestsItemBaseRepo; - sha: string; - }; - type ChecksUpdateResponsePullRequestsItem = { - base: ChecksUpdateResponsePullRequestsItemBase; - head: ChecksUpdateResponsePullRequestsItemHead; - id: number; - number: number; - url: string; - }; - type ChecksUpdateResponseOutput = { - annotations_count: number; - annotations_url: string; - summary: string; - text: string; - title: string; - }; - type ChecksUpdateResponseCheckSuite = { id: number }; - type ChecksUpdateResponseAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ChecksUpdateResponseAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ChecksUpdateResponseApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksUpdateResponseAppOwner; - permissions: ChecksUpdateResponseAppPermissions; - slug: string; - updated_at: string; - }; - type ChecksUpdateResponse = { - app: ChecksUpdateResponseApp; - check_suite: ChecksUpdateResponseCheckSuite; - completed_at: string; - conclusion: string; - details_url: string; - external_id: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - output: ChecksUpdateResponseOutput; - pull_requests: Array; - started_at: string; - status: string; - url: string; - }; - type ChecksSetSuitesPreferencesResponseRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ChecksSetSuitesPreferencesResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ChecksSetSuitesPreferencesResponseRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ChecksSetSuitesPreferencesResponseRepositoryOwner; - permissions: ChecksSetSuitesPreferencesResponseRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ChecksSetSuitesPreferencesResponsePreferencesAutoTriggerChecksItem = { - app_id: number; - setting: boolean; - }; - type ChecksSetSuitesPreferencesResponsePreferences = { - auto_trigger_checks: Array< - ChecksSetSuitesPreferencesResponsePreferencesAutoTriggerChecksItem - >; - }; - type ChecksSetSuitesPreferencesResponse = { - preferences: ChecksSetSuitesPreferencesResponsePreferences; - repository: ChecksSetSuitesPreferencesResponseRepository; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ChecksListSuitesForRefResponseCheckSuitesItemRepositoryOwner; - permissions: ChecksListSuitesForRefResponseCheckSuitesItemRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ChecksListSuitesForRefResponseCheckSuitesItemApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksListSuitesForRefResponseCheckSuitesItemAppOwner; - permissions: ChecksListSuitesForRefResponseCheckSuitesItemAppPermissions; - slug: string; - updated_at: string; - }; - type ChecksListSuitesForRefResponseCheckSuitesItem = { - after: string; - app: ChecksListSuitesForRefResponseCheckSuitesItemApp; - before: string; - conclusion: string; - head_branch: string; - head_sha: string; - id: number; - node_id: string; - pull_requests: Array; - repository: ChecksListSuitesForRefResponseCheckSuitesItemRepository; - status: string; - url: string; - }; - type ChecksListSuitesForRefResponse = { - check_suites: Array; - total_count: number; - }; - type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - name: string; - url: string; - }; - type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHead = { - ref: string; - repo: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHeadRepo; - sha: string; - }; - type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - name: string; - url: string; - }; - type ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBase = { - ref: string; - repo: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBaseRepo; - sha: string; - }; - type ChecksListForSuiteResponseCheckRunsItemPullRequestsItem = { - base: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemBase; - head: ChecksListForSuiteResponseCheckRunsItemPullRequestsItemHead; - id: number; - number: number; - url: string; - }; - type ChecksListForSuiteResponseCheckRunsItemOutput = { - annotations_count: number; - annotations_url: string; - summary: string; - text: string; - title: string; - }; - type ChecksListForSuiteResponseCheckRunsItemCheckSuite = { id: number }; - type ChecksListForSuiteResponseCheckRunsItemAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ChecksListForSuiteResponseCheckRunsItemAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ChecksListForSuiteResponseCheckRunsItemApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksListForSuiteResponseCheckRunsItemAppOwner; - permissions: ChecksListForSuiteResponseCheckRunsItemAppPermissions; - slug: string; - updated_at: string; - }; - type ChecksListForSuiteResponseCheckRunsItem = { - app: ChecksListForSuiteResponseCheckRunsItemApp; - check_suite: ChecksListForSuiteResponseCheckRunsItemCheckSuite; - completed_at: string; - conclusion: string; - details_url: string; - external_id: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - output: ChecksListForSuiteResponseCheckRunsItemOutput; - pull_requests: Array< - ChecksListForSuiteResponseCheckRunsItemPullRequestsItem - >; - started_at: string; - status: string; - url: string; - }; - type ChecksListForSuiteResponse = { - check_runs: Array; - total_count: number; - }; - type ChecksListForRefResponseCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - name: string; - url: string; - }; - type ChecksListForRefResponseCheckRunsItemPullRequestsItemHead = { - ref: string; - repo: ChecksListForRefResponseCheckRunsItemPullRequestsItemHeadRepo; - sha: string; - }; - type ChecksListForRefResponseCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - name: string; - url: string; - }; - type ChecksListForRefResponseCheckRunsItemPullRequestsItemBase = { - ref: string; - repo: ChecksListForRefResponseCheckRunsItemPullRequestsItemBaseRepo; - sha: string; - }; - type ChecksListForRefResponseCheckRunsItemPullRequestsItem = { - base: ChecksListForRefResponseCheckRunsItemPullRequestsItemBase; - head: ChecksListForRefResponseCheckRunsItemPullRequestsItemHead; - id: number; - number: number; - url: string; - }; - type ChecksListForRefResponseCheckRunsItemOutput = { - annotations_count: number; - annotations_url: string; - summary: string; - text: string; - title: string; - }; - type ChecksListForRefResponseCheckRunsItemCheckSuite = { id: number }; - type ChecksListForRefResponseCheckRunsItemAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ChecksListForRefResponseCheckRunsItemAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ChecksListForRefResponseCheckRunsItemApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksListForRefResponseCheckRunsItemAppOwner; - permissions: ChecksListForRefResponseCheckRunsItemAppPermissions; - slug: string; - updated_at: string; - }; - type ChecksListForRefResponseCheckRunsItem = { - app: ChecksListForRefResponseCheckRunsItemApp; - check_suite: ChecksListForRefResponseCheckRunsItemCheckSuite; - completed_at: string; - conclusion: string; - details_url: string; - external_id: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - output: ChecksListForRefResponseCheckRunsItemOutput; - pull_requests: Array; - started_at: string; - status: string; - url: string; - }; - type ChecksListForRefResponse = { - check_runs: Array; - total_count: number; - }; - type ChecksListAnnotationsResponseItem = { - annotation_level: string; - end_column: number; - end_line: number; - message: string; - path: string; - raw_details: string; - start_column: number; - start_line: number; - title: string; - }; - type ChecksGetSuiteResponseRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ChecksGetSuiteResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ChecksGetSuiteResponseRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ChecksGetSuiteResponseRepositoryOwner; - permissions: ChecksGetSuiteResponseRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ChecksGetSuiteResponseAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ChecksGetSuiteResponseAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ChecksGetSuiteResponseApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksGetSuiteResponseAppOwner; - permissions: ChecksGetSuiteResponseAppPermissions; - slug: string; - updated_at: string; - }; - type ChecksGetSuiteResponse = { - after: string; - app: ChecksGetSuiteResponseApp; - before: string; - conclusion: string; - head_branch: string; - head_sha: string; - id: number; - node_id: string; - pull_requests: Array; - repository: ChecksGetSuiteResponseRepository; - status: string; - url: string; - }; - type ChecksGetResponsePullRequestsItemHeadRepo = { - id: number; - name: string; - url: string; - }; - type ChecksGetResponsePullRequestsItemHead = { - ref: string; - repo: ChecksGetResponsePullRequestsItemHeadRepo; - sha: string; - }; - type ChecksGetResponsePullRequestsItemBaseRepo = { - id: number; - name: string; - url: string; - }; - type ChecksGetResponsePullRequestsItemBase = { - ref: string; - repo: ChecksGetResponsePullRequestsItemBaseRepo; - sha: string; - }; - type ChecksGetResponsePullRequestsItem = { - base: ChecksGetResponsePullRequestsItemBase; - head: ChecksGetResponsePullRequestsItemHead; - id: number; - number: number; - url: string; - }; - type ChecksGetResponseOutput = { - annotations_count: number; - annotations_url: string; - summary: string; - text: string; - title: string; - }; - type ChecksGetResponseCheckSuite = { id: number }; - type ChecksGetResponseAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ChecksGetResponseAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ChecksGetResponseApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksGetResponseAppOwner; - permissions: ChecksGetResponseAppPermissions; - slug: string; - updated_at: string; - }; - type ChecksGetResponse = { - app: ChecksGetResponseApp; - check_suite: ChecksGetResponseCheckSuite; - completed_at: string; - conclusion: string; - details_url: string; - external_id: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - output: ChecksGetResponseOutput; - pull_requests: Array; - started_at: string; - status: string; - url: string; - }; - type ChecksCreateSuiteResponseRepositoryPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ChecksCreateSuiteResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ChecksCreateSuiteResponseRepository = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ChecksCreateSuiteResponseRepositoryOwner; - permissions: ChecksCreateSuiteResponseRepositoryPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ChecksCreateSuiteResponseAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ChecksCreateSuiteResponseAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ChecksCreateSuiteResponseApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksCreateSuiteResponseAppOwner; - permissions: ChecksCreateSuiteResponseAppPermissions; - slug: string; - updated_at: string; - }; - type ChecksCreateSuiteResponse = { - after: string; - app: ChecksCreateSuiteResponseApp; - before: string; - conclusion: string; - head_branch: string; - head_sha: string; - id: number; - node_id: string; - pull_requests: Array; - repository: ChecksCreateSuiteResponseRepository; - status: string; - url: string; - }; - type ChecksCreateResponsePullRequestsItemHeadRepo = { - id: number; - name: string; - url: string; - }; - type ChecksCreateResponsePullRequestsItemHead = { - ref: string; - repo: ChecksCreateResponsePullRequestsItemHeadRepo; - sha: string; - }; - type ChecksCreateResponsePullRequestsItemBaseRepo = { - id: number; - name: string; - url: string; - }; - type ChecksCreateResponsePullRequestsItemBase = { - ref: string; - repo: ChecksCreateResponsePullRequestsItemBaseRepo; - sha: string; - }; - type ChecksCreateResponsePullRequestsItem = { - base: ChecksCreateResponsePullRequestsItemBase; - head: ChecksCreateResponsePullRequestsItemHead; - id: number; - number: number; - url: string; - }; - type ChecksCreateResponseOutput = { - summary: string; - text: string; - title: string; - annotations_count?: number; - annotations_url?: string; - }; - type ChecksCreateResponseCheckSuite = { id: number }; - type ChecksCreateResponseAppPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type ChecksCreateResponseAppOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type ChecksCreateResponseApp = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: ChecksCreateResponseAppOwner; - permissions: ChecksCreateResponseAppPermissions; - slug: string; - updated_at: string; - }; - type ChecksCreateResponse = { - app: ChecksCreateResponseApp; - check_suite: ChecksCreateResponseCheckSuite; - completed_at: null | string; - conclusion: null | string; - details_url: string; - external_id: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - output: ChecksCreateResponseOutput; - pull_requests: Array; - started_at: string; - status: string; - url: string; - }; - type AppsResetTokenResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsResetTokenResponseApp = { - client_id: string; - name: string; - url: string; - }; - type AppsResetTokenResponse = { - app: AppsResetTokenResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: AppsResetTokenResponseUser; - }; - type AppsResetAuthorizationResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsResetAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; - }; - type AppsResetAuthorizationResponse = { - app: AppsResetAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: AppsResetAuthorizationResponseUser; - }; - type AppsListReposResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsListReposResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: AppsListReposResponseRepositoriesItemOwner; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type AppsListReposResponse = { - repositories: Array; - total_count: number; - }; - type AppsListPlansStubbedResponseItem = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsListPlansResponseItem = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemPlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemAccount = { - email: null; - id: number; - login: string; - organization_billing_email: string; - type: string; - url: string; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItem = { - account: AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemAccount; - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItemPlan; - unit_count: null; - updated_at: string; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserResponseItemPlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserResponseItemAccount = { - email: null; - id: number; - login: string; - organization_billing_email: string; - type: string; - url: string; - }; - type AppsListMarketplacePurchasesForAuthenticatedUserResponseItem = { - account: AppsListMarketplacePurchasesForAuthenticatedUserResponseItemAccount; - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsListMarketplacePurchasesForAuthenticatedUserResponseItemPlan; - unit_count: null; - updated_at: string; - }; - type AppsListInstallationsForAuthenticatedUserResponseInstallationsItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type AppsListInstallationsForAuthenticatedUserResponseInstallationsItemAccount = { - avatar_url: string; - description?: string; - events_url: string; - hooks_url?: string; - id: number; - issues_url?: string; - login: string; - members_url?: string; - node_id: string; - public_members_url?: string; - repos_url: string; - url: string; - followers_url?: string; - following_url?: string; - gists_url?: string; - gravatar_id?: string; - html_url?: string; - organizations_url?: string; - received_events_url?: string; - site_admin?: boolean; - starred_url?: string; - subscriptions_url?: string; - type?: string; - }; - type AppsListInstallationsForAuthenticatedUserResponseInstallationsItem = { - access_tokens_url: string; - account: AppsListInstallationsForAuthenticatedUserResponseInstallationsItemAccount; - app_id: number; - events: Array; - html_url: string; - id: number; - permissions: AppsListInstallationsForAuthenticatedUserResponseInstallationsItemPermissions; - repositories_url: string; - single_file_name: string; - target_id: number; - target_type: string; - }; - type AppsListInstallationsForAuthenticatedUserResponse = { - installations: Array< - AppsListInstallationsForAuthenticatedUserResponseInstallationsItem - >; - total_count: number; - }; - type AppsListInstallationsResponseItemPermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type AppsListInstallationsResponseItemAccount = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type AppsListInstallationsResponseItem = { - access_tokens_url: string; - account: AppsListInstallationsResponseItemAccount; - app_id: number; - events: Array; - html_url: string; - id: number; - permissions: AppsListInstallationsResponseItemPermissions; - repositories_url: string; - repository_selection: string; - single_file_name: string; - target_id: number; - target_type: string; - }; - type AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemOwner; - permissions: AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type AppsListInstallationReposForAuthenticatedUserResponse = { - repositories: Array< - AppsListInstallationReposForAuthenticatedUserResponseRepositoriesItem - >; - total_count: number; - }; - type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchasePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchase = { - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchasePlan; - unit_count: null; - updated_at: string; - }; - type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChangePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChange = { - effective_date: string; - id: number; - plan: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChangePlan; - unit_count: null; - }; - type AppsListAccountsUserOrOrgOnPlanStubbedResponseItem = { - email: null; - id: number; - login: string; - marketplace_pending_change: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsUserOrOrgOnPlanStubbedResponseItemMarketplacePurchase; - organization_billing_email: string; - type: string; - url: string; - }; - type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchasePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchase = { - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchasePlan; - unit_count: null; - updated_at: string; - }; - type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChangePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChange = { - effective_date: string; - id: number; - plan: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChangePlan; - unit_count: null; - }; - type AppsListAccountsUserOrOrgOnPlanResponseItem = { - email: null; - id: number; - login: string; - marketplace_pending_change: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsUserOrOrgOnPlanResponseItemMarketplacePurchase; - organization_billing_email: string; - type: string; - url: string; - }; - type AppsGetUserInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; - }; - type AppsGetUserInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsGetUserInstallationResponse = { - access_tokens_url: string; - account: AppsGetUserInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsGetUserInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; - }; - type AppsGetRepoInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; - }; - type AppsGetRepoInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsGetRepoInstallationResponse = { - access_tokens_url: string; - account: AppsGetRepoInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsGetRepoInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; - }; - type AppsGetOrgInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; - }; - type AppsGetOrgInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsGetOrgInstallationResponse = { - access_tokens_url: string; - account: AppsGetOrgInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsGetOrgInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; - }; - type AppsGetInstallationResponsePermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type AppsGetInstallationResponseAccount = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type AppsGetInstallationResponse = { - access_tokens_url: string; - account: AppsGetInstallationResponseAccount; - app_id: number; - events: Array; - html_url: string; - id: number; - permissions: AppsGetInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: string; - target_id: number; - target_type: string; - }; - type AppsGetBySlugResponsePermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type AppsGetBySlugResponseOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type AppsGetBySlugResponse = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: AppsGetBySlugResponseOwner; - permissions: AppsGetBySlugResponsePermissions; - slug: string; - updated_at: string; - }; - type AppsGetAuthenticatedResponsePermissions = { - contents: string; - issues: string; - metadata: string; - single_file: string; - }; - type AppsGetAuthenticatedResponseOwner = { - avatar_url: string; - description: string; - events_url: string; - hooks_url: string; - id: number; - issues_url: string; - login: string; - members_url: string; - node_id: string; - public_members_url: string; - repos_url: string; - url: string; - }; - type AppsGetAuthenticatedResponse = { - created_at: string; - description: string; - events: Array; - external_url: string; - html_url: string; - id: number; - installations_count: number; - name: string; - node_id: string; - owner: AppsGetAuthenticatedResponseOwner; - permissions: AppsGetAuthenticatedResponsePermissions; - slug: string; - updated_at: string; - }; - type AppsFindUserInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; - }; - type AppsFindUserInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsFindUserInstallationResponse = { - access_tokens_url: string; - account: AppsFindUserInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsFindUserInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; - }; - type AppsFindRepoInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; - }; - type AppsFindRepoInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsFindRepoInstallationResponse = { - access_tokens_url: string; - account: AppsFindRepoInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsFindRepoInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; - }; - type AppsFindOrgInstallationResponsePermissions = { - checks: string; - contents: string; - metadata: string; - }; - type AppsFindOrgInstallationResponseAccount = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsFindOrgInstallationResponse = { - access_tokens_url: string; - account: AppsFindOrgInstallationResponseAccount; - app_id: number; - created_at: string; - events: Array; - html_url: string; - id: number; - permissions: AppsFindOrgInstallationResponsePermissions; - repositories_url: string; - repository_selection: string; - single_file_name: null; - target_id: number; - target_type: string; - updated_at: string; - }; - type AppsCreateInstallationTokenResponseRepositoriesItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type AppsCreateInstallationTokenResponseRepositoriesItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsCreateInstallationTokenResponseRepositoriesItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: AppsCreateInstallationTokenResponseRepositoriesItemOwner; - permissions: AppsCreateInstallationTokenResponseRepositoriesItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type AppsCreateInstallationTokenResponsePermissions = { - contents: string; - issues: string; - }; - type AppsCreateInstallationTokenResponse = { - expires_at: string; - permissions: AppsCreateInstallationTokenResponsePermissions; - repositories: Array; - token: string; - }; - type AppsCreateFromManifestResponseOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsCreateFromManifestResponse = { - client_id: string; - client_secret: string; - created_at: string; - description: null; - external_url: string; - html_url: string; - id: number; - name: string; - node_id: string; - owner: AppsCreateFromManifestResponseOwner; - pem: string; - updated_at: string; - webhook_secret: string; - }; - type AppsCreateContentAttachmentResponse = { - body: string; - id: number; - title: string; - }; - type AppsCheckTokenResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsCheckTokenResponseApp = { - client_id: string; - name: string; - url: string; - }; - type AppsCheckTokenResponse = { - app: AppsCheckTokenResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: AppsCheckTokenResponseUser; - }; - type AppsCheckAuthorizationResponseUser = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type AppsCheckAuthorizationResponseApp = { - client_id: string; - name: string; - url: string; - }; - type AppsCheckAuthorizationResponse = { - app: AppsCheckAuthorizationResponseApp; - created_at: string; - fingerprint: string; - hashed_token: string; - id: number; - note: string; - note_url: string; - scopes: Array; - token: string; - token_last_eight: string; - updated_at: string; - url: string; - user: AppsCheckAuthorizationResponseUser; - }; - type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchasePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchase = { - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchasePlan; - unit_count: null; - updated_at: string; - }; - type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChangePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChange = { - effective_date: string; - id: number; - plan: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChangePlan; - unit_count: null; - }; - type AppsCheckAccountIsAssociatedWithAnyStubbedResponse = { - email: null; - id: number; - login: string; - marketplace_pending_change: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePendingChange; - marketplace_purchase: AppsCheckAccountIsAssociatedWithAnyStubbedResponseMarketplacePurchase; - organization_billing_email: string; - type: string; - url: string; - }; - type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchasePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchase = { - billing_cycle: string; - free_trial_ends_on: string; - next_billing_date: string; - on_free_trial: boolean; - plan: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchasePlan; - unit_count: null; - updated_at: string; - }; - type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChangePlan = { - accounts_url: string; - bullets: Array; - description: string; - has_free_trial: boolean; - id: number; - monthly_price_in_cents: number; - name: string; - number: number; - price_model: string; - state: string; - unit_name: null; - url: string; - yearly_price_in_cents: number; - }; - type AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChange = { - effective_date: string; - id: number; - plan: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChangePlan; - unit_count: null; - }; - type AppsCheckAccountIsAssociatedWithAnyResponse = { - email: null; - id: number; - login: string; - marketplace_pending_change: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePendingChange; - marketplace_purchase: AppsCheckAccountIsAssociatedWithAnyResponseMarketplacePurchase; - organization_billing_email: string; - type: string; - url: string; - }; - type ActivitySetThreadSubscriptionResponse = { - created_at: string; - ignored: boolean; - reason: null; - subscribed: boolean; - thread_url: string; - url: string; - }; - type ActivitySetRepoSubscriptionResponse = { - created_at: string; - ignored: boolean; - reason: null; - repository_url: string; - subscribed: boolean; - url: string; - }; - type ActivityListWatchersForRepoResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActivityListWatchedReposForAuthenticatedUserResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ActivityListWatchedReposForAuthenticatedUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActivityListWatchedReposForAuthenticatedUserResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type ActivityListWatchedReposForAuthenticatedUserResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: ActivityListWatchedReposForAuthenticatedUserResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ActivityListWatchedReposForAuthenticatedUserResponseItemOwner; - permissions: ActivityListWatchedReposForAuthenticatedUserResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ActivityListStargazersForRepoResponseItem = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActivityListReposWatchedByUserResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ActivityListReposWatchedByUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActivityListReposWatchedByUserResponseItemLicense = { - key: string; - name: string; - node_id: string; - spdx_id: string; - url: string; - }; - type ActivityListReposWatchedByUserResponseItem = { - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - license: ActivityListReposWatchedByUserResponseItemLicense; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ActivityListReposWatchedByUserResponseItemOwner; - permissions: ActivityListReposWatchedByUserResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ActivityListReposStarredByUserResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ActivityListReposStarredByUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActivityListReposStarredByUserResponseItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ActivityListReposStarredByUserResponseItemOwner; - permissions: ActivityListReposStarredByUserResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ActivityListReposStarredByAuthenticatedUserResponseItemPermissions = { - admin: boolean; - pull: boolean; - push: boolean; - }; - type ActivityListReposStarredByAuthenticatedUserResponseItemOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActivityListReposStarredByAuthenticatedUserResponseItem = { - allow_merge_commit: boolean; - allow_rebase_merge: boolean; - allow_squash_merge: boolean; - archive_url: string; - archived: boolean; - assignees_url: string; - blobs_url: string; - branches_url: string; - clone_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - created_at: string; - default_branch: string; - deployments_url: string; - description: string; - disabled: boolean; - downloads_url: string; - events_url: string; - fork: boolean; - forks_count: number; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - has_downloads: boolean; - has_issues: boolean; - has_pages: boolean; - has_projects: boolean; - has_wiki: boolean; - homepage: string; - hooks_url: string; - html_url: string; - id: number; - is_template: boolean; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - language: null; - languages_url: string; - merges_url: string; - milestones_url: string; - mirror_url: string; - name: string; - network_count: number; - node_id: string; - notifications_url: string; - open_issues_count: number; - owner: ActivityListReposStarredByAuthenticatedUserResponseItemOwner; - permissions: ActivityListReposStarredByAuthenticatedUserResponseItemPermissions; - private: boolean; - pulls_url: string; - pushed_at: string; - releases_url: string; - size: number; - ssh_url: string; - stargazers_count: number; - stargazers_url: string; - statuses_url: string; - subscribers_count: number; - subscribers_url: string; - subscription_url: string; - svn_url: string; - tags_url: string; - teams_url: string; - temp_clone_token: string; - template_repository: null; - topics: Array; - trees_url: string; - updated_at: string; - url: string; - visibility: string; - watchers_count: number; - }; - type ActivityListNotificationsForRepoResponseItemSubject = { - latest_comment_url: string; - title: string; - type: string; - url: string; - }; - type ActivityListNotificationsForRepoResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActivityListNotificationsForRepoResponseItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActivityListNotificationsForRepoResponseItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ActivityListNotificationsForRepoResponseItem = { - id: string; - last_read_at: string; - reason: string; - repository: ActivityListNotificationsForRepoResponseItemRepository; - subject: ActivityListNotificationsForRepoResponseItemSubject; - unread: boolean; - updated_at: string; - url: string; - }; - type ActivityListNotificationsResponseItemSubject = { - latest_comment_url: string; - title: string; - type: string; - url: string; - }; - type ActivityListNotificationsResponseItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActivityListNotificationsResponseItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActivityListNotificationsResponseItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ActivityListNotificationsResponseItem = { - id: string; - last_read_at: string; - reason: string; - repository: ActivityListNotificationsResponseItemRepository; - subject: ActivityListNotificationsResponseItemSubject; - unread: boolean; - updated_at: string; - url: string; - }; - type ActivityListFeedsResponseLinksUser = { href: string; type: string }; - type ActivityListFeedsResponseLinksTimeline = { href: string; type: string }; - type ActivityListFeedsResponseLinksSecurityAdvisories = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksCurrentUserPublic = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksCurrentUserOrganizationsItem = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksCurrentUserOrganization = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksCurrentUserActor = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinksCurrentUser = { - href: string; - type: string; - }; - type ActivityListFeedsResponseLinks = { - current_user: ActivityListFeedsResponseLinksCurrentUser; - current_user_actor: ActivityListFeedsResponseLinksCurrentUserActor; - current_user_organization: ActivityListFeedsResponseLinksCurrentUserOrganization; - current_user_organizations: Array< - ActivityListFeedsResponseLinksCurrentUserOrganizationsItem - >; - current_user_public: ActivityListFeedsResponseLinksCurrentUserPublic; - security_advisories: ActivityListFeedsResponseLinksSecurityAdvisories; - timeline: ActivityListFeedsResponseLinksTimeline; - user: ActivityListFeedsResponseLinksUser; - }; - type ActivityListFeedsResponse = { - _links: ActivityListFeedsResponseLinks; - current_user_actor_url: string; - current_user_organization_url: string; - current_user_organization_urls: Array; - current_user_public_url: string; - current_user_url: string; - security_advisories_url: string; - timeline_url: string; - user_url: string; - }; - type ActivityGetThreadSubscriptionResponse = { - created_at: string; - ignored: boolean; - reason: null; - subscribed: boolean; - thread_url: string; - url: string; - }; - type ActivityGetThreadResponseSubject = { - latest_comment_url: string; - title: string; - type: string; - url: string; - }; - type ActivityGetThreadResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActivityGetThreadResponseRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActivityGetThreadResponseRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ActivityGetThreadResponse = { - id: string; - last_read_at: string; - reason: string; - repository: ActivityGetThreadResponseRepository; - subject: ActivityGetThreadResponseSubject; - unread: boolean; - updated_at: string; - url: string; - }; - type ActivityGetRepoSubscriptionResponse = { - created_at: string; - ignored: boolean; - reason: null; - repository_url: string; - subscribed: boolean; - url: string; - }; - type ActionsListWorkflowRunsResponseWorkflowRunsItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActionsListWorkflowRunsResponseWorkflowRunsItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsListWorkflowRunsResponseWorkflowRunsItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ActionsListWorkflowRunsResponseWorkflowRunsItemHeadRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActionsListWorkflowRunsResponseWorkflowRunsItemHeadRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: null; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - hooks_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsListWorkflowRunsResponseWorkflowRunsItemHeadRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommitCommitter = { - email: string; - name: string; - }; - type ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommitAuthor = { - email: string; - name: string; - }; - type ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommit = { - author: ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommitAuthor; - committer: ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommitCommitter; - id: string; - message: string; - timestamp: string; - tree_id: string; - }; - type ActionsListWorkflowRunsResponseWorkflowRunsItem = { - artifacts_url: string; - cancel_url: string; - check_suite_id: number; - conclusion: null; - created_at: string; - event: string; - head_branch: string; - head_commit: ActionsListWorkflowRunsResponseWorkflowRunsItemHeadCommit; - head_repository: ActionsListWorkflowRunsResponseWorkflowRunsItemHeadRepository; - head_sha: string; - html_url: string; - id: number; - jobs_url: string; - logs_url: string; - node_id: string; - pull_requests: Array; - repository: ActionsListWorkflowRunsResponseWorkflowRunsItemRepository; - rerun_url: string; - run_number: number; - status: string; - updated_at: string; - url: string; - workflow_url: string; - }; - type ActionsListWorkflowRunsResponse = { - total_count: number; - workflow_runs: Array; - }; - type ActionsListWorkflowRunArtifactsResponseArtifactsItem = { - archive_download_url: string; - created_at: string; - expired: string; - expires_at: string; - id: number; - name: string; - node_id: string; - size_in_bytes: number; - }; - type ActionsListWorkflowRunArtifactsResponse = { - artifacts: Array; - total_count: number; - }; - type ActionsListSelfHostedRunnersForRepoResponseItemItem = { - id: number; - name: string; - os: string; - status: string; - }; - type ActionsListSecretsForRepoResponseSecretsItem = { - created_at: string; - name: string; - updated_at: string; - }; - type ActionsListSecretsForRepoResponse = { - secrets: Array; - total_count: number; - }; - type ActionsListRepoWorkflowsResponseWorkflowsItem = { - badge_url: string; - created_at: string; - html_url: string; - id: number; - name: string; - node_id: string; - path: string; - state: string; - updated_at: string; - url: string; - }; - type ActionsListRepoWorkflowsResponse = { - total_count: number; - workflows: Array; - }; - type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: null; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - hooks_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommitCommitter = { - email: string; - name: string; - }; - type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommitAuthor = { - email: string; - name: string; - }; - type ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommit = { - author: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommitAuthor; - committer: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommitCommitter; - id: string; - message: string; - timestamp: string; - tree_id: string; - }; - type ActionsListRepoWorkflowRunsResponseWorkflowRunsItem = { - artifacts_url: string; - cancel_url: string; - check_suite_id: number; - conclusion: null; - created_at: string; - event: string; - head_branch: string; - head_commit: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadCommit; - head_repository: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemHeadRepository; - head_sha: string; - html_url: string; - id: number; - jobs_url: string; - logs_url: string; - node_id: string; - pull_requests: Array; - repository: ActionsListRepoWorkflowRunsResponseWorkflowRunsItemRepository; - rerun_url: string; - run_number: number; - status: string; - updated_at: string; - url: string; - workflow_url: string; - }; - type ActionsListRepoWorkflowRunsResponse = { - total_count: number; - workflow_runs: Array; - }; - type ActionsListJobsForWorkflowRunResponseJobsItemStepsItem = { - completed_at: string; - conclusion: string; - name: string; - number: number; - started_at: string; - status: string; - }; - type ActionsListJobsForWorkflowRunResponseJobsItem = { - check_run_url: string; - completed_at: string; - conclusion: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - run_id: number; - run_url: string; - started_at: string; - status: string; - steps: Array; - url: string; - }; - type ActionsListJobsForWorkflowRunResponse = { - jobs: Array; - total_count: number; - }; - type ActionsListDownloadsForSelfHostedRunnerApplicationResponseItem = { - architecture: string; - download_url: string; - filename: string; - os: string; - }; - type ActionsGetWorkflowRunResponseRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActionsGetWorkflowRunResponseRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: string; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsGetWorkflowRunResponseRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ActionsGetWorkflowRunResponseHeadRepositoryOwner = { - avatar_url: string; - events_url: string; - followers_url: string; - following_url: string; - gists_url: string; - gravatar_id: string; - html_url: string; - id: number; - login: string; - node_id: string; - organizations_url: string; - received_events_url: string; - repos_url: string; - site_admin: boolean; - starred_url: string; - subscriptions_url: string; - type: string; - url: string; - }; - type ActionsGetWorkflowRunResponseHeadRepository = { - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - description: null; - downloads_url: string; - events_url: string; - fork: boolean; - forks_url: string; - full_name: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - hooks_url: string; - html_url: string; - id: number; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - name: string; - node_id: string; - notifications_url: string; - owner: ActionsGetWorkflowRunResponseHeadRepositoryOwner; - private: boolean; - pulls_url: string; - releases_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - url: string; - }; - type ActionsGetWorkflowRunResponseHeadCommitCommitter = { - email: string; - name: string; - }; - type ActionsGetWorkflowRunResponseHeadCommitAuthor = { - email: string; - name: string; - }; - type ActionsGetWorkflowRunResponseHeadCommit = { - author: ActionsGetWorkflowRunResponseHeadCommitAuthor; - committer: ActionsGetWorkflowRunResponseHeadCommitCommitter; - id: string; - message: string; - timestamp: string; - tree_id: string; - }; - type ActionsGetWorkflowRunResponse = { - artifacts_url: string; - cancel_url: string; - check_suite_id: number; - conclusion: null; - created_at: string; - event: string; - head_branch: string; - head_commit: ActionsGetWorkflowRunResponseHeadCommit; - head_repository: ActionsGetWorkflowRunResponseHeadRepository; - head_sha: string; - html_url: string; - id: number; - jobs_url: string; - logs_url: string; - node_id: string; - pull_requests: Array; - repository: ActionsGetWorkflowRunResponseRepository; - rerun_url: string; - run_number: number; - status: string; - updated_at: string; - url: string; - workflow_url: string; - }; - type ActionsGetWorkflowJobResponseStepsItem = { - completed_at: string; - conclusion: string; - name: string; - number: number; - started_at: string; - status: string; - }; - type ActionsGetWorkflowJobResponse = { - check_run_url: string; - completed_at: string; - conclusion: string; - head_sha: string; - html_url: string; - id: number; - name: string; - node_id: string; - run_id: number; - run_url: string; - started_at: string; - status: string; - steps: Array; - url: string; - }; - type ActionsGetWorkflowResponse = { - badge_url: string; - created_at: string; - html_url: string; - id: number; - name: string; - node_id: string; - path: string; - state: string; - updated_at: string; - url: string; - }; - type ActionsGetSelfHostedRunnerResponse = { - id: number; - name: string; - os: string; - status: string; - }; - type ActionsGetSecretResponse = { - created_at: string; - name: string; - updated_at: string; - }; - type ActionsGetPublicKeyResponse = { key: string; key_id: string }; - type ActionsGetArtifactResponse = { - archive_download_url: string; - created_at: string; - expired: string; - expires_at: string; - id: number; - name: string; - node_id: string; - size_in_bytes: number; - }; - type ActionsCreateRemoveTokenResponse = { expires_at: string; token: string }; - type ActionsCreateRegistrationTokenResponse = { - expires_at: string; - token: string; - }; - type ActionsListDownloadsForSelfHostedRunnerApplicationResponse = Array< - ActionsListDownloadsForSelfHostedRunnerApplicationResponseItem - >; - type ActionsListSelfHostedRunnersForRepoResponse = Array< - Array - >; - type ActivityListNotificationsResponse = Array< - ActivityListNotificationsResponseItem - >; - type ActivityListNotificationsForRepoResponse = Array< - ActivityListNotificationsForRepoResponseItem - >; - type ActivityListReposStarredByAuthenticatedUserResponse = Array< - ActivityListReposStarredByAuthenticatedUserResponseItem - >; - type ActivityListReposStarredByUserResponse = Array< - ActivityListReposStarredByUserResponseItem - >; - type ActivityListReposWatchedByUserResponse = Array< - ActivityListReposWatchedByUserResponseItem - >; - type ActivityListStargazersForRepoResponse = Array< - ActivityListStargazersForRepoResponseItem - >; - type ActivityListWatchedReposForAuthenticatedUserResponse = Array< - ActivityListWatchedReposForAuthenticatedUserResponseItem - >; - type ActivityListWatchersForRepoResponse = Array< - ActivityListWatchersForRepoResponseItem - >; - type AppsListAccountsUserOrOrgOnPlanResponse = Array< - AppsListAccountsUserOrOrgOnPlanResponseItem - >; - type AppsListAccountsUserOrOrgOnPlanStubbedResponse = Array< - AppsListAccountsUserOrOrgOnPlanStubbedResponseItem - >; - type AppsListInstallationsResponse = Array; - type AppsListMarketplacePurchasesForAuthenticatedUserResponse = Array< - AppsListMarketplacePurchasesForAuthenticatedUserResponseItem - >; - type AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponse = Array< - AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponseItem - >; - type AppsListPlansResponse = Array; - type AppsListPlansStubbedResponse = Array; - type ChecksListAnnotationsResponse = Array; - type CodesOfConductListConductCodesResponse = Array< - CodesOfConductListConductCodesResponseItem - >; - type GistsListResponse = Array; - type GistsListCommentsResponse = Array; - type GistsListCommitsResponse = Array; - type GistsListForksResponse = Array; - type GistsListPublicResponse = Array; - type GistsListPublicForUserResponse = Array< - GistsListPublicForUserResponseItem - >; - type GistsListStarredResponse = Array; - type GitListMatchingRefsResponse = Array; - type GitignoreListTemplatesResponse = Array; - type IssuesAddLabelsResponse = Array; - type IssuesListResponse = Array; - type IssuesListAssigneesResponse = Array; - type IssuesListCommentsResponse = Array; - type IssuesListCommentsForRepoResponse = Array< - IssuesListCommentsForRepoResponseItem - >; - type IssuesListEventsResponse = Array; - type IssuesListEventsForRepoResponse = Array< - IssuesListEventsForRepoResponseItem - >; - type IssuesListEventsForTimelineResponse = Array< - IssuesListEventsForTimelineResponseItem - >; - type IssuesListForAuthenticatedUserResponse = Array< - IssuesListForAuthenticatedUserResponseItem - >; - type IssuesListForOrgResponse = Array; - type IssuesListForRepoResponse = Array; - type IssuesListLabelsForMilestoneResponse = Array< - IssuesListLabelsForMilestoneResponseItem - >; - type IssuesListLabelsForRepoResponse = Array< - IssuesListLabelsForRepoResponseItem - >; - type IssuesListLabelsOnIssueResponse = Array< - IssuesListLabelsOnIssueResponseItem - >; - type IssuesListMilestonesForRepoResponse = Array< - IssuesListMilestonesForRepoResponseItem - >; - type IssuesRemoveLabelResponse = Array; - type IssuesReplaceLabelsResponse = Array; - type LicensesListResponse = Array; - type LicensesListCommonlyUsedResponse = Array< - LicensesListCommonlyUsedResponseItem - >; - type MigrationsGetCommitAuthorsResponse = Array< - MigrationsGetCommitAuthorsResponseItem - >; - type MigrationsGetLargeFilesResponse = Array< - MigrationsGetLargeFilesResponseItem - >; - type MigrationsListForAuthenticatedUserResponse = Array< - MigrationsListForAuthenticatedUserResponseItem - >; - type MigrationsListForOrgResponse = Array; - type MigrationsListReposForOrgResponse = Array< - MigrationsListReposForOrgResponseItem - >; - type MigrationsListReposForUserResponse = Array< - MigrationsListReposForUserResponseItem - >; - type OauthAuthorizationsListAuthorizationsResponse = Array< - OauthAuthorizationsListAuthorizationsResponseItem - >; - type OauthAuthorizationsListGrantsResponse = Array< - OauthAuthorizationsListGrantsResponseItem - >; - type OrgsListResponse = Array; - type OrgsListBlockedUsersResponse = Array; - type OrgsListForAuthenticatedUserResponse = Array< - OrgsListForAuthenticatedUserResponseItem - >; - type OrgsListForUserResponse = Array; - type OrgsListHooksResponse = Array; - type OrgsListInvitationTeamsResponse = Array< - OrgsListInvitationTeamsResponseItem - >; - type OrgsListMembersResponse = Array; - type OrgsListMembershipsResponse = Array; - type OrgsListOutsideCollaboratorsResponse = Array< - OrgsListOutsideCollaboratorsResponseItem - >; - type OrgsListPendingInvitationsResponse = Array< - OrgsListPendingInvitationsResponseItem - >; - type OrgsListPublicMembersResponse = Array; - type ProjectsListCardsResponse = Array; - type ProjectsListCollaboratorsResponse = Array< - ProjectsListCollaboratorsResponseItem - >; - type ProjectsListColumnsResponse = Array; - type ProjectsListForOrgResponse = Array; - type ProjectsListForRepoResponse = Array; - type ProjectsListForUserResponse = Array; - type PullsGetCommentsForReviewResponse = Array< - PullsGetCommentsForReviewResponseItem - >; - type PullsListResponse = Array; - type PullsListCommentsResponse = Array; - type PullsListCommentsForRepoResponse = Array< - PullsListCommentsForRepoResponseItem - >; - type PullsListCommitsResponse = Array; - type PullsListFilesResponse = Array; - type PullsListReviewsResponse = Array; - type ReactionsListForCommitCommentResponse = Array< - ReactionsListForCommitCommentResponseItem - >; - type ReactionsListForIssueResponse = Array; - type ReactionsListForIssueCommentResponse = Array< - ReactionsListForIssueCommentResponseItem - >; - type ReactionsListForPullRequestReviewCommentResponse = Array< - ReactionsListForPullRequestReviewCommentResponseItem - >; - type ReactionsListForTeamDiscussionResponse = Array< - ReactionsListForTeamDiscussionResponseItem - >; - type ReactionsListForTeamDiscussionCommentResponse = Array< - ReactionsListForTeamDiscussionCommentResponseItem - >; - type ReactionsListForTeamDiscussionCommentInOrgResponse = Array< - ReactionsListForTeamDiscussionCommentInOrgResponseItem - >; - type ReactionsListForTeamDiscussionCommentLegacyResponse = Array< - ReactionsListForTeamDiscussionCommentLegacyResponseItem - >; - type ReactionsListForTeamDiscussionInOrgResponse = Array< - ReactionsListForTeamDiscussionInOrgResponseItem - >; - type ReactionsListForTeamDiscussionLegacyResponse = Array< - ReactionsListForTeamDiscussionLegacyResponseItem - >; - type ReposAddProtectedBranchAppRestrictionsResponse = Array< - ReposAddProtectedBranchAppRestrictionsResponseItem - >; - type ReposAddProtectedBranchRequiredStatusChecksContextsResponse = Array< - string - >; - type ReposAddProtectedBranchTeamRestrictionsResponse = Array< - ReposAddProtectedBranchTeamRestrictionsResponseItem - >; - type ReposAddProtectedBranchUserRestrictionsResponse = Array< - ReposAddProtectedBranchUserRestrictionsResponseItem - >; - type ReposGetAppsWithAccessToProtectedBranchResponse = Array< - ReposGetAppsWithAccessToProtectedBranchResponseItem - >; - type ReposGetCodeFrequencyStatsResponse = Array>; - type ReposGetCommitActivityStatsResponse = Array< - ReposGetCommitActivityStatsResponseItem - >; - type ReposGetContributorsStatsResponse = Array< - ReposGetContributorsStatsResponseItem - >; - type ReposGetPunchCardStatsResponse = Array>; - type ReposGetTeamsWithAccessToProtectedBranchResponse = Array< - ReposGetTeamsWithAccessToProtectedBranchResponseItem - >; - type ReposGetTopPathsResponse = Array; - type ReposGetTopReferrersResponse = Array; - type ReposGetUsersWithAccessToProtectedBranchResponse = Array< - ReposGetUsersWithAccessToProtectedBranchResponseItem - >; - type ReposListAppsWithAccessToProtectedBranchResponse = Array< - ReposListAppsWithAccessToProtectedBranchResponseItem - >; - type ReposListAssetsForReleaseResponse = Array< - ReposListAssetsForReleaseResponseItem - >; - type ReposListBranchesResponse = Array; - type ReposListBranchesForHeadCommitResponse = Array< - ReposListBranchesForHeadCommitResponseItem - >; - type ReposListCollaboratorsResponse = Array< - ReposListCollaboratorsResponseItem - >; - type ReposListCommentsForCommitResponse = Array< - ReposListCommentsForCommitResponseItem - >; - type ReposListCommitCommentsResponse = Array< - ReposListCommitCommentsResponseItem - >; - type ReposListCommitsResponse = Array; - type ReposListContributorsResponse = Array; - type ReposListDeployKeysResponse = Array; - type ReposListDeploymentStatusesResponse = Array< - ReposListDeploymentStatusesResponseItem - >; - type ReposListDeploymentsResponse = Array; - type ReposListDownloadsResponse = Array; - type ReposListForOrgResponse = Array; - type ReposListForksResponse = Array; - type ReposListHooksResponse = Array; - type ReposListInvitationsResponse = Array; - type ReposListInvitationsForAuthenticatedUserResponse = Array< - ReposListInvitationsForAuthenticatedUserResponseItem - >; - type ReposListPagesBuildsResponse = Array; - type ReposListProtectedBranchRequiredStatusChecksContextsResponse = Array< - string - >; - type ReposListProtectedBranchTeamRestrictionsResponse = Array< - ReposListProtectedBranchTeamRestrictionsResponseItem - >; - type ReposListProtectedBranchUserRestrictionsResponse = Array< - ReposListProtectedBranchUserRestrictionsResponseItem - >; - type ReposListPublicResponse = Array; - type ReposListPullRequestsAssociatedWithCommitResponse = Array< - ReposListPullRequestsAssociatedWithCommitResponseItem - >; - type ReposListReleasesResponse = Array; - type ReposListStatusesForRefResponse = Array< - ReposListStatusesForRefResponseItem - >; - type ReposListTagsResponse = Array; - type ReposListTeamsResponse = Array; - type ReposListTeamsWithAccessToProtectedBranchResponse = Array< - ReposListTeamsWithAccessToProtectedBranchResponseItem - >; - type ReposListUsersWithAccessToProtectedBranchResponse = Array< - ReposListUsersWithAccessToProtectedBranchResponseItem - >; - type ReposRemoveProtectedBranchAppRestrictionsResponse = Array< - ReposRemoveProtectedBranchAppRestrictionsResponseItem - >; - type ReposRemoveProtectedBranchRequiredStatusChecksContextsResponse = Array< - string - >; - type ReposRemoveProtectedBranchTeamRestrictionsResponse = Array< - ReposRemoveProtectedBranchTeamRestrictionsResponseItem - >; - type ReposRemoveProtectedBranchUserRestrictionsResponse = Array< - ReposRemoveProtectedBranchUserRestrictionsResponseItem - >; - type ReposReplaceProtectedBranchAppRestrictionsResponse = Array< - ReposReplaceProtectedBranchAppRestrictionsResponseItem - >; - type ReposReplaceProtectedBranchRequiredStatusChecksContextsResponse = Array< - string - >; - type ReposReplaceProtectedBranchTeamRestrictionsResponse = Array< - ReposReplaceProtectedBranchTeamRestrictionsResponseItem - >; - type ReposReplaceProtectedBranchUserRestrictionsResponse = Array< - ReposReplaceProtectedBranchUserRestrictionsResponseItem - >; - type TeamsListResponse = Array; - type TeamsListChildResponse = Array; - type TeamsListChildInOrgResponse = Array; - type TeamsListChildLegacyResponse = Array; - type TeamsListDiscussionCommentsResponse = Array< - TeamsListDiscussionCommentsResponseItem - >; - type TeamsListDiscussionCommentsInOrgResponse = Array< - TeamsListDiscussionCommentsInOrgResponseItem - >; - type TeamsListDiscussionCommentsLegacyResponse = Array< - TeamsListDiscussionCommentsLegacyResponseItem - >; - type TeamsListDiscussionsResponse = Array; - type TeamsListDiscussionsInOrgResponse = Array< - TeamsListDiscussionsInOrgResponseItem - >; - type TeamsListDiscussionsLegacyResponse = Array< - TeamsListDiscussionsLegacyResponseItem - >; - type TeamsListForAuthenticatedUserResponse = Array< - TeamsListForAuthenticatedUserResponseItem - >; - type TeamsListMembersResponse = Array; - type TeamsListMembersInOrgResponse = Array; - type TeamsListMembersLegacyResponse = Array< - TeamsListMembersLegacyResponseItem - >; - type TeamsListPendingInvitationsResponse = Array< - TeamsListPendingInvitationsResponseItem - >; - type TeamsListPendingInvitationsInOrgResponse = Array< - TeamsListPendingInvitationsInOrgResponseItem - >; - type TeamsListPendingInvitationsLegacyResponse = Array< - TeamsListPendingInvitationsLegacyResponseItem - >; - type TeamsListProjectsResponse = Array; - type TeamsListProjectsInOrgResponse = Array< - TeamsListProjectsInOrgResponseItem - >; - type TeamsListProjectsLegacyResponse = Array< - TeamsListProjectsLegacyResponseItem - >; - type TeamsListReposResponse = Array; - type TeamsListReposInOrgResponse = Array; - type TeamsListReposLegacyResponse = Array; - type UsersAddEmailsResponse = Array; - type UsersListResponse = Array; - type UsersListBlockedResponse = Array; - type UsersListEmailsResponse = Array; - type UsersListFollowersForAuthenticatedUserResponse = Array< - UsersListFollowersForAuthenticatedUserResponseItem - >; - type UsersListFollowersForUserResponse = Array< - UsersListFollowersForUserResponseItem - >; - type UsersListFollowingForAuthenticatedUserResponse = Array< - UsersListFollowingForAuthenticatedUserResponseItem - >; - type UsersListFollowingForUserResponse = Array< - UsersListFollowingForUserResponseItem - >; - type UsersListGpgKeysResponse = Array; - type UsersListGpgKeysForUserResponse = Array< - UsersListGpgKeysForUserResponseItem - >; - type UsersListPublicEmailsResponse = Array; - type UsersListPublicKeysResponse = Array; - type UsersListPublicKeysForUserResponse = Array< - UsersListPublicKeysForUserResponseItem - >; - type UsersTogglePrimaryEmailVisibilityResponse = Array< - UsersTogglePrimaryEmailVisibilityResponseItem - >; - - // param types - export type ActionsCancelWorkflowRunParams = { - owner: string; - - repo: string; - - run_id: number; - }; - export type ActionsCreateOrUpdateSecretForRepoParams = { - /** - * Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get your public key](https://developer.github.com/v3/actions/secrets/#get-your-public-key) endpoint. - */ - encrypted_value?: string; - /** - * ID of the key you used to encrypt the secret. - */ - key_id?: string; - - name: string; - - owner: string; - - repo: string; - }; - export type ActionsCreateRegistrationTokenParams = { - owner: string; - - repo: string; - }; - export type ActionsCreateRemoveTokenParams = { - owner: string; - - repo: string; - }; - export type ActionsDeleteArtifactParams = { - artifact_id: number; - - owner: string; - - repo: string; - }; - export type ActionsDeleteSecretFromRepoParams = { - name: string; - - owner: string; - - repo: string; - }; - export type ActionsDownloadArtifactParams = { - archive_format: string; - - artifact_id: number; - - owner: string; - - repo: string; - }; - export type ActionsGetArtifactParams = { - artifact_id: number; - - owner: string; - - repo: string; - }; - export type ActionsGetPublicKeyParams = { - owner: string; - - repo: string; - }; - export type ActionsGetSecretParams = { - name: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ActionsGetSelfHostedRunnerParams = { - owner: string; - - repo: string; - - runner_id: number; - }; - export type ActionsGetWorkflowParams = { - owner: string; - - repo: string; - - workflow_id: number; - }; - export type ActionsGetWorkflowJobParams = { - job_id: number; - - owner: string; - - repo: string; - }; - export type ActionsGetWorkflowRunParams = { - owner: string; - - repo: string; - - run_id: number; - }; - export type ActionsListDownloadsForSelfHostedRunnerApplicationParams = { - owner: string; - - repo: string; - }; - export type ActionsListJobsForWorkflowRunParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - - run_id: number; - }; - export type ActionsListRepoWorkflowRunsParams = { - /** - * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. - */ - actor?: string; - /** - * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. - */ - branch?: string; - /** - * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation. - */ - event?: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." - */ - status?: "completed" | "status" | "conclusion"; - }; - export type ActionsListRepoWorkflowsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ActionsListSecretsForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ActionsListSelfHostedRunnersForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ActionsListWorkflowJobLogsParams = { - job_id: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ActionsListWorkflowRunArtifactsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - - run_id: number; - }; - export type ActionsListWorkflowRunLogsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - - run_id: number; - }; - export type ActionsListWorkflowRunsParams = { - /** - * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. - */ - actor?: string; - /** - * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. - */ - branch?: string; - /** - * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation. - */ - event?: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." - */ - status?: "completed" | "status" | "conclusion"; - - workflow_id: number; - }; - export type ActionsReRunWorkflowParams = { - owner: string; - - repo: string; - - run_id: number; - }; - export type ActionsRemoveSelfHostedRunnerParams = { - owner: string; - - repo: string; - - runner_id: number; - }; - export type ActivityCheckStarringRepoParams = { - owner: string; - - repo: string; - }; - export type ActivityCheckWatchingRepoLegacyParams = { - owner: string; - - repo: string; - }; - export type ActivityDeleteRepoSubscriptionParams = { - owner: string; - - repo: string; - }; - export type ActivityDeleteThreadSubscriptionParams = { - thread_id: number; - }; - export type ActivityGetRepoSubscriptionParams = { - owner: string; - - repo: string; - }; - export type ActivityGetThreadParams = { - thread_id: number; - }; - export type ActivityGetThreadSubscriptionParams = { - thread_id: number; - }; - export type ActivityListEventsForOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type ActivityListEventsForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type ActivityListNotificationsParams = { - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * 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`. - */ - before?: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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`. - */ - since?: string; - }; - export type ActivityListNotificationsForRepoParams = { - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * 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`. - */ - before?: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * 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`. - */ - since?: string; - }; - export type ActivityListPublicEventsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type ActivityListPublicEventsForOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type ActivityListPublicEventsForRepoNetworkParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ActivityListPublicEventsForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type ActivityListReceivedEventsForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type ActivityListReceivedPublicEventsForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type ActivityListRepoEventsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ActivityListReposStarredByAuthenticatedUserParams = { - /** - * One of `asc` (ascending) or `desc` (descending). - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). - */ - sort?: "created" | "updated"; - }; - export type ActivityListReposStarredByUserParams = { - /** - * One of `asc` (ascending) or `desc` (descending). - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). - */ - sort?: "created" | "updated"; - - username: string; - }; - export type ActivityListReposWatchedByUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type ActivityListStargazersForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ActivityListWatchedReposForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type ActivityListWatchersForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ActivityMarkAsReadParams = { - /** - * Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. - */ - last_read_at?: string; - }; - export type ActivityMarkNotificationsAsReadForRepoParams = { - /** - * Describes the last point that notifications were checked. Anything updated since this time will not be updated. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Default: The current timestamp. - */ - last_read_at?: string; - - owner: string; - - repo: string; - }; - export type ActivityMarkThreadAsReadParams = { - thread_id: number; - }; - export type ActivitySetRepoSubscriptionParams = { - /** - * Determines if all notifications should be blocked from this repository. - */ - ignored?: boolean; - - owner: string; - - repo: string; - /** - * Determines if notifications should be received from this repository. - */ - subscribed?: boolean; - }; - export type ActivitySetThreadSubscriptionParams = { - /** - * Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread. - */ - ignored?: boolean; - - thread_id: number; - }; - export type ActivityStarRepoParams = { - owner: string; - - repo: string; - }; - export type ActivityStopWatchingRepoLegacyParams = { - owner: string; - - repo: string; - }; - export type ActivityUnstarRepoParams = { - owner: string; - - repo: string; - }; - export type ActivityWatchRepoLegacyParams = { - owner: string; - - repo: string; - }; - export type AppsAddRepoToInstallationParams = { - installation_id: number; - - repository_id: number; - }; - export type AppsCheckAccountIsAssociatedWithAnyParams = { - account_id: number; - }; - export type AppsCheckAccountIsAssociatedWithAnyStubbedParams = { - account_id: number; - }; - export type AppsCheckAuthorizationParams = { - access_token: string; - - client_id: string; - }; - export type AppsCheckTokenParams = { - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; - - client_id: string; - }; - export type AppsCreateContentAttachmentParams = { - /** - * The body text of the content attachment displayed in the body or comment of an issue or pull request. This parameter supports markdown. - */ - body: string; - - content_reference_id: number; - /** - * The title of the content attachment displayed in the body or comment of an issue or pull request. - */ - title: string; - }; - export type AppsCreateFromManifestParams = { - code: string; - }; - export type AppsCreateInstallationTokenParams = { - installation_id: number; - /** - * The permissions granted to the access token. The permissions object includes the permission names and their access type. For a complete list of permissions and allowable values, see "[GitHub App permissions](https://developer.github.com/apps/building-github-apps/creating-github-apps-using-url-parameters/#github-app-permissions)." - */ - permissions?: AppsCreateInstallationTokenParamsPermissions; - /** - * The `id`s of the repositories that the installation token can access. Providing repository `id`s restricts the access of an installation token to specific repositories. You can use the "[List repositories](https://developer.github.com/v3/apps/installations/#list-repositories)" endpoint to get the `id` of all repositories that an installation can access. For example, you can select specific repositories when creating an installation token to restrict the number of repositories that can be cloned using the token. - */ - repository_ids?: number[]; - }; - export type AppsDeleteAuthorizationParams = { - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; - - client_id: string; - }; - export type AppsDeleteInstallationParams = { - installation_id: number; - }; - export type AppsDeleteTokenParams = { - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; - - client_id: string; - }; - export type AppsFindOrgInstallationParams = { - org: string; - }; - export type AppsFindRepoInstallationParams = { - owner: string; - - repo: string; - }; - export type AppsFindUserInstallationParams = { - username: string; - }; - export type AppsGetBySlugParams = { - app_slug: string; - }; - export type AppsGetInstallationParams = { - installation_id: number; - }; - export type AppsGetOrgInstallationParams = { - org: string; - }; - export type AppsGetRepoInstallationParams = { - owner: string; - - repo: string; - }; - export type AppsGetUserInstallationParams = { - username: string; - }; - export type AppsListAccountsUserOrOrgOnPlanParams = { - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - }; - export type AppsListAccountsUserOrOrgOnPlanStubbedParams = { - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - }; - export type AppsListInstallationReposForAuthenticatedUserParams = { - installation_id: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type AppsListInstallationsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type AppsListInstallationsForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type AppsListMarketplacePurchasesForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type AppsListMarketplacePurchasesForAuthenticatedUserStubbedParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type AppsListPlansParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type AppsListPlansStubbedParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type AppsListReposParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type AppsRemoveRepoFromInstallationParams = { - installation_id: number; - - repository_id: number; - }; - export type AppsResetAuthorizationParams = { - access_token: string; - - client_id: string; - }; - export type AppsResetTokenParams = { - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; - - client_id: string; - }; - export type AppsRevokeAuthorizationForApplicationParams = { - access_token: string; - - client_id: string; - }; - export type AppsRevokeGrantForApplicationParams = { - access_token: string; - - client_id: string; - }; - export type ChecksCreateParams = { - /** - * 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://developer.github.com/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." - */ - actions?: ChecksCreateParamsActions[]; - /** - * 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`. - */ - completed_at?: string; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. 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`. Only GitHub can change a check run conclusion to `stale`. - */ - conclusion?: - | "success" - | "failure" - | "neutral" - | "cancelled" - | "timed_out" - | "action_required"; - /** - * The URL of the integrator's site that has the full details of the check. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * The SHA of the commit. - */ - head_sha: string; - /** - * The name of the check. For example, "code-coverage". - */ - name: string; - /** - * 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://developer.github.com/v3/checks/runs/#output-object) description. - */ - output?: ChecksCreateParamsOutput; - - owner: string; - - repo: string; - /** - * 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`. - */ - started_at?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - }; - export type ChecksCreateSuiteParams = { - /** - * The sha of the head commit. - */ - head_sha: string; - - owner: string; - - repo: string; - }; - export type ChecksGetParams = { - check_run_id: number; - - owner: string; - - repo: string; - }; - export type ChecksGetSuiteParams = { - check_suite_id: number; - - owner: string; - - repo: string; - }; - export type ChecksListAnnotationsParams = { - check_run_id: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ChecksListForRefParams = { - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - ref: string; - - repo: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - }; - export type ChecksListForSuiteParams = { - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - - check_suite_id: number; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - }; - export type ChecksListSuitesForRefParams = { - /** - * Filters check suites by GitHub App `id`. - */ - app_id?: number; - /** - * Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/). - */ - check_name?: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - ref: string; - - repo: string; - }; - export type ChecksRerequestSuiteParams = { - check_suite_id: number; - - owner: string; - - repo: string; - }; - export type ChecksSetSuitesPreferencesParams = { - /** - * Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/v3/checks/suites/#auto_trigger_checks-object) description for details. - */ - auto_trigger_checks?: ChecksSetSuitesPreferencesParamsAutoTriggerChecks[]; - - owner: string; - - repo: string; - }; - export type ChecksUpdateParams = { - /** - * 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://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." - */ - actions?: ChecksUpdateParamsActions[]; - - check_run_id: number; - /** - * 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`. - */ - completed_at?: string; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `timed_out`, or `action_required`. - * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. Only GitHub can change a check run conclusion to `stale`. - */ - conclusion?: - | "success" - | "failure" - | "neutral" - | "cancelled" - | "timed_out" - | "action_required"; - /** - * The URL of the integrator's site that has the full details of the check. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * The name of the check. For example, "code-coverage". - */ - name?: string; - /** - * 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://developer.github.com/v3/checks/runs/#output-object-1) description. - */ - output?: ChecksUpdateParamsOutput; - - owner: string; - - repo: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - started_at?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - }; - export type CodesOfConductGetConductCodeParams = { - key: string; - }; - export type CodesOfConductGetForRepoParams = { - owner: string; - - repo: string; - }; - export type GistsCheckIsStarredParams = { - gist_id: string; - }; - export type GistsCreateParams = { - /** - * A descriptive name for this gist. - */ - description?: string; - /** - * The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`. - */ - files: GistsCreateParamsFiles; - /** - * When `true`, the gist will be public and available for anyone to see. - */ - public?: boolean; - }; - export type GistsCreateCommentParams = { - /** - * The comment text. - */ - body: string; - - gist_id: string; - }; - export type GistsDeleteParams = { - gist_id: string; - }; - export type GistsDeleteCommentParams = { - comment_id: number; - - gist_id: string; - }; - export type GistsForkParams = { - gist_id: string; - }; - export type GistsGetParams = { - gist_id: string; - }; - export type GistsGetCommentParams = { - comment_id: number; - - gist_id: string; - }; - export type GistsGetRevisionParams = { - gist_id: string; - - sha: string; - }; - export type GistsListParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - }; - export type GistsListCommentsParams = { - gist_id: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type GistsListCommitsParams = { - gist_id: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type GistsListForksParams = { - gist_id: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type GistsListPublicParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - }; - export type GistsListPublicForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - - username: string; - }; - export type GistsListStarredParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - }; - export type GistsStarParams = { - gist_id: string; - }; - export type GistsUnstarParams = { - gist_id: string; - }; - export type GistsUpdateParams = { - /** - * A descriptive name for this gist. - */ - description?: string; - /** - * The filenames and content that make up this gist. - */ - files?: GistsUpdateParamsFiles; - - gist_id: string; - }; - export type GistsUpdateCommentParams = { - /** - * The comment text. - */ - body: string; - - comment_id: number; - - gist_id: string; - }; - export type GitCreateBlobParams = { - /** - * The new blob's content. - */ - content: string; - /** - * The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. - */ - encoding?: string; - - owner: string; - - repo: string; - }; - export type GitCreateCommitParams = { - /** - * 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. - */ - author?: GitCreateCommitParamsAuthor; - /** - * 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. - */ - committer?: GitCreateCommitParamsCommitter; - /** - * The commit message - */ - message: string; - - owner: string; - /** - * 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. - */ - parents: string[]; - - repo: string; - /** - * 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. - */ - signature?: string; - /** - * The SHA of the tree object this commit points to - */ - tree: string; - }; - export type GitCreateRefParams = { - owner: string; - /** - * 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. - */ - ref: string; - - repo: string; - /** - * The SHA1 value for this reference. - */ - sha: string; - }; - export type GitCreateTagParams = { - /** - * The tag message. - */ - message: string; - /** - * The SHA of the git object this is tagging. - */ - object: string; - - owner: string; - - repo: string; - /** - * The tag's name. This is typically a version (e.g., "v0.0.1"). - */ - tag: string; - /** - * An object with information about the individual creating the tag. - */ - tagger?: GitCreateTagParamsTagger; - /** - * The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. - */ - type: "commit" | "tree" | "blob"; - }; - export type GitCreateTreeParams = { - /** - * The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted. - */ - base_tree?: string; - - owner: string; - - repo: string; - /** - * Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. - */ - tree: GitCreateTreeParamsTree[]; - }; - export type GitDeleteRefParams = { - owner: string; - - ref: string; - - repo: string; - }; - export type GitGetBlobParams = { - file_sha: string; - - owner: string; - - repo: string; - }; - export type GitGetCommitParams = { - commit_sha: string; - - owner: string; - - repo: string; - }; - export type GitGetRefParams = { - owner: string; - - ref: string; - - repo: string; - }; - export type GitGetTagParams = { - owner: string; - - repo: string; - - tag_sha: string; - }; - export type GitGetTreeParams = { - owner: string; - - recursive?: "1"; - - repo: string; - - tree_sha: string; - }; - export type GitListMatchingRefsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - ref: string; - - repo: string; - }; - export type GitListRefsParams = { - /** - * Filter by sub-namespace (reference prefix). Most commen examples would be `'heads/'` and `'tags/'` to retrieve branches or tags - */ - namespace?: string; - - owner: string; - - page?: number; - - per_page?: number; - - repo: string; - }; - export type GitUpdateRefParams = { - /** - * 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. - */ - force?: boolean; - - owner: string; - - ref: string; - - repo: string; - /** - * The SHA1 value to set this reference to - */ - sha: string; - }; - export type GitignoreGetTemplateParams = { - name: string; - }; - export type InteractionsAddOrUpdateRestrictionsForOrgParams = { - /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests in public repositories for the given organization. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. - */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; - - org: string; - }; - export type InteractionsAddOrUpdateRestrictionsForRepoParams = { - /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. - */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; - - owner: string; - - repo: string; - }; - export type InteractionsGetRestrictionsForOrgParams = { - org: string; - }; - export type InteractionsGetRestrictionsForRepoParams = { - owner: string; - - repo: string; - }; - export type InteractionsRemoveRestrictionsForOrgParams = { - org: string; - }; - export type InteractionsRemoveRestrictionsForRepoParams = { - owner: string; - - repo: string; - }; - export type IssuesAddAssigneesParamsDeprecatedNumber = { - /** - * 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._ - */ - assignees?: string[]; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesAddAssigneesParams = { - /** - * 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._ - */ - assignees?: string[]; - - issue_number: number; - - owner: string; - - repo: string; - }; - export type IssuesAddLabelsParamsDeprecatedNumber = { - /** - * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels: string[]; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesAddLabelsParams = { - issue_number: number; - /** - * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels: string[]; - - owner: string; - - repo: string; - }; - export type IssuesCheckAssigneeParams = { - assignee: string; - - owner: string; - - repo: string; - }; - export type IssuesCreateParamsDeprecatedAssignee = { - /** - * 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.**_ - * @deprecated "assignee" parameter has been deprecated and will be removed in future - */ - assignee?: string; - /** - * 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._ - */ - assignees?: string[]; - /** - * The contents of the issue. - */ - body?: string; - /** - * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ - */ - labels?: string[]; - /** - * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ - */ - milestone?: number; - - owner: string; - - repo: string; - /** - * The title of the issue. - */ - title: string; - }; - export type IssuesCreateParams = { - /** - * 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._ - */ - assignees?: string[]; - /** - * The contents of the issue. - */ - body?: string; - /** - * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ - */ - labels?: string[]; - /** - * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ - */ - milestone?: number; - - owner: string; - - repo: string; - /** - * The title of the issue. - */ - title: string; - }; - export type IssuesCreateCommentParamsDeprecatedNumber = { - /** - * The contents of the comment. - */ - body: string; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesCreateCommentParams = { - /** - * The contents of the comment. - */ - body: string; - - issue_number: number; - - owner: string; - - repo: string; - }; - export type IssuesCreateLabelParams = { - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color: string; - /** - * A short description of the label. - */ - description?: string; - /** - * 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.com](http://emoji-cheat-sheet.com/). - */ - name: string; - - owner: string; - - repo: string; - }; - export type IssuesCreateMilestoneParams = { - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; - - owner: string; - - repo: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the milestone. - */ - title: string; - }; - export type IssuesDeleteCommentParams = { - comment_id: number; - - owner: string; - - repo: string; - }; - export type IssuesDeleteLabelParams = { - name: string; - - owner: string; - - repo: string; - }; - export type IssuesDeleteMilestoneParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "milestone_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesDeleteMilestoneParams = { - milestone_number: number; - - owner: string; - - repo: string; - }; - export type IssuesGetParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesGetParams = { - issue_number: number; - - owner: string; - - repo: string; - }; - export type IssuesGetCommentParams = { - comment_id: number; - - owner: string; - - repo: string; - }; - export type IssuesGetEventParams = { - event_id: number; - - owner: string; - - repo: string; - }; - export type IssuesGetLabelParams = { - name: string; - - owner: string; - - repo: string; - }; - export type IssuesGetMilestoneParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "milestone_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesGetMilestoneParams = { - milestone_number: number; - - owner: string; - - repo: string; - }; - export type IssuesListParams = { - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - }; - export type IssuesListAssigneesParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListCommentsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - }; - export type IssuesListCommentsParams = { - issue_number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - }; - export type IssuesListCommentsForRepoParams = { - /** - * Either `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - - owner: string; - - repo: string; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Either `created` or `updated`. - */ - sort?: "created" | "updated"; - }; - export type IssuesListEventsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListEventsParams = { - issue_number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListEventsForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListEventsForTimelineParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListEventsForTimelineParams = { - issue_number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListForAuthenticatedUserParams = { - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - }; - export type IssuesListForOrgParams = { - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - }; - export type IssuesListForRepoParams = { - /** - * Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. - */ - assignee?: string; - /** - * The user that created the issue. - */ - creator?: string; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * A user that's mentioned in the issue. - */ - mentioned?: string; - /** - * 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. - */ - milestone?: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - }; - export type IssuesListLabelsForMilestoneParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "milestone_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListLabelsForMilestoneParams = { - milestone_number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListLabelsForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListLabelsOnIssueParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListLabelsOnIssueParams = { - issue_number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type IssuesListMilestonesForRepoParams = { - /** - * The direction of the sort. Either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * What to sort results by. Either `due_on` or `completeness`. - */ - sort?: "due_on" | "completeness"; - /** - * The state of the milestone. Either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - }; - export type IssuesLockParamsDeprecatedNumber = { - /** - * 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` - */ - lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesLockParams = { - issue_number: number; - /** - * 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` - */ - lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; - - owner: string; - - repo: string; - }; - export type IssuesRemoveAssigneesParamsDeprecatedNumber = { - /** - * 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._ - */ - assignees?: string[]; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesRemoveAssigneesParams = { - /** - * 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._ - */ - assignees?: string[]; - - issue_number: number; - - owner: string; - - repo: string; - }; - export type IssuesRemoveLabelParamsDeprecatedNumber = { - name: string; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesRemoveLabelParams = { - issue_number: number; - - name: string; - - owner: string; - - repo: string; - }; - export type IssuesRemoveLabelsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesRemoveLabelsParams = { - issue_number: number; - - owner: string; - - repo: string; - }; - export type IssuesReplaceLabelsParamsDeprecatedNumber = { - /** - * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels?: string[]; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesReplaceLabelsParams = { - issue_number: number; - /** - * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels?: string[]; - - owner: string; - - repo: string; - }; - export type IssuesUnlockParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type IssuesUnlockParams = { - issue_number: number; - - owner: string; - - repo: string; - }; - export type IssuesUpdateParamsDeprecatedNumber = { - /** - * 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._ - */ - assignees?: string[]; - /** - * The contents of the issue. - */ - body?: string; - /** - * 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._ - */ - labels?: string[]; - /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ - */ - milestone?: number | null; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - /** - * State of the issue. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the issue. - */ - title?: string; - }; - export type IssuesUpdateParamsDeprecatedAssignee = { - /** - * Login for the user that this issue should be assigned to. **This field is deprecated.** - * @deprecated "assignee" parameter has been deprecated and will be removed in future - */ - assignee?: string; - /** - * 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._ - */ - assignees?: string[]; - /** - * The contents of the issue. - */ - body?: string; - - issue_number: number; - /** - * 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._ - */ - labels?: string[]; - /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ - */ - milestone?: number | null; - - owner: string; - - repo: string; - /** - * State of the issue. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the issue. - */ - title?: string; - }; - export type IssuesUpdateParams = { - /** - * 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._ - */ - assignees?: string[]; - /** - * The contents of the issue. - */ - body?: string; - - issue_number: number; - /** - * 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._ - */ - labels?: string[]; - /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ - */ - milestone?: number | null; - - owner: string; - - repo: string; - /** - * State of the issue. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the issue. - */ - title?: string; - }; - export type IssuesUpdateCommentParams = { - /** - * The contents of the comment. - */ - body: string; - - comment_id: number; - - owner: string; - - repo: string; - }; - export type IssuesUpdateLabelParams = { - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color?: string; - - current_name: string; - /** - * A short description of the label. - */ - description?: string; - /** - * 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.com](http://emoji-cheat-sheet.com/). - */ - name?: string; - - owner: string; - - repo: string; - }; - export type IssuesUpdateMilestoneParamsDeprecatedNumber = { - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; - /** - * @deprecated "number" parameter renamed to "milestone_number" - */ - number: number; - - owner: string; - - repo: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the milestone. - */ - title?: string; - }; - export type IssuesUpdateMilestoneParams = { - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; - - milestone_number: number; - - owner: string; - - repo: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the milestone. - */ - title?: string; - }; - export type LicensesGetParams = { - license: string; - }; - export type LicensesGetForRepoParams = { - owner: string; - - repo: string; - }; - export type MarkdownRenderParams = { - /** - * The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode. - */ - context?: string; - /** - * The rendering mode. Can be either: - * \* `markdown` to render a document in plain Markdown, just like README.md files are rendered. - * \* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests. - */ - mode?: "markdown" | "gfm"; - /** - * The Markdown text to render in HTML. Markdown content must be 400 KB or less. - */ - text: string; - }; - export type MarkdownRenderRawParams = { - data: string; - }; - export type MigrationsCancelImportParams = { - owner: string; - - repo: string; - }; - export type MigrationsDeleteArchiveForAuthenticatedUserParams = { - migration_id: number; - }; - export type MigrationsDeleteArchiveForOrgParams = { - migration_id: number; - - org: string; - }; - export type MigrationsDownloadArchiveForOrgParams = { - migration_id: number; - - org: string; - }; - export type MigrationsGetArchiveForAuthenticatedUserParams = { - migration_id: number; - }; - export type MigrationsGetArchiveForOrgParams = { - migration_id: number; - - org: string; - }; - export type MigrationsGetCommitAuthorsParams = { - owner: string; - - repo: string; - /** - * Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step. - */ - since?: string; - }; - export type MigrationsGetImportProgressParams = { - owner: string; - - repo: string; - }; - export type MigrationsGetLargeFilesParams = { - owner: string; - - repo: string; - }; - export type MigrationsGetStatusForAuthenticatedUserParams = { - migration_id: number; - }; - export type MigrationsGetStatusForOrgParams = { - migration_id: number; - - org: string; - }; - export type MigrationsListForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type MigrationsListForOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type MigrationsListReposForOrgParams = { - migration_id: number; - - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type MigrationsListReposForUserParams = { - migration_id: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type MigrationsMapCommitAuthorParams = { - author_id: number; - /** - * The new Git author email. - */ - email?: string; - /** - * The new Git author name. - */ - name?: string; - - owner: string; - - repo: string; - }; - export type MigrationsSetLfsPreferenceParams = { - owner: string; - - repo: string; - /** - * Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). - */ - use_lfs: "opt_in" | "opt_out"; - }; - export type MigrationsStartForAuthenticatedUserParams = { - /** - * Does not include attachments uploaded to GitHub.com in the migration data when set to `true`. Excluding attachments will reduce the migration archive file size. - */ - exclude_attachments?: boolean; - /** - * Locks the `repositories` to prevent changes during the migration when set to `true`. - */ - lock_repositories?: boolean; - /** - * An array of repositories to include in the migration. - */ - repositories: string[]; - }; - export type MigrationsStartForOrgParams = { - /** - * Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). - */ - exclude_attachments?: boolean; - /** - * Indicates whether repositories should be locked (to prevent manipulation) while migrating data. - */ - lock_repositories?: boolean; - - org: string; - /** - * A list of arrays indicating which repositories should be migrated. - */ - repositories: string[]; - }; - export type MigrationsStartImportParams = { - owner: string; - - repo: string; - /** - * For a tfvc import, the name of the project that is being imported. - */ - tfvc_project?: string; - /** - * The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. - */ - vcs?: "subversion" | "git" | "mercurial" | "tfvc"; - /** - * If authentication is required, the password to provide to `vcs_url`. - */ - vcs_password?: string; - /** - * The URL of the originating repository. - */ - vcs_url: string; - /** - * If authentication is required, the username to provide to `vcs_url`. - */ - vcs_username?: string; - }; - export type MigrationsUnlockRepoForAuthenticatedUserParams = { - migration_id: number; - - repo_name: string; - }; - export type MigrationsUnlockRepoForOrgParams = { - migration_id: number; - - org: string; - - repo_name: string; - }; - export type MigrationsUpdateImportParams = { - owner: string; - - repo: string; - /** - * The password to provide to the originating repository. - */ - vcs_password?: string; - /** - * The username to provide to the originating repository. - */ - vcs_username?: string; - }; - export type OauthAuthorizationsCheckAuthorizationParams = { - access_token: string; - - client_id: string; - }; - export type OauthAuthorizationsCreateAuthorizationParams = { - /** - * The 20 character OAuth app client key for which to create the token. - */ - client_id?: string; - /** - * The 40 character OAuth app client secret for which to create the token. - */ - client_secret?: string; - /** - * A unique string to distinguish an authorization from others created for the same client ID and user. - */ - fingerprint?: string; - /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. - */ - note: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; - }; - export type OauthAuthorizationsDeleteAuthorizationParams = { - authorization_id: number; - }; - export type OauthAuthorizationsDeleteGrantParams = { - grant_id: number; - }; - export type OauthAuthorizationsGetAuthorizationParams = { - authorization_id: number; - }; - export type OauthAuthorizationsGetGrantParams = { - grant_id: number; - }; - export type OauthAuthorizationsGetOrCreateAuthorizationForAppParams = { - client_id: string; - /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. - */ - client_secret: string; - /** - * A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint). - */ - fingerprint?: string; - /** - * A note to remind you what the OAuth token is for. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; - }; - export type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintParams = { - client_id: string; - /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. - */ - client_secret: string; - - fingerprint: string; - /** - * A note to remind you what the OAuth token is for. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; - }; - export type OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintParams = { - client_id: string; - /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. - */ - client_secret: string; - - fingerprint: string; - /** - * A note to remind you what the OAuth token is for. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; - }; - export type OauthAuthorizationsListAuthorizationsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type OauthAuthorizationsListGrantsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type OauthAuthorizationsResetAuthorizationParams = { - access_token: string; - - client_id: string; - }; - export type OauthAuthorizationsRevokeAuthorizationForApplicationParams = { - access_token: string; - - client_id: string; - }; - export type OauthAuthorizationsRevokeGrantForApplicationParams = { - access_token: string; - - client_id: string; - }; - export type OauthAuthorizationsUpdateAuthorizationParams = { - /** - * A list of scopes to add to this authorization. - */ - add_scopes?: string[]; - - authorization_id: number; - /** - * A unique string to distinguish an authorization from others created for the same client ID and user. - */ - fingerprint?: string; - /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A list of scopes to remove from this authorization. - */ - remove_scopes?: string[]; - /** - * Replaces the authorization scopes with these. - */ - scopes?: string[]; - }; - export type OrgsAddOrUpdateMembershipParams = { - org: string; - /** - * 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. - */ - role?: "admin" | "member"; - - username: string; - }; - export type OrgsBlockUserParams = { - org: string; - - username: string; - }; - export type OrgsCheckBlockedUserParams = { - org: string; - - username: string; - }; - export type OrgsCheckMembershipParams = { - org: string; - - username: string; - }; - export type OrgsCheckPublicMembershipParams = { - org: string; - - username: string; - }; - export type OrgsConcealMembershipParams = { - org: string; - - username: string; - }; - export type OrgsConvertMemberToOutsideCollaboratorParams = { - org: string; - - username: string; - }; - export type OrgsCreateHookParams = { - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#create-hook-config-params). - */ - config: OrgsCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Must be passed as "web". - */ - name: string; - - org: string; - }; - export type OrgsCreateInvitationParams = { - /** - * **Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user. - */ - email?: string; - /** - * **Required unless you provide `email`**. GitHub user ID for the person you are inviting. - */ - invitee_id?: number; - - org: string; - /** - * Specify role for new member. Can be one of: - * \* `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. - * \* `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. - * \* `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. - */ - role?: "admin" | "direct_member" | "billing_manager"; - /** - * Specify IDs for the teams you want to invite new members to. - */ - team_ids?: number[]; - }; - export type OrgsDeleteHookParams = { - hook_id: number; - - org: string; - }; - export type OrgsGetParams = { - org: string; - }; - export type OrgsGetHookParams = { - hook_id: number; - - org: string; - }; - export type OrgsGetMembershipParams = { - org: string; - - username: string; - }; - export type OrgsGetMembershipForAuthenticatedUserParams = { - org: string; - }; - export type OrgsListParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * The integer ID of the last organization that you've seen. - */ - since?: number; - }; - export type OrgsListBlockedUsersParams = { - org: string; - }; - export type OrgsListForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type OrgsListForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type OrgsListHooksParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type OrgsListInstallationsParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type OrgsListInvitationTeamsParams = { - invitation_id: number; - - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type OrgsListMembersParams = { - /** - * 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. - */ - filter?: "2fa_disabled" | "all"; - - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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. - */ - role?: "all" | "admin" | "member"; - }; - export type OrgsListMembershipsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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. - */ - state?: "active" | "pending"; - }; - export type OrgsListOutsideCollaboratorsParams = { - /** - * 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. - */ - filter?: "2fa_disabled" | "all"; - - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type OrgsListPendingInvitationsParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type OrgsListPublicMembersParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type OrgsPingHookParams = { - hook_id: number; - - org: string; - }; - export type OrgsPublicizeMembershipParams = { - org: string; - - username: string; - }; - export type OrgsRemoveMemberParams = { - org: string; - - username: string; - }; - export type OrgsRemoveMembershipParams = { - org: string; - - username: string; - }; - export type OrgsRemoveOutsideCollaboratorParams = { - org: string; - - username: string; - }; - export type OrgsUnblockUserParams = { - org: string; - - username: string; - }; - export type OrgsUpdateParamsDeprecatedMembersAllowedRepositoryCreationType = { - /** - * Billing email address. This address is not publicized. - */ - billing_email?: string; - /** - * The company name. - */ - company?: string; - /** - * 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. - */ - default_repository_permission?: "read" | "write" | "admin" | "none"; - /** - * The description of the company. - */ - description?: string; - /** - * The publicly visible email address. - */ - email?: string; - /** - * Toggles whether an organization can use organization projects. - */ - has_organization_projects?: boolean; - /** - * Toggles whether repositories that belong to the organization can use repository projects. - */ - has_repository_projects?: boolean; - /** - * The location. - */ - location?: string; - /** - * 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 [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. - * @deprecated "members_allowed_repository_creation_type" parameter has been deprecated and will be removed in future - */ - members_allowed_repository_creation_type?: string; - /** - * 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. 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_internal_repositories?: boolean; - /** - * 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_private_repositories?: boolean; - /** - * 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_can_create_public_repositories?: boolean; - /** - * 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_repositories?: boolean; - /** - * The shorthand name of the company. - */ - name?: string; - - org: string; - }; - export type OrgsUpdateParams = { - /** - * Billing email address. This address is not publicized. - */ - billing_email?: string; - /** - * The company name. - */ - company?: string; - /** - * 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. - */ - default_repository_permission?: "read" | "write" | "admin" | "none"; - /** - * The description of the company. - */ - description?: string; - /** - * The publicly visible email address. - */ - email?: string; - /** - * Toggles whether an organization can use organization projects. - */ - has_organization_projects?: boolean; - /** - * Toggles whether repositories that belong to the organization can use repository projects. - */ - has_repository_projects?: boolean; - /** - * The location. - */ - location?: string; - /** - * 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. 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_internal_repositories?: boolean; - /** - * 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_private_repositories?: boolean; - /** - * 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_can_create_public_repositories?: boolean; - /** - * 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_repositories?: boolean; - /** - * The shorthand name of the company. - */ - name?: string; - - org: string; - }; - export type OrgsUpdateHookParams = { - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#update-hook-config-params). - */ - config?: OrgsUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - - hook_id: number; - - org: string; - }; - export type OrgsUpdateMembershipParams = { - org: string; - /** - * The state that the membership should be in. Only `"active"` will be accepted. - */ - state: "active"; - }; - export type ProjectsAddCollaboratorParams = { - /** - * The permission to grant the collaborator. 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://developer.github.com/v3/#http-verbs)." Can be one of: - * \* `read` - can read, but not write to or administer this project. - * \* `write` - can read and write, but not administer this project. - * \* `admin` - can read, write and administer this project. - */ - permission?: "read" | "write" | "admin"; - - project_id: number; - - username: string; - }; - export type ProjectsCreateCardParams = { - column_id: number; - /** - * The issue or pull request id you want to associate with this card. You can use the [List issues for a repository](https://developer.github.com/v3/issues/#list-issues-for-a-repository) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. - * **Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`. - */ - content_id?: number; - /** - * **Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id. - */ - content_type?: string; - /** - * The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`. - */ - note?: string; - }; - export type ProjectsCreateColumnParams = { - /** - * The name of the column. - */ - name: string; - - project_id: number; - }; - export type ProjectsCreateForAuthenticatedUserParams = { - /** - * The description of the project. - */ - body?: string; - /** - * The name of the project. - */ - name: string; - }; - export type ProjectsCreateForOrgParams = { - /** - * The description of the project. - */ - body?: string; - /** - * The name of the project. - */ - name: string; - - org: string; - }; - export type ProjectsCreateForRepoParams = { - /** - * The description of the project. - */ - body?: string; - /** - * The name of the project. - */ - name: string; - - owner: string; - - repo: string; - }; - export type ProjectsDeleteParams = { - project_id: number; - }; - export type ProjectsDeleteCardParams = { - card_id: number; - }; - export type ProjectsDeleteColumnParams = { - column_id: number; - }; - export type ProjectsGetParams = { - project_id: number; - }; - export type ProjectsGetCardParams = { - card_id: number; - }; - export type ProjectsGetColumnParams = { - column_id: number; - }; - export type ProjectsListCardsParams = { - /** - * Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`. - */ - archived_state?: "all" | "archived" | "not_archived"; - - column_id: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type ProjectsListCollaboratorsParams = { - /** - * 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. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - project_id: number; - }; - export type ProjectsListColumnsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - project_id: number; - }; - export type ProjectsListForOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - }; - export type ProjectsListForRepoParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - }; - export type ProjectsListForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - - username: string; - }; - export type ProjectsMoveCardParams = { - card_id: number; - /** - * The `id` value of a column in the same project. - */ - column_id?: number; - /** - * Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`. - */ - position: string; - }; - export type ProjectsMoveColumnParams = { - column_id: number; - /** - * Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project. - */ - position: string; - }; - export type ProjectsRemoveCollaboratorParams = { - project_id: number; - - username: string; - }; - export type ProjectsReviewUserPermissionLevelParams = { - project_id: number; - - username: string; - }; - export type ProjectsUpdateParams = { - /** - * The description of the project. - */ - body?: string; - /** - * The name of the project. - */ - name?: string; - /** - * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator). - * - * **Note:** Updating a project's `organization_permission` requires `admin` access to the project. - * - * Can be one of: - * \* `read` - Organization members can read, but not write to or administer this project. - * \* `write` - Organization members can read and write, but not administer this project. - * \* `admin` - Organization members can read, write and administer this project. - * \* `none` - Organization members can only see this project if it is public. - */ - organization_permission?: string; - /** - * Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. - * - * Can be one of: - * \* `false` - Anyone can see the project. - * \* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account. - */ - private?: boolean; - - project_id: number; - /** - * State of the project. Either `open` or `closed`. - */ - state?: "open" | "closed"; - }; - export type ProjectsUpdateCardParams = { - /** - * Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card. - */ - archived?: boolean; - - card_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`. - */ - note?: string; - }; - export type ProjectsUpdateColumnParams = { - column_id: number; - /** - * The new name of the column. - */ - name: string; - }; - export type PullsCheckIfMergedParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type PullsCheckIfMergedParams = { - owner: string; - - pull_number: number; - - repo: string; - }; - export type PullsCreateParams = { - /** - * 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. - */ - base: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * 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. - */ - draft?: boolean; - /** - * 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`. - */ - head: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - - owner: string; - - repo: string; - /** - * The title of the new pull request. - */ - title: string; - }; - export type PullsCreateCommentParamsDeprecatedNumber = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; - }; - export type PullsCreateCommentParamsDeprecatedInReplyTo = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * 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. - * @deprecated "in_reply_to" parameter has been deprecated and will be removed in future - */ - in_reply_to?: number; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - - pull_number: number; - - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; - }; - export type PullsCreateCommentParams = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - - pull_number: number; - - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; - }; - export type PullsCreateCommentReplyParamsDeprecatedNumber = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; - }; - export type PullsCreateCommentReplyParamsDeprecatedInReplyTo = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * 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. - * @deprecated "in_reply_to" parameter has been deprecated and will be removed in future - */ - in_reply_to?: number; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - - pull_number: number; - - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; - }; - export type PullsCreateCommentReplyParams = { - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - - owner: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - - pull_number: number; - - repo: string; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; - }; - export type PullsCreateFromIssueParams = { - base: string; - - draft?: boolean; - - head: string; - - issue: number; - - maintainer_can_modify?: boolean; - - owner: string; - - repo: string; - }; - export type PullsCreateReviewParamsDeprecatedNumber = { - /** - * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. - */ - body?: string; - /** - * Use the following table to specify the location, destination, and contents of the draft review comment. - */ - comments?: PullsCreateReviewParamsComments[]; - /** - * 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. - */ - commit_id?: string; - /** - * 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://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready. - */ - event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type PullsCreateReviewParams = { - /** - * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. - */ - body?: string; - /** - * Use the following table to specify the location, destination, and contents of the draft review comment. - */ - comments?: PullsCreateReviewParamsComments[]; - /** - * 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. - */ - commit_id?: string; - /** - * 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://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready. - */ - event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - - owner: string; - - pull_number: number; - - repo: string; - }; - export type PullsCreateReviewCommentReplyParams = { - /** - * The text of the review comment. - */ - body: string; - - comment_id: number; - - owner: string; - - pull_number: number; - - repo: string; - }; - export type PullsCreateReviewRequestParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - /** - * An array of user `login`s that will be requested. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be requested. - */ - team_reviewers?: string[]; - }; - export type PullsCreateReviewRequestParams = { - owner: string; - - pull_number: number; - - repo: string; - /** - * An array of user `login`s that will be requested. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be requested. - */ - team_reviewers?: string[]; - }; - export type PullsDeleteCommentParams = { - comment_id: number; - - owner: string; - - repo: string; - }; - export type PullsDeletePendingReviewParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - - review_id: number; - }; - export type PullsDeletePendingReviewParams = { - owner: string; - - pull_number: number; - - repo: string; - - review_id: number; - }; - export type PullsDeleteReviewRequestParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - /** - * An array of user `login`s that will be removed. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be removed. - */ - team_reviewers?: string[]; - }; - export type PullsDeleteReviewRequestParams = { - owner: string; - - pull_number: number; - - repo: string; - /** - * An array of user `login`s that will be removed. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be removed. - */ - team_reviewers?: string[]; - }; - export type PullsDismissReviewParamsDeprecatedNumber = { - /** - * The message for the pull request review dismissal - */ - message: string; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - - review_id: number; - }; - export type PullsDismissReviewParams = { - /** - * The message for the pull request review dismissal - */ - message: string; - - owner: string; - - pull_number: number; - - repo: string; - - review_id: number; - }; - export type PullsGetParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type PullsGetParams = { - owner: string; - - pull_number: number; - - repo: string; - }; - export type PullsGetCommentParams = { - comment_id: number; - - owner: string; - - repo: string; - }; - export type PullsGetCommentsForReviewParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - - review_id: number; - }; - export type PullsGetCommentsForReviewParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - pull_number: number; - - repo: string; - - review_id: number; - }; - export type PullsGetReviewParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - - review_id: number; - }; - export type PullsGetReviewParams = { - owner: string; - - pull_number: number; - - repo: string; - - review_id: number; - }; - export type PullsListParams = { - /** - * Filter pulls by base branch name. Example: `gh-pages`. - */ - base?: string; - /** - * The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. - */ - direction?: "asc" | "desc"; - /** - * 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`. - */ - head?: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * 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). - */ - sort?: "created" | "updated" | "popularity" | "long-running"; - /** - * Either `open`, `closed`, or `all` to filter by state. - */ - state?: "open" | "closed" | "all"; - }; - export type PullsListCommentsParamsDeprecatedNumber = { - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - }; - export type PullsListCommentsParams = { - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - pull_number: number; - - repo: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - }; - export type PullsListCommentsForRepoParams = { - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - }; - export type PullsListCommitsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type PullsListCommitsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - pull_number: number; - - repo: string; - }; - export type PullsListFilesParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type PullsListFilesParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - pull_number: number; - - repo: string; - }; - export type PullsListReviewRequestsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type PullsListReviewRequestsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - pull_number: number; - - repo: string; - }; - export type PullsListReviewsParamsDeprecatedNumber = { - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type PullsListReviewsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - pull_number: number; - - repo: string; - }; - export type PullsMergeParamsDeprecatedNumber = { - /** - * Extra detail to append to automatic commit message. - */ - commit_message?: string; - /** - * Title for the automatic commit message. - */ - commit_title?: string; - /** - * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. - */ - merge_method?: "merge" | "squash" | "rebase"; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - /** - * SHA that pull request head must match to allow merge. - */ - sha?: string; - }; - export type PullsMergeParams = { - /** - * Extra detail to append to automatic commit message. - */ - commit_message?: string; - /** - * Title for the automatic commit message. - */ - commit_title?: string; - /** - * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. - */ - merge_method?: "merge" | "squash" | "rebase"; - - owner: string; - - pull_number: number; - - repo: string; - /** - * SHA that pull request head must match to allow merge. - */ - sha?: string; - }; - export type PullsSubmitReviewParamsDeprecatedNumber = { - /** - * The body text of the pull request review - */ - body?: string; - /** - * 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. - */ - event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - - review_id: number; - }; - export type PullsSubmitReviewParams = { - /** - * The body text of the pull request review - */ - body?: string; - /** - * 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. - */ - event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - - owner: string; - - pull_number: number; - - repo: string; - - review_id: number; - }; - export type PullsUpdateParamsDeprecatedNumber = { - /** - * 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. - */ - base?: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - /** - * State of this Pull Request. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the pull request. - */ - title?: string; - }; - export type PullsUpdateParams = { - /** - * 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. - */ - base?: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - - owner: string; - - pull_number: number; - - repo: string; - /** - * State of this Pull Request. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The title of the pull request. - */ - title?: string; - }; - export type PullsUpdateBranchParams = { - /** - * 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 on a repository](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. - */ - expected_head_sha?: string; - - owner: string; - - pull_number: number; - - repo: string; - }; - export type PullsUpdateCommentParams = { - /** - * The text of the reply to the review comment. - */ - body: string; - - comment_id: number; - - owner: string; - - repo: string; - }; - export type PullsUpdateReviewParamsDeprecatedNumber = { - /** - * The body text of the pull request review. - */ - body: string; - /** - * @deprecated "number" parameter renamed to "pull_number" - */ - number: number; - - owner: string; - - repo: string; - - review_id: number; - }; - export type PullsUpdateReviewParams = { - /** - * The body text of the pull request review. - */ - body: string; - - owner: string; - - pull_number: number; - - repo: string; - - review_id: number; - }; - export type ReactionsCreateForCommitCommentParams = { - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - owner: string; - - repo: string; - }; - export type ReactionsCreateForIssueParamsDeprecatedNumber = { - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - - repo: string; - }; - export type ReactionsCreateForIssueParams = { - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - issue_number: number; - - owner: string; - - repo: string; - }; - export type ReactionsCreateForIssueCommentParams = { - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - owner: string; - - repo: string; - }; - export type ReactionsCreateForPullRequestReviewCommentParams = { - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - owner: string; - - repo: string; - }; - export type ReactionsCreateForTeamDiscussionParams = { - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - - team_id: number; - }; - export type ReactionsCreateForTeamDiscussionCommentParams = { - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - - team_id: number; - }; - export type ReactionsCreateForTeamDiscussionCommentInOrgParams = { - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - - org: string; - - team_slug: string; - }; - export type ReactionsCreateForTeamDiscussionCommentLegacyParams = { - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - - team_id: number; - }; - export type ReactionsCreateForTeamDiscussionInOrgParams = { - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - - org: string; - - team_slug: string; - }; - export type ReactionsCreateForTeamDiscussionLegacyParams = { - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - - team_id: number; - }; - export type ReactionsDeleteParams = { - reaction_id: number; - }; - export type ReactionsListForCommitCommentParams = { - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReactionsListForIssueParamsDeprecatedNumber = { - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - /** - * @deprecated "number" parameter renamed to "issue_number" - */ - number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReactionsListForIssueParams = { - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - issue_number: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReactionsListForIssueCommentParams = { - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReactionsListForPullRequestReviewCommentParams = { - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReactionsListForTeamDiscussionParams = { - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type ReactionsListForTeamDiscussionCommentParams = { - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type ReactionsListForTeamDiscussionCommentInOrgParams = { - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_slug: string; - }; - export type ReactionsListForTeamDiscussionCommentLegacyParams = { - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type ReactionsListForTeamDiscussionInOrgParams = { - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_slug: string; - }; - export type ReactionsListForTeamDiscussionLegacyParams = { - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: - | "+1" - | "-1" - | "laugh" - | "confused" - | "heart" - | "hooray" - | "rocket" - | "eyes"; - - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type ReposAcceptInvitationParams = { - invitation_id: number; - }; - export type ReposAddCollaboratorParams = { - owner: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; - - repo: string; - - username: string; - }; - export type ReposAddDeployKeyParams = { - /** - * The contents of the key. - */ - key: string; - - owner: string; - /** - * 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/)." - */ - read_only?: boolean; - - repo: string; - /** - * A name for the key. - */ - title?: string; - }; - export type ReposAddProtectedBranchAdminEnforcementParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposAddProtectedBranchAppRestrictionsParams = { - apps: string[]; - - branch: string; - - owner: string; - - repo: string; - }; - export type ReposAddProtectedBranchRequiredSignaturesParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposAddProtectedBranchRequiredStatusChecksContextsParams = { - branch: string; - - contexts: string[]; - - owner: string; - - repo: string; - }; - export type ReposAddProtectedBranchTeamRestrictionsParams = { - branch: string; - - owner: string; - - repo: string; - - teams: string[]; - }; - export type ReposAddProtectedBranchUserRestrictionsParams = { - branch: string; - - owner: string; - - repo: string; - - users: string[]; - }; - export type ReposCheckCollaboratorParams = { - owner: string; - - repo: string; - - username: string; - }; - export type ReposCheckVulnerabilityAlertsParams = { - owner: string; - - repo: string; - }; - export type ReposCompareCommitsParams = { - base: string; - - head: string; - - owner: string; - - repo: string; - }; - export type ReposCreateCommitCommentParamsDeprecatedSha = { - /** - * The contents of the comment. - */ - body: string; - - owner: string; - /** - * Relative path of the file to comment on. - */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - - repo: string; - /** - * @deprecated "sha" parameter renamed to "commit_sha" - */ - sha: string; - }; - export type ReposCreateCommitCommentParamsDeprecatedLine = { - /** - * The contents of the comment. - */ - body: string; - - commit_sha: string; - /** - * **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. - * @deprecated "line" parameter has been deprecated and will be removed in future - */ - line?: number; - - owner: string; - /** - * Relative path of the file to comment on. - */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - - repo: string; - }; - export type ReposCreateCommitCommentParams = { - /** - * The contents of the comment. - */ - body: string; - - commit_sha: string; - - owner: string; - /** - * Relative path of the file to comment on. - */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - - repo: string; - }; - export type ReposCreateDeploymentParams = { - /** - * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. - */ - auto_merge?: boolean; - /** - * Short description of the deployment. - */ - description?: string; - /** - * Name for the target deployment environment (e.g., `production`, `staging`, `qa`). - */ - environment?: string; - - owner: string; - /** - * JSON payload with extra information about the deployment. - */ - payload?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - production_environment?: boolean; - /** - * The ref to deploy. This can be a branch, tag, or SHA. - */ - ref: string; - - repo: string; - /** - * The [status](https://developer.github.com/v3/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. - */ - required_contexts?: string[]; - /** - * Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - transient_environment?: boolean; - }; - export type ReposCreateDeploymentStatusParams = { - /** - * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - auto_inactive?: boolean; - - deployment_id: number; - /** - * A short description of the status. The maximum description length is 140 characters. - */ - description?: string; - /** - * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - environment?: "production" | "staging" | "qa"; - /** - * Sets the URL for accessing your environment. Default: `""` - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - environment_url?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - log_url?: string; - - owner: string; - - repo: string; - /** - * 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://developer.github.com/v3/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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - state: - | "error" - | "failure" - | "inactive" - | "in_progress" - | "queued" - | "pending" - | "success"; - /** - * 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`. - */ - target_url?: string; - }; - export type ReposCreateDispatchEventParams = { - /** - * JSON payload with extra information about the webhook event that your action or worklow may use. - */ - client_payload?: ReposCreateDispatchEventParamsClientPayload; - /** - * **Required:** A custom webhook event name. - */ - event_type?: string; - - owner: string; - - repo: string; - }; - export type ReposCreateFileParams = { - /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. - */ - author?: ReposCreateFileParamsAuthor; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * The person that committed the file. Default: the authenticated user. - */ - committer?: ReposCreateFileParamsCommitter; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * The commit message. - */ - message: string; - - owner: string; - - path: string; - - repo: string; - /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. - */ - sha?: string; - }; - export type ReposCreateForAuthenticatedUserParams = { - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; - /** - * A short description of the repository. - */ - description?: string; - /** - * 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". - */ - gitignore_template?: string; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * 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". - */ - license_template?: string; - /** - * The name of the repository. - */ - name: string; - /** - * Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account. - */ - private?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. - * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - }; - export type ReposCreateForkParams = { - /** - * Optional parameter to specify the organization name if forking into an organization. - */ - organization?: string; - - owner: string; - - repo: string; - }; - export type ReposCreateHookParams = { - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). - */ - config: ReposCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. - */ - name?: string; - - owner: string; - - repo: string; - }; - export type ReposCreateInOrgParams = { - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; - /** - * A short description of the repository. - */ - description?: string; - /** - * 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". - */ - gitignore_template?: string; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * 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". - */ - license_template?: string; - /** - * The name of the repository. - */ - name: string; - - org: string; - /** - * Either `true` to create a private repository or `false` to create a public one. Creating private repositories requires a paid GitHub account. - */ - private?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. - * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - }; - export type ReposCreateOrUpdateFileParams = { - /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. - */ - author?: ReposCreateOrUpdateFileParamsAuthor; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * The person that committed the file. Default: the authenticated user. - */ - committer?: ReposCreateOrUpdateFileParamsCommitter; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * The commit message. - */ - message: string; - - owner: string; - - path: string; - - repo: string; - /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. - */ - sha?: string; - }; - export type ReposCreateReleaseParams = { - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` to create a draft (unpublished) release, `false` to create a published one. - */ - draft?: boolean; - /** - * The name of the release. - */ - name?: string; - - owner: string; - /** - * `true` to identify the release as a prerelease. `false` to identify the release as a full release. - */ - prerelease?: boolean; - - repo: string; - /** - * The name of the tag. - */ - tag_name: string; - /** - * 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`). - */ - target_commitish?: string; - }; - export type ReposCreateStatusParams = { - /** - * A string label to differentiate this status from the status of other systems. - */ - context?: string; - /** - * A short description of the status. - */ - description?: string; - - owner: string; - - repo: string; - - sha: string; - /** - * The state of the status. Can be one of `error`, `failure`, `pending`, or `success`. - */ - state: "error" | "failure" | "pending" | "success"; - /** - * 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` - */ - target_url?: string; - }; - export type ReposCreateUsingTemplateParams = { - /** - * A short description of the new repository. - */ - description?: string; - /** - * The name of the new repository. - */ - name: string; - /** - * 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. - */ - owner?: string; - /** - * Either `true` to create a new private repository or `false` to create a new public one. - */ - private?: boolean; - - template_owner: string; - - template_repo: string; - }; - export type ReposDeclineInvitationParams = { - invitation_id: number; - }; - export type ReposDeleteParams = { - owner: string; - - repo: string; - }; - export type ReposDeleteCommitCommentParams = { - comment_id: number; - - owner: string; - - repo: string; - }; - export type ReposDeleteDownloadParams = { - download_id: number; - - owner: string; - - repo: string; - }; - export type ReposDeleteFileParams = { - /** - * object containing information about the author. - */ - author?: ReposDeleteFileParamsAuthor; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * object containing information about the committer. - */ - committer?: ReposDeleteFileParamsCommitter; - /** - * The commit message. - */ - message: string; - - owner: string; - - path: string; - - repo: string; - /** - * The blob SHA of the file being replaced. - */ - sha: string; - }; - export type ReposDeleteHookParams = { - hook_id: number; - - owner: string; - - repo: string; - }; - export type ReposDeleteInvitationParams = { - invitation_id: number; - - owner: string; - - repo: string; - }; - export type ReposDeleteReleaseParams = { - owner: string; - - release_id: number; - - repo: string; - }; - export type ReposDeleteReleaseAssetParams = { - asset_id: number; - - owner: string; - - repo: string; - }; - export type ReposDisableAutomatedSecurityFixesParams = { - owner: string; - - repo: string; - }; - export type ReposDisablePagesSiteParams = { - owner: string; - - repo: string; - }; - export type ReposDisableVulnerabilityAlertsParams = { - owner: string; - - repo: string; - }; - export type ReposEnableAutomatedSecurityFixesParams = { - owner: string; - - repo: string; - }; - export type ReposEnablePagesSiteParams = { - owner: string; - - repo: string; - - source?: ReposEnablePagesSiteParamsSource; - }; - export type ReposEnableVulnerabilityAlertsParams = { - owner: string; - - repo: string; - }; - export type ReposGetParams = { - owner: string; - - repo: string; - }; - export type ReposGetAppsWithAccessToProtectedBranchParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposGetArchiveLinkParams = { - archive_format: string; - - owner: string; - - ref: string; - - repo: string; - }; - export type ReposGetBranchParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposGetBranchProtectionParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposGetClonesParams = { - owner: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; - - repo: string; - }; - export type ReposGetCodeFrequencyStatsParams = { - owner: string; - - repo: string; - }; - export type ReposGetCollaboratorPermissionLevelParams = { - owner: string; - - repo: string; - - username: string; - }; - export type ReposGetCombinedStatusForRefParams = { - owner: string; - - ref: string; - - repo: string; - }; - export type ReposGetCommitParamsDeprecatedSha = { - owner: string; - - repo: string; - /** - * @deprecated "sha" parameter renamed to "ref" - */ - sha: string; - }; - export type ReposGetCommitParamsDeprecatedCommitSha = { - /** - * @deprecated "commit_sha" parameter renamed to "ref" - */ - commit_sha: string; - - owner: string; - - repo: string; - }; - export type ReposGetCommitParams = { - owner: string; - - ref: string; - - repo: string; - }; - export type ReposGetCommitActivityStatsParams = { - owner: string; - - repo: string; - }; - export type ReposGetCommitCommentParams = { - comment_id: number; - - owner: string; - - repo: string; - }; - export type ReposGetCommitRefShaParams = { - owner: string; - - ref: string; - - repo: string; - }; - export type ReposGetContentsParams = { - owner: string; - - path: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; - - repo: string; - }; - export type ReposGetContributorsStatsParams = { - owner: string; - - repo: string; - }; - export type ReposGetDeployKeyParams = { - key_id: number; - - owner: string; - - repo: string; - }; - export type ReposGetDeploymentParams = { - deployment_id: number; - - owner: string; - - repo: string; - }; - export type ReposGetDeploymentStatusParams = { - deployment_id: number; - - owner: string; - - repo: string; - - status_id: number; - }; - export type ReposGetDownloadParams = { - download_id: number; - - owner: string; - - repo: string; - }; - export type ReposGetHookParams = { - hook_id: number; - - owner: string; - - repo: string; - }; - export type ReposGetLatestPagesBuildParams = { - owner: string; - - repo: string; - }; - export type ReposGetLatestReleaseParams = { - owner: string; - - repo: string; - }; - export type ReposGetPagesParams = { - owner: string; - - repo: string; - }; - export type ReposGetPagesBuildParams = { - build_id: number; - - owner: string; - - repo: string; - }; - export type ReposGetParticipationStatsParams = { - owner: string; - - repo: string; - }; - export type ReposGetProtectedBranchAdminEnforcementParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposGetProtectedBranchPullRequestReviewEnforcementParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposGetProtectedBranchRequiredSignaturesParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposGetProtectedBranchRequiredStatusChecksParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposGetProtectedBranchRestrictionsParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposGetPunchCardStatsParams = { - owner: string; - - repo: string; - }; - export type ReposGetReadmeParams = { - owner: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; - - repo: string; - }; - export type ReposGetReleaseParams = { - owner: string; - - release_id: number; - - repo: string; - }; - export type ReposGetReleaseAssetParams = { - asset_id: number; - - owner: string; - - repo: string; - }; - export type ReposGetReleaseByTagParams = { - owner: string; - - repo: string; - - tag: string; - }; - export type ReposGetTeamsWithAccessToProtectedBranchParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposGetTopPathsParams = { - owner: string; - - repo: string; - }; - export type ReposGetTopReferrersParams = { - owner: string; - - repo: string; - }; - export type ReposGetUsersWithAccessToProtectedBranchParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposGetViewsParams = { - owner: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; - - repo: string; - }; - export type ReposListParams = { - /** - * 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. - */ - affiliation?: string; - /** - * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `all`, `owner`, `public`, `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**. - */ - type?: "all" | "owner" | "public" | "private" | "member"; - /** - * Can be one of `all`, `public`, or `private`. - */ - visibility?: "all" | "public" | "private"; - }; - export type ReposListAppsWithAccessToProtectedBranchParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposListAssetsForReleaseParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - release_id: number; - - repo: string; - }; - export type ReposListBranchesParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. - */ - protected?: boolean; - - repo: string; - }; - export type ReposListBranchesForHeadCommitParams = { - commit_sha: string; - - owner: string; - - repo: string; - }; - export type ReposListCollaboratorsParams = { - /** - * 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. - */ - affiliation?: "outside" | "direct" | "all"; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListCommentsForCommitParamsDeprecatedRef = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * @deprecated "ref" parameter renamed to "commit_sha" - */ - ref: string; - - repo: string; - }; - export type ReposListCommentsForCommitParams = { - commit_sha: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListCommitCommentsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListCommitsParams = { - /** - * GitHub login or email address by which to filter by commit author. - */ - author?: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Only commits containing this file path will be returned. - */ - path?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`). - */ - sha?: string; - /** - * Only commits after 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`. - */ - since?: string; - /** - * 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`. - */ - until?: string; - }; - export type ReposListContributorsParams = { - /** - * Set to `1` or `true` to include anonymous contributors in results. - */ - anon?: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListDeployKeysParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListDeploymentStatusesParams = { - deployment_id: number; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListDeploymentsParams = { - /** - * The name of the environment that was deployed to (e.g., `staging` or `production`). - */ - environment?: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * The name of the ref. This can be a branch, tag, or SHA. - */ - ref?: string; - - repo: string; - /** - * The SHA recorded at creation time. - */ - sha?: string; - /** - * The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - }; - export type ReposListDownloadsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListForOrgParams = { - /** - * Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc` - */ - direction?: "asc" | "desc"; - - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `private`, `forks`, `sources`, `member`, `internal`. Default: `all`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `type` can also be `internal`. - */ - type?: - | "all" - | "public" - | "private" - | "forks" - | "sources" - | "member" - | "internal"; - }; - export type ReposListForUserParams = { - /** - * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `all`, `owner`, `member`. - */ - type?: "all" | "owner" | "member"; - - username: string; - }; - export type ReposListForksParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - /** - * The sort order. Can be either `newest`, `oldest`, or `stargazers`. - */ - sort?: "newest" | "oldest" | "stargazers"; - }; - export type ReposListHooksParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListInvitationsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListInvitationsForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type ReposListLanguagesParams = { - owner: string; - - repo: string; - }; - export type ReposListPagesBuildsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListProtectedBranchRequiredStatusChecksContextsParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposListProtectedBranchTeamRestrictionsParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposListProtectedBranchUserRestrictionsParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposListPublicParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * The integer ID of the last repository that you've seen. - */ - since?: number; - }; - export type ReposListPullRequestsAssociatedWithCommitParams = { - commit_sha: string; - - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListReleasesParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListStatusesForRefParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - ref: string; - - repo: string; - }; - export type ReposListTagsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListTeamsParams = { - owner: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - repo: string; - }; - export type ReposListTeamsWithAccessToProtectedBranchParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposListTopicsParams = { - owner: string; - - repo: string; - }; - export type ReposListUsersWithAccessToProtectedBranchParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposMergeParams = { - /** - * The name of the base branch that the head will be merged into. - */ - base: string; - /** - * Commit message to use for the merge commit. If omitted, a default message will be used. - */ - commit_message?: string; - /** - * The head to merge. This can be a branch name or a commit SHA1. - */ - head: string; - - owner: string; - - repo: string; - }; - export type ReposPingHookParams = { - hook_id: number; - - owner: string; - - repo: string; - }; - export type ReposRemoveBranchProtectionParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposRemoveCollaboratorParams = { - owner: string; - - repo: string; - - username: string; - }; - export type ReposRemoveDeployKeyParams = { - key_id: number; - - owner: string; - - repo: string; - }; - export type ReposRemoveProtectedBranchAdminEnforcementParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposRemoveProtectedBranchAppRestrictionsParams = { - apps: string[]; - - branch: string; - - owner: string; - - repo: string; - }; - export type ReposRemoveProtectedBranchPullRequestReviewEnforcementParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposRemoveProtectedBranchRequiredSignaturesParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposRemoveProtectedBranchRequiredStatusChecksParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposRemoveProtectedBranchRequiredStatusChecksContextsParams = { - branch: string; - - contexts: string[]; - - owner: string; - - repo: string; - }; - export type ReposRemoveProtectedBranchRestrictionsParams = { - branch: string; - - owner: string; - - repo: string; - }; - export type ReposRemoveProtectedBranchTeamRestrictionsParams = { - branch: string; - - owner: string; - - repo: string; - - teams: string[]; - }; - export type ReposRemoveProtectedBranchUserRestrictionsParams = { - branch: string; - - owner: string; - - repo: string; - - users: string[]; - }; - export type ReposReplaceProtectedBranchAppRestrictionsParams = { - apps: string[]; - - branch: string; - - owner: string; - - repo: string; - }; - export type ReposReplaceProtectedBranchRequiredStatusChecksContextsParams = { - branch: string; - - contexts: string[]; - - owner: string; - - repo: string; - }; - export type ReposReplaceProtectedBranchTeamRestrictionsParams = { - branch: string; - - owner: string; - - repo: string; - - teams: string[]; - }; - export type ReposReplaceProtectedBranchUserRestrictionsParams = { - branch: string; - - owner: string; - - repo: string; - - users: string[]; - }; - export type ReposReplaceTopicsParams = { - /** - * 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. - */ - names: string[]; - - owner: string; - - repo: string; - }; - export type ReposRequestPageBuildParams = { - owner: string; - - repo: string; - }; - export type ReposRetrieveCommunityProfileMetricsParams = { - owner: string; - - repo: string; - }; - export type ReposTestPushHookParams = { - hook_id: number; - - owner: string; - - repo: string; - }; - export type ReposTransferParams = { - /** - * **Required:** The username or organization name the repository will be transferred to. - */ - new_owner?: string; - - owner: string; - - repo: string; - /** - * ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. - */ - team_ids?: number[]; - }; - export type ReposUpdateParams = { - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API. - */ - archived?: boolean; - /** - * Updates the default branch for this repository. - */ - default_branch?: string; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; - /** - * A short description of the repository. - */ - description?: string; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * The name of the repository. - */ - name?: string; - - owner: string; - /** - * Either `true` to make the repository private or `false` to make it public. Creating private repositories requires a paid GitHub account. 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. - */ - private?: boolean; - - repo: string; - /** - * Can be `public` or `private`. If your organization is associated with an enterprise account using GitHub Enterprise Cloud, `visibility` can also be `internal`. The `visibility` parameter overrides the `private` parameter when you use both along with the `nebula-preview` preview header. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - }; - export type ReposUpdateBranchProtectionParams = { - /** - * 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. - */ - allow_deletions?: boolean; - /** - * 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_force_pushes?: boolean | null; - - branch: string; - /** - * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. - */ - enforce_admins: boolean | null; - - owner: string; - - repo: string; - /** - * 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. - */ - required_linear_history?: boolean; - /** - * Require at least one approving review on a pull request, before merging. Set to `null` to disable. - */ - required_pull_request_reviews: ReposUpdateBranchProtectionParamsRequiredPullRequestReviews | null; - /** - * Require status checks to pass before merging. Set to `null` to disable. - */ - required_status_checks: ReposUpdateBranchProtectionParamsRequiredStatusChecks | null; - /** - * 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. - */ - restrictions: ReposUpdateBranchProtectionParamsRestrictions | null; - }; - export type ReposUpdateCommitCommentParams = { - /** - * The contents of the comment - */ - body: string; - - comment_id: number; - - owner: string; - - repo: string; - }; - export type ReposUpdateFileParams = { - /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. - */ - author?: ReposUpdateFileParamsAuthor; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * The person that committed the file. Default: the authenticated user. - */ - committer?: ReposUpdateFileParamsCommitter; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * The commit message. - */ - message: string; - - owner: string; - - path: string; - - repo: string; - /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. - */ - sha?: string; - }; - export type ReposUpdateHookParams = { - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; - /** - * Determines a list of events to be added to the list of events that the Hook triggers for. - */ - add_events?: string[]; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). - */ - config?: ReposUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events. - */ - events?: string[]; - - hook_id: number; - - owner: string; - /** - * Determines a list of events to be removed from the list of events that the Hook triggers for. - */ - remove_events?: string[]; - - repo: string; - }; - export type ReposUpdateInformationAboutPagesSiteParams = { - /** - * Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/)." - */ - cname?: string; - - owner: string; - - repo: string; - /** - * 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"`. - */ - source?: '"gh-pages"' | '"master"' | '"master /docs"'; - }; - export type ReposUpdateInvitationParams = { - invitation_id: number; - - owner: string; - /** - * The permissions that the associated user will have on the repository. Valid values are `read`, `write`, and `admin`. - */ - permissions?: "read" | "write" | "admin"; - - repo: string; - }; - export type ReposUpdateProtectedBranchPullRequestReviewEnforcementParams = { - branch: string; - /** - * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. - */ - dismiss_stale_reviews?: boolean; - /** - * 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. - */ - dismissal_restrictions?: ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions; - - owner: string; - - repo: string; - /** - * Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed. - */ - require_code_owner_reviews?: boolean; - /** - * Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6. - */ - required_approving_review_count?: number; - }; - export type ReposUpdateProtectedBranchRequiredStatusChecksParams = { - branch: string; - /** - * The list of status checks to require in order to merge into this branch - */ - contexts?: string[]; - - owner: string; - - repo: string; - /** - * Require branches to be up to date before merging. - */ - strict?: boolean; - }; - export type ReposUpdateReleaseParams = { - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` makes the release a draft, and `false` publishes the release. - */ - draft?: boolean; - /** - * The name of the release. - */ - name?: string; - - owner: string; - /** - * `true` to identify the release as a prerelease, `false` to identify the release as a full release. - */ - prerelease?: boolean; - - release_id: number; - - repo: string; - /** - * The name of the tag. - */ - tag_name?: string; - /** - * 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`). - */ - target_commitish?: string; - }; - export type ReposUpdateReleaseAssetParams = { - asset_id: number; - /** - * An alternate short description of the asset. Used in place of the filename. - */ - label?: string; - /** - * The file name of the asset. - */ - name?: string; - - owner: string; - - repo: string; - }; - export type ReposUploadReleaseAssetParamsDeprecatedFile = { - /** - * @deprecated "file" parameter renamed to "data" - */ - file: string | object; - - headers: ReposUploadReleaseAssetParamsHeaders; - /** - * An alternate short description of the asset. Used in place of the filename. This should be set in a URI query parameter. - */ - label?: string; - /** - * The file name of the asset. This should be set in a URI query parameter. - */ - name: string; - /** - * The `upload_url` key returned from creating or getting a release - */ - url: string; - }; - export type ReposUploadReleaseAssetParams = { - data: string | object; - - headers: ReposUploadReleaseAssetParamsHeaders; - /** - * An alternate short description of the asset. Used in place of the filename. This should be set in a URI query parameter. - */ - label?: string; - /** - * The file name of the asset. This should be set in a URI query parameter. - */ - name: string; - /** - * The `upload_url` key returned from creating or getting a release - */ - url: string; - }; - export type SearchCodeParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching code](https://help.github.com/articles/searching-code/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "indexed"; - }; - export type SearchCommitsParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching commits](https://help.github.com/articles/searching-commits/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "author-date" | "committer-date"; - }; - export type SearchEmailLegacyParams = { - /** - * The email address. - */ - email: string; - }; - export type SearchIssuesParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/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. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: - | "comments" - | "reactions" - | "reactions-+1" - | "reactions--1" - | "reactions-smile" - | "reactions-thinking_face" - | "reactions-heart" - | "reactions-tada" - | "interactions" - | "created" - | "updated"; - }; - export type SearchIssuesAndPullRequestsParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/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. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: - | "comments" - | "reactions" - | "reactions-+1" - | "reactions--1" - | "reactions-smile" - | "reactions-thinking_face" - | "reactions-heart" - | "reactions-tada" - | "interactions" - | "created" - | "updated"; - }; - export type SearchIssuesLegacyParams = { - /** - * The search term. - */ - keyword: string; - - owner: string; - - repository: string; - /** - * Indicates the state of the issues to return. Can be either `open` or `closed`. - */ - state: "open" | "closed"; - }; - export type SearchLabelsParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). - */ - q: string; - /** - * The id of the repository. - */ - repository_id: number; - /** - * Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "created" | "updated"; - }; - export type SearchReposParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "stars" | "forks" | "help-wanted-issues" | "updated"; - }; - export type SearchReposLegacyParams = { - /** - * The search term. - */ - keyword: string; - /** - * Filter results by language. - */ - language?: string; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The page number to fetch. - */ - start_page?: string; - }; - export type SearchTopicsParams = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). - */ - q: string; - }; - export type SearchUsersParams = { - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching users](https://help.github.com/articles/searching-users/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "followers" | "repositories" | "joined"; - }; - export type SearchUsersLegacyParams = { - /** - * The search term. - */ - keyword: string; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The page number to fetch. - */ - start_page?: string; - }; - export type TeamsAddMemberParams = { - team_id: number; - - username: string; - }; - export type TeamsAddMemberLegacyParams = { - team_id: number; - - username: string; - }; - export type TeamsAddOrUpdateMembershipParams = { - /** - * 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. - */ - role?: "member" | "maintainer"; - - team_id: number; - - username: string; - }; - export type TeamsAddOrUpdateMembershipInOrgParams = { - org: string; - /** - * 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. - */ - role?: "member" | "maintainer"; - - team_slug: string; - - username: string; - }; - export type TeamsAddOrUpdateMembershipLegacyParams = { - /** - * 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. - */ - role?: "member" | "maintainer"; - - team_id: number; - - username: string; - }; - export type TeamsAddOrUpdateProjectParams = { - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; - - project_id: number; - - team_id: number; - }; - export type TeamsAddOrUpdateProjectInOrgParams = { - org: string; - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; - - project_id: number; - - team_slug: string; - }; - export type TeamsAddOrUpdateProjectLegacyParams = { - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; - - project_id: number; - - team_id: number; - }; - export type TeamsAddOrUpdateRepoParams = { - owner: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; - - repo: string; - - team_id: number; - }; - export type TeamsAddOrUpdateRepoInOrgParams = { - org: string; - - owner: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; - - repo: string; - - team_slug: string; - }; - export type TeamsAddOrUpdateRepoLegacyParams = { - owner: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; - - repo: string; - - team_id: number; - }; - export type TeamsCheckManagesRepoParams = { - owner: string; - - repo: string; - - team_id: number; - }; - export type TeamsCheckManagesRepoInOrgParams = { - org: string; - - owner: string; - - repo: string; - - team_slug: string; - }; - export type TeamsCheckManagesRepoLegacyParams = { - owner: string; - - repo: string; - - team_id: number; - }; - export type TeamsCreateParamsDeprecatedPermission = { - /** - * The description of the team. - */ - description?: string; - /** - * List GitHub IDs for organization members who will become team maintainers. - */ - maintainers?: string[]; - /** - * The name of the team. - */ - name: string; - - org: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * **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. - * @deprecated "permission" parameter has been deprecated and will be removed in future - */ - permission?: string; - /** - * 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` - */ - privacy?: "secret" | "closed"; - /** - * The full name (e.g., "organization-name/repository-name") of repositories to add the team to. - */ - repo_names?: string[]; - }; - export type TeamsCreateParams = { - /** - * The description of the team. - */ - description?: string; - /** - * List GitHub IDs for organization members who will become team maintainers. - */ - maintainers?: string[]; - /** - * The name of the team. - */ - name: string; - - org: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * 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` - */ - privacy?: "secret" | "closed"; - /** - * The full name (e.g., "organization-name/repository-name") of repositories to add the team to. - */ - repo_names?: string[]; - }; - export type TeamsCreateDiscussionParams = { - /** - * The discussion post's body text. - */ - body: string; - /** - * 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. - */ - private?: boolean; - - team_id: number; - /** - * The discussion post's title. - */ - title: string; - }; - export type TeamsCreateDiscussionCommentParams = { - /** - * The discussion comment's body text. - */ - body: string; - - discussion_number: number; - - team_id: number; - }; - export type TeamsCreateDiscussionCommentInOrgParams = { - /** - * The discussion comment's body text. - */ - body: string; - - discussion_number: number; - - org: string; - - team_slug: string; - }; - export type TeamsCreateDiscussionCommentLegacyParams = { - /** - * The discussion comment's body text. - */ - body: string; - - discussion_number: number; - - team_id: number; - }; - export type TeamsCreateDiscussionInOrgParams = { - /** - * The discussion post's body text. - */ - body: string; - - org: string; - /** - * 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. - */ - private?: boolean; - - team_slug: string; - /** - * The discussion post's title. - */ - title: string; - }; - export type TeamsCreateDiscussionLegacyParams = { - /** - * The discussion post's body text. - */ - body: string; - /** - * 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. - */ - private?: boolean; - - team_id: number; - /** - * The discussion post's title. - */ - title: string; - }; - export type TeamsDeleteParams = { - team_id: number; - }; - export type TeamsDeleteDiscussionParams = { - discussion_number: number; - - team_id: number; - }; - export type TeamsDeleteDiscussionCommentParams = { - comment_number: number; - - discussion_number: number; - - team_id: number; - }; - export type TeamsDeleteDiscussionCommentInOrgParams = { - comment_number: number; - - discussion_number: number; - - org: string; - - team_slug: string; - }; - export type TeamsDeleteDiscussionCommentLegacyParams = { - comment_number: number; - - discussion_number: number; - - team_id: number; - }; - export type TeamsDeleteDiscussionInOrgParams = { - discussion_number: number; - - org: string; - - team_slug: string; - }; - export type TeamsDeleteDiscussionLegacyParams = { - discussion_number: number; - - team_id: number; - }; - export type TeamsDeleteInOrgParams = { - org: string; - - team_slug: string; - }; - export type TeamsDeleteLegacyParams = { - team_id: number; - }; - export type TeamsGetParams = { - team_id: number; - }; - export type TeamsGetByNameParams = { - org: string; - - team_slug: string; - }; - export type TeamsGetDiscussionParams = { - discussion_number: number; - - team_id: number; - }; - export type TeamsGetDiscussionCommentParams = { - comment_number: number; - - discussion_number: number; - - team_id: number; - }; - export type TeamsGetDiscussionCommentInOrgParams = { - comment_number: number; - - discussion_number: number; - - org: string; - - team_slug: string; - }; - export type TeamsGetDiscussionCommentLegacyParams = { - comment_number: number; - - discussion_number: number; - - team_id: number; - }; - export type TeamsGetDiscussionInOrgParams = { - discussion_number: number; - - org: string; - - team_slug: string; - }; - export type TeamsGetDiscussionLegacyParams = { - discussion_number: number; - - team_id: number; - }; - export type TeamsGetLegacyParams = { - team_id: number; - }; - export type TeamsGetMemberParams = { - team_id: number; - - username: string; - }; - export type TeamsGetMemberLegacyParams = { - team_id: number; - - username: string; - }; - export type TeamsGetMembershipParams = { - team_id: number; - - username: string; - }; - export type TeamsGetMembershipInOrgParams = { - org: string; - - team_slug: string; - - username: string; - }; - export type TeamsGetMembershipLegacyParams = { - team_id: number; - - username: string; - }; - export type TeamsListParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type TeamsListChildParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListChildInOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_slug: string; - }; - export type TeamsListChildLegacyParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListDiscussionCommentsParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListDiscussionCommentsInOrgParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - - discussion_number: number; - - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_slug: string; - }; - export type TeamsListDiscussionCommentsLegacyParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - - discussion_number: number; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListDiscussionsParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListDiscussionsInOrgParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_slug: string; - }; - export type TeamsListDiscussionsLegacyParams = { - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type TeamsListMembersParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - - team_id: number; - }; - export type TeamsListMembersInOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - - team_slug: string; - }; - export type TeamsListMembersLegacyParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - - team_id: number; - }; - export type TeamsListPendingInvitationsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListPendingInvitationsInOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_slug: string; - }; - export type TeamsListPendingInvitationsLegacyParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListProjectsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListProjectsInOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_slug: string; - }; - export type TeamsListProjectsLegacyParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListReposParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsListReposInOrgParams = { - org: string; - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_slug: string; - }; - export type TeamsListReposLegacyParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - team_id: number; - }; - export type TeamsRemoveMemberParams = { - team_id: number; - - username: string; - }; - export type TeamsRemoveMemberLegacyParams = { - team_id: number; - - username: string; - }; - export type TeamsRemoveMembershipParams = { - team_id: number; - - username: string; - }; - export type TeamsRemoveMembershipInOrgParams = { - org: string; - - team_slug: string; - - username: string; - }; - export type TeamsRemoveMembershipLegacyParams = { - team_id: number; - - username: string; - }; - export type TeamsRemoveProjectParams = { - project_id: number; - - team_id: number; - }; - export type TeamsRemoveProjectInOrgParams = { - org: string; - - project_id: number; - - team_slug: string; - }; - export type TeamsRemoveProjectLegacyParams = { - project_id: number; - - team_id: number; - }; - export type TeamsRemoveRepoParams = { - owner: string; - - repo: string; - - team_id: number; - }; - export type TeamsRemoveRepoInOrgParams = { - org: string; - - owner: string; - - repo: string; - - team_slug: string; - }; - export type TeamsRemoveRepoLegacyParams = { - owner: string; - - repo: string; - - team_id: number; - }; - export type TeamsReviewProjectParams = { - project_id: number; - - team_id: number; - }; - export type TeamsReviewProjectInOrgParams = { - org: string; - - project_id: number; - - team_slug: string; - }; - export type TeamsReviewProjectLegacyParams = { - project_id: number; - - team_id: number; - }; - export type TeamsUpdateParamsDeprecatedPermission = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * **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. - * @deprecated "permission" parameter has been deprecated and will be removed in future - */ - permission?: string; - /** - * 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. - */ - privacy?: "secret" | "closed"; - - team_id: number; - }; - export type TeamsUpdateParams = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * 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. - */ - privacy?: "secret" | "closed"; - - team_id: number; - }; - export type TeamsUpdateDiscussionParams = { - /** - * The discussion post's body text. - */ - body?: string; - - discussion_number: number; - - team_id: number; - /** - * The discussion post's title. - */ - title?: string; - }; - export type TeamsUpdateDiscussionCommentParams = { - /** - * The discussion comment's body text. - */ - body: string; - - comment_number: number; - - discussion_number: number; - - team_id: number; - }; - export type TeamsUpdateDiscussionCommentInOrgParams = { - /** - * The discussion comment's body text. - */ - body: string; - - comment_number: number; - - discussion_number: number; - - org: string; - - team_slug: string; - }; - export type TeamsUpdateDiscussionCommentLegacyParams = { - /** - * The discussion comment's body text. - */ - body: string; - - comment_number: number; - - discussion_number: number; - - team_id: number; - }; - export type TeamsUpdateDiscussionInOrgParams = { - /** - * The discussion post's body text. - */ - body?: string; - - discussion_number: number; - - org: string; - - team_slug: string; - /** - * The discussion post's title. - */ - title?: string; - }; - export type TeamsUpdateDiscussionLegacyParams = { - /** - * The discussion post's body text. - */ - body?: string; - - discussion_number: number; - - team_id: number; - /** - * The discussion post's title. - */ - title?: string; - }; - export type TeamsUpdateInOrgParamsDeprecatedPermission = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - - org: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * **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. - * @deprecated "permission" parameter has been deprecated and will be removed in future - */ - permission?: string; - /** - * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. 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. - */ - privacy?: "secret" | "closed"; - - team_slug: string; - }; - export type TeamsUpdateInOrgParams = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - - org: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. 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. - */ - privacy?: "secret" | "closed"; - - team_slug: string; - }; - export type TeamsUpdateLegacyParamsDeprecatedPermission = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * **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. - * @deprecated "permission" parameter has been deprecated and will be removed in future - */ - permission?: string; - /** - * 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. - */ - privacy?: "secret" | "closed"; - - team_id: number; - }; - export type TeamsUpdateLegacyParams = { - /** - * The description of the team. - */ - description?: string; - /** - * The name of the team. - */ - name: string; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; - /** - * 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. - */ - privacy?: "secret" | "closed"; - - team_id: number; - }; - export type UsersAddEmailsParams = { - /** - * Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; - }; - export type UsersBlockParams = { - username: string; - }; - export type UsersCheckBlockedParams = { - username: string; - }; - export type UsersCheckFollowingParams = { - username: string; - }; - export type UsersCheckFollowingForUserParams = { - target_user: string; - - username: string; - }; - export type UsersCreateGpgKeyParams = { - /** - * Your GPG key, generated in ASCII-armored format. See "[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)" for help creating a GPG key. - */ - armored_public_key?: string; - }; - export type UsersCreatePublicKeyParams = { - /** - * The public SSH key to add to your GitHub account. See "[Generating a new SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)" for guidance on how to create a public SSH key. - */ - key?: string; - /** - * A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air". - */ - title?: string; - }; - export type UsersDeleteEmailsParams = { - /** - * Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; - }; - export type UsersDeleteGpgKeyParams = { - gpg_key_id: number; - }; - export type UsersDeletePublicKeyParams = { - key_id: number; - }; - export type UsersFollowParams = { - username: string; - }; - export type UsersGetByUsernameParams = { - username: string; - }; - export type UsersGetContextForUserParams = { - /** - * Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. - */ - subject_id?: string; - /** - * 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_type?: "organization" | "repository" | "issue" | "pull_request"; - - username: string; - }; - export type UsersGetGpgKeyParams = { - gpg_key_id: number; - }; - export type UsersGetPublicKeyParams = { - key_id: number; - }; - export type UsersListParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * The integer ID of the last User that you've seen. - */ - since?: string; - }; - export type UsersListEmailsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type UsersListFollowersForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type UsersListFollowersForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type UsersListFollowingForAuthenticatedUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type UsersListFollowingForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type UsersListGpgKeysParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type UsersListGpgKeysForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type UsersListPublicEmailsParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type UsersListPublicKeysParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - }; - export type UsersListPublicKeysForUserParams = { - /** - * Page number of the results to fetch. - */ - page?: number; - /** - * Results per page (max 100) - */ - per_page?: number; - - username: string; - }; - export type UsersTogglePrimaryEmailVisibilityParams = { - /** - * Specify the _primary_ email address that needs a visibility change. - */ - email: string; - /** - * Use `public` to enable an authenticated user to view the specified email address, or use `private` so this primary email address cannot be seen publicly. - */ - visibility: string; - }; - export type UsersUnblockParams = { - username: string; - }; - export type UsersUnfollowParams = { - username: string; - }; - export type UsersUpdateAuthenticatedParams = { - /** - * The new short biography of the user. - */ - bio?: string; - /** - * The new blog URL of the user. - */ - blog?: string; - /** - * The new company of the user. - */ - company?: string; - /** - * The publicly visible email address of the user. - */ - email?: string; - /** - * The new hiring availability of the user. - */ - hireable?: boolean; - /** - * The new location of the user. - */ - location?: string; - /** - * The new name of the user. - */ - name?: string; - }; - - // child param types - export type AppsCreateInstallationTokenParamsPermissions = {}; - export type ChecksCreateParamsActions = { - description: string; - identifier: string; - label: string; - }; - export type ChecksCreateParamsOutput = { - annotations?: ChecksCreateParamsOutputAnnotations[]; - images?: ChecksCreateParamsOutputImages[]; - summary: string; - text?: string; - title: string; - }; - export type ChecksCreateParamsOutputAnnotations = { - annotation_level: "notice" | "warning" | "failure"; - end_column?: number; - end_line: number; - message: string; - path: string; - raw_details?: string; - start_column?: number; - start_line: number; - title?: string; - }; - export type ChecksCreateParamsOutputImages = { - alt: string; - caption?: string; - image_url: string; - }; - export type ChecksSetSuitesPreferencesParamsAutoTriggerChecks = { - app_id: number; - setting: boolean; - }; - export type ChecksUpdateParamsActions = { - description: string; - identifier: string; - label: string; - }; - export type ChecksUpdateParamsOutput = { - annotations?: ChecksUpdateParamsOutputAnnotations[]; - images?: ChecksUpdateParamsOutputImages[]; - summary: string; - text?: string; - title?: string; - }; - export type ChecksUpdateParamsOutputAnnotations = { - annotation_level: "notice" | "warning" | "failure"; - end_column?: number; - end_line: number; - message: string; - path: string; - raw_details?: string; - start_column?: number; - start_line: number; - title?: string; - }; - export type ChecksUpdateParamsOutputImages = { - alt: string; - caption?: string; - image_url: string; - }; - export type GistsCreateParamsFiles = { - content?: string; - }; - export type GistsUpdateParamsFiles = { - content?: string; - filename?: string; - }; - export type GitCreateCommitParamsAuthor = { - date?: string; - email?: string; - name?: string; - }; - export type GitCreateCommitParamsCommitter = { - date?: string; - email?: string; - name?: string; - }; - export type GitCreateTagParamsTagger = { - date?: string; - email?: string; - name?: string; - }; - export type GitCreateTreeParamsTree = { - content?: string; - mode?: "100644" | "100755" | "040000" | "160000" | "120000"; - path?: string; - sha?: string; - type?: "blob" | "tree" | "commit"; - }; - export type OrgsCreateHookParamsConfig = { - content_type?: string; - insecure_ssl?: string; - secret?: string; - url: string; - }; - export type OrgsUpdateHookParamsConfig = { - content_type?: string; - insecure_ssl?: string; - secret?: string; - url: string; - }; - export type PullsCreateReviewParamsComments = { - body: string; - path: string; - position: number; - }; - export type ReposCreateDispatchEventParamsClientPayload = {}; - export type ReposCreateFileParamsAuthor = { - email: string; - name: string; - }; - export type ReposCreateFileParamsCommitter = { - email: string; - name: string; - }; - export type ReposCreateHookParamsConfig = { - content_type?: string; - insecure_ssl?: string; - secret?: string; - url: string; - }; - export type ReposCreateOrUpdateFileParamsAuthor = { - email: string; - name: string; - }; - export type ReposCreateOrUpdateFileParamsCommitter = { - email: string; - name: string; - }; - export type ReposDeleteFileParamsAuthor = { - email?: string; - name?: string; - }; - export type ReposDeleteFileParamsCommitter = { - email?: string; - name?: string; - }; - export type ReposEnablePagesSiteParamsSource = { - branch?: "master" | "gh-pages"; - path?: string; - }; - export type ReposUpdateBranchProtectionParamsRequiredPullRequestReviews = { - dismiss_stale_reviews?: boolean; - dismissal_restrictions?: ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions; - require_code_owner_reviews?: boolean; - required_approving_review_count?: number; - }; - export type ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions = { - teams?: string[]; - users?: string[]; - }; - export type ReposUpdateBranchProtectionParamsRequiredStatusChecks = { - contexts: string[]; - strict: boolean; - }; - export type ReposUpdateBranchProtectionParamsRestrictions = { - apps?: string[]; - teams: string[]; - users: string[]; - }; - export type ReposUpdateFileParamsAuthor = { - email: string; - name: string; - }; - export type ReposUpdateFileParamsCommitter = { - email: string; - name: string; - }; - export type ReposUpdateHookParamsConfig = { - content_type?: string; - insecure_ssl?: string; - secret?: string; - url: string; - }; - export type ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions = { - teams?: string[]; - users?: string[]; - }; - export type ReposUploadReleaseAssetParamsHeaders = { - "content-length": number; - "content-type": string; - }; -} - -export class Octokit { - constructor(options?: Octokit.Options); - authenticate(auth: Octokit.AuthBasic): void; - authenticate(auth: Octokit.AuthOAuthToken): void; - authenticate(auth: Octokit.AuthOAuthSecret): void; - authenticate(auth: Octokit.AuthUserToken): void; - authenticate(auth: Octokit.AuthJWT): void; - - hook: { - before( - name: string, - callback: (options: Octokit.HookOptions) => void - ): void; - after( - name: string, - callback: ( - response: Octokit.Response, - options: Octokit.HookOptions - ) => void - ): void; - error( - name: string, - callback: (error: Octokit.HookError, options: Octokit.HookOptions) => void - ): void; - wrap( - name: string, - callback: ( - request: ( - options: Octokit.HookOptions - ) => Promise>, - options: Octokit.HookOptions - ) => Promise> - ): void; - }; - - static plugin(plugin: Octokit.Plugin | Octokit.Plugin[]): Octokit.Static; - - registerEndpoints(endpoints: { - [scope: string]: Octokit.EndpointOptions; - }): void; - - request: Octokit.Request; - - paginate: Octokit.Paginate; - - log: Octokit.Log; - - actions: { - /** - * Cancels a workflow run using its `id`. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - cancelWorkflowRun: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsCancelWorkflowRunParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates or updates a secret with an encrypted value. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `secrets` permission to use this endpoint. - * - * Encrypt your secret using the [tweetsodium](https://github.com/mastahyeti/tweetsodium) library. - * - * - * - * Encrypt your secret using [pynacl](https://pynacl.readthedocs.io/en/stable/public/#nacl-public-sealedbox) with Python 3. - * - * - * - * Encrypt your secret using the [Sodium.Core](https://www.nuget.org/packages/Sodium.Core/) package. - * - * - * - * Encrypt your secret using the [rbnacl](https://github.com/RubyCrypto/rbnacl) gem. - */ - createOrUpdateSecretForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsCreateOrUpdateSecretForRepoParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns a token that you can pass to the `config` script. The token expires after one hour. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - * - * Configure your self-hosted runner, replacing TOKEN with the registration token provided by this endpoint. - */ - createRegistrationToken: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsCreateRegistrationTokenParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns a token that you can pass to remove a self-hosted runner from a repository. The token expires after one hour. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - * - * Remove your self-hosted runner from a repository, replacing TOKEN with the remove token provided by this endpoint. - */ - createRemoveToken: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsCreateRemoveTokenParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Deletes an artifact for a workflow run. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - deleteArtifact: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsDeleteArtifactParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Deletes a secret in a repository using the secret name. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `secrets` permission to use this endpoint. - */ - deleteSecretFromRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsDeleteSecretFromRepoParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. The `:archive_format` must be `zip`. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - * - * Call this endpoint using the `-v` flag, which enables verbose output and allows you to see the download URL in the header. To download the file into the current working directory, specify the filename using the `-o` flag. - */ - downloadArtifact: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsDownloadArtifactParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a specific artifact for a workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - getArtifact: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsGetArtifactParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets your public key, which you must store. You need your public key to use other secrets endpoints. Use the returned `key` to encrypt your secrets. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `secrets` permission to use this endpoint. - */ - getPublicKey: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsGetPublicKeyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a single secret without revealing its encrypted value. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `secrets` permission to use this endpoint. - */ - getSecret: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsGetSecretParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a specific self-hosted runner. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - */ - getSelfHostedRunner: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsGetSelfHostedRunnerParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a specific workflow. You can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yml`. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - getWorkflow: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsGetWorkflowParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a specific job in a workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - getWorkflowJob: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsGetWorkflowJobParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a specific workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - getWorkflowRun: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsGetWorkflowRunParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists binaries for the self-hosted runner application that you can download and run. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - */ - listDownloadsForSelfHostedRunnerApplication: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsListDownloadsForSelfHostedRunnerApplicationParams - ): Promise< - Octokit.Response< - Octokit.ActionsListDownloadsForSelfHostedRunnerApplicationResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists jobs for a workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - listJobsForWorkflowRun: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsListJobsForWorkflowRunParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all workflow runs for a repository. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://developer.github.com/v3/#parameters). - * - * Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - listRepoWorkflowRuns: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsListRepoWorkflowRunsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the workflows in a repository. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - listRepoWorkflows: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsListRepoWorkflowsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all secrets available in a repository without revealing their encrypted values. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `secrets` permission to use this endpoint. - */ - listSecretsForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsListSecretsForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all self-hosted runners for a repository. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - */ - listSelfHostedRunnersForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsListSelfHostedRunnersForRepoParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - * - * Call this endpoint using the `-v` flag, which enables verbose output and allows you to see the download URL in the header. To download the file into the current working directory, specify the filename using the `-o` flag. - */ - listWorkflowJobLogs: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsListWorkflowJobLogsParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists artifacts for a workflow run. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - listWorkflowRunArtifacts: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsListWorkflowRunArtifactsParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a redirect URL to download an archive of log files for a workflow run. This link expires after 1 minute. Look for `Location:` in the response header to find the URL for the download. Anyone with read access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - * - * Call this endpoint using the `-v` flag, which enables verbose output and allows you to see the download URL in the header. To download the file into the current working directory, specify the filename using the `-o` flag. - */ - listWorkflowRunLogs: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsListWorkflowRunLogsParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * List all workflow runs for a workflow. You can also replace `:workflow_id` with `:workflow_file_name`. For example, you could use `main.yml`. You can use parameters to narrow the list of results. For more information about using parameters, see [Parameters](https://developer.github.com/v3/#parameters). - * - * Anyone with read access to the repository can use this endpoint. - */ - listWorkflowRuns: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsListWorkflowRunsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Re-runs your workflow run using its `id`. Anyone with write access to the repository can use this endpoint. GitHub Apps must have the `actions` permission to use this endpoint. - */ - reRunWorkflow: { - ( - params?: Octokit.RequestOptions & Octokit.ActionsReRunWorkflowParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Forces the removal of a self-hosted runner from a repository. You can use this endpoint to completely remove the runner when the machine you were using no longer exists. Anyone with admin access to the repository can use this endpoint. GitHub Apps must have the `administration` permission to use this endpoint. - */ - removeSelfHostedRunner: { - ( - params?: Octokit.RequestOptions & - Octokit.ActionsRemoveSelfHostedRunnerParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - }; - activity: { - /** - * Requires for the user to be authenticated. - */ - checkStarringRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityCheckStarringRepoParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Requires for the user to be authenticated. - */ - checkWatchingRepoLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityCheckWatchingRepoLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * This endpoint should only be used to stop watching a repository. To control whether or not you wish to receive notifications from a repository, [set the repository's subscription manually](https://developer.github.com/v3/activity/watching/#set-a-repository-subscription). - */ - deleteRepoSubscription: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityDeleteRepoSubscriptionParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Mutes all future notifications for a conversation until you comment on the thread or get **@mention**ed. - */ - deleteThreadSubscription: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityDeleteThreadSubscriptionParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - getRepoSubscription: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityGetRepoSubscriptionParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getThread: { - ( - params?: Octokit.RequestOptions & Octokit.ActivityGetThreadParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * This checks to see if the current user is subscribed to a thread. You can also [get a repository subscription](https://developer.github.com/v3/activity/watching/#get-a-repository-subscription). - * - * Note that subscriptions are only generated if a user is participating in a conversation--for example, they've replied to the thread, were **@mentioned**, or manually subscribe to a thread. - */ - getThreadSubscription: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityGetThreadSubscriptionParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * This is the user's organization dashboard. You must be authenticated as the user to view this. - */ - listEventsForOrg: { - ( - params?: Octokit.RequestOptions & Octokit.ActivityListEventsForOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. - */ - listEventsForUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListEventsForUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * GitHub provides several timeline resources in [Atom](http://en.wikipedia.org/wiki/Atom_(standard)) format. The Feeds API lists all the feeds available to the authenticated user: - * - * * **Timeline**: The GitHub global public timeline - * * **User**: The public timeline for any user, using [URI template](https://developer.github.com/v3/#hypermedia) - * * **Current user public**: The public timeline for the authenticated user - * * **Current user**: The private timeline for the authenticated user - * * **Current user actor**: The private timeline for activity created by the authenticated user - * * **Current user organizations**: The private timeline for the organizations the authenticated user is a member of. - * * **Security advisories**: A collection of public announcements that provide information about security-related vulnerabilities in software on GitHub. - * - * **Note**: Private feeds are only returned when [authenticating via Basic Auth](https://developer.github.com/v3/#basic-authentication) since current feed URIs use the older, non revocable auth tokens. - */ - listFeeds: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * List all notifications for the current user, sorted by most recently updated. - * - * The following example uses the `since` parameter to list notifications that have been updated after the specified time. - */ - listNotifications: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListNotificationsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List all notifications for the current user. - */ - listNotificationsForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListNotificationsForRepoParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * We delay the public events feed by five minutes, which means the most recent event returned by the public events API actually occurred at least five minutes ago. - */ - listPublicEvents: { - ( - params?: Octokit.RequestOptions & Octokit.ActivityListPublicEventsParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - listPublicEventsForOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListPublicEventsForOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - listPublicEventsForRepoNetwork: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListPublicEventsForRepoNetworkParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - listPublicEventsForUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListPublicEventsForUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * These are events that you've received by watching repos and following users. If you are authenticated as the given user, you will see private events. Otherwise, you'll only see public events. - */ - listReceivedEventsForUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListReceivedEventsForUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - listReceivedPublicEventsForUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListReceivedPublicEventsForUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - listRepoEvents: { - ( - params?: Octokit.RequestOptions & Octokit.ActivityListRepoEventsParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - listReposStarredByAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListReposStarredByAuthenticatedUserParams - ): Promise< - Octokit.Response< - Octokit.ActivityListReposStarredByAuthenticatedUserResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - listReposStarredByUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListReposStarredByUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - listReposWatchedByUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListReposWatchedByUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * You can also find out _when_ stars were created by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - listStargazersForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListStargazersForRepoParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - listWatchedReposForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListWatchedReposForAuthenticatedUserParams - ): Promise< - Octokit.Response< - Octokit.ActivityListWatchedReposForAuthenticatedUserResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - - listWatchersForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityListWatchersForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Marks a notification as "read" removes it from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List your notifications](https://developer.github.com/v3/activity/notifications/#list-your-notifications) endpoint and pass the query parameter `all=false`. - */ - markAsRead: { - ( - params?: Octokit.RequestOptions & Octokit.ActivityMarkAsReadParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Marks all notifications in a repository as "read" removes them from the [default view on GitHub](https://github.com/notifications). If the number of notifications is too large to complete in one request, you will receive a `202 Accepted` status and GitHub will run an asynchronous process to mark notifications as "read." To check whether any "unread" notifications remain, you can use the [List your notifications in a repository](https://developer.github.com/v3/activity/notifications/#list-your-notifications-in-a-repository) endpoint and pass the query parameter `all=false`. - */ - markNotificationsAsReadForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityMarkNotificationsAsReadForRepoParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - markThreadAsRead: { - ( - params?: Octokit.RequestOptions & Octokit.ActivityMarkThreadAsReadParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * If you would like to watch a repository, set `subscribed` to `true`. If you would like to ignore notifications made within a repository, set `ignored` to `true`. If you would like to stop watching a repository, [delete the repository's subscription](https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription) completely. - */ - setRepoSubscription: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivitySetRepoSubscriptionParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * This lets you subscribe or unsubscribe from a conversation. - */ - setThreadSubscription: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivitySetThreadSubscriptionParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Requires for the user to be authenticated. - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - starRepo: { - ( - params?: Octokit.RequestOptions & Octokit.ActivityStarRepoParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Requires for the user to be authenticated. - */ - stopWatchingRepoLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.ActivityStopWatchingRepoLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Requires for the user to be authenticated. - */ - unstarRepo: { - ( - params?: Octokit.RequestOptions & Octokit.ActivityUnstarRepoParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Requires the user to be authenticated. - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - watchRepoLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.ActivityWatchRepoLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - }; - apps: { - /** - * Add a single repository to an installation. The authenticated user must have admin access to the repository. - * - * You must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/v3/auth/#basic-authentication) to access this endpoint. - */ - addRepoToInstallation: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsAddRepoToInstallationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - * - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - checkAccountIsAssociatedWithAny: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsCheckAccountIsAssociatedWithAnyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Shows whether the user or organization account actively subscribes to a plan listed by the authenticated GitHub App. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - * - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - checkAccountIsAssociatedWithAnyStubbed: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsCheckAccountIsAssociatedWithAnyStubbedParams - ): Promise< - Octokit.Response< - Octokit.AppsCheckAccountIsAssociatedWithAnyStubbedResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. - * @deprecated octokit.apps.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization - */ - checkAuthorization: { - ( - params?: Octokit.RequestOptions & Octokit.AppsCheckAuthorizationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) to use this endpoint, where the username is the OAuth application `client_id` and the password is its `client_secret`. Invalid tokens will return `404 NOT FOUND`. - */ - checkToken: { - (params?: Octokit.RequestOptions & Octokit.AppsCheckTokenParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates an attachment under a content reference URL in the body or comment of an issue or pull request. Use the `id` of the content reference from the [`content_reference` event](https://developer.github.com/v3/activity/events/types/#contentreferenceevent) to create an attachment. - * - * The app must create a content attachment within six hours of the content reference URL being posted. See "[Using content attachments](https://developer.github.com/apps/using-content-attachments/)" for details about content attachments. - * - * You must use an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. - * - * This example creates a content attachment for the domain `https://errors.ai/`. - */ - createContentAttachment: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsCreateContentAttachmentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Use this endpoint to complete the handshake necessary when implementing the [GitHub App Manifest flow](https://developer.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/). When you create a GitHub App with the manifest flow, you receive a temporary `code` used to retrieve the GitHub App's `id`, `pem` (private key), and `webhook_secret`. - */ - createFromManifest: { - ( - params?: Octokit.RequestOptions & Octokit.AppsCreateFromManifestParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates an installation access token that enables a GitHub App to make authenticated API requests for the app's installation on an organization or individual account. Installation tokens expire one hour from the time you create them. Using an expired token produces a status code of `401 - Unauthorized`, and requires creating a new installation token. By default the installation token has access to all repositories that the installation can access. To restrict the access to specific repositories, you can provide the `repository_ids` when creating the token. When you omit `repository_ids`, the response does not contain the `repositories` key. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - * - * This example grants the token "Read and write" permission to `issues` and "Read" permission to `contents`, and restricts the token's access to the repository with an `id` of 1296269. - */ - createInstallationToken: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsCreateInstallationTokenParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid OAuth `access_token` as an input parameter and the grant for the token's owner will be deleted. - * - * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). - */ - deleteAuthorization: { - ( - params?: Octokit.RequestOptions & Octokit.AppsDeleteAuthorizationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Uninstalls a GitHub App on a user, organization, or business account. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - deleteInstallation: { - ( - params?: Octokit.RequestOptions & Octokit.AppsDeleteInstallationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. - */ - deleteToken: { - ( - params?: Octokit.RequestOptions & Octokit.AppsDeleteTokenParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Enables an authenticated GitHub App to find the organization's installation information. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - * @deprecated octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10) - */ - findOrgInstallation: { - ( - params?: Octokit.RequestOptions & Octokit.AppsFindOrgInstallationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - * @deprecated octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10) - */ - findRepoInstallation: { - ( - params?: Octokit.RequestOptions & Octokit.AppsFindRepoInstallationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Enables an authenticated GitHub App to find the user’s installation information. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - * @deprecated octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10) - */ - findUserInstallation: { - ( - params?: Octokit.RequestOptions & Octokit.AppsFindUserInstallationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns the GitHub App associated with the authentication credentials used. To see how many app installations are associated with this GitHub App, see the `installations_count` in the response. For more details about your app's installations, see the "[List installations](https://developer.github.com/v3/apps/#list-installations)" endpoint. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getAuthenticated: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note**: The `:app_slug` is just the URL-friendly name of your GitHub App. You can find this on the settings page for your GitHub App (e.g., `https://github.com/settings/apps/:app_slug`). - * - * If the GitHub App you specify is public, you can access this endpoint without authenticating. If the GitHub App you specify is private, you must authenticate with a [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. - */ - getBySlug: { - (params?: Octokit.RequestOptions & Octokit.AppsGetBySlugParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getInstallation: { - ( - params?: Octokit.RequestOptions & Octokit.AppsGetInstallationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Enables an authenticated GitHub App to find the organization's installation information. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getOrgInstallation: { - ( - params?: Octokit.RequestOptions & Octokit.AppsGetOrgInstallationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Enables an authenticated GitHub App to find the repository's installation information. The installation's account type will be either an organization or a user account, depending which account the repository belongs to. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getRepoInstallation: { - ( - params?: Octokit.RequestOptions & Octokit.AppsGetRepoInstallationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Enables an authenticated GitHub App to find the user’s installation information. - * - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - */ - getUserInstallation: { - ( - params?: Octokit.RequestOptions & Octokit.AppsGetUserInstallationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns any accounts associated with a plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - * - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listAccountsUserOrOrgOnPlan: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsListAccountsUserOrOrgOnPlanParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns any accounts associated with a plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change. - * - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listAccountsUserOrOrgOnPlanStubbed: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsListAccountsUserOrOrgOnPlanStubbedParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * List repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access for an installation. - * - * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. - * - * You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. - * - * The access the user has to each repository is included in the hash under the `permissions` key. - */ - listInstallationReposForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsListInstallationReposForAuthenticatedUserParams - ): Promise< - Octokit.Response< - Octokit.AppsListInstallationReposForAuthenticatedUserResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * You must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. - * - * The permissions the installation has are included under the `permissions` key. - */ - listInstallations: { - ( - params?: Octokit.RequestOptions & Octokit.AppsListInstallationsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists installations of your GitHub App that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. - * - * You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. - * - * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. - * - * You can find the permissions for the installation under the `permissions` key. - */ - listInstallationsForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsListInstallationsForAuthenticatedUserParams - ): Promise< - Octokit.Response< - Octokit.AppsListInstallationsForAuthenticatedUserResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns only active subscriptions. You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/). - */ - listMarketplacePurchasesForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsListMarketplacePurchasesForAuthenticatedUserParams - ): Promise< - Octokit.Response< - Octokit.AppsListMarketplacePurchasesForAuthenticatedUserResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns only active subscriptions. You must use a [user-to-server OAuth access token](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/#identifying-users-on-your-site), created for a user who has authorized your GitHub App, to access this endpoint. . OAuth Apps must authenticate using an [OAuth token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/). - */ - listMarketplacePurchasesForAuthenticatedUserStubbed: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsListMarketplacePurchasesForAuthenticatedUserStubbedParams - ): Promise< - Octokit.Response< - Octokit.AppsListMarketplacePurchasesForAuthenticatedUserStubbedResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listPlans: { - (params?: Octokit.RequestOptions & Octokit.AppsListPlansParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * GitHub Apps must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth Apps must use [basic authentication](https://developer.github.com/v3/auth/#basic-authentication) with their client ID and client secret to access this endpoint. - */ - listPlansStubbed: { - ( - params?: Octokit.RequestOptions & Octokit.AppsListPlansStubbedParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List repositories that an installation can access. - * - * You must use an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. - */ - listRepos: { - (params?: Octokit.RequestOptions & Octokit.AppsListReposParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Remove a single repository from an installation. The authenticated user must have admin access to the repository. - * - * You must use a personal access token (which you can create via the [command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) or the [OAuth Authorizations API](https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization)) or [Basic Authentication](https://developer.github.com/v3/auth/#basic-authentication) to access this endpoint. - */ - removeRepoFromInstallation: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsRemoveRepoFromInstallationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. - * @deprecated octokit.apps.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization - */ - resetAuthorization: { - ( - params?: Octokit.RequestOptions & Octokit.AppsResetAuthorizationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. - */ - resetToken: { - (params?: Octokit.RequestOptions & Octokit.AppsResetTokenParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. - * @deprecated octokit.apps.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application - */ - revokeAuthorizationForApplication: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsRevokeAuthorizationForApplicationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid token as `:access_token` and the grant for the token's owner will be deleted. - * - * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the Applications settings page under "Authorized OAuth Apps" on GitHub](https://github.com/settings/applications#authorized). - * @deprecated octokit.apps.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application - */ - revokeGrantForApplication: { - ( - params?: Octokit.RequestOptions & - Octokit.AppsRevokeGrantForApplicationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Revokes the installation token you're using to authenticate as an installation and access this endpoint. - * - * Once an installation token is revoked, the token is invalidated and cannot be used. Other endpoints that require the revoked installation token must have a new installation token to work. You can create a new token using the "[Create a new installation token](https://developer.github.com/v3/apps/#create-a-new-installation-token)" endpoint. - * - * You must use an [installation access token](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-an-installation) to access this endpoint. - */ - revokeInstallationToken: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - }; - checks: { - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - * - * Creates a new check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to create check runs. - */ - create: { - (params?: Octokit.RequestOptions & Octokit.ChecksCreateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. - * - * By default, check suites are automatically created when you create a [check run](https://developer.github.com/v3/checks/runs/). You only need to use this endpoint for manually creating check suites when you've disabled automatic creation using "[Set preferences for check suites on a repository](https://developer.github.com/v3/checks/suites/#set-preferences-for-check-suites-on-a-repository)". Your GitHub App must have the `checks:write` permission to create check suites. - */ - createSuite: { - ( - params?: Octokit.RequestOptions & Octokit.ChecksCreateSuiteParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - * - * Gets a single check run using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. - */ - get: { - (params?: Octokit.RequestOptions & Octokit.ChecksGetParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. - * - * Gets a single check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. - */ - getSuite: { - (params?: Octokit.RequestOptions & Octokit.ChecksGetSuiteParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists annotations for a check run using the annotation `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get annotations for a check run. OAuth Apps and authenticated users must have the `repo` scope to get annotations for a check run in a private repository. - */ - listAnnotations: { - ( - params?: Octokit.RequestOptions & Octokit.ChecksListAnnotationsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - * - * Lists check runs for a commit ref. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. - */ - listForRef: { - ( - params?: Octokit.RequestOptions & Octokit.ChecksListForRefParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - * - * Lists check runs for a check suite using its `id`. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to get check runs. OAuth Apps and authenticated users must have the `repo` scope to get check runs in a private repository. - */ - listForSuite: { - ( - params?: Octokit.RequestOptions & Octokit.ChecksListForSuiteParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array and a `null` value for `head_branch`. - * - * Lists check suites for a commit `ref`. The `ref` can be a SHA, branch name, or a tag name. GitHub Apps must have the `checks:read` permission on a private repository or pull access to a public repository to list check suites. OAuth Apps and authenticated users must have the `repo` scope to get check suites in a private repository. - */ - listSuitesForRef: { - ( - params?: Octokit.RequestOptions & Octokit.ChecksListSuitesForRefParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://developer.github.com/v3/activity/events/types/#checksuiteevent) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. - * - * To rerequest a check suite, your GitHub App must have the `checks:read` permission on a private repository or pull access to a public repository. - */ - rerequestSuite: { - ( - params?: Octokit.RequestOptions & Octokit.ChecksRerequestSuiteParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Changes the default automatic flow when creating check suites. By default, the CheckSuiteEvent is automatically created each time code is pushed to a repository. When you disable the automatic creation of check suites, you can manually [Create a check suite](https://developer.github.com/v3/checks/suites/#create-a-check-suite). You must have admin permissions in the repository to set preferences for check suites. - */ - setSuitesPreferences: { - ( - params?: Octokit.RequestOptions & - Octokit.ChecksSetSuitesPreferencesParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** The Checks API only looks for pushes in the repository where the check suite or check run were created. Pushes to a branch in a forked repository are not detected and return an empty `pull_requests` array. - * - * Updates a check run for a specific commit in a repository. Your GitHub App must have the `checks:write` permission to edit check runs. - */ - update: { - (params?: Octokit.RequestOptions & Octokit.ChecksUpdateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - }; - codesOfConduct: { - getConductCode: { - ( - params?: Octokit.RequestOptions & - Octokit.CodesOfConductGetConductCodeParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * This method returns the contents of the repository's code of conduct file, if one is detected. - */ - getForRepo: { - ( - params?: Octokit.RequestOptions & Octokit.CodesOfConductGetForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listConductCodes: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - }; - emojis: { - /** - * Lists all the emojis available to use on GitHub. - */ - get: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - }; - gists: { - checkIsStarred: { - ( - params?: Octokit.RequestOptions & Octokit.GistsCheckIsStarredParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Allows you to add a new gist with one or more files. - * - * **Note:** Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally. - */ - create: { - (params?: Octokit.RequestOptions & Octokit.GistsCreateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - createComment: { - ( - params?: Octokit.RequestOptions & Octokit.GistsCreateCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - delete: { - (params?: Octokit.RequestOptions & Octokit.GistsDeleteParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - - deleteComment: { - ( - params?: Octokit.RequestOptions & Octokit.GistsDeleteCommentParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note**: This was previously `/gists/:gist_id/fork`. - */ - fork: { - (params?: Octokit.RequestOptions & Octokit.GistsForkParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - get: { - (params?: Octokit.RequestOptions & Octokit.GistsGetParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - getComment: { - ( - params?: Octokit.RequestOptions & Octokit.GistsGetCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getRevision: { - ( - params?: Octokit.RequestOptions & Octokit.GistsGetRevisionParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - list: { - (params?: Octokit.RequestOptions & Octokit.GistsListParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - listComments: { - ( - params?: Octokit.RequestOptions & Octokit.GistsListCommentsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listCommits: { - ( - params?: Octokit.RequestOptions & Octokit.GistsListCommitsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listForks: { - (params?: Octokit.RequestOptions & Octokit.GistsListForksParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * List all public gists sorted by most recently updated to least recently updated. - * - * Note: With [pagination](https://developer.github.com/v3/#pagination), you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page. - */ - listPublic: { - ( - params?: Octokit.RequestOptions & Octokit.GistsListPublicParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listPublicForUser: { - ( - params?: Octokit.RequestOptions & Octokit.GistsListPublicForUserParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List the authenticated user's starred gists: - */ - listStarred: { - ( - params?: Octokit.RequestOptions & Octokit.GistsListStarredParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - star: { - (params?: Octokit.RequestOptions & Octokit.GistsStarParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - - unstar: { - (params?: Octokit.RequestOptions & Octokit.GistsUnstarParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged. - */ - update: { - (params?: Octokit.RequestOptions & Octokit.GistsUpdateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - updateComment: { - ( - params?: Octokit.RequestOptions & Octokit.GistsUpdateCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - }; - git: { - createBlob: { - (params?: Octokit.RequestOptions & Octokit.GitCreateBlobParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a new Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). - * - * In this example, the payload of the signature would be: - * - * - * - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - createCommit: { - ( - params?: Octokit.RequestOptions & Octokit.GitCreateCommitParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches. - */ - createRef: { - (params?: Octokit.RequestOptions & Octokit.GitCreateRefParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then [create](https://developer.github.com/v3/git/refs/#create-a-reference) the `refs/tags/[tag]` reference. If you want to create a lightweight tag, you only have to [create](https://developer.github.com/v3/git/refs/#create-a-reference) the tag reference - this call would be unnecessary. - * - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - createTag: { - (params?: Octokit.RequestOptions & Octokit.GitCreateTagParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * The tree creation API accepts nested entries. If you specify both a tree and a nested path modifying that tree, this endpoint will overwrite the contents of the tree with the new path contents, and create a new tree structure. - * - * If you use this endpoint to add, delete, or modify the file contents in a tree, you will need to commit the tree and then update a branch to point to the commit. For more information see "[Create a commit](https://developer.github.com/v3/git/commits/#create-a-commit)" and "[Update a reference](https://developer.github.com/v3/git/refs/#update-a-reference)." - */ - createTree: { - (params?: Octokit.RequestOptions & Octokit.GitCreateTreeParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * ``` - * DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a - * ``` - * - * ``` - * DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0 - * ``` - */ - deleteRef: { - (params?: Octokit.RequestOptions & Octokit.GitDeleteRefParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * The `content` in the response will always be Base64 encoded. - * - * _Note_: This API supports blobs up to 100 megabytes in size. - */ - getBlob: { - (params?: Octokit.RequestOptions & Octokit.GitGetBlobParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a Git [commit object](https://git-scm.com/book/en/v1/Git-Internals-Git-Objects#Commit-Objects). - * - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - getCommit: { - (params?: Octokit.RequestOptions & Octokit.GitGetCommitParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns a single reference from your Git database. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't match an existing ref, a `404` is returned. - * - * **Note:** You need to explicitly [request a pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://developer.github.com/v3/git/#checking-mergeability-of-pull-requests)". - * - * To get the reference for a branch named `skunkworkz/featureA`, the endpoint route is: - */ - getRef: { - (params?: Octokit.RequestOptions & Octokit.GitGetRefParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - getTag: { - (params?: Octokit.RequestOptions & Octokit.GitGetTagParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns a single tree using the SHA1 value for that tree. - * - * If `truncated` is `true` in the response then the number of items in the `tree` array exceeded our maximum limit. If you need to fetch more items, you can clone the repository and iterate over the Git data locally. - */ - getTree: { - (params?: Octokit.RequestOptions & Octokit.GitGetTreeParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns an array of references from your Git database that match the supplied name. The `:ref` in the URL must be formatted as `heads/` for branches and `tags/` for tags. If the `:ref` doesn't exist in the repository, but existing refs start with `:ref`, they will be returned as an array. - * - * When you use this endpoint without providing a `:ref`, it will return an array of all the references from your Git database, including notes and stashes if they exist on the server. Anything in the namespace is returned, not just `heads` and `tags`. - * - * **Note:** You need to explicitly [request a pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) to trigger a test merge commit, which checks the mergeability of pull requests. For more information, see "[Checking mergeability of pull requests](https://developer.github.com/v3/git/#checking-mergeability-of-pull-requests)". - * - * If you request matching references for a branch named `feature` but the branch `feature` doesn't exist, the response can still include other matching head refs that start with the word `feature`, such as `featureA` and `featureB`. - */ - listMatchingRefs: { - ( - params?: Octokit.RequestOptions & Octokit.GitListMatchingRefsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns an array of all the references from your Git database, including notes and stashes if they exist on the server. Anything in the namespace is returned, not just `heads` and `tags`. If there are no references to list, a `404` is returned. - */ - listRefs: { - (params?: Octokit.RequestOptions & Octokit.GitListRefsParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - - updateRef: { - (params?: Octokit.RequestOptions & Octokit.GitUpdateRefParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - }; - gitignore: { - /** - * The API also allows fetching the source of a single template. - * - * Use the raw [media type](https://developer.github.com/v3/media/) to get the raw contents. - */ - getTemplate: { - ( - params?: Octokit.RequestOptions & Octokit.GitignoreGetTemplateParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List all templates available to pass as an option when [creating a repository](https://developer.github.com/v3/repos/#create). - */ - listTemplates: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - }; - interactions: { - /** - * Temporarily restricts interactions to certain GitHub users in any public repository in the given organization. You must be an organization owner to set these restrictions. - */ - addOrUpdateRestrictionsForOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.InteractionsAddOrUpdateRestrictionsForOrgParams - ): Promise< - Octokit.Response< - Octokit.InteractionsAddOrUpdateRestrictionsForOrgResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Temporarily restricts interactions to certain GitHub users within the given repository. You must have owner or admin access to set restrictions. - */ - addOrUpdateRestrictionsForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.InteractionsAddOrUpdateRestrictionsForRepoParams - ): Promise< - Octokit.Response< - Octokit.InteractionsAddOrUpdateRestrictionsForRepoResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Shows which group of GitHub users can interact with this organization and when the restriction expires. If there are no restrictions, you will see an empty response. - */ - getRestrictionsForOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.InteractionsGetRestrictionsForOrgParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Shows which group of GitHub users can interact with this repository and when the restriction expires. If there are no restrictions, you will see an empty response. - */ - getRestrictionsForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.InteractionsGetRestrictionsForRepoParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Removes all interaction restrictions from public repositories in the given organization. You must be an organization owner to remove restrictions. - */ - removeRestrictionsForOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.InteractionsRemoveRestrictionsForOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Removes all interaction restrictions from the given repository. You must have owner or admin access to remove restrictions. - */ - removeRestrictionsForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.InteractionsRemoveRestrictionsForRepoParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - }; - issues: { - /** - * Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced. - * - * This example adds two assignees to the existing `octocat` assignee. - */ - addAssignees: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesAddAssigneesParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesAddAssigneesParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - addLabels: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesAddLabelsParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesAddLabelsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Checks if a user has permission to be assigned to an issue in this repository. - * - * If the `assignee` can be assigned to issues in the repository, a `204` header with no content is returned. - * - * Otherwise a `404` status code is returned. - */ - checkAssignee: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesCheckAssigneeParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Any user with pull access to a repository can create an issue. If [issues are disabled in the repository](https://help.github.com/articles/disabling-issues/), the API returns a `410 Gone` status. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - create: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesCreateParamsDeprecatedAssignee - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.IssuesCreateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createComment: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesCreateCommentParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesCreateCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - createLabel: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesCreateLabelParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - createMilestone: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesCreateMilestoneParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - deleteComment: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesDeleteCommentParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - deleteLabel: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesDeleteLabelParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - deleteMilestone: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesDeleteMilestoneParamsDeprecatedNumber - ): Promise; - ( - params?: Octokit.RequestOptions & Octokit.IssuesDeleteMilestoneParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * The API returns a [`301 Moved Permanently` status](https://developer.github.com/v3/#http-redirects) if the issue was [transferred](https://help.github.com/articles/transferring-an-issue-to-another-repository/) to another repository. If the issue was transferred to or deleted from a repository where the authenticated user lacks read access, the API returns a `404 Not Found` status. If the issue was deleted from a repository where the authenticated user has read access, the API returns a `410 Gone` status. To receive webhook events for transferred and deleted issues, subscribe to the [`issues`](https://developer.github.com/v3/activity/events/types/#issuesevent) webhook. - * - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - get: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesGetParamsDeprecatedNumber - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.IssuesGetParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - getComment: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesGetCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getEvent: { - (params?: Octokit.RequestOptions & Octokit.IssuesGetEventParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - getLabel: { - (params?: Octokit.RequestOptions & Octokit.IssuesGetLabelParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - getMilestone: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesGetMilestoneParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesGetMilestoneParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - list: { - (params?: Octokit.RequestOptions & Octokit.IssuesListParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the [available assignees](https://help.github.com/articles/assigning-issues-and-pull-requests-to-other-github-users/) for issues in a repository. - */ - listAssignees: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesListAssigneesParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Issue Comments are ordered by ascending ID. - */ - listComments: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesListCommentsParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesListCommentsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * By default, Issue Comments are ordered by ascending ID. - */ - listCommentsForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesListCommentsForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listEvents: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesListEventsParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesListEventsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listEventsForRepo: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesListEventsForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listEventsForTimeline: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesListEventsForTimelineParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & - Octokit.IssuesListEventsForTimelineParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - listForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesListForAuthenticatedUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - listForOrg: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesListForOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - listForRepo: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesListForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listLabelsForMilestone: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesListLabelsForMilestoneParamsDeprecatedNumber - ): Promise< - Octokit.Response - >; - ( - params?: Octokit.RequestOptions & - Octokit.IssuesListLabelsForMilestoneParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - listLabelsForRepo: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesListLabelsForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listLabelsOnIssue: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesListLabelsOnIssueParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesListLabelsOnIssueParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listMilestonesForRepo: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesListMilestonesForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with push access can lock an issue or pull request's conversation. - * - * 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://developer.github.com/v3/#http-verbs)." - */ - lock: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesLockParamsDeprecatedNumber - ): Promise; - (params?: Octokit.RequestOptions & Octokit.IssuesLockParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Removes one or more assignees from an issue. - * - * This example removes two of three assignees, leaving the `octocat` assignee. - */ - removeAssignees: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesRemoveAssigneesParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesRemoveAssigneesParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a `404 Not Found` status if the label does not exist. - */ - removeLabel: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesRemoveLabelParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesRemoveLabelParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - removeLabels: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesRemoveLabelsParamsDeprecatedNumber - ): Promise; - ( - params?: Octokit.RequestOptions & Octokit.IssuesRemoveLabelsParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - replaceLabels: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesReplaceLabelsParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesReplaceLabelsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with push access can unlock an issue's conversation. - */ - unlock: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesUnlockParamsDeprecatedNumber - ): Promise; - (params?: Octokit.RequestOptions & Octokit.IssuesUnlockParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Issue owners and users with push access can edit an issue. - */ - update: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesUpdateParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & - Octokit.IssuesUpdateParamsDeprecatedAssignee - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.IssuesUpdateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - updateComment: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesUpdateCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - updateLabel: { - ( - params?: Octokit.RequestOptions & Octokit.IssuesUpdateLabelParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - updateMilestone: { - ( - params?: Octokit.RequestOptions & - Octokit.IssuesUpdateMilestoneParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.IssuesUpdateMilestoneParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - }; - licenses: { - get: { - (params?: Octokit.RequestOptions & Octokit.LicensesGetParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * This method returns the contents of the repository's license file, if one is detected. - * - * Similar to [the repository contents API](https://developer.github.com/v3/repos/contents/#get-contents), this method also supports [custom media types](https://developer.github.com/v3/repos/contents/#custom-media-types) for retrieving the raw license content or rendered license HTML. - */ - getForRepo: { - ( - params?: Octokit.RequestOptions & Octokit.LicensesGetForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * @deprecated octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05) - */ - list: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - listCommonlyUsed: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - }; - markdown: { - render: { - (params?: Octokit.RequestOptions & Octokit.MarkdownRenderParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * You must send Markdown as plain text (using a `Content-Type` header of `text/plain` or `text/x-markdown`) to this endpoint, rather than using JSON format. In raw mode, [GitHub Flavored Markdown](https://github.github.com/gfm/) is not supported and Markdown will be rendered in plain format like a README.md file. Markdown content must be 400 KB or less. - */ - renderRaw: { - ( - params?: Octokit.RequestOptions & Octokit.MarkdownRenderRawParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - }; - meta: { - /** - * This endpoint provides a list of GitHub's IP addresses. For more information, see "[About GitHub's IP addresses](https://help.github.com/articles/about-github-s-ip-addresses/)." - */ - get: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - }; - migrations: { - /** - * Stop an import for a repository. - */ - cancelImport: { - ( - params?: Octokit.RequestOptions & Octokit.MigrationsCancelImportParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Deletes a previous migration archive. Downloadable migration archives are automatically deleted after seven days. Migration metadata, which is returned in the [List user migrations](https://developer.github.com/v3/migrations/users/#list-user-migrations) and [Get the status of a user migration](https://developer.github.com/v3/migrations/users/#get-the-status-of-a-user-migration) endpoints, will continue to be available even after an archive is deleted. - */ - deleteArchiveForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsDeleteArchiveForAuthenticatedUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Deletes a previous migration archive. Migration archives are automatically deleted after seven days. - */ - deleteArchiveForOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsDeleteArchiveForOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Fetches the URL to a migration archive. - */ - downloadArchiveForOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsDownloadArchiveForOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Fetches the URL to download the migration archive as a `tar.gz` file. Depending on the resources your repository uses, the migration archive can contain JSON files with data for these objects: - * - * * attachments - * * bases - * * commit\_comments - * * issue\_comments - * * issue\_events - * * issues - * * milestones - * * organizations - * * projects - * * protected\_branches - * * pull\_request\_reviews - * * pull\_requests - * * releases - * * repositories - * * review\_comments - * * schema - * * users - * - * The archive will also contain an `attachments` directory that includes all attachment files uploaded to GitHub.com and a `repositories` directory that contains the repository's Git data. - */ - getArchiveForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsGetArchiveForAuthenticatedUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Fetches the URL to a migration archive. - * - * - * @deprecated octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27) - */ - getArchiveForOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsGetArchiveForOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Each type of source control system represents authors in a different way. For example, a Git commit author has a display name and an email address, but a Subversion commit author just has a username. The GitHub Importer will make the author information valid, but the author might not be correct. For example, it will change the bare Subversion username `hubot` into something like `hubot `. - * - * This API method and the "Map a commit author" method allow you to provide correct Git author information. - */ - getCommitAuthors: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsGetCommitAuthorsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * View the progress of an import. - * - * **Import status** - * - * This section includes details about the possible values of the `status` field of the Import Progress response. - * - * An import that does not have errors will progress through these steps: - * - * * `detecting` - the "detection" step of the import is in progress because the request did not include a `vcs` parameter. The import is identifying the type of source control present at the URL. - * * `importing` - the "raw" step of the import is in progress. This is where commit data is fetched from the original repository. The import progress response will include `commit_count` (the total number of raw commits that will be imported) and `percent` (0 - 100, the current progress through the import). - * * `mapping` - the "rewrite" step of the import is in progress. This is where SVN branches are converted to Git branches, and where author updates are applied. The import progress response does not include progress information. - * * `pushing` - the "push" step of the import is in progress. This is where the importer updates the repository on GitHub. The import progress response will include `push_percent`, which is the percent value reported by `git push` when it is "Writing objects". - * * `complete` - the import is complete, and the repository is ready on GitHub. - * - * If there are problems, you will see one of these in the `status` field: - * - * * `auth_failed` - the import requires authentication in order to connect to the original repository. To update authentication for the import, please see the [Update Existing Import](https://developer.github.com/v3/migrations/source_imports/#update-existing-import) section. - * * `error` - the import encountered an error. The import progress response will include the `failed_step` and an error message. Contact [GitHub Support](https://github.com/contact) or [GitHub Premium Support](https://premium.githubsupport.com) for more information. - * * `detection_needs_auth` - the importer requires authentication for the originating repository to continue detection. To update authentication for the import, please see the [Update Existing Import](https://developer.github.com/v3/migrations/source_imports/#update-existing-import) section. - * * `detection_found_nothing` - the importer didn't recognize any source control at the URL. To resolve, [Cancel the import](https://developer.github.com/v3/migrations/source_imports/#cancel-an-import) and [retry](https://developer.github.com/v3/migrations/source_imports/#start-an-import) with the correct URL. - * * `detection_found_multiple` - the importer found several projects or repositories at the provided URL. When this is the case, the Import Progress response will also include a `project_choices` field with the possible project choices as values. To update project choice, please see the [Update Existing Import](https://developer.github.com/v3/migrations/source_imports/#update-existing-import) section. - * - * **The project_choices field** - * - * When multiple projects are found at the provided URL, the response hash will include a `project_choices` field, the value of which is an array of hashes each representing a project choice. The exact key/value pairs of the project hashes will differ depending on the version control type. - * - * **Git LFS related fields** - * - * This section includes details about Git LFS related fields that may be present in the Import Progress response. - * - * * `use_lfs` - describes whether the import has been opted in or out of using Git LFS. The value can be `opt_in`, `opt_out`, or `undecided` if no action has been taken. - * * `has_large_files` - the boolean value describing whether files larger than 100MB were found during the `importing` step. - * * `large_files_size` - the total size in gigabytes of files larger than 100MB found in the originating repository. - * * `large_files_count` - the total number of files larger than 100MB found in the originating repository. To see a list of these files, make a "Get Large Files" request. - */ - getImportProgress: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsGetImportProgressParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List files larger than 100MB found during the import - */ - getLargeFiles: { - ( - params?: Octokit.RequestOptions & Octokit.MigrationsGetLargeFilesParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Fetches a single user migration. The response includes the `state` of the migration, which can be one of the following values: - * - * * `pending` - the migration hasn't started yet. - * * `exporting` - the migration is in progress. - * * `exported` - the migration finished successfully. - * * `failed` - the migration failed. - * - * Once the migration has been `exported` you can [download the migration archive](https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive). - */ - getStatusForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsGetStatusForAuthenticatedUserParams - ): Promise< - Octokit.Response< - Octokit.MigrationsGetStatusForAuthenticatedUserResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Fetches the status of a migration. - * - * The `state` of a migration can be one of the following values: - * - * * `pending`, which means the migration hasn't started yet. - * * `exporting`, which means the migration is in progress. - * * `exported`, which means the migration finished successfully. - * * `failed`, which means the migration failed. - */ - getStatusForOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsGetStatusForOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all migrations a user has started. - */ - listForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsListForAuthenticatedUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the most recent migrations. - */ - listForOrg: { - ( - params?: Octokit.RequestOptions & Octokit.MigrationsListForOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List all the repositories for this organization migration. - */ - listReposForOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsListReposForOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all the repositories for this user migration. - */ - listReposForUser: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsListReposForUserParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Update an author's identity for the import. Your application can continue updating authors any time before you push new commits to the repository. - */ - mapCommitAuthor: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsMapCommitAuthorParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * You can import repositories from Subversion, Mercurial, and TFS that include files larger than 100MB. This ability is powered by [Git LFS](https://git-lfs.github.com). You can learn more about our LFS feature and working with large files [on our help site](https://help.github.com/articles/versioning-large-files/). - */ - setLfsPreference: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsSetLfsPreferenceParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Initiates the generation of a user migration archive. - */ - startForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsStartForAuthenticatedUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Initiates the generation of a migration archive. - */ - startForOrg: { - ( - params?: Octokit.RequestOptions & Octokit.MigrationsStartForOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Start a source import to a GitHub repository using GitHub Importer. - */ - startImport: { - ( - params?: Octokit.RequestOptions & Octokit.MigrationsStartImportParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Unlocks a repository. You can lock repositories when you [start a user migration](https://developer.github.com/v3/migrations/users/#start-a-user-migration). Once the migration is complete you can unlock each repository to begin using it again or [delete the repository](https://developer.github.com/v3/repos/#delete-a-repository) if you no longer need the source data. Returns a status of `404 Not Found` if the repository is not locked. - */ - unlockRepoForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsUnlockRepoForAuthenticatedUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Unlocks a repository that was locked for migration. You should unlock each migrated repository and [delete them](https://developer.github.com/v3/repos/#delete-a-repository) when the migration is complete and you no longer need the source data. - */ - unlockRepoForOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.MigrationsUnlockRepoForOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * An import can be updated with credentials or a project choice by passing in the appropriate parameters in this API request. If no parameters are provided, the import will be restarted. - * - * Some servers (e.g. TFS servers) can have several projects at a single URL. In those cases the import progress will have the status `detection_found_multiple` and the Import Progress response will include a `project_choices` array. You can select the project to import by providing one of the objects in the `project_choices` array in the update request. - * - * The following example demonstrates the workflow for updating an import with "project1" as the project choice. Given a `project_choices` array like such: - * - * To restart an import, no parameters are provided in the update request. - */ - updateImport: { - ( - params?: Octokit.RequestOptions & Octokit.MigrationsUpdateImportParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - }; - oauthAuthorizations: { - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth applications can use a special API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. - * @deprecated octokit.oauthAuthorizations.checkAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization - */ - checkAuthorization: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsCheckAuthorizationParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * **Warning:** Apps must use the [web application flow](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * Creates OAuth tokens using [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication). If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://developer.github.com/v3/auth/#working-with-two-factor-authentication)." - * - * To create tokens for a particular OAuth application using this endpoint, you must authenticate as the user you want to create an authorization for and provide the app's client ID and secret, found on your OAuth application's settings page. If your OAuth application intends to create multiple tokens for one user, use `fingerprint` to differentiate between them. - * - * You can also create tokens on GitHub from the [personal access tokens settings](https://github.com/settings/tokens) page. Read more about these tokens in [the GitHub Help documentation](https://help.github.com/articles/creating-an-access-token-for-command-line-use). - * - * Organizations that enforce SAML SSO require personal access tokens to be whitelisted. Read more about whitelisting tokens in [the GitHub Help documentation](https://help.github.com/articles/about-identity-and-access-management-with-saml-single-sign-on). - * @deprecated octokit.oauthAuthorizations.createAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization - */ - createAuthorization: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsCreateAuthorizationParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * @deprecated octokit.oauthAuthorizations.deleteAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization - */ - deleteAuthorization: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsDeleteAuthorizationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for your user. Once deleted, the application has no access to your account and is no longer listed on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). - * @deprecated octokit.oauthAuthorizations.deleteGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant - */ - deleteGrant: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsDeleteGrantParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * @deprecated octokit.oauthAuthorizations.getAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization - */ - getAuthorization: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsGetAuthorizationParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * @deprecated octokit.oauthAuthorizations.getGrant() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant - */ - getGrant: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsGetGrantParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * **Warning:** Apps must use the [web application flow](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * Creates a new authorization for the specified OAuth application, only if an authorization for that application doesn't already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one. - * - * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://developer.github.com/v3/auth/#working-with-two-factor-authentication)." - * - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * @deprecated octokit.oauthAuthorizations.getOrCreateAuthorizationForApp() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app - */ - getOrCreateAuthorizationForApp: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsGetOrCreateAuthorizationForAppParams - ): Promise< - Octokit.Response< - Octokit.OauthAuthorizationsGetOrCreateAuthorizationForAppResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * **Warning:** Apps must use the [web application flow](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one. - * - * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://developer.github.com/v3/auth/#working-with-two-factor-authentication)." - * @deprecated octokit.oauthAuthorizations.getOrCreateAuthorizationForAppAndFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint - */ - getOrCreateAuthorizationForAppAndFingerprint: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintParams - ): Promise< - Octokit.Response< - Octokit.OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * **Warning:** Apps must use the [web application flow](https://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow) to obtain OAuth tokens that work with GitHub SAML organizations. OAuth tokens created using the Authorizations API will be unable to access GitHub SAML organizations. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * This method will create a new authorization for the specified OAuth application, only if an authorization for that application and fingerprint do not already exist for the user. The URL includes the 20 character client ID for the OAuth app that is requesting the token. `fingerprint` is a unique string to distinguish an authorization from others created for the same client ID and user. It returns the user's existing authorization for the application if one is present. Otherwise, it creates and returns a new one. - * - * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://developer.github.com/v3/auth/#working-with-two-factor-authentication)." - * @deprecated octokit.oauthAuthorizations.getOrCreateAuthorizationForAppFingerprint() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint - */ - getOrCreateAuthorizationForAppFingerprint: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintParams - ): Promise< - Octokit.Response< - Octokit.OauthAuthorizationsGetOrCreateAuthorizationForAppFingerprintResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * @deprecated octokit.oauthAuthorizations.listAuthorizations() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations - */ - listAuthorizations: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsListAuthorizationsParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * You can use this API to list the set of OAuth applications that have been granted access to your account. Unlike the [list your authorizations](https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations) API, this API does not manage individual tokens. This API will return one entry for each OAuth application that has been granted access to your account, regardless of the number of tokens an application has generated for your user. The list of OAuth applications returned matches what is shown on [the application authorizations settings screen within GitHub](https://github.com/settings/applications#authorized). The `scopes` returned are the union of scopes authorized for the application. For example, if an application has one token with `repo` scope and another token with `user` scope, the grant will return `["repo", "user"]`. - * @deprecated octokit.oauthAuthorizations.listGrants() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#list-your-grants - */ - listGrants: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsListGrantsParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth applications can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. Invalid tokens will return `404 NOT FOUND`. - * @deprecated octokit.oauthAuthorizations.resetAuthorization() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization - */ - resetAuthorization: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsResetAuthorizationParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth application owners can revoke a single token for an OAuth application. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. - * @deprecated octokit.oauthAuthorizations.revokeAuthorizationForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application - */ - revokeAuthorizationForApplication: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsRevokeAuthorizationForApplicationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will replace and discontinue OAuth endpoints containing `access_token` in the path parameter. We are introducing new endpoints that allow you to securely manage tokens for OAuth Apps by using `access_token` as an input parameter. For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * OAuth application owners can revoke a grant for their OAuth application and a specific user. You must use [Basic Authentication](https://developer.github.com/v3/auth#basic-authentication) when accessing this endpoint, using the OAuth application's `client_id` and `client_secret` as the username and password. You must also provide a valid token as `:access_token` and the grant for the token's owner will be deleted. - * - * Deleting an OAuth application's grant will also delete all OAuth tokens associated with the application for the user. Once deleted, the application will have no access to the user's account and will no longer be listed on [the Applications settings page under "Authorized OAuth Apps" on GitHub](https://github.com/settings/applications#authorized). - * @deprecated octokit.oauthAuthorizations.revokeGrantForApplication() is deprecated, see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application - */ - revokeGrantForApplication: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsRevokeGrantForApplicationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** GitHub will discontinue the [OAuth Authorizations API](https://developer.github.com/v3/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://developer.github.com/apps/building-oauth-apps/authorizing-oauth-apps/#web-application-flow). For more information, see the [blog post](https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api). - * - * If you have two-factor authentication setup, Basic Authentication for this endpoint requires that you use a one-time password (OTP) and your username and password instead of tokens. For more information, see "[Working with two-factor authentication](https://developer.github.com/v3/auth/#working-with-two-factor-authentication)." - * - * You can only send one of these scope keys at a time. - * @deprecated octokit.oauthAuthorizations.updateAuthorization() is deprecated, see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization - */ - updateAuthorization: { - ( - params?: Octokit.RequestOptions & - Octokit.OauthAuthorizationsUpdateAuthorizationParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - }; - orgs: { - /** - * Only authenticated organization owners can add a member to the organization or update the member's role. - * - * * If the authenticated user is _adding_ a member to the organization, the invited user will receive an email inviting them to the organization. The user's [membership status](https://developer.github.com/v3/orgs/members/#get-organization-membership) will be `pending` until they accept the invitation. - * - * * Authenticated users can _update_ a user's membership by passing the `role` parameter. If the authenticated user changes a member's role to `admin`, the affected user will receive an email notifying them that they've been made an organization owner. If the authenticated user changes an owner's role to `member`, no email will be sent. - * - * **Rate limits** - * - * To prevent abuse, the authenticated user is limited to 50 organization invitations per 24 hour period. If the organization is more than one month old or on a paid plan, the limit is 500 invitations per 24 hour period. - */ - addOrUpdateMembership: { - ( - params?: Octokit.RequestOptions & - Octokit.OrgsAddOrUpdateMembershipParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - blockUser: { - (params?: Octokit.RequestOptions & Octokit.OrgsBlockUserParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * If the user is blocked: - * - * If the user is not blocked: - */ - checkBlockedUser: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsCheckBlockedUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Check if a user is, publicly or privately, a member of the organization. - */ - checkMembership: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsCheckMembershipParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - checkPublicMembership: { - ( - params?: Octokit.RequestOptions & - Octokit.OrgsCheckPublicMembershipParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - concealMembership: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsConcealMembershipParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * When an organization member is converted to an outside collaborator, they'll only have access to the repositories that their current team membership allows. The user will no longer be a member of the organization. For more information, see "[Converting an organization member to an outside collaborator](https://help.github.com/articles/converting-an-organization-member-to-an-outside-collaborator/)". - */ - convertMemberToOutsideCollaborator: { - ( - params?: Octokit.RequestOptions & - Octokit.OrgsConvertMemberToOutsideCollaboratorParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Here's how you can create a hook that posts payloads in JSON format: - */ - createHook: { - (params?: Octokit.RequestOptions & Octokit.OrgsCreateHookParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Invite people to an organization by using their GitHub user ID or their email address. In order to create invitations in an organization, the authenticated user must be an organization owner. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createInvitation: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsCreateInvitationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - deleteHook: { - (params?: Octokit.RequestOptions & Octokit.OrgsDeleteHookParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * To see many of the organization response values, you need to be an authenticated organization owner with the `admin:org` scope. When the value of `two_factor_requirement_enabled` is `true`, the organization requires all members, billing managers, and outside collaborators to enable [two-factor authentication](https://help.github.com/articles/securing-your-account-with-two-factor-authentication-2fa/). - * - * GitHub Apps with the `Organization plan` permission can use this endpoint to retrieve information about an organization's GitHub plan. See "[Authenticating with GitHub Apps](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/)" for details. For an example response, see "[Response with GitHub plan information](https://developer.github.com/v3/orgs/#response-with-github-plan-information)." - */ - get: { - (params?: Octokit.RequestOptions & Octokit.OrgsGetParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - getHook: { - (params?: Octokit.RequestOptions & Octokit.OrgsGetHookParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * In order to get a user's membership with an organization, the authenticated user must be an organization member. - */ - getMembership: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsGetMembershipParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getMembershipForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.OrgsGetMembershipForAuthenticatedUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all organizations, in the order that they were created on GitHub. - * - * **Note:** Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of organizations. - */ - list: { - (params?: Octokit.RequestOptions & Octokit.OrgsListParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * List the users blocked by an organization. - */ - listBlockedUsers: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsListBlockedUsersParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List organizations for the authenticated user. - * - * **OAuth scope requirements** - * - * This only lists organizations that your authorization allows you to operate on in some way (e.g., you can list teams with `read:org` scope, you can publicize your organization membership with `user` scope, etc.). Therefore, this API requires at least `user` or `read:org` scope. OAuth requests with insufficient scope receive a `403 Forbidden` response. - */ - listForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.OrgsListForAuthenticatedUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * List [public organization memberships](https://help.github.com/articles/publicizing-or-concealing-organization-membership) for the specified user. - * - * This method only lists _public_ memberships, regardless of authentication. If you need to fetch all of the organization memberships (public and private) for the authenticated user, use the [List your organizations](https://developer.github.com/v3/orgs/#list-your-organizations) API instead. - */ - listForUser: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsListForUserParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listHooks: { - (params?: Octokit.RequestOptions & Octokit.OrgsListHooksParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all GitHub Apps in an organization. The installation count includes all GitHub Apps installed on repositories in the organization. You must be an organization owner with `admin:read` scope to use this endpoint. - */ - listInstallations: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsListInstallationsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List all teams associated with an invitation. In order to see invitations in an organization, the authenticated user must be an organization owner. - */ - listInvitationTeams: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsListInvitationTeamsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List all users who are members of an organization. If the authenticated user is also a member of this organization then both concealed and public members will be returned. - */ - listMembers: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsListMembersParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listMemberships: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsListMembershipsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List all users who are outside collaborators of an organization. - */ - listOutsideCollaborators: { - ( - params?: Octokit.RequestOptions & - Octokit.OrgsListOutsideCollaboratorsParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. - */ - listPendingInvitations: { - ( - params?: Octokit.RequestOptions & - Octokit.OrgsListPendingInvitationsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Members of an organization can choose to have their membership publicized or not. - */ - listPublicMembers: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsListPublicMembersParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * This will trigger a [ping event](https://developer.github.com/webhooks/#ping-event) to be sent to the hook. - */ - pingHook: { - (params?: Octokit.RequestOptions & Octokit.OrgsPingHookParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * The user can publicize their own membership. (A user cannot publicize the membership for another user.) - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - */ - publicizeMembership: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsPublicizeMembershipParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. - */ - removeMember: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsRemoveMemberParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * In order to remove a user's membership with an organization, the authenticated user must be an organization owner. - * - * If the specified user is an active member of the organization, this will remove them from the organization. If the specified user has been invited to the organization, this will cancel their invitation. The specified user will receive an email notification in both cases. - */ - removeMembership: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsRemoveMembershipParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Removing a user from this list will remove them from all the organization's repositories. - */ - removeOutsideCollaborator: { - ( - params?: Octokit.RequestOptions & - Octokit.OrgsRemoveOutsideCollaboratorParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - unblockUser: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsUnblockUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Parameter Deprecation Notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). - * - * Enables an authenticated organization owner with the `admin:org` scope to update the organization's profile and member privileges. - */ - update: { - ( - params?: Octokit.RequestOptions & - Octokit.OrgsUpdateParamsDeprecatedMembersAllowedRepositoryCreationType - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.OrgsUpdateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - updateHook: { - (params?: Octokit.RequestOptions & Octokit.OrgsUpdateHookParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - updateMembership: { - ( - params?: Octokit.RequestOptions & Octokit.OrgsUpdateMembershipParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - }; - projects: { - /** - * Adds a collaborator to a an organization project and sets their permission level. You must be an organization owner or a project `admin` to add a collaborator. - */ - addCollaborator: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsAddCollaboratorParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note**: GitHub's REST API v3 considers every pull request an issue, but not every issue is a pull request. For this reason, "Issues" endpoints may return both issues and pull requests in the response. You can identify pull requests by the `pull_request` key. - * - * Be aware that the `id` of a pull request returned from "Issues" endpoints will be an _issue id_. To find out the pull request id, use the "[List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests)" endpoint. - */ - createCard: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsCreateCardParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - createColumn: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsCreateColumnParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - createForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ProjectsCreateForAuthenticatedUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates an organization project board. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - */ - createForOrg: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsCreateForOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a repository project board. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - */ - createForRepo: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsCreateForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Deletes a project board. Returns a `404 Not Found` status if projects are disabled. - */ - delete: { - (params?: Octokit.RequestOptions & Octokit.ProjectsDeleteParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - - deleteCard: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsDeleteCardParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - deleteColumn: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsDeleteColumnParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a project by its `id`. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - */ - get: { - (params?: Octokit.RequestOptions & Octokit.ProjectsGetParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - getCard: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsGetCardParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getColumn: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsGetColumnParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listCards: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsListCardsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the collaborators for an organization project. For a project, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. You must be an organization owner or a project `admin` to list collaborators. - */ - listCollaborators: { - ( - params?: Octokit.RequestOptions & - Octokit.ProjectsListCollaboratorsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listColumns: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsListColumnsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - * - * s - */ - listForOrg: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsListForOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the projects in a repository. Returns a `404 Not Found` status if projects are disabled in the repository. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - */ - listForRepo: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsListForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listForUser: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsListForUserParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - moveCard: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsMoveCardParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - moveColumn: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsMoveColumnParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Removes a collaborator from an organization project. You must be an organization owner or a project `admin` to remove a collaborator. - */ - removeCollaborator: { - ( - params?: Octokit.RequestOptions & - Octokit.ProjectsRemoveCollaboratorParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns the collaborator's permission level for an organization project. Possible values for the `permission` key: `admin`, `write`, `read`, `none`. You must be an organization owner or a project `admin` to review a user's permission level. - */ - reviewUserPermissionLevel: { - ( - params?: Octokit.RequestOptions & - Octokit.ProjectsReviewUserPermissionLevelParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Updates a project board's information. Returns a `404 Not Found` status if projects are disabled. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned. - */ - update: { - (params?: Octokit.RequestOptions & Octokit.ProjectsUpdateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - updateCard: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsUpdateCardParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - updateColumn: { - ( - params?: Octokit.RequestOptions & Octokit.ProjectsUpdateColumnParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - }; - pulls: { - checkIfMerged: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsCheckIfMergedParamsDeprecatedNumber - ): Promise; - ( - params?: Octokit.RequestOptions & Octokit.PullsCheckIfMergedParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request. - * - * You can create a new pull request. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - create: { - (params?: Octokit.RequestOptions & Octokit.PullsCreateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Creates a review comment in the pull request diff. To add a regular comment to a pull request timeline, see "[Comments](https://developer.github.com/v3/issues/comments/#create-a-comment)." We recommend creating a review comment using `line`, `side`, and optionally `start_line` and `start_side` if your comment applies to more than one line in the pull request diff. - * - * You can still create a review comment using the `position` parameter. When you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. For more information, see [Multi-line comment summary](https://developer.github.com/v3/pulls/comments/#multi-line-comment-summary-3). - * - * **Note:** The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - */ - createComment: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsCreateCommentParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & - Octokit.PullsCreateCommentParamsDeprecatedInReplyTo - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsCreateCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Creates a review comment in the pull request diff. To add a regular comment to a pull request timeline, see "[Comments](https://developer.github.com/v3/issues/comments/#create-a-comment)." We recommend creating a review comment using `line`, `side`, and optionally `start_line` and `start_side` if your comment applies to more than one line in the pull request diff. - * - * You can still create a review comment using the `position` parameter. When you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. For more information, see [Multi-line comment summary](https://developer.github.com/v3/pulls/comments/#multi-line-comment-summary-3). - * - * **Note:** The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - * @deprecated octokit.pulls.createCommentReply() has been renamed to octokit.pulls.createComment() (2019-09-09) - */ - createCommentReply: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsCreateCommentReplyParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & - Octokit.PullsCreateCommentReplyParamsDeprecatedInReplyTo - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsCreateCommentReplyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - createFromIssue: { - ( - params?: Octokit.RequestOptions & Octokit.PullsCreateFromIssueParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * **Note:** To comment on a specific line in a file, you need to first determine the _position_ of that line in the diff. The GitHub REST API v3 offers the `application/vnd.github.v3.diff` [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests). To see a pull request diff, add this media type to the `Accept` header of a call to the [single pull request](https://developer.github.com/v3/pulls/#get-a-single-pull-request) endpoint. - * - * The `position` value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. - */ - createReview: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsCreateReviewParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsCreateReviewParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a reply to a review comment for a pull request. For the `comment_id`, provide the ID of the review comment you are replying to. This must be the ID of a _top-level review comment_, not a reply to that comment. Replies to replies are not supported. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createReviewCommentReply: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsCreateReviewCommentReplyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createReviewRequest: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsCreateReviewRequestParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsCreateReviewRequestParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Deletes a review comment. - */ - deleteComment: { - ( - params?: Octokit.RequestOptions & Octokit.PullsDeleteCommentParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - deletePendingReview: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsDeletePendingReviewParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsDeletePendingReviewParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - deleteReviewRequest: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsDeleteReviewRequestParamsDeprecatedNumber - ): Promise; - ( - params?: Octokit.RequestOptions & Octokit.PullsDeleteReviewRequestParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** To dismiss a pull request review on a [protected branch](https://developer.github.com/v3/repos/branches/), you must be a repository administrator or be included in the list of people or teams who can dismiss pull request reviews. - */ - dismissReview: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsDismissReviewParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsDismissReviewParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists details of a pull request by providing its number. - * - * When you get, [create](https://developer.github.com/v3/pulls/#create-a-pull-request), or [edit](https://developer.github.com/v3/pulls/#update-a-pull-request) a pull request, GitHub creates a merge commit to test whether the pull request can be automatically merged into the base branch. This test commit is not added to the base branch or the head branch. You can review the status of the test commit using the `mergeable` key. For more information, see "[Checking mergeability of pull requests](https://developer.github.com/v3/git/#checking-mergeability-of-pull-requests)". - * - * The value of the `mergeable` attribute can be `true`, `false`, or `null`. If the value is `null`, then GitHub has started a background job to compute the mergeability. After giving the job time to complete, resubmit the request. When the job finishes, you will see a non-`null` value for the `mergeable` attribute in the response. If `mergeable` is `true`, then `merge_commit_sha` will be the SHA of the _test_ merge commit. - * - * The value of the `merge_commit_sha` attribute changes depending on the state of the pull request. Before merging a pull request, the `merge_commit_sha` attribute holds the SHA of the _test_ merge commit. After merging a pull request, the `merge_commit_sha` attribute changes depending on how you merged the pull request: - * - * * If merged as a [merge commit](https://help.github.com/articles/about-merge-methods-on-github/), `merge_commit_sha` represents the SHA of the merge commit. - * * If merged via a [squash](https://help.github.com/articles/about-merge-methods-on-github/#squashing-your-merge-commits), `merge_commit_sha` represents the SHA of the squashed commit on the base branch. - * * If [rebased](https://help.github.com/articles/about-merge-methods-on-github/#rebasing-and-merging-your-commits), `merge_commit_sha` represents the commit that the base branch was updated to. - * - * Pass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. - */ - get: { - ( - params?: Octokit.RequestOptions & Octokit.PullsGetParamsDeprecatedNumber - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.PullsGetParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Provides details for a review comment. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - * - * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://developer.github.com/v3/reactions) reactions. - */ - getComment: { - ( - params?: Octokit.RequestOptions & Octokit.PullsGetCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getCommentsForReview: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsGetCommentsForReviewParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & - Octokit.PullsGetCommentsForReviewParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getReview: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsGetReviewParamsDeprecatedNumber - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.PullsGetReviewParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - list: { - (params?: Octokit.RequestOptions & Octokit.PullsListParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Lists review comments for a pull request. By default, review comments are in ascending order by ID. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - * - * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://developer.github.com/v3/reactions) reactions. - */ - listComments: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsListCommentsParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsListCommentsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Lists review comments for all pull requests in a repository. By default, review comments are in ascending order by ID. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - * - * The `reactions` key will have the following payload where `url` can be used to construct the API location for [listing and creating](https://developer.github.com/v3/reactions) reactions. - */ - listCommentsForRepo: { - ( - params?: Octokit.RequestOptions & Octokit.PullsListCommentsForRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists a maximum of 250 commits for a pull request. To receive a complete commit list for pull requests with more than 250 commits, use the [Commit List API](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository). - */ - listCommits: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsListCommitsParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsListCommitsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** Responses include a maximum of 3000 files. The paginated response returns 30 files per page by default. - */ - listFiles: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsListFilesParamsDeprecatedNumber - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.PullsListFilesParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - listReviewRequests: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsListReviewRequestsParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsListReviewRequestsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * The list of reviews returns in chronological order. - */ - listReviews: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsListReviewsParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsListReviewsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - merge: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsMergeParamsDeprecatedNumber - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.PullsMergeParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - submitReview: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsSubmitReviewParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsSubmitReviewParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Draft pull requests are available in public repositories with GitHub Free and GitHub Pro, and in public and private repositories with GitHub Team and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To open or update a pull request in a public repository, you must have write access to the head or the source branch. For organization-owned repositories, you must be a member of the organization that owns the repository to open or update a pull request. - */ - update: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsUpdateParamsDeprecatedNumber - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.PullsUpdateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Updates the pull request branch with the latest upstream changes by merging HEAD from the base branch into the pull request branch. - */ - updateBranch: { - ( - params?: Octokit.RequestOptions & Octokit.PullsUpdateBranchParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** Multi-line comments on pull requests are currently in public beta and subject to change. - * - * Enables you to edit a review comment. - * - * **Multi-line comment summary** - * - * **Note:** New parameters and response fields are available for developers to preview. During the preview period, these response fields may change without advance notice. Please see the [blog post](https://developer.github.com/changes/2019-10-03-multi-line-comments) for full details. - * - * Use the `comfort-fade` preview header and the `line` parameter to show multi-line comment-supported fields in the response. - * - * If you use the `comfort-fade` preview header, your response will show: - * - * * For multi-line comments, values for `start_line`, `original_start_line`, `start_side`, `line`, `original_line`, and `side`. - * * For single-line comments, values for `line`, `original_line`, and `side` and a `null` value for `start_line`, `original_start_line`, and `start_side`. - * - * If you don't use the `comfort-fade` preview header, multi-line and single-line comments will appear the same way in the response with a single `position` attribute. Your response will show: - * - * * For multi-line comments, the last line of the comment range for the `position` attribute. - * * For single-line comments, the diff-positioned way of referencing comments for the `position` attribute. For more information, see `position` in the [input parameters](https://developer.github.com/v3/pulls/comments/#parameters-2) table. - */ - updateComment: { - ( - params?: Octokit.RequestOptions & Octokit.PullsUpdateCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Update the review summary comment with new text. - */ - updateReview: { - ( - params?: Octokit.RequestOptions & - Octokit.PullsUpdateReviewParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.PullsUpdateReviewParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - }; - rateLimit: { - /** - * **Note:** Accessing this endpoint does not count against your REST API rate limit. - * - * **Understanding your rate limit status** - * - * The Search API has a [custom rate limit](https://developer.github.com/v3/search/#rate-limit), separate from the rate limit governing the rest of the REST API. The GraphQL API also has a [custom rate limit](https://developer.github.com/v4/guides/resource-limitations/#rate-limit) that is separate from and calculated differently than rate limits in the REST API. - * - * For these reasons, the Rate Limit API response categorizes your rate limit. Under `resources`, you'll see four objects: - * - * * The `core` object provides your rate limit status for all non-search-related resources in the REST API. - * * The `search` object provides your rate limit status for the [Search API](https://developer.github.com/v3/search/). - * * The `graphql` object provides your rate limit status for the [GraphQL API](https://developer.github.com/v4/). - * * The `integration_manifest` object provides your rate limit status for the [GitHub App Manifest code conversion](https://developer.github.com/apps/building-github-apps/creating-github-apps-from-a-manifest/#3-you-exchange-the-temporary-code-to-retrieve-the-app-configuration) endpoint. - * - * For more information on the headers and values in the rate limit response, see "[Rate limiting](https://developer.github.com/v3/#rate-limiting)." - * - * The `rate` object (shown at the bottom of the response above) is deprecated. - * - * If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. - */ - get: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - }; - reactions: { - /** - * Create a reaction to a [commit comment](https://developer.github.com/v3/repos/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this commit comment. - */ - createForCommitComment: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsCreateForCommitCommentParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Create a reaction to an [issue](https://developer.github.com/v3/issues/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue. - */ - createForIssue: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsCreateForIssueParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.ReactionsCreateForIssueParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Create a reaction to an [issue comment](https://developer.github.com/v3/issues/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this issue comment. - */ - createForIssueComment: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsCreateForIssueCommentParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Create a reaction to a [pull request review comment](https://developer.github.com/v3/pulls/comments/). A response with a `Status: 200 OK` means that you already added the reaction type to this pull request review comment. - */ - createForPullRequestReviewComment: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsCreateForPullRequestReviewCommentParams - ): Promise< - Octokit.Response< - Octokit.ReactionsCreateForPullRequestReviewCommentResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion) endpoint. - * - * Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. - * @deprecated octokit.reactions.createForTeamDiscussion() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy - */ - createForTeamDiscussion: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsCreateForTeamDiscussionParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion comment`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment) endpoint. - * - * Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. - * @deprecated octokit.reactions.createForTeamDiscussionComment() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy - */ - createForTeamDiscussionComment: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsCreateForTeamDiscussionCommentParams - ): Promise< - Octokit.Response< - Octokit.ReactionsCreateForTeamDiscussionCommentResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. - */ - createForTeamDiscussionCommentInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsCreateForTeamDiscussionCommentInOrgParams - ): Promise< - Octokit.Response< - Octokit.ReactionsCreateForTeamDiscussionCommentInOrgResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion comment`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment) endpoint. - * - * Create a reaction to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion comment. - * @deprecated octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy - */ - createForTeamDiscussionCommentLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsCreateForTeamDiscussionCommentLegacyParams - ): Promise< - Octokit.Response< - Octokit.ReactionsCreateForTeamDiscussionCommentLegacyResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. - */ - createForTeamDiscussionInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsCreateForTeamDiscussionInOrgParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion) endpoint. - * - * Create a reaction to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). A response with a `Status: 200 OK` means that you already added the reaction type to this team discussion. - * @deprecated octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy - */ - createForTeamDiscussionLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsCreateForTeamDiscussionLegacyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), when deleting a [team discussion](https://developer.github.com/v3/teams/discussions/) or [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). - */ - delete: { - ( - params?: Octokit.RequestOptions & Octokit.ReactionsDeleteParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * List the reactions to a [commit comment](https://developer.github.com/v3/repos/comments/). - */ - listForCommitComment: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsListForCommitCommentParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * List the reactions to an [issue](https://developer.github.com/v3/issues/). - */ - listForIssue: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsListForIssueParamsDeprecatedNumber - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.ReactionsListForIssueParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List the reactions to an [issue comment](https://developer.github.com/v3/issues/comments/). - */ - listForIssueComment: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsListForIssueCommentParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * List the reactions to a [pull request review comment](https://developer.github.com/v3/pulls/comments/). - */ - listForPullRequestReviewComment: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsListForPullRequestReviewCommentParams - ): Promise< - Octokit.Response< - Octokit.ReactionsListForPullRequestReviewCommentResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion) endpoint. - * - * List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.reactions.listForTeamDiscussion() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy - */ - listForTeamDiscussion: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsListForTeamDiscussionParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment) endpoint. - * - * List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.reactions.listForTeamDiscussionComment() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy - */ - listForTeamDiscussionComment: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsListForTeamDiscussionCommentParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number/reactions`. - */ - listForTeamDiscussionCommentInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsListForTeamDiscussionCommentInOrgParams - ): Promise< - Octokit.Response< - Octokit.ReactionsListForTeamDiscussionCommentInOrgResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment) endpoint. - * - * List the reactions to a [team discussion comment](https://developer.github.com/v3/teams/discussion_comments/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy - */ - listForTeamDiscussionCommentLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsListForTeamDiscussionCommentLegacyParams - ): Promise< - Octokit.Response< - Octokit.ReactionsListForTeamDiscussionCommentLegacyResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/reactions`. - */ - listForTeamDiscussionInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsListForTeamDiscussionInOrgParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion) endpoint. - * - * List the reactions to a [team discussion](https://developer.github.com/v3/teams/discussions/). OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy - */ - listForTeamDiscussionLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.ReactionsListForTeamDiscussionLegacyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - }; - repos: { - acceptInvitation: { - ( - params?: Octokit.RequestOptions & Octokit.ReposAcceptInvitationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * 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://developer.github.com/v3/#http-verbs)." - * - * The invitee will receive a notification that they have been invited to the repository, which they must accept or decline. They may do this via the notifications page, the email they receive, or by using the [repository invitations API endpoints](https://developer.github.com/v3/repos/invitations/). - * - * **Rate limits** - * - * To prevent abuse, you are limited to sending 50 invitations to a repository per 24 hour period. Note there is no limit if you are inviting organization members to an organization repository. - */ - addCollaborator: { - ( - params?: Octokit.RequestOptions & Octokit.ReposAddCollaboratorParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Here's how you can create a read-only deploy key: - */ - addDeployKey: { - ( - params?: Octokit.RequestOptions & Octokit.ReposAddDeployKeyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Adding admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. - */ - addProtectedBranchAdminEnforcement: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposAddProtectedBranchAdminEnforcementParams - ): Promise< - Octokit.Response< - Octokit.ReposAddProtectedBranchAdminEnforcementResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Grants the specified apps push access for this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. - * - * | Type | Description | - * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | - * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - addProtectedBranchAppRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposAddProtectedBranchAppRestrictionsParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * When authenticated with admin or owner permissions to the repository, you can use this endpoint to require signed commits on a branch. You must enable branch protection to require signed commits. - */ - addProtectedBranchRequiredSignatures: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposAddProtectedBranchRequiredSignaturesParams - ): Promise< - Octokit.Response< - Octokit.ReposAddProtectedBranchRequiredSignaturesResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - addProtectedBranchRequiredStatusChecksContexts: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposAddProtectedBranchRequiredStatusChecksContextsParams - ): Promise< - Octokit.Response< - Octokit.ReposAddProtectedBranchRequiredStatusChecksContextsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Grants the specified teams push access for this branch. You can also give push access to child teams. - * - * | Type | Description | - * | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | - * | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - addProtectedBranchTeamRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposAddProtectedBranchTeamRestrictionsParams - ): Promise< - Octokit.Response< - Octokit.ReposAddProtectedBranchTeamRestrictionsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Grants the specified people push access for this branch. - * - * | Type | Description | - * | ------- | ----------------------------------------------------------------------------------------------------------------------------- | - * | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - addProtectedBranchUserRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposAddProtectedBranchUserRestrictionsParams - ): Promise< - Octokit.Response< - Octokit.ReposAddProtectedBranchUserRestrictionsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. - * - * Team members will include the members of child teams. - */ - checkCollaborator: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCheckCollaboratorParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Shows whether vulnerability alerts are enabled or disabled for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)" in the GitHub Help documentation. - */ - checkVulnerabilityAlerts: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposCheckVulnerabilityAlertsParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Both `:base` and `:head` must be branch names in `:repo`. To compare branches across other repositories in the same network as `:repo`, use the format `:branch`. - * - * The response from the API is equivalent to running the `git log base..head` command; however, commits are returned in chronological order. Pass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch diff and patch formats. - * - * The response also includes details on the files that were changed between the two commits. This includes the status of the change (for example, if a file was added, removed, modified, or renamed), and details of the change itself. For example, files with a `renamed` status have a `previous_filename` field showing the previous filename of the file, and files with a `modified` status have a `patch` field showing the changes made to the file. - * - * **Working with large comparisons** - * - * The response will include a comparison of up to 250 commits. If you are working with a larger commit range, you can use the [Commit List API](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository) to enumerate all commits in the range. - * - * For comparisons with extremely large diffs, you may receive an error response indicating that the diff took too long to generate. You can typically resolve this error by using a smaller commit range. - * - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - compareCommits: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCompareCommitsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Create a comment for a commit using its `:commit_sha`. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createCommitComment: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposCreateCommitCommentParamsDeprecatedSha - ): Promise>; - ( - params?: Octokit.RequestOptions & - Octokit.ReposCreateCommitCommentParamsDeprecatedLine - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateCommitCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Deployments offer a few configurable parameters with sane defaults. - * - * The `ref` parameter can be any named branch, tag, or SHA. At GitHub we often deploy branches and verify them before we merge a pull request. - * - * The `environment` parameter allows deployments to be issued to different runtime environments. Teams often have multiple environments for verifying their applications, such as `production`, `staging`, and `qa`. This parameter makes it easier to track which environments have requested deployments. The default environment is `production`. - * - * The `auto_merge` parameter is used to ensure that the requested ref is not behind the repository's default branch. If the ref _is_ behind the default branch for the repository, we will attempt to merge it for you. If the merge succeeds, the API will return a successful merge commit. If merge conflicts prevent the merge from succeeding, the API will return a failure response. - * - * By default, [commit statuses](https://developer.github.com/v3/repos/statuses) for every submitted context must be in a `success` state. The `required_contexts` parameter allows you to specify a subset of contexts that must be `success`, or to specify contexts that have not yet been submitted. You are not required to use commit statuses to deploy. If you do not require any contexts or create any commit statuses, the deployment will always succeed. - * - * The `payload` parameter is available for any extra information that a deployment system might need. It is a JSON text field that will be passed on when a deployment event is dispatched. - * - * The `task` parameter is used by the deployment system to allow different execution paths. In the web world this might be `deploy:migrations` to run schema changes on the system. In the compiled world this could be a flag to compile an application with debugging enabled. - * - * Users with `repo` or `repo_deployment` scopes can create a deployment for a given ref: - * - * A simple example putting the user and room into the payload to notify back to chat networks. - * - * A more advanced example specifying required commit statuses and bypassing auto-merging. - * - * You will see this response when GitHub automatically merges the base branch into the topic branch instead of creating a deployment. This auto-merge happens when: - * - * * Auto-merge option is enabled in the repository - * * Topic branch does not include the latest changes on the base branch, which is `master`in the response example - * * There are no merge conflicts - * - * If there are no new commits in the base branch, a new request to create a deployment should give a successful response. - * - * This error happens when the `auto_merge` option is enabled and when the default branch (in this case `master`), can't be merged into the branch that's being deployed (in this case `topic-branch`), due to merge conflicts. - * - * This error happens when the `required_contexts` parameter indicates that one or more contexts need to have a `success` status for the commit to be deployed, but one or more of the required contexts do not have a state of `success`. - */ - createDeployment: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateDeploymentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with `push` access can create deployment statuses for a given deployment. - * - * GitHub Apps require `read & write` access to "Deployments" and `read-only` access to "Repo contents" (for private repos). OAuth Apps require the `repo_deployment` scope. - */ - createDeploymentStatus: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposCreateDeploymentStatusParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * You can use this endpoint to trigger a webhook event called `repository_dispatch` when you want activity that happens outside of GitHub to trigger a GitHub Actions workflow or GitHub App webhook. You must configure your GitHub Actions workflow or GitHub App to run when the `repository_dispatch` event occurs. For an example `repository_dispatch` webhook payload, see "[RepositoryDispatchEvent](https://developer.github.com/v3/activity/events/types/#repositorydispatchevent)." - * - * The `client_payload` parameter is available for any extra information that your workflow might need. This parameter is a JSON payload that will be passed on when the webhook event is dispatched. For example, the `client_payload` can include a message that a user would like to send using a GitHub Actions workflow. Or the `client_payload` can be used as a test to debug your workflow. For a test example, see the [input example](https://developer.github.com/v3/repos/#example-4). - * - * To give you write access to the repository, you must use a personal access token with the `repo` scope. For more information, see "[Creating a personal access token for the command line](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line)" in the GitHub Help documentation. - * - * This input example shows how you can use the `client_payload` as a test to debug your workflow. - */ - createDispatchEvent: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateDispatchEventParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a new file or updates an existing file in a repository. - * @deprecated octokit.repos.createFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07) - */ - createFile: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateFileParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a new repository for the authenticated user. - * - * **OAuth scope requirements** - * - * When using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: - * - * * `public_repo` scope or `repo` scope to create a public repository - * * `repo` scope to create a private repository - */ - createForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposCreateForAuthenticatedUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Create a fork for the authenticated user. - * - * **Note**: Forking a Repository happens asynchronously. You may have to wait a short period of time before you can access the git objects. If this takes longer than 5 minutes, be sure to contact [GitHub Support](https://github.com/contact) or [GitHub Premium Support](https://premium.githubsupport.com). - */ - createFork: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateForkParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Repositories can have multiple webhooks installed. Each webhook should have a unique `config`. Multiple webhooks can share the same `config` as long as those webhooks do not have any `events` that overlap. - * - * Here's how you can create a hook that posts payloads in JSON format: - */ - createHook: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateHookParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a new repository for the authenticated user. - * - * **OAuth scope requirements** - * - * When using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: - * - * * `public_repo` scope or `repo` scope to create a public repository - * * `repo` scope to create a private repository - */ - createInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a new file or updates an existing file in a repository. - */ - createOrUpdateFile: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateOrUpdateFileParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with push access to the repository can create a release. - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - */ - createRelease: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateReleaseParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with push access in a repository can create commit statuses for a given SHA. - * - * Note: there is a limit of 1000 statuses per `sha` and `context` within a repository. Attempts to create more than 1000 statuses will result in a validation error. - */ - createStatus: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateStatusParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a new repository using a repository template. Use the `template_owner` and `template_repo` route parameters to specify the repository to use as the template. The authenticated user must own or be a member of an organization that owns the repository. To check if a repository is available to use as a template, get the repository's information using the [`GET /repos/:owner/:repo`](https://developer.github.com/v3/repos/#get) endpoint and check that the `is_template` key is `true`. - * - * **OAuth scope requirements** - * - * When using [OAuth](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/), authorizations must include: - * - * * `public_repo` scope or `repo` scope to create a public repository - * * `repo` scope to create a private repository - * - * \` - */ - createUsingTemplate: { - ( - params?: Octokit.RequestOptions & Octokit.ReposCreateUsingTemplateParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - declineInvitation: { - ( - params?: Octokit.RequestOptions & Octokit.ReposDeclineInvitationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Deleting a repository requires admin access. If OAuth is used, the `delete_repo` scope is required. - * - * If an organization owner has configured the organization to prevent members from deleting organization-owned repositories, a member will get this response: - */ - delete: { - (params?: Octokit.RequestOptions & Octokit.ReposDeleteParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - deleteCommitComment: { - ( - params?: Octokit.RequestOptions & Octokit.ReposDeleteCommitCommentParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - deleteDownload: { - ( - params?: Octokit.RequestOptions & Octokit.ReposDeleteDownloadParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Deletes a file in a repository. - * - * You can provide an additional `committer` parameter, which is an object containing information about the committer. Or, you can provide an `author` parameter, which is an object containing information about the author. - * - * The `author` section is optional and is filled in with the `committer` information if omitted. If the `committer` information is omitted, the authenticated user's information is used. - * - * You must provide values for both `name` and `email`, whether you choose to use `author` or `committer`. Otherwise, you'll receive a `422` status code. - */ - deleteFile: { - ( - params?: Octokit.RequestOptions & Octokit.ReposDeleteFileParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - deleteHook: { - ( - params?: Octokit.RequestOptions & Octokit.ReposDeleteHookParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - deleteInvitation: { - ( - params?: Octokit.RequestOptions & Octokit.ReposDeleteInvitationParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with push access to the repository can delete a release. - */ - deleteRelease: { - ( - params?: Octokit.RequestOptions & Octokit.ReposDeleteReleaseParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - deleteReleaseAsset: { - ( - params?: Octokit.RequestOptions & Octokit.ReposDeleteReleaseAssetParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Disables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)" in the GitHub Help documentation. - */ - disableAutomatedSecurityFixes: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposDisableAutomatedSecurityFixesParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - disablePagesSite: { - ( - params?: Octokit.RequestOptions & Octokit.ReposDisablePagesSiteParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Disables vulnerability alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)" in the GitHub Help documentation. - */ - disableVulnerabilityAlerts: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposDisableVulnerabilityAlertsParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Enables automated security fixes for a repository. The authenticated user must have admin access to the repository. For more information, see "[Configuring automated security fixes](https://help.github.com/en/articles/configuring-automated-security-fixes)" in the GitHub Help documentation. - */ - enableAutomatedSecurityFixes: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposEnableAutomatedSecurityFixesParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - enablePagesSite: { - ( - params?: Octokit.RequestOptions & Octokit.ReposEnablePagesSiteParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Enables vulnerability alerts and the dependency graph for a repository. The authenticated user must have admin access to the repository. For more information, see "[About security alerts for vulnerable dependencies](https://help.github.com/en/articles/about-security-alerts-for-vulnerable-dependencies)" in the GitHub Help documentation. - */ - enableVulnerabilityAlerts: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposEnableVulnerabilityAlertsParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * The `parent` and `source` objects are present when the repository is a fork. `parent` is the repository this repository was forked from, `source` is the ultimate source for the network. - */ - get: { - (params?: Octokit.RequestOptions & Octokit.ReposGetParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. - */ - getAppsWithAccessToProtectedBranch: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetAppsWithAccessToProtectedBranchParams - ): Promise< - Octokit.Response< - Octokit.ReposGetAppsWithAccessToProtectedBranchResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a redirect URL to download an archive for a repository. The `:archive_format` can be either `tarball` or `zipball`. The `:ref` must be a valid Git reference. If you omit `:ref`, the repository’s default branch (usually `master`) will be used. Please make sure your HTTP framework is configured to follow redirects or you will need to use the `Location` header to make a second `GET` request. - * - * _Note_: For private repositories, these links are temporary and expire after five minutes. - * - * To follow redirects with curl, use the `-L` switch: - */ - getArchiveLink: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetArchiveLinkParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - getBranch: { - (params?: Octokit.RequestOptions & Octokit.ReposGetBranchParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - getBranchProtection: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetBranchProtectionParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Get the total number of clones and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. - */ - getClones: { - (params?: Octokit.RequestOptions & Octokit.ReposGetClonesParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns a weekly aggregate of the number of additions and deletions pushed to a repository. - */ - getCodeFrequencyStats: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetCodeFrequencyStatsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Possible values for the `permission` key: `admin`, `write`, `read`, `none`. - */ - getCollaboratorPermissionLevel: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetCollaboratorPermissionLevelParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with pull access in a repository can access a combined view of commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. - * - * The most recent status for each context is returned, up to 100. This field [paginates](https://developer.github.com/v3/#pagination) if there are over 100 contexts. - * - * Additionally, a combined `state` is returned. The `state` is one of: - * - * * **failure** if any of the contexts report as `error` or `failure` - * * **pending** if there are no statuses or a context is `pending` - * * **success** if the latest status for all contexts is `success` - */ - getCombinedStatusForRef: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetCombinedStatusForRefParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns the contents of a single commit reference. You must have `read` access for the repository to use this endpoint. - * - * You can pass the appropriate [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) to fetch `diff` and `patch` formats. Diffs with binary data will have no `patch` property. - * - * To return only the SHA-1 hash of the commit reference, you can provide the `sha` custom [media type](https://developer.github.com/v3/media/#commits-commit-comparison-and-pull-requests) in the `Accept` header. You can use this endpoint to check if a remote reference's SHA-1 hash is the same as your local reference's SHA-1 hash by providing the local SHA-1 reference as the ETag. - * - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - getCommit: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetCommitParamsDeprecatedSha - ): Promise>; - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetCommitParamsDeprecatedCommitSha - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.ReposGetCommitParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns the last year of commit activity grouped by week. The `days` array is a group of commits per day, starting on `Sunday`. - */ - getCommitActivityStats: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetCommitActivityStatsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getCommitComment: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetCommitCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** To access this endpoint, you must provide a custom [media type](https://developer.github.com/v3/media) in the `Accept` header: - * ``` - * application/vnd.github.VERSION.sha - * ``` - * Returns the SHA-1 of the commit reference. You must have `read` access for the repository to get the SHA-1 of a commit reference. You can use this endpoint to check if a remote reference's SHA-1 is the same as your local reference's SHA-1 by providing the local SHA-1 reference as the ETag. - * @deprecated "Get the SHA-1 of a commit reference" will be removed. Use "Get a single commit" instead with media type format set to "sha" instead. - */ - getCommitRefSha: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetCommitRefShaParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets the contents of a file or directory in a repository. Specify the file path or directory in `:path`. If you omit `:path`, you will receive the contents of all files in the repository. - * - * Files and symlinks support [a custom media type](https://developer.github.com/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML (when supported). All content types support [a custom media type](https://developer.github.com/v3/repos/contents/#custom-media-types) to ensure the content is returned in a consistent object format. - * - * **Note**: - * - * * To get a repository's contents recursively, you can [recursively get the tree](https://developer.github.com/v3/git/trees/). - * * This API has an upper limit of 1,000 files for a directory. If you need to retrieve more files, use the [Git Trees API](https://developer.github.com/v3/git/trees/#get-a-tree). - * * This API supports files up to 1 megabyte in size. - * - * The response will be an array of objects, one object for each item in the directory. - * - * When listing the contents of a directory, submodules have their "type" specified as "file". Logically, the value _should_ be "submodule". This behavior exists in API v3 [for backwards compatibility purposes](https://git.io/v1YCW). In the next major version of the API, the type will be returned as "submodule". - * - * If the requested `:path` points to a symlink, and the symlink's target is a normal file in the repository, then the API responds with the content of the file (in the [format shown above](https://developer.github.com/v3/repos/contents/#response-if-content-is-a-file)). - * - * Otherwise, the API responds with an object describing the symlink itself: - * - * The `submodule_git_url` identifies the location of the submodule repository, and the `sha` identifies a specific commit within the submodule repository. Git uses the given URL when cloning the submodule repository, and checks out the submodule at that specific commit. - * - * If the submodule repository is not hosted on github.com, the Git URLs (`git_url` and `_links["git"]`) and the github.com URLs (`html_url` and `_links["html"]`) will have null values. - */ - getContents: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetContentsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * * `total` - The Total number of commits authored by the contributor. - * - * Weekly Hash (`weeks` array): - * - * * `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 - */ - getContributorsStats: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetContributorsStatsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getDeployKey: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetDeployKeyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getDeployment: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetDeploymentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with pull access can view a deployment status for a deployment: - */ - getDeploymentStatus: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetDeploymentStatusParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getDownload: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetDownloadParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getHook: { - (params?: Octokit.RequestOptions & Octokit.ReposGetHookParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - getLatestPagesBuild: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetLatestPagesBuildParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * View the latest published full release for the repository. - * - * The latest release is the most recent non-prerelease, non-draft release, sorted by the `created_at` attribute. The `created_at` attribute is the date of the commit used for the release, and not the date when the release was drafted or published. - */ - getLatestRelease: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetLatestReleaseParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - getPages: { - (params?: Octokit.RequestOptions & Octokit.ReposGetPagesParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - getPagesBuild: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetPagesBuildParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Returns the total commit counts for the `owner` and total commit counts in `all`. `all` is everyone combined, including the `owner` in the last 52 weeks. If you'd like to get the commit counts for non-owners, you can subtract `owner` from `all`. - * - * The array order is oldest week (index 0) to most recent week. - */ - getParticipationStats: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetParticipationStatsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - getProtectedBranchAdminEnforcement: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetProtectedBranchAdminEnforcementParams - ): Promise< - Octokit.Response< - Octokit.ReposGetProtectedBranchAdminEnforcementResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - getProtectedBranchPullRequestReviewEnforcement: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetProtectedBranchPullRequestReviewEnforcementParams - ): Promise< - Octokit.Response< - Octokit.ReposGetProtectedBranchPullRequestReviewEnforcementResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * When authenticated with admin or owner permissions to the repository, you can use this endpoint to check whether a branch requires signed commits. An enabled status of `true` indicates you must sign commits on this branch. For more information, see [Signing commits with GPG](https://help.github.com/articles/signing-commits-with-gpg) in GitHub Help. - * - * **Note**: You must enable branch protection to require signed commits. - */ - getProtectedBranchRequiredSignatures: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetProtectedBranchRequiredSignaturesParams - ): Promise< - Octokit.Response< - Octokit.ReposGetProtectedBranchRequiredSignaturesResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - getProtectedBranchRequiredStatusChecks: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetProtectedBranchRequiredStatusChecksParams - ): Promise< - Octokit.Response< - Octokit.ReposGetProtectedBranchRequiredStatusChecksResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists who has access to this protected branch. {{#note}} - * - * **Note**: Users, apps, and teams `restrictions` are only available for organization-owned repositories. - */ - getProtectedBranchRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetProtectedBranchRestrictionsParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Each array contains the day number, hour number, and number of commits: - * - * * `0-6`: Sunday - Saturday - * * `0-23`: Hour of day - * * Number of commits - * - * 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. - */ - getPunchCardStats: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetPunchCardStatsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets the preferred README for a repository. - * - * READMEs support [custom media types](https://developer.github.com/v3/repos/contents/#custom-media-types) for retrieving the raw content or rendered HTML. - */ - getReadme: { - (params?: Octokit.RequestOptions & Octokit.ReposGetReadmeParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** This returns an `upload_url` key corresponding to the endpoint for uploading release assets. This key is a [hypermedia resource](https://developer.github.com/v3/#hypermedia). - */ - getRelease: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetReleaseParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * To download the asset's binary content, set the `Accept` header of the request to [`application/octet-stream`](https://developer.github.com/v3/media/#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. - */ - getReleaseAsset: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetReleaseAssetParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Get a published release with the specified tag. - */ - getReleaseByTag: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetReleaseByTagParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the teams who have push access to this branch. The list includes child teams. - */ - getTeamsWithAccessToProtectedBranch: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetTeamsWithAccessToProtectedBranchParams - ): Promise< - Octokit.Response< - Octokit.ReposGetTeamsWithAccessToProtectedBranchResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Get the top 10 popular contents over the last 14 days. - */ - getTopPaths: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetTopPathsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Get the top 10 referrers over the last 14 days. - */ - getTopReferrers: { - ( - params?: Octokit.RequestOptions & Octokit.ReposGetTopReferrersParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the people who have push access to this branch. - */ - getUsersWithAccessToProtectedBranch: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposGetUsersWithAccessToProtectedBranchParams - ): Promise< - Octokit.Response< - Octokit.ReposGetUsersWithAccessToProtectedBranchResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday. - */ - getViews: { - (params?: Octokit.RequestOptions & Octokit.ReposGetViewsParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists repositories that the authenticated user has explicit permission (`:read`, `:write`, or `:admin`) to access. - * - * The authenticated user has explicit permission to access repositories they own, repositories where they are a collaborator, and repositories that they can access through an organization membership. - */ - list: { - (params?: Octokit.RequestOptions & Octokit.ReposListParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the GitHub Apps that have push access to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. - * @deprecated octokit.repos.listAppsWithAccessToProtectedBranch() has been renamed to octokit.repos.getAppsWithAccessToProtectedBranch() (2019-09-13) - */ - listAppsWithAccessToProtectedBranch: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListAppsWithAccessToProtectedBranchParams - ): Promise< - Octokit.Response< - Octokit.ReposListAppsWithAccessToProtectedBranchResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - - listAssetsForRelease: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListAssetsForReleaseParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listBranches: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListBranchesParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Returns all branches where the given commit SHA is the HEAD, or latest commit for the branch. - */ - listBranchesForHeadCommit: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListBranchesForHeadCommitParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners. - * - * Team members will include the members of child teams. - */ - listCollaborators: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListCollaboratorsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Use the `:commit_sha` to specify the commit that will have its comments listed. - */ - listCommentsForCommit: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListCommentsForCommitParamsDeprecatedRef - ): Promise>; - ( - params?: Octokit.RequestOptions & - Octokit.ReposListCommentsForCommitParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Commit Comments use [these custom media types](https://developer.github.com/v3/repos/comments/#custom-media-types). You can read more about the use of media types in the API [here](https://developer.github.com/v3/media/). - * - * Comments are ordered by ascending ID. - */ - listCommitComments: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListCommitCommentsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Signature verification object** - * - * The response will include a `verification` object that describes the result of verifying the commit's signature. The following fields are included in the `verification` object: - * - * These are the possible values for `reason` in the `verification` object: - * - * | Value | Description | - * | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | - * | `expired_key` | The key that made the signature is expired. | - * | `not_signing_key` | The "signing" flag is not among the usage flags in the GPG key that made the signature. | - * | `gpgverify_error` | There was an error communicating with the signature verification service. | - * | `gpgverify_unavailable` | The signature verification service is currently unavailable. | - * | `unsigned` | The object does not include a signature. | - * | `unknown_signature_type` | A non-PGP signature was found in the commit. | - * | `no_user` | No user was associated with the `committer` email address in the commit. | - * | `unverified_email` | The `committer` email address in the commit was associated with a user, but the email address is not verified on her/his account. | - * | `bad_email` | The `committer` email address in the commit is not included in the identities of the PGP key that made the signature. | - * | `unknown_key` | The key that made the signature has not been registered with any user's account. | - * | `malformed_signature` | There was an error parsing the signature. | - * | `invalid` | The signature could not be cryptographically verified using the key whose key-id was found in the signature. | - * | `valid` | None of the above errors applied, so the signature is considered to be verified. | - */ - listCommits: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListCommitsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists contributors to the specified repository and sorts them by the number of commits per contributor in descending order. This endpoint may return information that is a few hours old because the GitHub REST API v3 caches contributor data to improve performance. - * - * GitHub identifies contributors by author email address. This endpoint groups contribution counts by GitHub user, which includes all associated email addresses. To improve performance, only the first 500 author email addresses in the repository link to GitHub users. The rest will appear as anonymous contributors without associated GitHub user information. - */ - listContributors: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListContributorsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listDeployKeys: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListDeployKeysParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with pull access can view deployment statuses for a deployment: - */ - listDeploymentStatuses: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListDeploymentStatusesParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Simple filtering of deployments is available via query parameters: - */ - listDeployments: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListDeploymentsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listDownloads: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListDownloadsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists repositories for the specified organization. - */ - listForOrg: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListForOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists public repositories for the specified user. - */ - listForUser: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListForUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - listForks: { - (params?: Octokit.RequestOptions & Octokit.ReposListForksParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - listHooks: { - (params?: Octokit.RequestOptions & Octokit.ReposListHooksParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * When authenticating as a user with admin rights to a repository, this endpoint will list all currently open repository invitations. - */ - listInvitations: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListInvitationsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * When authenticating as a user, this endpoint will list all currently open repository invitations for that user. - */ - listInvitationsForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListInvitationsForAuthenticatedUserParams - ): Promise< - Octokit.Response< - Octokit.ReposListInvitationsForAuthenticatedUserResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists languages for the specified repository. The value shown for each language is the number of bytes of code written in that language. - */ - listLanguages: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListLanguagesParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listPagesBuilds: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListPagesBuildsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - listProtectedBranchRequiredStatusChecksContexts: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListProtectedBranchRequiredStatusChecksContextsParams - ): Promise< - Octokit.Response< - Octokit.ReposListProtectedBranchRequiredStatusChecksContextsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the teams who have push access to this branch. The list includes child teams. - * @deprecated octokit.repos.listProtectedBranchTeamRestrictions() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-09) - */ - listProtectedBranchTeamRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListProtectedBranchTeamRestrictionsParams - ): Promise< - Octokit.Response< - Octokit.ReposListProtectedBranchTeamRestrictionsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the people who have push access to this branch. - * @deprecated octokit.repos.listProtectedBranchUserRestrictions() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-09) - */ - listProtectedBranchUserRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListProtectedBranchUserRestrictionsParams - ): Promise< - Octokit.Response< - Octokit.ReposListProtectedBranchUserRestrictionsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all public repositories in the order that they were created. - * - * Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of repositories. - */ - listPublic: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListPublicParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all pull requests containing the provided commit SHA, which can be from any point in the commit history. The results will include open and closed pull requests. Additional preview headers may be required to see certain details for associated pull requests, such as whether a pull request is in a draft state. For more information about previews that might affect this endpoint, see the [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoint. - */ - listPullRequestsAssociatedWithCommit: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListPullRequestsAssociatedWithCommitParams - ): Promise< - Octokit.Response< - Octokit.ReposListPullRequestsAssociatedWithCommitResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * This returns a list of releases, which does not include regular Git tags that have not been associated with a release. To get a list of Git tags, use the [Repository Tags API](https://developer.github.com/v3/repos/#list-tags). - * - * Information about published releases are available to everyone. Only users with push access will receive listings for draft releases. - */ - listReleases: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListReleasesParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with pull access in a repository can view commit statuses for a given ref. The ref can be a SHA, a branch name, or a tag name. Statuses are returned in reverse chronological order. The first status in the list will be the latest one. - * - * This resource is also available via a legacy route: `GET /repos/:owner/:repo/statuses/:ref`. - */ - listStatusesForRef: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListStatusesForRefParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listTags: { - (params?: Octokit.RequestOptions & Octokit.ReposListTagsParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - listTeams: { - (params?: Octokit.RequestOptions & Octokit.ReposListTeamsParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the teams who have push access to this branch. The list includes child teams. - * @deprecated octokit.repos.listTeamsWithAccessToProtectedBranch() has been renamed to octokit.repos.getTeamsWithAccessToProtectedBranch() (2019-09-13) - */ - listTeamsWithAccessToProtectedBranch: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListTeamsWithAccessToProtectedBranchParams - ): Promise< - Octokit.Response< - Octokit.ReposListTeamsWithAccessToProtectedBranchResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - - listTopics: { - ( - params?: Octokit.RequestOptions & Octokit.ReposListTopicsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Lists the people who have push access to this branch. - * @deprecated octokit.repos.listUsersWithAccessToProtectedBranch() has been renamed to octokit.repos.getUsersWithAccessToProtectedBranch() (2019-09-13) - */ - listUsersWithAccessToProtectedBranch: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposListUsersWithAccessToProtectedBranchParams - ): Promise< - Octokit.Response< - Octokit.ReposListUsersWithAccessToProtectedBranchResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - - merge: { - (params?: Octokit.RequestOptions & Octokit.ReposMergeParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * This will trigger a [ping event](https://developer.github.com/webhooks/#ping-event) to be sent to the hook. - */ - pingHook: { - (params?: Octokit.RequestOptions & Octokit.ReposPingHookParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - removeBranchProtection: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRemoveBranchProtectionParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - removeCollaborator: { - ( - params?: Octokit.RequestOptions & Octokit.ReposRemoveCollaboratorParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - removeDeployKey: { - ( - params?: Octokit.RequestOptions & Octokit.ReposRemoveDeployKeyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Removing admin enforcement requires admin or owner permissions to the repository and branch protection to be enabled. - */ - removeProtectedBranchAdminEnforcement: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRemoveProtectedBranchAdminEnforcementParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Removes the ability of an app to push to this branch. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. - * - * | Type | Description | - * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | - * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - removeProtectedBranchAppRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRemoveProtectedBranchAppRestrictionsParams - ): Promise< - Octokit.Response< - Octokit.ReposRemoveProtectedBranchAppRestrictionsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - removeProtectedBranchPullRequestReviewEnforcement: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRemoveProtectedBranchPullRequestReviewEnforcementParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * When authenticated with admin or owner permissions to the repository, you can use this endpoint to disable required signed commits on a branch. You must enable branch protection to require signed commits. - */ - removeProtectedBranchRequiredSignatures: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRemoveProtectedBranchRequiredSignaturesParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - removeProtectedBranchRequiredStatusChecks: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRemoveProtectedBranchRequiredStatusChecksParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - removeProtectedBranchRequiredStatusChecksContexts: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRemoveProtectedBranchRequiredStatusChecksContextsParams - ): Promise< - Octokit.Response< - Octokit.ReposRemoveProtectedBranchRequiredStatusChecksContextsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Disables the ability to restrict who can push to this branch. - */ - removeProtectedBranchRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRemoveProtectedBranchRestrictionsParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Removes the ability of a team to push to this branch. You can also remove push access for child teams. - * - * | Type | Description | - * | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | - * | `array` | Teams that should no longer have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - removeProtectedBranchTeamRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRemoveProtectedBranchTeamRestrictionsParams - ): Promise< - Octokit.Response< - Octokit.ReposRemoveProtectedBranchTeamRestrictionsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Removes the ability of a user to push to this branch. - * - * | Type | Description | - * | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- | - * | `array` | Usernames of the people who should no longer have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - removeProtectedBranchUserRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRemoveProtectedBranchUserRestrictionsParams - ): Promise< - Octokit.Response< - Octokit.ReposRemoveProtectedBranchUserRestrictionsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Replaces the list of apps that have push access to this branch. This removes all apps that previously had push access and grants push access to the new list of apps. Only installed GitHub Apps with `write` access to the `contents` permission can be added as authorized actors on a protected branch. - * - * | Type | Description | - * | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | - * | `array` | The GitHub Apps that have push access to this branch. Use the app's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - replaceProtectedBranchAppRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposReplaceProtectedBranchAppRestrictionsParams - ): Promise< - Octokit.Response< - Octokit.ReposReplaceProtectedBranchAppRestrictionsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - */ - replaceProtectedBranchRequiredStatusChecksContexts: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposReplaceProtectedBranchRequiredStatusChecksContextsParams - ): Promise< - Octokit.Response< - Octokit.ReposReplaceProtectedBranchRequiredStatusChecksContextsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Replaces the list of teams that have push access to this branch. This removes all teams that previously had push access and grants push access to the new list of teams. Team restrictions include child teams. - * - * | Type | Description | - * | ------- | ------------------------------------------------------------------------------------------------------------------------------------------ | - * | `array` | The teams that can have push access. Use the team's `slug`. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - replaceProtectedBranchTeamRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposReplaceProtectedBranchTeamRestrictionsParams - ): Promise< - Octokit.Response< - Octokit.ReposReplaceProtectedBranchTeamRestrictionsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people. - * - * | Type | Description | - * | ------- | ----------------------------------------------------------------------------------------------------------------------------- | - * | `array` | Usernames for people who can have push access. **Note**: The list of users, apps, and teams in total is limited to 100 items. | - */ - replaceProtectedBranchUserRestrictions: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposReplaceProtectedBranchUserRestrictionsParams - ): Promise< - Octokit.Response< - Octokit.ReposReplaceProtectedBranchUserRestrictionsResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - - replaceTopics: { - ( - params?: Octokit.RequestOptions & Octokit.ReposReplaceTopicsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * You can request that your site be built from the latest revision on the default branch. This has the same effect as pushing a commit to your default branch, but does not require an additional commit. Manually triggering page builds can be helpful when diagnosing build warnings and failures. - * - * Build requests are limited to one concurrent build per repository and one concurrent build per requester. If you request a build while another is still in progress, the second request will be queued until the first completes. - */ - requestPageBuild: { - ( - params?: Octokit.RequestOptions & Octokit.ReposRequestPageBuildParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * This endpoint will return all community profile metrics, including an overall health score, repository description, the presence of documentation, detected code of conduct, detected license, and the presence of ISSUE\_TEMPLATE, PULL\_REQUEST\_TEMPLATE, README, and CONTRIBUTING files. - */ - retrieveCommunityProfileMetrics: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposRetrieveCommunityProfileMetricsParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * This will trigger the hook with the latest push to the current repository if the hook is subscribed to `push` events. If the hook is not subscribed to `push` events, the server will respond with 204 but no test POST will be generated. - * - * **Note**: Previously `/repos/:owner/:repo/hooks/:hook_id/test` - */ - testPushHook: { - ( - params?: Octokit.RequestOptions & Octokit.ReposTestPushHookParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * A transfer request will need to be accepted by the new owner when transferring a personal repository to another user. The response will contain the original `owner`, and the transfer will continue asynchronously. For more details on the requirements to transfer personal and organization-owned repositories, see [about repository transfers](https://help.github.com/articles/about-repository-transfers/). - */ - transfer: { - (params?: Octokit.RequestOptions & Octokit.ReposTransferParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note**: To edit a repository's topics, use the [`topics` endpoint](https://developer.github.com/v3/repos/#replace-all-topics-for-a-repository). - */ - update: { - (params?: Octokit.RequestOptions & Octokit.ReposUpdateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Protecting a branch requires admin or owner permissions to the repository. - * - * **Note**: Passing new arrays of `users` and `teams` replaces their previous values. - * - * **Note**: The list of users, apps, and teams in total is limited to 100 items. - */ - updateBranchProtection: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposUpdateBranchProtectionParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - updateCommitComment: { - ( - params?: Octokit.RequestOptions & Octokit.ReposUpdateCommitCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a new file or updates an existing file in a repository. - * @deprecated octokit.repos.updateFile() has been renamed to octokit.repos.createOrUpdateFile() (2019-06-07) - */ - updateFile: { - ( - params?: Octokit.RequestOptions & Octokit.ReposUpdateFileParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - updateHook: { - ( - params?: Octokit.RequestOptions & Octokit.ReposUpdateHookParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - updateInformationAboutPagesSite: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposUpdateInformationAboutPagesSiteParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - updateInvitation: { - ( - params?: Octokit.RequestOptions & Octokit.ReposUpdateInvitationParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Updating pull request review enforcement requires admin or owner permissions to the repository and branch protection to be enabled. - * - * **Note**: Passing new arrays of `users` and `teams` replaces their previous values. - */ - updateProtectedBranchPullRequestReviewEnforcement: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposUpdateProtectedBranchPullRequestReviewEnforcementParams - ): Promise< - Octokit.Response< - Octokit.ReposUpdateProtectedBranchPullRequestReviewEnforcementResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Protected branches are available in public repositories with GitHub Free, and in public and private repositories with GitHub Pro, GitHub Team, and GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Updating required status checks requires admin or owner permissions to the repository and branch protection to be enabled. - */ - updateProtectedBranchRequiredStatusChecks: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposUpdateProtectedBranchRequiredStatusChecksParams - ): Promise< - Octokit.Response< - Octokit.ReposUpdateProtectedBranchRequiredStatusChecksResponse - > - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with push access to the repository can edit a release. - */ - updateRelease: { - ( - params?: Octokit.RequestOptions & Octokit.ReposUpdateReleaseParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Users with push access to the repository can edit a release asset. - */ - updateReleaseAsset: { - ( - params?: Octokit.RequestOptions & Octokit.ReposUpdateReleaseAssetParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * This endpoint makes use of [a Hypermedia relation](https://developer.github.com/v3/#hypermedia) to determine which URL to access. The endpoint you call to upload release assets is specific to your release. Use the `upload_url` returned in the response of the [Create a release endpoint](https://developer.github.com/v3/repos/releases/#create-a-release) to upload a release asset. - * - * You need to use an HTTP client which supports [SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this endpoint. - * - * Most libraries will set the required `Content-Length` header automatically. Use the required `Content-Type` header to provide the media type of the asset. For a list of media types, see [Media Types](https://www.iana.org/assignments/media-types/media-types.xhtml). For example: - * - * `application/zip` - * - * GitHub expects the asset data in its raw binary form, rather than JSON. You will send the raw binary content of the asset as the request body. Everything else about the endpoint is the same as the rest of the API. For example, you'll still need to pass your authentication to be able to upload an asset. - */ - uploadReleaseAsset: { - ( - params?: Octokit.RequestOptions & - Octokit.ReposUploadReleaseAssetParamsDeprecatedFile - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.ReposUploadReleaseAssetParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - }; - search: { - /** - * Find file contents via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for code, you can get text match metadata for the file **content** and file **path** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * **Note:** You must [authenticate](https://developer.github.com/v3/#authentication) to search for code across all public repositories. - * - * **Considerations for code search** - * - * Due to the complexity of searching code, there are a few restrictions on how searches are performed: - * - * * Only the _default branch_ is considered. In most cases, this will be the `master` branch. - * * Only files smaller than 384 KB are searchable. - * * You must always include at least one search term when searching source code. For example, searching for [`language:go`](https://github.com/search?utf8=%E2%9C%93&q=language%3Ago&type=Code) is not valid, while [`amazing language:go`](https://github.com/search?utf8=%E2%9C%93&q=amazing+language%3Ago&type=Code) is. - * - * Suppose you want to find the definition of the `addClass` function inside [jQuery](https://github.com/jquery/jquery). Your query would look something like this: - * - * Here, we're searching for the keyword `addClass` within a file's contents. We're making sure that we're only looking in files where the language is JavaScript. And we're scoping the search to the `repo:jquery/jquery` repository. - */ - code: { - (params?: Octokit.RequestOptions & Octokit.SearchCodeParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Find commits via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for commits, you can get text match metadata for the **message** field when you provide the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * **Considerations for commit search** - * - * Only the _default branch_ is considered. In most cases, this will be the `master` branch. - * - * Suppose you want to find commits related to CSS in the [octocat/Spoon-Knife](https://github.com/octocat/Spoon-Knife) repository. Your query would look something like this: - */ - commits: { - (params?: Octokit.RequestOptions & Octokit.SearchCommitsParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * This API call is added for compatibility reasons only. There's no guarantee that full email searches will always be available. The `@` character in the address must be left unencoded. Searches only against public email addresses (as configured on the user's GitHub profile). - * @deprecated octokit.search.emailLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#email-search - */ - emailLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.SearchEmailLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * Let's say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this. - * - * In this query, we're searching for the keyword `windows`, within any open issue that's labeled as `bug`. The search runs across repositories whose primary language is Python. We’re sorting by creation date in ascending order, so that the oldest issues appear first in the search results. - * @deprecated octokit.search.issues() has been renamed to octokit.search.issuesAndPullRequests() (2018-12-27) - */ - issues: { - (params?: Octokit.RequestOptions & Octokit.SearchIssuesParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Find issues by state and keyword. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for issues, you can get text match metadata for the issue **title**, issue **body**, and issue **comment body** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * Let's say you want to find the oldest unresolved Python bugs on Windows. Your query might look something like this. - * - * In this query, we're searching for the keyword `windows`, within any open issue that's labeled as `bug`. The search runs across repositories whose primary language is Python. We’re sorting by creation date in ascending order, so that the oldest issues appear first in the search results. - */ - issuesAndPullRequests: { - ( - params?: Octokit.RequestOptions & - Octokit.SearchIssuesAndPullRequestsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Find issues by state and keyword. - * @deprecated octokit.search.issuesLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#search-issues - */ - issuesLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.SearchIssuesLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Find labels in a repository with names or descriptions that match search keywords. Returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for labels, you can get text match metadata for the label **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * Suppose you want to find labels in the `linguist` repository that match `bug`, `defect`, or `enhancement`. Your query might look like this: - * - * The labels that best match for the query appear first in the search results. - */ - labels: { - (params?: Octokit.RequestOptions & Octokit.SearchLabelsParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Find repositories via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for repositories, you can get text match metadata for the **name** and **description** fields when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * Suppose you want to search for popular Tetris repositories written in Assembly. Your query might look like this. - * - * You can search for multiple topics by adding more `topic:` instances, and including the `mercy-preview` header. For example: - * - * In this request, we're searching for repositories with the word `tetris` in the name, the description, or the README. We're limiting the results to only find repositories where the primary language is Assembly. We're sorting by stars in descending order, so that the most popular repositories appear first in the search results. - */ - repos: { - (params?: Octokit.RequestOptions & Octokit.SearchReposParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the `start_page` parameter. - * @deprecated octokit.search.reposLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#search-repositories - */ - reposLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.SearchReposLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Find topics via various criteria. Results are sorted by best match. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for topics, you can get text match metadata for the topic's **short\_description**, **description**, **name**, or **display\_name** field when you pass the `text-match` media type. For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * See "[Searching topics](https://help.github.com/articles/searching-topics/)" for a detailed list of qualifiers. - * - * Suppose you want to search for topics related to Ruby that are featured on [https://github.com/topics](https://github.com/topics). Your query might look like this: - * - * In this request, we're searching for topics with the keyword `ruby`, and we're limiting the results to find only topics that are featured. The topics that are the best match for the query appear first in the search results. - * - * **Note:** A search for featured Ruby topics only has 6 total results, so a [Link header](https://developer.github.com/v3/#link-header) indicating pagination is not included in the response. - */ - topics: { - (params?: Octokit.RequestOptions & Octokit.SearchTopicsParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Find users via various criteria. This method returns up to 100 results [per page](https://developer.github.com/v3/#pagination). - * - * When searching for users, you can get text match metadata for the issue **login**, **email**, and **name** fields when you pass the `text-match` media type. For more details about highlighting search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). For more details about how to receive highlighted search results, see [Text match metadata](https://developer.github.com/v3/search/#text-match-metadata). - * - * Imagine you're looking for a list of popular users. You might try out this query: - * - * Here, we're looking at users with the name Tom. We're only interested in those with more than 42 repositories, and only if they have over 1,000 followers. - */ - users: { - (params?: Octokit.RequestOptions & Octokit.SearchUsersParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Find users by keyword. - * @deprecated octokit.search.usersLegacy() is deprecated, see https://developer.github.com/v3/search/legacy/#search-users - */ - usersLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.SearchUsersLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - }; - teams: { - /** - * The "Add team member" endpoint (described below) is deprecated. - * - * We recommend using the [Add team membership](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint instead. It allows you to invite new organization members to your teams. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - * @deprecated octokit.teams.addMember() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy - */ - addMember: { - (params?: Octokit.RequestOptions & Octokit.TeamsAddMemberParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * The "Add team member" endpoint (described below) is deprecated. - * - * We recommend using the [Add team membership](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint instead. It allows you to invite new organization members to your teams. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To add someone to a team, the authenticated user must be an organization owner or a team maintainer in the team they're changing. The person being added to the team must be a member of the team's organization. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - * @deprecated octokit.teams.addMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-team-member-legacy - */ - addMemberLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsAddMemberLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team membership`](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner. - * - * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. - * @deprecated octokit.teams.addOrUpdateMembership() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy - */ - addOrUpdateMembership: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsAddOrUpdateMembershipParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * An organization owner can add someone who is not part of the team's organization to a team. When an organization owner adds someone to a team who is not an organization member, this endpoint will send an invitation to the person via email. This newly-created membership will be in the "pending" state until the person accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. - * - * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/:org_id/team/:team_id/memberships/:username`. - */ - addOrUpdateMembershipInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsAddOrUpdateMembershipInOrgParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team membership`](https://developer.github.com/v3/teams/members/#add-or-update-team-membership) endpoint. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * If the user is already a member of the team's organization, this endpoint will add the user to the team. To add a membership between an organization member and a team, the authenticated user must be an organization owner or a team maintainer. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * If the user is unaffiliated with the team's organization, this endpoint will send an invitation to the user via email. This newly-created membership will be in the "pending" state until the user accepts the invitation, at which point the membership will transition to the "active" state and the user will be added as a member of the team. To add a membership between an unaffiliated user and a team, the authenticated user must be an organization owner. - * - * If the user is already a member of the team, this endpoint will update the role of the team member's role. To update the membership of a team member, the authenticated user must be an organization owner or a team maintainer. - * @deprecated octokit.teams.addOrUpdateMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy - */ - addOrUpdateMembershipLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsAddOrUpdateMembershipLegacyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team project`](https://developer.github.com/v3/teams/#add-or-update-team-project) endpoint. - * - * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. - * @deprecated octokit.teams.addOrUpdateProject() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy - */ - addOrUpdateProject: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsAddOrUpdateProjectParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/:org_id/team/:team_id/projects/:project_id`. - */ - addOrUpdateProjectInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsAddOrUpdateProjectInOrgParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team project`](https://developer.github.com/v3/teams/#add-or-update-team-project) endpoint. - * - * Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. - * @deprecated octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy - */ - addOrUpdateProjectLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsAddOrUpdateProjectLegacyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team repository`](https://developer.github.com/v3/teams/#add-or-update-team-repository) endpoint. - * - * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. - * - * 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://developer.github.com/v3/#http-verbs)." - * @deprecated octokit.teams.addOrUpdateRepo() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy - */ - addOrUpdateRepo: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsAddOrUpdateRepoParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. 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://developer.github.com/v3/#http-verbs)." - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PUT /organizations/:org_id/team/:team_id/repos/:owner/:repo`. - */ - addOrUpdateRepoInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsAddOrUpdateRepoInOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Add or update team repository`](https://developer.github.com/v3/teams/#add-or-update-team-repository) endpoint. - * - * To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. - * - * 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://developer.github.com/v3/#http-verbs)." - * @deprecated octokit.teams.addOrUpdateRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy - */ - addOrUpdateRepoLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsAddOrUpdateRepoLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note**: Repositories inherited through a parent team will also be checked. - * - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Check if a team manages a repository`](https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository) endpoint. - * - * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - * @deprecated octokit.teams.checkManagesRepo() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy - */ - checkManagesRepo: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsCheckManagesRepoParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Checks whether a team has `admin`, `push`, or `pull` permission for a repository. Repositories inherited through a parent team will also be checked. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/repos/:owner/:repo`. - * - * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - */ - checkManagesRepoInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsCheckManagesRepoInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note**: Repositories inherited through a parent team will also be checked. - * - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Check if a team manages a repository`](https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository) endpoint. - * - * You can also get information about the specified repository, including what permissions the team grants on it, by passing the following custom [media type](https://developer.github.com/v3/media/) via the `Accept` header: - * @deprecated octokit.teams.checkManagesRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy - */ - checkManagesRepoLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsCheckManagesRepoLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * To create a team, the authenticated user must be a member or owner of `:org`. By default, organization members can create teams. Organization owners can limit team creation to organization owners. For more information, see "[Setting team creation permissions](https://help.github.com/en/articles/setting-team-creation-permissions-in-your-organization)." - * - * When you create a new team, you automatically become a team maintainer without explicitly adding yourself to the optional array of `maintainers`. For more information, see "[About teams](https://help.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-teams)" in the GitHub Help documentation. - */ - create: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsCreateParamsDeprecatedPermission - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.TeamsCreateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://developer.github.com/v3/teams/discussions/#create-a-discussion) endpoint. - * - * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * @deprecated octokit.teams.createDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy - */ - createDiscussion: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsCreateDiscussionParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a comment`](https://developer.github.com/v3/teams/discussion_comments/#create-a-comment) endpoint. - * - * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * @deprecated octokit.teams.createDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy - */ - createDiscussionComment: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsCreateDiscussionCommentParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments`. - */ - createDiscussionCommentInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsCreateDiscussionCommentInOrgParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a comment`](https://developer.github.com/v3/teams/discussion_comments/#create-a-comment) endpoint. - * - * Creates a new comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * @deprecated octokit.teams.createDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy - */ - createDiscussionCommentLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsCreateDiscussionCommentLegacyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/:org_id/team/:team_id/discussions`. - */ - createDiscussionInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsCreateDiscussionInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://developer.github.com/v3/teams/discussions/#create-a-discussion) endpoint. - * - * Creates a new discussion post on a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * This endpoint triggers [notifications](https://help.github.com/articles/about-notifications/). Creating content too quickly using this endpoint may result in abuse rate limiting. See "[Abuse rate limits](https://developer.github.com/v3/#abuse-rate-limits)" and "[Dealing with abuse rate limits](https://developer.github.com/v3/guides/best-practices-for-integrators/#dealing-with-abuse-rate-limits)" for details. - * @deprecated octokit.teams.createDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy - */ - createDiscussionLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsCreateDiscussionLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete team`](https://developer.github.com/v3/teams/#delete-team) endpoint. - * - * To delete a team, the authenticated user must be an organization owner or team maintainer. - * - * If you are an organization owner, deleting a parent team will delete all of its child teams as well. - * @deprecated octokit.teams.delete() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy - */ - delete: { - (params?: Octokit.RequestOptions & Octokit.TeamsDeleteParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://developer.github.com/v3/teams/discussions/#delete-a-discussion) endpoint. - * - * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.deleteDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy - */ - deleteDiscussion: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsDeleteDiscussionParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a comment`](https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment) endpoint. - * - * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.deleteDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy - */ - deleteDiscussionComment: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsDeleteDiscussionCommentParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number`. - */ - deleteDiscussionCommentInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsDeleteDiscussionCommentInOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a comment`](https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment) endpoint. - * - * Deletes a comment on a team discussion. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.deleteDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy - */ - deleteDiscussionCommentLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsDeleteDiscussionCommentLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/discussions/:discussion_number`. - */ - deleteDiscussionInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsDeleteDiscussionInOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://developer.github.com/v3/teams/discussions/#delete-a-discussion) endpoint. - * - * Delete a discussion from a team's page. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.deleteDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy - */ - deleteDiscussionLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsDeleteDiscussionLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * To delete a team, the authenticated user must be an organization owner or team maintainer. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id`. - * - * If you are an organization owner, deleting a parent team will delete all of its child teams as well. - */ - deleteInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsDeleteInOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete team`](https://developer.github.com/v3/teams/#delete-team) endpoint. - * - * To delete a team, the authenticated user must be an organization owner or team maintainer. - * - * If you are an organization owner, deleting a parent team will delete all of its child teams as well. - * @deprecated octokit.teams.deleteLegacy() is deprecated, see https://developer.github.com/v3/teams/#delete-team-legacy - */ - deleteLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsDeleteLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [`Get team by name`](https://developer.github.com/v3/teams/#get-team-by-name) endpoint. - * @deprecated octokit.teams.get() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy - */ - get: { - (params?: Octokit.RequestOptions & Octokit.TeamsGetParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Gets a team using the team's `slug`. GitHub generates the `slug` from the team `name`. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id`. - */ - getByName: { - (params?: Octokit.RequestOptions & Octokit.TeamsGetByNameParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single discussion`](https://developer.github.com/v3/teams/discussions/#get-a-single-discussion) endpoint. - * - * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.getDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy - */ - getDiscussion: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsGetDiscussionParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single comment`](https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment) endpoint. - * - * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.getDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy - */ - getDiscussionComment: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsGetDiscussionCommentParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number`. - */ - getDiscussionCommentInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsGetDiscussionCommentInOrgParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single comment`](https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment) endpoint. - * - * Get a specific comment on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.getDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy - */ - getDiscussionCommentLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsGetDiscussionCommentLegacyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number`. - */ - getDiscussionInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsGetDiscussionInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get a single discussion`](https://developer.github.com/v3/teams/discussions/#get-a-single-discussion) endpoint. - * - * Get a specific discussion on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.getDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy - */ - getDiscussionLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsGetDiscussionLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [`Get team by name`](https://developer.github.com/v3/teams/#get-team-by-name) endpoint. - * @deprecated octokit.teams.getLegacy() is deprecated, see https://developer.github.com/v3/teams/#get-team-legacy - */ - getLegacy: { - (params?: Octokit.RequestOptions & Octokit.TeamsGetLegacyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * The "Get team member" endpoint (described below) is deprecated. - * - * We recommend using the [Get team membership](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint instead. It allows you to get both active and pending memberships. - * - * To list members in a team, the team must be visible to the authenticated user. - * @deprecated octokit.teams.getMember() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy - */ - getMember: { - (params?: Octokit.RequestOptions & Octokit.TeamsGetMemberParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * The "Get team member" endpoint (described below) is deprecated. - * - * We recommend using the [Get team membership](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint instead. It allows you to get both active and pending memberships. - * - * To list members in a team, the team must be visible to the authenticated user. - * @deprecated octokit.teams.getMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-member-legacy - */ - getMemberLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsGetMemberLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get team membership`](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint. - * - * Team members will include the members of child teams. - * - * To get a user's membership with a team, the team must be visible to the authenticated user. - * - * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team). - * @deprecated octokit.teams.getMembership() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy - */ - getMembership: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsGetMembershipParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Team members will include the members of child teams. - * - * To get a user's membership with a team, the team must be visible to the authenticated user. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/memberships/:username`. - * - * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team). - */ - getMembershipInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsGetMembershipInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Get team membership`](https://developer.github.com/v3/teams/members/#get-team-membership) endpoint. - * - * Team members will include the members of child teams. - * - * To get a user's membership with a team, the team must be visible to the authenticated user. - * - * **Note:** The `role` for organization owners returns as `maintainer`. For more information about `maintainer` roles, see [Create team](https://developer.github.com/v3/teams#create-team). - * @deprecated octokit.teams.getMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#get-team-membership-legacy - */ - getMembershipLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsGetMembershipLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all teams in an organization that are visible to the authenticated user. - */ - list: { - (params?: Octokit.RequestOptions & Octokit.TeamsListParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://developer.github.com/v3/teams/#list-child-teams) endpoint. - * - * - * @deprecated octokit.teams.listChild() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy - */ - listChild: { - (params?: Octokit.RequestOptions & Octokit.TeamsListChildParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the child teams of the team requested by `:team_slug`. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/teams`. - */ - listChildInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListChildInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://developer.github.com/v3/teams/#list-child-teams) endpoint. - * - * - * @deprecated octokit.teams.listChildLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-child-teams-legacy - */ - listChildLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListChildLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List comments`](https://developer.github.com/v3/teams/discussion_comments/#list-comments) endpoint. - * - * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.listDiscussionComments() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy - */ - listDiscussionComments: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsListDiscussionCommentsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments`. - */ - listDiscussionCommentsInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsListDiscussionCommentsInOrgParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List comments`](https://developer.github.com/v3/teams/discussion_comments/#list-comments) endpoint. - * - * List all comments on a team discussion. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.listDiscussionCommentsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy - */ - listDiscussionCommentsLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsListDiscussionCommentsLegacyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://developer.github.com/v3/teams/discussions/#list-discussions) endpoint. - * - * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.listDiscussions() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy - */ - listDiscussions: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListDiscussionsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/discussions`. - */ - listDiscussionsInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsListDiscussionsInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://developer.github.com/v3/teams/discussions/#list-discussions) endpoint. - * - * List all discussions on a team's page. OAuth access tokens require the `read:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.listDiscussionsLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy - */ - listDiscussionsLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsListDiscussionsLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * List all of the teams across all of the organizations to which the authenticated user belongs. This method requires `user`, `repo`, or `read:org` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/) when authenticating via [OAuth](https://developer.github.com/apps/building-oauth-apps/). - */ - listForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsListForAuthenticatedUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://developer.github.com/v3/teams/members/#list-team-members) endpoint. - * - * Team members will include the members of child teams. - * @deprecated octokit.teams.listMembers() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy - */ - listMembers: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListMembersParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Team members will include the members of child teams. - * - * To list members in a team, the team must be visible to the authenticated user. - */ - listMembersInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListMembersInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://developer.github.com/v3/teams/members/#list-team-members) endpoint. - * - * Team members will include the members of child teams. - * @deprecated octokit.teams.listMembersLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-team-members-legacy - */ - listMembersLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListMembersLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://developer.github.com/v3/teams/members/#list-pending-team-invitations) endpoint. - * - * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. - * @deprecated octokit.teams.listPendingInvitations() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy - */ - listPendingInvitations: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsListPendingInvitationsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/invitations`. - */ - listPendingInvitationsInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsListPendingInvitationsInOrgParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://developer.github.com/v3/teams/members/#list-pending-team-invitations) endpoint. - * - * The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. - * @deprecated octokit.teams.listPendingInvitationsLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy - */ - listPendingInvitationsLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsListPendingInvitationsLegacyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://developer.github.com/v3/teams/#list-team-projects) endpoint. - * - * Lists the organization projects for a team. - * @deprecated octokit.teams.listProjects() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy - */ - listProjects: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListProjectsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the organization projects for a team. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/projects`. - */ - listProjectsInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListProjectsInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://developer.github.com/v3/teams/#list-team-projects) endpoint. - * - * Lists the organization projects for a team. - * @deprecated octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy - */ - listProjectsLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListProjectsLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team repos`](https://developer.github.com/v3/teams/#list-team-repos) endpoint. - * @deprecated octokit.teams.listRepos() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy - */ - listRepos: { - (params?: Octokit.RequestOptions & Octokit.TeamsListReposParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists a team's repositories visible to the authenticated user. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/repos`. - */ - listReposInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListReposInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team repos`](https://developer.github.com/v3/teams/#list-team-repos) endpoint. - * @deprecated octokit.teams.listReposLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-repos-legacy - */ - listReposLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsListReposLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * The "Remove team member" endpoint (described below) is deprecated. - * - * We recommend using the [Remove team membership](https://developer.github.com/v3/teams/members/#remove-team-membership) endpoint instead. It allows you to remove both active and pending memberships. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * @deprecated octokit.teams.removeMember() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy - */ - removeMember: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveMemberParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * The "Remove team member" endpoint (described below) is deprecated. - * - * We recommend using the [Remove team membership](https://developer.github.com/v3/teams/members/#remove-team-membership) endpoint instead. It allows you to remove both active and pending memberships. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To remove a team member, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. Removing a team member does not delete the user, it just removes them from the team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * @deprecated octokit.teams.removeMemberLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-member-legacy - */ - removeMemberLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveMemberLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team membership`](https://developer.github.com/v3/teams/members/#remove-team-membership) endpoint. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * @deprecated octokit.teams.removeMembership() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy - */ - removeMembership: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveMembershipParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/memberships/:username`. - */ - removeMembershipInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsRemoveMembershipInOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team membership`](https://developer.github.com/v3/teams/members/#remove-team-membership) endpoint. - * - * Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://help.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. - * - * To remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. Removing team membership does not delete the user, it just removes their membership from the team. - * - * **Note:** When you have team synchronization set up for a team with your organization's identity provider (IdP), you will see an error if you attempt to use the API for making changes to the team's membership. If you have access to manage group membership in your IdP, you can manage GitHub team membership through your identity provider, which automatically adds and removes team members in an organization. For more information, see "[Synchronizing teams between your identity provider and GitHub](https://help.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/)." - * @deprecated octokit.teams.removeMembershipLegacy() is deprecated, see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy - */ - removeMembershipLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsRemoveMembershipLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team project`](https://developer.github.com/v3/teams/#remove-team-project) endpoint. - * - * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. - * @deprecated octokit.teams.removeProject() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy - */ - removeProject: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveProjectParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. This endpoint removes the project from the team, but does not delete the project. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/projects/:project_id`. - */ - removeProjectInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveProjectInOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team project`](https://developer.github.com/v3/teams/#remove-team-project) endpoint. - * - * Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. - * @deprecated octokit.teams.removeProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-project-legacy - */ - removeProjectLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveProjectLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team repository`](https://developer.github.com/v3/teams/#remove-team-repository) endpoint. - * - * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. - * @deprecated octokit.teams.removeRepo() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy - */ - removeRepo: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveRepoParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. This does not delete the repository, it just removes it from the team. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/:org_id/team/:team_id/repos/:owner/:repo`. - */ - removeRepoInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveRepoInOrgParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Remove team repository`](https://developer.github.com/v3/teams/#remove-team-repository) endpoint. - * - * If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. - * @deprecated octokit.teams.removeRepoLegacy() is deprecated, see https://developer.github.com/v3/teams/#remove-team-repository-legacy - */ - removeRepoLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsRemoveRepoLegacyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Review a team project`](https://developer.github.com/v3/teams/#review-a-team-project) endpoint. - * - * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. - * @deprecated octokit.teams.reviewProject() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy - */ - reviewProject: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsReviewProjectParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/:org_id/team/:team_id/projects/:project_id`. - */ - reviewProjectInOrg: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsReviewProjectInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Review a team project`](https://developer.github.com/v3/teams/#review-a-team-project) endpoint. - * - * Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. - * @deprecated octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy - */ - reviewProjectLegacy: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsReviewProjectLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit team`](https://developer.github.com/v3/teams/#edit-team) endpoint. - * - * To edit a team, the authenticated user must either be an organization owner or a team maintainer. - * - * **Note:** With nested teams, the `privacy` for parent teams cannot be `secret`. - * @deprecated octokit.teams.update() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy - */ - update: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsUpdateParamsDeprecatedPermission - ): Promise>; - (params?: Octokit.RequestOptions & Octokit.TeamsUpdateParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a discussion`](https://developer.github.com/v3/teams/discussions/#edit-a-discussion) endpoint. - * - * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.updateDiscussion() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy - */ - updateDiscussion: { - ( - params?: Octokit.RequestOptions & Octokit.TeamsUpdateDiscussionParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a comment`](https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment) endpoint. - * - * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.updateDiscussionComment() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy - */ - updateDiscussionComment: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsUpdateDiscussionCommentParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/:org_id/team/:team_id/discussions/:discussion_number/comments/:comment_number`. - */ - updateDiscussionCommentInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsUpdateDiscussionCommentInOrgParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a comment`](https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment) endpoint. - * - * Edits the body text of a discussion comment. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.updateDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy - */ - updateDiscussionCommentLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsUpdateDiscussionCommentLegacyParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/:org_id/team/:team_id/discussions/:discussion_number`. - */ - updateDiscussionInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsUpdateDiscussionInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit a discussion`](https://developer.github.com/v3/teams/discussions/#edit-a-discussion) endpoint. - * - * Edits the title and body text of a discussion post. Only the parameters you provide are updated. OAuth access tokens require the `write:discussion` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - * @deprecated octokit.teams.updateDiscussionLegacy() is deprecated, see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy - */ - updateDiscussionLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsUpdateDiscussionLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * To edit a team, the authenticated user must either be an organization owner or a team maintainer. - * - * **Note:** You can also specify a team by `org_id` and `team_id` using the route `PATCH /organizations/:org_id/team/:team_id`. - */ - updateInOrg: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsUpdateInOrgParamsDeprecatedPermission - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.TeamsUpdateInOrgParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * **Deprecation Notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Edit team`](https://developer.github.com/v3/teams/#edit-team) endpoint. - * - * To edit a team, the authenticated user must either be an organization owner or a team maintainer. - * - * **Note:** With nested teams, the `privacy` for parent teams cannot be `secret`. - * @deprecated octokit.teams.updateLegacy() is deprecated, see https://developer.github.com/v3/teams/#edit-team-legacy - */ - updateLegacy: { - ( - params?: Octokit.RequestOptions & - Octokit.TeamsUpdateLegacyParamsDeprecatedPermission - ): Promise>; - ( - params?: Octokit.RequestOptions & Octokit.TeamsUpdateLegacyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - }; - users: { - /** - * This endpoint is accessible with the `user` scope. - */ - addEmails: { - (params?: Octokit.RequestOptions & Octokit.UsersAddEmailsParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - block: { - (params?: Octokit.RequestOptions & Octokit.UsersBlockParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * If the user is blocked: - * - * If the user is not blocked: - */ - checkBlocked: { - ( - params?: Octokit.RequestOptions & Octokit.UsersCheckBlockedParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - checkFollowing: { - ( - params?: Octokit.RequestOptions & Octokit.UsersCheckFollowingParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - - checkFollowingForUser: { - ( - params?: Octokit.RequestOptions & - Octokit.UsersCheckFollowingForUserParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Adds a GPG key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - createGpgKey: { - ( - params?: Octokit.RequestOptions & Octokit.UsersCreateGpgKeyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Adds a public SSH key to the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth, or OAuth with at least `write:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - createPublicKey: { - ( - params?: Octokit.RequestOptions & Octokit.UsersCreatePublicKeyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * This endpoint is accessible with the `user` scope. - */ - deleteEmails: { - ( - params?: Octokit.RequestOptions & Octokit.UsersDeleteEmailsParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Removes a GPG key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - deleteGpgKey: { - ( - params?: Octokit.RequestOptions & Octokit.UsersDeleteGpgKeyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Removes a public SSH key from the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `admin:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - deletePublicKey: { - ( - params?: Octokit.RequestOptions & Octokit.UsersDeletePublicKeyParams - ): Promise; - - endpoint: Octokit.Endpoint; - }; - /** - * Note that you'll need to set `Content-Length` to zero when calling out to this endpoint. For more information, see "[HTTP verbs](https://developer.github.com/v3/#http-verbs)." - * - * Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope. - */ - follow: { - (params?: Octokit.RequestOptions & Octokit.UsersFollowParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists public and private profile information when authenticated through basic auth or OAuth with the `user` scope. - * - * Lists public profile information when authenticated through OAuth without the `user` scope. - */ - getAuthenticated: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Provides publicly available information about someone with a GitHub account. - * - * GitHub Apps with the `Plan` user permission can use this endpoint to retrieve information about a user's GitHub plan. The GitHub App must be authenticated as a user. See "[Identifying and authorizing users for GitHub Apps](https://developer.github.com/apps/building-github-apps/identifying-and-authorizing-users-for-github-apps/)" for details about authentication. For an example response, see "[Response with GitHub plan information](https://developer.github.com/v3/users/#response-with-github-plan-information)." - * - * The `email` key in the following response is the publicly visible email address from your GitHub [profile page](https://github.com/settings/profile). When setting up your profile, you can select a primary email address to be “public” which provides an email entry for this endpoint. If you do not set a public email address for `email`, then it will have a value of `null`. You only see publicly visible email addresses when authenticated with GitHub. For more information, see [Authentication](https://developer.github.com/v3/#authentication). - * - * The Emails API enables you to list all of your email addresses, and toggle a primary email to be visible publicly. For more information, see "[Emails API](https://developer.github.com/v3/users/emails/)". - */ - getByUsername: { - ( - params?: Octokit.RequestOptions & Octokit.UsersGetByUsernameParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Provides hovercard information when authenticated through basic auth or OAuth with the `repo` scope. You can find out more about someone in relation to their pull requests, issues, repositories, and organizations. - * - * The `subject_type` and `subject_id` parameters provide context for the person's hovercard, which returns more information than without the parameters. For example, if you wanted to find out more about `octocat` who owns the `Spoon-Knife` repository via cURL, it would look like this: - */ - getContextForUser: { - ( - params?: Octokit.RequestOptions & Octokit.UsersGetContextForUserParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * View extended details for a single GPG key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - getGpgKey: { - (params?: Octokit.RequestOptions & Octokit.UsersGetGpgKeyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * View extended details for a single public SSH key. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - getPublicKey: { - ( - params?: Octokit.RequestOptions & Octokit.UsersGetPublicKeyParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all users, in the order that they signed up on GitHub. This list includes personal user accounts and organization accounts. - * - * Note: Pagination is powered exclusively by the `since` parameter. Use the [Link header](https://developer.github.com/v3/#link-header) to get the URL for the next page of users. - */ - list: { - (params?: Octokit.RequestOptions & Octokit.UsersListParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * List the users you've blocked on your personal account. - */ - listBlocked: { - (params?: Octokit.RequestOptions & Octokit.EmptyParams): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists all of your email addresses, and specifies which one is visible to the public. This endpoint is accessible with the `user:email` scope. - */ - listEmails: { - ( - params?: Octokit.RequestOptions & Octokit.UsersListEmailsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listFollowersForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.UsersListFollowersForAuthenticatedUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - listFollowersForUser: { - ( - params?: Octokit.RequestOptions & - Octokit.UsersListFollowersForUserParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - - listFollowingForAuthenticatedUser: { - ( - params?: Octokit.RequestOptions & - Octokit.UsersListFollowingForAuthenticatedUserParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - listFollowingForUser: { - ( - params?: Octokit.RequestOptions & - Octokit.UsersListFollowingForUserParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the current user's GPG keys. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:gpg_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - listGpgKeys: { - ( - params?: Octokit.RequestOptions & Octokit.UsersListGpgKeysParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the GPG keys for a user. This information is accessible by anyone. - */ - listGpgKeysForUser: { - ( - params?: Octokit.RequestOptions & Octokit.UsersListGpgKeysForUserParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists your publicly visible email address, which you can set with the [Toggle primary email visibility](https://developer.github.com/v3/users/emails/#toggle-primary-email-visibility) endpoint. This endpoint is accessible with the `user:email` scope. - */ - listPublicEmails: { - ( - params?: Octokit.RequestOptions & Octokit.UsersListPublicEmailsParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the public SSH keys for the authenticated user's GitHub account. Requires that you are authenticated via Basic Auth or via OAuth with at least `read:public_key` [scope](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/). - */ - listPublicKeys: { - ( - params?: Octokit.RequestOptions & Octokit.UsersListPublicKeysParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Lists the _verified_ public SSH keys for a user. This is accessible by anyone. - */ - listPublicKeysForUser: { - ( - params?: Octokit.RequestOptions & - Octokit.UsersListPublicKeysForUserParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - /** - * Sets the visibility for your primary email addresses. - */ - togglePrimaryEmailVisibility: { - ( - params?: Octokit.RequestOptions & - Octokit.UsersTogglePrimaryEmailVisibilityParams - ): Promise< - Octokit.Response - >; - - endpoint: Octokit.Endpoint; - }; - - unblock: { - (params?: Octokit.RequestOptions & Octokit.UsersUnblockParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the `user:follow` scope. - */ - unfollow: { - (params?: Octokit.RequestOptions & Octokit.UsersUnfollowParams): Promise< - Octokit.AnyResponse - >; - - endpoint: Octokit.Endpoint; - }; - /** - * **Note:** If your email is set to private and you send an `email` parameter as part of this request to update your profile, your privacy settings are still enforced: the email address will not be displayed on your public profile or via the API. - */ - updateAuthenticated: { - ( - params?: Octokit.RequestOptions & Octokit.UsersUpdateAuthenticatedParams - ): Promise>; - - endpoint: Octokit.Endpoint; - }; - }; -} diff --git a/node_modules/@octokit/rest/index.js b/node_modules/@octokit/rest/index.js deleted file mode 100644 index a2d30691a..000000000 --- a/node_modules/@octokit/rest/index.js +++ /dev/null @@ -1,43 +0,0 @@ -const { requestLog } = require("@octokit/plugin-request-log"); -const { - restEndpointMethods -} = require("@octokit/plugin-rest-endpoint-methods"); - -const Core = require("./lib/core"); - -const CORE_PLUGINS = [ - require("./plugins/authentication"), - require("./plugins/authentication-deprecated"), // deprecated: remove in v17 - requestLog, - require("./plugins/pagination"), - restEndpointMethods, - require("./plugins/validate"), - - require("octokit-pagination-methods") // deprecated: remove in v17 -]; - -const OctokitRest = Core.plugin(CORE_PLUGINS); - -function DeprecatedOctokit(options) { - const warn = - options && options.log && options.log.warn - ? options.log.warn - : console.warn; - warn( - '[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead' - ); - return new OctokitRest(options); -} - -const Octokit = Object.assign(DeprecatedOctokit, { - Octokit: OctokitRest -}); - -Object.keys(OctokitRest).forEach(key => { - /* istanbul ignore else */ - if (OctokitRest.hasOwnProperty(key)) { - Octokit[key] = OctokitRest[key]; - } -}); - -module.exports = Octokit; diff --git a/node_modules/@octokit/rest/lib/constructor.js b/node_modules/@octokit/rest/lib/constructor.js deleted file mode 100644 index d83cf6b45..000000000 --- a/node_modules/@octokit/rest/lib/constructor.js +++ /dev/null @@ -1,29 +0,0 @@ -module.exports = Octokit; - -const { request } = require("@octokit/request"); -const Hook = require("before-after-hook"); - -const parseClientOptions = require("./parse-client-options"); - -function Octokit(plugins, options) { - options = options || {}; - const hook = new Hook.Collection(); - const log = Object.assign( - { - debug: () => {}, - info: () => {}, - warn: console.warn, - error: console.error - }, - options && options.log - ); - const api = { - hook, - log, - request: request.defaults(parseClientOptions(options, log, hook)) - }; - - plugins.forEach(pluginFunction => pluginFunction(api, options)); - - return api; -} diff --git a/node_modules/@octokit/rest/lib/core.js b/node_modules/@octokit/rest/lib/core.js deleted file mode 100644 index 4943ffad5..000000000 --- a/node_modules/@octokit/rest/lib/core.js +++ /dev/null @@ -1,3 +0,0 @@ -const factory = require("./factory"); - -module.exports = factory(); diff --git a/node_modules/@octokit/rest/lib/factory.js b/node_modules/@octokit/rest/lib/factory.js deleted file mode 100644 index 5dc206523..000000000 --- a/node_modules/@octokit/rest/lib/factory.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = factory; - -const Octokit = require("./constructor"); -const registerPlugin = require("./register-plugin"); - -function factory(plugins) { - const Api = Octokit.bind(null, plugins || []); - Api.plugin = registerPlugin.bind(null, plugins || []); - return Api; -} diff --git a/node_modules/@octokit/rest/lib/parse-client-options.js b/node_modules/@octokit/rest/lib/parse-client-options.js deleted file mode 100644 index c7c097dd0..000000000 --- a/node_modules/@octokit/rest/lib/parse-client-options.js +++ /dev/null @@ -1,89 +0,0 @@ -module.exports = parseOptions; - -const { Deprecation } = require("deprecation"); -const { getUserAgent } = require("universal-user-agent"); -const once = require("once"); - -const pkg = require("../package.json"); - -const deprecateOptionsTimeout = once((log, deprecation) => - log.warn(deprecation) -); -const deprecateOptionsAgent = once((log, deprecation) => log.warn(deprecation)); -const deprecateOptionsHeaders = once((log, deprecation) => - log.warn(deprecation) -); - -function parseOptions(options, log, hook) { - if (options.headers) { - options.headers = Object.keys(options.headers).reduce((newObj, key) => { - newObj[key.toLowerCase()] = options.headers[key]; - return newObj; - }, {}); - } - - const clientDefaults = { - headers: options.headers || {}, - request: options.request || {}, - mediaType: { - previews: [], - format: "" - } - }; - - if (options.baseUrl) { - clientDefaults.baseUrl = options.baseUrl; - } - - if (options.userAgent) { - clientDefaults.headers["user-agent"] = options.userAgent; - } - - if (options.previews) { - clientDefaults.mediaType.previews = options.previews; - } - - if (options.timeZone) { - clientDefaults.headers["time-zone"] = options.timeZone; - } - - if (options.timeout) { - deprecateOptionsTimeout( - log, - new Deprecation( - "[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request" - ) - ); - clientDefaults.request.timeout = options.timeout; - } - - if (options.agent) { - deprecateOptionsAgent( - log, - new Deprecation( - "[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request" - ) - ); - clientDefaults.request.agent = options.agent; - } - - if (options.headers) { - deprecateOptionsHeaders( - log, - new Deprecation( - "[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request" - ) - ); - } - - const userAgentOption = clientDefaults.headers["user-agent"]; - const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}`; - - clientDefaults.headers["user-agent"] = [userAgentOption, defaultUserAgent] - .filter(Boolean) - .join(" "); - - clientDefaults.request.hook = hook.bind(null, "request"); - - return clientDefaults; -} diff --git a/node_modules/@octokit/rest/lib/register-plugin.js b/node_modules/@octokit/rest/lib/register-plugin.js deleted file mode 100644 index c1ae77540..000000000 --- a/node_modules/@octokit/rest/lib/register-plugin.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = registerPlugin; - -const factory = require("./factory"); - -function registerPlugin(plugins, pluginFunction) { - return factory( - plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction) - ); -} diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/README.md b/node_modules/@octokit/rest/node_modules/@octokit/request-error/README.md deleted file mode 100644 index bcb711d91..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/request-error/README.md +++ /dev/null @@ -1,68 +0,0 @@ -# http-error.js - -> Error class for Octokit request errors - -[![@latest](https://img.shields.io/npm/v/@octokit/request-error.svg)](https://www.npmjs.com/package/@octokit/request-error) -[![Build Status](https://travis-ci.com/octokit/request-error.js.svg?branch=master)](https://travis-ci.com/octokit/request-error.js) -[![Greenkeeper](https://badges.greenkeeper.io/octokit/request-error.js.svg)](https://greenkeeper.io/) - -## Usage - - - - - - -
-Browsers - -Load @octokit/request-error directly from cdn.pika.dev - -```html - -``` - -
-Node - - -Install with npm install @octokit/request-error - -```js -const { RequestError } = require("@octokit/request-error"); -// or: import { RequestError } from "@octokit/request-error"; -``` - -
- -```js -const error = new RequestError("Oops", 500, { - headers: { - "x-github-request-id": "1:2:3:4" - }, // response headers - request: { - method: "POST", - url: "https://api.github.com/foo", - body: { - bar: "baz" - }, - headers: { - authorization: "token secret123" - } - } -}); - -error.message; // Oops -error.status; // 500 -error.headers; // { 'x-github-request-id': '1:2:3:4' } -error.request.method; // POST -error.request.url; // https://api.github.com/foo -error.request.body; // { bar: 'baz' } -error.request.headers; // { authorization: 'token [REDACTED]' } -``` - -## LICENSE - -[MIT](LICENSE) diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-node/index.js b/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-node/index.js deleted file mode 100644 index 95b9c5796..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-node/index.js +++ /dev/null @@ -1,55 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var deprecation = require('deprecation'); -var once = _interopDefault(require('once')); - -const logOnce = once(deprecation => console.warn(deprecation)); -/** - * Error with extra properties to help with debugging - */ - -class RequestError extends Error { - constructor(message, statusCode, options) { - super(message); // Maintains proper stack trace (only available on V8) - - /* istanbul ignore next */ - - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } - - this.name = "HttpError"; - this.status = statusCode; - Object.defineProperty(this, "code", { - get() { - logOnce(new deprecation.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")); - return statusCode; - } - - }); - this.headers = options.headers || {}; // redact request credentials without mutating original request options - - const requestCopy = Object.assign({}, options.request); - - if (options.request.headers.authorization) { - requestCopy.headers = Object.assign({}, options.request.headers, { - authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]") - }); - } - - requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit - // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications - .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") // OAuth tokens can be passed as URL query parameters, although it is not recommended - // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header - .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"); - this.request = requestCopy; - } - -} - -exports.RequestError = RequestError; -//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-node/index.js.map b/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-node/index.js.map deleted file mode 100644 index ec1c6dbc2..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-node/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sources":["../dist-src/index.js"],"sourcesContent":["import { Deprecation } from \"deprecation\";\nimport once from \"once\";\nconst logOnce = once((deprecation) => console.warn(deprecation));\n/**\n * Error with extra properties to help with debugging\n */\nexport class RequestError extends Error {\n constructor(message, statusCode, options) {\n super(message);\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n this.name = \"HttpError\";\n this.status = statusCode;\n Object.defineProperty(this, \"code\", {\n get() {\n logOnce(new Deprecation(\"[@octokit/request-error] `error.code` is deprecated, use `error.status`.\"));\n return statusCode;\n }\n });\n this.headers = options.headers || {};\n // redact request credentials without mutating original request options\n const requestCopy = Object.assign({}, options.request);\n if (options.request.headers.authorization) {\n requestCopy.headers = Object.assign({}, options.request.headers, {\n authorization: options.request.headers.authorization.replace(/ .*$/, \" [REDACTED]\")\n });\n }\n requestCopy.url = requestCopy.url\n // client_id & client_secret can be passed as URL query parameters to increase rate limit\n // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications\n .replace(/\\bclient_secret=\\w+/g, \"client_secret=[REDACTED]\")\n // OAuth tokens can be passed as URL query parameters, although it is not recommended\n // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header\n .replace(/\\baccess_token=\\w+/g, \"access_token=[REDACTED]\");\n this.request = requestCopy;\n }\n}\n"],"names":["logOnce","once","deprecation","console","warn","RequestError","Error","constructor","message","statusCode","options","captureStackTrace","name","status","Object","defineProperty","get","Deprecation","headers","requestCopy","assign","request","authorization","replace","url"],"mappings":";;;;;;;;;AAEA,MAAMA,OAAO,GAAGC,IAAI,CAAEC,WAAD,IAAiBC,OAAO,CAACC,IAAR,CAAaF,WAAb,CAAlB,CAApB;;;;;AAIA,AAAO,MAAMG,YAAN,SAA2BC,KAA3B,CAAiC;EACpCC,WAAW,CAACC,OAAD,EAAUC,UAAV,EAAsBC,OAAtB,EAA+B;UAChCF,OAAN,EADsC;;;;QAIlCF,KAAK,CAACK,iBAAV,EAA6B;MACzBL,KAAK,CAACK,iBAAN,CAAwB,IAAxB,EAA8B,KAAKJ,WAAnC;;;SAECK,IAAL,GAAY,WAAZ;SACKC,MAAL,GAAcJ,UAAd;IACAK,MAAM,CAACC,cAAP,CAAsB,IAAtB,EAA4B,MAA5B,EAAoC;MAChCC,GAAG,GAAG;QACFhB,OAAO,CAAC,IAAIiB,uBAAJ,CAAgB,0EAAhB,CAAD,CAAP;eACOR,UAAP;;;KAHR;SAMKS,OAAL,GAAeR,OAAO,CAACQ,OAAR,IAAmB,EAAlC,CAfsC;;UAiBhCC,WAAW,GAAGL,MAAM,CAACM,MAAP,CAAc,EAAd,EAAkBV,OAAO,CAACW,OAA1B,CAApB;;QACIX,OAAO,CAACW,OAAR,CAAgBH,OAAhB,CAAwBI,aAA5B,EAA2C;MACvCH,WAAW,CAACD,OAAZ,GAAsBJ,MAAM,CAACM,MAAP,CAAc,EAAd,EAAkBV,OAAO,CAACW,OAAR,CAAgBH,OAAlC,EAA2C;QAC7DI,aAAa,EAAEZ,OAAO,CAACW,OAAR,CAAgBH,OAAhB,CAAwBI,aAAxB,CAAsCC,OAAtC,CAA8C,MAA9C,EAAsD,aAAtD;OADG,CAAtB;;;IAIJJ,WAAW,CAACK,GAAZ,GAAkBL,WAAW,CAACK,GAAZ;;KAGbD,OAHa,CAGL,sBAHK,EAGmB,0BAHnB;;KAMbA,OANa,CAML,qBANK,EAMkB,yBANlB,CAAlB;SAOKF,OAAL,GAAeF,WAAf;;;;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-src/index.js b/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-src/index.js deleted file mode 100644 index cfcb7c416..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-src/index.js +++ /dev/null @@ -1,40 +0,0 @@ -import { Deprecation } from "deprecation"; -import once from "once"; -const logOnce = once((deprecation) => console.warn(deprecation)); -/** - * Error with extra properties to help with debugging - */ -export class RequestError extends Error { - constructor(message, statusCode, options) { - super(message); - // Maintains proper stack trace (only available on V8) - /* istanbul ignore next */ - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } - this.name = "HttpError"; - this.status = statusCode; - Object.defineProperty(this, "code", { - get() { - logOnce(new Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")); - return statusCode; - } - }); - this.headers = options.headers || {}; - // redact request credentials without mutating original request options - const requestCopy = Object.assign({}, options.request); - if (options.request.headers.authorization) { - requestCopy.headers = Object.assign({}, options.request.headers, { - authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]") - }); - } - requestCopy.url = requestCopy.url - // client_id & client_secret can be passed as URL query parameters to increase rate limit - // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications - .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") - // OAuth tokens can be passed as URL query parameters, although it is not recommended - // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header - .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"); - this.request = requestCopy; - } -} diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-types/index.d.ts b/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-types/index.d.ts deleted file mode 100644 index baa8a0eb7..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-types/index.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { RequestOptions, ResponseHeaders } from "@octokit/types"; -import { RequestErrorOptions } from "./types"; -/** - * Error with extra properties to help with debugging - */ -export declare class RequestError extends Error { - name: "HttpError"; - /** - * http status code - */ - status: number; - /** - * http status code - * - * @deprecated `error.code` is deprecated in favor of `error.status` - */ - code: number; - /** - * error response headers - */ - headers: ResponseHeaders; - /** - * Request options that lead to the error. - */ - request: RequestOptions; - constructor(message: string, statusCode: number, options: RequestErrorOptions); -} diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-types/types.d.ts b/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-types/types.d.ts deleted file mode 100644 index 865d2139f..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-types/types.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { RequestOptions, ResponseHeaders } from "@octokit/types"; -export declare type RequestErrorOptions = { - headers?: ResponseHeaders; - request: RequestOptions; -}; diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-web/index.js b/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-web/index.js deleted file mode 100644 index 32b45a36f..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-web/index.js +++ /dev/null @@ -1,44 +0,0 @@ -import { Deprecation } from 'deprecation'; -import once from 'once'; - -const logOnce = once((deprecation) => console.warn(deprecation)); -/** - * Error with extra properties to help with debugging - */ -class RequestError extends Error { - constructor(message, statusCode, options) { - super(message); - // Maintains proper stack trace (only available on V8) - /* istanbul ignore next */ - if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor); - } - this.name = "HttpError"; - this.status = statusCode; - Object.defineProperty(this, "code", { - get() { - logOnce(new Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")); - return statusCode; - } - }); - this.headers = options.headers || {}; - // redact request credentials without mutating original request options - const requestCopy = Object.assign({}, options.request); - if (options.request.headers.authorization) { - requestCopy.headers = Object.assign({}, options.request.headers, { - authorization: options.request.headers.authorization.replace(/ .*$/, " [REDACTED]") - }); - } - requestCopy.url = requestCopy.url - // client_id & client_secret can be passed as URL query parameters to increase rate limit - // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications - .replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]") - // OAuth tokens can be passed as URL query parameters, although it is not recommended - // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header - .replace(/\baccess_token=\w+/g, "access_token=[REDACTED]"); - this.request = requestCopy; - } -} - -export { RequestError }; -//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-web/index.js.map b/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-web/index.js.map deleted file mode 100644 index 05151b094..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/request-error/dist-web/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sources":["../dist-src/index.js"],"sourcesContent":["import { Deprecation } from \"deprecation\";\nimport once from \"once\";\nconst logOnce = once((deprecation) => console.warn(deprecation));\n/**\n * Error with extra properties to help with debugging\n */\nexport class RequestError extends Error {\n constructor(message, statusCode, options) {\n super(message);\n // Maintains proper stack trace (only available on V8)\n /* istanbul ignore next */\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n }\n this.name = \"HttpError\";\n this.status = statusCode;\n Object.defineProperty(this, \"code\", {\n get() {\n logOnce(new Deprecation(\"[@octokit/request-error] `error.code` is deprecated, use `error.status`.\"));\n return statusCode;\n }\n });\n this.headers = options.headers || {};\n // redact request credentials without mutating original request options\n const requestCopy = Object.assign({}, options.request);\n if (options.request.headers.authorization) {\n requestCopy.headers = Object.assign({}, options.request.headers, {\n authorization: options.request.headers.authorization.replace(/ .*$/, \" [REDACTED]\")\n });\n }\n requestCopy.url = requestCopy.url\n // client_id & client_secret can be passed as URL query parameters to increase rate limit\n // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications\n .replace(/\\bclient_secret=\\w+/g, \"client_secret=[REDACTED]\")\n // OAuth tokens can be passed as URL query parameters, although it is not recommended\n // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header\n .replace(/\\baccess_token=\\w+/g, \"access_token=[REDACTED]\");\n this.request = requestCopy;\n }\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;;;;AAIjE,AAAO,MAAM,YAAY,SAAS,KAAK,CAAC;IACpC,WAAW,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE;QACtC,KAAK,CAAC,OAAO,CAAC,CAAC;;;QAGf,IAAI,KAAK,CAAC,iBAAiB,EAAE;YACzB,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;SACnD;QACD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC;QACzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE;YAChC,GAAG,GAAG;gBACF,OAAO,CAAC,IAAI,WAAW,CAAC,0EAA0E,CAAC,CAAC,CAAC;gBACrG,OAAO,UAAU,CAAC;aACrB;SACJ,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;;QAErC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QACvD,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE;YACvC,WAAW,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE;gBAC7D,aAAa,EAAE,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC;aACtF,CAAC,CAAC;SACN;QACD,WAAW,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG;;;aAG5B,OAAO,CAAC,sBAAsB,EAAE,0BAA0B,CAAC;;;aAG3D,OAAO,CAAC,qBAAqB,EAAE,yBAAyB,CAAC,CAAC;QAC/D,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC;KAC9B;CACJ;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/rest/node_modules/@octokit/request-error/package.json b/node_modules/@octokit/rest/node_modules/@octokit/request-error/package.json deleted file mode 100644 index 309a91aa7..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/request-error/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "@octokit/request-error", - "description": "Error class for Octokit request errors", - "version": "1.2.1", - "license": "MIT", - "files": [ - "dist-*/", - "bin/" - ], - "pika": true, - "sideEffects": false, - "keywords": [ - "octokit", - "github", - "api", - "error" - ], - "homepage": "https://github.com/octokit/request-error.js#readme", - "bugs": { - "url": "https://github.com/octokit/request-error.js/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/octokit/request-error.js.git" - }, - "dependencies": { - "@octokit/types": "^2.0.0", - "deprecation": "^2.0.0", - "once": "^1.4.0" - }, - "devDependencies": { - "@pika/pack": "^0.5.0", - "@pika/plugin-build-node": "^0.8.1", - "@pika/plugin-build-web": "^0.8.1", - "@pika/plugin-bundle-web": "^0.8.1", - "@pika/plugin-ts-standard-pkg": "^0.8.1", - "@types/jest": "^25.1.0", - "@types/node": "^13.1.0", - "@types/once": "^1.4.0", - "jest": "^24.7.1", - "pika-plugin-unpkg-field": "^1.1.0", - "prettier": "^1.17.0", - "semantic-release": "^17.0.0", - "ts-jest": "^24.0.2", - "typescript": "^3.4.5" - }, - "publishConfig": { - "access": "public" - }, - "source": "dist-src/index.js", - "types": "dist-types/index.d.ts", - "main": "dist-node/index.js", - "module": "dist-web/index.js" -} diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/VERSION.js b/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/VERSION.js deleted file mode 100644 index 66bc3f74f..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/VERSION.js +++ /dev/null @@ -1 +0,0 @@ -export const VERSION = "2.16.2"; diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/index.js b/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/index.js deleted file mode 100644 index 04b216360..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-src/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./VERSION"; diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/VERSION.d.ts b/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/VERSION.d.ts deleted file mode 100644 index c24737b27..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/VERSION.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const VERSION = "2.16.2"; diff --git a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts b/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts deleted file mode 100644 index d10c4c921..000000000 --- a/node_modules/@octokit/rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts +++ /dev/null @@ -1,41416 +0,0 @@ -import { OctokitResponse } from "../OctokitResponse"; -import { RequestHeaders } from "../RequestHeaders"; -import { RequestRequestOptions } from "../RequestRequestOptions"; -declare type RequiredPreview = { - mediaType: { - previews: [T, ...string[]]; - }; -}; -export interface Endpoints { - /** - * @see https://developer.github.com/v3/apps/#delete-an-installation - */ - "DELETE /app/installations/:installation_id": { - parameters: AppsDeleteInstallationEndpoint; - request: AppsDeleteInstallationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#unsuspend-an-installation - */ - "DELETE /app/installations/:installation_id/suspended": { - parameters: AppsUnsuspendInstallationEndpoint; - request: AppsUnsuspendInstallationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-authorization - */ - "DELETE /applications/:client_id/grant": { - parameters: AppsDeleteAuthorizationEndpoint; - request: AppsDeleteAuthorizationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application - */ - "DELETE /applications/:client_id/grants/:access_token": { - parameters: AppsRevokeGrantForApplicationEndpoint; - request: AppsRevokeGrantForApplicationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-token - */ - "DELETE /applications/:client_id/token": { - parameters: AppsDeleteTokenEndpoint; - request: AppsDeleteTokenRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application - */ - "DELETE /applications/:client_id/tokens/:access_token": { - parameters: AppsRevokeAuthorizationForApplicationEndpoint; - request: AppsRevokeAuthorizationForApplicationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant - */ - "DELETE /applications/grants/:grant_id": { - parameters: OauthAuthorizationsDeleteGrantEndpoint; - request: OauthAuthorizationsDeleteGrantRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization - */ - "DELETE /authorizations/:authorization_id": { - parameters: OauthAuthorizationsDeleteAuthorizationEndpoint; - request: OauthAuthorizationsDeleteAuthorizationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#delete-a-gist - */ - "DELETE /gists/:gist_id": { - parameters: GistsDeleteEndpoint; - request: GistsDeleteRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/comments/#delete-a-comment - */ - "DELETE /gists/:gist_id/comments/:comment_id": { - parameters: GistsDeleteCommentEndpoint; - request: GistsDeleteCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#unstar-a-gist - */ - "DELETE /gists/:gist_id/star": { - parameters: GistsUnstarEndpoint; - request: GistsUnstarRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/installations/#revoke-an-installation-token - */ - "DELETE /installation/token": { - parameters: AppsRevokeInstallationTokenEndpoint; - request: AppsRevokeInstallationTokenRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription - */ - "DELETE /notifications/threads/:thread_id/subscription": { - parameters: ActivityDeleteThreadSubscriptionEndpoint; - request: ActivityDeleteThreadSubscriptionRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-an-organization - */ - "DELETE /orgs/:org/actions/runners/:runner_id": { - parameters: ActionsDeleteSelfHostedRunnerFromOrgEndpoint; - request: ActionsDeleteSelfHostedRunnerFromOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/blocking/#unblock-a-user - */ - "DELETE /orgs/:org/blocks/:username": { - parameters: OrgsUnblockUserEndpoint; - request: OrgsUnblockUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/#remove-a-credential-authorization-for-an-organization - */ - "DELETE /orgs/:org/credential-authorizations/:credential_id": { - parameters: OrgsRemoveCredentialAuthorizationEndpoint; - request: OrgsRemoveCredentialAuthorizationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/hooks/#delete-a-hook - */ - "DELETE /orgs/:org/hooks/:hook_id": { - parameters: OrgsDeleteHookEndpoint; - request: OrgsDeleteHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/interactions/orgs/#remove-interaction-restrictions-for-an-organization - */ - "DELETE /orgs/:org/interaction-limits": { - parameters: InteractionsRemoveRestrictionsForOrgEndpoint; - request: InteractionsRemoveRestrictionsForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#remove-a-member - */ - "DELETE /orgs/:org/members/:username": { - parameters: OrgsRemoveMemberEndpoint; - request: OrgsRemoveMemberRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#remove-organization-membership - */ - "DELETE /orgs/:org/memberships/:username": { - parameters: OrgsRemoveMembershipEndpoint; - request: OrgsRemoveMembershipRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/orgs/#delete-an-organization-migration-archive - */ - "DELETE /orgs/:org/migrations/:migration_id/archive": { - parameters: MigrationsDeleteArchiveForOrgEndpoint; - request: MigrationsDeleteArchiveForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/orgs/#unlock-an-organization-repository - */ - "DELETE /orgs/:org/migrations/:migration_id/repos/:repo_name/lock": { - parameters: MigrationsUnlockRepoForOrgEndpoint; - request: MigrationsUnlockRepoForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator - */ - "DELETE /orgs/:org/outside_collaborators/:username": { - parameters: OrgsRemoveOutsideCollaboratorEndpoint; - request: OrgsRemoveOutsideCollaboratorRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#conceal-a-users-membership - */ - "DELETE /orgs/:org/public_members/:username": { - parameters: OrgsConcealMembershipEndpoint; - request: OrgsConcealMembershipRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#delete-team - */ - "DELETE /orgs/:org/teams/:team_slug": { - parameters: TeamsDeleteInOrgEndpoint; - request: TeamsDeleteInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussions/#delete-a-discussion - */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number": { - parameters: TeamsDeleteDiscussionInOrgEndpoint; - request: TeamsDeleteDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment - */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsDeleteDiscussionCommentInOrgEndpoint; - request: TeamsDeleteDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#delete-team-discussion-comment-reaction - */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id": { - parameters: ReactionsDeleteForTeamDiscussionCommentEndpoint; - request: ReactionsDeleteForTeamDiscussionCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#delete-team-discussion-reaction - */ - "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id": { - parameters: ReactionsDeleteForTeamDiscussionEndpoint; - request: ReactionsDeleteForTeamDiscussionRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#remove-team-membership - */ - "DELETE /orgs/:org/teams/:team_slug/memberships/:username": { - parameters: TeamsRemoveMembershipInOrgEndpoint; - request: TeamsRemoveMembershipInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#remove-team-project - */ - "DELETE /orgs/:org/teams/:team_slug/projects/:project_id": { - parameters: TeamsRemoveProjectInOrgEndpoint; - request: TeamsRemoveProjectInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#remove-team-repository - */ - "DELETE /orgs/:org/teams/:team_slug/repos/:owner/:repo": { - parameters: TeamsRemoveRepoInOrgEndpoint; - request: TeamsRemoveRepoInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/#delete-a-project - */ - "DELETE /projects/:project_id": { - parameters: ProjectsDeleteEndpoint; - request: ProjectsDeleteRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/collaborators/#remove-user-as-a-collaborator - */ - "DELETE /projects/:project_id/collaborators/:username": { - parameters: ProjectsRemoveCollaboratorEndpoint; - request: ProjectsRemoveCollaboratorRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/columns/#delete-a-project-column - */ - "DELETE /projects/columns/:column_id": { - parameters: ProjectsDeleteColumnEndpoint; - request: ProjectsDeleteColumnRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/cards/#delete-a-project-card - */ - "DELETE /projects/columns/cards/:card_id": { - parameters: ProjectsDeleteCardEndpoint; - request: ProjectsDeleteCardRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy - */ - "DELETE /reactions/:reaction_id": { - parameters: ReactionsDeleteLegacyEndpoint; - request: ReactionsDeleteLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#delete-a-repository - */ - "DELETE /repos/:owner/:repo": { - parameters: ReposDeleteEndpoint; - request: ReposDeleteRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/artifacts/#delete-an-artifact - */ - "DELETE /repos/:owner/:repo/actions/artifacts/:artifact_id": { - parameters: ActionsDeleteArtifactEndpoint; - request: ActionsDeleteArtifactRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-a-repository - */ - "DELETE /repos/:owner/:repo/actions/runners/:runner_id": { - parameters: ActionsDeleteSelfHostedRunnerFromRepoEndpoint; - request: ActionsDeleteSelfHostedRunnerFromRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflow-runs/#delete-workflow-run-logs - */ - "DELETE /repos/:owner/:repo/actions/runs/:run_id/logs": { - parameters: ActionsDeleteWorkflowRunLogsEndpoint; - request: ActionsDeleteWorkflowRunLogsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/secrets/#delete-a-secret-from-a-repository - */ - "DELETE /repos/:owner/:repo/actions/secrets/:name": { - parameters: ActionsDeleteSecretFromRepoEndpoint; - request: ActionsDeleteSecretFromRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#disable-automated-security-fixes - */ - "DELETE /repos/:owner/:repo/automated-security-fixes": { - parameters: ReposDisableAutomatedSecurityFixesEndpoint; - request: ReposDisableAutomatedSecurityFixesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#remove-branch-protection - */ - "DELETE /repos/:owner/:repo/branches/:branch/protection": { - parameters: ReposRemoveBranchProtectionEndpoint; - request: ReposRemoveBranchProtectionRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#remove-admin-enforcement-of-protected-branch - */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { - parameters: ReposRemoveProtectedBranchAdminEnforcementEndpoint; - request: ReposRemoveProtectedBranchAdminEnforcementRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch - */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { - parameters: ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint; - request: ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#remove-required-signatures-of-protected-branch - */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_signatures": { - parameters: ReposRemoveProtectedBranchRequiredSignaturesEndpoint; - request: ReposRemoveProtectedBranchRequiredSignaturesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#remove-required-status-checks-of-protected-branch - */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { - parameters: ReposRemoveProtectedBranchRequiredStatusChecksEndpoint; - request: ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch - */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#remove-restrictions-of-protected-branch - */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions": { - parameters: ReposRemoveProtectedBranchRestrictionsEndpoint; - request: ReposRemoveProtectedBranchRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#remove-app-restrictions-of-protected-branch - */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposRemoveProtectedBranchAppRestrictionsEndpoint; - request: ReposRemoveProtectedBranchAppRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#remove-team-restrictions-of-protected-branch - */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposRemoveProtectedBranchTeamRestrictionsEndpoint; - request: ReposRemoveProtectedBranchTeamRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#remove-user-restrictions-of-protected-branch - */ - "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposRemoveProtectedBranchUserRestrictionsEndpoint; - request: ReposRemoveProtectedBranchUserRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/collaborators/#remove-user-as-a-collaborator - */ - "DELETE /repos/:owner/:repo/collaborators/:username": { - parameters: ReposRemoveCollaboratorEndpoint; - request: ReposRemoveCollaboratorRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/comments/#delete-a-commit-comment - */ - "DELETE /repos/:owner/:repo/comments/:comment_id": { - parameters: ReposDeleteCommitCommentEndpoint; - request: ReposDeleteCommitCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#delete-a-commit-comment-reaction - */ - "DELETE /repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id": { - parameters: ReactionsDeleteForCommitCommentEndpoint; - request: ReactionsDeleteForCommitCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/contents/#delete-a-file - */ - "DELETE /repos/:owner/:repo/contents/:path": { - parameters: ReposDeleteFileEndpoint; - request: ReposDeleteFileRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/deployments/#delete-a-deployment - */ - "DELETE /repos/:owner/:repo/deployments/:deployment_id": { - parameters: ReposDeleteDeploymentEndpoint; - request: ReposDeleteDeploymentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/downloads/#delete-a-download - */ - "DELETE /repos/:owner/:repo/downloads/:download_id": { - parameters: ReposDeleteDownloadEndpoint; - request: ReposDeleteDownloadRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/refs/#delete-a-reference - */ - "DELETE /repos/:owner/:repo/git/refs/:ref": { - parameters: GitDeleteRefEndpoint; - request: GitDeleteRefRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/hooks/#delete-a-hook - */ - "DELETE /repos/:owner/:repo/hooks/:hook_id": { - parameters: ReposDeleteHookEndpoint; - request: ReposDeleteHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/source_imports/#cancel-an-import - */ - "DELETE /repos/:owner/:repo/import": { - parameters: MigrationsCancelImportEndpoint; - request: MigrationsCancelImportRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/interactions/repos/#remove-interaction-restrictions-for-a-repository - */ - "DELETE /repos/:owner/:repo/interaction-limits": { - parameters: InteractionsRemoveRestrictionsForRepoEndpoint; - request: InteractionsRemoveRestrictionsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation - */ - "DELETE /repos/:owner/:repo/invitations/:invitation_id": { - parameters: ReposDeleteInvitationEndpoint; - request: ReposDeleteInvitationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue - */ - "DELETE /repos/:owner/:repo/issues/:issue_number/assignees": { - parameters: IssuesRemoveAssigneesEndpoint; - request: IssuesRemoveAssigneesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue - */ - "DELETE /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesRemoveAllLabelsEndpoint; - request: IssuesRemoveAllLabelsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue - */ - "DELETE /repos/:owner/:repo/issues/:issue_number/labels/:name": { - parameters: IssuesRemoveLabelEndpoint; - request: IssuesRemoveLabelRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/#unlock-an-issue - */ - "DELETE /repos/:owner/:repo/issues/:issue_number/lock": { - parameters: IssuesUnlockEndpoint; - request: IssuesUnlockRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#delete-an-issue-reaction - */ - "DELETE /repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id": { - parameters: ReactionsDeleteForIssueEndpoint; - request: ReactionsDeleteForIssueRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/comments/#delete-a-comment - */ - "DELETE /repos/:owner/:repo/issues/comments/:comment_id": { - parameters: IssuesDeleteCommentEndpoint; - request: IssuesDeleteCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#delete-an-issue-comment-reaction - */ - "DELETE /repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id": { - parameters: ReactionsDeleteForIssueCommentEndpoint; - request: ReactionsDeleteForIssueCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/keys/#remove-a-deploy-key - */ - "DELETE /repos/:owner/:repo/keys/:key_id": { - parameters: ReposRemoveDeployKeyEndpoint; - request: ReposRemoveDeployKeyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#delete-a-label - */ - "DELETE /repos/:owner/:repo/labels/:name": { - parameters: IssuesDeleteLabelEndpoint; - request: IssuesDeleteLabelRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/milestones/#delete-a-milestone - */ - "DELETE /repos/:owner/:repo/milestones/:milestone_number": { - parameters: IssuesDeleteMilestoneEndpoint; - request: IssuesDeleteMilestoneRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/pages/#disable-a-pages-site - */ - "DELETE /repos/:owner/:repo/pages": { - parameters: ReposDisablePagesSiteEndpoint; - request: ReposDisablePagesSiteRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request - */ - "DELETE /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { - parameters: PullsDeleteReviewRequestEndpoint; - request: PullsDeleteReviewRequestRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review - */ - "DELETE /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { - parameters: PullsDeletePendingReviewEndpoint; - request: PullsDeletePendingReviewRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/comments/#delete-a-comment - */ - "DELETE /repos/:owner/:repo/pulls/comments/:comment_id": { - parameters: PullsDeleteCommentEndpoint; - request: PullsDeleteCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#delete-a-pull-request-comment-reaction - */ - "DELETE /repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id": { - parameters: ReactionsDeleteForPullRequestCommentEndpoint; - request: ReactionsDeleteForPullRequestCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#delete-a-release - */ - "DELETE /repos/:owner/:repo/releases/:release_id": { - parameters: ReposDeleteReleaseEndpoint; - request: ReposDeleteReleaseRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#delete-a-release-asset - */ - "DELETE /repos/:owner/:repo/releases/assets/:asset_id": { - parameters: ReposDeleteReleaseAssetEndpoint; - request: ReposDeleteReleaseAssetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription - */ - "DELETE /repos/:owner/:repo/subscription": { - parameters: ActivityDeleteRepoSubscriptionEndpoint; - request: ActivityDeleteRepoSubscriptionRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#disable-vulnerability-alerts - */ - "DELETE /repos/:owner/:repo/vulnerability-alerts": { - parameters: ReposDisableVulnerabilityAlertsEndpoint; - request: ReposDisableVulnerabilityAlertsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/scim/#remove-a-user-from-the-organization - */ - "DELETE /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimRemoveUserFromOrgEndpoint; - request: ScimRemoveUserFromOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#delete-team-legacy - */ - "DELETE /teams/:team_id": { - parameters: TeamsDeleteLegacyEndpoint; - request: TeamsDeleteLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy - */ - "DELETE /teams/:team_id/discussions/:discussion_number": { - parameters: TeamsDeleteDiscussionLegacyEndpoint; - request: TeamsDeleteDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy - */ - "DELETE /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsDeleteDiscussionCommentLegacyEndpoint; - request: TeamsDeleteDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#remove-team-member-legacy - */ - "DELETE /teams/:team_id/members/:username": { - parameters: TeamsRemoveMemberLegacyEndpoint; - request: TeamsRemoveMemberLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy - */ - "DELETE /teams/:team_id/memberships/:username": { - parameters: TeamsRemoveMembershipLegacyEndpoint; - request: TeamsRemoveMembershipLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#remove-team-project-legacy - */ - "DELETE /teams/:team_id/projects/:project_id": { - parameters: TeamsRemoveProjectLegacyEndpoint; - request: TeamsRemoveProjectLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#remove-team-repository-legacy - */ - "DELETE /teams/:team_id/repos/:owner/:repo": { - parameters: TeamsRemoveRepoLegacyEndpoint; - request: TeamsRemoveRepoLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/blocking/#unblock-a-user - */ - "DELETE /user/blocks/:username": { - parameters: UsersUnblockEndpoint; - request: UsersUnblockRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/emails/#delete-email-addresses - */ - "DELETE /user/emails": { - parameters: UsersDeleteEmailsEndpoint; - request: UsersDeleteEmailsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/followers/#unfollow-a-user - */ - "DELETE /user/following/:username": { - parameters: UsersUnfollowEndpoint; - request: UsersUnfollowRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key - */ - "DELETE /user/gpg_keys/:gpg_key_id": { - parameters: UsersDeleteGpgKeyEndpoint; - request: UsersDeleteGpgKeyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/installations/#remove-repository-from-installation - */ - "DELETE /user/installations/:installation_id/repositories/:repository_id": { - parameters: AppsRemoveRepoFromInstallationEndpoint; - request: AppsRemoveRepoFromInstallationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/keys/#delete-a-public-key - */ - "DELETE /user/keys/:key_id": { - parameters: UsersDeletePublicKeyEndpoint; - request: UsersDeletePublicKeyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/users/#delete-a-user-migration-archive - */ - "DELETE /user/migrations/:migration_id/archive": { - parameters: MigrationsDeleteArchiveForAuthenticatedUserEndpoint; - request: MigrationsDeleteArchiveForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/users/#unlock-a-user-repository - */ - "DELETE /user/migrations/:migration_id/repos/:repo_name/lock": { - parameters: MigrationsUnlockRepoForAuthenticatedUserEndpoint; - request: MigrationsUnlockRepoForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/invitations/#decline-a-repository-invitation - */ - "DELETE /user/repository_invitations/:invitation_id": { - parameters: ReposDeclineInvitationEndpoint; - request: ReposDeclineInvitationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/starring/#unstar-a-repository-for-the-authenticated-user - */ - "DELETE /user/starred/:owner/:repo": { - parameters: ActivityUnstarRepoForAuthenticatedUserEndpoint; - request: ActivityUnstarRepoForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/watching/#stop-watching-a-repository-legacy - */ - "DELETE /user/subscriptions/:owner/:repo": { - parameters: ActivityStopWatchingRepoLegacyEndpoint; - request: ActivityStopWatchingRepoLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#get-the-authenticated-github-app - */ - "GET /app": { - parameters: AppsGetAuthenticatedEndpoint; - request: AppsGetAuthenticatedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#list-installations - */ - "GET /app/installations": { - parameters: AppsListInstallationsEndpoint; - request: AppsListInstallationsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#get-an-installation - */ - "GET /app/installations/:installation_id": { - parameters: AppsGetInstallationEndpoint; - request: AppsGetInstallationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/oauth_applications/#check-an-authorization - */ - "GET /applications/:client_id/tokens/:access_token": { - parameters: AppsCheckAuthorizationEndpoint; - request: AppsCheckAuthorizationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/oauth_authorizations/#list-your-grants - */ - "GET /applications/grants": { - parameters: OauthAuthorizationsListGrantsEndpoint; - request: OauthAuthorizationsListGrantsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-a-single-grant - */ - "GET /applications/grants/:grant_id": { - parameters: OauthAuthorizationsGetGrantEndpoint; - request: OauthAuthorizationsGetGrantRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#get-a-single-github-app - */ - "GET /apps/:app_slug": { - parameters: AppsGetBySlugEndpoint; - request: AppsGetBySlugRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/oauth_authorizations/#list-your-authorizations - */ - "GET /authorizations": { - parameters: OauthAuthorizationsListAuthorizationsEndpoint; - request: OauthAuthorizationsListAuthorizationsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-a-single-authorization - */ - "GET /authorizations/:authorization_id": { - parameters: OauthAuthorizationsGetAuthorizationEndpoint; - request: OauthAuthorizationsGetAuthorizationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/codes_of_conduct/#list-all-codes-of-conduct - */ - "GET /codes_of_conduct": { - parameters: CodesOfConductGetAllCodesOfConductEndpoint; - request: CodesOfConductGetAllCodesOfConductRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/codes_of_conduct/#get-an-individual-code-of-conduct - */ - "GET /codes_of_conduct/:key": { - parameters: CodesOfConductGetConductCodeEndpoint; - request: CodesOfConductGetConductCodeRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/emojis/#emojis - */ - "GET /emojis": { - parameters: EmojisGetEndpoint; - request: EmojisGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/events/#list-public-events - */ - "GET /events": { - parameters: ActivityListPublicEventsEndpoint; - request: ActivityListPublicEventsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/feeds/#get-feeds - */ - "GET /feeds": { - parameters: ActivityGetFeedsEndpoint; - request: ActivityGetFeedsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#list-gists-for-the-authenticated-user - */ - "GET /gists": { - parameters: GistsListEndpoint; - request: GistsListRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#get-a-gist - */ - "GET /gists/:gist_id": { - parameters: GistsGetEndpoint; - request: GistsGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#get-a-specific-revision-of-a-gist - */ - "GET /gists/:gist_id/:sha": { - parameters: GistsGetRevisionEndpoint; - request: GistsGetRevisionRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/comments/#list-comments-on-a-gist - */ - "GET /gists/:gist_id/comments": { - parameters: GistsListCommentsEndpoint; - request: GistsListCommentsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/comments/#get-a-single-comment - */ - "GET /gists/:gist_id/comments/:comment_id": { - parameters: GistsGetCommentEndpoint; - request: GistsGetCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#list-gist-commits - */ - "GET /gists/:gist_id/commits": { - parameters: GistsListCommitsEndpoint; - request: GistsListCommitsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#list-gist-forks - */ - "GET /gists/:gist_id/forks": { - parameters: GistsListForksEndpoint; - request: GistsListForksRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#check-if-a-gist-is-starred - */ - "GET /gists/:gist_id/star": { - parameters: GistsCheckIsStarredEndpoint; - request: GistsCheckIsStarredRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#list-public-gists - */ - "GET /gists/public": { - parameters: GistsListPublicEndpoint; - request: GistsListPublicRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#list-starred-gists - */ - "GET /gists/starred": { - parameters: GistsListStarredEndpoint; - request: GistsListStarredRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gitignore/#listing-available-templates - */ - "GET /gitignore/templates": { - parameters: GitignoreListTemplatesEndpoint; - request: GitignoreListTemplatesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gitignore/#get-a-single-template - */ - "GET /gitignore/templates/:name": { - parameters: GitignoreGetTemplateEndpoint; - request: GitignoreGetTemplateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/installations/#list-repositories - */ - "GET /installation/repositories": { - parameters: AppsListReposEndpoint; - request: AppsListReposRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/#list-issues-assigned-to-the-authenticated-user - */ - "GET /issues": { - parameters: IssuesListEndpoint; - request: IssuesListRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/legacy/#search-issues - */ - "GET /legacy/issues/search/:owner/:repository/:state/:keyword": { - parameters: SearchIssuesLegacyEndpoint; - request: SearchIssuesLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/legacy/#search-repositories - */ - "GET /legacy/repos/search/:keyword": { - parameters: SearchReposLegacyEndpoint; - request: SearchReposLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/legacy/#email-search - */ - "GET /legacy/user/email/:email": { - parameters: SearchEmailLegacyEndpoint; - request: SearchEmailLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/legacy/#search-users - */ - "GET /legacy/user/search/:keyword": { - parameters: SearchUsersLegacyEndpoint; - request: SearchUsersLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/licenses/#list-commonly-used-licenses - */ - "GET /licenses": { - parameters: LicensesListCommonlyUsedEndpoint; - request: LicensesListCommonlyUsedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/licenses/#get-an-individual-license - */ - "GET /licenses/:license": { - parameters: LicensesGetEndpoint; - request: LicensesGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/marketplace/#get-a-subscription-plan-for-an-account - */ - "GET /marketplace_listing/accounts/:account_id": { - parameters: AppsGetSubscriptionPlanForAccountEndpoint; - request: AppsGetSubscriptionPlanForAccountRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/marketplace/#list-plans - */ - "GET /marketplace_listing/plans": { - parameters: AppsListPlansEndpoint; - request: AppsListPlansRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/marketplace/#list-accounts-for-a-plan - */ - "GET /marketplace_listing/plans/:plan_id/accounts": { - parameters: AppsListAccountsForPlanEndpoint; - request: AppsListAccountsForPlanRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/marketplace/#get-a-subscription-plan-for-an-account-stubbed - */ - "GET /marketplace_listing/stubbed/accounts/:account_id": { - parameters: AppsGetSubscriptionPlanForAccountStubbedEndpoint; - request: AppsGetSubscriptionPlanForAccountStubbedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/marketplace/#list-plans-stubbed - */ - "GET /marketplace_listing/stubbed/plans": { - parameters: AppsListPlansStubbedEndpoint; - request: AppsListPlansStubbedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/marketplace/#list-accounts-for-a-plan-stubbed - */ - "GET /marketplace_listing/stubbed/plans/:plan_id/accounts": { - parameters: AppsListAccountsForPlanStubbedEndpoint; - request: AppsListAccountsForPlanStubbedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/meta/#meta - */ - "GET /meta": { - parameters: MetaGetEndpoint; - request: MetaGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/events/#list-public-events-for-a-network-of-repositories - */ - "GET /networks/:owner/:repo/events": { - parameters: ActivityListPublicEventsForRepoNetworkEndpoint; - request: ActivityListPublicEventsForRepoNetworkRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/notifications/#list-notifications-for-the-authenticated-user - */ - "GET /notifications": { - parameters: ActivityListNotificationsForAuthenticatedUserEndpoint; - request: ActivityListNotificationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/notifications/#get-a-thread - */ - "GET /notifications/threads/:thread_id": { - parameters: ActivityGetThreadEndpoint; - request: ActivityGetThreadRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/notifications/#get-a-thread-subscription-for-the-authenticated-user - */ - "GET /notifications/threads/:thread_id/subscription": { - parameters: ActivityGetThreadSubscriptionForAuthenticatedUserEndpoint; - request: ActivityGetThreadSubscriptionForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/#list-all-organizations - */ - "GET /organizations": { - parameters: OrgsListEndpoint; - request: OrgsListRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/#get-an-organization - */ - "GET /orgs/:org": { - parameters: OrgsGetEndpoint; - request: OrgsGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-an-organization - */ - "GET /orgs/:org/actions/runners": { - parameters: ActionsListSelfHostedRunnersForOrgEndpoint; - request: ActionsListSelfHostedRunnersForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-an-organization - */ - "GET /orgs/:org/actions/runners/:runner_id": { - parameters: ActionsGetSelfHostedRunnerForOrgEndpoint; - request: ActionsGetSelfHostedRunnerForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-an-organization - */ - "GET /orgs/:org/actions/runners/downloads": { - parameters: ActionsListRunnerApplicationsForOrgEndpoint; - request: ActionsListRunnerApplicationsForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/blocking/#list-blocked-users - */ - "GET /orgs/:org/blocks": { - parameters: OrgsListBlockedUsersEndpoint; - request: OrgsListBlockedUsersRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/blocking/#check-whether-a-user-is-blocked-from-an-organization - */ - "GET /orgs/:org/blocks/:username": { - parameters: OrgsCheckBlockedUserEndpoint; - request: OrgsCheckBlockedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/#list-credential-authorizations-for-an-organization - */ - "GET /orgs/:org/credential-authorizations": { - parameters: OrgsListCredentialAuthorizationsEndpoint; - request: OrgsListCredentialAuthorizationsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/events/#list-public-organization-events - */ - "GET /orgs/:org/events": { - parameters: ActivityListPublicOrgEventsEndpoint; - request: ActivityListPublicOrgEventsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/hooks/#list-hooks - */ - "GET /orgs/:org/hooks": { - parameters: OrgsListHooksEndpoint; - request: OrgsListHooksRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/hooks/#get-single-hook - */ - "GET /orgs/:org/hooks/:hook_id": { - parameters: OrgsGetHookEndpoint; - request: OrgsGetHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#get-an-organization-installation - */ - "GET /orgs/:org/installation": { - parameters: AppsGetOrgInstallationEndpoint; - request: AppsGetOrgInstallationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/#list-installations-for-an-organization - */ - "GET /orgs/:org/installations": { - parameters: OrgsListInstallationsEndpoint; - request: OrgsListInstallationsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/interactions/orgs/#get-interaction-restrictions-for-an-organization - */ - "GET /orgs/:org/interaction-limits": { - parameters: InteractionsGetRestrictionsForOrgEndpoint; - request: InteractionsGetRestrictionsForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#list-pending-organization-invitations - */ - "GET /orgs/:org/invitations": { - parameters: OrgsListPendingInvitationsEndpoint; - request: OrgsListPendingInvitationsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#list-organization-invitation-teams - */ - "GET /orgs/:org/invitations/:invitation_id/teams": { - parameters: OrgsListInvitationTeamsEndpoint; - request: OrgsListInvitationTeamsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/#list-organization-issues-assigned-to-the-authenticated-user - */ - "GET /orgs/:org/issues": { - parameters: IssuesListForOrgEndpoint; - request: IssuesListForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#members-list - */ - "GET /orgs/:org/members": { - parameters: OrgsListMembersEndpoint; - request: OrgsListMembersRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#check-membership - */ - "GET /orgs/:org/members/:username": { - parameters: OrgsCheckMembershipEndpoint; - request: OrgsCheckMembershipRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#get-organization-membership - */ - "GET /orgs/:org/memberships/:username": { - parameters: OrgsGetMembershipEndpoint; - request: OrgsGetMembershipRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/orgs/#list-organization-migrations - */ - "GET /orgs/:org/migrations": { - parameters: MigrationsListForOrgEndpoint; - request: MigrationsListForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/orgs/#get-the-status-of-an-organization-migration - */ - "GET /orgs/:org/migrations/:migration_id": { - parameters: MigrationsGetStatusForOrgEndpoint; - request: MigrationsGetStatusForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/orgs/#download-an-organization-migration-archive - */ - "GET /orgs/:org/migrations/:migration_id/archive": { - parameters: MigrationsDownloadArchiveForOrgEndpoint; - request: MigrationsDownloadArchiveForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/orgs/#list-repositories-in-an-organization-migration - */ - "GET /orgs/:org/migrations/:migration_id/repositories": { - parameters: MigrationsListReposForOrgEndpoint; - request: MigrationsListReposForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/outside_collaborators/#list-outside-collaborators - */ - "GET /orgs/:org/outside_collaborators": { - parameters: OrgsListOutsideCollaboratorsEndpoint; - request: OrgsListOutsideCollaboratorsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/#list-organization-projects - */ - "GET /orgs/:org/projects": { - parameters: ProjectsListForOrgEndpoint; - request: ProjectsListForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#public-members-list - */ - "GET /orgs/:org/public_members": { - parameters: OrgsListPublicMembersEndpoint; - request: OrgsListPublicMembersRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#check-public-membership - */ - "GET /orgs/:org/public_members/:username": { - parameters: OrgsCheckPublicMembershipEndpoint; - request: OrgsCheckPublicMembershipRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#list-organization-repositories - */ - "GET /orgs/:org/repos": { - parameters: ReposListForOrgEndpoint; - request: ReposListForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-in-an-organization - */ - "GET /orgs/:org/team-sync/groups": { - parameters: TeamsListIdPGroupsForOrgEndpoint; - request: TeamsListIdPGroupsForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#list-teams - */ - "GET /orgs/:org/teams": { - parameters: TeamsListEndpoint; - request: TeamsListRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#get-team-by-name - */ - "GET /orgs/:org/teams/:team_slug": { - parameters: TeamsGetByNameEndpoint; - request: TeamsGetByNameRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussions/#list-discussions - */ - "GET /orgs/:org/teams/:team_slug/discussions": { - parameters: TeamsListDiscussionsInOrgEndpoint; - request: TeamsListDiscussionsInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion - */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number": { - parameters: TeamsGetDiscussionInOrgEndpoint; - request: TeamsGetDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussion_comments/#list-comments - */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": { - parameters: TeamsListDiscussionCommentsInOrgEndpoint; - request: TeamsListDiscussionCommentsInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment - */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsGetDiscussionCommentInOrgEndpoint; - request: TeamsGetDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment - */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsListForTeamDiscussionCommentInOrgEndpoint; - request: ReactionsListForTeamDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion - */ - "GET /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions": { - parameters: ReactionsListForTeamDiscussionInOrgEndpoint; - request: ReactionsListForTeamDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#list-pending-team-invitations - */ - "GET /orgs/:org/teams/:team_slug/invitations": { - parameters: TeamsListPendingInvitationsInOrgEndpoint; - request: TeamsListPendingInvitationsInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#list-team-members - */ - "GET /orgs/:org/teams/:team_slug/members": { - parameters: TeamsListMembersInOrgEndpoint; - request: TeamsListMembersInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#get-team-membership - */ - "GET /orgs/:org/teams/:team_slug/memberships/:username": { - parameters: TeamsGetMembershipInOrgEndpoint; - request: TeamsGetMembershipInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#list-team-projects - */ - "GET /orgs/:org/teams/:team_slug/projects": { - parameters: TeamsListProjectsInOrgEndpoint; - request: TeamsListProjectsInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#review-a-team-project - */ - "GET /orgs/:org/teams/:team_slug/projects/:project_id": { - parameters: TeamsReviewProjectInOrgEndpoint; - request: TeamsReviewProjectInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#list-team-repos - */ - "GET /orgs/:org/teams/:team_slug/repos": { - parameters: TeamsListReposInOrgEndpoint; - request: TeamsListReposInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository - */ - "GET /orgs/:org/teams/:team_slug/repos/:owner/:repo": { - parameters: TeamsCheckManagesRepoInOrgEndpoint; - request: TeamsCheckManagesRepoInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team - */ - "GET /orgs/:org/teams/:team_slug/team-sync/group-mappings": { - parameters: TeamsListIdPGroupsInOrgEndpoint; - request: TeamsListIdPGroupsInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#list-child-teams - */ - "GET /orgs/:org/teams/:team_slug/teams": { - parameters: TeamsListChildInOrgEndpoint; - request: TeamsListChildInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/#get-a-project - */ - "GET /projects/:project_id": { - parameters: ProjectsGetEndpoint; - request: ProjectsGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/collaborators/#list-collaborators - */ - "GET /projects/:project_id/collaborators": { - parameters: ProjectsListCollaboratorsEndpoint; - request: ProjectsListCollaboratorsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/collaborators/#review-a-users-permission-level - */ - "GET /projects/:project_id/collaborators/:username/permission": { - parameters: ProjectsReviewUserPermissionLevelEndpoint; - request: ProjectsReviewUserPermissionLevelRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/columns/#list-project-columns - */ - "GET /projects/:project_id/columns": { - parameters: ProjectsListColumnsEndpoint; - request: ProjectsListColumnsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/columns/#get-a-project-column - */ - "GET /projects/columns/:column_id": { - parameters: ProjectsGetColumnEndpoint; - request: ProjectsGetColumnRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/cards/#list-project-cards - */ - "GET /projects/columns/:column_id/cards": { - parameters: ProjectsListCardsEndpoint; - request: ProjectsListCardsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/cards/#get-a-project-card - */ - "GET /projects/columns/cards/:card_id": { - parameters: ProjectsGetCardEndpoint; - request: ProjectsGetCardRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/rate_limit/#get-your-current-rate-limit-status - */ - "GET /rate_limit": { - parameters: RateLimitGetEndpoint; - request: RateLimitGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#get-a-repository - */ - "GET /repos/:owner/:repo": { - parameters: ReposGetEndpoint; - request: ReposGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/contents/#get-archive-link - */ - "GET /repos/:owner/:repo/:archive_format/:ref": { - parameters: ReposGetArchiveLinkEndpoint; - request: ReposGetArchiveLinkRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/artifacts/#list-artifacts-for-a-repository - */ - "GET /repos/:owner/:repo/actions/artifacts": { - parameters: ActionsListArtifactsForRepoEndpoint; - request: ActionsListArtifactsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/artifacts/#get-an-artifact - */ - "GET /repos/:owner/:repo/actions/artifacts/:artifact_id": { - parameters: ActionsGetArtifactEndpoint; - request: ActionsGetArtifactRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/artifacts/#download-an-artifact - */ - "GET /repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format": { - parameters: ActionsDownloadArtifactEndpoint; - request: ActionsDownloadArtifactRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflow-jobs/#get-a-workflow-job - */ - "GET /repos/:owner/:repo/actions/jobs/:job_id": { - parameters: ActionsGetWorkflowJobEndpoint; - request: ActionsGetWorkflowJobRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflow-jobs/#download-workflow-job-logs - */ - "GET /repos/:owner/:repo/actions/jobs/:job_id/logs": { - parameters: ActionsDownloadWorkflowJobLogsEndpoint; - request: ActionsDownloadWorkflowJobLogsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-self-hosted-runners-for-a-repository - */ - "GET /repos/:owner/:repo/actions/runners": { - parameters: ActionsListSelfHostedRunnersForRepoEndpoint; - request: ActionsListSelfHostedRunnersForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#get-a-self-hosted-runner-for-a-repository - */ - "GET /repos/:owner/:repo/actions/runners/:runner_id": { - parameters: ActionsGetSelfHostedRunnerForRepoEndpoint; - request: ActionsGetSelfHostedRunnerForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#list-runner-applications-for-a-repository - */ - "GET /repos/:owner/:repo/actions/runners/downloads": { - parameters: ActionsListRunnerApplicationsForRepoEndpoint; - request: ActionsListRunnerApplicationsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflow-runs/#list-repository-workflow-runs - */ - "GET /repos/:owner/:repo/actions/runs": { - parameters: ActionsListRepoWorkflowRunsEndpoint; - request: ActionsListRepoWorkflowRunsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflow-runs/#get-a-workflow-run - */ - "GET /repos/:owner/:repo/actions/runs/:run_id": { - parameters: ActionsGetWorkflowRunEndpoint; - request: ActionsGetWorkflowRunRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/artifacts/#list-workflow-run-artifacts - */ - "GET /repos/:owner/:repo/actions/runs/:run_id/artifacts": { - parameters: ActionsListWorkflowRunArtifactsEndpoint; - request: ActionsListWorkflowRunArtifactsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflow-jobs/#list-jobs-for-a-workflow-run - */ - "GET /repos/:owner/:repo/actions/runs/:run_id/jobs": { - parameters: ActionsListJobsForWorkflowRunEndpoint; - request: ActionsListJobsForWorkflowRunRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflow-runs/#download-workflow-run-logs - */ - "GET /repos/:owner/:repo/actions/runs/:run_id/logs": { - parameters: ActionsDownloadWorkflowRunLogsEndpoint; - request: ActionsDownloadWorkflowRunLogsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/secrets/#list-secrets-for-a-repository - */ - "GET /repos/:owner/:repo/actions/secrets": { - parameters: ActionsListSecretsForRepoEndpoint; - request: ActionsListSecretsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/secrets/#get-a-secret - */ - "GET /repos/:owner/:repo/actions/secrets/:name": { - parameters: ActionsGetSecretEndpoint; - request: ActionsGetSecretRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/secrets/#get-your-public-key - */ - "GET /repos/:owner/:repo/actions/secrets/public-key": { - parameters: ActionsGetPublicKeyEndpoint; - request: ActionsGetPublicKeyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflows/#list-repository-workflows - */ - "GET /repos/:owner/:repo/actions/workflows": { - parameters: ActionsListRepoWorkflowsEndpoint; - request: ActionsListRepoWorkflowsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflows/#get-a-workflow - */ - "GET /repos/:owner/:repo/actions/workflows/:workflow_id": { - parameters: ActionsGetWorkflowEndpoint; - request: ActionsGetWorkflowRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflow-runs/#list-workflow-runs - */ - "GET /repos/:owner/:repo/actions/workflows/:workflow_id/runs": { - parameters: ActionsListWorkflowRunsEndpoint; - request: ActionsListWorkflowRunsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/assignees/#list-assignees - */ - "GET /repos/:owner/:repo/assignees": { - parameters: IssuesListAssigneesEndpoint; - request: IssuesListAssigneesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/assignees/#check-assignee - */ - "GET /repos/:owner/:repo/assignees/:assignee": { - parameters: IssuesCheckAssigneeEndpoint; - request: IssuesCheckAssigneeRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#list-branches - */ - "GET /repos/:owner/:repo/branches": { - parameters: ReposListBranchesEndpoint; - request: ReposListBranchesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#get-branch - */ - "GET /repos/:owner/:repo/branches/:branch": { - parameters: ReposGetBranchEndpoint; - request: ReposGetBranchRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#get-branch-protection - */ - "GET /repos/:owner/:repo/branches/:branch/protection": { - parameters: ReposGetBranchProtectionEndpoint; - request: ReposGetBranchProtectionRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#get-admin-enforcement-of-protected-branch - */ - "GET /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { - parameters: ReposGetProtectedBranchAdminEnforcementEndpoint; - request: ReposGetProtectedBranchAdminEnforcementRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#get-pull-request-review-enforcement-of-protected-branch - */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { - parameters: ReposGetProtectedBranchPullRequestReviewEnforcementEndpoint; - request: ReposGetProtectedBranchPullRequestReviewEnforcementRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#get-required-signatures-of-protected-branch - */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_signatures": { - parameters: ReposGetProtectedBranchRequiredSignaturesEndpoint; - request: ReposGetProtectedBranchRequiredSignaturesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#get-required-status-checks-of-protected-branch - */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { - parameters: ReposGetProtectedBranchRequiredStatusChecksEndpoint; - request: ReposGetProtectedBranchRequiredStatusChecksRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#list-required-status-checks-contexts-of-protected-branch - */ - "GET /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposListProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposListProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#get-restrictions-of-protected-branch - */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions": { - parameters: ReposGetProtectedBranchRestrictionsEndpoint; - request: ReposGetProtectedBranchRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#list-apps-with-access-to-protected-branch - */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposGetAppsWithAccessToProtectedBranchEndpoint; - request: ReposGetAppsWithAccessToProtectedBranchRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#list-teams-with-access-to-protected-branch - */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposGetTeamsWithAccessToProtectedBranchEndpoint; - request: ReposGetTeamsWithAccessToProtectedBranchRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#list-users-with-access-to-protected-branch - */ - "GET /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposGetUsersWithAccessToProtectedBranchEndpoint; - request: ReposGetUsersWithAccessToProtectedBranchRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/runs/#get-a-check-run - */ - "GET /repos/:owner/:repo/check-runs/:check_run_id": { - parameters: ChecksGetEndpoint; - request: ChecksGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/runs/#list-check-run-annotations - */ - "GET /repos/:owner/:repo/check-runs/:check_run_id/annotations": { - parameters: ChecksListAnnotationsEndpoint; - request: ChecksListAnnotationsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/suites/#get-a-check-suite - */ - "GET /repos/:owner/:repo/check-suites/:check_suite_id": { - parameters: ChecksGetSuiteEndpoint; - request: ChecksGetSuiteRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/runs/#list-check-runs-in-a-check-suite - */ - "GET /repos/:owner/:repo/check-suites/:check_suite_id/check-runs": { - parameters: ChecksListForSuiteEndpoint; - request: ChecksListForSuiteRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/code-scanning/#list-code-scanning-alerts-for-a-repository - */ - "GET /repos/:owner/:repo/code-scanning/alerts": { - parameters: CodeScanningListAlertsForRepoEndpoint; - request: CodeScanningListAlertsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/code-scanning/#get-a-code-scanning-alert - */ - "GET /repos/:owner/:repo/code-scanning/alerts/:alert_id": { - parameters: CodeScanningGetAlertEndpoint; - request: CodeScanningGetAlertRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/collaborators/#list-collaborators - */ - "GET /repos/:owner/:repo/collaborators": { - parameters: ReposListCollaboratorsEndpoint; - request: ReposListCollaboratorsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator - */ - "GET /repos/:owner/:repo/collaborators/:username": { - parameters: ReposCheckCollaboratorEndpoint; - request: ReposCheckCollaboratorRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/collaborators/#review-a-users-permission-level - */ - "GET /repos/:owner/:repo/collaborators/:username/permission": { - parameters: ReposGetCollaboratorPermissionLevelEndpoint; - request: ReposGetCollaboratorPermissionLevelRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/comments/#list-commit-comments-for-a-repository - */ - "GET /repos/:owner/:repo/comments": { - parameters: ReposListCommitCommentsEndpoint; - request: ReposListCommitCommentsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/comments/#get-a-single-commit-comment - */ - "GET /repos/:owner/:repo/comments/:comment_id": { - parameters: ReposGetCommitCommentEndpoint; - request: ReposGetCommitCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-commit-comment - */ - "GET /repos/:owner/:repo/comments/:comment_id/reactions": { - parameters: ReactionsListForCommitCommentEndpoint; - request: ReactionsListForCommitCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository - */ - "GET /repos/:owner/:repo/commits": { - parameters: ReposListCommitsEndpoint; - request: ReposListCommitsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/commits/#list-branches-for-head-commit - */ - "GET /repos/:owner/:repo/commits/:commit_sha/branches-where-head": { - parameters: ReposListBranchesForHeadCommitEndpoint; - request: ReposListBranchesForHeadCommitRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/comments/#list-comments-for-a-single-commit - */ - "GET /repos/:owner/:repo/commits/:commit_sha/comments": { - parameters: ReposListCommentsForCommitEndpoint; - request: ReposListCommentsForCommitRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/commits/#list-pull-requests-associated-with-commit - */ - "GET /repos/:owner/:repo/commits/:commit_sha/pulls": { - parameters: ReposListPullRequestsAssociatedWithCommitEndpoint; - request: ReposListPullRequestsAssociatedWithCommitRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/commits/#get-a-single-commit - */ - "GET /repos/:owner/:repo/commits/:ref": { - parameters: ReposGetCommitEndpoint; - request: ReposGetCommitRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/runs/#list-check-runs-for-a-git-reference - */ - "GET /repos/:owner/:repo/commits/:ref/check-runs": { - parameters: ChecksListForRefEndpoint; - request: ChecksListForRefRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/suites/#list-check-suites-for-a-git-reference - */ - "GET /repos/:owner/:repo/commits/:ref/check-suites": { - parameters: ChecksListSuitesForRefEndpoint; - request: ChecksListSuitesForRefRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref - */ - "GET /repos/:owner/:repo/commits/:ref/status": { - parameters: ReposGetCombinedStatusForRefEndpoint; - request: ReposGetCombinedStatusForRefRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref - */ - "GET /repos/:owner/:repo/commits/:ref/statuses": { - parameters: ReposListStatusesForRefEndpoint; - request: ReposListStatusesForRefRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/codes_of_conduct/#get-the-contents-of-a-repositorys-code-of-conduct - */ - "GET /repos/:owner/:repo/community/code_of_conduct": { - parameters: CodesOfConductGetForRepoEndpoint; - request: CodesOfConductGetForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/community/#retrieve-community-profile-metrics - */ - "GET /repos/:owner/:repo/community/profile": { - parameters: ReposRetrieveCommunityProfileMetricsEndpoint; - request: ReposRetrieveCommunityProfileMetricsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/commits/#compare-two-commits - */ - "GET /repos/:owner/:repo/compare/:base...:head": { - parameters: ReposCompareCommitsEndpoint; - request: ReposCompareCommitsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/contents/#get-contents - */ - "GET /repos/:owner/:repo/contents/:path": { - parameters: ReposGetContentsEndpoint; - request: ReposGetContentsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#list-contributors - */ - "GET /repos/:owner/:repo/contributors": { - parameters: ReposListContributorsEndpoint; - request: ReposListContributorsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/deployments/#list-deployments - */ - "GET /repos/:owner/:repo/deployments": { - parameters: ReposListDeploymentsEndpoint; - request: ReposListDeploymentsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/deployments/#get-a-single-deployment - */ - "GET /repos/:owner/:repo/deployments/:deployment_id": { - parameters: ReposGetDeploymentEndpoint; - request: ReposGetDeploymentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/deployments/#list-deployment-statuses - */ - "GET /repos/:owner/:repo/deployments/:deployment_id/statuses": { - parameters: ReposListDeploymentStatusesEndpoint; - request: ReposListDeploymentStatusesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/deployments/#get-a-single-deployment-status - */ - "GET /repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id": { - parameters: ReposGetDeploymentStatusEndpoint; - request: ReposGetDeploymentStatusRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/downloads/#list-downloads-for-a-repository - */ - "GET /repos/:owner/:repo/downloads": { - parameters: ReposListDownloadsEndpoint; - request: ReposListDownloadsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/downloads/#get-a-single-download - */ - "GET /repos/:owner/:repo/downloads/:download_id": { - parameters: ReposGetDownloadEndpoint; - request: ReposGetDownloadRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/events/#list-repository-events - */ - "GET /repos/:owner/:repo/events": { - parameters: ActivityListRepoEventsEndpoint; - request: ActivityListRepoEventsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/forks/#list-forks - */ - "GET /repos/:owner/:repo/forks": { - parameters: ReposListForksEndpoint; - request: ReposListForksRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/blobs/#get-a-blob - */ - "GET /repos/:owner/:repo/git/blobs/:file_sha": { - parameters: GitGetBlobEndpoint; - request: GitGetBlobRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/commits/#get-a-commit - */ - "GET /repos/:owner/:repo/git/commits/:commit_sha": { - parameters: GitGetCommitEndpoint; - request: GitGetCommitRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/refs/#list-matching-references - */ - "GET /repos/:owner/:repo/git/matching-refs/:ref": { - parameters: GitListMatchingRefsEndpoint; - request: GitListMatchingRefsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/refs/#get-a-single-reference - */ - "GET /repos/:owner/:repo/git/ref/:ref": { - parameters: GitGetRefEndpoint; - request: GitGetRefRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/tags/#get-a-tag - */ - "GET /repos/:owner/:repo/git/tags/:tag_sha": { - parameters: GitGetTagEndpoint; - request: GitGetTagRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/trees/#get-a-tree - */ - "GET /repos/:owner/:repo/git/trees/:tree_sha": { - parameters: GitGetTreeEndpoint; - request: GitGetTreeRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/hooks/#list-hooks - */ - "GET /repos/:owner/:repo/hooks": { - parameters: ReposListHooksEndpoint; - request: ReposListHooksRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/hooks/#get-single-hook - */ - "GET /repos/:owner/:repo/hooks/:hook_id": { - parameters: ReposGetHookEndpoint; - request: ReposGetHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/source_imports/#get-import-progress - */ - "GET /repos/:owner/:repo/import": { - parameters: MigrationsGetImportProgressEndpoint; - request: MigrationsGetImportProgressRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/source_imports/#get-commit-authors - */ - "GET /repos/:owner/:repo/import/authors": { - parameters: MigrationsGetCommitAuthorsEndpoint; - request: MigrationsGetCommitAuthorsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/source_imports/#get-large-files - */ - "GET /repos/:owner/:repo/import/large_files": { - parameters: MigrationsGetLargeFilesEndpoint; - request: MigrationsGetLargeFilesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#get-a-repository-installation - */ - "GET /repos/:owner/:repo/installation": { - parameters: AppsGetRepoInstallationEndpoint; - request: AppsGetRepoInstallationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/interactions/repos/#get-interaction-restrictions-for-a-repository - */ - "GET /repos/:owner/:repo/interaction-limits": { - parameters: InteractionsGetRestrictionsForRepoEndpoint; - request: InteractionsGetRestrictionsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/invitations/#list-invitations-for-a-repository - */ - "GET /repos/:owner/:repo/invitations": { - parameters: ReposListInvitationsEndpoint; - request: ReposListInvitationsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/#list-repository-issues - */ - "GET /repos/:owner/:repo/issues": { - parameters: IssuesListForRepoEndpoint; - request: IssuesListForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/#get-an-issue - */ - "GET /repos/:owner/:repo/issues/:issue_number": { - parameters: IssuesGetEndpoint; - request: IssuesGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/comments/#list-comments-on-an-issue - */ - "GET /repos/:owner/:repo/issues/:issue_number/comments": { - parameters: IssuesListCommentsEndpoint; - request: IssuesListCommentsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/events/#list-events-for-an-issue - */ - "GET /repos/:owner/:repo/issues/:issue_number/events": { - parameters: IssuesListEventsEndpoint; - request: IssuesListEventsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#list-labels-on-an-issue - */ - "GET /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesListLabelsOnIssueEndpoint; - request: IssuesListLabelsOnIssueRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-an-issue - */ - "GET /repos/:owner/:repo/issues/:issue_number/reactions": { - parameters: ReactionsListForIssueEndpoint; - request: ReactionsListForIssueRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/timeline/#list-events-for-an-issue - */ - "GET /repos/:owner/:repo/issues/:issue_number/timeline": { - parameters: IssuesListEventsForTimelineEndpoint; - request: IssuesListEventsForTimelineRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/comments/#list-comments-in-a-repository - */ - "GET /repos/:owner/:repo/issues/comments": { - parameters: IssuesListCommentsForRepoEndpoint; - request: IssuesListCommentsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/comments/#get-a-single-comment - */ - "GET /repos/:owner/:repo/issues/comments/:comment_id": { - parameters: IssuesGetCommentEndpoint; - request: IssuesGetCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-an-issue-comment - */ - "GET /repos/:owner/:repo/issues/comments/:comment_id/reactions": { - parameters: ReactionsListForIssueCommentEndpoint; - request: ReactionsListForIssueCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/events/#list-events-for-a-repository - */ - "GET /repos/:owner/:repo/issues/events": { - parameters: IssuesListEventsForRepoEndpoint; - request: IssuesListEventsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/events/#get-a-single-event - */ - "GET /repos/:owner/:repo/issues/events/:event_id": { - parameters: IssuesGetEventEndpoint; - request: IssuesGetEventRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/keys/#list-deploy-keys - */ - "GET /repos/:owner/:repo/keys": { - parameters: ReposListDeployKeysEndpoint; - request: ReposListDeployKeysRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/keys/#get-a-deploy-key - */ - "GET /repos/:owner/:repo/keys/:key_id": { - parameters: ReposGetDeployKeyEndpoint; - request: ReposGetDeployKeyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#list-all-labels-for-this-repository - */ - "GET /repos/:owner/:repo/labels": { - parameters: IssuesListLabelsForRepoEndpoint; - request: IssuesListLabelsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#get-a-single-label - */ - "GET /repos/:owner/:repo/labels/:name": { - parameters: IssuesGetLabelEndpoint; - request: IssuesGetLabelRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#list-languages - */ - "GET /repos/:owner/:repo/languages": { - parameters: ReposListLanguagesEndpoint; - request: ReposListLanguagesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/licenses/#get-the-contents-of-a-repositorys-license - */ - "GET /repos/:owner/:repo/license": { - parameters: LicensesGetForRepoEndpoint; - request: LicensesGetForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/milestones/#list-milestones-for-a-repository - */ - "GET /repos/:owner/:repo/milestones": { - parameters: IssuesListMilestonesForRepoEndpoint; - request: IssuesListMilestonesForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/milestones/#get-a-single-milestone - */ - "GET /repos/:owner/:repo/milestones/:milestone_number": { - parameters: IssuesGetMilestoneEndpoint; - request: IssuesGetMilestoneRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#get-labels-for-every-issue-in-a-milestone - */ - "GET /repos/:owner/:repo/milestones/:milestone_number/labels": { - parameters: IssuesListLabelsForMilestoneEndpoint; - request: IssuesListLabelsForMilestoneRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/notifications/#list-repository-notifications-for-the-authenticated-user - */ - "GET /repos/:owner/:repo/notifications": { - parameters: ActivityListRepoNotificationsForAuthenticatedUserEndpoint; - request: ActivityListRepoNotificationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/pages/#get-information-about-a-pages-site - */ - "GET /repos/:owner/:repo/pages": { - parameters: ReposGetPagesEndpoint; - request: ReposGetPagesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/pages/#list-pages-builds - */ - "GET /repos/:owner/:repo/pages/builds": { - parameters: ReposListPagesBuildsEndpoint; - request: ReposListPagesBuildsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/pages/#get-a-specific-pages-build - */ - "GET /repos/:owner/:repo/pages/builds/:build_id": { - parameters: ReposGetPagesBuildEndpoint; - request: ReposGetPagesBuildRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/pages/#get-latest-pages-build - */ - "GET /repos/:owner/:repo/pages/builds/latest": { - parameters: ReposGetLatestPagesBuildEndpoint; - request: ReposGetLatestPagesBuildRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/#list-repository-projects - */ - "GET /repos/:owner/:repo/projects": { - parameters: ProjectsListForRepoEndpoint; - request: ProjectsListForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/#list-pull-requests - */ - "GET /repos/:owner/:repo/pulls": { - parameters: PullsListEndpoint; - request: PullsListRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/#get-a-single-pull-request - */ - "GET /repos/:owner/:repo/pulls/:pull_number": { - parameters: PullsGetEndpoint; - request: PullsGetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/comments/#list-comments-on-a-pull-request - */ - "GET /repos/:owner/:repo/pulls/:pull_number/comments": { - parameters: PullsListCommentsEndpoint; - request: PullsListCommentsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/#list-commits-on-a-pull-request - */ - "GET /repos/:owner/:repo/pulls/:pull_number/commits": { - parameters: PullsListCommitsEndpoint; - request: PullsListCommitsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/#list-pull-requests-files - */ - "GET /repos/:owner/:repo/pulls/:pull_number/files": { - parameters: PullsListFilesEndpoint; - request: PullsListFilesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged - */ - "GET /repos/:owner/:repo/pulls/:pull_number/merge": { - parameters: PullsCheckIfMergedEndpoint; - request: PullsCheckIfMergedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/review_requests/#list-review-requests - */ - "GET /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { - parameters: PullsListReviewRequestsEndpoint; - request: PullsListReviewRequestsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/reviews/#list-reviews-on-a-pull-request - */ - "GET /repos/:owner/:repo/pulls/:pull_number/reviews": { - parameters: PullsListReviewsEndpoint; - request: PullsListReviewsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/reviews/#get-a-single-review - */ - "GET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { - parameters: PullsGetReviewEndpoint; - request: PullsGetReviewRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/reviews/#get-comments-for-a-single-review - */ - "GET /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments": { - parameters: PullsGetCommentsForReviewEndpoint; - request: PullsGetCommentsForReviewRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository - */ - "GET /repos/:owner/:repo/pulls/comments": { - parameters: PullsListCommentsForRepoEndpoint; - request: PullsListCommentsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/comments/#get-a-single-comment - */ - "GET /repos/:owner/:repo/pulls/comments/:comment_id": { - parameters: PullsGetCommentEndpoint; - request: PullsGetCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-pull-request-review-comment - */ - "GET /repos/:owner/:repo/pulls/comments/:comment_id/reactions": { - parameters: ReactionsListForPullRequestReviewCommentEndpoint; - request: ReactionsListForPullRequestReviewCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/contents/#get-the-readme - */ - "GET /repos/:owner/:repo/readme": { - parameters: ReposGetReadmeEndpoint; - request: ReposGetReadmeRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository - */ - "GET /repos/:owner/:repo/releases": { - parameters: ReposListReleasesEndpoint; - request: ReposListReleasesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#get-a-single-release - */ - "GET /repos/:owner/:repo/releases/:release_id": { - parameters: ReposGetReleaseEndpoint; - request: ReposGetReleaseRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#list-assets-for-a-release - */ - "GET /repos/:owner/:repo/releases/:release_id/assets": { - parameters: ReposListAssetsForReleaseEndpoint; - request: ReposListAssetsForReleaseRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#get-a-single-release-asset - */ - "GET /repos/:owner/:repo/releases/assets/:asset_id": { - parameters: ReposGetReleaseAssetEndpoint; - request: ReposGetReleaseAssetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#get-the-latest-release - */ - "GET /repos/:owner/:repo/releases/latest": { - parameters: ReposGetLatestReleaseEndpoint; - request: ReposGetLatestReleaseRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#get-a-release-by-tag-name - */ - "GET /repos/:owner/:repo/releases/tags/:tag": { - parameters: ReposGetReleaseByTagEndpoint; - request: ReposGetReleaseByTagRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/starring/#list-stargazers - */ - "GET /repos/:owner/:repo/stargazers": { - parameters: ActivityListStargazersForRepoEndpoint; - request: ActivityListStargazersForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-number-of-additions-and-deletions-per-week - */ - "GET /repos/:owner/:repo/stats/code_frequency": { - parameters: ReposGetCodeFrequencyStatsEndpoint; - request: ReposGetCodeFrequencyStatsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-last-year-of-commit-activity-data - */ - "GET /repos/:owner/:repo/stats/commit_activity": { - parameters: ReposGetCommitActivityStatsEndpoint; - request: ReposGetCommitActivityStatsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/statistics/#get-contributors-list-with-additions-deletions-and-commit-counts - */ - "GET /repos/:owner/:repo/stats/contributors": { - parameters: ReposGetContributorsStatsEndpoint; - request: ReposGetContributorsStatsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-weekly-commit-count-for-the-repository-owner-and-everyone-else - */ - "GET /repos/:owner/:repo/stats/participation": { - parameters: ReposGetParticipationStatsEndpoint; - request: ReposGetParticipationStatsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/statistics/#get-the-number-of-commits-per-hour-in-each-day - */ - "GET /repos/:owner/:repo/stats/punch_card": { - parameters: ReposGetPunchCardStatsEndpoint; - request: ReposGetPunchCardStatsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/watching/#list-watchers - */ - "GET /repos/:owner/:repo/subscribers": { - parameters: ActivityListWatchersForRepoEndpoint; - request: ActivityListWatchersForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/watching/#get-a-repository-subscription - */ - "GET /repos/:owner/:repo/subscription": { - parameters: ActivityGetRepoSubscriptionEndpoint; - request: ActivityGetRepoSubscriptionRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#list-tags - */ - "GET /repos/:owner/:repo/tags": { - parameters: ReposListTagsEndpoint; - request: ReposListTagsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#list-teams - */ - "GET /repos/:owner/:repo/teams": { - parameters: ReposListTeamsEndpoint; - request: ReposListTeamsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#get-all-repository-topics - */ - "GET /repos/:owner/:repo/topics": { - parameters: ReposGetAllTopicsEndpoint; - request: ReposGetAllTopicsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/traffic/#clones - */ - "GET /repos/:owner/:repo/traffic/clones": { - parameters: ReposGetClonesEndpoint; - request: ReposGetClonesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/traffic/#list-paths - */ - "GET /repos/:owner/:repo/traffic/popular/paths": { - parameters: ReposGetTopPathsEndpoint; - request: ReposGetTopPathsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/traffic/#list-referrers - */ - "GET /repos/:owner/:repo/traffic/popular/referrers": { - parameters: ReposGetTopReferrersEndpoint; - request: ReposGetTopReferrersRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/traffic/#views - */ - "GET /repos/:owner/:repo/traffic/views": { - parameters: ReposGetViewsEndpoint; - request: ReposGetViewsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#check-if-vulnerability-alerts-are-enabled-for-a-repository - */ - "GET /repos/:owner/:repo/vulnerability-alerts": { - parameters: ReposCheckVulnerabilityAlertsEndpoint; - request: ReposCheckVulnerabilityAlertsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#list-public-repositories - */ - "GET /repositories": { - parameters: ReposListPublicEndpoint; - request: ReposListPublicRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/scim/#get-a-list-of-provisioned-identities - */ - "GET /scim/v2/organizations/:org/Users": { - parameters: ScimListProvisionedIdentitiesEndpoint; - request: ScimListProvisionedIdentitiesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/scim/#get-provisioning-details-for-a-single-user - */ - "GET /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimGetProvisioningDetailsForUserEndpoint; - request: ScimGetProvisioningDetailsForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/#search-code - */ - "GET /search/code": { - parameters: SearchCodeEndpoint; - request: SearchCodeRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/#search-commits - */ - "GET /search/commits": { - parameters: SearchCommitsEndpoint; - request: SearchCommitsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/#search-issues-and-pull-requests - */ - "GET /search/issues": { - parameters: SearchIssuesAndPullRequestsEndpoint; - request: SearchIssuesAndPullRequestsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/#search-labels - */ - "GET /search/labels": { - parameters: SearchLabelsEndpoint; - request: SearchLabelsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/#search-repositories - */ - "GET /search/repositories": { - parameters: SearchReposEndpoint; - request: SearchReposRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/#search-topics - */ - "GET /search/topics": { - parameters: SearchTopicsEndpoint; - request: SearchTopicsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/search/#search-users - */ - "GET /search/users": { - parameters: SearchUsersEndpoint; - request: SearchUsersRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#get-team-legacy - */ - "GET /teams/:team_id": { - parameters: TeamsGetLegacyEndpoint; - request: TeamsGetLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussions/#list-discussions-legacy - */ - "GET /teams/:team_id/discussions": { - parameters: TeamsListDiscussionsLegacyEndpoint; - request: TeamsListDiscussionsLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussions/#get-a-single-discussion-legacy - */ - "GET /teams/:team_id/discussions/:discussion_number": { - parameters: TeamsGetDiscussionLegacyEndpoint; - request: TeamsGetDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussion_comments/#list-comments-legacy - */ - "GET /teams/:team_id/discussions/:discussion_number/comments": { - parameters: TeamsListDiscussionCommentsLegacyEndpoint; - request: TeamsListDiscussionCommentsLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussion_comments/#get-a-single-comment-legacy - */ - "GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsGetDiscussionCommentLegacyEndpoint; - request: TeamsGetDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy - */ - "GET /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsListForTeamDiscussionCommentLegacyEndpoint; - request: ReactionsListForTeamDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy - */ - "GET /teams/:team_id/discussions/:discussion_number/reactions": { - parameters: ReactionsListForTeamDiscussionLegacyEndpoint; - request: ReactionsListForTeamDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#list-pending-team-invitations-legacy - */ - "GET /teams/:team_id/invitations": { - parameters: TeamsListPendingInvitationsLegacyEndpoint; - request: TeamsListPendingInvitationsLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#list-team-members-legacy - */ - "GET /teams/:team_id/members": { - parameters: TeamsListMembersLegacyEndpoint; - request: TeamsListMembersLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#get-team-member-legacy - */ - "GET /teams/:team_id/members/:username": { - parameters: TeamsGetMemberLegacyEndpoint; - request: TeamsGetMemberLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#get-team-membership-legacy - */ - "GET /teams/:team_id/memberships/:username": { - parameters: TeamsGetMembershipLegacyEndpoint; - request: TeamsGetMembershipLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#list-team-projects-legacy - */ - "GET /teams/:team_id/projects": { - parameters: TeamsListProjectsLegacyEndpoint; - request: TeamsListProjectsLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#review-a-team-project-legacy - */ - "GET /teams/:team_id/projects/:project_id": { - parameters: TeamsReviewProjectLegacyEndpoint; - request: TeamsReviewProjectLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#list-team-repos-legacy - */ - "GET /teams/:team_id/repos": { - parameters: TeamsListReposLegacyEndpoint; - request: TeamsListReposLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#check-if-a-team-manages-a-repository-legacy - */ - "GET /teams/:team_id/repos/:owner/:repo": { - parameters: TeamsCheckManagesRepoLegacyEndpoint; - request: TeamsCheckManagesRepoLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/team_sync/#list-idp-groups-for-a-team-legacy - */ - "GET /teams/:team_id/team-sync/group-mappings": { - parameters: TeamsListIdPGroupsForLegacyEndpoint; - request: TeamsListIdPGroupsForLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#list-child-teams-legacy - */ - "GET /teams/:team_id/teams": { - parameters: TeamsListChildLegacyEndpoint; - request: TeamsListChildLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/#get-the-authenticated-user - */ - "GET /user": { - parameters: UsersGetAuthenticatedEndpoint; - request: UsersGetAuthenticatedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/users/#list-repositories-for-a-user-migration - */ - "GET /user/:migration_id/repositories": { - parameters: MigrationsListReposForUserEndpoint; - request: MigrationsListReposForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/blocking/#list-blocked-users - */ - "GET /user/blocks": { - parameters: UsersListBlockedEndpoint; - request: UsersListBlockedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/blocking/#check-whether-youve-blocked-a-user - */ - "GET /user/blocks/:username": { - parameters: UsersCheckBlockedEndpoint; - request: UsersCheckBlockedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/emails/#list-email-addresses-for-a-user - */ - "GET /user/emails": { - parameters: UsersListEmailsEndpoint; - request: UsersListEmailsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/followers/#list-followers-of-the-authenticated-user - */ - "GET /user/followers": { - parameters: UsersListFollowersForAuthenticatedUserEndpoint; - request: UsersListFollowersForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/followers/#list-users-followed-by-the-authenticated-user - */ - "GET /user/following": { - parameters: UsersListFollowedByAuthenticatedEndpoint; - request: UsersListFollowedByAuthenticatedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/followers/#check-if-you-are-following-a-user - */ - "GET /user/following/:username": { - parameters: UsersCheckFollowingEndpoint; - request: UsersCheckFollowingRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/gpg_keys/#list-your-gpg-keys - */ - "GET /user/gpg_keys": { - parameters: UsersListGpgKeysEndpoint; - request: UsersListGpgKeysRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/gpg_keys/#get-a-single-gpg-key - */ - "GET /user/gpg_keys/:gpg_key_id": { - parameters: UsersGetGpgKeyEndpoint; - request: UsersGetGpgKeyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/installations/#list-installations-for-a-user - */ - "GET /user/installations": { - parameters: AppsListInstallationsForAuthenticatedUserEndpoint; - request: AppsListInstallationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation - */ - "GET /user/installations/:installation_id/repositories": { - parameters: AppsListInstallationReposForAuthenticatedUserEndpoint; - request: AppsListInstallationReposForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/#list-user-account-issues-assigned-to-the-authenticated-user - */ - "GET /user/issues": { - parameters: IssuesListForAuthenticatedUserEndpoint; - request: IssuesListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/keys/#list-your-public-keys - */ - "GET /user/keys": { - parameters: UsersListPublicKeysEndpoint; - request: UsersListPublicKeysRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/keys/#get-a-single-public-key - */ - "GET /user/keys/:key_id": { - parameters: UsersGetPublicKeyEndpoint; - request: UsersGetPublicKeyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/marketplace/#list-subscriptions-for-the-authenticated-user - */ - "GET /user/marketplace_purchases": { - parameters: AppsListSubscriptionsForAuthenticatedUserEndpoint; - request: AppsListSubscriptionsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/marketplace/#list-subscriptions-for-the-authenticated-user-stubbed - */ - "GET /user/marketplace_purchases/stubbed": { - parameters: AppsListSubscriptionsForAuthenticatedUserStubbedEndpoint; - request: AppsListSubscriptionsForAuthenticatedUserStubbedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#list-your-organization-memberships - */ - "GET /user/memberships/orgs": { - parameters: OrgsListMembershipsEndpoint; - request: OrgsListMembershipsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#get-your-organization-membership - */ - "GET /user/memberships/orgs/:org": { - parameters: OrgsGetMembershipForAuthenticatedUserEndpoint; - request: OrgsGetMembershipForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/users/#list-user-migrations - */ - "GET /user/migrations": { - parameters: MigrationsListForAuthenticatedUserEndpoint; - request: MigrationsListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/users/#get-the-status-of-a-user-migration - */ - "GET /user/migrations/:migration_id": { - parameters: MigrationsGetStatusForAuthenticatedUserEndpoint; - request: MigrationsGetStatusForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/users/#download-a-user-migration-archive - */ - "GET /user/migrations/:migration_id/archive": { - parameters: MigrationsGetArchiveForAuthenticatedUserEndpoint; - request: MigrationsGetArchiveForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/#list-your-organizations - */ - "GET /user/orgs": { - parameters: OrgsListForAuthenticatedUserEndpoint; - request: OrgsListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/emails/#list-public-email-addresses-for-a-user - */ - "GET /user/public_emails": { - parameters: UsersListPublicEmailsEndpoint; - request: UsersListPublicEmailsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#list-repositories-for-the-authenticated-user - */ - "GET /user/repos": { - parameters: ReposListForAuthenticatedUserEndpoint; - request: ReposListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/invitations/#list-a-users-repository-invitations - */ - "GET /user/repository_invitations": { - parameters: ReposListInvitationsForAuthenticatedUserEndpoint; - request: ReposListInvitationsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-the-authenticated-user - */ - "GET /user/starred": { - parameters: ActivityListReposStarredByAuthenticatedUserEndpoint; - request: ActivityListReposStarredByAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/starring/#check-if-a-repository-is-starred-by-the-authenticated-user - */ - "GET /user/starred/:owner/:repo": { - parameters: ActivityCheckRepoIsStarredByAuthenticatedUserEndpoint; - request: ActivityCheckRepoIsStarredByAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-the-authenticated-user - */ - "GET /user/subscriptions": { - parameters: ActivityListWatchedReposForAuthenticatedUserEndpoint; - request: ActivityListWatchedReposForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/watching/#check-if-you-are-watching-a-repository-legacy - */ - "GET /user/subscriptions/:owner/:repo": { - parameters: ActivityCheckWatchingRepoLegacyEndpoint; - request: ActivityCheckWatchingRepoLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#list-user-teams - */ - "GET /user/teams": { - parameters: TeamsListForAuthenticatedUserEndpoint; - request: TeamsListForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/#get-all-users - */ - "GET /users": { - parameters: UsersListEndpoint; - request: UsersListRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/#get-a-single-user - */ - "GET /users/:username": { - parameters: UsersGetByUsernameEndpoint; - request: UsersGetByUsernameRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/events/#list-events-for-the-authenticated-user - */ - "GET /users/:username/events": { - parameters: ActivityListEventsForAuthenticatedUserEndpoint; - request: ActivityListEventsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/events/#list-organization-events-for-the-authenticated-user - */ - "GET /users/:username/events/orgs/:org": { - parameters: ActivityListOrgEventsForAuthenticatedUserEndpoint; - request: ActivityListOrgEventsForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/events/#list-public-events-for-a-user - */ - "GET /users/:username/events/public": { - parameters: ActivityListPublicEventsForUserEndpoint; - request: ActivityListPublicEventsForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/followers/#list-followers-of-a-user - */ - "GET /users/:username/followers": { - parameters: UsersListFollowersForUserEndpoint; - request: UsersListFollowersForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/followers/#list-users-followed-by-another-user - */ - "GET /users/:username/following": { - parameters: UsersListFollowingForUserEndpoint; - request: UsersListFollowingForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/followers/#check-if-one-user-follows-another - */ - "GET /users/:username/following/:target_user": { - parameters: UsersCheckFollowingForUserEndpoint; - request: UsersCheckFollowingForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#list-gists-for-a-user - */ - "GET /users/:username/gists": { - parameters: GistsListForUserEndpoint; - request: GistsListForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/gpg_keys/#list-gpg-keys-for-a-user - */ - "GET /users/:username/gpg_keys": { - parameters: UsersListGpgKeysForUserEndpoint; - request: UsersListGpgKeysForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/#get-contextual-information-about-a-user - */ - "GET /users/:username/hovercard": { - parameters: UsersGetContextForUserEndpoint; - request: UsersGetContextForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#get-a-user-installation - */ - "GET /users/:username/installation": { - parameters: AppsGetUserInstallationEndpoint; - request: AppsGetUserInstallationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/keys/#list-public-keys-for-a-user - */ - "GET /users/:username/keys": { - parameters: UsersListPublicKeysForUserEndpoint; - request: UsersListPublicKeysForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/#list-user-organizations - */ - "GET /users/:username/orgs": { - parameters: OrgsListForUserEndpoint; - request: OrgsListForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/#list-user-projects - */ - "GET /users/:username/projects": { - parameters: ProjectsListForUserEndpoint; - request: ProjectsListForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/events/#list-events-received-by-the-authenticated-user - */ - "GET /users/:username/received_events": { - parameters: ActivityListReceivedEventsForUserEndpoint; - request: ActivityListReceivedEventsForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/events/#list-public-events-received-by-a-user - */ - "GET /users/:username/received_events/public": { - parameters: ActivityListReceivedPublicEventsForUserEndpoint; - request: ActivityListReceivedPublicEventsForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#list-repositories-for-a-user - */ - "GET /users/:username/repos": { - parameters: ReposListForUserEndpoint; - request: ReposListForUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/starring/#list-repositories-starred-by-a-user - */ - "GET /users/:username/starred": { - parameters: ActivityListReposStarredByUserEndpoint; - request: ActivityListReposStarredByUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/watching/#list-repositories-watched-by-a-user - */ - "GET /users/:username/subscriptions": { - parameters: ActivityListReposWatchedByUserEndpoint; - request: ActivityListReposWatchedByUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/oauth_applications/#reset-a-token - */ - "PATCH /applications/:client_id/token": { - parameters: AppsResetTokenEndpoint; - request: AppsResetTokenRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/oauth_authorizations/#update-an-existing-authorization - */ - "PATCH /authorizations/:authorization_id": { - parameters: OauthAuthorizationsUpdateAuthorizationEndpoint; - request: OauthAuthorizationsUpdateAuthorizationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#update-a-gist - */ - "PATCH /gists/:gist_id": { - parameters: GistsUpdateEndpoint; - request: GistsUpdateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/comments/#edit-a-comment - */ - "PATCH /gists/:gist_id/comments/:comment_id": { - parameters: GistsUpdateCommentEndpoint; - request: GistsUpdateCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read - */ - "PATCH /notifications/threads/:thread_id": { - parameters: ActivityMarkThreadAsReadEndpoint; - request: ActivityMarkThreadAsReadRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/#edit-an-organization - */ - "PATCH /orgs/:org": { - parameters: OrgsUpdateEndpoint; - request: OrgsUpdateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/hooks/#edit-a-hook - */ - "PATCH /orgs/:org/hooks/:hook_id": { - parameters: OrgsUpdateHookEndpoint; - request: OrgsUpdateHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#edit-team - */ - "PATCH /orgs/:org/teams/:team_slug": { - parameters: TeamsUpdateInOrgEndpoint; - request: TeamsUpdateInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussions/#edit-a-discussion - */ - "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number": { - parameters: TeamsUpdateDiscussionInOrgEndpoint; - request: TeamsUpdateDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment - */ - "PATCH /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsUpdateDiscussionCommentInOrgEndpoint; - request: TeamsUpdateDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections - */ - "PATCH /orgs/:org/teams/:team_slug/team-sync/group-mappings": { - parameters: TeamsCreateOrUpdateIdPGroupConnectionsInOrgEndpoint; - request: TeamsCreateOrUpdateIdPGroupConnectionsInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/#update-a-project - */ - "PATCH /projects/:project_id": { - parameters: ProjectsUpdateEndpoint; - request: ProjectsUpdateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/columns/#update-a-project-column - */ - "PATCH /projects/columns/:column_id": { - parameters: ProjectsUpdateColumnEndpoint; - request: ProjectsUpdateColumnRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/cards/#update-a-project-card - */ - "PATCH /projects/columns/cards/:card_id": { - parameters: ProjectsUpdateCardEndpoint; - request: ProjectsUpdateCardRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#update-a-repository - */ - "PATCH /repos/:owner/:repo": { - parameters: ReposUpdateEndpoint; - request: ReposUpdateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#update-pull-request-review-enforcement-of-protected-branch - */ - "PATCH /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": { - parameters: ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint; - request: ReposUpdateProtectedBranchPullRequestReviewEnforcementRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#update-required-status-checks-of-protected-branch - */ - "PATCH /repos/:owner/:repo/branches/:branch/protection/required_status_checks": { - parameters: ReposUpdateProtectedBranchRequiredStatusChecksEndpoint; - request: ReposUpdateProtectedBranchRequiredStatusChecksRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/runs/#update-a-check-run - */ - "PATCH /repos/:owner/:repo/check-runs/:check_run_id": { - parameters: ChecksUpdateEndpoint; - request: ChecksUpdateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/suites/#update-repository-preferences-for-check-suites - */ - "PATCH /repos/:owner/:repo/check-suites/preferences": { - parameters: ChecksSetSuitesPreferencesEndpoint; - request: ChecksSetSuitesPreferencesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/comments/#update-a-commit-comment - */ - "PATCH /repos/:owner/:repo/comments/:comment_id": { - parameters: ReposUpdateCommitCommentEndpoint; - request: ReposUpdateCommitCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/refs/#update-a-reference - */ - "PATCH /repos/:owner/:repo/git/refs/:ref": { - parameters: GitUpdateRefEndpoint; - request: GitUpdateRefRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/hooks/#edit-a-hook - */ - "PATCH /repos/:owner/:repo/hooks/:hook_id": { - parameters: ReposUpdateHookEndpoint; - request: ReposUpdateHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/source_imports/#update-existing-import - */ - "PATCH /repos/:owner/:repo/import": { - parameters: MigrationsUpdateImportEndpoint; - request: MigrationsUpdateImportRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/source_imports/#map-a-commit-author - */ - "PATCH /repos/:owner/:repo/import/authors/:author_id": { - parameters: MigrationsMapCommitAuthorEndpoint; - request: MigrationsMapCommitAuthorRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/source_imports/#set-git-lfs-preference - */ - "PATCH /repos/:owner/:repo/import/lfs": { - parameters: MigrationsSetLfsPreferenceEndpoint; - request: MigrationsSetLfsPreferenceRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/invitations/#update-a-repository-invitation - */ - "PATCH /repos/:owner/:repo/invitations/:invitation_id": { - parameters: ReposUpdateInvitationEndpoint; - request: ReposUpdateInvitationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/#update-an-issue - */ - "PATCH /repos/:owner/:repo/issues/:issue_number": { - parameters: IssuesUpdateEndpoint; - request: IssuesUpdateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/comments/#edit-a-comment - */ - "PATCH /repos/:owner/:repo/issues/comments/:comment_id": { - parameters: IssuesUpdateCommentEndpoint; - request: IssuesUpdateCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#update-a-label - */ - "PATCH /repos/:owner/:repo/labels/:name": { - parameters: IssuesUpdateLabelEndpoint; - request: IssuesUpdateLabelRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/milestones/#update-a-milestone - */ - "PATCH /repos/:owner/:repo/milestones/:milestone_number": { - parameters: IssuesUpdateMilestoneEndpoint; - request: IssuesUpdateMilestoneRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/#update-a-pull-request - */ - "PATCH /repos/:owner/:repo/pulls/:pull_number": { - parameters: PullsUpdateEndpoint; - request: PullsUpdateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/comments/#edit-a-comment - */ - "PATCH /repos/:owner/:repo/pulls/comments/:comment_id": { - parameters: PullsUpdateCommentEndpoint; - request: PullsUpdateCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#edit-a-release - */ - "PATCH /repos/:owner/:repo/releases/:release_id": { - parameters: ReposUpdateReleaseEndpoint; - request: ReposUpdateReleaseRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#edit-a-release-asset - */ - "PATCH /repos/:owner/:repo/releases/assets/:asset_id": { - parameters: ReposUpdateReleaseAssetEndpoint; - request: ReposUpdateReleaseAssetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/scim/#update-a-user-attribute - */ - "PATCH /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimUpdateUserAttributeEndpoint; - request: ScimUpdateUserAttributeRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#edit-team-legacy - */ - "PATCH /teams/:team_id": { - parameters: TeamsUpdateLegacyEndpoint; - request: TeamsUpdateLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussions/#edit-a-discussion-legacy - */ - "PATCH /teams/:team_id/discussions/:discussion_number": { - parameters: TeamsUpdateDiscussionLegacyEndpoint; - request: TeamsUpdateDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussion_comments/#edit-a-comment-legacy - */ - "PATCH /teams/:team_id/discussions/:discussion_number/comments/:comment_number": { - parameters: TeamsUpdateDiscussionCommentLegacyEndpoint; - request: TeamsUpdateDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/team_sync/#create-or-update-idp-group-connections-legacy - */ - "PATCH /teams/:team_id/team-sync/group-mappings": { - parameters: TeamsCreateOrUpdateIdPGroupConnectionsLegacyEndpoint; - request: TeamsCreateOrUpdateIdPGroupConnectionsLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/#update-the-authenticated-user - */ - "PATCH /user": { - parameters: UsersUpdateAuthenticatedEndpoint; - request: UsersUpdateAuthenticatedRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/emails/#toggle-primary-email-visibility - */ - "PATCH /user/email/visibility": { - parameters: UsersTogglePrimaryEmailVisibilityEndpoint; - request: UsersTogglePrimaryEmailVisibilityRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#edit-your-organization-membership - */ - "PATCH /user/memberships/orgs/:org": { - parameters: OrgsUpdateMembershipEndpoint; - request: OrgsUpdateMembershipRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation - */ - "PATCH /user/repository_invitations/:invitation_id": { - parameters: ReposAcceptInvitationEndpoint; - request: ReposAcceptInvitationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#create-a-github-app-from-a-manifest - */ - "POST /app-manifests/:code/conversions": { - parameters: AppsCreateFromManifestEndpoint; - request: AppsCreateFromManifestRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#create-a-new-installation-token - */ - "POST /app/installations/:installation_id/access_tokens": { - parameters: AppsCreateInstallationTokenEndpoint; - request: AppsCreateInstallationTokenRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/oauth_applications/#check-a-token - */ - "POST /applications/:client_id/token": { - parameters: AppsCheckTokenEndpoint; - request: AppsCheckTokenRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/oauth_applications/#reset-an-authorization - */ - "POST /applications/:client_id/tokens/:access_token": { - parameters: AppsResetAuthorizationEndpoint; - request: AppsResetAuthorizationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization - */ - "POST /authorizations": { - parameters: OauthAuthorizationsCreateAuthorizationEndpoint; - request: OauthAuthorizationsCreateAuthorizationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/installations/#create-a-content-attachment - */ - "POST /content_references/:content_reference_id/attachments": { - parameters: AppsCreateContentAttachmentEndpoint; - request: AppsCreateContentAttachmentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#create-a-gist - */ - "POST /gists": { - parameters: GistsCreateEndpoint; - request: GistsCreateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/comments/#create-a-comment - */ - "POST /gists/:gist_id/comments": { - parameters: GistsCreateCommentEndpoint; - request: GistsCreateCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#fork-a-gist - */ - "POST /gists/:gist_id/forks": { - parameters: GistsForkEndpoint; - request: GistsForkRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/markdown/#render-an-arbitrary-markdown-document - */ - "POST /markdown": { - parameters: MarkdownRenderEndpoint; - request: MarkdownRenderRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode - */ - "POST /markdown/raw": { - parameters: MarkdownRenderRawEndpoint; - request: MarkdownRenderRawRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-an-organization - */ - "POST /orgs/:org/actions/runners/registration-token": { - parameters: ActionsCreateRegistrationTokenForOrgEndpoint; - request: ActionsCreateRegistrationTokenForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-an-organization - */ - "POST /orgs/:org/actions/runners/remove-token": { - parameters: ActionsCreateRemoveTokenForOrgEndpoint; - request: ActionsCreateRemoveTokenForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/hooks/#create-a-hook - */ - "POST /orgs/:org/hooks": { - parameters: OrgsCreateHookEndpoint; - request: OrgsCreateHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/hooks/#ping-a-hook - */ - "POST /orgs/:org/hooks/:hook_id/pings": { - parameters: OrgsPingHookEndpoint; - request: OrgsPingHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#create-organization-invitation - */ - "POST /orgs/:org/invitations": { - parameters: OrgsCreateInvitationEndpoint; - request: OrgsCreateInvitationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/orgs/#start-an-organization-migration - */ - "POST /orgs/:org/migrations": { - parameters: MigrationsStartForOrgEndpoint; - request: MigrationsStartForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/#create-an-organization-project - */ - "POST /orgs/:org/projects": { - parameters: ProjectsCreateForOrgEndpoint; - request: ProjectsCreateForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#create-an-organization-repository - */ - "POST /orgs/:org/repos": { - parameters: ReposCreateInOrgEndpoint; - request: ReposCreateInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#create-team - */ - "POST /orgs/:org/teams": { - parameters: TeamsCreateEndpoint; - request: TeamsCreateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussions/#create-a-discussion - */ - "POST /orgs/:org/teams/:team_slug/discussions": { - parameters: TeamsCreateDiscussionInOrgEndpoint; - request: TeamsCreateDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment - */ - "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments": { - parameters: TeamsCreateDiscussionCommentInOrgEndpoint; - request: TeamsCreateDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment - */ - "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionCommentInOrgEndpoint; - request: ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion - */ - "POST /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionInOrgEndpoint; - request: ReactionsCreateForTeamDiscussionInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/columns/#create-a-project-column - */ - "POST /projects/:project_id/columns": { - parameters: ProjectsCreateColumnEndpoint; - request: ProjectsCreateColumnRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/cards/#create-a-project-card - */ - "POST /projects/columns/:column_id/cards": { - parameters: ProjectsCreateCardEndpoint; - request: ProjectsCreateCardRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/columns/#move-a-project-column - */ - "POST /projects/columns/:column_id/moves": { - parameters: ProjectsMoveColumnEndpoint; - request: ProjectsMoveColumnRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/cards/#move-a-project-card - */ - "POST /projects/columns/cards/:card_id/moves": { - parameters: ProjectsMoveCardEndpoint; - request: ProjectsMoveCardRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-registration-token-for-a-repository - */ - "POST /repos/:owner/:repo/actions/runners/registration-token": { - parameters: ActionsCreateRegistrationTokenForRepoEndpoint; - request: ActionsCreateRegistrationTokenForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/self-hosted-runners/#create-a-remove-token-for-a-repository - */ - "POST /repos/:owner/:repo/actions/runners/remove-token": { - parameters: ActionsCreateRemoveTokenForRepoEndpoint; - request: ActionsCreateRemoveTokenForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflow-runs/#cancel-a-workflow-run - */ - "POST /repos/:owner/:repo/actions/runs/:run_id/cancel": { - parameters: ActionsCancelWorkflowRunEndpoint; - request: ActionsCancelWorkflowRunRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/workflow-runs/#re-run-a-workflow - */ - "POST /repos/:owner/:repo/actions/runs/:run_id/rerun": { - parameters: ActionsReRunWorkflowEndpoint; - request: ActionsReRunWorkflowRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#add-admin-enforcement-of-protected-branch - */ - "POST /repos/:owner/:repo/branches/:branch/protection/enforce_admins": { - parameters: ReposAddProtectedBranchAdminEnforcementEndpoint; - request: ReposAddProtectedBranchAdminEnforcementRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#add-required-signatures-of-protected-branch - */ - "POST /repos/:owner/:repo/branches/:branch/protection/required_signatures": { - parameters: ReposAddProtectedBranchRequiredSignaturesEndpoint; - request: ReposAddProtectedBranchRequiredSignaturesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#add-required-status-checks-contexts-of-protected-branch - */ - "POST /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposAddProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#add-app-restrictions-of-protected-branch - */ - "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposAddProtectedBranchAppRestrictionsEndpoint; - request: ReposAddProtectedBranchAppRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#add-team-restrictions-of-protected-branch - */ - "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposAddProtectedBranchTeamRestrictionsEndpoint; - request: ReposAddProtectedBranchTeamRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#add-user-restrictions-of-protected-branch - */ - "POST /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposAddProtectedBranchUserRestrictionsEndpoint; - request: ReposAddProtectedBranchUserRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/runs/#create-a-check-run - */ - "POST /repos/:owner/:repo/check-runs": { - parameters: ChecksCreateEndpoint; - request: ChecksCreateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/suites/#create-a-check-suite - */ - "POST /repos/:owner/:repo/check-suites": { - parameters: ChecksCreateSuiteEndpoint; - request: ChecksCreateSuiteRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/checks/suites/#rerequest-a-check-suite - */ - "POST /repos/:owner/:repo/check-suites/:check_suite_id/rerequest": { - parameters: ChecksRerequestSuiteEndpoint; - request: ChecksRerequestSuiteRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-commit-comment - */ - "POST /repos/:owner/:repo/comments/:comment_id/reactions": { - parameters: ReactionsCreateForCommitCommentEndpoint; - request: ReactionsCreateForCommitCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/comments/#create-a-commit-comment - */ - "POST /repos/:owner/:repo/commits/:commit_sha/comments": { - parameters: ReposCreateCommitCommentEndpoint; - request: ReposCreateCommitCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/deployments/#create-a-deployment - */ - "POST /repos/:owner/:repo/deployments": { - parameters: ReposCreateDeploymentEndpoint; - request: ReposCreateDeploymentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/deployments/#create-a-deployment-status - */ - "POST /repos/:owner/:repo/deployments/:deployment_id/statuses": { - parameters: ReposCreateDeploymentStatusEndpoint; - request: ReposCreateDeploymentStatusRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#create-a-repository-dispatch-event - */ - "POST /repos/:owner/:repo/dispatches": { - parameters: ReposCreateDispatchEventEndpoint; - request: ReposCreateDispatchEventRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/forks/#create-a-fork - */ - "POST /repos/:owner/:repo/forks": { - parameters: ReposCreateForkEndpoint; - request: ReposCreateForkRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/blobs/#create-a-blob - */ - "POST /repos/:owner/:repo/git/blobs": { - parameters: GitCreateBlobEndpoint; - request: GitCreateBlobRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/commits/#create-a-commit - */ - "POST /repos/:owner/:repo/git/commits": { - parameters: GitCreateCommitEndpoint; - request: GitCreateCommitRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/refs/#create-a-reference - */ - "POST /repos/:owner/:repo/git/refs": { - parameters: GitCreateRefEndpoint; - request: GitCreateRefRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/tags/#create-a-tag-object - */ - "POST /repos/:owner/:repo/git/tags": { - parameters: GitCreateTagEndpoint; - request: GitCreateTagRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/git/trees/#create-a-tree - */ - "POST /repos/:owner/:repo/git/trees": { - parameters: GitCreateTreeEndpoint; - request: GitCreateTreeRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/hooks/#create-a-hook - */ - "POST /repos/:owner/:repo/hooks": { - parameters: ReposCreateHookEndpoint; - request: ReposCreateHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/hooks/#ping-a-hook - */ - "POST /repos/:owner/:repo/hooks/:hook_id/pings": { - parameters: ReposPingHookEndpoint; - request: ReposPingHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/hooks/#test-a-push-hook - */ - "POST /repos/:owner/:repo/hooks/:hook_id/tests": { - parameters: ReposTestPushHookEndpoint; - request: ReposTestPushHookRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/#create-an-issue - */ - "POST /repos/:owner/:repo/issues": { - parameters: IssuesCreateEndpoint; - request: IssuesCreateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/assignees/#add-assignees-to-an-issue - */ - "POST /repos/:owner/:repo/issues/:issue_number/assignees": { - parameters: IssuesAddAssigneesEndpoint; - request: IssuesAddAssigneesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/comments/#create-a-comment - */ - "POST /repos/:owner/:repo/issues/:issue_number/comments": { - parameters: IssuesCreateCommentEndpoint; - request: IssuesCreateCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#add-labels-to-an-issue - */ - "POST /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesAddLabelsEndpoint; - request: IssuesAddLabelsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-an-issue - */ - "POST /repos/:owner/:repo/issues/:issue_number/reactions": { - parameters: ReactionsCreateForIssueEndpoint; - request: ReactionsCreateForIssueRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-an-issue-comment - */ - "POST /repos/:owner/:repo/issues/comments/:comment_id/reactions": { - parameters: ReactionsCreateForIssueCommentEndpoint; - request: ReactionsCreateForIssueCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/keys/#add-a-new-deploy-key - */ - "POST /repos/:owner/:repo/keys": { - parameters: ReposAddDeployKeyEndpoint; - request: ReposAddDeployKeyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#create-a-label - */ - "POST /repos/:owner/:repo/labels": { - parameters: IssuesCreateLabelEndpoint; - request: IssuesCreateLabelRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/merging/#perform-a-merge - */ - "POST /repos/:owner/:repo/merges": { - parameters: ReposMergeEndpoint; - request: ReposMergeRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/milestones/#create-a-milestone - */ - "POST /repos/:owner/:repo/milestones": { - parameters: IssuesCreateMilestoneEndpoint; - request: IssuesCreateMilestoneRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/pages/#enable-a-pages-site - */ - "POST /repos/:owner/:repo/pages": { - parameters: ReposEnablePagesSiteEndpoint; - request: ReposEnablePagesSiteRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/pages/#request-a-page-build - */ - "POST /repos/:owner/:repo/pages/builds": { - parameters: ReposRequestPageBuildEndpoint; - request: ReposRequestPageBuildRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/#create-a-repository-project - */ - "POST /repos/:owner/:repo/projects": { - parameters: ProjectsCreateForRepoEndpoint; - request: ProjectsCreateForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/#create-a-pull-request - */ - "POST /repos/:owner/:repo/pulls": { - parameters: PullsCreateEndpoint; - request: PullsCreateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/comments/#create-a-comment - */ - "POST /repos/:owner/:repo/pulls/:pull_number/comments": { - parameters: PullsCreateCommentEndpoint; - request: PullsCreateCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/comments/#create-a-review-comment-reply - */ - "POST /repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies": { - parameters: PullsCreateReviewCommentReplyEndpoint; - request: PullsCreateReviewCommentReplyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/review_requests/#create-a-review-request - */ - "POST /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": { - parameters: PullsCreateReviewRequestEndpoint; - request: PullsCreateReviewRequestRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/reviews/#create-a-pull-request-review - */ - "POST /repos/:owner/:repo/pulls/:pull_number/reviews": { - parameters: PullsCreateReviewEndpoint; - request: PullsCreateReviewRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review - */ - "POST /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events": { - parameters: PullsSubmitReviewEndpoint; - request: PullsSubmitReviewRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-pull-request-review-comment - */ - "POST /repos/:owner/:repo/pulls/comments/:comment_id/reactions": { - parameters: ReactionsCreateForPullRequestReviewCommentEndpoint; - request: ReactionsCreateForPullRequestReviewCommentRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#create-a-release - */ - "POST /repos/:owner/:repo/releases": { - parameters: ReposCreateReleaseEndpoint; - request: ReposCreateReleaseRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/releases/#upload-a-release-asset - */ - "POST /repos/:owner/:repo/releases/:release_id/assets{?name,label}": { - parameters: ReposUploadReleaseAssetEndpoint; - request: ReposUploadReleaseAssetRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/statuses/#create-a-status - */ - "POST /repos/:owner/:repo/statuses/:sha": { - parameters: ReposCreateStatusEndpoint; - request: ReposCreateStatusRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#transfer-a-repository - */ - "POST /repos/:owner/:repo/transfer": { - parameters: ReposTransferEndpoint; - request: ReposTransferRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#create-a-repository-using-a-template - */ - "POST /repos/:template_owner/:template_repo/generate": { - parameters: ReposCreateUsingTemplateEndpoint; - request: ReposCreateUsingTemplateRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/scim/#provision-and-invite-users - */ - "POST /scim/v2/organizations/:org/Users": { - parameters: ScimProvisionAndInviteUsersEndpoint; - request: ScimProvisionAndInviteUsersRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussions/#create-a-discussion-legacy - */ - "POST /teams/:team_id/discussions": { - parameters: TeamsCreateDiscussionLegacyEndpoint; - request: TeamsCreateDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/discussion_comments/#create-a-comment-legacy - */ - "POST /teams/:team_id/discussions/:discussion_number/comments": { - parameters: TeamsCreateDiscussionCommentLegacyEndpoint; - request: TeamsCreateDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy - */ - "POST /teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionCommentLegacyEndpoint; - request: ReactionsCreateForTeamDiscussionCommentLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy - */ - "POST /teams/:team_id/discussions/:discussion_number/reactions": { - parameters: ReactionsCreateForTeamDiscussionLegacyEndpoint; - request: ReactionsCreateForTeamDiscussionLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/emails/#add-email-addresses - */ - "POST /user/emails": { - parameters: UsersAddEmailsEndpoint; - request: UsersAddEmailsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/gpg_keys/#create-a-gpg-key - */ - "POST /user/gpg_keys": { - parameters: UsersCreateGpgKeyEndpoint; - request: UsersCreateGpgKeyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/keys/#create-a-public-key - */ - "POST /user/keys": { - parameters: UsersCreatePublicKeyEndpoint; - request: UsersCreatePublicKeyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/users/#start-a-user-migration - */ - "POST /user/migrations": { - parameters: MigrationsStartForAuthenticatedUserEndpoint; - request: MigrationsStartForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/#create-a-user-project - */ - "POST /user/projects": { - parameters: ProjectsCreateForAuthenticatedUserEndpoint; - request: ProjectsCreateForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#create-a-repository-for-the-authenticated-user - */ - "POST /user/repos": { - parameters: ReposCreateForAuthenticatedUserEndpoint; - request: ReposCreateForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/#suspend-an-installation - */ - "PUT /app/installations/:installation_id/suspended": { - parameters: AppsSuspendInstallationEndpoint; - request: AppsSuspendInstallationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app - */ - "PUT /authorizations/clients/:client_id": { - parameters: OauthAuthorizationsGetOrCreateAuthorizationForAppEndpoint; - request: OauthAuthorizationsGetOrCreateAuthorizationForAppRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint - */ - "PUT /authorizations/clients/:client_id/:fingerprint": { - parameters: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintEndpoint; - request: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/gists/#star-a-gist - */ - "PUT /gists/:gist_id/star": { - parameters: GistsStarEndpoint; - request: GistsStarRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read - */ - "PUT /notifications": { - parameters: ActivityMarkNotificationsAsReadEndpoint; - request: ActivityMarkNotificationsAsReadRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/notifications/#set-a-thread-subscription - */ - "PUT /notifications/threads/:thread_id/subscription": { - parameters: ActivitySetThreadSubscriptionEndpoint; - request: ActivitySetThreadSubscriptionRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/blocking/#block-a-user - */ - "PUT /orgs/:org/blocks/:username": { - parameters: OrgsBlockUserEndpoint; - request: OrgsBlockUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/interactions/orgs/#add-or-update-interaction-restrictions-for-an-organization - */ - "PUT /orgs/:org/interaction-limits": { - parameters: InteractionsAddOrUpdateRestrictionsForOrgEndpoint; - request: InteractionsAddOrUpdateRestrictionsForOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#add-or-update-organization-membership - */ - "PUT /orgs/:org/memberships/:username": { - parameters: OrgsAddOrUpdateMembershipEndpoint; - request: OrgsAddOrUpdateMembershipRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/outside_collaborators/#convert-member-to-outside-collaborator - */ - "PUT /orgs/:org/outside_collaborators/:username": { - parameters: OrgsConvertMemberToOutsideCollaboratorEndpoint; - request: OrgsConvertMemberToOutsideCollaboratorRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/orgs/members/#publicize-a-users-membership - */ - "PUT /orgs/:org/public_members/:username": { - parameters: OrgsPublicizeMembershipEndpoint; - request: OrgsPublicizeMembershipRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#add-or-update-team-membership - */ - "PUT /orgs/:org/teams/:team_slug/memberships/:username": { - parameters: TeamsAddOrUpdateMembershipInOrgEndpoint; - request: TeamsAddOrUpdateMembershipInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-project - */ - "PUT /orgs/:org/teams/:team_slug/projects/:project_id": { - parameters: TeamsAddOrUpdateProjectInOrgEndpoint; - request: TeamsAddOrUpdateProjectInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-repository - */ - "PUT /orgs/:org/teams/:team_slug/repos/:owner/:repo": { - parameters: TeamsAddOrUpdateRepoInOrgEndpoint; - request: TeamsAddOrUpdateRepoInOrgRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator - */ - "PUT /projects/:project_id/collaborators/:username": { - parameters: ProjectsAddCollaboratorEndpoint; - request: ProjectsAddCollaboratorRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/actions/secrets/#create-or-update-a-secret-for-a-repository - */ - "PUT /repos/:owner/:repo/actions/secrets/:name": { - parameters: ActionsCreateOrUpdateSecretForRepoEndpoint; - request: ActionsCreateOrUpdateSecretForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#enable-automated-security-fixes - */ - "PUT /repos/:owner/:repo/automated-security-fixes": { - parameters: ReposEnableAutomatedSecurityFixesEndpoint; - request: ReposEnableAutomatedSecurityFixesRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#update-branch-protection - */ - "PUT /repos/:owner/:repo/branches/:branch/protection": { - parameters: ReposUpdateBranchProtectionEndpoint; - request: ReposUpdateBranchProtectionRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#replace-required-status-checks-contexts-of-protected-branch - */ - "PUT /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": { - parameters: ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint; - request: ReposReplaceProtectedBranchRequiredStatusChecksContextsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#replace-app-restrictions-of-protected-branch - */ - "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": { - parameters: ReposReplaceProtectedBranchAppRestrictionsEndpoint; - request: ReposReplaceProtectedBranchAppRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#replace-team-restrictions-of-protected-branch - */ - "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": { - parameters: ReposReplaceProtectedBranchTeamRestrictionsEndpoint; - request: ReposReplaceProtectedBranchTeamRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/branches/#replace-user-restrictions-of-protected-branch - */ - "PUT /repos/:owner/:repo/branches/:branch/protection/restrictions/users": { - parameters: ReposReplaceProtectedBranchUserRestrictionsEndpoint; - request: ReposReplaceProtectedBranchUserRestrictionsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator - */ - "PUT /repos/:owner/:repo/collaborators/:username": { - parameters: ReposAddCollaboratorEndpoint; - request: ReposAddCollaboratorRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/contents/#create-or-update-a-file - */ - "PUT /repos/:owner/:repo/contents/:path": { - parameters: ReposCreateOrUpdateFileEndpoint; - request: ReposCreateOrUpdateFileRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/migrations/source_imports/#start-an-import - */ - "PUT /repos/:owner/:repo/import": { - parameters: MigrationsStartImportEndpoint; - request: MigrationsStartImportRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/interactions/repos/#add-or-update-interaction-restrictions-for-a-repository - */ - "PUT /repos/:owner/:repo/interaction-limits": { - parameters: InteractionsAddOrUpdateRestrictionsForRepoEndpoint; - request: InteractionsAddOrUpdateRestrictionsForRepoRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/labels/#replace-all-labels-for-an-issue - */ - "PUT /repos/:owner/:repo/issues/:issue_number/labels": { - parameters: IssuesReplaceAllLabelsEndpoint; - request: IssuesReplaceAllLabelsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/issues/#lock-an-issue - */ - "PUT /repos/:owner/:repo/issues/:issue_number/lock": { - parameters: IssuesLockEndpoint; - request: IssuesLockRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/notifications/#mark-repository-notifications-as-read - */ - "PUT /repos/:owner/:repo/notifications": { - parameters: ActivityMarkRepoNotificationsAsReadEndpoint; - request: ActivityMarkRepoNotificationsAsReadRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/pages/#update-information-about-a-pages-site - */ - "PUT /repos/:owner/:repo/pages": { - parameters: ReposUpdateInformationAboutPagesSiteEndpoint; - request: ReposUpdateInformationAboutPagesSiteRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button - */ - "PUT /repos/:owner/:repo/pulls/:pull_number/merge": { - parameters: PullsMergeEndpoint; - request: PullsMergeRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/reviews/#update-a-pull-request-review - */ - "PUT /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": { - parameters: PullsUpdateReviewEndpoint; - request: PullsUpdateReviewRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/reviews/#dismiss-a-pull-request-review - */ - "PUT /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals": { - parameters: PullsDismissReviewEndpoint; - request: PullsDismissReviewRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/pulls/#update-a-pull-request-branch - */ - "PUT /repos/:owner/:repo/pulls/:pull_number/update-branch": { - parameters: PullsUpdateBranchEndpoint; - request: PullsUpdateBranchRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/watching/#set-a-repository-subscription - */ - "PUT /repos/:owner/:repo/subscription": { - parameters: ActivitySetRepoSubscriptionEndpoint; - request: ActivitySetRepoSubscriptionRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#replace-all-repository-topics - */ - "PUT /repos/:owner/:repo/topics": { - parameters: ReposReplaceAllTopicsEndpoint; - request: ReposReplaceAllTopicsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/repos/#enable-vulnerability-alerts - */ - "PUT /repos/:owner/:repo/vulnerability-alerts": { - parameters: ReposEnableVulnerabilityAlertsEndpoint; - request: ReposEnableVulnerabilityAlertsRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/scim/#replace-a-provisioned-users-information - */ - "PUT /scim/v2/organizations/:org/Users/:scim_user_id": { - parameters: ScimReplaceProvisionedUserInformationEndpoint; - request: ScimReplaceProvisionedUserInformationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#add-team-member-legacy - */ - "PUT /teams/:team_id/members/:username": { - parameters: TeamsAddMemberLegacyEndpoint; - request: TeamsAddMemberLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/members/#add-or-update-team-membership-legacy - */ - "PUT /teams/:team_id/memberships/:username": { - parameters: TeamsAddOrUpdateMembershipLegacyEndpoint; - request: TeamsAddOrUpdateMembershipLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy - */ - "PUT /teams/:team_id/projects/:project_id": { - parameters: TeamsAddOrUpdateProjectLegacyEndpoint; - request: TeamsAddOrUpdateProjectLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/teams/#add-or-update-team-repository-legacy - */ - "PUT /teams/:team_id/repos/:owner/:repo": { - parameters: TeamsAddOrUpdateRepoLegacyEndpoint; - request: TeamsAddOrUpdateRepoLegacyRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/blocking/#block-a-user - */ - "PUT /user/blocks/:username": { - parameters: UsersBlockEndpoint; - request: UsersBlockRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/users/followers/#follow-a-user - */ - "PUT /user/following/:username": { - parameters: UsersFollowEndpoint; - request: UsersFollowRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/apps/installations/#add-repository-to-installation - */ - "PUT /user/installations/:installation_id/repositories/:repository_id": { - parameters: AppsAddRepoToInstallationEndpoint; - request: AppsAddRepoToInstallationRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/starring/#star-a-repository-for-the-authenticated-user - */ - "PUT /user/starred/:owner/:repo": { - parameters: ActivityStarRepoForAuthenticatedUserEndpoint; - request: ActivityStarRepoForAuthenticatedUserRequestOptions; - response: OctokitResponse; - }; - /** - * @see https://developer.github.com/v3/activity/watching/#watch-a-repository-legacy - */ - "PUT /user/subscriptions/:owner/:repo": { - parameters: ActivityWatchRepoLegacyEndpoint; - request: ActivityWatchRepoLegacyRequestOptions; - response: OctokitResponse; - }; -} -declare type AppsGetAuthenticatedEndpoint = {} & RequiredPreview<"machine-man">; -declare type AppsGetAuthenticatedRequestOptions = { - method: "GET"; - url: "/app"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetAuthenticatedResponseDataPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsGetAuthenticatedResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsGetAuthenticatedResponseData = { - id: number; - slug: string; - node_id: string; - owner: AppsGetAuthenticatedResponseDataOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: AppsGetAuthenticatedResponseDataPermissions; - events: Array; - installations_count: number; -}; -declare type AppsCreateFromManifestEndpoint = { - /** - * code parameter - */ - code: string; -}; -declare type AppsCreateFromManifestRequestOptions = { - method: "POST"; - url: "/app-manifests/:code/conversions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateFromManifestResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCreateFromManifestResponseData = { - id: number; - node_id: string; - owner: AppsCreateFromManifestResponseDataOwner; - name: string; - description: null; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - client_id: string; - client_secret: string; - webhook_secret: string; - pem: string; -}; -declare type AppsListInstallationsEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListInstallationsRequestOptions = { - method: "GET"; - url: "/app/installations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsListInstallationsResponseDataItemAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsListInstallationsResponseDataItem = { - id: number; - account: AppsListInstallationsResponseDataItemAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsListInstallationsResponseDataItemPermissions; - events: Array; - single_file_name: string; - repository_selection: string; -}; -declare type AppsListInstallationsResponseData = Array; -declare type AppsGetInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsGetInstallationRequestOptions = { - method: "GET"; - url: "/app/installations/:installation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetInstallationResponseDataPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsGetInstallationResponseDataAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsGetInstallationResponseData = { - id: number; - account: AppsGetInstallationResponseDataAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetInstallationResponseDataPermissions; - events: Array; - single_file_name: string; - repository_selection: string; -}; -declare type AppsDeleteInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsDeleteInstallationRequestOptions = { - method: "DELETE"; - url: "/app/installations/:installation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateInstallationTokenEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; - /** - * The `id`s of the repositories that the installation token can access. Providing repository `id`s restricts the access of an installation token to specific repositories. You can use the "[List repositories](https://developer.github.com/v3/apps/installations/#list-repositories)" endpoint to get the `id` of all repositories that an installation can access. For example, you can select specific repositories when creating an installation token to restrict the number of repositories that can be cloned using the token. - */ - repository_ids?: number[]; - /** - * The permissions granted to the access token. The permissions object includes the permission names and their access type. For a complete list of permissions and allowable values, see "[GitHub App permissions](https://developer.github.com/apps/building-github-apps/creating-github-apps-using-url-parameters/#github-app-permissions)." - */ - permissions?: AppsCreateInstallationTokenParamsPermissions; -} & RequiredPreview<"machine-man">; -declare type AppsCreateInstallationTokenRequestOptions = { - method: "POST"; - url: "/app/installations/:installation_id/access_tokens"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateInstallationTokenResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type AppsCreateInstallationTokenResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCreateInstallationTokenResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsCreateInstallationTokenResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: AppsCreateInstallationTokenResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type AppsCreateInstallationTokenResponseDataPermissions = { - issues: string; - contents: string; -}; -declare type AppsCreateInstallationTokenResponseData = { - token: string; - expires_at: string; - permissions: AppsCreateInstallationTokenResponseDataPermissions; - repositories: Array; -}; -declare type AppsSuspendInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; -}; -declare type AppsSuspendInstallationRequestOptions = { - method: "PUT"; - url: "/app/installations/:installation_id/suspended"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsUnsuspendInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; -}; -declare type AppsUnsuspendInstallationRequestOptions = { - method: "DELETE"; - url: "/app/installations/:installation_id/suspended"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsListGrantsEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OauthAuthorizationsListGrantsRequestOptions = { - method: "GET"; - url: "/applications/grants"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsListGrantsResponseDataItemApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsListGrantsResponseDataItem = { - id: number; - url: string; - app: OauthAuthorizationsListGrantsResponseDataItemApp; - created_at: string; - updated_at: string; - scopes: Array; -}; -declare type OauthAuthorizationsListGrantsResponseData = Array; -declare type OauthAuthorizationsGetGrantEndpoint = { - /** - * grant_id parameter - */ - grant_id: number; -}; -declare type OauthAuthorizationsGetGrantRequestOptions = { - method: "GET"; - url: "/applications/grants/:grant_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetGrantResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetGrantResponseData = { - id: number; - url: string; - app: OauthAuthorizationsGetGrantResponseDataApp; - created_at: string; - updated_at: string; - scopes: Array; -}; -declare type OauthAuthorizationsDeleteGrantEndpoint = { - /** - * grant_id parameter - */ - grant_id: number; -}; -declare type OauthAuthorizationsDeleteGrantRequestOptions = { - method: "DELETE"; - url: "/applications/grants/:grant_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsDeleteAuthorizationEndpoint = { - /** - * client_id parameter - */ - client_id: string; - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; -}; -declare type AppsDeleteAuthorizationRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/grant"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsRevokeGrantForApplicationEndpoint = { - /** - * client_id parameter - */ - client_id: string; - /** - * access_token parameter - */ - access_token: string; -}; -declare type AppsRevokeGrantForApplicationRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/grants/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckTokenEndpoint = { - /** - * client_id parameter - */ - client_id: string; - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; -}; -declare type AppsCheckTokenRequestOptions = { - method: "POST"; - url: "/applications/:client_id/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckTokenResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCheckTokenResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsCheckTokenResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsCheckTokenResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsCheckTokenResponseDataUser; -}; -declare type AppsResetTokenEndpoint = { - /** - * client_id parameter - */ - client_id: string; - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; -}; -declare type AppsResetTokenRequestOptions = { - method: "PATCH"; - url: "/applications/:client_id/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsResetTokenResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsResetTokenResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsResetTokenResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsResetTokenResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsResetTokenResponseDataUser; -}; -declare type AppsDeleteTokenEndpoint = { - /** - * client_id parameter - */ - client_id: string; - /** - * The OAuth access token used to authenticate to the GitHub API. - */ - access_token?: string; -}; -declare type AppsDeleteTokenRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckAuthorizationEndpoint = { - /** - * client_id parameter - */ - client_id: string; - /** - * access_token parameter - */ - access_token: string; -}; -declare type AppsCheckAuthorizationRequestOptions = { - method: "GET"; - url: "/applications/:client_id/tokens/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCheckAuthorizationResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsCheckAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsCheckAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsCheckAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsCheckAuthorizationResponseDataUser; -}; -declare type AppsResetAuthorizationEndpoint = { - /** - * client_id parameter - */ - client_id: string; - /** - * access_token parameter - */ - access_token: string; -}; -declare type AppsResetAuthorizationRequestOptions = { - method: "POST"; - url: "/applications/:client_id/tokens/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsResetAuthorizationResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsResetAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type AppsResetAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: AppsResetAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; - user: AppsResetAuthorizationResponseDataUser; -}; -declare type AppsRevokeAuthorizationForApplicationEndpoint = { - /** - * client_id parameter - */ - client_id: string; - /** - * access_token parameter - */ - access_token: string; -}; -declare type AppsRevokeAuthorizationForApplicationRequestOptions = { - method: "DELETE"; - url: "/applications/:client_id/tokens/:access_token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetBySlugEndpoint = { - /** - * app_slug parameter - */ - app_slug: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetBySlugRequestOptions = { - method: "GET"; - url: "/apps/:app_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetBySlugResponseDataPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsGetBySlugResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type AppsGetBySlugResponseData = { - id: number; - slug: string; - node_id: string; - owner: AppsGetBySlugResponseDataOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: AppsGetBySlugResponseDataPermissions; - events: Array; -}; -declare type OauthAuthorizationsListAuthorizationsEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OauthAuthorizationsListAuthorizationsRequestOptions = { - method: "GET"; - url: "/authorizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsListAuthorizationsResponseDataItemApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsListAuthorizationsResponseDataItem = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsListAuthorizationsResponseDataItemApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsListAuthorizationsResponseData = Array; -declare type OauthAuthorizationsCreateAuthorizationEndpoint = { - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; - /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. - */ - note: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * The 20 character OAuth app client key for which to create the token. - */ - client_id?: string; - /** - * The 40 character OAuth app client secret for which to create the token. - */ - client_secret?: string; - /** - * A unique string to distinguish an authorization from others created for the same client ID and user. - */ - fingerprint?: string; -}; -declare type OauthAuthorizationsCreateAuthorizationRequestOptions = { - method: "POST"; - url: "/authorizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsCreateAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsCreateAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsCreateAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppEndpoint = { - /** - * client_id parameter - */ - client_id: string; - /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. - */ - client_secret: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; - /** - * A note to remind you what the OAuth token is for. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to [Get-or-create an authorization for a specific app and fingerprint](https://developer.github.com/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint). - */ - fingerprint?: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppRequestOptions = { - method: "PUT"; - url: "/authorizations/clients/:client_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsGetOrCreateAuthorizationForAppResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintEndpoint = { - /** - * client_id parameter - */ - client_id: string; - /** - * fingerprint parameter - */ - fingerprint: string; - /** - * The 40 character OAuth app client secret associated with the client ID specified in the URL. - */ - client_secret: string; - /** - * A list of scopes that this authorization is in. - */ - scopes?: string[]; - /** - * A note to remind you what the OAuth token is for. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRequestOptions = { - method: "PUT"; - url: "/authorizations/clients/:client_id/:fingerprint"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsGetAuthorizationEndpoint = { - /** - * authorization_id parameter - */ - authorization_id: number; -}; -declare type OauthAuthorizationsGetAuthorizationRequestOptions = { - method: "GET"; - url: "/authorizations/:authorization_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsGetAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsGetAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsGetAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsUpdateAuthorizationEndpoint = { - /** - * authorization_id parameter - */ - authorization_id: number; - /** - * Replaces the authorization scopes with these. - */ - scopes?: string[]; - /** - * A list of scopes to add to this authorization. - */ - add_scopes?: string[]; - /** - * A list of scopes to remove from this authorization. - */ - remove_scopes?: string[]; - /** - * A note to remind you what the OAuth token is for. Tokens not associated with a specific OAuth application (i.e. personal access tokens) must have a unique note. - */ - note?: string; - /** - * A URL to remind you what app the OAuth token is for. - */ - note_url?: string; - /** - * A unique string to distinguish an authorization from others created for the same client ID and user. - */ - fingerprint?: string; -}; -declare type OauthAuthorizationsUpdateAuthorizationRequestOptions = { - method: "PATCH"; - url: "/authorizations/:authorization_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OauthAuthorizationsUpdateAuthorizationResponseDataApp = { - url: string; - name: string; - client_id: string; -}; -declare type OauthAuthorizationsUpdateAuthorizationResponseData = { - id: number; - url: string; - scopes: Array; - token: string; - token_last_eight: string; - hashed_token: string; - app: OauthAuthorizationsUpdateAuthorizationResponseDataApp; - note: string; - note_url: string; - updated_at: string; - created_at: string; - fingerprint: string; -}; -declare type OauthAuthorizationsDeleteAuthorizationEndpoint = { - /** - * authorization_id parameter - */ - authorization_id: number; -}; -declare type OauthAuthorizationsDeleteAuthorizationRequestOptions = { - method: "DELETE"; - url: "/authorizations/:authorization_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetAllCodesOfConductEndpoint = {} & RequiredPreview<"scarlet-witch">; -declare type CodesOfConductGetAllCodesOfConductRequestOptions = { - method: "GET"; - url: "/codes_of_conduct"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetAllCodesOfConductResponseDataItem = { - key: string; - name: string; - url: string; -}; -declare type CodesOfConductGetAllCodesOfConductResponseData = Array; -declare type CodesOfConductGetConductCodeEndpoint = { - /** - * key parameter - */ - key: string; -} & RequiredPreview<"scarlet-witch">; -declare type CodesOfConductGetConductCodeRequestOptions = { - method: "GET"; - url: "/codes_of_conduct/:key"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetConductCodeResponseData = { - key: string; - name: string; - url: string; - body: string; -}; -declare type AppsCreateContentAttachmentEndpoint = { - /** - * content_reference_id parameter - */ - content_reference_id: number; - /** - * The title of the content attachment displayed in the body or comment of an issue or pull request. - */ - title: string; - /** - * The body text of the content attachment displayed in the body or comment of an issue or pull request. This parameter supports markdown. - */ - body: string; -} & RequiredPreview<"corsair">; -declare type AppsCreateContentAttachmentRequestOptions = { - method: "POST"; - url: "/content_references/:content_reference_id/attachments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsCreateContentAttachmentResponseData = { - id: number; - title: string; - body: string; -}; -declare type EmojisGetEndpoint = {}; -declare type EmojisGetRequestOptions = { - method: "GET"; - url: "/emojis"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListPublicEventsEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListPublicEventsRequestOptions = { - method: "GET"; - url: "/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetFeedsEndpoint = {}; -declare type ActivityGetFeedsRequestOptions = { - method: "GET"; - url: "/feeds"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetFeedsResponseDataLinksSecurityAdvisories = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserOrganizationsItem = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserOrganization = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserActor = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUser = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksCurrentUserPublic = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksUser = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinksTimeline = { - href: string; - type: string; -}; -declare type ActivityGetFeedsResponseDataLinks = { - timeline: ActivityGetFeedsResponseDataLinksTimeline; - user: ActivityGetFeedsResponseDataLinksUser; - current_user_public: ActivityGetFeedsResponseDataLinksCurrentUserPublic; - current_user: ActivityGetFeedsResponseDataLinksCurrentUser; - current_user_actor: ActivityGetFeedsResponseDataLinksCurrentUserActor; - current_user_organization: ActivityGetFeedsResponseDataLinksCurrentUserOrganization; - current_user_organizations: Array; - security_advisories: ActivityGetFeedsResponseDataLinksSecurityAdvisories; -}; -declare type ActivityGetFeedsResponseData = { - timeline_url: string; - user_url: string; - current_user_public_url: string; - current_user_url: string; - current_user_actor_url: string; - current_user_organization_url: string; - current_user_organization_urls: Array; - security_advisories_url: string; - _links: ActivityGetFeedsResponseDataLinks; -}; -declare type GistsListEndpoint = { - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListRequestOptions = { - method: "GET"; - url: "/gists"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListResponseDataItemFiles = { - "hello_world.rb": GistsListResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListResponseData = Array; -declare type GistsCreateEndpoint = { - /** - * The filenames and content of each file in the gist. The keys in the `files` object represent the filename and have the type `string`. - */ - files: GistsCreateParamsFiles; - /** - * A descriptive name for this gist. - */ - description?: string; - /** - * When `true`, the gist will be public and available for anyone to see. - */ - public?: boolean; -}; -declare type GistsCreateRequestOptions = { - method: "POST"; - url: "/gists"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsCreateResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsCreateResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateResponseDataHistoryItem = { - url: string; - version: string; - user: GistsCreateResponseDataHistoryItemUser; - change_status: GistsCreateResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsCreateResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateResponseDataForksItem = { - user: GistsCreateResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsCreateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateResponseDataFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsCreateResponseDataFiles = { - "hello_world.rb": GistsCreateResponseDataFilesHelloWorldRb; - "hello_world.py": GistsCreateResponseDataFilesHelloWorldPy; - "hello_world_ruby.txt": GistsCreateResponseDataFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsCreateResponseDataFilesHelloWorldPythonTxt; -}; -declare type GistsCreateResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsCreateResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsCreateResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GistsListPublicEndpoint = { - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListPublicRequestOptions = { - method: "GET"; - url: "/gists/public"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListPublicResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListPublicResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListPublicResponseDataItemFiles = { - "hello_world.rb": GistsListPublicResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListPublicResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListPublicResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListPublicResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListPublicResponseData = Array; -declare type GistsListStarredEndpoint = { - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListStarredRequestOptions = { - method: "GET"; - url: "/gists/starred"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListStarredResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListStarredResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListStarredResponseDataItemFiles = { - "hello_world.rb": GistsListStarredResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListStarredResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListStarredResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListStarredResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListStarredResponseData = Array; -declare type GistsGetEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsGetRequestOptions = { - method: "GET"; - url: "/gists/:gist_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsGetResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetResponseDataHistoryItem = { - url: string; - version: string; - user: GistsGetResponseDataHistoryItemUser; - change_status: GistsGetResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsGetResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetResponseDataForksItem = { - user: GistsGetResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsGetResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetResponseDataFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetResponseDataFiles = { - "hello_world.rb": GistsGetResponseDataFilesHelloWorldRb; - "hello_world.py": GistsGetResponseDataFilesHelloWorldPy; - "hello_world_ruby.txt": GistsGetResponseDataFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsGetResponseDataFilesHelloWorldPythonTxt; -}; -declare type GistsGetResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsGetResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsGetResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GistsUpdateEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * A descriptive name for this gist. - */ - description?: string; - /** - * The filenames and content that make up this gist. - */ - files?: GistsUpdateParamsFiles; -}; -declare type GistsUpdateRequestOptions = { - method: "PATCH"; - url: "/gists/:gist_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsUpdateResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsUpdateResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateResponseDataHistoryItem = { - url: string; - version: string; - user: GistsUpdateResponseDataHistoryItemUser; - change_status: GistsUpdateResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsUpdateResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateResponseDataForksItem = { - user: GistsUpdateResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsUpdateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateResponseDataFilesNewFileTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFilesHelloWorldMd = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsUpdateResponseDataFiles = { - "hello_world.rb": GistsUpdateResponseDataFilesHelloWorldRb; - "hello_world.py": GistsUpdateResponseDataFilesHelloWorldPy; - "hello_world.md": GistsUpdateResponseDataFilesHelloWorldMd; - "new_file.txt": GistsUpdateResponseDataFilesNewFileTxt; -}; -declare type GistsUpdateResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsUpdateResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsUpdateResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GistsDeleteEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsDeleteRequestOptions = { - method: "DELETE"; - url: "/gists/:gist_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommentsEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListCommentsRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListCommentsResponseDataItem = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsListCommentsResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type GistsListCommentsResponseData = Array; -declare type GistsCreateCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * The comment text. - */ - body: string; -}; -declare type GistsCreateCommentRequestOptions = { - method: "POST"; - url: "/gists/:gist_id/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsCreateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsCreateCommentResponseData = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsCreateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type GistsGetCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type GistsGetCommentRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetCommentResponseData = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsGetCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type GistsUpdateCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The comment text. - */ - body: string; -}; -declare type GistsUpdateCommentRequestOptions = { - method: "PATCH"; - url: "/gists/:gist_id/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsUpdateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsUpdateCommentResponseData = { - id: number; - node_id: string; - url: string; - body: string; - user: GistsUpdateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type GistsDeleteCommentEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type GistsDeleteCommentRequestOptions = { - method: "DELETE"; - url: "/gists/:gist_id/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommitsEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListCommitsRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListCommitsResponseDataItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsListCommitsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListCommitsResponseDataItem = { - url: string; - version: string; - user: GistsListCommitsResponseDataItemUser; - change_status: GistsListCommitsResponseDataItemChangeStatus; - committed_at: string; -}; -declare type GistsListCommitsResponseData = Array; -declare type GistsForkEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsForkRequestOptions = { - method: "POST"; - url: "/gists/:gist_id/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsForkResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsForkResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsForkResponseDataFiles = { - "hello_world.rb": GistsForkResponseDataFilesHelloWorldRb; -}; -declare type GistsForkResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsForkResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsForkResponseDataOwner; - truncated: boolean; -}; -declare type GistsListForksEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListForksRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListForksResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListForksResponseDataItem = { - user: GistsListForksResponseDataItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsListForksResponseData = Array; -declare type GistsStarEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsStarRequestOptions = { - method: "PUT"; - url: "/gists/:gist_id/star"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsUnstarEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsUnstarRequestOptions = { - method: "DELETE"; - url: "/gists/:gist_id/star"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsCheckIsStarredEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; -}; -declare type GistsCheckIsStarredRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/star"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetRevisionEndpoint = { - /** - * gist_id parameter - */ - gist_id: string; - /** - * sha parameter - */ - sha: string; -}; -declare type GistsGetRevisionRequestOptions = { - method: "GET"; - url: "/gists/:gist_id/:sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsGetRevisionResponseDataHistoryItemChangeStatus = { - deletions: number; - additions: number; - total: number; -}; -declare type GistsGetRevisionResponseDataHistoryItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetRevisionResponseDataHistoryItem = { - url: string; - version: string; - user: GistsGetRevisionResponseDataHistoryItemUser; - change_status: GistsGetRevisionResponseDataHistoryItemChangeStatus; - committed_at: string; -}; -declare type GistsGetRevisionResponseDataForksItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetRevisionResponseDataForksItem = { - user: GistsGetRevisionResponseDataForksItemUser; - url: string; - id: string; - created_at: string; - updated_at: string; -}; -declare type GistsGetRevisionResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldPythonTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldRubyTxt = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldPy = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; - truncated: boolean; - content: string; -}; -declare type GistsGetRevisionResponseDataFiles = { - "hello_world.rb": GistsGetRevisionResponseDataFilesHelloWorldRb; - "hello_world.py": GistsGetRevisionResponseDataFilesHelloWorldPy; - "hello_world_ruby.txt": GistsGetRevisionResponseDataFilesHelloWorldRubyTxt; - "hello_world_python.txt": GistsGetRevisionResponseDataFilesHelloWorldPythonTxt; -}; -declare type GistsGetRevisionResponseData = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsGetRevisionResponseDataFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsGetRevisionResponseDataOwner; - truncated: boolean; - forks: Array; - history: Array; -}; -declare type GitignoreListTemplatesEndpoint = {}; -declare type GitignoreListTemplatesRequestOptions = { - method: "GET"; - url: "/gitignore/templates"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitignoreListTemplatesResponseData = Array; -declare type GitignoreGetTemplateEndpoint = { - /** - * name parameter - */ - name: string; -}; -declare type GitignoreGetTemplateRequestOptions = { - method: "GET"; - url: "/gitignore/templates/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitignoreGetTemplateResponseData = { - name: string; - source: string; -}; -declare type AppsListReposEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListReposRequestOptions = { - method: "GET"; - url: "/installation/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListReposResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsListReposResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsListReposResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type AppsListReposResponseData = { - total_count: number; - repositories: Array; -}; -declare type AppsRevokeInstallationTokenEndpoint = {}; -declare type AppsRevokeInstallationTokenRequestOptions = { - method: "DELETE"; - url: "/installation/token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEndpoint = { - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListRequestOptions = { - method: "GET"; - url: "/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListResponseDataItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type IssuesListResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListResponseDataItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type IssuesListResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListResponseDataItemUser; - labels: Array; - assignee: IssuesListResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListResponseDataItemRepository; -}; -declare type IssuesListResponseData = Array; -declare type SearchIssuesLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repository parameter - */ - repository: string; - /** - * Indicates the state of the issues to return. Can be either `open` or `closed`. - */ - state: "open" | "closed"; - /** - * The search term. - */ - keyword: string; -}; -declare type SearchIssuesLegacyRequestOptions = { - method: "GET"; - url: "/legacy/issues/search/:owner/:repository/:state/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchIssuesLegacyResponseDataIssuesItem = { - gravatar_id: string; - position: number; - number: number; - votes: number; - created_at: string; - comments: number; - body: string; - title: string; - updated_at: string; - html_url: string; - user: string; - labels: Array; - state: string; -}; -declare type SearchIssuesLegacyResponseData = { - issues: Array; -}; -declare type SearchReposLegacyEndpoint = { - /** - * The search term. - */ - keyword: string; - /** - * Filter results by language. - */ - language?: string; - /** - * The page number to fetch. - */ - start_page?: string; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; -}; -declare type SearchReposLegacyRequestOptions = { - method: "GET"; - url: "/legacy/repos/search/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchReposLegacyResponseDataRepositoriesItem = { - type: string; - created: string; - watchers: number; - has_downloads: boolean; - username: string; - homepage: string; - url: string; - fork: boolean; - has_issues: boolean; - has_wiki: boolean; - forks: number; - size: number; - private: boolean; - followers: number; - name: string; - owner: string; - open_issues: number; - pushed_at: string; - score: number; - pushed: string; - description: string; - language: string; - created_at: string; -}; -declare type SearchReposLegacyResponseData = { - repositories: Array; -}; -declare type SearchEmailLegacyEndpoint = { - /** - * The email address. - */ - email: string; -}; -declare type SearchEmailLegacyRequestOptions = { - method: "GET"; - url: "/legacy/user/email/:email"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchEmailLegacyResponseDataUser = { - public_repo_count: number; - public_gist_count: number; - followers_count: number; - following_count: number; - created: string; - created_at: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - id: number; - login: string; - type: string; - gravatar_id: string; -}; -declare type SearchEmailLegacyResponseData = { - user: SearchEmailLegacyResponseDataUser; -}; -declare type SearchUsersLegacyEndpoint = { - /** - * The search term. - */ - keyword: string; - /** - * The page number to fetch. - */ - start_page?: string; - /** - * The sort field. One of `stars`, `forks`, or `updated`. Default: results are sorted by best match. - */ - sort?: "stars" | "forks" | "updated"; - /** - * The sort field. if `sort` param is provided. Can be either `asc` or `desc`. - */ - order?: "asc" | "desc"; -}; -declare type SearchUsersLegacyRequestOptions = { - method: "GET"; - url: "/legacy/user/search/:keyword"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchUsersLegacyResponseDataUsersItem = { - gravatar_id: string; - name: string; - created_at: string; - location: string; - public_repo_count: number; - followers: number; - language: string; - fullname: string; - username: string; - id: string; - repos: number; - type: string; - followers_count: number; - login: string; - score: number; - created: string; -}; -declare type SearchUsersLegacyResponseData = { - users: Array; -}; -declare type LicensesListCommonlyUsedEndpoint = {}; -declare type LicensesListCommonlyUsedRequestOptions = { - method: "GET"; - url: "/licenses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type LicensesListCommonlyUsedResponseDataItem = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id?: string; -}; -declare type LicensesListCommonlyUsedResponseData = Array; -declare type LicensesGetEndpoint = { - /** - * license parameter - */ - license: string; -}; -declare type LicensesGetRequestOptions = { - method: "GET"; - url: "/licenses/:license"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type LicensesGetResponseData = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; - html_url: string; - description: string; - implementation: string; - permissions: Array; - conditions: Array; - limitations: Array; - body: string; - featured: boolean; -}; -declare type MarkdownRenderEndpoint = { - /** - * The Markdown text to render in HTML. Markdown content must be 400 KB or less. - */ - text: string; - /** - * The rendering mode. Can be either: - * \* `markdown` to render a document in plain Markdown, just like README.md files are rendered. - * \* `gfm` to render a document in [GitHub Flavored Markdown](https://github.github.com/gfm/), which creates links for user mentions as well as references to SHA-1 hashes, issues, and pull requests. - */ - mode?: "markdown" | "gfm"; - /** - * The repository context to use when creating references in `gfm` mode. Omit this parameter when using `markdown` mode. - */ - context?: string; -}; -declare type MarkdownRenderRequestOptions = { - method: "POST"; - url: "/markdown"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MarkdownRenderRawEndpoint = { - /** - * data parameter - */ - data: string; -} & { - headers: { - "content-type": "text/plain; charset=utf-8"; - }; -}; -declare type MarkdownRenderRawRequestOptions = { - method: "POST"; - url: "/markdown/raw"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetSubscriptionPlanForAccountEndpoint = { - /** - * account_id parameter - */ - account_id: number; -}; -declare type AppsGetSubscriptionPlanForAccountRequestOptions = { - method: "GET"; - url: "/marketplace_listing/accounts/:account_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchasePlan; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChangePlan; -}; -declare type AppsGetSubscriptionPlanForAccountResponseData = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePendingChange; - marketplace_purchase: AppsGetSubscriptionPlanForAccountResponseDataMarketplacePurchase; -}; -declare type AppsListPlansEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListPlansRequestOptions = { - method: "GET"; - url: "/marketplace_listing/plans"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListPlansResponseDataItem = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListPlansResponseData = Array; -declare type AppsListAccountsForPlanEndpoint = { - /** - * plan_id parameter - */ - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListAccountsForPlanRequestOptions = { - method: "GET"; - url: "/marketplace_listing/plans/:plan_id/accounts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsListAccountsForPlanResponseDataItemMarketplacePurchasePlan; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsListAccountsForPlanResponseDataItemMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsListAccountsForPlanResponseDataItemMarketplacePendingChangePlan; -}; -declare type AppsListAccountsForPlanResponseDataItem = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsListAccountsForPlanResponseDataItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsForPlanResponseDataItemMarketplacePurchase; -}; -declare type AppsListAccountsForPlanResponseData = Array; -declare type AppsGetSubscriptionPlanForAccountStubbedEndpoint = { - /** - * account_id parameter - */ - account_id: number; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedRequestOptions = { - method: "GET"; - url: "/marketplace_listing/stubbed/accounts/:account_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchasePlan; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChangePlan; -}; -declare type AppsGetSubscriptionPlanForAccountStubbedResponseData = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePendingChange; - marketplace_purchase: AppsGetSubscriptionPlanForAccountStubbedResponseDataMarketplacePurchase; -}; -declare type AppsListPlansStubbedEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListPlansStubbedRequestOptions = { - method: "GET"; - url: "/marketplace_listing/stubbed/plans"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListPlansStubbedResponseDataItem = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListPlansStubbedResponseData = Array; -declare type AppsListAccountsForPlanStubbedEndpoint = { - /** - * plan_id parameter - */ - plan_id: number; - /** - * Sorts the GitHub accounts by the date they were created or last updated. Can be one of `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * To return the oldest accounts first, set to `asc`. Can be one of `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListAccountsForPlanStubbedRequestOptions = { - method: "GET"; - url: "/marketplace_listing/stubbed/plans/:plan_id/accounts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchasePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchase = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - plan: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchasePlan; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChangePlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - state: string; - unit_name: null; - bullets: Array; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChange = { - effective_date: string; - unit_count: null; - id: number; - plan: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChangePlan; -}; -declare type AppsListAccountsForPlanStubbedResponseDataItem = { - url: string; - type: string; - id: number; - login: string; - email: null; - organization_billing_email: string; - marketplace_pending_change: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePendingChange; - marketplace_purchase: AppsListAccountsForPlanStubbedResponseDataItemMarketplacePurchase; -}; -declare type AppsListAccountsForPlanStubbedResponseData = Array; -declare type MetaGetEndpoint = {}; -declare type MetaGetRequestOptions = { - method: "GET"; - url: "/meta"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MetaGetResponseDataSshKeyFingerprints = { - MD5_RSA: string; - MD5_DSA: string; - SHA256_RSA: string; - SHA256_DSA: string; -}; -declare type MetaGetResponseData = { - verifiable_password_authentication: boolean; - ssh_key_fingerprints: MetaGetResponseDataSshKeyFingerprints; - hooks: Array; - web: Array; - api: Array; - git: Array; - pages: Array; - importer: Array; -}; -declare type ActivityListPublicEventsForRepoNetworkEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListPublicEventsForRepoNetworkRequestOptions = { - method: "GET"; - url: "/networks/:owner/:repo/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListNotificationsForAuthenticatedUserEndpoint = { - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * 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`. - */ - since?: string; - /** - * 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`. - */ - before?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListNotificationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItemSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseDataItem = { - id: string; - repository: ActivityListNotificationsForAuthenticatedUserResponseDataItemRepository; - subject: ActivityListNotificationsForAuthenticatedUserResponseDataItemSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; -}; -declare type ActivityListNotificationsForAuthenticatedUserResponseData = Array; -declare type ActivityMarkNotificationsAsReadEndpoint = { - /** - * 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. - */ - last_read_at?: string; -}; -declare type ActivityMarkNotificationsAsReadRequestOptions = { - method: "PUT"; - url: "/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityGetThreadRequestOptions = { - method: "GET"; - url: "/notifications/threads/:thread_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadResponseDataSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; -}; -declare type ActivityGetThreadResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityGetThreadResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityGetThreadResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActivityGetThreadResponseData = { - id: string; - repository: ActivityGetThreadResponseDataRepository; - subject: ActivityGetThreadResponseDataSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; -}; -declare type ActivityMarkThreadAsReadEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityMarkThreadAsReadRequestOptions = { - method: "PATCH"; - url: "/notifications/threads/:thread_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadSubscriptionForAuthenticatedUserEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityGetThreadSubscriptionForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/notifications/threads/:thread_id/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetThreadSubscriptionForAuthenticatedUserResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - thread_url: string; -}; -declare type ActivitySetThreadSubscriptionEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; - /** - * Unsubscribes and subscribes you to a conversation. Set `ignored` to `true` to block all notifications from this thread. - */ - ignored?: boolean; -}; -declare type ActivitySetThreadSubscriptionRequestOptions = { - method: "PUT"; - url: "/notifications/threads/:thread_id/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivitySetThreadSubscriptionResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - thread_url: string; -}; -declare type ActivityDeleteThreadSubscriptionEndpoint = { - /** - * thread_id parameter - */ - thread_id: number; -}; -declare type ActivityDeleteThreadSubscriptionRequestOptions = { - method: "DELETE"; - url: "/notifications/threads/:thread_id/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListEndpoint = { - /** - * The integer ID of the last organization that you've seen. - */ - since?: number; -}; -declare type OrgsListRequestOptions = { - method: "GET"; - url: "/organizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListResponseDataItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListResponseData = Array; -declare type OrgsGetEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsGetRequestOptions = { - method: "GET"; - url: "/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetResponseDataPlan = { - name: string; - space: number; - private_repos: number; - filled_seats?: number; - seats?: number; -}; -declare type OrgsGetResponseData = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - total_private_repos?: number; - owned_private_repos?: number; - private_gists?: number; - disk_usage?: number; - collaborators?: number; - billing_email?: string; - plan: OrgsGetResponseDataPlan; - default_repository_permission?: string; - members_can_create_repositories?: boolean; - two_factor_requirement_enabled?: boolean; - members_allowed_repository_creation_type?: string; - members_can_create_public_repositories?: boolean; - members_can_create_private_repositories?: boolean; - members_can_create_internal_repositories?: boolean; -}; -declare type OrgsUpdateEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Billing email address. This address is not publicized. - */ - billing_email?: string; - /** - * The company name. - */ - company?: string; - /** - * The publicly visible email address. - */ - email?: string; - /** - * The location. - */ - location?: string; - /** - * The shorthand name of the company. - */ - name?: string; - /** - * The description of the company. - */ - description?: string; - /** - * Toggles whether an organization can use organization projects. - */ - has_organization_projects?: boolean; - /** - * Toggles whether repositories that belong to the organization can use repository projects. - */ - has_repository_projects?: boolean; - /** - * 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. - */ - default_repository_permission?: "read" | "write" | "admin" | "none"; - /** - * 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_repositories?: boolean; - /** - * 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_internal_repositories?: boolean; - /** - * 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_private_repositories?: boolean; - /** - * 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_can_create_public_repositories?: boolean; - /** - * 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 [this note](https://developer.github.com/v3/orgs/#members_can_create_repositories) for details. - */ - members_allowed_repository_creation_type?: "all" | "private" | "none"; -}; -declare type OrgsUpdateRequestOptions = { - method: "PATCH"; - url: "/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUpdateResponseDataPlan = { - name: string; - space: number; - private_repos: number; -}; -declare type OrgsUpdateResponseData = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; - total_private_repos: number; - owned_private_repos: number; - private_gists: number; - disk_usage: number; - collaborators: number; - billing_email: string; - plan: OrgsUpdateResponseDataPlan; - default_repository_permission: string; - members_can_create_repositories: boolean; - two_factor_requirement_enabled: boolean; - members_allowed_repository_creation_type: string; - members_can_create_public_repositories: boolean; - members_can_create_private_repositories: boolean; - members_can_create_internal_repositories: boolean; -}; -declare type ActionsListSelfHostedRunnersForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListSelfHostedRunnersForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/actions/runners"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSelfHostedRunnersForOrgResponseDataRunnersItem = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsListSelfHostedRunnersForOrgResponseData = { - total_count: number; - runners: Array; -}; -declare type ActionsListRunnerApplicationsForOrgEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ActionsListRunnerApplicationsForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/actions/runners/downloads"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRunnerApplicationsForOrgResponseDataItem = { - os: string; - architecture: string; - download_url: string; - filename: string; -}; -declare type ActionsListRunnerApplicationsForOrgResponseData = Array; -declare type ActionsCreateRegistrationTokenForOrgEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ActionsCreateRegistrationTokenForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/actions/runners/registration-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRegistrationTokenForOrgResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsCreateRemoveTokenForOrgEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ActionsCreateRemoveTokenForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/actions/runners/remove-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRemoveTokenForOrgResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsGetSelfHostedRunnerForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsGetSelfHostedRunnerForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetSelfHostedRunnerForOrgResponseData = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsDeleteSelfHostedRunnerFromOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsDeleteSelfHostedRunnerFromOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListBlockedUsersEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsListBlockedUsersRequestOptions = { - method: "GET"; - url: "/orgs/:org/blocks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListBlockedUsersResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListBlockedUsersResponseData = Array; -declare type OrgsCheckBlockedUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsCheckBlockedUserRequestOptions = { - method: "GET"; - url: "/orgs/:org/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsBlockUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsBlockUserRequestOptions = { - method: "PUT"; - url: "/orgs/:org/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUnblockUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsUnblockUserRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListCredentialAuthorizationsEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsListCredentialAuthorizationsRequestOptions = { - method: "GET"; - url: "/orgs/:org/credential-authorizations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListCredentialAuthorizationsResponseDataItem = { - login: string; - credential_id: string; - credential_type: string; - token_last_eight: string; - credential_authorized_at: string; - scopes: Array; -}; -declare type OrgsListCredentialAuthorizationsResponseData = Array; -declare type OrgsRemoveCredentialAuthorizationEndpoint = { - /** - * org parameter - */ - org: string; - /** - * credential_id parameter - */ - credential_id: number; -}; -declare type OrgsRemoveCredentialAuthorizationRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/credential-authorizations/:credential_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListPublicOrgEventsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListPublicOrgEventsRequestOptions = { - method: "GET"; - url: "/orgs/:org/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListHooksEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListHooksRequestOptions = { - method: "GET"; - url: "/orgs/:org/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListHooksResponseDataItemConfig = { - url: string; - content_type: string; -}; -declare type OrgsListHooksResponseDataItem = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsListHooksResponseDataItemConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsListHooksResponseData = Array; -declare type OrgsCreateHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Must be passed as "web". - */ - name: string; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#create-hook-config-params). - */ - config: OrgsCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type OrgsCreateHookRequestOptions = { - method: "POST"; - url: "/orgs/:org/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsCreateHookResponseDataConfig = { - url: string; - content_type: string; -}; -declare type OrgsCreateHookResponseData = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsCreateHookResponseDataConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsGetHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type OrgsGetHookRequestOptions = { - method: "GET"; - url: "/orgs/:org/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetHookResponseDataConfig = { - url: string; - content_type: string; -}; -declare type OrgsGetHookResponseData = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsGetHookResponseDataConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsUpdateHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/orgs/hooks/#update-hook-config-params). - */ - config?: OrgsUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type OrgsUpdateHookRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUpdateHookResponseDataConfig = { - url: string; - content_type: string; -}; -declare type OrgsUpdateHookResponseData = { - id: number; - url: string; - ping_url: string; - name: string; - events: Array; - active: boolean; - config: OrgsUpdateHookResponseDataConfig; - updated_at: string; - created_at: string; -}; -declare type OrgsDeleteHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type OrgsDeleteHookRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsPingHookEndpoint = { - /** - * org parameter - */ - org: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type OrgsPingHookRequestOptions = { - method: "POST"; - url: "/orgs/:org/hooks/:hook_id/pings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetOrgInstallationEndpoint = { - /** - * org parameter - */ - org: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetOrgInstallationRequestOptions = { - method: "GET"; - url: "/orgs/:org/installation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetOrgInstallationResponseDataPermissions = { - checks: string; - metadata: string; - contents: string; -}; -declare type AppsGetOrgInstallationResponseDataAccount = { - login: string; - id: number; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsGetOrgInstallationResponseData = { - id: number; - account: AppsGetOrgInstallationResponseDataAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetOrgInstallationResponseDataPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type OrgsListInstallationsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type OrgsListInstallationsRequestOptions = { - method: "GET"; - url: "/orgs/:org/installations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListInstallationsResponseDataInstallationsItemPermissions = { - deployments: string; - metadata: string; - pull_requests: string; - statuses: string; -}; -declare type OrgsListInstallationsResponseDataInstallationsItemAccount = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListInstallationsResponseDataInstallationsItem = { - id: number; - account: OrgsListInstallationsResponseDataInstallationsItemAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: OrgsListInstallationsResponseDataInstallationsItemPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type OrgsListInstallationsResponseData = { - total_count: number; - installations: Array; -}; -declare type InteractionsGetRestrictionsForOrgEndpoint = { - /** - * org parameter - */ - org: string; -} & RequiredPreview<"sombra">; -declare type InteractionsGetRestrictionsForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsGetRestrictionsForOrgResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsAddOrUpdateRestrictionsForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests in public repositories for the given organization. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. - */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; -} & RequiredPreview<"sombra">; -declare type InteractionsAddOrUpdateRestrictionsForOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsAddOrUpdateRestrictionsForOrgResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsRemoveRestrictionsForOrgEndpoint = { - /** - * org parameter - */ - org: string; -} & RequiredPreview<"sombra">; -declare type InteractionsRemoveRestrictionsForOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListPendingInvitationsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListPendingInvitationsRequestOptions = { - method: "GET"; - url: "/orgs/:org/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListPendingInvitationsResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListPendingInvitationsResponseDataItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: OrgsListPendingInvitationsResponseDataItemInviter; - team_count: number; - invitation_team_url: string; -}; -declare type OrgsListPendingInvitationsResponseData = Array; -declare type OrgsCreateInvitationEndpoint = { - /** - * org parameter - */ - org: string; - /** - * **Required unless you provide `email`**. GitHub user ID for the person you are inviting. - */ - invitee_id?: number; - /** - * **Required unless you provide `invitee_id`**. Email address of the person you are inviting, which can be an existing GitHub user. - */ - email?: string; - /** - * Specify role for new member. Can be one of: - * \* `admin` - Organization owners with full administrative rights to the organization and complete access to all repositories and teams. - * \* `direct_member` - Non-owner organization members with ability to see other members and join teams by invitation. - * \* `billing_manager` - Non-owner organization members with ability to manage the billing settings of your organization. - */ - role?: "admin" | "direct_member" | "billing_manager"; - /** - * Specify IDs for the teams you want to invite new members to. - */ - team_ids?: number[]; -}; -declare type OrgsCreateInvitationRequestOptions = { - method: "POST"; - url: "/orgs/:org/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsCreateInvitationResponseDataInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsCreateInvitationResponseData = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: OrgsCreateInvitationResponseDataInviter; - team_count: number; - invitation_team_url: string; -}; -declare type OrgsListInvitationTeamsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * invitation_id parameter - */ - invitation_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListInvitationTeamsRequestOptions = { - method: "GET"; - url: "/orgs/:org/invitations/:invitation_id/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListInvitationTeamsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type OrgsListInvitationTeamsResponseData = Array; -declare type IssuesListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForOrgResponseDataItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type IssuesListForOrgResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListForOrgResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListForOrgResponseDataItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type IssuesListForOrgResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListForOrgResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForOrgResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListForOrgResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListForOrgResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForOrgResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForOrgResponseDataItemUser; - labels: Array; - assignee: IssuesListForOrgResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListForOrgResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForOrgResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListForOrgResponseDataItemRepository; -}; -declare type IssuesListForOrgResponseData = Array; -declare type OrgsListMembersEndpoint = { - /** - * org parameter - */ - org: string; - /** - * 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. - */ - filter?: "2fa_disabled" | "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. - */ - role?: "all" | "admin" | "member"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListMembersRequestOptions = { - method: "GET"; - url: "/orgs/:org/members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListMembersResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListMembersResponseData = Array; -declare type OrgsCheckMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsCheckMembershipRequestOptions = { - method: "GET"; - url: "/orgs/:org/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsRemoveMemberEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsRemoveMemberRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsGetMembershipRequestOptions = { - method: "GET"; - url: "/orgs/:org/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetMembershipResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsGetMembershipResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsGetMembershipResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsGetMembershipResponseDataOrganization; - user: OrgsGetMembershipResponseDataUser; -}; -declare type OrgsAddOrUpdateMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - role?: "admin" | "member"; -}; -declare type OrgsAddOrUpdateMembershipRequestOptions = { - method: "PUT"; - url: "/orgs/:org/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsAddOrUpdateMembershipResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsAddOrUpdateMembershipResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsAddOrUpdateMembershipResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsAddOrUpdateMembershipResponseDataOrganization; - user: OrgsAddOrUpdateMembershipResponseDataUser; -}; -declare type OrgsRemoveMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsRemoveMembershipRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * A list of arrays indicating which repositories should be migrated. - */ - repositories: string[]; - /** - * Indicates whether repositories should be locked (to prevent manipulation) while migrating data. - */ - lock_repositories?: boolean; - /** - * Indicates whether attachments should be excluded from the migration (to reduce migration archive file size). - */ - exclude_attachments?: boolean; -}; -declare type MigrationsStartForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartForOrgResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsStartForOrgResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsStartForOrgResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsStartForOrgResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsStartForOrgResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsStartForOrgResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type MigrationsStartForOrgResponseData = { - id: number; - owner: MigrationsStartForOrgResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListForOrgResponseDataItemRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListForOrgResponseDataItemRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListForOrgResponseDataItemRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListForOrgResponseDataItemRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListForOrgResponseDataItemRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsListForOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type MigrationsListForOrgResponseDataItem = { - id: number; - owner: MigrationsListForOrgResponseDataItemOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForOrgResponseData = Array; -declare type MigrationsGetStatusForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsGetStatusForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations/:migration_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetStatusForOrgResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsGetStatusForOrgResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsGetStatusForOrgResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsGetStatusForOrgResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsGetStatusForOrgResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsGetStatusForOrgResponseDataOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type MigrationsGetStatusForOrgResponseData = { - id: number; - owner: MigrationsGetStatusForOrgResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsDownloadArchiveForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsDownloadArchiveForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsDeleteArchiveForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsDeleteArchiveForOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsUnlockRepoForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; - /** - * repo_name parameter - */ - repo_name: string; -} & RequiredPreview<"wyandotte">; -declare type MigrationsUnlockRepoForOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/migrations/:migration_id/repos/:repo_name/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListReposForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * migration_id parameter - */ - migration_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListReposForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/migrations/:migration_id/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListReposForOrgResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type MigrationsListReposForOrgResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListReposForOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListReposForOrgResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListReposForOrgResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListReposForOrgResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: MigrationsListReposForOrgResponseDataItemLicense; -}; -declare type MigrationsListReposForOrgResponseData = Array; -declare type OrgsListOutsideCollaboratorsEndpoint = { - /** - * org parameter - */ - org: string; - /** - * 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. - */ - filter?: "2fa_disabled" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListOutsideCollaboratorsRequestOptions = { - method: "GET"; - url: "/orgs/:org/outside_collaborators"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListOutsideCollaboratorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListOutsideCollaboratorsResponseData = Array; -declare type OrgsRemoveOutsideCollaboratorEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsRemoveOutsideCollaboratorRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/outside_collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsRemoveOutsideCollaboratorResponseData = { - message: string; - documentation_url: string; -}; -declare type OrgsConvertMemberToOutsideCollaboratorEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsConvertMemberToOutsideCollaboratorRequestOptions = { - method: "PUT"; - url: "/orgs/:org/outside_collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsConvertMemberToOutsideCollaboratorResponseData = { - message: string; - documentation_url: string; -}; -declare type ProjectsListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListForOrgResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListForOrgResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForOrgResponseDataItemCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForOrgResponseData = Array; -declare type ProjectsCreateForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The name of the project. - */ - name: string; - /** - * The description of the project. - */ - body?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateForOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateForOrgResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateForOrgResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForOrgResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type OrgsListPublicMembersEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListPublicMembersRequestOptions = { - method: "GET"; - url: "/orgs/:org/public_members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListPublicMembersResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListPublicMembersResponseData = Array; -declare type OrgsCheckPublicMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsCheckPublicMembershipRequestOptions = { - method: "GET"; - url: "/orgs/:org/public_members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsPublicizeMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsPublicizeMembershipRequestOptions = { - method: "PUT"; - url: "/orgs/:org/public_members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsConcealMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * username parameter - */ - username: string; -}; -declare type OrgsConcealMembershipRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/public_members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Specifies the types of repositories you want returned. Can be one of `all`, `public`, `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`. - */ - type?: "all" | "public" | "private" | "forks" | "sources" | "member" | "internal"; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `asc` or `desc`. Default: when using `full_name`: `asc`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForOrgResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ReposListForOrgResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListForOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListForOrgResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListForOrgResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListForOrgResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ReposListForOrgResponseDataItemLicense; -}; -declare type ReposListForOrgResponseData = Array; -declare type ReposCreateInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The name of the repository. - */ - name: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to create a private repository or `false` to create a public one. - */ - private?: boolean; - /** - * 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`. 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. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * 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". - */ - gitignore_template?: string; - /** - * 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". - */ - license_template?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; -}; -declare type ReposCreateInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateInOrgResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateInOrgResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateInOrgResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateInOrgResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateInOrgResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsListIdPGroupsForOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListIdPGroupsForOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/team-sync/groups"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsForOrgResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsListIdPGroupsForOrgResponseData = { - groups: Array; -}; -declare type TeamsListEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type TeamsListResponseData = Array; -declare type TeamsCreateEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * List GitHub IDs for organization members who will become team maintainers. - */ - maintainers?: string[]; - /** - * The full name (e.g., "organization-name/repository-name") of repositories to add the team to. - */ - repo_names?: string[]; - /** - * 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` - */ - privacy?: "secret" | "closed"; - /** - * **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. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; -}; -declare type TeamsCreateRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsCreateResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsCreateResponseDataOrganization; -}; -declare type TeamsGetByNameEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; -}; -declare type TeamsGetByNameRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetByNameResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsGetByNameResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsGetByNameResponseDataOrganization; -}; -declare type TeamsUpdateInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. 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. - */ - privacy?: "secret" | "closed"; - /** - * **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. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; -}; -declare type TeamsUpdateInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateInOrgResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsUpdateInOrgResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsUpdateInOrgResponseDataOrganization; -}; -declare type TeamsDeleteInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; -}; -declare type TeamsDeleteInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsInOrgResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionsInOrgResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionsInOrgResponseDataItem = { - author: TeamsListDiscussionsInOrgResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsListDiscussionsInOrgResponseDataItemReactions; -}; -declare type TeamsListDiscussionsInOrgResponseData = Array; -declare type TeamsCreateDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * The discussion post's title. - */ - title: string; - /** - * The discussion post's body text. - */ - body: string; - /** - * 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. - */ - private?: boolean; -}; -declare type TeamsCreateDiscussionInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionInOrgResponseData = { - author: TeamsCreateDiscussionInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionInOrgResponseDataReactions; -}; -declare type TeamsGetDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsGetDiscussionInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionInOrgResponseData = { - author: TeamsGetDiscussionInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionInOrgResponseDataReactions; -}; -declare type TeamsUpdateDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion post's title. - */ - title?: string; - /** - * The discussion post's body text. - */ - body?: string; -}; -declare type TeamsUpdateDiscussionInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionInOrgResponseData = { - author: TeamsUpdateDiscussionInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: string; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionInOrgResponseDataReactions; -}; -declare type TeamsDeleteDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsDeleteDiscussionInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionCommentsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsInOrgResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionCommentsInOrgResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionCommentsInOrgResponseDataItem = { - author: TeamsListDiscussionCommentsInOrgResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsListDiscussionCommentsInOrgResponseDataItemReactions; -}; -declare type TeamsListDiscussionCommentsInOrgResponseData = Array; -declare type TeamsCreateDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsCreateDiscussionCommentInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionCommentInOrgResponseData = { - author: TeamsCreateDiscussionCommentInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionCommentInOrgResponseDataReactions; -}; -declare type TeamsGetDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsGetDiscussionCommentInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionCommentInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionCommentInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionCommentInOrgResponseData = { - author: TeamsGetDiscussionCommentInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionCommentInOrgResponseDataReactions; -}; -declare type TeamsUpdateDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsUpdateDiscussionCommentInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionCommentInOrgResponseData = { - author: TeamsUpdateDiscussionCommentInOrgResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: string; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionCommentInOrgResponseDataReactions; -}; -declare type TeamsDeleteDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsDeleteDiscussionCommentInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionCommentInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentInOrgResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionCommentInOrgResponseData = Array; -declare type ReactionsCreateForTeamDiscussionCommentInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionCommentInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionCommentInOrgResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionCommentInOrgResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentInOrgResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForTeamDiscussionCommentEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForTeamDiscussionCommentRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionInOrgResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionInOrgResponseData = Array; -declare type ReactionsCreateForTeamDiscussionInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionInOrgRequestOptions = { - method: "POST"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionInOrgResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionInOrgResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionInOrgResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForTeamDiscussionEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForTeamDiscussionRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListPendingInvitationsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListPendingInvitationsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListPendingInvitationsInOrgResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListPendingInvitationsInOrgResponseDataItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: TeamsListPendingInvitationsInOrgResponseDataItemInviter; - team_count: number; - invitation_team_url: string; -}; -declare type TeamsListPendingInvitationsInOrgResponseData = Array; -declare type TeamsListMembersInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListMembersInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListMembersInOrgResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListMembersInOrgResponseData = Array; -declare type TeamsGetMembershipInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * username parameter - */ - username: string; -}; -declare type TeamsGetMembershipInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetMembershipInOrgResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsAddOrUpdateMembershipInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - role?: "member" | "maintainer"; -}; -declare type TeamsAddOrUpdateMembershipInOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/teams/:team_slug/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateMembershipInOrgResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsRemoveMembershipInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * username parameter - */ - username: string; -}; -declare type TeamsRemoveMembershipInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type TeamsListProjectsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsInOrgResponseDataItemPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsListProjectsInOrgResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListProjectsInOrgResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsListProjectsInOrgResponseDataItemCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsListProjectsInOrgResponseDataItemPermissions; -}; -declare type TeamsListProjectsInOrgResponseData = Array; -declare type TeamsReviewProjectInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type TeamsReviewProjectInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsReviewProjectInOrgResponseDataPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsReviewProjectInOrgResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsReviewProjectInOrgResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsReviewProjectInOrgResponseDataCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsReviewProjectInOrgResponseDataPermissions; -}; -declare type TeamsAddOrUpdateProjectInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * project_id parameter - */ - project_id: number; - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; -} & RequiredPreview<"inertia">; -declare type TeamsAddOrUpdateProjectInOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/teams/:team_slug/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateProjectInOrgResponseData = { - message: string; - documentation_url: string; -}; -declare type TeamsRemoveProjectInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * project_id parameter - */ - project_id: number; -}; -declare type TeamsRemoveProjectInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListReposInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposInOrgResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type TeamsListReposInOrgResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsListReposInOrgResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListReposInOrgResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsListReposInOrgResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsListReposInOrgResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: TeamsListReposInOrgResponseDataItemLicense; -}; -declare type TeamsListReposInOrgResponseData = Array; -declare type TeamsCheckManagesRepoInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsCheckManagesRepoInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoInOrgResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoInOrgResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoInOrgResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoInOrgResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoInOrgResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoInOrgResponseData = { - organization: TeamsCheckManagesRepoInOrgResponseDataOrganization; - parent: TeamsCheckManagesRepoInOrgResponseDataParent; - source: TeamsCheckManagesRepoInOrgResponseDataSource; - permissions: TeamsCheckManagesRepoInOrgResponseDataPermissions; -}; -declare type TeamsAddOrUpdateRepoInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - * \* `maintain` - team members can manage the repository without access to sensitive or destructive actions. Recommended for project managers. Only applies to repositories owned by organizations. - * \* `triage` - team members can proactively manage issues and pull requests without write access. Recommended for contributors who triage a repository. Only applies to repositories owned by organizations. - * - * If no permission is specified, the team's `permission` attribute will be used to determine what permission to grant the team on this repository. - */ - permission?: "pull" | "push" | "admin" | "maintain" | "triage"; -}; -declare type TeamsAddOrUpdateRepoInOrgRequestOptions = { - method: "PUT"; - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsRemoveRepoInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsRemoveRepoInOrgRequestOptions = { - method: "DELETE"; - url: "/orgs/:org/teams/:team_slug/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; -}; -declare type TeamsListIdPGroupsInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsInOrgResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsListIdPGroupsInOrgResponseData = { - groups: Array; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. - */ - groups: TeamsCreateOrUpdateIdPGroupConnectionsInOrgParamsGroups[]; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgRequestOptions = { - method: "PATCH"; - url: "/orgs/:org/teams/:team_slug/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgResponseDataGroups = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgResponseData = { - groups: TeamsCreateOrUpdateIdPGroupConnectionsInOrgResponseDataGroups; -}; -declare type TeamsListChildInOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * team_slug parameter - */ - team_slug: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListChildInOrgRequestOptions = { - method: "GET"; - url: "/orgs/:org/teams/:team_slug/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListChildInOrgResponseDataItemParent = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; -}; -declare type TeamsListChildInOrgResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: TeamsListChildInOrgResponseDataItemParent; -}; -declare type TeamsListChildInOrgResponseData = Array; -declare type ProjectsGetCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsGetCardRequestOptions = { - method: "GET"; - url: "/projects/columns/cards/:card_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetCardResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsGetCardResponseData = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsGetCardResponseDataCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsUpdateCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so this cannot be specified if the card already has a `content_id` and `content_type`. - */ - note?: string; - /** - * Use `true` to archive a project card. Specify `false` if you need to restore a previously archived project card. - */ - archived?: boolean; -} & RequiredPreview<"inertia">; -declare type ProjectsUpdateCardRequestOptions = { - method: "PATCH"; - url: "/projects/columns/cards/:card_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsUpdateCardResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsUpdateCardResponseData = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsUpdateCardResponseDataCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsDeleteCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsDeleteCardRequestOptions = { - method: "DELETE"; - url: "/projects/columns/cards/:card_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsMoveCardEndpoint = { - /** - * card_id parameter - */ - card_id: number; - /** - * Can be one of `top`, `bottom`, or `after:`, where `` is the `id` value of a card in the same column, or in the new column specified by `column_id`. - */ - position: string; - /** - * The `id` value of a column in the same project. - */ - column_id?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsMoveCardRequestOptions = { - method: "POST"; - url: "/projects/columns/cards/:card_id/moves"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsGetColumnRequestOptions = { - method: "GET"; - url: "/projects/columns/:column_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetColumnResponseData = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type ProjectsUpdateColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * The new name of the column. - */ - name: string; -} & RequiredPreview<"inertia">; -declare type ProjectsUpdateColumnRequestOptions = { - method: "PATCH"; - url: "/projects/columns/:column_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsUpdateColumnResponseData = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type ProjectsDeleteColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsDeleteColumnRequestOptions = { - method: "DELETE"; - url: "/projects/columns/:column_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCardsEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * Filters the project cards that are returned by the card's state. Can be one of `all`,`archived`, or `not_archived`. - */ - archived_state?: "all" | "archived" | "not_archived"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListCardsRequestOptions = { - method: "GET"; - url: "/projects/columns/:column_id/cards"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCardsResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListCardsResponseDataItem = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsListCardsResponseDataItemCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsListCardsResponseData = Array; -declare type ProjectsCreateCardEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * The card's note content. Only valid for cards without another type of content, so you must omit when specifying `content_id` and `content_type`. - */ - note?: string; - /** - * The issue or pull request id you want to associate with this card. You can use the [List repository issues](https://developer.github.com/v3/issues/#list-repository-issues) and [List pull requests](https://developer.github.com/v3/pulls/#list-pull-requests) endpoints to find this id. - * **Note:** Depending on whether you use the issue id or pull request id, you will need to specify `Issue` or `PullRequest` as the `content_type`. - */ - content_id?: number; - /** - * **Required if you provide `content_id`**. The type of content you want to associate with this card. Use `Issue` when `content_id` is an issue id and use `PullRequest` when `content_id` is a pull request id. - */ - content_type?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateCardRequestOptions = { - method: "POST"; - url: "/projects/columns/:column_id/cards"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateCardResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateCardResponseData = { - url: string; - id: number; - node_id: string; - note: string; - creator: ProjectsCreateCardResponseDataCreator; - created_at: string; - updated_at: string; - archived: boolean; - column_url: string; - content_url: string; - project_url: string; -}; -declare type ProjectsMoveColumnEndpoint = { - /** - * column_id parameter - */ - column_id: number; - /** - * Can be one of `first`, `last`, or `after:`, where `` is the `id` value of a column in the same project. - */ - position: string; -} & RequiredPreview<"inertia">; -declare type ProjectsMoveColumnRequestOptions = { - method: "POST"; - url: "/projects/columns/:column_id/moves"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetEndpoint = { - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsGetRequestOptions = { - method: "GET"; - url: "/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsGetResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsGetResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsGetResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsUpdateEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * The name of the project. - */ - name?: string; - /** - * The description of the project. - */ - body?: string; - /** - * State of the project. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The permission level that determines whether all members of the project's organization can see and/or make changes to the project. Setting `organization_permission` is only available for organization projects. If an organization member belongs to a team with a higher level of access or is a collaborator with a higher level of access, their permission level is not lowered by `organization_permission`. For information on changing access for a team or collaborator, see [Add or update team project](https://developer.github.com/v3/teams/#add-or-update-team-project) or [Add user as a collaborator](https://developer.github.com/v3/projects/collaborators/#add-user-as-a-collaborator). - * - * **Note:** Updating a project's `organization_permission` requires `admin` access to the project. - * - * Can be one of: - * \* `read` - Organization members can read, but not write to or administer this project. - * \* `write` - Organization members can read and write, but not administer this project. - * \* `admin` - Organization members can read, write and administer this project. - * \* `none` - Organization members can only see this project if it is public. - */ - organization_permission?: string; - /** - * Sets the visibility of a project board. Setting `private` is only available for organization and user projects. **Note:** Updating a project's visibility requires `admin` access to the project. - * - * Can be one of: - * \* `false` - Anyone can see the project. - * \* `true` - Only the user can view a project board created on a user account. Organization members with the appropriate `organization_permission` can see project boards in an organization account. - */ - private?: boolean; -} & RequiredPreview<"inertia">; -declare type ProjectsUpdateRequestOptions = { - method: "PATCH"; - url: "/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsUpdateResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsUpdateResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsUpdateResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsDeleteEndpoint = { - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type ProjectsDeleteRequestOptions = { - method: "DELETE"; - url: "/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCollaboratorsEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * 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. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListCollaboratorsRequestOptions = { - method: "GET"; - url: "/projects/:project_id/collaborators"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListCollaboratorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListCollaboratorsResponseData = Array; -declare type ProjectsAddCollaboratorEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * username parameter - */ - username: string; - /** - * The permission to grant the collaborator. 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://developer.github.com/v3/#http-verbs)." Can be one of: - * \* `read` - can read, but not write to or administer this project. - * \* `write` - can read and write, but not administer this project. - * \* `admin` - can read, write and administer this project. - */ - permission?: "read" | "write" | "admin"; -} & RequiredPreview<"inertia">; -declare type ProjectsAddCollaboratorRequestOptions = { - method: "PUT"; - url: "/projects/:project_id/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsRemoveCollaboratorEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * username parameter - */ - username: string; -} & RequiredPreview<"inertia">; -declare type ProjectsRemoveCollaboratorRequestOptions = { - method: "DELETE"; - url: "/projects/:project_id/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsReviewUserPermissionLevelEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * username parameter - */ - username: string; -} & RequiredPreview<"inertia">; -declare type ProjectsReviewUserPermissionLevelRequestOptions = { - method: "GET"; - url: "/projects/:project_id/collaborators/:username/permission"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsReviewUserPermissionLevelResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsReviewUserPermissionLevelResponseData = { - permission: string; - user: ProjectsReviewUserPermissionLevelResponseDataUser; -}; -declare type ProjectsListColumnsEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListColumnsRequestOptions = { - method: "GET"; - url: "/projects/:project_id/columns"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListColumnsResponseDataItem = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type ProjectsListColumnsResponseData = Array; -declare type ProjectsCreateColumnEndpoint = { - /** - * project_id parameter - */ - project_id: number; - /** - * The name of the column. - */ - name: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateColumnRequestOptions = { - method: "POST"; - url: "/projects/:project_id/columns"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateColumnResponseData = { - url: string; - project_url: string; - cards_url: string; - id: number; - node_id: string; - name: string; - created_at: string; - updated_at: string; -}; -declare type RateLimitGetEndpoint = {}; -declare type RateLimitGetRequestOptions = { - method: "GET"; - url: "/rate_limit"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type RateLimitGetResponseDataRate = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesIntegrationManifest = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesGraphql = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesSearch = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResourcesCore = { - limit: number; - remaining: number; - reset: number; -}; -declare type RateLimitGetResponseDataResources = { - core: RateLimitGetResponseDataResourcesCore; - search: RateLimitGetResponseDataResourcesSearch; - graphql: RateLimitGetResponseDataResourcesGraphql; - integration_manifest: RateLimitGetResponseDataResourcesIntegrationManifest; -}; -declare type RateLimitGetResponseData = { - resources: RateLimitGetResponseDataResources; - rate: RateLimitGetResponseDataRate; -}; -declare type ReactionsDeleteLegacyEndpoint = { - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteLegacyRequestOptions = { - method: "DELETE"; - url: "/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetResponseDataCodeOfConduct = { - key: string; - name: string; - url: string; -}; -declare type ReposGetResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposGetResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposGetResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposGetResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposGetResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposGetResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposGetResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseDataLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ReposGetResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type ReposGetResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetResponseDataOwner; - private: boolean; - html_url: string; - description: string | null; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string | null; - hooks_url: string; - svn_url: string; - homepage: string | null; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template?: boolean; - topics?: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived?: boolean; - disabled?: boolean; - visibility?: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions?: ReposGetResponseDataPermissions; - allow_rebase_merge?: boolean; - template_repository?: null; - temp_clone_token?: string; - allow_squash_merge?: boolean; - allow_merge_commit?: boolean; - subscribers_count: number; - network_count: number; - license?: ReposGetResponseDataLicense; - organization?: ReposGetResponseDataOrganization; - parent?: ReposGetResponseDataParent; - source?: ReposGetResponseDataSource; - forks?: number; - open_issues?: number; - watchers?: number; - code_of_conduct?: ReposGetResponseDataCodeOfConduct; -}; -declare type ReposUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the repository. - */ - name?: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * 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. - */ - private?: boolean; - /** - * 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. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * Updates the default branch for this repository. - */ - default_branch?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; - /** - * `true` to archive this repository. **Note**: You cannot unarchive repositories through the API. - */ - archived?: boolean; -}; -declare type ReposUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposUpdateResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposUpdateResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposUpdateResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposUpdateResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type ReposUpdateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; - organization: ReposUpdateResponseDataOrganization; - parent: ReposUpdateResponseDataParent; - source: ReposUpdateResponseDataSource; -}; -declare type ReposDeleteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposDeleteRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDeleteResponseData = { - message: string; - documentation_url: string; -}; -declare type ActionsListArtifactsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListArtifactsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/artifacts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListArtifactsForRepoResponseDataArtifactsItem = { - id: number; - node_id: string; - name: string; - size_in_bytes: number; - url: string; - archive_download_url: string; - expired: boolean; - created_at: string; - expires_at: string; -}; -declare type ActionsListArtifactsForRepoResponseData = { - total_count: number; - artifacts: Array; -}; -declare type ActionsGetArtifactEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * artifact_id parameter - */ - artifact_id: number; -}; -declare type ActionsGetArtifactRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetArtifactResponseData = { - id: number; - node_id: string; - name: string; - size_in_bytes: number; - url: string; - archive_download_url: string; - expired: boolean; - created_at: string; - expires_at: string; -}; -declare type ActionsDeleteArtifactEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * artifact_id parameter - */ - artifact_id: number; -}; -declare type ActionsDeleteArtifactRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsDownloadArtifactEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * artifact_id parameter - */ - artifact_id: number; - /** - * archive_format parameter - */ - archive_format: string; -}; -declare type ActionsDownloadArtifactRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowJobEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * job_id parameter - */ - job_id: number; -}; -declare type ActionsGetWorkflowJobRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/jobs/:job_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowJobResponseDataStepsItem = { - name: string; - status: string; - conclusion: string; - number: number; - started_at: string; - completed_at: string; -}; -declare type ActionsGetWorkflowJobResponseData = { - id: number; - run_id: number; - run_url: string; - node_id: string; - head_sha: string; - url: string; - html_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - name: string; - steps: Array; - check_run_url: string; -}; -declare type ActionsDownloadWorkflowJobLogsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * job_id parameter - */ - job_id: number; -}; -declare type ActionsDownloadWorkflowJobLogsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/jobs/:job_id/logs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSelfHostedRunnersForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListSelfHostedRunnersForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runners"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSelfHostedRunnersForRepoResponseDataRunnersItem = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsListSelfHostedRunnersForRepoResponseData = { - total_count: number; - runners: Array; -}; -declare type ActionsListRunnerApplicationsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsListRunnerApplicationsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runners/downloads"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRunnerApplicationsForRepoResponseDataItem = { - os: string; - architecture: string; - download_url: string; - filename: string; -}; -declare type ActionsListRunnerApplicationsForRepoResponseData = Array; -declare type ActionsCreateRegistrationTokenForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsCreateRegistrationTokenForRepoRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runners/registration-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRegistrationTokenForRepoResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsCreateRemoveTokenForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsCreateRemoveTokenForRepoRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runners/remove-token"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsCreateRemoveTokenForRepoResponseData = { - token: string; - expires_at: string; -}; -declare type ActionsGetSelfHostedRunnerForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsGetSelfHostedRunnerForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetSelfHostedRunnerForRepoResponseData = { - id: number; - name: string; - os: string; - status: string; -}; -declare type ActionsDeleteSelfHostedRunnerFromRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * runner_id parameter - */ - runner_id: number; -}; -declare type ActionsDeleteSelfHostedRunnerFromRepoRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/runners/:runner_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowRunsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. - */ - actor?: string; - /** - * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. - */ - branch?: string; - /** - * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation. - */ - event?: string; - /** - * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." - */ - status?: "completed" | "status" | "conclusion"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListRepoWorkflowRunsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - private: boolean; - owner: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner; - html_url: string; - description: null; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter = { - name: string; - email: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor = { - name: string; - email: string; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommit = { - id: string; - tree_id: string; - message: string; - timestamp: string; - author: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor; - committer: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter; -}; -declare type ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItem = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - run_number: number; - event: string; - status: string; - conclusion: null; - url: string; - html_url: string; - pull_requests: Array; - created_at: string; - updated_at: string; - jobs_url: string; - logs_url: string; - check_suite_url: string; - artifacts_url: string; - cancel_url: string; - rerun_url: string; - workflow_url: string; - head_commit: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadCommit; - repository: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemRepository; - head_repository: ActionsListRepoWorkflowRunsResponseDataWorkflowRunsItemHeadRepository; -}; -declare type ActionsListRepoWorkflowRunsResponseData = { - total_count: number; - workflow_runs: Array; -}; -declare type ActionsGetWorkflowRunEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsGetWorkflowRunRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowRunResponseDataHeadRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsGetWorkflowRunResponseDataHeadRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - private: boolean; - owner: ActionsGetWorkflowRunResponseDataHeadRepositoryOwner; - html_url: string; - description: null; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type ActionsGetWorkflowRunResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsGetWorkflowRunResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActionsGetWorkflowRunResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActionsGetWorkflowRunResponseDataHeadCommitCommitter = { - name: string; - email: string; -}; -declare type ActionsGetWorkflowRunResponseDataHeadCommitAuthor = { - name: string; - email: string; -}; -declare type ActionsGetWorkflowRunResponseDataHeadCommit = { - id: string; - tree_id: string; - message: string; - timestamp: string; - author: ActionsGetWorkflowRunResponseDataHeadCommitAuthor; - committer: ActionsGetWorkflowRunResponseDataHeadCommitCommitter; -}; -declare type ActionsGetWorkflowRunResponseData = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - run_number: number; - event: string; - status: string; - conclusion: null; - url: string; - html_url: string; - pull_requests: Array; - created_at: string; - updated_at: string; - jobs_url: string; - logs_url: string; - check_suite_url: string; - artifacts_url: string; - cancel_url: string; - rerun_url: string; - workflow_url: string; - head_commit: ActionsGetWorkflowRunResponseDataHeadCommit; - repository: ActionsGetWorkflowRunResponseDataRepository; - head_repository: ActionsGetWorkflowRunResponseDataHeadRepository; -}; -declare type ActionsListWorkflowRunArtifactsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListWorkflowRunArtifactsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id/artifacts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListWorkflowRunArtifactsResponseDataArtifactsItem = { - id: number; - node_id: string; - name: string; - size_in_bytes: number; - url: string; - archive_download_url: string; - expired: boolean; - created_at: string; - expires_at: string; -}; -declare type ActionsListWorkflowRunArtifactsResponseData = { - total_count: number; - artifacts: Array; -}; -declare type ActionsCancelWorkflowRunEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsCancelWorkflowRunRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runs/:run_id/cancel"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListJobsForWorkflowRunEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; - /** - * Filters jobs by their `completed_at` timestamp. Can be one of: - * \* `latest`: Returns jobs from the most recent execution of the workflow run. - * \* `all`: Returns all jobs for a workflow run, including from old executions of the workflow run. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListJobsForWorkflowRunRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id/jobs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListJobsForWorkflowRunResponseDataJobsItemStepsItem = { - name: string; - status: string; - conclusion: string; - number: number; - started_at: string; - completed_at: string; -}; -declare type ActionsListJobsForWorkflowRunResponseDataJobsItem = { - id: number; - run_id: number; - run_url: string; - node_id: string; - head_sha: string; - url: string; - html_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - name: string; - steps: Array; - check_run_url: string; -}; -declare type ActionsListJobsForWorkflowRunResponseData = { - total_count: number; - jobs: Array; -}; -declare type ActionsDownloadWorkflowRunLogsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsDownloadWorkflowRunLogsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/runs/:run_id/logs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsDeleteWorkflowRunLogsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsDeleteWorkflowRunLogsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/runs/:run_id/logs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsReRunWorkflowEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * run_id parameter - */ - run_id: number; -}; -declare type ActionsReRunWorkflowRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/actions/runs/:run_id/rerun"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSecretsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListSecretsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/secrets"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListSecretsForRepoResponseDataSecretsItem = { - name: string; - created_at: string; - updated_at: string; -}; -declare type ActionsListSecretsForRepoResponseData = { - total_count: number; - secrets: Array; -}; -declare type ActionsGetPublicKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActionsGetPublicKeyRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/secrets/public-key"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetPublicKeyResponseData = { - key_id: string; - key: string; -}; -declare type ActionsGetSecretEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type ActionsGetSecretRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/secrets/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetSecretResponseData = { - name: string; - created_at: string; - updated_at: string; -}; -declare type ActionsCreateOrUpdateSecretForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; - /** - * Value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get your public key](https://developer.github.com/v3/actions/secrets/#get-your-public-key) endpoint. - */ - encrypted_value?: string; - /** - * ID of the key you used to encrypt the secret. - */ - key_id?: string; -}; -declare type ActionsCreateOrUpdateSecretForRepoRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/actions/secrets/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsDeleteSecretFromRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type ActionsDeleteSecretFromRepoRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/actions/secrets/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListRepoWorkflowsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/workflows"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListRepoWorkflowsResponseDataWorkflowsItem = { - id: number; - node_id: string; - name: string; - path: string; - state: string; - created_at: string; - updated_at: string; - url: string; - html_url: string; - badge_url: string; -}; -declare type ActionsListRepoWorkflowsResponseData = { - total_count: number; - workflows: Array; -}; -declare type ActionsGetWorkflowEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * workflow_id parameter - */ - workflow_id: number; -}; -declare type ActionsGetWorkflowRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/workflows/:workflow_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsGetWorkflowResponseData = { - id: number; - node_id: string; - name: string; - path: string; - state: string; - created_at: string; - updated_at: string; - url: string; - html_url: string; - badge_url: string; -}; -declare type ActionsListWorkflowRunsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * workflow_id parameter - */ - workflow_id: number; - /** - * Returns someone's workflow runs. Use the login for the user who created the `push` associated with the check suite or workflow run. - */ - actor?: string; - /** - * Returns workflow runs associated with a branch. Use the name of the branch of the `push`. - */ - branch?: string; - /** - * Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events that trigger workflows](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows)" in the GitHub Help documentation. - */ - event?: string; - /** - * Returns workflow runs associated with the check run `status` or `conclusion` you specify. For example, a conclusion can be `success` or a status can be `completed`. For more information, see the `status` and `conclusion` options available in "[Create a check run](https://developer.github.com/v3/checks/runs/#create-a-check-run)." - */ - status?: "completed" | "status" | "conclusion"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActionsListWorkflowRunsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/actions/workflows/:workflow_id/runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - private: boolean; - owner: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepositoryOwner; - html_url: string; - description: null; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter = { - name: string; - email: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor = { - name: string; - email: string; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommit = { - id: string; - tree_id: string; - message: string; - timestamp: string; - author: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitAuthor; - committer: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommitCommitter; -}; -declare type ActionsListWorkflowRunsResponseDataWorkflowRunsItem = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - run_number: number; - event: string; - status: string; - conclusion: null; - url: string; - html_url: string; - pull_requests: Array; - created_at: string; - updated_at: string; - jobs_url: string; - logs_url: string; - check_suite_url: string; - artifacts_url: string; - cancel_url: string; - rerun_url: string; - workflow_url: string; - head_commit: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadCommit; - repository: ActionsListWorkflowRunsResponseDataWorkflowRunsItemRepository; - head_repository: ActionsListWorkflowRunsResponseDataWorkflowRunsItemHeadRepository; -}; -declare type ActionsListWorkflowRunsResponseData = { - total_count: number; - workflow_runs: Array; -}; -declare type IssuesListAssigneesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListAssigneesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/assignees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListAssigneesResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListAssigneesResponseData = Array; -declare type IssuesCheckAssigneeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * assignee parameter - */ - assignee: string; -}; -declare type IssuesCheckAssigneeRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/assignees/:assignee"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposEnableAutomatedSecurityFixesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"london">; -declare type ReposEnableAutomatedSecurityFixesRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/automated-security-fixes"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDisableAutomatedSecurityFixesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"london">; -declare type ReposDisableAutomatedSecurityFixesRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/automated-security-fixes"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListBranchesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Setting to `true` returns only protected branches. When set to `false`, only unprotected branches are returned. Omitting this parameter returns all branches. - */ - protected?: boolean; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListBranchesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListBranchesResponseDataItemProtectionRequiredStatusChecks = { - enforcement_level: string; - contexts: Array; -}; -declare type ReposListBranchesResponseDataItemProtection = { - enabled: boolean; - required_status_checks: ReposListBranchesResponseDataItemProtectionRequiredStatusChecks; -}; -declare type ReposListBranchesResponseDataItemCommit = { - sha: string; - url: string; -}; -declare type ReposListBranchesResponseDataItem = { - name: string; - commit: ReposListBranchesResponseDataItemCommit; - protected: boolean; - protection: ReposListBranchesResponseDataItemProtection; - protection_url: string; -}; -declare type ReposListBranchesResponseData = Array; -declare type ReposGetBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetBranchResponseDataProtectionRequiredStatusChecks = { - enforcement_level: string; - contexts: Array; -}; -declare type ReposGetBranchResponseDataProtection = { - enabled: boolean; - required_status_checks: ReposGetBranchResponseDataProtectionRequiredStatusChecks; -}; -declare type ReposGetBranchResponseDataLinks = { - html: string; - self: string; -}; -declare type ReposGetBranchResponseDataCommitCommitter = { - gravatar_id: string; - avatar_url: string; - url: string; - id: number; - login: string; -}; -declare type ReposGetBranchResponseDataCommitParentsItem = { - sha: string; - url: string; -}; -declare type ReposGetBranchResponseDataCommitAuthor = { - gravatar_id: string; - avatar_url: string; - url: string; - id: number; - login: string; -}; -declare type ReposGetBranchResponseDataCommitCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposGetBranchResponseDataCommitCommitCommitter = { - name: string; - date: string; - email: string; -}; -declare type ReposGetBranchResponseDataCommitCommitTree = { - sha: string; - url: string; -}; -declare type ReposGetBranchResponseDataCommitCommitAuthor = { - name: string; - date: string; - email: string; -}; -declare type ReposGetBranchResponseDataCommitCommit = { - author: ReposGetBranchResponseDataCommitCommitAuthor; - url: string; - message: string; - tree: ReposGetBranchResponseDataCommitCommitTree; - committer: ReposGetBranchResponseDataCommitCommitCommitter; - verification: ReposGetBranchResponseDataCommitCommitVerification; -}; -declare type ReposGetBranchResponseDataCommit = { - sha: string; - node_id: string; - commit: ReposGetBranchResponseDataCommitCommit; - author: ReposGetBranchResponseDataCommitAuthor; - parents: Array; - url: string; - committer: ReposGetBranchResponseDataCommitCommitter; -}; -declare type ReposGetBranchResponseData = { - name: string; - commit: ReposGetBranchResponseDataCommit; - _links: ReposGetBranchResponseDataLinks; - protected: boolean; - protection: ReposGetBranchResponseDataProtection; - protection_url: string; -}; -declare type ReposGetBranchProtectionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetBranchProtectionRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetBranchProtectionResponseDataAllowDeletions = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataAllowForcePushes = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRequiredLinearHistory = { - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsAppsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsAppsItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsAppsItem = { - id: number; - slug: string; - node_id: string; - owner: ReposGetBranchProtectionResponseDataRestrictionsAppsItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposGetBranchProtectionResponseDataRestrictionsAppsItemPermissions; - events: Array; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetBranchProtectionResponseDataRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRestrictions = { - url: string; - users_url: string; - teams_url: string; - apps_url: string; - users: Array; - teams: Array; - apps: Array; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposGetBranchProtectionResponseDataRequiredPullRequestReviews = { - url: string; - dismissal_restrictions: ReposGetBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposGetBranchProtectionResponseDataEnforceAdmins = { - url: string; - enabled: boolean; -}; -declare type ReposGetBranchProtectionResponseDataRequiredStatusChecks = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposGetBranchProtectionResponseData = { - url: string; - required_status_checks: ReposGetBranchProtectionResponseDataRequiredStatusChecks; - enforce_admins: ReposGetBranchProtectionResponseDataEnforceAdmins; - required_pull_request_reviews: ReposGetBranchProtectionResponseDataRequiredPullRequestReviews; - restrictions: ReposGetBranchProtectionResponseDataRestrictions; - required_linear_history: ReposGetBranchProtectionResponseDataRequiredLinearHistory; - allow_force_pushes: ReposGetBranchProtectionResponseDataAllowForcePushes; - allow_deletions: ReposGetBranchProtectionResponseDataAllowDeletions; -}; -declare type ReposUpdateBranchProtectionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * Require status checks to pass before merging. Set to `null` to disable. - */ - required_status_checks: ReposUpdateBranchProtectionParamsRequiredStatusChecks | null; - /** - * Enforce all configured restrictions for administrators. Set to `true` to enforce required status checks for repository administrators. Set to `null` to disable. - */ - enforce_admins: boolean | null; - /** - * Require at least one approving review on a pull request, before merging. Set to `null` to disable. - */ - required_pull_request_reviews: ReposUpdateBranchProtectionParamsRequiredPullRequestReviews | null; - /** - * 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. - */ - restrictions: ReposUpdateBranchProtectionParamsRestrictions | null; - /** - * 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. - */ - required_linear_history?: boolean; - /** - * 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_force_pushes?: boolean | null; - /** - * 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. - */ - allow_deletions?: boolean; -}; -declare type ReposUpdateBranchProtectionRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateBranchProtectionResponseDataAllowDeletions = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataAllowForcePushes = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredLinearHistory = { - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsAppsItem = { - id: number; - slug: string; - node_id: string; - owner: ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposUpdateBranchProtectionResponseDataRestrictionsAppsItemPermissions; - events: Array; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRestrictions = { - url: string; - users_url: string; - teams_url: string; - apps_url: string; - users: Array; - teams: Array; - apps: Array; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviews = { - url: string; - dismissal_restrictions: ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposUpdateBranchProtectionResponseDataEnforceAdmins = { - url: string; - enabled: boolean; -}; -declare type ReposUpdateBranchProtectionResponseDataRequiredStatusChecks = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposUpdateBranchProtectionResponseData = { - url: string; - required_status_checks: ReposUpdateBranchProtectionResponseDataRequiredStatusChecks; - enforce_admins: ReposUpdateBranchProtectionResponseDataEnforceAdmins; - required_pull_request_reviews: ReposUpdateBranchProtectionResponseDataRequiredPullRequestReviews; - restrictions: ReposUpdateBranchProtectionResponseDataRestrictions; - required_linear_history: ReposUpdateBranchProtectionResponseDataRequiredLinearHistory; - allow_force_pushes: ReposUpdateBranchProtectionResponseDataAllowForcePushes; - allow_deletions: ReposUpdateBranchProtectionResponseDataAllowDeletions; -}; -declare type ReposRemoveBranchProtectionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveBranchProtectionRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchAdminEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchAdminEnforcementRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchAdminEnforcementResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposAddProtectedBranchAdminEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposAddProtectedBranchAdminEnforcementRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchAdminEnforcementResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposRemoveProtectedBranchAdminEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchAdminEnforcementRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposGetProtectedBranchPullRequestReviewEnforcementResponseData = { - url: string; - dismissal_restrictions: ReposGetProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * 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. - */ - dismissal_restrictions?: ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions; - /** - * Set to `true` if you want to automatically dismiss approving reviews when someone pushes a new commit. - */ - dismiss_stale_reviews?: boolean; - /** - * Blocks merging pull requests until [code owners](https://help.github.com/articles/about-code-owners/) have reviewed. - */ - require_code_owner_reviews?: boolean; - /** - * Specifies the number of reviewers required to approve pull requests. Use a number between 1 and 6. - */ - required_approving_review_count?: number; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictionsUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions = { - url: string; - users_url: string; - teams_url: string; - users: Array; - teams: Array; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseData = { - url: string; - dismissal_restrictions: ReposUpdateProtectedBranchPullRequestReviewEnforcementResponseDataDismissalRestrictions; - dismiss_stale_reviews: boolean; - require_code_owner_reviews: boolean; - required_approving_review_count: number; -}; -declare type ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredSignaturesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -} & RequiredPreview<"zzzax">; -declare type ReposGetProtectedBranchRequiredSignaturesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredSignaturesResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposAddProtectedBranchRequiredSignaturesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -} & RequiredPreview<"zzzax">; -declare type ReposAddProtectedBranchRequiredSignaturesRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchRequiredSignaturesResponseData = { - url: string; - enabled: boolean; -}; -declare type ReposRemoveProtectedBranchRequiredSignaturesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -} & RequiredPreview<"zzzax">; -declare type ReposRemoveProtectedBranchRequiredSignaturesRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_signatures"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchRequiredStatusChecksRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRequiredStatusChecksResponseData = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposUpdateProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * Require branches to be up to date before merging. - */ - strict?: boolean; - /** - * The list of status checks to require in order to merge into this branch - */ - contexts?: string[]; -}; -declare type ReposUpdateProtectedBranchRequiredStatusChecksRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateProtectedBranchRequiredStatusChecksResponseData = { - url: string; - strict: boolean; - contexts: Array; - contexts_url: string; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposListProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * contexts parameter - */ - contexts: string[]; -}; -declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposAddProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * contexts parameter - */ - contexts: string[]; -}; -declare type ReposAddProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * contexts parameter - */ - contexts: string[]; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchRequiredStatusChecksContextsResponseData = Array; -declare type ReposGetProtectedBranchRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetProtectedBranchRestrictionsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataAppsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataAppsItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataAppsItem = { - id: number; - slug: string; - node_id: string; - owner: ReposGetProtectedBranchRestrictionsResponseDataAppsItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposGetProtectedBranchRestrictionsResponseDataAppsItemPermissions; - events: Array; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetProtectedBranchRestrictionsResponseDataUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetProtectedBranchRestrictionsResponseData = { - url: string; - users_url: string; - teams_url: string; - apps_url: string; - users: Array; - teams: Array; - apps: Array; -}; -declare type ReposRemoveProtectedBranchRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposRemoveProtectedBranchRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetAppsWithAccessToProtectedBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposGetAppsWithAccessToProtectedBranchResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposGetAppsWithAccessToProtectedBranchResponseDataItemPermissions; - events: Array; -}; -declare type ReposGetAppsWithAccessToProtectedBranchResponseData = Array; -declare type ReposReplaceProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * apps parameter - */ - apps: string[]; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposReplaceProtectedBranchAppRestrictionsResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposReplaceProtectedBranchAppRestrictionsResponseDataItemPermissions; - events: Array; -}; -declare type ReposReplaceProtectedBranchAppRestrictionsResponseData = Array; -declare type ReposAddProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * apps parameter - */ - apps: string[]; -}; -declare type ReposAddProtectedBranchAppRestrictionsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposAddProtectedBranchAppRestrictionsResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposAddProtectedBranchAppRestrictionsResponseDataItemPermissions; - events: Array; -}; -declare type ReposAddProtectedBranchAppRestrictionsResponseData = Array; -declare type ReposRemoveProtectedBranchAppRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * apps parameter - */ - apps: string[]; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseDataItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseDataItem = { - id: number; - slug: string; - node_id: string; - owner: ReposRemoveProtectedBranchAppRestrictionsResponseDataItemOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ReposRemoveProtectedBranchAppRestrictionsResponseDataItemPermissions; - events: Array; -}; -declare type ReposRemoveProtectedBranchAppRestrictionsResponseData = Array; -declare type ReposGetTeamsWithAccessToProtectedBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetTeamsWithAccessToProtectedBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetTeamsWithAccessToProtectedBranchResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposGetTeamsWithAccessToProtectedBranchResponseData = Array; -declare type ReposReplaceProtectedBranchTeamRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * teams parameter - */ - teams: string[]; -}; -declare type ReposReplaceProtectedBranchTeamRestrictionsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchTeamRestrictionsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposReplaceProtectedBranchTeamRestrictionsResponseData = Array; -declare type ReposAddProtectedBranchTeamRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * teams parameter - */ - teams: string[]; -}; -declare type ReposAddProtectedBranchTeamRestrictionsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchTeamRestrictionsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposAddProtectedBranchTeamRestrictionsResponseData = Array; -declare type ReposRemoveProtectedBranchTeamRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * teams parameter - */ - teams: string[]; -}; -declare type ReposRemoveProtectedBranchTeamRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchTeamRestrictionsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposRemoveProtectedBranchTeamRestrictionsResponseData = Array; -declare type ReposGetUsersWithAccessToProtectedBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; -}; -declare type ReposGetUsersWithAccessToProtectedBranchRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetUsersWithAccessToProtectedBranchResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetUsersWithAccessToProtectedBranchResponseData = Array; -declare type ReposReplaceProtectedBranchUserRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * users parameter - */ - users: string[]; -}; -declare type ReposReplaceProtectedBranchUserRestrictionsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceProtectedBranchUserRestrictionsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposReplaceProtectedBranchUserRestrictionsResponseData = Array; -declare type ReposAddProtectedBranchUserRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * users parameter - */ - users: string[]; -}; -declare type ReposAddProtectedBranchUserRestrictionsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddProtectedBranchUserRestrictionsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddProtectedBranchUserRestrictionsResponseData = Array; -declare type ReposRemoveProtectedBranchUserRestrictionsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * branch parameter - */ - branch: string; - /** - * users parameter - */ - users: string[]; -}; -declare type ReposRemoveProtectedBranchUserRestrictionsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRemoveProtectedBranchUserRestrictionsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposRemoveProtectedBranchUserRestrictionsResponseData = Array; -declare type ChecksCreateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the check. For example, "code-coverage". - */ - name: string; - /** - * The SHA of the commit. - */ - head_sha: string; - /** - * 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. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * 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`. - */ - started_at?: string; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. 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`. Only GitHub can change a check run conclusion to `stale`. - */ - conclusion?: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required"; - /** - * 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`. - */ - completed_at?: string; - /** - * 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://developer.github.com/v3/checks/runs/#output-object) description. - */ - output?: ChecksCreateParamsOutput; - /** - * 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://developer.github.com/v3/activity/events/types/#checkrunevent) to your app. Each action includes a `label`, `identifier` and `description`. A maximum of three actions are accepted. See the [`actions` object](https://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." - */ - actions?: ChecksCreateParamsActions[]; -} & RequiredPreview<"antiope">; -declare type ChecksCreateRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/check-runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksCreateResponseDataPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksCreateResponseDataPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksCreateResponseDataPullRequestsItemBaseRepo; -}; -declare type ChecksCreateResponseDataPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksCreateResponseDataPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksCreateResponseDataPullRequestsItemHeadRepo; -}; -declare type ChecksCreateResponseDataPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksCreateResponseDataPullRequestsItemHead; - base: ChecksCreateResponseDataPullRequestsItemBase; -}; -declare type ChecksCreateResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksCreateResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksCreateResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksCreateResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksCreateResponseDataAppPermissions; - events: Array; -}; -declare type ChecksCreateResponseDataCheckSuite = { - id: number; -}; -declare type ChecksCreateResponseDataOutput = { - title: string; - summary: string; - text: string; - annotations_count?: number; - annotations_url?: string; -}; -declare type ChecksCreateResponseData = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: null | string; - started_at: string; - completed_at: null | string; - output: ChecksCreateResponseDataOutput; - name: string; - check_suite: ChecksCreateResponseDataCheckSuite; - app: ChecksCreateResponseDataApp; - pull_requests: Array; -}; -declare type ChecksUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_run_id parameter - */ - check_run_id: number; - /** - * The name of the check. For example, "code-coverage". - */ - name?: string; - /** - * The URL of the integrator's site that has the full details of the check. - */ - details_url?: string; - /** - * A reference for the run on the integrator's system. - */ - external_id?: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - started_at?: string; - /** - * The current status. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * **Required if you provide `completed_at` or a `status` of `completed`**. The final conclusion of the check. Can be one of `success`, `failure`, `neutral`, `cancelled`, `skipped`, `timed_out`, or `action_required`. - * **Note:** Providing `conclusion` will automatically set the `status` parameter to `completed`. Only GitHub can change a check run conclusion to `stale`. - */ - conclusion?: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required"; - /** - * 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`. - */ - completed_at?: string; - /** - * 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://developer.github.com/v3/checks/runs/#output-object-1) description. - */ - output?: ChecksUpdateParamsOutput; - /** - * 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://developer.github.com/v3/checks/runs/#actions-object) description. To learn more about check runs and requested actions, see "[Check runs and requested actions](https://developer.github.com/v3/checks/runs/#check-runs-and-requested-actions)." - */ - actions?: ChecksUpdateParamsActions[]; -} & RequiredPreview<"antiope">; -declare type ChecksUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/check-runs/:check_run_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksUpdateResponseDataPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksUpdateResponseDataPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksUpdateResponseDataPullRequestsItemBaseRepo; -}; -declare type ChecksUpdateResponseDataPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksUpdateResponseDataPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksUpdateResponseDataPullRequestsItemHeadRepo; -}; -declare type ChecksUpdateResponseDataPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksUpdateResponseDataPullRequestsItemHead; - base: ChecksUpdateResponseDataPullRequestsItemBase; -}; -declare type ChecksUpdateResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksUpdateResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksUpdateResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksUpdateResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksUpdateResponseDataAppPermissions; - events: Array; -}; -declare type ChecksUpdateResponseDataCheckSuite = { - id: number; -}; -declare type ChecksUpdateResponseDataOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksUpdateResponseData = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksUpdateResponseDataOutput; - name: string; - check_suite: ChecksUpdateResponseDataCheckSuite; - app: ChecksUpdateResponseDataApp; - pull_requests: Array; -}; -declare type ChecksGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_run_id parameter - */ - check_run_id: number; -} & RequiredPreview<"antiope">; -declare type ChecksGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-runs/:check_run_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksGetResponseDataPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksGetResponseDataPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksGetResponseDataPullRequestsItemBaseRepo; -}; -declare type ChecksGetResponseDataPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksGetResponseDataPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksGetResponseDataPullRequestsItemHeadRepo; -}; -declare type ChecksGetResponseDataPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksGetResponseDataPullRequestsItemHead; - base: ChecksGetResponseDataPullRequestsItemBase; -}; -declare type ChecksGetResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksGetResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksGetResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksGetResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksGetResponseDataAppPermissions; - events: Array; -}; -declare type ChecksGetResponseDataCheckSuite = { - id: number; -}; -declare type ChecksGetResponseDataOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksGetResponseData = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksGetResponseDataOutput; - name: string; - check_suite: ChecksGetResponseDataCheckSuite; - app: ChecksGetResponseDataApp; - pull_requests: Array; -}; -declare type ChecksListAnnotationsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_run_id parameter - */ - check_run_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListAnnotationsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-runs/:check_run_id/annotations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListAnnotationsResponseDataItem = { - path: string; - start_line: number; - end_line: number; - start_column: number; - end_column: number; - annotation_level: string; - title: string; - message: string; - raw_details: string; -}; -declare type ChecksListAnnotationsResponseData = Array; -declare type ChecksCreateSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The sha of the head commit. - */ - head_sha: string; -} & RequiredPreview<"antiope">; -declare type ChecksCreateSuiteRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/check-suites"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksCreateSuiteResponseDataRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksCreateSuiteResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksCreateSuiteResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksCreateSuiteResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksCreateSuiteResponseDataRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksCreateSuiteResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksCreateSuiteResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksCreateSuiteResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksCreateSuiteResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksCreateSuiteResponseDataAppPermissions; - events: Array; -}; -declare type ChecksCreateSuiteResponseData = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksCreateSuiteResponseDataApp; - repository: ChecksCreateSuiteResponseDataRepository; -}; -declare type ChecksSetSuitesPreferencesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Enables or disables automatic creation of CheckSuite events upon pushes to the repository. Enabled by default. See the [`auto_trigger_checks` object](https://developer.github.com/v3/checks/suites/#auto_trigger_checks-object) description for details. - */ - auto_trigger_checks?: ChecksSetSuitesPreferencesParamsAutoTriggerChecks[]; -} & RequiredPreview<"antiope">; -declare type ChecksSetSuitesPreferencesRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/check-suites/preferences"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksSetSuitesPreferencesResponseDataRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksSetSuitesPreferencesResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksSetSuitesPreferencesResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksSetSuitesPreferencesResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksSetSuitesPreferencesResponseDataRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksSetSuitesPreferencesResponseDataPreferencesAutoTriggerChecksItem = { - app_id: number; - setting: boolean; -}; -declare type ChecksSetSuitesPreferencesResponseDataPreferences = { - auto_trigger_checks: Array; -}; -declare type ChecksSetSuitesPreferencesResponseData = { - preferences: ChecksSetSuitesPreferencesResponseDataPreferences; - repository: ChecksSetSuitesPreferencesResponseDataRepository; -}; -declare type ChecksGetSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_suite_id parameter - */ - check_suite_id: number; -} & RequiredPreview<"antiope">; -declare type ChecksGetSuiteRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-suites/:check_suite_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksGetSuiteResponseDataRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksGetSuiteResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksGetSuiteResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksGetSuiteResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksGetSuiteResponseDataRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksGetSuiteResponseDataAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksGetSuiteResponseDataAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksGetSuiteResponseDataApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksGetSuiteResponseDataAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksGetSuiteResponseDataAppPermissions; - events: Array; -}; -declare type ChecksGetSuiteResponseData = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksGetSuiteResponseDataApp; - repository: ChecksGetSuiteResponseDataRepository; -}; -declare type ChecksListForSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_suite_id parameter - */ - check_suite_id: number; - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListForSuiteRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/check-suites/:check_suite_id/check-runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBaseRepo; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHeadRepo; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemHead; - base: ChecksListForSuiteResponseDataCheckRunsItemPullRequestsItemBase; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksListForSuiteResponseDataCheckRunsItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksListForSuiteResponseDataCheckRunsItemAppPermissions; - events: Array; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemCheckSuite = { - id: number; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItemOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksListForSuiteResponseDataCheckRunsItem = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksListForSuiteResponseDataCheckRunsItemOutput; - name: string; - check_suite: ChecksListForSuiteResponseDataCheckRunsItemCheckSuite; - app: ChecksListForSuiteResponseDataCheckRunsItemApp; - pull_requests: Array; -}; -declare type ChecksListForSuiteResponseData = { - total_count: number; - check_runs: Array; -}; -declare type ChecksRerequestSuiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * check_suite_id parameter - */ - check_suite_id: number; -} & RequiredPreview<"antiope">; -declare type ChecksRerequestSuiteRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/check-suites/:check_suite_id/rerequest"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodeScanningListAlertsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Set to `closed` to list only closed code scanning alerts. - */ - state?: string; - /** - * Returns a list of code scanning alerts for a specific brach reference. The `ref` must be formatted as `heads/`. - */ - ref?: string; -}; -declare type CodeScanningListAlertsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/code-scanning/alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodeScanningListAlertsForRepoResponseDataItem = { - rule_id: string; - rule_severity: string; - rule_description: string; - tool: string; - created_at: string; - open: boolean; - closed_by: null; - closed_at: null; - url: string; - html_url: string; -}; -declare type CodeScanningListAlertsForRepoResponseData = Array; -declare type CodeScanningGetAlertEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * alert_id parameter - */ - alert_id: number; -}; -declare type CodeScanningGetAlertRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/code-scanning/alerts/:alert_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodeScanningGetAlertResponseData = { - rule_id: string; - rule_severity: string; - rule_description: string; - tool: string; - created_at: string; - open: boolean; - closed_by: null; - closed_at: null; - url: string; - html_url: string; -}; -declare type ReposListCollaboratorsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - affiliation?: "outside" | "direct" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCollaboratorsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/collaborators"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCollaboratorsResponseDataItemPermissions = { - pull: boolean; - push: boolean; - admin: boolean; -}; -declare type ReposListCollaboratorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - permissions: ReposListCollaboratorsResponseDataItemPermissions; -}; -declare type ReposListCollaboratorsResponseData = Array; -declare type ReposCheckCollaboratorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; -}; -declare type ReposCheckCollaboratorRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddCollaboratorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin" | "maintain" | "triage"; -}; -declare type ReposAddCollaboratorRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddCollaboratorResponseDataInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddCollaboratorResponseDataInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddCollaboratorResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposAddCollaboratorResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposAddCollaboratorResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposAddCollaboratorResponseData = { - id: number; - repository: ReposAddCollaboratorResponseDataRepository; - invitee: ReposAddCollaboratorResponseDataInvitee; - inviter: ReposAddCollaboratorResponseDataInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type ReposRemoveCollaboratorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; -}; -declare type ReposRemoveCollaboratorRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/collaborators/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCollaboratorPermissionLevelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * username parameter - */ - username: string; -}; -declare type ReposGetCollaboratorPermissionLevelRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/collaborators/:username/permission"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCollaboratorPermissionLevelResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCollaboratorPermissionLevelResponseData = { - permission: string; - user: ReposGetCollaboratorPermissionLevelResponseDataUser; -}; -declare type ReposListCommitCommentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCommitCommentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommitCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommitCommentsResponseDataItem = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposListCommitCommentsResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type ReposListCommitCommentsResponseData = Array; -declare type ReposGetCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type ReposGetCommitCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCommitCommentResponseData = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposGetCommitCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type ReposUpdateCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The contents of the comment - */ - body: string; -}; -declare type ReposUpdateCommitCommentRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateCommitCommentResponseData = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposUpdateCommitCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type ReposDeleteCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type ReposDeleteCommitCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a commit comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForCommitCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForCommitCommentResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForCommitCommentResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForCommitCommentResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForCommitCommentResponseData = Array; -declare type ReactionsCreateForCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the commit comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForCommitCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForCommitCommentResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForCommitCommentResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForCommitCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommitsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * SHA or branch to start listing commits from. Default: the repository’s default branch (usually `master`). - */ - sha?: string; - /** - * Only commits containing this file path will be returned. - */ - path?: string; - /** - * GitHub login or email address by which to filter by commit author. - */ - author?: string; - /** - * Only commits after 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`. - */ - since?: string; - /** - * 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`. - */ - until?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCommitsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommitsResponseDataItemParentsItem = { - url: string; - sha: string; -}; -declare type ReposListCommitsResponseDataItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommitsResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommitsResponseDataItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposListCommitsResponseDataItemCommitTree = { - url: string; - sha: string; -}; -declare type ReposListCommitsResponseDataItemCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposListCommitsResponseDataItemCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposListCommitsResponseDataItemCommit = { - url: string; - author: ReposListCommitsResponseDataItemCommitAuthor; - committer: ReposListCommitsResponseDataItemCommitCommitter; - message: string; - tree: ReposListCommitsResponseDataItemCommitTree; - comment_count: number; - verification: ReposListCommitsResponseDataItemCommitVerification; -}; -declare type ReposListCommitsResponseDataItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposListCommitsResponseDataItemCommit; - author: ReposListCommitsResponseDataItemAuthor; - committer: ReposListCommitsResponseDataItemCommitter; - parents: Array; -}; -declare type ReposListCommitsResponseData = Array; -declare type ReposListBranchesForHeadCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; -} & RequiredPreview<"groot">; -declare type ReposListBranchesForHeadCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:commit_sha/branches-where-head"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListBranchesForHeadCommitResponseDataItemCommit = { - sha: string; - url: string; -}; -declare type ReposListBranchesForHeadCommitResponseDataItem = { - name: string; - commit: ReposListBranchesForHeadCommitResponseDataItemCommit; - protected: boolean; -}; -declare type ReposListBranchesForHeadCommitResponseData = Array; -declare type ReposListCommentsForCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListCommentsForCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:commit_sha/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListCommentsForCommitResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListCommentsForCommitResponseDataItem = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposListCommentsForCommitResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type ReposListCommentsForCommitResponseData = Array; -declare type ReposCreateCommitCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; - /** - * The contents of the comment. - */ - body: string; - /** - * Relative path of the file to comment on. - */ - path?: string; - /** - * Line index in the diff to comment on. - */ - position?: number; - /** - * **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. - */ - line?: number; -}; -declare type ReposCreateCommitCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/commits/:commit_sha/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateCommitCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateCommitCommentResponseData = { - html_url: string; - url: string; - id: number; - node_id: string; - body: string; - path: string; - position: number; - line: number; - commit_id: string; - user: ReposCreateCommitCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"groot">; -declare type ReposListPullRequestsAssociatedWithCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:commit_sha/pulls"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksStatuses = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksCommits = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComment = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComments = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksComments = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksIssue = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksHtml = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksSelf = { - href: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLinks = { - self: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksSelf; - html: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksHtml; - issue: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksIssue; - comments: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksComments; - review_comments: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComments; - review_comment: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksReviewComment; - commits: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksCommits; - statuses: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinksStatuses; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemBase = { - label: string; - ref: string; - sha: string; - user: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseUser; - repo: ReposListPullRequestsAssociatedWithCommitResponseDataItemBaseRepo; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemHead = { - label: string; - ref: string; - sha: string; - user: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadUser; - repo: ReposListPullRequestsAssociatedWithCommitResponseDataItemHeadRepo; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseDataItem = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: ReposListPullRequestsAssociatedWithCommitResponseDataItemUser; - body: string; - labels: Array; - milestone: ReposListPullRequestsAssociatedWithCommitResponseDataItemMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: ReposListPullRequestsAssociatedWithCommitResponseDataItemAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: ReposListPullRequestsAssociatedWithCommitResponseDataItemHead; - base: ReposListPullRequestsAssociatedWithCommitResponseDataItemBase; - _links: ReposListPullRequestsAssociatedWithCommitResponseDataItemLinks; - author_association: string; - draft: boolean; -}; -declare type ReposListPullRequestsAssociatedWithCommitResponseData = Array; -declare type ReposGetCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type ReposGetCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCommitResponseDataFilesItem = { - filename: string; - additions: number; - deletions: number; - changes: number; - status: string; - raw_url: string; - blob_url: string; - patch: string; -}; -declare type ReposGetCommitResponseDataStats = { - additions: number; - deletions: number; - total: number; -}; -declare type ReposGetCommitResponseDataParentsItem = { - url: string; - sha: string; -}; -declare type ReposGetCommitResponseDataCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCommitResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCommitResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposGetCommitResponseDataCommitTree = { - url: string; - sha: string; -}; -declare type ReposGetCommitResponseDataCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposGetCommitResponseDataCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposGetCommitResponseDataCommit = { - url: string; - author: ReposGetCommitResponseDataCommitAuthor; - committer: ReposGetCommitResponseDataCommitCommitter; - message: string; - tree: ReposGetCommitResponseDataCommitTree; - comment_count: number; - verification: ReposGetCommitResponseDataCommitVerification; -}; -declare type ReposGetCommitResponseData = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposGetCommitResponseDataCommit; - author: ReposGetCommitResponseDataAuthor; - committer: ReposGetCommitResponseDataCommitter; - parents: Array; - stats: ReposGetCommitResponseDataStats; - files: Array; -}; -declare type ChecksListForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Returns check runs with the specified `name`. - */ - check_name?: string; - /** - * Returns check runs with the specified `status`. Can be one of `queued`, `in_progress`, or `completed`. - */ - status?: "queued" | "in_progress" | "completed"; - /** - * Filters check runs by their `completed_at` timestamp. Can be one of `latest` (returning the most recent check runs) or `all`. - */ - filter?: "latest" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/check-runs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBaseRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBase = { - ref: string; - sha: string; - repo: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBaseRepo; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHeadRepo = { - id: number; - url: string; - name: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHead = { - ref: string; - sha: string; - repo: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHeadRepo; -}; -declare type ChecksListForRefResponseDataCheckRunsItemPullRequestsItem = { - url: string; - id: number; - number: number; - head: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemHead; - base: ChecksListForRefResponseDataCheckRunsItemPullRequestsItemBase; -}; -declare type ChecksListForRefResponseDataCheckRunsItemAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItemApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksListForRefResponseDataCheckRunsItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksListForRefResponseDataCheckRunsItemAppPermissions; - events: Array; -}; -declare type ChecksListForRefResponseDataCheckRunsItemCheckSuite = { - id: number; -}; -declare type ChecksListForRefResponseDataCheckRunsItemOutput = { - title: string; - summary: string; - text: string; - annotations_count: number; - annotations_url: string; -}; -declare type ChecksListForRefResponseDataCheckRunsItem = { - id: number; - head_sha: string; - node_id: string; - external_id: string; - url: string; - html_url: string; - details_url: string; - status: string; - conclusion: string; - started_at: string; - completed_at: string; - output: ChecksListForRefResponseDataCheckRunsItemOutput; - name: string; - check_suite: ChecksListForRefResponseDataCheckRunsItemCheckSuite; - app: ChecksListForRefResponseDataCheckRunsItemApp; - pull_requests: Array; -}; -declare type ChecksListForRefResponseData = { - total_count: number; - check_runs: Array; -}; -declare type ChecksListSuitesForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Filters check suites by GitHub App `id`. - */ - app_id?: number; - /** - * Filters checks suites by the name of the [check run](https://developer.github.com/v3/checks/runs/). - */ - check_name?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"antiope">; -declare type ChecksListSuitesForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/check-suites"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ChecksListSuitesForRefResponseDataCheckSuitesItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemAppPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemAppOwner = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItemApp = { - id: number; - slug: string; - node_id: string; - owner: ChecksListSuitesForRefResponseDataCheckSuitesItemAppOwner; - name: string; - description: string; - external_url: string; - html_url: string; - created_at: string; - updated_at: string; - permissions: ChecksListSuitesForRefResponseDataCheckSuitesItemAppPermissions; - events: Array; -}; -declare type ChecksListSuitesForRefResponseDataCheckSuitesItem = { - id: number; - node_id: string; - head_branch: string; - head_sha: string; - status: string; - conclusion: string; - url: string; - before: string; - after: string; - pull_requests: Array; - app: ChecksListSuitesForRefResponseDataCheckSuitesItemApp; - repository: ChecksListSuitesForRefResponseDataCheckSuitesItemRepository; -}; -declare type ChecksListSuitesForRefResponseData = { - total_count: number; - check_suites: Array; -}; -declare type ReposGetCombinedStatusForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type ReposGetCombinedStatusForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/status"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCombinedStatusForRefResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetCombinedStatusForRefResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposGetCombinedStatusForRefResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposGetCombinedStatusForRefResponseDataStatusesItem = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; -}; -declare type ReposGetCombinedStatusForRefResponseData = { - state: string; - statuses: Array; - sha: string; - total_count: number; - repository: ReposGetCombinedStatusForRefResponseDataRepository; - commit_url: string; - url: string; -}; -declare type ReposListStatusesForRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListStatusesForRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/commits/:ref/statuses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListStatusesForRefResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListStatusesForRefResponseDataItem = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; - creator: ReposListStatusesForRefResponseDataItemCreator; -}; -declare type ReposListStatusesForRefResponseData = Array; -declare type CodesOfConductGetForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"scarlet-witch">; -declare type CodesOfConductGetForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/community/code_of_conduct"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type CodesOfConductGetForRepoResponseData = { - key: string; - name: string; - url: string; - body: string; -}; -declare type ReposRetrieveCommunityProfileMetricsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposRetrieveCommunityProfileMetricsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/community/profile"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesReadme = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesLicense = { - name: string; - key: string; - spdx_id: string; - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesPullRequestTemplate = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesIssueTemplate = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesContributing = { - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFilesCodeOfConduct = { - name: string; - key: string; - url: string; - html_url: string; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseDataFiles = { - code_of_conduct: ReposRetrieveCommunityProfileMetricsResponseDataFilesCodeOfConduct; - contributing: ReposRetrieveCommunityProfileMetricsResponseDataFilesContributing; - issue_template: ReposRetrieveCommunityProfileMetricsResponseDataFilesIssueTemplate; - pull_request_template: ReposRetrieveCommunityProfileMetricsResponseDataFilesPullRequestTemplate; - license: ReposRetrieveCommunityProfileMetricsResponseDataFilesLicense; - readme: ReposRetrieveCommunityProfileMetricsResponseDataFilesReadme; -}; -declare type ReposRetrieveCommunityProfileMetricsResponseData = { - health_percentage: number; - description: string; - documentation: boolean; - files: ReposRetrieveCommunityProfileMetricsResponseDataFiles; - updated_at: string; -}; -declare type ReposCompareCommitsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * base parameter - */ - base: string; - /** - * head parameter - */ - head: string; -}; -declare type ReposCompareCommitsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/compare/:base...:head"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCompareCommitsResponseDataFilesItem = { - sha: string; - filename: string; - status: string; - additions: number; - deletions: number; - changes: number; - blob_url: string; - raw_url: string; - contents_url: string; - patch: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemParentsItem = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataCommitsItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitTree = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataCommitsItemCommit = { - url: string; - author: ReposCompareCommitsResponseDataCommitsItemCommitAuthor; - committer: ReposCompareCommitsResponseDataCommitsItemCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseDataCommitsItemCommitTree; - comment_count: number; - verification: ReposCompareCommitsResponseDataCommitsItemCommitVerification; -}; -declare type ReposCompareCommitsResponseDataCommitsItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposCompareCommitsResponseDataCommitsItemCommit; - author: ReposCompareCommitsResponseDataCommitsItemAuthor; - committer: ReposCompareCommitsResponseDataCommitsItemCommitter; - parents: Array; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitParentsItem = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitTree = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommitCommit = { - url: string; - author: ReposCompareCommitsResponseDataMergeBaseCommitCommitAuthor; - committer: ReposCompareCommitsResponseDataMergeBaseCommitCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseDataMergeBaseCommitCommitTree; - comment_count: number; - verification: ReposCompareCommitsResponseDataMergeBaseCommitCommitVerification; -}; -declare type ReposCompareCommitsResponseDataMergeBaseCommit = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposCompareCommitsResponseDataMergeBaseCommitCommit; - author: ReposCompareCommitsResponseDataMergeBaseCommitAuthor; - committer: ReposCompareCommitsResponseDataMergeBaseCommitCommitter; - parents: Array; -}; -declare type ReposCompareCommitsResponseDataBaseCommitParentsItem = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataBaseCommitAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitTree = { - url: string; - sha: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type ReposCompareCommitsResponseDataBaseCommitCommit = { - url: string; - author: ReposCompareCommitsResponseDataBaseCommitCommitAuthor; - committer: ReposCompareCommitsResponseDataBaseCommitCommitCommitter; - message: string; - tree: ReposCompareCommitsResponseDataBaseCommitCommitTree; - comment_count: number; - verification: ReposCompareCommitsResponseDataBaseCommitCommitVerification; -}; -declare type ReposCompareCommitsResponseDataBaseCommit = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: ReposCompareCommitsResponseDataBaseCommitCommit; - author: ReposCompareCommitsResponseDataBaseCommitAuthor; - committer: ReposCompareCommitsResponseDataBaseCommitCommitter; - parents: Array; -}; -declare type ReposCompareCommitsResponseData = { - url: string; - html_url: string; - permalink_url: string; - diff_url: string; - patch_url: string; - base_commit: ReposCompareCommitsResponseDataBaseCommit; - merge_base_commit: ReposCompareCommitsResponseDataMergeBaseCommit; - status: string; - ahead_by: number; - behind_by: number; - total_commits: number; - commits: Array; - files: Array; -}; -declare type ReposGetContentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * path parameter - */ - path: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; -}; -declare type ReposGetContentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/contents/:path"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetContentsResponseDataItemLinks = { - self: string; - git: string; - html: string; -}; -declare type ReposGetContentsResponseDataItem = { - type: string; - size: number; - name: string; - path: string; - sha: string; - url: string; - git_url: string; - html_url: string; - download_url: string | null; - _links: ReposGetContentsResponseDataItemLinks; -}; -declare type ReposGetContentsResponseDataLinks = { - git: string; - self: string; - html: string; -}; -declare type ReposGetContentsResponseData = { - type: string; - encoding?: string; - size: number; - name: string; - path: string; - content?: string; - sha: string; - url: string; - git_url: string; - html_url: string; - download_url: string | null; - _links: ReposGetContentsResponseDataLinks; - target?: string; - submodule_git_url?: string; -} | Array; -declare type ReposCreateOrUpdateFileEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * path parameter - */ - path: string; - /** - * The commit message. - */ - message: string; - /** - * The new file content, using Base64 encoding. - */ - content: string; - /** - * **Required if you are updating a file**. The blob SHA of the file being replaced. - */ - sha?: string; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * The person that committed the file. Default: the authenticated user. - */ - committer?: ReposCreateOrUpdateFileParamsCommitter; - /** - * The author of the file. Default: The `committer` or the authenticated user if you omit `committer`. - */ - author?: ReposCreateOrUpdateFileParamsAuthor; -}; -declare type ReposCreateOrUpdateFileRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/contents/:path"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitParentsItem = { - url: string; - html_url: string; - sha: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitTree = { - url: string; - sha: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitCommitter = { - date: string; - name: string; - email: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommitAuthor = { - date: string; - name: string; - email: string; -}; -declare type ReposCreateOrUpdateFileResponseDataCommit = { - sha: string; - node_id: string; - url: string; - html_url: string; - author: ReposCreateOrUpdateFileResponseDataCommitAuthor; - committer: ReposCreateOrUpdateFileResponseDataCommitCommitter; - message: string; - tree: ReposCreateOrUpdateFileResponseDataCommitTree; - parents: Array; - verification: ReposCreateOrUpdateFileResponseDataCommitVerification; -}; -declare type ReposCreateOrUpdateFileResponseDataContentLinks = { - self: string; - git: string; - html: string; -}; -declare type ReposCreateOrUpdateFileResponseDataContent = { - name: string; - path: string; - sha: string; - size: number; - url: string; - html_url: string; - git_url: string; - download_url: string; - type: string; - _links: ReposCreateOrUpdateFileResponseDataContentLinks; -}; -declare type ReposCreateOrUpdateFileResponseData = { - content: ReposCreateOrUpdateFileResponseDataContent; - commit: ReposCreateOrUpdateFileResponseDataCommit; -}; -declare type ReposDeleteFileEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * path parameter - */ - path: string; - /** - * The commit message. - */ - message: string; - /** - * The blob SHA of the file being replaced. - */ - sha: string; - /** - * The branch name. Default: the repository’s default branch (usually `master`) - */ - branch?: string; - /** - * object containing information about the committer. - */ - committer?: ReposDeleteFileParamsCommitter; - /** - * object containing information about the author. - */ - author?: ReposDeleteFileParamsAuthor; -}; -declare type ReposDeleteFileRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/contents/:path"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDeleteFileResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposDeleteFileResponseDataCommitParentsItem = { - url: string; - html_url: string; - sha: string; -}; -declare type ReposDeleteFileResponseDataCommitTree = { - url: string; - sha: string; -}; -declare type ReposDeleteFileResponseDataCommitCommitter = { - date: string; - name: string; - email: string; -}; -declare type ReposDeleteFileResponseDataCommitAuthor = { - date: string; - name: string; - email: string; -}; -declare type ReposDeleteFileResponseDataCommit = { - sha: string; - node_id: string; - url: string; - html_url: string; - author: ReposDeleteFileResponseDataCommitAuthor; - committer: ReposDeleteFileResponseDataCommitCommitter; - message: string; - tree: ReposDeleteFileResponseDataCommitTree; - parents: Array; - verification: ReposDeleteFileResponseDataCommitVerification; -}; -declare type ReposDeleteFileResponseData = { - content: null; - commit: ReposDeleteFileResponseDataCommit; -}; -declare type ReposListContributorsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Set to `1` or `true` to include anonymous contributors in results. - */ - anon?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListContributorsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/contributors"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListContributorsResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - contributions: number; -}; -declare type ReposListContributorsResponseData = Array; -declare type ReposListDeploymentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The SHA recorded at creation time. - */ - sha?: string; - /** - * The name of the ref. This can be a branch, tag, or SHA. - */ - ref?: string; - /** - * The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - /** - * The name of the environment that was deployed to (e.g., `staging` or `production`). - */ - environment?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDeploymentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeploymentsResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListDeploymentsResponseDataItemPayload = { - deploy: string; -}; -declare type ReposListDeploymentsResponseDataItem = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposListDeploymentsResponseDataItemPayload; - original_environment: string; - environment: string; - description: string; - creator: ReposListDeploymentsResponseDataItemCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; -}; -declare type ReposListDeploymentsResponseData = Array; -declare type ReposCreateDeploymentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The ref to deploy. This can be a branch, tag, or SHA. - */ - ref: string; - /** - * Specifies a task to execute (e.g., `deploy` or `deploy:migrations`). - */ - task?: string; - /** - * Attempts to automatically merge the default branch into the requested ref, if it's behind the default branch. - */ - auto_merge?: boolean; - /** - * The [status](https://developer.github.com/v3/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. - */ - required_contexts?: string[]; - /** - * JSON payload with extra information about the deployment. - */ - payload?: string; - /** - * Name for the target deployment environment (e.g., `production`, `staging`, `qa`). - */ - environment?: string; - /** - * Short description of the deployment. - */ - description?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - transient_environment?: boolean; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - production_environment?: boolean; -}; -declare type ReposCreateDeploymentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/deployments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateDeploymentResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateDeploymentResponseDataPayload = { - deploy: string; -}; -declare type ReposCreateDeploymentResponseData = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposCreateDeploymentResponseDataPayload; - original_environment: string; - environment: string; - description: string; - creator: ReposCreateDeploymentResponseDataCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; -}; -declare type ReposGetDeploymentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; -}; -declare type ReposGetDeploymentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments/:deployment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDeploymentResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetDeploymentResponseDataPayload = { - deploy: string; -}; -declare type ReposGetDeploymentResponseData = { - url: string; - id: number; - node_id: string; - sha: string; - ref: string; - task: string; - payload: ReposGetDeploymentResponseDataPayload; - original_environment: string; - environment: string; - description: string; - creator: ReposGetDeploymentResponseDataCreator; - created_at: string; - updated_at: string; - statuses_url: string; - repository_url: string; - transient_environment: boolean; - production_environment: boolean; -}; -declare type ReposDeleteDeploymentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; -}; -declare type ReposDeleteDeploymentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/deployments/:deployment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeploymentStatusesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDeploymentStatusesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeploymentStatusesResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListDeploymentStatusesResponseDataItem = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposListDeploymentStatusesResponseDataItemCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; -}; -declare type ReposListDeploymentStatusesResponseData = Array; -declare type ReposCreateDeploymentStatusEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; - /** - * 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://developer.github.com/v3/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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - state: "error" | "failure" | "inactive" | "in_progress" | "queued" | "pending" | "success"; - /** - * 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`. - */ - target_url?: string; - /** - * 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://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - log_url?: string; - /** - * A short description of the status. The maximum description length is 140 characters. - */ - description?: string; - /** - * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - */ - environment?: "production" | "staging" | "qa"; - /** - * Sets the URL for accessing your environment. Default: `""` - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - environment_url?: string; - /** - * 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://developer.github.com/v3/previews/#deployment-statuses) custom media type. - * **Note:** This parameter requires you to use the [`application/vnd.github.ant-man-preview+json`](https://developer.github.com/v3/previews/#enhanced-deployments) custom media type. - */ - auto_inactive?: boolean; -}; -declare type ReposCreateDeploymentStatusRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateDeploymentStatusResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateDeploymentStatusResponseData = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposCreateDeploymentStatusResponseDataCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; -}; -declare type ReposGetDeploymentStatusEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * deployment_id parameter - */ - deployment_id: number; - /** - * status_id parameter - */ - status_id: number; -}; -declare type ReposGetDeploymentStatusRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDeploymentStatusResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetDeploymentStatusResponseData = { - url: string; - id: number; - node_id: string; - state: string; - creator: ReposGetDeploymentStatusResponseDataCreator; - description: string; - environment: string; - target_url: string; - created_at: string; - updated_at: string; - deployment_url: string; - repository_url: string; - environment_url: string; - log_url: string; -}; -declare type ReposCreateDispatchEventEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * **Required:** A custom webhook event name. - */ - event_type?: string; - /** - * JSON payload with extra information about the webhook event that your action or worklow may use. - */ - client_payload?: ReposCreateDispatchEventParamsClientPayload; -}; -declare type ReposCreateDispatchEventRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/dispatches"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDownloadsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDownloadsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/downloads"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDownloadsResponseDataItem = { - url: string; - html_url: string; - id: number; - name: string; - description: string; - size: number; - download_count: number; - content_type: string; -}; -declare type ReposListDownloadsResponseData = Array; -declare type ReposGetDownloadEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * download_id parameter - */ - download_id: number; -}; -declare type ReposGetDownloadRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/downloads/:download_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDownloadResponseData = { - url: string; - html_url: string; - id: number; - name: string; - description: string; - size: number; - download_count: number; - content_type: string; -}; -declare type ReposDeleteDownloadEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * download_id parameter - */ - download_id: number; -}; -declare type ReposDeleteDownloadRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/downloads/:download_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListRepoEventsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListRepoEventsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The sort order. Can be either `newest`, `oldest`, or `stargazers`. - */ - sort?: "newest" | "oldest" | "stargazers"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListForksRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForksResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ReposListForksResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposListForksResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListForksResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListForksResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposListForksResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ReposListForksResponseDataItemLicense; -}; -declare type ReposListForksResponseData = Array; -declare type ReposCreateForkEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Optional parameter to specify the organization name if forking into an organization. - */ - organization?: string; -}; -declare type ReposCreateForkRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/forks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateForkResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateForkResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateForkResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateForkResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateForkResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type GitCreateBlobEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The new blob's content. - */ - content: string; - /** - * The encoding used for `content`. Currently, `"utf-8"` and `"base64"` are supported. - */ - encoding?: string; -}; -declare type GitCreateBlobRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/blobs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateBlobResponseData = { - url: string; - sha: string; -}; -declare type GitGetBlobEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * file_sha parameter - */ - file_sha: string; -}; -declare type GitGetBlobRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/blobs/:file_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetBlobResponseData = { - content: string; - encoding: string; - url: string; - sha: string; - size: number; -}; -declare type GitCreateCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The commit message - */ - message: string; - /** - * The SHA of the tree object this commit points to - */ - tree: string; - /** - * 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. - */ - parents: string[]; - /** - * 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. - */ - author?: GitCreateCommitParamsAuthor; - /** - * 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. - */ - committer?: GitCreateCommitParamsCommitter; - /** - * 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. - */ - signature?: string; -}; -declare type GitCreateCommitRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateCommitResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitCreateCommitResponseDataParentsItem = { - url: string; - sha: string; -}; -declare type GitCreateCommitResponseDataTree = { - url: string; - sha: string; -}; -declare type GitCreateCommitResponseDataCommitter = { - date: string; - name: string; - email: string; -}; -declare type GitCreateCommitResponseDataAuthor = { - date: string; - name: string; - email: string; -}; -declare type GitCreateCommitResponseData = { - sha: string; - node_id: string; - url: string; - author: GitCreateCommitResponseDataAuthor; - committer: GitCreateCommitResponseDataCommitter; - message: string; - tree: GitCreateCommitResponseDataTree; - parents: Array; - verification: GitCreateCommitResponseDataVerification; -}; -declare type GitGetCommitEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * commit_sha parameter - */ - commit_sha: string; -}; -declare type GitGetCommitRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/commits/:commit_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetCommitResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitGetCommitResponseDataParentsItem = { - url: string; - sha: string; -}; -declare type GitGetCommitResponseDataTree = { - url: string; - sha: string; -}; -declare type GitGetCommitResponseDataCommitter = { - date: string; - name: string; - email: string; -}; -declare type GitGetCommitResponseDataAuthor = { - date: string; - name: string; - email: string; -}; -declare type GitGetCommitResponseData = { - sha: string; - url: string; - author: GitGetCommitResponseDataAuthor; - committer: GitGetCommitResponseDataCommitter; - message: string; - tree: GitGetCommitResponseDataTree; - parents: Array; - verification: GitGetCommitResponseDataVerification; -}; -declare type GitListMatchingRefsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GitListMatchingRefsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/matching-refs/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitListMatchingRefsResponseDataItemObject = { - type: string; - sha: string; - url: string; -}; -declare type GitListMatchingRefsResponseDataItem = { - ref: string; - node_id: string; - url: string; - object: GitListMatchingRefsResponseDataItemObject; -}; -declare type GitListMatchingRefsResponseData = Array; -declare type GitGetRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type GitGetRefRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/ref/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetRefResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitGetRefResponseData = { - ref: string; - node_id: string; - url: string; - object: GitGetRefResponseDataObject; -}; -declare type GitCreateRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - ref: string; - /** - * The SHA1 value for this reference. - */ - sha: string; -}; -declare type GitCreateRefRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/refs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateRefResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitCreateRefResponseData = { - ref: string; - node_id: string; - url: string; - object: GitCreateRefResponseDataObject; -}; -declare type GitUpdateRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; - /** - * The SHA1 value to set this reference to - */ - sha: string; - /** - * 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. - */ - force?: boolean; -}; -declare type GitUpdateRefRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/git/refs/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitUpdateRefResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitUpdateRefResponseData = { - ref: string; - node_id: string; - url: string; - object: GitUpdateRefResponseDataObject; -}; -declare type GitDeleteRefEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * ref parameter - */ - ref: string; -}; -declare type GitDeleteRefRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/git/refs/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateTagEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The tag's name. This is typically a version (e.g., "v0.0.1"). - */ - tag: string; - /** - * The tag message. - */ - message: string; - /** - * The SHA of the git object this is tagging. - */ - object: string; - /** - * The type of the object we're tagging. Normally this is a `commit` but it can also be a `tree` or a `blob`. - */ - type: "commit" | "tree" | "blob"; - /** - * An object with information about the individual creating the tag. - */ - tagger?: GitCreateTagParamsTagger; -}; -declare type GitCreateTagRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/tags"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateTagResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitCreateTagResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitCreateTagResponseDataTagger = { - name: string; - email: string; - date: string; -}; -declare type GitCreateTagResponseData = { - node_id: string; - tag: string; - sha: string; - url: string; - message: string; - tagger: GitCreateTagResponseDataTagger; - object: GitCreateTagResponseDataObject; - verification: GitCreateTagResponseDataVerification; -}; -declare type GitGetTagEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * tag_sha parameter - */ - tag_sha: string; -}; -declare type GitGetTagRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/tags/:tag_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetTagResponseDataVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type GitGetTagResponseDataObject = { - type: string; - sha: string; - url: string; -}; -declare type GitGetTagResponseDataTagger = { - name: string; - email: string; - date: string; -}; -declare type GitGetTagResponseData = { - node_id: string; - tag: string; - sha: string; - url: string; - message: string; - tagger: GitGetTagResponseDataTagger; - object: GitGetTagResponseDataObject; - verification: GitGetTagResponseDataVerification; -}; -declare type GitCreateTreeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Objects (of `path`, `mode`, `type`, and `sha`) specifying a tree structure. - */ - tree: GitCreateTreeParamsTree[]; - /** - * The SHA1 of the tree you want to update with new data. If you don't set this, the commit will be created on top of everything; however, it will only contain your change, the rest of your files will show up as deleted. - */ - base_tree?: string; -}; -declare type GitCreateTreeRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/git/trees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitCreateTreeResponseDataTreeItem = { - path: string; - mode: string; - type: string; - size: number; - sha: string; - url: string; -}; -declare type GitCreateTreeResponseData = { - sha: string; - url: string; - tree: Array; -}; -declare type GitGetTreeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * tree_sha parameter - */ - tree_sha: string; - /** - * recursive parameter - */ - recursive?: "1"; -}; -declare type GitGetTreeRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/git/trees/:tree_sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GitGetTreeResponseDataTreeItem = { - path: string; - mode: string; - type: string; - size?: number; - sha: string; - url: string; -}; -declare type GitGetTreeResponseData = { - sha: string; - url: string; - tree: Array; - truncated: boolean; -}; -declare type ReposListHooksEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListHooksRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListHooksResponseDataItemLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposListHooksResponseDataItemConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposListHooksResponseDataItem = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposListHooksResponseDataItemConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposListHooksResponseDataItemLastResponse; -}; -declare type ReposListHooksResponseData = Array; -declare type ReposCreateHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Use `web` to create a webhook. Default: `web`. This parameter only accepts the value `web`. - */ - name?: string; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). - */ - config: ReposCreateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. - */ - events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type ReposCreateHookRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/hooks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateHookResponseDataLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposCreateHookResponseDataConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposCreateHookResponseData = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposCreateHookResponseDataConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposCreateHookResponseDataLastResponse; -}; -declare type ReposGetHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposGetHookRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetHookResponseDataLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposGetHookResponseDataConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposGetHookResponseData = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposGetHookResponseDataConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposGetHookResponseDataLastResponse; -}; -declare type ReposUpdateHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; - /** - * Key/value pairs to provide settings for this webhook. [These are defined below](https://developer.github.com/v3/repos/hooks/#create-hook-config-params). - */ - config?: ReposUpdateHookParamsConfig; - /** - * Determines what [events](https://developer.github.com/v3/activity/events/types/) the hook is triggered for. This replaces the entire array of events. - */ - events?: string[]; - /** - * Determines a list of events to be added to the list of events that the Hook triggers for. - */ - add_events?: string[]; - /** - * Determines a list of events to be removed from the list of events that the Hook triggers for. - */ - remove_events?: string[]; - /** - * Determines if notifications are sent when the webhook is triggered. Set to `true` to send notifications. - */ - active?: boolean; -}; -declare type ReposUpdateHookRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateHookResponseDataLastResponse = { - code: null; - status: string; - message: null; -}; -declare type ReposUpdateHookResponseDataConfig = { - content_type: string; - insecure_ssl: string; - url: string; -}; -declare type ReposUpdateHookResponseData = { - type: string; - id: number; - name: string; - active: boolean; - events: Array; - config: ReposUpdateHookResponseDataConfig; - updated_at: string; - created_at: string; - url: string; - test_url: string; - ping_url: string; - last_response: ReposUpdateHookResponseDataLastResponse; -}; -declare type ReposDeleteHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposDeleteHookRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/hooks/:hook_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposPingHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposPingHookRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/hooks/:hook_id/pings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposTestPushHookEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * hook_id parameter - */ - hook_id: number; -}; -declare type ReposTestPushHookRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/hooks/:hook_id/tests"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartImportEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The URL of the originating repository. - */ - vcs_url: string; - /** - * The originating VCS type. Can be one of `subversion`, `git`, `mercurial`, or `tfvc`. Please be aware that without this parameter, the import job will take additional time to detect the VCS type before beginning the import. This detection step will be reflected in the response. - */ - vcs?: "subversion" | "git" | "mercurial" | "tfvc"; - /** - * If authentication is required, the username to provide to `vcs_url`. - */ - vcs_username?: string; - /** - * If authentication is required, the password to provide to `vcs_url`. - */ - vcs_password?: string; - /** - * For a tfvc import, the name of the project that is being imported. - */ - tfvc_project?: string; -}; -declare type MigrationsStartImportRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartImportResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - percent: number; - commit_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; -}; -declare type MigrationsGetImportProgressEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type MigrationsGetImportProgressRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetImportProgressResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; -}; -declare type MigrationsUpdateImportEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The username to provide to the originating repository. - */ - vcs_username?: string; - /** - * The password to provide to the originating repository. - */ - vcs_password?: string; -}; -declare type MigrationsUpdateImportRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsUpdateImportResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - url: string; - html_url: string; - authors_url: string; - repository_url: string; - tfvc_project?: string; - status_text?: string; - has_large_files?: boolean; - large_files_size?: number; - large_files_count?: number; - authors_count?: number; - percent?: number; - commit_count?: number; -}; -declare type MigrationsCancelImportEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type MigrationsCancelImportRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/import"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetCommitAuthorsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Only authors found after this id are returned. Provide the highest author ID you've seen so far. New authors may be added to the list at any point while the importer is performing the `raw` step. - */ - since?: string; -}; -declare type MigrationsGetCommitAuthorsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/import/authors"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetCommitAuthorsResponseDataItem = { - id: number; - remote_id: string; - remote_name: string; - email: string; - name: string; - url: string; - import_url: string; -}; -declare type MigrationsGetCommitAuthorsResponseData = Array; -declare type MigrationsMapCommitAuthorEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * author_id parameter - */ - author_id: number; - /** - * The new Git author email. - */ - email?: string; - /** - * The new Git author name. - */ - name?: string; -}; -declare type MigrationsMapCommitAuthorRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/import/authors/:author_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsMapCommitAuthorResponseData = { - id: number; - remote_id: string; - remote_name: string; - email: string; - name: string; - url: string; - import_url: string; -}; -declare type MigrationsGetLargeFilesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type MigrationsGetLargeFilesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/import/large_files"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetLargeFilesResponseDataItem = { - ref_name: string; - path: string; - oid: string; - size: number; -}; -declare type MigrationsGetLargeFilesResponseData = Array; -declare type MigrationsSetLfsPreferenceEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Can be one of `opt_in` (large files will be stored using Git LFS) or `opt_out` (large files will be removed during the import). - */ - use_lfs: "opt_in" | "opt_out"; -}; -declare type MigrationsSetLfsPreferenceRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/import/lfs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsSetLfsPreferenceResponseData = { - vcs: string; - use_lfs: string; - vcs_url: string; - status: string; - status_text: string; - has_large_files: boolean; - large_files_size: number; - large_files_count: number; - authors_count: number; - url: string; - html_url: string; - authors_url: string; - repository_url: string; -}; -declare type AppsGetRepoInstallationEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetRepoInstallationRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/installation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetRepoInstallationResponseDataPermissions = { - checks: string; - metadata: string; - contents: string; -}; -declare type AppsGetRepoInstallationResponseDataAccount = { - login: string; - id: number; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsGetRepoInstallationResponseData = { - id: number; - account: AppsGetRepoInstallationResponseDataAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetRepoInstallationResponseDataPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type InteractionsGetRestrictionsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"sombra">; -declare type InteractionsGetRestrictionsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsGetRestrictionsForRepoResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsAddOrUpdateRestrictionsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Specifies the group of GitHub users who can comment, open issues, or create pull requests for the given repository. Must be one of: `existing_users`, `contributors_only`, or `collaborators_only`. - */ - limit: "existing_users" | "contributors_only" | "collaborators_only"; -} & RequiredPreview<"sombra">; -declare type InteractionsAddOrUpdateRestrictionsForRepoRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type InteractionsAddOrUpdateRestrictionsForRepoResponseData = { - limit: string; - origin: string; - expires_at: string; -}; -declare type InteractionsRemoveRestrictionsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"sombra">; -declare type InteractionsRemoveRestrictionsForRepoRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/interaction-limits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListInvitationsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListInvitationsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListInvitationsResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsResponseDataItemInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListInvitationsResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposListInvitationsResponseDataItem = { - id: number; - repository: ReposListInvitationsResponseDataItemRepository; - invitee: ReposListInvitationsResponseDataItemInvitee; - inviter: ReposListInvitationsResponseDataItemInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type ReposListInvitationsResponseData = Array; -declare type ReposDeleteInvitationEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * invitation_id parameter - */ - invitation_id: number; -}; -declare type ReposDeleteInvitationRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateInvitationEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * invitation_id parameter - */ - invitation_id: number; - /** - * The permissions that the associated user will have on the repository. Valid values are `read`, `write`, `maintain`, `triage`, and `admin`. - */ - permissions?: "read" | "write" | "maintain" | "triage" | "admin"; -}; -declare type ReposUpdateInvitationRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateInvitationResponseDataInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateInvitationResponseDataInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateInvitationResponseDataRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateInvitationResponseDataRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposUpdateInvitationResponseDataRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposUpdateInvitationResponseData = { - id: number; - repository: ReposUpdateInvitationResponseDataRepository; - invitee: ReposUpdateInvitationResponseDataInvitee; - inviter: ReposUpdateInvitationResponseDataInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type IssuesListForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - milestone?: string; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Can be the name of a user. Pass in `none` for issues with no assigned user, and `*` for issues assigned to any user. - */ - assignee?: string; - /** - * The user that created the issue. - */ - creator?: string; - /** - * A user that's mentioned in the issue. - */ - mentioned?: string; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForRepoResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListForRepoResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForRepoResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListForRepoResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListForRepoResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForRepoResponseDataItemUser; - labels: Array; - assignee: IssuesListForRepoResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListForRepoResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForRepoResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesListForRepoResponseData = Array; -declare type IssuesCreateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The title of the issue. - */ - title: string; - /** - * The contents of the issue. - */ - body?: string; - /** - * 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.**_ - */ - assignee?: string; - /** - * The `number` of the milestone to associate this issue with. _NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise._ - */ - milestone?: number; - /** - * Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ - */ - labels?: string[]; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesCreateRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateResponseDataClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesCreateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesCreateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesCreateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesCreateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesCreateResponseDataUser; - labels: Array; - assignee: IssuesCreateResponseDataAssignee; - assignees: Array; - milestone: IssuesCreateResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesCreateResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesCreateResponseDataClosedBy; -}; -declare type IssuesListCommentsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Either `created` or `updated`. - */ - sort?: "created" | "updated"; - /** - * Either `asc` or `desc`. Ignored without the `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListCommentsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListCommentsForRepoResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListCommentsForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesListCommentsForRepoResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type IssuesListCommentsForRepoResponseData = Array; -declare type IssuesGetCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type IssuesGetCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetCommentResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesGetCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type IssuesUpdateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The contents of the comment. - */ - body: string; -}; -declare type IssuesUpdateCommentRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/issues/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateCommentResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesUpdateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type IssuesDeleteCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type IssuesDeleteCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForIssueCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueCommentResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForIssueCommentResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForIssueCommentResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForIssueCommentResponseData = Array; -declare type ReactionsCreateForIssueCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForIssueCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForIssueCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForIssueCommentResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForIssueCommentResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForIssueCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForIssueCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListEventsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForRepoResponseDataItemIssuePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListEventsForRepoResponseDataItemIssueMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssueUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItemIssue = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListEventsForRepoResponseDataItemIssueUser; - labels: Array; - assignee: IssuesListEventsForRepoResponseDataItemIssueAssignee; - assignees: Array; - milestone: IssuesListEventsForRepoResponseDataItemIssueMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListEventsForRepoResponseDataItemIssuePullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesListEventsForRepoResponseDataItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsForRepoResponseDataItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; - issue: IssuesListEventsForRepoResponseDataItemIssue; -}; -declare type IssuesListEventsForRepoResponseData = Array; -declare type IssuesGetEventEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * event_id parameter - */ - event_id: number; -}; -declare type IssuesGetEventRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/events/:event_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetEventResponseDataIssuePullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesGetEventResponseDataIssueMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssueMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetEventResponseDataIssueMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesGetEventResponseDataIssueAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssueAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssueLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesGetEventResponseDataIssueUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseDataIssue = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesGetEventResponseDataIssueUser; - labels: Array; - assignee: IssuesGetEventResponseDataIssueAssignee; - assignees: Array; - milestone: IssuesGetEventResponseDataIssueMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesGetEventResponseDataIssuePullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesGetEventResponseDataActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetEventResponseData = { - id: number; - node_id: string; - url: string; - actor: IssuesGetEventResponseDataActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; - issue: IssuesGetEventResponseDataIssue; -}; -declare type IssuesGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; -}; -declare type IssuesGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetResponseDataClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesGetResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesGetResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesGetResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesGetResponseDataUser; - labels: Array; - assignee: IssuesGetResponseDataAssignee; - assignees: Array; - milestone: IssuesGetResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesGetResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesGetResponseDataClosedBy; -}; -declare type IssuesUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The title of the issue. - */ - title?: string; - /** - * The contents of the issue. - */ - body?: string; - /** - * Login for the user that this issue should be assigned to. **This field is deprecated.** - */ - assignee?: string; - /** - * State of the issue. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * The `number` of the milestone to associate this issue with or `null` to remove current. _NOTE: Only users with push access can set the milestone for issues. The milestone is silently dropped otherwise._ - */ - milestone?: number | null; - /** - * 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._ - */ - labels?: string[]; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/issues/:issue_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateResponseDataClosedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesUpdateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesUpdateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesUpdateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesUpdateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesUpdateResponseDataUser; - labels: Array; - assignee: IssuesUpdateResponseDataAssignee; - assignees: Array; - milestone: IssuesUpdateResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesUpdateResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - closed_by: IssuesUpdateResponseDataClosedBy; -}; -declare type IssuesAddAssigneesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesAddAssigneesRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/assignees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesAddAssigneesResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesAddAssigneesResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesAddAssigneesResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesAddAssigneesResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesAddAssigneesResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesAddAssigneesResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesAddAssigneesResponseDataUser; - labels: Array; - assignee: IssuesAddAssigneesResponseDataAssignee; - assignees: Array; - milestone: IssuesAddAssigneesResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesAddAssigneesResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesRemoveAssigneesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * 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._ - */ - assignees?: string[]; -}; -declare type IssuesRemoveAssigneesRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/assignees"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesRemoveAssigneesResponseDataPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesRemoveAssigneesResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesRemoveAssigneesResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesRemoveAssigneesResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesRemoveAssigneesResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesRemoveAssigneesResponseData = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesRemoveAssigneesResponseDataUser; - labels: Array; - assignee: IssuesRemoveAssigneesResponseDataAssignee; - assignees: Array; - milestone: IssuesRemoveAssigneesResponseDataMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesRemoveAssigneesResponseDataPullRequest; - closed_at: null; - created_at: string; - updated_at: string; -}; -declare type IssuesListCommentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Only comments updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListCommentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListCommentsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesListCommentsResponseDataItemUser; - created_at: string; - updated_at: string; -}; -declare type IssuesListCommentsResponseData = Array; -declare type IssuesCreateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The contents of the comment. - */ - body: string; -}; -declare type IssuesCreateCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateCommentResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - body: string; - user: IssuesCreateCommentResponseDataUser; - created_at: string; - updated_at: string; -}; -declare type IssuesListEventsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListEventsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsResponseDataItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsResponseDataItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsResponseDataItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; -}; -declare type IssuesListEventsResponseData = Array; -declare type IssuesListLabelsOnIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListLabelsOnIssueRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsOnIssueResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListLabelsOnIssueResponseData = Array; -declare type IssuesAddLabelsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The name of the label to add to the issue. Must contain at least one label. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels: string[]; -}; -declare type IssuesAddLabelsRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesAddLabelsResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesAddLabelsResponseData = Array; -declare type IssuesReplaceAllLabelsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The names of the labels to add to the issue. You can pass an empty array to remove all labels. **Note:** Alternatively, you can pass a single label as a `string` or an `array` of labels directly, but GitHub recommends passing an object with the `labels` key. - */ - labels?: string[]; -}; -declare type IssuesReplaceAllLabelsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesReplaceAllLabelsResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesReplaceAllLabelsResponseData = Array; -declare type IssuesRemoveAllLabelsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; -}; -declare type IssuesRemoveAllLabelsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesRemoveLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * name parameter - */ - name: string; -}; -declare type IssuesRemoveLabelRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesRemoveLabelResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesRemoveLabelResponseData = Array; -declare type IssuesLockEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * 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` - */ - lock_reason?: "off-topic" | "too heated" | "resolved" | "spam"; -}; -declare type IssuesLockRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/issues/:issue_number/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUnlockEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; -}; -declare type IssuesUnlockRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to an issue. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForIssueRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForIssueResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForIssueResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForIssueResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForIssueResponseData = Array; -declare type ReactionsCreateForIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the issue. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForIssueRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/issues/:issue_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForIssueResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForIssueResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForIssueResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForIssueEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForIssueRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForTimelineEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * issue_number parameter - */ - issue_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"mockingbird">; -declare type IssuesListEventsForTimelineRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/issues/:issue_number/timeline"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListEventsForTimelineResponseDataItemActor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListEventsForTimelineResponseDataItem = { - id: number; - node_id: string; - url: string; - actor: IssuesListEventsForTimelineResponseDataItemActor; - event: string; - commit_id: string; - commit_url: string; - created_at: string; -}; -declare type IssuesListEventsForTimelineResponseData = Array; -declare type ReposListDeployKeysEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListDeployKeysRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListDeployKeysResponseDataItem = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; -}; -declare type ReposListDeployKeysResponseData = Array; -declare type ReposAddDeployKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * A name for the key. - */ - title?: string; - /** - * The contents of the key. - */ - key: string; - /** - * 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/)." - */ - read_only?: boolean; -}; -declare type ReposAddDeployKeyRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposAddDeployKeyResponseData = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; -}; -declare type ReposGetDeployKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * key_id parameter - */ - key_id: number; -}; -declare type ReposGetDeployKeyRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetDeployKeyResponseData = { - id: number; - key: string; - url: string; - title: string; - verified: boolean; - created_at: string; - read_only: boolean; -}; -declare type ReposRemoveDeployKeyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * key_id parameter - */ - key_id: number; -}; -declare type ReposRemoveDeployKeyRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListLabelsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForRepoResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListLabelsForRepoResponseData = Array; -declare type IssuesCreateLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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.com](http://emoji-cheat-sheet.com/). - */ - name: string; - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color: string; - /** - * A short description of the label. - */ - description?: string; -}; -declare type IssuesCreateLabelRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateLabelResponseData = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesGetLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type IssuesGetLabelRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetLabelResponseData = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesUpdateLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; - /** - * 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.com](http://emoji-cheat-sheet.com/). - */ - new_name?: string; - /** - * The [hexadecimal color code](http://www.color-hex.com/) for the label, without the leading `#`. - */ - color?: string; - /** - * A short description of the label. - */ - description?: string; -}; -declare type IssuesUpdateLabelRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateLabelResponseData = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesDeleteLabelEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * name parameter - */ - name: string; -}; -declare type IssuesDeleteLabelRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/labels/:name"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListLanguagesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposListLanguagesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/languages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListLanguagesResponseData = { - C: number; - Python: number; -}; -declare type LicensesGetForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type LicensesGetForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/license"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type LicensesGetForRepoResponseDataLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type LicensesGetForRepoResponseDataLinks = { - self: string; - git: string; - html: string; -}; -declare type LicensesGetForRepoResponseData = { - name: string; - path: string; - sha: string; - size: number; - url: string; - html_url: string; - git_url: string; - download_url: string; - type: string; - content: string; - encoding: string; - _links: LicensesGetForRepoResponseDataLinks; - license: LicensesGetForRepoResponseDataLicense; -}; -declare type ReposMergeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the base branch that the head will be merged into. - */ - base: string; - /** - * The head to merge. This can be a branch name or a commit SHA1. - */ - head: string; - /** - * Commit message to use for the merge commit. If omitted, a default message will be used. - */ - commit_message?: string; -}; -declare type ReposMergeRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/merges"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposMergeResponseDataParentsItem = { - sha: string; - url: string; -}; -declare type ReposMergeResponseDataCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposMergeResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposMergeResponseDataCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type ReposMergeResponseDataCommitTree = { - sha: string; - url: string; -}; -declare type ReposMergeResponseDataCommitCommitter = { - name: string; - date: string; - email: string; -}; -declare type ReposMergeResponseDataCommitAuthor = { - name: string; - date: string; - email: string; -}; -declare type ReposMergeResponseDataCommit = { - author: ReposMergeResponseDataCommitAuthor; - committer: ReposMergeResponseDataCommitCommitter; - message: string; - tree: ReposMergeResponseDataCommitTree; - url: string; - comment_count: number; - verification: ReposMergeResponseDataCommitVerification; -}; -declare type ReposMergeResponseData = { - sha: string; - node_id: string; - commit: ReposMergeResponseDataCommit; - url: string; - html_url: string; - comments_url: string; - author: ReposMergeResponseDataAuthor; - committer: ReposMergeResponseDataCommitter; - parents: Array; -}; -declare type IssuesListMilestonesForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The state of the milestone. Either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * What to sort results by. Either `due_on` or `completeness`. - */ - sort?: "due_on" | "completeness"; - /** - * The direction of the sort. Either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListMilestonesForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/milestones"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListMilestonesForRepoResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListMilestonesForRepoResponseDataItem = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListMilestonesForRepoResponseDataItemCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListMilestonesForRepoResponseData = Array; -declare type IssuesCreateMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The title of the milestone. - */ - title: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; -}; -declare type IssuesCreateMilestoneRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/milestones"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesCreateMilestoneResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesCreateMilestoneResponseData = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesCreateMilestoneResponseDataCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesGetMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; -}; -declare type IssuesGetMilestoneRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/milestones/:milestone_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesGetMilestoneResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesGetMilestoneResponseData = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesGetMilestoneResponseDataCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesUpdateMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; - /** - * The title of the milestone. - */ - title?: string; - /** - * The state of the milestone. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * A description of the milestone. - */ - description?: string; - /** - * The milestone due date. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - due_on?: string; -}; -declare type IssuesUpdateMilestoneRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/milestones/:milestone_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesUpdateMilestoneResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesUpdateMilestoneResponseData = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesUpdateMilestoneResponseDataCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesDeleteMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; -}; -declare type IssuesDeleteMilestoneRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/milestones/:milestone_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForMilestoneEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * milestone_number parameter - */ - milestone_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListLabelsForMilestoneRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/milestones/:milestone_number/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListLabelsForMilestoneResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListLabelsForMilestoneResponseData = Array; -declare type ActivityListRepoNotificationsForAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * If `true`, show notifications marked as read. - */ - all?: boolean; - /** - * If `true`, only shows notifications in which the user is directly participating or mentioned. - */ - participating?: boolean; - /** - * 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`. - */ - since?: string; - /** - * 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`. - */ - before?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemSubject = { - title: string; - url: string; - latest_comment_url: string; - type: string; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseDataItem = { - id: string; - repository: ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemRepository; - subject: ActivityListRepoNotificationsForAuthenticatedUserResponseDataItemSubject; - reason: string; - unread: boolean; - updated_at: string; - last_read_at: string; - url: string; -}; -declare type ActivityListRepoNotificationsForAuthenticatedUserResponseData = Array; -declare type ActivityMarkRepoNotificationsAsReadEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - last_read_at?: string; -}; -declare type ActivityMarkRepoNotificationsAsReadRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/notifications"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPagesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetPagesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPagesResponseDataSource = { - branch: string; - directory: string; -}; -declare type ReposGetPagesResponseData = { - url: string; - status: string; - cname: string; - custom_404: boolean; - html_url: string; - source: ReposGetPagesResponseDataSource; -}; -declare type ReposEnablePagesSiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * source parameter - */ - source?: ReposEnablePagesSiteParamsSource; -} & RequiredPreview<"switcheroo">; -declare type ReposEnablePagesSiteRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposEnablePagesSiteResponseDataSource = { - branch: string; - directory: string; -}; -declare type ReposEnablePagesSiteResponseData = { - url: string; - status: string; - cname: string; - custom_404: boolean; - html_url: string; - source: ReposEnablePagesSiteResponseDataSource; -}; -declare type ReposDisablePagesSiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"switcheroo">; -declare type ReposDisablePagesSiteRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateInformationAboutPagesSiteEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Specify a custom domain for the repository. Sending a `null` value will remove the custom domain. For more about custom domains, see "[Using a custom domain with GitHub Pages](https://help.github.com/articles/using-a-custom-domain-with-github-pages/)." - */ - cname?: string; - /** - * 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"`. - */ - source?: '"gh-pages"' | '"master"' | '"master /docs"'; -}; -declare type ReposUpdateInformationAboutPagesSiteRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pages"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRequestPageBuildEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposRequestPageBuildRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pages/builds"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposRequestPageBuildResponseData = { - url: string; - status: string; -}; -declare type ReposListPagesBuildsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListPagesBuildsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages/builds"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListPagesBuildsResponseDataItemPusher = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPagesBuildsResponseDataItemError = { - message: null; -}; -declare type ReposListPagesBuildsResponseDataItem = { - url: string; - status: string; - error: ReposListPagesBuildsResponseDataItemError; - pusher: ReposListPagesBuildsResponseDataItemPusher; - commit: string; - duration: number; - created_at: string; - updated_at: string; -}; -declare type ReposListPagesBuildsResponseData = Array; -declare type ReposGetLatestPagesBuildEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetLatestPagesBuildRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages/builds/latest"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetLatestPagesBuildResponseDataPusher = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetLatestPagesBuildResponseDataError = { - message: null; -}; -declare type ReposGetLatestPagesBuildResponseData = { - url: string; - status: string; - error: ReposGetLatestPagesBuildResponseDataError; - pusher: ReposGetLatestPagesBuildResponseDataPusher; - commit: string; - duration: number; - created_at: string; - updated_at: string; -}; -declare type ReposGetPagesBuildEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * build_id parameter - */ - build_id: number; -}; -declare type ReposGetPagesBuildRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pages/builds/:build_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPagesBuildResponseDataPusher = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetPagesBuildResponseDataError = { - message: null; -}; -declare type ReposGetPagesBuildResponseData = { - url: string; - status: string; - error: ReposGetPagesBuildResponseDataError; - pusher: ReposGetPagesBuildResponseDataPusher; - commit: string; - duration: number; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListForRepoResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListForRepoResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForRepoResponseDataItemCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForRepoResponseData = Array; -declare type ProjectsCreateForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the project. - */ - name: string; - /** - * The description of the project. - */ - body?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateForRepoRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateForRepoResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateForRepoResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForRepoResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type PullsListEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Either `open`, `closed`, or `all` to filter by state. - */ - state?: "open" | "closed" | "all"; - /** - * 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`. - */ - head?: string; - /** - * Filter pulls by base branch name. Example: `gh-pages`. - */ - base?: string; - /** - * 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). - */ - sort?: "created" | "updated" | "popularity" | "long-running"; - /** - * The direction of the sort. Can be either `asc` or `desc`. Default: `desc` when sort is `created` or sort is not specified, otherwise `asc`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListResponseDataItemLinksStatuses = { - href: string; -}; -declare type PullsListResponseDataItemLinksCommits = { - href: string; -}; -declare type PullsListResponseDataItemLinksReviewComment = { - href: string; -}; -declare type PullsListResponseDataItemLinksReviewComments = { - href: string; -}; -declare type PullsListResponseDataItemLinksComments = { - href: string; -}; -declare type PullsListResponseDataItemLinksIssue = { - href: string; -}; -declare type PullsListResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsListResponseDataItemLinks = { - self: PullsListResponseDataItemLinksSelf; - html: PullsListResponseDataItemLinksHtml; - issue: PullsListResponseDataItemLinksIssue; - comments: PullsListResponseDataItemLinksComments; - review_comments: PullsListResponseDataItemLinksReviewComments; - review_comment: PullsListResponseDataItemLinksReviewComment; - commits: PullsListResponseDataItemLinksCommits; - statuses: PullsListResponseDataItemLinksStatuses; -}; -declare type PullsListResponseDataItemBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsListResponseDataItemBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsListResponseDataItemBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsListResponseDataItemBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsListResponseDataItemBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemBase = { - label: string; - ref: string; - sha: string; - user: PullsListResponseDataItemBaseUser; - repo: PullsListResponseDataItemBaseRepo; -}; -declare type PullsListResponseDataItemHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsListResponseDataItemHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsListResponseDataItemHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsListResponseDataItemHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsListResponseDataItemHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemHead = { - label: string; - ref: string; - sha: string; - user: PullsListResponseDataItemHeadUser; - repo: PullsListResponseDataItemHeadRepo; -}; -declare type PullsListResponseDataItemRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsListResponseDataItemRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsListResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsListResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsListResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListResponseDataItem = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsListResponseDataItemUser; - body: string; - labels: Array; - milestone: PullsListResponseDataItemMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsListResponseDataItemAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsListResponseDataItemHead; - base: PullsListResponseDataItemBase; - _links: PullsListResponseDataItemLinks; - author_association: string; - draft: boolean; -}; -declare type PullsListResponseData = Array; -declare type PullsCreateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The title of the new pull request. - */ - title: string; - /** - * 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`. - */ - head: string; - /** - * 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. - */ - base: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; - /** - * 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. - */ - draft?: boolean; -}; -declare type PullsCreateRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateResponseDataMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataLinksStatuses = { - href: string; -}; -declare type PullsCreateResponseDataLinksCommits = { - href: string; -}; -declare type PullsCreateResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsCreateResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsCreateResponseDataLinksComments = { - href: string; -}; -declare type PullsCreateResponseDataLinksIssue = { - href: string; -}; -declare type PullsCreateResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateResponseDataLinks = { - self: PullsCreateResponseDataLinksSelf; - html: PullsCreateResponseDataLinksHtml; - issue: PullsCreateResponseDataLinksIssue; - comments: PullsCreateResponseDataLinksComments; - review_comments: PullsCreateResponseDataLinksReviewComments; - review_comment: PullsCreateResponseDataLinksReviewComment; - commits: PullsCreateResponseDataLinksCommits; - statuses: PullsCreateResponseDataLinksStatuses; -}; -declare type PullsCreateResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsCreateResponseDataBaseUser; - repo: PullsCreateResponseDataBaseRepo; -}; -declare type PullsCreateResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsCreateResponseDataHeadUser; - repo: PullsCreateResponseDataHeadRepo; -}; -declare type PullsCreateResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsCreateResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsCreateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsCreateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsCreateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsCreateResponseDataUser; - body: string; - labels: Array; - milestone: PullsCreateResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsCreateResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsCreateResponseDataHead; - base: PullsCreateResponseDataBase; - _links: PullsCreateResponseDataLinks; - author_association: string; - draft: boolean; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsCreateResponseDataMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; -}; -declare type PullsListCommentsForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListCommentsForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListCommentsForRepoResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsListCommentsForRepoResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListCommentsForRepoResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsListCommentsForRepoResponseDataItemLinks = { - self: PullsListCommentsForRepoResponseDataItemLinksSelf; - html: PullsListCommentsForRepoResponseDataItemLinksHtml; - pull_request: PullsListCommentsForRepoResponseDataItemLinksPullRequest; -}; -declare type PullsListCommentsForRepoResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommentsForRepoResponseDataItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsListCommentsForRepoResponseDataItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsListCommentsForRepoResponseDataItemLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsListCommentsForRepoResponseData = Array; -declare type PullsGetCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type PullsGetCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetCommentResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsGetCommentResponseDataLinksHtml = { - href: string; -}; -declare type PullsGetCommentResponseDataLinksSelf = { - href: string; -}; -declare type PullsGetCommentResponseDataLinks = { - self: PullsGetCommentResponseDataLinksSelf; - html: PullsGetCommentResponseDataLinksHtml; - pull_request: PullsGetCommentResponseDataLinksPullRequest; -}; -declare type PullsGetCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetCommentResponseData = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsGetCommentResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsGetCommentResponseDataLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsUpdateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The text of the reply to the review comment. - */ - body: string; -}; -declare type PullsUpdateCommentRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateCommentResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsUpdateCommentResponseDataLinksHtml = { - href: string; -}; -declare type PullsUpdateCommentResponseDataLinksSelf = { - href: string; -}; -declare type PullsUpdateCommentResponseDataLinks = { - self: PullsUpdateCommentResponseDataLinksSelf; - html: PullsUpdateCommentResponseDataLinksHtml; - pull_request: PullsUpdateCommentResponseDataLinksPullRequest; -}; -declare type PullsUpdateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateCommentResponseData = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsUpdateCommentResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsUpdateCommentResponseDataLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsDeleteCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; -}; -declare type PullsDeleteCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForPullRequestReviewCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a pull request review comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForPullRequestReviewCommentRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForPullRequestReviewCommentResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForPullRequestReviewCommentResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForPullRequestReviewCommentResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForPullRequestReviewCommentResponseData = Array; -declare type ReactionsCreateForPullRequestReviewCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the pull request review comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForPullRequestReviewCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForPullRequestReviewCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForPullRequestReviewCommentResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForPullRequestReviewCommentResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsDeleteForPullRequestCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * comment_id parameter - */ - comment_id: number; - /** - * reaction_id parameter - */ - reaction_id: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsDeleteForPullRequestCommentRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; -}; -declare type PullsGetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetResponseDataMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataLinksStatuses = { - href: string; -}; -declare type PullsGetResponseDataLinksCommits = { - href: string; -}; -declare type PullsGetResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsGetResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsGetResponseDataLinksComments = { - href: string; -}; -declare type PullsGetResponseDataLinksIssue = { - href: string; -}; -declare type PullsGetResponseDataLinksHtml = { - href: string; -}; -declare type PullsGetResponseDataLinksSelf = { - href: string; -}; -declare type PullsGetResponseDataLinks = { - self: PullsGetResponseDataLinksSelf; - html: PullsGetResponseDataLinksHtml; - issue: PullsGetResponseDataLinksIssue; - comments: PullsGetResponseDataLinksComments; - review_comments: PullsGetResponseDataLinksReviewComments; - review_comment: PullsGetResponseDataLinksReviewComment; - commits: PullsGetResponseDataLinksCommits; - statuses: PullsGetResponseDataLinksStatuses; -}; -declare type PullsGetResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsGetResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsGetResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsGetResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsGetResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsGetResponseDataBaseUser; - repo: PullsGetResponseDataBaseRepo; -}; -declare type PullsGetResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsGetResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsGetResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsGetResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsGetResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsGetResponseDataHeadUser; - repo: PullsGetResponseDataHeadRepo; -}; -declare type PullsGetResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsGetResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsGetResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsGetResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsGetResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsGetResponseDataUser; - body: string; - labels: Array; - milestone: PullsGetResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsGetResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsGetResponseDataHead; - base: PullsGetResponseDataBase; - _links: PullsGetResponseDataLinks; - author_association: string; - draft: boolean; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsGetResponseDataMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; -}; -declare type PullsUpdateEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * The title of the pull request. - */ - title?: string; - /** - * The contents of the pull request. - */ - body?: string; - /** - * State of this Pull Request. Either `open` or `closed`. - */ - state?: "open" | "closed"; - /** - * 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. - */ - base?: string; - /** - * Indicates whether [maintainers can modify](https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/) the pull request. - */ - maintainer_can_modify?: boolean; -}; -declare type PullsUpdateRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/pulls/:pull_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateResponseDataMergedBy = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataLinksStatuses = { - href: string; -}; -declare type PullsUpdateResponseDataLinksCommits = { - href: string; -}; -declare type PullsUpdateResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsUpdateResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsUpdateResponseDataLinksComments = { - href: string; -}; -declare type PullsUpdateResponseDataLinksIssue = { - href: string; -}; -declare type PullsUpdateResponseDataLinksHtml = { - href: string; -}; -declare type PullsUpdateResponseDataLinksSelf = { - href: string; -}; -declare type PullsUpdateResponseDataLinks = { - self: PullsUpdateResponseDataLinksSelf; - html: PullsUpdateResponseDataLinksHtml; - issue: PullsUpdateResponseDataLinksIssue; - comments: PullsUpdateResponseDataLinksComments; - review_comments: PullsUpdateResponseDataLinksReviewComments; - review_comment: PullsUpdateResponseDataLinksReviewComment; - commits: PullsUpdateResponseDataLinksCommits; - statuses: PullsUpdateResponseDataLinksStatuses; -}; -declare type PullsUpdateResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsUpdateResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsUpdateResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsUpdateResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsUpdateResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsUpdateResponseDataBaseUser; - repo: PullsUpdateResponseDataBaseRepo; -}; -declare type PullsUpdateResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsUpdateResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsUpdateResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsUpdateResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsUpdateResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsUpdateResponseDataHeadUser; - repo: PullsUpdateResponseDataHeadRepo; -}; -declare type PullsUpdateResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsUpdateResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsUpdateResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsUpdateResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsUpdateResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsUpdateResponseDataUser; - body: string; - labels: Array; - milestone: PullsUpdateResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsUpdateResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsUpdateResponseDataHead; - base: PullsUpdateResponseDataBase; - _links: PullsUpdateResponseDataLinks; - author_association: string; - draft: boolean; - merged: boolean; - mergeable: boolean; - rebaseable: boolean; - mergeable_state: string; - merged_by: PullsUpdateResponseDataMergedBy; - comments: number; - review_comments: number; - maintainer_can_modify: boolean; - commits: number; - additions: number; - deletions: number; - changed_files: number; -}; -declare type PullsListCommentsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Can be either `created` or `updated` comments. - */ - sort?: "created" | "updated"; - /** - * Can be either `asc` or `desc`. Ignored without `sort` parameter. - */ - direction?: "asc" | "desc"; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only returns comments `updated` at or after this time. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListCommentsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListCommentsResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsListCommentsResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListCommentsResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsListCommentsResponseDataItemLinks = { - self: PullsListCommentsResponseDataItemLinksSelf; - html: PullsListCommentsResponseDataItemLinksHtml; - pull_request: PullsListCommentsResponseDataItemLinksPullRequest; -}; -declare type PullsListCommentsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommentsResponseDataItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsListCommentsResponseDataItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsListCommentsResponseDataItemLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsListCommentsResponseData = Array; -declare type PullsCreateCommentEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * The text of the review comment. - */ - body: string; - /** - * The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. - */ - commit_id: string; - /** - * The relative path to the file that necessitates a comment. - */ - path: string; - /** - * **Required without `comfort-fade` preview**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. For help finding the position value, read the note above. - */ - position?: number; - /** - * **Required with `comfort-fade` preview**. In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://help.github.com/en/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. - */ - side?: "LEFT" | "RIGHT"; - /** - * **Required with `comfort-fade` preview**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. - */ - line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. - */ - start_line?: number; - /** - * **Required when using multi-line comments**. To create multi-line comments, you must use the `comfort-fade` preview header. The `start_side` is the starting side of the diff that the comment applies to. Can be `LEFT` or `RIGHT`. To learn more about multi-line comments, see "[Commenting on a pull request](https://help.github.com/en/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. See `side` in this table for additional context. - */ - start_side?: "LEFT" | "RIGHT" | "side"; -}; -declare type PullsCreateCommentRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateCommentResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsCreateCommentResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateCommentResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateCommentResponseDataLinks = { - self: PullsCreateCommentResponseDataLinksSelf; - html: PullsCreateCommentResponseDataLinksHtml; - pull_request: PullsCreateCommentResponseDataLinksPullRequest; -}; -declare type PullsCreateCommentResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateCommentResponseData = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsCreateCommentResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsCreateCommentResponseDataLinks; - start_line: number; - original_start_line: number; - start_side: string; - line: number; - original_line: number; - side: string; -}; -declare type PullsCreateReviewCommentReplyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * comment_id parameter - */ - comment_id: number; - /** - * The text of the review comment. - */ - body: string; -}; -declare type PullsCreateReviewCommentReplyRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateReviewCommentReplyResponseDataLinks = { - self: PullsCreateReviewCommentReplyResponseDataLinksSelf; - html: PullsCreateReviewCommentReplyResponseDataLinksHtml; - pull_request: PullsCreateReviewCommentReplyResponseDataLinksPullRequest; -}; -declare type PullsCreateReviewCommentReplyResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewCommentReplyResponseData = { - url: string; - pull_request_review_id: number; - id: number; - node_id: string; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - user: PullsCreateReviewCommentReplyResponseDataUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsCreateReviewCommentReplyResponseDataLinks; -}; -declare type PullsListCommitsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListCommitsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListCommitsResponseDataItemParentsItem = { - url: string; - sha: string; -}; -declare type PullsListCommitsResponseDataItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommitsResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListCommitsResponseDataItemCommitVerification = { - verified: boolean; - reason: string; - signature: null; - payload: null; -}; -declare type PullsListCommitsResponseDataItemCommitTree = { - url: string; - sha: string; -}; -declare type PullsListCommitsResponseDataItemCommitCommitter = { - name: string; - email: string; - date: string; -}; -declare type PullsListCommitsResponseDataItemCommitAuthor = { - name: string; - email: string; - date: string; -}; -declare type PullsListCommitsResponseDataItemCommit = { - url: string; - author: PullsListCommitsResponseDataItemCommitAuthor; - committer: PullsListCommitsResponseDataItemCommitCommitter; - message: string; - tree: PullsListCommitsResponseDataItemCommitTree; - comment_count: number; - verification: PullsListCommitsResponseDataItemCommitVerification; -}; -declare type PullsListCommitsResponseDataItem = { - url: string; - sha: string; - node_id: string; - html_url: string; - comments_url: string; - commit: PullsListCommitsResponseDataItemCommit; - author: PullsListCommitsResponseDataItemAuthor; - committer: PullsListCommitsResponseDataItemCommitter; - parents: Array; -}; -declare type PullsListCommitsResponseData = Array; -declare type PullsListFilesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListFilesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/files"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListFilesResponseDataItem = { - sha: string; - filename: string; - status: string; - additions: number; - deletions: number; - changes: number; - blob_url: string; - raw_url: string; - contents_url: string; - patch: string; -}; -declare type PullsListFilesResponseData = Array; -declare type PullsCheckIfMergedEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; -}; -declare type PullsCheckIfMergedRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/merge"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsMergeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Title for the automatic commit message. - */ - commit_title?: string; - /** - * Extra detail to append to automatic commit message. - */ - commit_message?: string; - /** - * SHA that pull request head must match to allow merge. - */ - sha?: string; - /** - * Merge method to use. Possible values are `merge`, `squash` or `rebase`. Default is `merge`. - */ - merge_method?: "merge" | "squash" | "rebase"; -}; -declare type PullsMergeRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/merge"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsMergeResponseData = { - sha: string; - merged: boolean; - message: string; -}; -declare type PullsListReviewRequestsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListReviewRequestsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListReviewRequestsResponseDataTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsListReviewRequestsResponseDataUsersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListReviewRequestsResponseData = { - users: Array; - teams: Array; -}; -declare type PullsCreateReviewRequestEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * An array of user `login`s that will be requested. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be requested. - */ - team_reviewers?: string[]; -}; -declare type PullsCreateReviewRequestRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateReviewRequestResponseDataLinksStatuses = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksCommits = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksReviewComment = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksReviewComments = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksComments = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksIssue = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinksSelf = { - href: string; -}; -declare type PullsCreateReviewRequestResponseDataLinks = { - self: PullsCreateReviewRequestResponseDataLinksSelf; - html: PullsCreateReviewRequestResponseDataLinksHtml; - issue: PullsCreateReviewRequestResponseDataLinksIssue; - comments: PullsCreateReviewRequestResponseDataLinksComments; - review_comments: PullsCreateReviewRequestResponseDataLinksReviewComments; - review_comment: PullsCreateReviewRequestResponseDataLinksReviewComment; - commits: PullsCreateReviewRequestResponseDataLinksCommits; - statuses: PullsCreateReviewRequestResponseDataLinksStatuses; -}; -declare type PullsCreateReviewRequestResponseDataBaseRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateReviewRequestResponseDataBaseRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataBaseRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateReviewRequestResponseDataBaseRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateReviewRequestResponseDataBaseRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateReviewRequestResponseDataBaseUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataBase = { - label: string; - ref: string; - sha: string; - user: PullsCreateReviewRequestResponseDataBaseUser; - repo: PullsCreateReviewRequestResponseDataBaseRepo; -}; -declare type PullsCreateReviewRequestResponseDataHeadRepoPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type PullsCreateReviewRequestResponseDataHeadRepoOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataHeadRepo = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: PullsCreateReviewRequestResponseDataHeadRepoOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: PullsCreateReviewRequestResponseDataHeadRepoPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type PullsCreateReviewRequestResponseDataHeadUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataHead = { - label: string; - ref: string; - sha: string; - user: PullsCreateReviewRequestResponseDataHeadUser; - repo: PullsCreateReviewRequestResponseDataHeadRepo; -}; -declare type PullsCreateReviewRequestResponseDataRequestedTeamsItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type PullsCreateReviewRequestResponseDataRequestedReviewersItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseDataMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: PullsCreateReviewRequestResponseDataMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type PullsCreateReviewRequestResponseDataLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type PullsCreateReviewRequestResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewRequestResponseData = { - url: string; - id: number; - node_id: string; - html_url: string; - diff_url: string; - patch_url: string; - issue_url: string; - commits_url: string; - review_comments_url: string; - review_comment_url: string; - comments_url: string; - statuses_url: string; - number: number; - state: string; - locked: boolean; - title: string; - user: PullsCreateReviewRequestResponseDataUser; - body: string; - labels: Array; - milestone: PullsCreateReviewRequestResponseDataMilestone; - active_lock_reason: string; - created_at: string; - updated_at: string; - closed_at: string; - merged_at: string; - merge_commit_sha: string; - assignee: PullsCreateReviewRequestResponseDataAssignee; - assignees: Array; - requested_reviewers: Array; - requested_teams: Array; - head: PullsCreateReviewRequestResponseDataHead; - base: PullsCreateReviewRequestResponseDataBase; - _links: PullsCreateReviewRequestResponseDataLinks; - author_association: string; - draft: boolean; -}; -declare type PullsDeleteReviewRequestEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * An array of user `login`s that will be removed. - */ - reviewers?: string[]; - /** - * An array of team `slug`s that will be removed. - */ - team_reviewers?: string[]; -}; -declare type PullsDeleteReviewRequestRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/:pull_number/requested_reviewers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListReviewsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsListReviewsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsListReviewsResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsListReviewsResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsListReviewsResponseDataItemLinks = { - html: PullsListReviewsResponseDataItemLinksHtml; - pull_request: PullsListReviewsResponseDataItemLinksPullRequest; -}; -declare type PullsListReviewsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsListReviewsResponseDataItem = { - id: number; - node_id: string; - user: PullsListReviewsResponseDataItemUser; - body: string; - submitted_at: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsListReviewsResponseDataItemLinks; -}; -declare type PullsListReviewsResponseData = Array; -declare type PullsCreateReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * 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. - */ - commit_id?: string; - /** - * **Required** when using `REQUEST_CHANGES` or `COMMENT` for the `event` parameter. The body text of the pull request review. - */ - body?: string; - /** - * 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://developer.github.com/v3/pulls/reviews/#submit-a-pull-request-review) when you are ready. - */ - event?: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; - /** - * Use the following table to specify the location, destination, and contents of the draft review comment. - */ - comments?: PullsCreateReviewParamsComments[]; -}; -declare type PullsCreateReviewRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsCreateReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsCreateReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsCreateReviewResponseDataLinks = { - html: PullsCreateReviewResponseDataLinksHtml; - pull_request: PullsCreateReviewResponseDataLinksPullRequest; -}; -declare type PullsCreateReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsCreateReviewResponseData = { - id: number; - node_id: string; - user: PullsCreateReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsCreateReviewResponseDataLinks; -}; -declare type PullsGetReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; -}; -declare type PullsGetReviewRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsGetReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsGetReviewResponseDataLinks = { - html: PullsGetReviewResponseDataLinksHtml; - pull_request: PullsGetReviewResponseDataLinksPullRequest; -}; -declare type PullsGetReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetReviewResponseData = { - id: number; - node_id: string; - user: PullsGetReviewResponseDataUser; - body: string; - submitted_at: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsGetReviewResponseDataLinks; -}; -declare type PullsDeletePendingReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; -}; -declare type PullsDeletePendingReviewRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsDeletePendingReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsDeletePendingReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsDeletePendingReviewResponseDataLinks = { - html: PullsDeletePendingReviewResponseDataLinksHtml; - pull_request: PullsDeletePendingReviewResponseDataLinksPullRequest; -}; -declare type PullsDeletePendingReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsDeletePendingReviewResponseData = { - id: number; - node_id: string; - user: PullsDeletePendingReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsDeletePendingReviewResponseDataLinks; -}; -declare type PullsUpdateReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * The body text of the pull request review. - */ - body: string; -}; -declare type PullsUpdateReviewRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsUpdateReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsUpdateReviewResponseDataLinks = { - html: PullsUpdateReviewResponseDataLinksHtml; - pull_request: PullsUpdateReviewResponseDataLinksPullRequest; -}; -declare type PullsUpdateReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsUpdateReviewResponseData = { - id: number; - node_id: string; - user: PullsUpdateReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsUpdateReviewResponseDataLinks; -}; -declare type PullsGetCommentsForReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type PullsGetCommentsForReviewRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinksPullRequest = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinksHtml = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinksSelf = { - href: string; -}; -declare type PullsGetCommentsForReviewResponseDataItemLinks = { - self: PullsGetCommentsForReviewResponseDataItemLinksSelf; - html: PullsGetCommentsForReviewResponseDataItemLinksHtml; - pull_request: PullsGetCommentsForReviewResponseDataItemLinksPullRequest; -}; -declare type PullsGetCommentsForReviewResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsGetCommentsForReviewResponseDataItem = { - url: string; - id: number; - node_id: string; - pull_request_review_id: number; - diff_hunk: string; - path: string; - position: number; - original_position: number; - commit_id: string; - original_commit_id: string; - in_reply_to_id: number; - user: PullsGetCommentsForReviewResponseDataItemUser; - body: string; - created_at: string; - updated_at: string; - html_url: string; - pull_request_url: string; - author_association: string; - _links: PullsGetCommentsForReviewResponseDataItemLinks; -}; -declare type PullsGetCommentsForReviewResponseData = Array; -declare type PullsDismissReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * The message for the pull request review dismissal - */ - message: string; -}; -declare type PullsDismissReviewRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsDismissReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsDismissReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsDismissReviewResponseDataLinks = { - html: PullsDismissReviewResponseDataLinksHtml; - pull_request: PullsDismissReviewResponseDataLinksPullRequest; -}; -declare type PullsDismissReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsDismissReviewResponseData = { - id: number; - node_id: string; - user: PullsDismissReviewResponseDataUser; - body: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsDismissReviewResponseDataLinks; -}; -declare type PullsSubmitReviewEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * review_id parameter - */ - review_id: number; - /** - * The body text of the pull request review - */ - body?: string; - /** - * 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. - */ - event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT"; -}; -declare type PullsSubmitReviewRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsSubmitReviewResponseDataLinksPullRequest = { - href: string; -}; -declare type PullsSubmitReviewResponseDataLinksHtml = { - href: string; -}; -declare type PullsSubmitReviewResponseDataLinks = { - html: PullsSubmitReviewResponseDataLinksHtml; - pull_request: PullsSubmitReviewResponseDataLinksPullRequest; -}; -declare type PullsSubmitReviewResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type PullsSubmitReviewResponseData = { - id: number; - node_id: string; - user: PullsSubmitReviewResponseDataUser; - body: string; - submitted_at: string; - commit_id: string; - state: string; - html_url: string; - pull_request_url: string; - _links: PullsSubmitReviewResponseDataLinks; -}; -declare type PullsUpdateBranchEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * pull_number parameter - */ - pull_number: number; - /** - * 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 on a repository](https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository)" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref. - */ - expected_head_sha?: string; -} & RequiredPreview<"lydian">; -declare type PullsUpdateBranchRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/pulls/:pull_number/update-branch"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type PullsUpdateBranchResponseData = { - message: string; - url: string; -}; -declare type ReposGetReadmeEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the commit/branch/tag. Default: the repository’s default branch (usually `master`) - */ - ref?: string; -}; -declare type ReposGetReadmeRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/readme"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReadmeResponseDataLinks = { - git: string; - self: string; - html: string; -}; -declare type ReposGetReadmeResponseData = { - type: string; - encoding: string; - size: number; - name: string; - path: string; - content: string; - sha: string; - url: string; - git_url: string; - html_url: string; - download_url: string; - _links: ReposGetReadmeResponseDataLinks; -}; -declare type ReposListReleasesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListReleasesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListReleasesResponseDataItemAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListReleasesResponseDataItemAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposListReleasesResponseDataItemAssetsItemUploader; -}; -declare type ReposListReleasesResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListReleasesResponseDataItem = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposListReleasesResponseDataItemAuthor; - assets: Array; -}; -declare type ReposListReleasesResponseData = Array; -declare type ReposCreateReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * The name of the tag. - */ - tag_name: string; - /** - * 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`). - */ - target_commitish?: string; - /** - * The name of the release. - */ - name?: string; - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` to create a draft (unpublished) release, `false` to create a published one. - */ - draft?: boolean; - /** - * `true` to identify the release as a prerelease. `false` to identify the release as a full release. - */ - prerelease?: boolean; -}; -declare type ReposCreateReleaseRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/releases"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposCreateReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposGetReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * asset_id parameter - */ - asset_id: number; -}; -declare type ReposGetReleaseAssetRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/assets/:asset_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReleaseAssetResponseDataUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseAssetResponseData = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseAssetResponseDataUploader; -}; -declare type ReposUpdateReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * asset_id parameter - */ - asset_id: number; - /** - * The file name of the asset. - */ - name?: string; - /** - * An alternate short description of the asset. Used in place of the filename. - */ - label?: string; -}; -declare type ReposUpdateReleaseAssetRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/releases/assets/:asset_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateReleaseAssetResponseDataUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateReleaseAssetResponseData = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUpdateReleaseAssetResponseDataUploader; -}; -declare type ReposDeleteReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * asset_id parameter - */ - asset_id: number; -}; -declare type ReposDeleteReleaseAssetRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/releases/assets/:asset_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetLatestReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetLatestReleaseRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/latest"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetLatestReleaseResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetLatestReleaseResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetLatestReleaseResponseDataAssetsItemUploader; -}; -declare type ReposGetLatestReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetLatestReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetLatestReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposGetReleaseByTagEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * tag parameter - */ - tag: string; -}; -declare type ReposGetReleaseByTagRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/tags/:tag"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReleaseByTagResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseByTagResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseByTagResponseDataAssetsItemUploader; -}; -declare type ReposGetReleaseByTagResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseByTagResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetReleaseByTagResponseDataAuthor; - assets: Array; -}; -declare type ReposGetReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; -}; -declare type ReposGetReleaseRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/:release_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetReleaseResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposGetReleaseResponseDataAssetsItemUploader; -}; -declare type ReposGetReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposGetReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposUpdateReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; - /** - * The name of the tag. - */ - tag_name?: string; - /** - * 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`). - */ - target_commitish?: string; - /** - * The name of the release. - */ - name?: string; - /** - * Text describing the contents of the tag. - */ - body?: string; - /** - * `true` makes the release a draft, and `false` publishes the release. - */ - draft?: boolean; - /** - * `true` to identify the release as a prerelease, `false` to identify the release as a full release. - */ - prerelease?: boolean; -}; -declare type ReposUpdateReleaseRequestOptions = { - method: "PATCH"; - url: "/repos/:owner/:repo/releases/:release_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUpdateReleaseResponseDataAssetsItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateReleaseResponseDataAssetsItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUpdateReleaseResponseDataAssetsItemUploader; -}; -declare type ReposUpdateReleaseResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUpdateReleaseResponseData = { - url: string; - html_url: string; - assets_url: string; - upload_url: string; - tarball_url: string; - zipball_url: string; - id: number; - node_id: string; - tag_name: string; - target_commitish: string; - name: string; - body: string; - draft: boolean; - prerelease: boolean; - created_at: string; - published_at: string; - author: ReposUpdateReleaseResponseDataAuthor; - assets: Array; -}; -declare type ReposDeleteReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; -}; -declare type ReposDeleteReleaseRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/releases/:release_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListAssetsForReleaseEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListAssetsForReleaseRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/releases/:release_id/assets"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListAssetsForReleaseResponseDataItemUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListAssetsForReleaseResponseDataItem = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposListAssetsForReleaseResponseDataItemUploader; -}; -declare type ReposListAssetsForReleaseResponseData = Array; -declare type ReposUploadReleaseAssetEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * release_id parameter - */ - release_id: number; - /** - * name parameter - */ - name?: string; - /** - * label parameter - */ - label?: string; - /** - * The raw file data - */ - data: string; - /** - * The URL origin (protocol + host name + port) is included in `upload_url` returned in the response of the "Create a release" endpoint - */ - origin?: string; - /** - * For https://api.github.com, set `baseUrl` to `https://uploads.github.com`. For GitHub Enterprise Server, set it to `/api/uploads` - */ - baseUrl: string; -} & { - headers: { - "content-type": string; - }; -}; -declare type ReposUploadReleaseAssetRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/releases/:release_id/assets{?name,label}"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposUploadReleaseAssetResponseDataUploader = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposUploadReleaseAssetResponseData = { - url: string; - browser_download_url: string; - id: number; - node_id: string; - name: string; - label: string; - state: string; - content_type: string; - size: number; - download_count: number; - created_at: string; - updated_at: string; - uploader: ReposUploadReleaseAssetResponseDataUploader; -}; -declare type ActivityListStargazersForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListStargazersForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stargazers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListStargazersForRepoResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListStargazersForRepoResponseData = Array; -declare type ReposGetCodeFrequencyStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetCodeFrequencyStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/code_frequency"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCodeFrequencyStatsResponseData = Array>; -declare type ReposGetCommitActivityStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetCommitActivityStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/commit_activity"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetCommitActivityStatsResponseDataItem = { - days: Array; - total: number; - week: number; -}; -declare type ReposGetCommitActivityStatsResponseData = Array; -declare type ReposGetContributorsStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetContributorsStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/contributors"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetContributorsStatsResponseDataItemWeeksItem = { - w: string; - a: number; - d: number; - c: number; -}; -declare type ReposGetContributorsStatsResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposGetContributorsStatsResponseDataItem = { - author: ReposGetContributorsStatsResponseDataItemAuthor; - total: number; - weeks: Array; -}; -declare type ReposGetContributorsStatsResponseData = Array; -declare type ReposGetParticipationStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetParticipationStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/participation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetParticipationStatsResponseData = { - all: Array; - owner: Array; -}; -declare type ReposGetPunchCardStatsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetPunchCardStatsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/stats/punch_card"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetPunchCardStatsResponseData = Array>; -declare type ReposCreateStatusEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * sha parameter - */ - sha: string; - /** - * The state of the status. Can be one of `error`, `failure`, `pending`, or `success`. - */ - state: "error" | "failure" | "pending" | "success"; - /** - * 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` - */ - target_url?: string; - /** - * A short description of the status. - */ - description?: string; - /** - * A string label to differentiate this status from the status of other systems. - */ - context?: string; -}; -declare type ReposCreateStatusRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/statuses/:sha"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateStatusResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateStatusResponseData = { - url: string; - avatar_url: string; - id: number; - node_id: string; - state: string; - description: string; - target_url: string; - context: string; - created_at: string; - updated_at: string; - creator: ReposCreateStatusResponseDataCreator; -}; -declare type ActivityListWatchersForRepoEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListWatchersForRepoRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/subscribers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListWatchersForRepoResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListWatchersForRepoResponseData = Array; -declare type ActivityGetRepoSubscriptionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityGetRepoSubscriptionRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityGetRepoSubscriptionResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - repository_url: string; -}; -declare type ActivitySetRepoSubscriptionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Determines if notifications should be received from this repository. - */ - subscribed?: boolean; - /** - * Determines if all notifications should be blocked from this repository. - */ - ignored?: boolean; -}; -declare type ActivitySetRepoSubscriptionRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivitySetRepoSubscriptionResponseData = { - subscribed: boolean; - ignored: boolean; - reason: null; - created_at: string; - url: string; - repository_url: string; -}; -declare type ActivityDeleteRepoSubscriptionEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityDeleteRepoSubscriptionRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/subscription"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListTagsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListTagsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/tags"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListTagsResponseDataItemCommit = { - sha: string; - url: string; -}; -declare type ReposListTagsResponseDataItem = { - name: string; - commit: ReposListTagsResponseDataItemCommit; - zipball_url: string; - tarball_url: string; -}; -declare type ReposListTagsResponseData = Array; -declare type ReposListTeamsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListTeamsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListTeamsResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; -}; -declare type ReposListTeamsResponseData = Array; -declare type ReposGetAllTopicsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"mercy">; -declare type ReposGetAllTopicsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/topics"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetAllTopicsResponseData = { - names: Array; -}; -declare type ReposReplaceAllTopicsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - names: string[]; -} & RequiredPreview<"mercy">; -declare type ReposReplaceAllTopicsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/topics"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposReplaceAllTopicsResponseData = { - names: Array; -}; -declare type ReposGetClonesEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; -}; -declare type ReposGetClonesRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/clones"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetClonesResponseDataClonesItem = { - timestamp: string; - count: number; - uniques: number; -}; -declare type ReposGetClonesResponseData = { - count: number; - uniques: number; - clones: Array; -}; -declare type ReposGetTopPathsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetTopPathsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/popular/paths"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetTopPathsResponseDataItem = { - path: string; - title: string; - count: number; - uniques: number; -}; -declare type ReposGetTopPathsResponseData = Array; -declare type ReposGetTopReferrersEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ReposGetTopReferrersRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/popular/referrers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetTopReferrersResponseDataItem = { - referrer: string; - count: number; - uniques: number; -}; -declare type ReposGetTopReferrersResponseData = Array; -declare type ReposGetViewsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * Must be one of: `day`, `week`. - */ - per?: "day" | "week"; -}; -declare type ReposGetViewsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/traffic/views"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetViewsResponseDataViewsItem = { - timestamp: string; - count: number; - uniques: number; -}; -declare type ReposGetViewsResponseData = { - count: number; - uniques: number; - views: Array; -}; -declare type ReposTransferEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * **Required:** The username or organization name the repository will be transferred to. - */ - new_owner?: string; - /** - * ID of the team or teams to add to the repository. Teams can only be added to organization-owned repositories. - */ - team_ids?: number[]; -}; -declare type ReposTransferRequestOptions = { - method: "POST"; - url: "/repos/:owner/:repo/transfer"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposTransferResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposTransferResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposTransferResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposTransferResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposTransferResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposCheckVulnerabilityAlertsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"dorian">; -declare type ReposCheckVulnerabilityAlertsRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/vulnerability-alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposEnableVulnerabilityAlertsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"dorian">; -declare type ReposEnableVulnerabilityAlertsRequestOptions = { - method: "PUT"; - url: "/repos/:owner/:repo/vulnerability-alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDisableVulnerabilityAlertsEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -} & RequiredPreview<"dorian">; -declare type ReposDisableVulnerabilityAlertsRequestOptions = { - method: "DELETE"; - url: "/repos/:owner/:repo/vulnerability-alerts"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposGetArchiveLinkEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * archive_format parameter - */ - archive_format: string; - /** - * ref parameter - */ - ref: string; -}; -declare type ReposGetArchiveLinkRequestOptions = { - method: "GET"; - url: "/repos/:owner/:repo/:archive_format/:ref"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateUsingTemplateEndpoint = { - /** - * template_owner parameter - */ - template_owner: string; - /** - * template_repo parameter - */ - template_repo: string; - /** - * 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. - */ - owner?: string; - /** - * The name of the new repository. - */ - name: string; - /** - * A short description of the new repository. - */ - description?: string; - /** - * Either `true` to create a new private repository or `false` to create a new public one. - */ - private?: boolean; -} & RequiredPreview<"baptiste">; -declare type ReposCreateUsingTemplateRequestOptions = { - method: "POST"; - url: "/repos/:template_owner/:template_repo/generate"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateUsingTemplateResponseDataTemplateRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateUsingTemplateResponseDataTemplateRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateUsingTemplateResponseDataTemplateRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateUsingTemplateResponseDataTemplateRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateUsingTemplateResponseDataTemplateRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposCreateUsingTemplateResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateUsingTemplateResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateUsingTemplateResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateUsingTemplateResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateUsingTemplateResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: ReposCreateUsingTemplateResponseDataTemplateRepository; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListPublicEndpoint = { - /** - * The integer ID of the last repository that you've seen. - */ - since?: number; -}; -declare type ReposListPublicRequestOptions = { - method: "GET"; - url: "/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListPublicResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListPublicResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListPublicResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposListPublicResponseData = Array; -declare type ScimListProvisionedIdentitiesEndpoint = { - /** - * org parameter - */ - org: string; - /** - * Used for pagination: the index of the first result to return. - */ - startIndex?: number; - /** - * Used for pagination: the number of results to return. - */ - count?: number; - /** - * Filters results using the equals query parameter operator (`eq`). You can filter results that are equal to `id`, `userName`, `emails`, and `external_id`. For example, to search for an identity with the `userName` Octocat, you would use this query: `?filter=userName%20eq%20\"Octocat\"`. - */ - filter?: string; -}; -declare type ScimListProvisionedIdentitiesRequestOptions = { - method: "GET"; - url: "/scim/v2/organizations/:org/Users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItemMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItemEmailsItem = { - value: string; - primary: boolean; - type: string; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItemName = { - givenName: string; - familyName: string; -}; -declare type ScimListProvisionedIdentitiesResponseDataResourcesItem = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimListProvisionedIdentitiesResponseDataResourcesItemName; - emails: Array; - active: boolean; - meta: ScimListProvisionedIdentitiesResponseDataResourcesItemMeta; -}; -declare type ScimListProvisionedIdentitiesResponseData = { - schemas: Array; - totalResults: number; - itemsPerPage: number; - startIndex: number; - Resources: Array; -}; -declare type ScimProvisionAndInviteUsersEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type ScimProvisionAndInviteUsersRequestOptions = { - method: "POST"; - url: "/scim/v2/organizations/:org/Users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimProvisionAndInviteUsersResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimProvisionAndInviteUsersResponseDataEmailsItem = { - value: string; - type: string; - primary: boolean; -}; -declare type ScimProvisionAndInviteUsersResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimProvisionAndInviteUsersResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimProvisionAndInviteUsersResponseDataName; - emails: Array; - active: boolean; - meta: ScimProvisionAndInviteUsersResponseDataMeta; -}; -declare type ScimGetProvisioningDetailsForUserEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimGetProvisioningDetailsForUserRequestOptions = { - method: "GET"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimGetProvisioningDetailsForUserResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimGetProvisioningDetailsForUserResponseDataEmailsItem = { - value: string; - type: string; - primary: boolean; -}; -declare type ScimGetProvisioningDetailsForUserResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimGetProvisioningDetailsForUserResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimGetProvisioningDetailsForUserResponseDataName; - emails: Array; - active: boolean; - meta: ScimGetProvisioningDetailsForUserResponseDataMeta; -}; -declare type ScimReplaceProvisionedUserInformationEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimReplaceProvisionedUserInformationRequestOptions = { - method: "PUT"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimReplaceProvisionedUserInformationResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimReplaceProvisionedUserInformationResponseDataEmailsItem = { - value: string; - type: string; - primary: boolean; -}; -declare type ScimReplaceProvisionedUserInformationResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimReplaceProvisionedUserInformationResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimReplaceProvisionedUserInformationResponseDataName; - emails: Array; - active: boolean; - meta: ScimReplaceProvisionedUserInformationResponseDataMeta; -}; -declare type ScimUpdateUserAttributeEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimUpdateUserAttributeRequestOptions = { - method: "PATCH"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ScimUpdateUserAttributeResponseDataMeta = { - resourceType: string; - created: string; - lastModified: string; - location: string; -}; -declare type ScimUpdateUserAttributeResponseDataEmailsItem = { - value: string; - type: string; - primary?: boolean; -}; -declare type ScimUpdateUserAttributeResponseDataName = { - givenName: string; - familyName: string; -}; -declare type ScimUpdateUserAttributeResponseData = { - schemas: Array; - id: string; - externalId: string; - userName: string; - name: ScimUpdateUserAttributeResponseDataName; - emails: Array; - active: boolean; - meta: ScimUpdateUserAttributeResponseDataMeta; -}; -declare type ScimRemoveUserFromOrgEndpoint = { - /** - * org parameter - */ - org: string; - /** - * scim_user_id parameter - */ - scim_user_id: number; -}; -declare type ScimRemoveUserFromOrgRequestOptions = { - method: "DELETE"; - url: "/scim/v2/organizations/:org/Users/:scim_user_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchCodeEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching code](https://help.github.com/articles/searching-code/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "indexed"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchCodeRequestOptions = { - method: "GET"; - url: "/search/code"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchCodeResponseDataItemsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCodeResponseDataItemsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: SearchCodeResponseDataItemsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; -}; -declare type SearchCodeResponseDataItemsItem = { - name: string; - path: string; - sha: string; - url: string; - git_url: string; - html_url: string; - repository: SearchCodeResponseDataItemsItemRepository; - score: number; -}; -declare type SearchCodeResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchCommitsEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching commits](https://help.github.com/articles/searching-commits/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by `author-date` or `committer-date`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "author-date" | "committer-date"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"cloak">; -declare type SearchCommitsRequestOptions = { - method: "GET"; - url: "/search/commits"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchCommitsResponseDataItemsItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCommitsResponseDataItemsItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: SearchCommitsResponseDataItemsItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - forks_url: string; - keys_url: string; - collaborators_url: string; - teams_url: string; - hooks_url: string; - issue_events_url: string; - events_url: string; - assignees_url: string; - branches_url: string; - tags_url: string; - blobs_url: string; - git_tags_url: string; - git_refs_url: string; - trees_url: string; - statuses_url: string; - languages_url: string; - stargazers_url: string; - contributors_url: string; - subscribers_url: string; - subscription_url: string; - commits_url: string; - git_commits_url: string; - comments_url: string; - issue_comment_url: string; - contents_url: string; - compare_url: string; - merges_url: string; - archive_url: string; - downloads_url: string; - issues_url: string; - pulls_url: string; - milestones_url: string; - notifications_url: string; - labels_url: string; - releases_url: string; - deployments_url: string; -}; -declare type SearchCommitsResponseDataItemsItemParentsItem = { - url: string; - html_url: string; - sha: string; -}; -declare type SearchCommitsResponseDataItemsItemCommitter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCommitsResponseDataItemsItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type SearchCommitsResponseDataItemsItemCommitTree = { - url: string; - sha: string; -}; -declare type SearchCommitsResponseDataItemsItemCommitCommitter = { - date: string; - name: string; - email: string; -}; -declare type SearchCommitsResponseDataItemsItemCommitAuthor = { - date: string; - name: string; - email: string; -}; -declare type SearchCommitsResponseDataItemsItemCommit = { - url: string; - author: SearchCommitsResponseDataItemsItemCommitAuthor; - committer: SearchCommitsResponseDataItemsItemCommitCommitter; - message: string; - tree: SearchCommitsResponseDataItemsItemCommitTree; - comment_count: number; -}; -declare type SearchCommitsResponseDataItemsItem = { - url: string; - sha: string; - html_url: string; - comments_url: string; - commit: SearchCommitsResponseDataItemsItemCommit; - author: SearchCommitsResponseDataItemsItemAuthor; - committer: SearchCommitsResponseDataItemsItemCommitter; - parents: Array; - repository: SearchCommitsResponseDataItemsItemRepository; - score: number; -}; -declare type SearchCommitsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchIssuesAndPullRequestsEndpoint = { - /** - * 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://developer.github.com/v3/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. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "comments" | "reactions" | "reactions-+1" | "reactions--1" | "reactions-smile" | "reactions-thinking_face" | "reactions-heart" | "reactions-tada" | "interactions" | "created" | "updated"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchIssuesAndPullRequestsRequestOptions = { - method: "GET"; - url: "/search/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItemPullRequest = { - html_url: null; - diff_url: null; - patch_url: null; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - color: string; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; -}; -declare type SearchIssuesAndPullRequestsResponseDataItemsItem = { - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - id: number; - node_id: string; - number: number; - title: string; - user: SearchIssuesAndPullRequestsResponseDataItemsItemUser; - labels: Array; - state: string; - assignee: null; - milestone: null; - comments: number; - created_at: string; - updated_at: string; - closed_at: null; - pull_request: SearchIssuesAndPullRequestsResponseDataItemsItemPullRequest; - body: string; - score: number; -}; -declare type SearchIssuesAndPullRequestsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchLabelsEndpoint = { - /** - * The id of the repository. - */ - repository_id: number; - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). - */ - q: string; - /** - * Sorts the results of your query by when the label was `created` or `updated`. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "created" | "updated"; - /** - * 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`. - */ - order?: "desc" | "asc"; -}; -declare type SearchLabelsRequestOptions = { - method: "GET"; - url: "/search/labels"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchLabelsResponseDataItemsItem = { - id: number; - node_id: string; - url: string; - name: string; - color: string; - default: boolean; - description: string; - score: number; -}; -declare type SearchLabelsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchReposEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching for repositories](https://help.github.com/articles/searching-for-repositories/)" for a detailed list of qualifiers. - */ - q: string; - /** - * 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://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "stars" | "forks" | "help-wanted-issues" | "updated"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchReposRequestOptions = { - method: "GET"; - url: "/search/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchReposResponseDataItemsItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - received_events_url: string; - type: string; -}; -declare type SearchReposResponseDataItemsItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: SearchReposResponseDataItemsItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - created_at: string; - updated_at: string; - pushed_at: string; - homepage: string; - size: number; - stargazers_count: number; - watchers_count: number; - language: string; - forks_count: number; - open_issues_count: number; - master_branch: string; - default_branch: string; - score: number; -}; -declare type SearchReposResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchTopicsEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). - */ - q: string; -}; -declare type SearchTopicsRequestOptions = { - method: "GET"; - url: "/search/topics"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchTopicsResponseDataItemsItem = { - name: string; - display_name: string; - short_description: string; - description: string; - created_by: string; - released: string; - created_at: string; - updated_at: string; - featured: boolean; - curated: boolean; - score: number; -}; -declare type SearchTopicsResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type SearchUsersEndpoint = { - /** - * 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://developer.github.com/v3/search/#constructing-a-search-query). See "[Searching users](https://help.github.com/articles/searching-users/)" for a detailed list of qualifiers. - */ - q: string; - /** - * Sorts the results of your query by number of `followers` or `repositories`, or when the person `joined` GitHub. Default: [best match](https://developer.github.com/v3/search/#ranking-search-results) - */ - sort?: "followers" | "repositories" | "joined"; - /** - * 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`. - */ - order?: "desc" | "asc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type SearchUsersRequestOptions = { - method: "GET"; - url: "/search/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type SearchUsersResponseDataItemsItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - received_events_url: string; - type: string; - score: number; -}; -declare type SearchUsersResponseData = { - total_count: number; - incomplete_results: boolean; - items: Array; -}; -declare type TeamsGetLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; -}; -declare type TeamsGetLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetLegacyResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsGetLegacyResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsGetLegacyResponseDataOrganization; -}; -declare type TeamsUpdateLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * The name of the team. - */ - name: string; - /** - * The description of the team. - */ - description?: string; - /** - * 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. - */ - privacy?: "secret" | "closed"; - /** - * **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. - */ - permission?: "pull" | "push" | "admin"; - /** - * The ID of a team to set as the parent team. - */ - parent_team_id?: number; -}; -declare type TeamsUpdateLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateLegacyResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsUpdateLegacyResponseData = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsUpdateLegacyResponseDataOrganization; -}; -declare type TeamsDeleteLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; -}; -declare type TeamsDeleteLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionsLegacyResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionsLegacyResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionsLegacyResponseDataItem = { - author: TeamsListDiscussionsLegacyResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsListDiscussionsLegacyResponseDataItemReactions; -}; -declare type TeamsListDiscussionsLegacyResponseData = Array; -declare type TeamsCreateDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * The discussion post's title. - */ - title: string; - /** - * The discussion post's body text. - */ - body: string; - /** - * 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. - */ - private?: boolean; -}; -declare type TeamsCreateDiscussionLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionLegacyResponseData = { - author: TeamsCreateDiscussionLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionLegacyResponseDataReactions; -}; -declare type TeamsGetDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsGetDiscussionLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionLegacyResponseData = { - author: TeamsGetDiscussionLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: null; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionLegacyResponseDataReactions; -}; -declare type TeamsUpdateDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion post's title. - */ - title?: string; - /** - * The discussion post's body text. - */ - body?: string; -}; -declare type TeamsUpdateDiscussionLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionLegacyResponseData = { - author: TeamsUpdateDiscussionLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - comments_count: number; - comments_url: string; - created_at: string; - last_edited_at: string; - html_url: string; - node_id: string; - number: number; - pinned: boolean; - private: boolean; - team_url: string; - title: string; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionLegacyResponseDataReactions; -}; -declare type TeamsDeleteDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; -}; -declare type TeamsDeleteDiscussionLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/discussions/:discussion_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * 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`. - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListDiscussionCommentsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListDiscussionCommentsLegacyResponseDataItemReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsListDiscussionCommentsLegacyResponseDataItemAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListDiscussionCommentsLegacyResponseDataItem = { - author: TeamsListDiscussionCommentsLegacyResponseDataItemAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsListDiscussionCommentsLegacyResponseDataItemReactions; -}; -declare type TeamsListDiscussionCommentsLegacyResponseData = Array; -declare type TeamsCreateDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsCreateDiscussionCommentLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions/:discussion_number/comments"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCreateDiscussionCommentLegacyResponseData = { - author: TeamsCreateDiscussionCommentLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsCreateDiscussionCommentLegacyResponseDataReactions; -}; -declare type TeamsGetDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsGetDiscussionCommentLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetDiscussionCommentLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsGetDiscussionCommentLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsGetDiscussionCommentLegacyResponseData = { - author: TeamsGetDiscussionCommentLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: null; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsGetDiscussionCommentLegacyResponseDataReactions; -}; -declare type TeamsUpdateDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The discussion comment's body text. - */ - body: string; -}; -declare type TeamsUpdateDiscussionCommentLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseDataReactions = { - url: string; - total_count: number; - "+1": number; - "-1": number; - laugh: number; - confused: number; - heart: number; - hooray: number; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseDataAuthor = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsUpdateDiscussionCommentLegacyResponseData = { - author: TeamsUpdateDiscussionCommentLegacyResponseDataAuthor; - body: string; - body_html: string; - body_version: string; - created_at: string; - last_edited_at: string; - discussion_url: string; - html_url: string; - node_id: string; - number: number; - updated_at: string; - url: string; - reactions: TeamsUpdateDiscussionCommentLegacyResponseDataReactions; -}; -declare type TeamsDeleteDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; -}; -declare type TeamsDeleteDiscussionCommentLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion comment. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionCommentLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionCommentLegacyResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionCommentLegacyResponseData = Array; -declare type ReactionsCreateForTeamDiscussionCommentLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * comment_number parameter - */ - comment_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion comment. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionCommentLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionCommentLegacyResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionCommentLegacyResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionCommentLegacyResponseDataUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * Returns a single [reaction type](https://developer.github.com/v3/reactions/#reaction-types). Omit this parameter to list all reactions to a team discussion. - */ - content?: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsListForTeamDiscussionLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseDataItem = { - id: number; - node_id: string; - user: ReactionsListForTeamDiscussionLegacyResponseDataItemUser; - content: string; - created_at: string; -}; -declare type ReactionsListForTeamDiscussionLegacyResponseData = Array; -declare type ReactionsCreateForTeamDiscussionLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * discussion_number parameter - */ - discussion_number: number; - /** - * The [reaction type](https://developer.github.com/v3/reactions/#reaction-types) to add to the team discussion. - */ - content: "+1" | "-1" | "laugh" | "confused" | "heart" | "hooray" | "rocket" | "eyes"; -} & RequiredPreview<"squirrel-girl">; -declare type ReactionsCreateForTeamDiscussionLegacyRequestOptions = { - method: "POST"; - url: "/teams/:team_id/discussions/:discussion_number/reactions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReactionsCreateForTeamDiscussionLegacyResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReactionsCreateForTeamDiscussionLegacyResponseData = { - id: number; - node_id: string; - user: ReactionsCreateForTeamDiscussionLegacyResponseDataUser; - content: string; - created_at: string; -}; -declare type TeamsListPendingInvitationsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListPendingInvitationsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListPendingInvitationsLegacyResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListPendingInvitationsLegacyResponseDataItem = { - id: number; - login: string; - email: string; - role: string; - created_at: string; - inviter: TeamsListPendingInvitationsLegacyResponseDataItemInviter; - team_count: number; - invitation_team_url: string; -}; -declare type TeamsListPendingInvitationsLegacyResponseData = Array; -declare type TeamsListMembersLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * 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. - */ - role?: "member" | "maintainer" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListMembersLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/members"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListMembersLegacyResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListMembersLegacyResponseData = Array; -declare type TeamsGetMemberLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsGetMemberLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddMemberLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsAddMemberLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddMemberLegacyResponseDataErrorsItem = { - code: string; - field: string; - resource: string; -}; -declare type TeamsAddMemberLegacyResponseData = { - message: string; - errors: Array; -}; -declare type TeamsRemoveMemberLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsRemoveMemberLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/members/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetMembershipLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsGetMembershipLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsGetMembershipLegacyResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsAddOrUpdateMembershipLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; - /** - * 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. - */ - role?: "member" | "maintainer"; -}; -declare type TeamsAddOrUpdateMembershipLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateMembershipLegacyResponseData = { - url: string; - role: string; - state: string; -}; -declare type TeamsRemoveMembershipLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * username parameter - */ - username: string; -}; -declare type TeamsRemoveMembershipLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/memberships/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type TeamsListProjectsLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListProjectsLegacyResponseDataItemPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsListProjectsLegacyResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListProjectsLegacyResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsListProjectsLegacyResponseDataItemCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsListProjectsLegacyResponseDataItemPermissions; -}; -declare type TeamsListProjectsLegacyResponseData = Array; -declare type TeamsReviewProjectLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * project_id parameter - */ - project_id: number; -} & RequiredPreview<"inertia">; -declare type TeamsReviewProjectLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsReviewProjectLegacyResponseDataPermissions = { - read: boolean; - write: boolean; - admin: boolean; -}; -declare type TeamsReviewProjectLegacyResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsReviewProjectLegacyResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: TeamsReviewProjectLegacyResponseDataCreator; - created_at: string; - updated_at: string; - organization_permission: string; - private: boolean; - permissions: TeamsReviewProjectLegacyResponseDataPermissions; -}; -declare type TeamsAddOrUpdateProjectLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * project_id parameter - */ - project_id: number; - /** - * 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://developer.github.com/v3/#http-verbs)." - */ - permission?: "read" | "write" | "admin"; -} & RequiredPreview<"inertia">; -declare type TeamsAddOrUpdateProjectLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsAddOrUpdateProjectLegacyResponseData = { - message: string; - documentation_url: string; -}; -declare type TeamsRemoveProjectLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * project_id parameter - */ - project_id: number; -}; -declare type TeamsRemoveProjectLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/projects/:project_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListReposLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListReposLegacyResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type TeamsListReposLegacyResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsListReposLegacyResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsListReposLegacyResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsListReposLegacyResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsListReposLegacyResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: TeamsListReposLegacyResponseDataItemLicense; -}; -declare type TeamsListReposLegacyResponseData = Array; -declare type TeamsCheckManagesRepoLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsCheckManagesRepoLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataPermissions = { - pull: boolean; - triage: boolean; - push: boolean; - maintain: boolean; - admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataSourcePermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataSourceOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataSource = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoLegacyResponseDataSourceOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoLegacyResponseDataSourcePermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataParentPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataParentOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataParent = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: TeamsCheckManagesRepoLegacyResponseDataParentOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: TeamsCheckManagesRepoLegacyResponseDataParentPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type TeamsCheckManagesRepoLegacyResponseDataOrganization = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type TeamsCheckManagesRepoLegacyResponseData = { - organization: TeamsCheckManagesRepoLegacyResponseDataOrganization; - parent: TeamsCheckManagesRepoLegacyResponseDataParent; - source: TeamsCheckManagesRepoLegacyResponseDataSource; - permissions: TeamsCheckManagesRepoLegacyResponseDataPermissions; -}; -declare type TeamsAddOrUpdateRepoLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; - /** - * 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. - */ - permission?: "pull" | "push" | "admin"; -}; -declare type TeamsAddOrUpdateRepoLegacyRequestOptions = { - method: "PUT"; - url: "/teams/:team_id/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsRemoveRepoLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type TeamsRemoveRepoLegacyRequestOptions = { - method: "DELETE"; - url: "/teams/:team_id/repos/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsForLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; -}; -declare type TeamsListIdPGroupsForLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListIdPGroupsForLegacyResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsListIdPGroupsForLegacyResponseData = { - groups: Array; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * The IdP groups you want to connect to a GitHub team. When updating, the new `groups` object will replace the original one. You must include any existing groups that you don't want to remove. - */ - groups: TeamsCreateOrUpdateIdPGroupConnectionsLegacyParamsGroups[]; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyRequestOptions = { - method: "PATCH"; - url: "/teams/:team_id/team-sync/group-mappings"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyResponseDataGroupsItem = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyResponseData = { - groups: Array; -}; -declare type TeamsListChildLegacyEndpoint = { - /** - * team_id parameter - */ - team_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListChildLegacyRequestOptions = { - method: "GET"; - url: "/teams/:team_id/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListChildLegacyResponseDataItemParent = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; -}; -declare type TeamsListChildLegacyResponseDataItem = { - id: number; - node_id: string; - url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: TeamsListChildLegacyResponseDataItemParent; -}; -declare type TeamsListChildLegacyResponseData = Array; -declare type UsersGetAuthenticatedEndpoint = {}; -declare type UsersGetAuthenticatedRequestOptions = { - method: "GET"; - url: "/user"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetAuthenticatedResponseDataPlan = { - name: string; - space: number; - private_repos: number; - collaborators: number; -}; -declare type UsersGetAuthenticatedResponseData = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - private_gists?: number; - total_private_repos?: number; - owned_private_repos?: number; - disk_usage?: number; - collaborators?: number; - two_factor_authentication?: boolean; - plan?: UsersGetAuthenticatedResponseDataPlan; -}; -declare type UsersUpdateAuthenticatedEndpoint = { - /** - * The new name of the user. - */ - name?: string; - /** - * The publicly visible email address of the user. - */ - email?: string; - /** - * The new blog URL of the user. - */ - blog?: string; - /** - * The new company of the user. - */ - company?: string; - /** - * The new location of the user. - */ - location?: string; - /** - * The new hiring availability of the user. - */ - hireable?: boolean; - /** - * The new short biography of the user. - */ - bio?: string; -}; -declare type UsersUpdateAuthenticatedRequestOptions = { - method: "PATCH"; - url: "/user"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersUpdateAuthenticatedResponseDataPlan = { - name: string; - space: number; - private_repos: number; - collaborators: number; -}; -declare type UsersUpdateAuthenticatedResponseData = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - private_gists: number; - total_private_repos: number; - owned_private_repos: number; - disk_usage: number; - collaborators: number; - two_factor_authentication: boolean; - plan: UsersUpdateAuthenticatedResponseDataPlan; -}; -declare type UsersListBlockedEndpoint = {}; -declare type UsersListBlockedRequestOptions = { - method: "GET"; - url: "/user/blocks"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListBlockedResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListBlockedResponseData = Array; -declare type UsersCheckBlockedEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersCheckBlockedRequestOptions = { - method: "GET"; - url: "/user/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersBlockEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersBlockRequestOptions = { - method: "PUT"; - url: "/user/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersUnblockEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersUnblockRequestOptions = { - method: "DELETE"; - url: "/user/blocks/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersTogglePrimaryEmailVisibilityEndpoint = { - /** - * Specify the _primary_ email address that needs a visibility change. - */ - email: string; - /** - * Use `public` to enable an authenticated user to view the specified email address, or use `private` so this primary email address cannot be seen publicly. - */ - visibility: string; -}; -declare type UsersTogglePrimaryEmailVisibilityRequestOptions = { - method: "PATCH"; - url: "/user/email/visibility"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersTogglePrimaryEmailVisibilityResponseDataItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string; -}; -declare type UsersTogglePrimaryEmailVisibilityResponseData = Array; -declare type UsersListEmailsEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListEmailsRequestOptions = { - method: "GET"; - url: "/user/emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListEmailsResponseDataItem = { - email: string; - verified: boolean; - primary: boolean; - visibility: string; -}; -declare type UsersListEmailsResponseData = Array; -declare type UsersAddEmailsEndpoint = { - /** - * Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; -}; -declare type UsersAddEmailsRequestOptions = { - method: "POST"; - url: "/user/emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersAddEmailsResponseDataItem = { - email: string; - primary: boolean; - verified: boolean; - visibility: string | null; -}; -declare type UsersAddEmailsResponseData = Array; -declare type UsersDeleteEmailsEndpoint = { - /** - * Deletes one or more email addresses from your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key. - */ - emails: string[]; -}; -declare type UsersDeleteEmailsRequestOptions = { - method: "DELETE"; - url: "/user/emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowersForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/followers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForAuthenticatedUserResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowersForAuthenticatedUserResponseData = Array; -declare type UsersListFollowedByAuthenticatedEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowedByAuthenticatedRequestOptions = { - method: "GET"; - url: "/user/following"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowedByAuthenticatedResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowedByAuthenticatedResponseData = Array; -declare type UsersCheckFollowingEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersCheckFollowingRequestOptions = { - method: "GET"; - url: "/user/following/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersFollowEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersFollowRequestOptions = { - method: "PUT"; - url: "/user/following/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersUnfollowEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersUnfollowRequestOptions = { - method: "DELETE"; - url: "/user/following/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListGpgKeysEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListGpgKeysRequestOptions = { - method: "GET"; - url: "/user/gpg_keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListGpgKeysResponseDataItemSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysResponseDataItemEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersListGpgKeysResponseDataItem = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysResponseData = Array; -declare type UsersCreateGpgKeyEndpoint = { - /** - * Your GPG key, generated in ASCII-armored format. See "[Generating a new GPG key](https://help.github.com/articles/generating-a-new-gpg-key/)" for help creating a GPG key. - */ - armored_public_key?: string; -}; -declare type UsersCreateGpgKeyRequestOptions = { - method: "POST"; - url: "/user/gpg_keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersCreateGpgKeyResponseDataSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersCreateGpgKeyResponseDataEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersCreateGpgKeyResponseData = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersGetGpgKeyEndpoint = { - /** - * gpg_key_id parameter - */ - gpg_key_id: number; -}; -declare type UsersGetGpgKeyRequestOptions = { - method: "GET"; - url: "/user/gpg_keys/:gpg_key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetGpgKeyResponseDataSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersGetGpgKeyResponseDataEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersGetGpgKeyResponseData = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersDeleteGpgKeyEndpoint = { - /** - * gpg_key_id parameter - */ - gpg_key_id: number; -}; -declare type UsersDeleteGpgKeyRequestOptions = { - method: "DELETE"; - url: "/user/gpg_keys/:gpg_key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationsForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListInstallationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/installations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemPermissions = { - metadata: string; - contents: string; - issues: string; - single_file: string; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemAccount = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url?: string; - issues_url?: string; - members_url?: string; - public_members_url?: string; - avatar_url: string; - description?: string; - gravatar_id?: string; - html_url?: string; - followers_url?: string; - following_url?: string; - gists_url?: string; - starred_url?: string; - subscriptions_url?: string; - organizations_url?: string; - received_events_url?: string; - type?: string; - site_admin?: boolean; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItem = { - id: number; - account: AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemAccount; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsListInstallationsForAuthenticatedUserResponseDataInstallationsItemPermissions; - events: Array; - single_file_name: string; -}; -declare type AppsListInstallationsForAuthenticatedUserResponseData = { - total_count: number; - installations: Array; -}; -declare type AppsListInstallationReposForAuthenticatedUserEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"machine-man">; -declare type AppsListInstallationReposForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/installations/:installation_id/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: AppsListInstallationReposForAuthenticatedUserResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type AppsListInstallationReposForAuthenticatedUserResponseData = { - total_count: number; - repositories: Array; -}; -declare type AppsAddRepoToInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; - /** - * repository_id parameter - */ - repository_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsAddRepoToInstallationRequestOptions = { - method: "PUT"; - url: "/user/installations/:installation_id/repositories/:repository_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsRemoveRepoFromInstallationEndpoint = { - /** - * installation_id parameter - */ - installation_id: number; - /** - * repository_id parameter - */ - repository_id: number; -} & RequiredPreview<"machine-man">; -declare type AppsRemoveRepoFromInstallationRequestOptions = { - method: "DELETE"; - url: "/user/installations/:installation_id/repositories/:repository_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForAuthenticatedUserEndpoint = { - /** - * 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`: All issues the authenticated user can see, regardless of participation or creation - */ - filter?: "assigned" | "created" | "mentioned" | "subscribed" | "all"; - /** - * Indicates the state of the issues to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * A list of comma separated label names. Example: `bug,ui,@high` - */ - labels?: string; - /** - * What to sort results by. Can be either `created`, `updated`, `comments`. - */ - sort?: "created" | "updated" | "comments"; - /** - * The direction of the sort. Can be either `asc` or `desc`. - */ - direction?: "asc" | "desc"; - /** - * Only issues updated at or after this time are returned. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type IssuesListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/issues"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemRepositoryPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: IssuesListForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: IssuesListForAuthenticatedUserResponseDataItemRepositoryPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemPullRequest = { - url: string; - html_url: string; - diff_url: string; - patch_url: string; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemMilestoneCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemMilestone = { - url: string; - html_url: string; - labels_url: string; - id: number; - node_id: string; - number: number; - state: string; - title: string; - description: string; - creator: IssuesListForAuthenticatedUserResponseDataItemMilestoneCreator; - open_issues: number; - closed_issues: number; - created_at: string; - updated_at: string; - closed_at: string; - due_on: string; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemAssigneesItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemAssignee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemLabelsItem = { - id: number; - node_id: string; - url: string; - name: string; - description: string; - color: string; - default: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type IssuesListForAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - url: string; - repository_url: string; - labels_url: string; - comments_url: string; - events_url: string; - html_url: string; - number: number; - state: string; - title: string; - body: string; - user: IssuesListForAuthenticatedUserResponseDataItemUser; - labels: Array; - assignee: IssuesListForAuthenticatedUserResponseDataItemAssignee; - assignees: Array; - milestone: IssuesListForAuthenticatedUserResponseDataItemMilestone; - locked: boolean; - active_lock_reason: string; - comments: number; - pull_request: IssuesListForAuthenticatedUserResponseDataItemPullRequest; - closed_at: null; - created_at: string; - updated_at: string; - repository: IssuesListForAuthenticatedUserResponseDataItemRepository; -}; -declare type IssuesListForAuthenticatedUserResponseData = Array; -declare type UsersListPublicKeysEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListPublicKeysRequestOptions = { - method: "GET"; - url: "/user/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListPublicKeysResponseDataItem = { - key_id: string; - key: string; -}; -declare type UsersListPublicKeysResponseData = Array; -declare type UsersCreatePublicKeyEndpoint = { - /** - * A descriptive name for the new key. Use a name that will help you recognize this key in your GitHub account. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air". - */ - title?: string; - /** - * The public SSH key to add to your GitHub account. See "[Generating a new SSH key](https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/)" for guidance on how to create a public SSH key. - */ - key?: string; -}; -declare type UsersCreatePublicKeyRequestOptions = { - method: "POST"; - url: "/user/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersCreatePublicKeyResponseData = { - key_id: string; - key: string; -}; -declare type UsersGetPublicKeyEndpoint = { - /** - * key_id parameter - */ - key_id: number; -}; -declare type UsersGetPublicKeyRequestOptions = { - method: "GET"; - url: "/user/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetPublicKeyResponseData = { - key_id: string; - key: string; -}; -declare type UsersDeletePublicKeyEndpoint = { - /** - * key_id parameter - */ - key_id: number; -}; -declare type UsersDeletePublicKeyRequestOptions = { - method: "DELETE"; - url: "/user/keys/:key_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListSubscriptionsForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListSubscriptionsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/marketplace_purchases"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseDataItemPlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseDataItemAccount = { - login: string; - id: number; - url: string; - email: null; - organization_billing_email: string; - type: string; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseDataItem = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - account: AppsListSubscriptionsForAuthenticatedUserResponseDataItemAccount; - plan: AppsListSubscriptionsForAuthenticatedUserResponseDataItemPlan; -}; -declare type AppsListSubscriptionsForAuthenticatedUserResponseData = Array; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedRequestOptions = { - method: "GET"; - url: "/user/marketplace_purchases/stubbed"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemPlan = { - url: string; - accounts_url: string; - id: number; - number: number; - name: string; - description: string; - monthly_price_in_cents: number; - yearly_price_in_cents: number; - price_model: string; - has_free_trial: boolean; - unit_name: null; - state: string; - bullets: Array; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemAccount = { - login: string; - id: number; - url: string; - email: null; - organization_billing_email: string; - type: string; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItem = { - billing_cycle: string; - next_billing_date: string; - unit_count: null; - on_free_trial: boolean; - free_trial_ends_on: string; - updated_at: string; - account: AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemAccount; - plan: AppsListSubscriptionsForAuthenticatedUserStubbedResponseDataItemPlan; -}; -declare type AppsListSubscriptionsForAuthenticatedUserStubbedResponseData = Array; -declare type OrgsListMembershipsEndpoint = { - /** - * 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. - */ - state?: "active" | "pending"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListMembershipsRequestOptions = { - method: "GET"; - url: "/user/memberships/orgs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListMembershipsResponseDataItemUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsListMembershipsResponseDataItemOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListMembershipsResponseDataItem = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsListMembershipsResponseDataItemOrganization; - user: OrgsListMembershipsResponseDataItemUser; -}; -declare type OrgsListMembershipsResponseData = Array; -declare type OrgsGetMembershipForAuthenticatedUserEndpoint = { - /** - * org parameter - */ - org: string; -}; -declare type OrgsGetMembershipForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/memberships/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsGetMembershipForAuthenticatedUserResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsGetMembershipForAuthenticatedUserResponseDataOrganization; - user: OrgsGetMembershipForAuthenticatedUserResponseDataUser; -}; -declare type OrgsUpdateMembershipEndpoint = { - /** - * org parameter - */ - org: string; - /** - * The state that the membership should be in. Only `"active"` will be accepted. - */ - state: "active"; -}; -declare type OrgsUpdateMembershipRequestOptions = { - method: "PATCH"; - url: "/user/memberships/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsUpdateMembershipResponseDataUser = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type OrgsUpdateMembershipResponseDataOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsUpdateMembershipResponseData = { - url: string; - state: string; - role: string; - organization_url: string; - organization: OrgsUpdateMembershipResponseDataOrganization; - user: OrgsUpdateMembershipResponseDataUser; -}; -declare type MigrationsStartForAuthenticatedUserEndpoint = { - /** - * An array of repositories to include in the migration. - */ - repositories: string[]; - /** - * Locks the `repositories` to prevent changes during the migration when set to `true`. - */ - lock_repositories?: boolean; - /** - * Does not include attachments uploaded to GitHub.com in the migration data when set to `true`. Excluding attachments will reduce the migration archive file size. - */ - exclude_attachments?: boolean; -}; -declare type MigrationsStartForAuthenticatedUserRequestOptions = { - method: "POST"; - url: "/user/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsStartForAuthenticatedUserResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsStartForAuthenticatedUserResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsStartForAuthenticatedUserResponseData = { - id: number; - owner: MigrationsStartForAuthenticatedUserResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/migrations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListForAuthenticatedUserResponseDataItemRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListForAuthenticatedUserResponseDataItem = { - id: number; - owner: MigrationsListForAuthenticatedUserResponseDataItemOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsListForAuthenticatedUserResponseData = Array; -declare type MigrationsGetStatusForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsGetStatusForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/migrations/:migration_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsGetStatusForAuthenticatedUserResponseDataRepositoriesItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsGetStatusForAuthenticatedUserResponseData = { - id: number; - owner: MigrationsGetStatusForAuthenticatedUserResponseDataOwner; - guid: string; - state: string; - lock_repositories: boolean; - exclude_attachments: boolean; - repositories: Array; - url: string; - created_at: string; - updated_at: string; -}; -declare type MigrationsGetArchiveForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsGetArchiveForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsDeleteArchiveForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsDeleteArchiveForAuthenticatedUserRequestOptions = { - method: "DELETE"; - url: "/user/migrations/:migration_id/archive"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsUnlockRepoForAuthenticatedUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; - /** - * repo_name parameter - */ - repo_name: string; -} & RequiredPreview<"wyandotte">; -declare type MigrationsUnlockRepoForAuthenticatedUserRequestOptions = { - method: "DELETE"; - url: "/user/migrations/:migration_id/repos/:repo_name/lock"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/orgs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListForAuthenticatedUserResponseDataItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListForAuthenticatedUserResponseData = Array; -declare type ProjectsCreateForAuthenticatedUserEndpoint = { - /** - * The name of the project. - */ - name: string; - /** - * The description of the project. - */ - body?: string; -} & RequiredPreview<"inertia">; -declare type ProjectsCreateForAuthenticatedUserRequestOptions = { - method: "POST"; - url: "/user/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsCreateForAuthenticatedUserResponseDataCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsCreateForAuthenticatedUserResponseData = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsCreateForAuthenticatedUserResponseDataCreator; - created_at: string; - updated_at: string; -}; -declare type UsersListPublicEmailsEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListPublicEmailsRequestOptions = { - method: "GET"; - url: "/user/public_emails"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListPublicEmailsResponseDataItem = { - email: string; - verified: boolean; - primary: boolean; - visibility: string; -}; -declare type UsersListPublicEmailsResponseData = Array; -declare type ReposListForAuthenticatedUserEndpoint = { - /** - * Can be one of `all`, `public`, or `private`. - */ - visibility?: "all" | "public" | "private"; - /** - * 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. - */ - affiliation?: string; - /** - * Can be one of `all`, `owner`, `public`, `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**. - */ - type?: "all" | "owner" | "public" | "private" | "member"; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateForAuthenticatedUserEndpoint = { - /** - * The name of the repository. - */ - name: string; - /** - * A short description of the repository. - */ - description?: string; - /** - * A URL with more information about the repository. - */ - homepage?: string; - /** - * Either `true` to create a private repository or `false` to create a public one. - */ - private?: boolean; - /** - * 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`. For more information, see "[Creating an internal repository](https://help.github.com/github/creating-cloning-and-archiving-repositories/creating-an-internal-repository)" in the GitHub Help documentation. - * The `visibility` parameter overrides the `private` parameter when you use both parameters with the `nebula-preview` preview header. - */ - visibility?: "public" | "private" | "visibility" | "internal"; - /** - * Either `true` to enable issues for this repository or `false` to disable them. - */ - has_issues?: boolean; - /** - * 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_projects?: boolean; - /** - * Either `true` to enable the wiki for this repository or `false` to disable it. - */ - has_wiki?: boolean; - /** - * Either `true` to make this repo available as a template repository or `false` to prevent it. - */ - is_template?: boolean; - /** - * The id of the team that will be granted access to this repository. This is only valid when creating a repository in an organization. - */ - team_id?: number; - /** - * Pass `true` to create an initial commit with empty README. - */ - auto_init?: boolean; - /** - * 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". - */ - gitignore_template?: string; - /** - * 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". - */ - license_template?: string; - /** - * Either `true` to allow squash-merging pull requests, or `false` to prevent squash-merging. - */ - allow_squash_merge?: boolean; - /** - * Either `true` to allow merging pull requests with a merge commit, or `false` to prevent merging pull requests with merge commits. - */ - allow_merge_commit?: boolean; - /** - * Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. - */ - allow_rebase_merge?: boolean; - /** - * Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. - */ - delete_branch_on_merge?: boolean; -}; -declare type ReposCreateForAuthenticatedUserRequestOptions = { - method: "POST"; - url: "/user/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposCreateForAuthenticatedUserResponseDataPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ReposCreateForAuthenticatedUserResponseDataOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposCreateForAuthenticatedUserResponseData = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposCreateForAuthenticatedUserResponseDataOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ReposCreateForAuthenticatedUserResponseDataPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ReposListInvitationsForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListInvitationsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/repository_invitations"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemInviter = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemInvitee = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemRepositoryOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItemRepository = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ReposListInvitationsForAuthenticatedUserResponseDataItemRepositoryOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseDataItem = { - id: number; - repository: ReposListInvitationsForAuthenticatedUserResponseDataItemRepository; - invitee: ReposListInvitationsForAuthenticatedUserResponseDataItemInvitee; - inviter: ReposListInvitationsForAuthenticatedUserResponseDataItemInviter; - permissions: string; - created_at: string; - url: string; - html_url: string; -}; -declare type ReposListInvitationsForAuthenticatedUserResponseData = Array; -declare type ReposAcceptInvitationEndpoint = { - /** - * invitation_id parameter - */ - invitation_id: number; -}; -declare type ReposAcceptInvitationRequestOptions = { - method: "PATCH"; - url: "/user/repository_invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposDeclineInvitationEndpoint = { - /** - * invitation_id parameter - */ - invitation_id: number; -}; -declare type ReposDeclineInvitationRequestOptions = { - method: "DELETE"; - url: "/user/repository_invitations/:invitation_id"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByAuthenticatedUserEndpoint = { - /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). - */ - sort?: "created" | "updated"; - /** - * One of `asc` (ascending) or `desc` (descending). - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListReposStarredByAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/starred"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposStarredByAuthenticatedUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposStarredByAuthenticatedUserResponseDataItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ActivityListReposStarredByAuthenticatedUserResponseData = Array; -declare type ActivityCheckRepoIsStarredByAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityCheckRepoIsStarredByAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/starred/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityStarRepoForAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityStarRepoForAuthenticatedUserRequestOptions = { - method: "PUT"; - url: "/user/starred/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityUnstarRepoForAuthenticatedUserEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityUnstarRepoForAuthenticatedUserRequestOptions = { - method: "DELETE"; - url: "/user/starred/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListWatchedReposForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListWatchedReposForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/subscriptions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListWatchedReposForAuthenticatedUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListWatchedReposForAuthenticatedUserResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ActivityListWatchedReposForAuthenticatedUserResponseDataItemLicense; -}; -declare type ActivityListWatchedReposForAuthenticatedUserResponseData = Array; -declare type ActivityCheckWatchingRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityCheckWatchingRepoLegacyRequestOptions = { - method: "GET"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityWatchRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityWatchRepoLegacyRequestOptions = { - method: "PUT"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityStopWatchingRepoLegacyEndpoint = { - /** - * owner parameter - */ - owner: string; - /** - * repo parameter - */ - repo: string; -}; -declare type ActivityStopWatchingRepoLegacyRequestOptions = { - method: "DELETE"; - url: "/user/subscriptions/:owner/:repo"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListForAuthenticatedUserEndpoint = { - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type TeamsListForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/user/teams"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type TeamsListForAuthenticatedUserResponseDataItemOrganization = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; - name: string; - company: string; - blog: string; - location: string; - email: string; - is_verified: boolean; - has_organization_projects: boolean; - has_repository_projects: boolean; - public_repos: number; - public_gists: number; - followers: number; - following: number; - html_url: string; - created_at: string; - type: string; -}; -declare type TeamsListForAuthenticatedUserResponseDataItem = { - id: number; - node_id: string; - url: string; - html_url: string; - name: string; - slug: string; - description: string; - privacy: string; - permission: string; - members_url: string; - repositories_url: string; - parent: null; - members_count: number; - repos_count: number; - created_at: string; - updated_at: string; - organization: TeamsListForAuthenticatedUserResponseDataItemOrganization; -}; -declare type TeamsListForAuthenticatedUserResponseData = Array; -declare type MigrationsListReposForUserEndpoint = { - /** - * migration_id parameter - */ - migration_id: number; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"wyandotte">; -declare type MigrationsListReposForUserRequestOptions = { - method: "GET"; - url: "/user/:migration_id/repositories"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type MigrationsListReposForUserResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type MigrationsListReposForUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type MigrationsListReposForUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type MigrationsListReposForUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: MigrationsListReposForUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: MigrationsListReposForUserResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: MigrationsListReposForUserResponseDataItemLicense; -}; -declare type MigrationsListReposForUserResponseData = Array; -declare type UsersListEndpoint = { - /** - * The integer ID of the last User that you've seen. - */ - since?: string; -}; -declare type UsersListRequestOptions = { - method: "GET"; - url: "/users"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListResponseData = Array; -declare type UsersGetByUsernameEndpoint = { - /** - * username parameter - */ - username: string; -}; -declare type UsersGetByUsernameRequestOptions = { - method: "GET"; - url: "/users/:username"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetByUsernameResponseDataPlan = { - name: string; - space: number; - collaborators: number; - private_repos: number; -}; -declare type UsersGetByUsernameResponseData = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; - name: string; - company: string; - blog: string; - location: string; - email: string; - hireable: boolean; - bio: string; - public_repos: number; - public_gists: number; - followers: number; - following: number; - created_at: string; - updated_at: string; - plan?: UsersGetByUsernameResponseDataPlan; -}; -declare type ActivityListEventsForAuthenticatedUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListEventsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/users/:username/events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListOrgEventsForAuthenticatedUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * org parameter - */ - org: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListOrgEventsForAuthenticatedUserRequestOptions = { - method: "GET"; - url: "/users/:username/events/orgs/:org"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListPublicEventsForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListPublicEventsForUserRequestOptions = { - method: "GET"; - url: "/users/:username/events/public"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowersForUserRequestOptions = { - method: "GET"; - url: "/users/:username/followers"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowersForUserResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowersForUserResponseData = Array; -declare type UsersListFollowingForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListFollowingForUserRequestOptions = { - method: "GET"; - url: "/users/:username/following"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListFollowingForUserResponseDataItem = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type UsersListFollowingForUserResponseData = Array; -declare type UsersCheckFollowingForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * target_user parameter - */ - target_user: string; -}; -declare type UsersCheckFollowingForUserRequestOptions = { - method: "GET"; - url: "/users/:username/following/:target_user"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`. Only gists updated at or after this time are returned. - */ - since?: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type GistsListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/gists"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type GistsListForUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type GistsListForUserResponseDataItemFilesHelloWorldRb = { - filename: string; - type: string; - language: string; - raw_url: string; - size: number; -}; -declare type GistsListForUserResponseDataItemFiles = { - "hello_world.rb": GistsListForUserResponseDataItemFilesHelloWorldRb; -}; -declare type GistsListForUserResponseDataItem = { - url: string; - forks_url: string; - commits_url: string; - id: string; - node_id: string; - git_pull_url: string; - git_push_url: string; - html_url: string; - files: GistsListForUserResponseDataItemFiles; - public: boolean; - created_at: string; - updated_at: string; - description: string; - comments: number; - user: null; - comments_url: string; - owner: GistsListForUserResponseDataItemOwner; - truncated: boolean; -}; -declare type GistsListForUserResponseData = Array; -declare type UsersListGpgKeysForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListGpgKeysForUserRequestOptions = { - method: "GET"; - url: "/users/:username/gpg_keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListGpgKeysForUserResponseDataItemSubkeysItem = { - id: number; - primary_key_id: number; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysForUserResponseDataItemEmailsItem = { - email: string; - verified: boolean; -}; -declare type UsersListGpgKeysForUserResponseDataItem = { - id: number; - primary_key_id: null; - key_id: string; - public_key: string; - emails: Array; - subkeys: Array; - can_sign: boolean; - can_encrypt_comms: boolean; - can_encrypt_storage: boolean; - can_certify: boolean; - created_at: string; - expires_at: null; -}; -declare type UsersListGpgKeysForUserResponseData = Array; -declare type UsersGetContextForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * 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_type?: "organization" | "repository" | "issue" | "pull_request"; - /** - * Uses the ID for the `subject_type` you specified. **Required** when using `subject_type`. - */ - subject_id?: string; -}; -declare type UsersGetContextForUserRequestOptions = { - method: "GET"; - url: "/users/:username/hovercard"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersGetContextForUserResponseDataContextsItem = { - message: string; - octicon: string; -}; -declare type UsersGetContextForUserResponseData = { - contexts: Array; -}; -declare type AppsGetUserInstallationEndpoint = { - /** - * username parameter - */ - username: string; -} & RequiredPreview<"machine-man">; -declare type AppsGetUserInstallationRequestOptions = { - method: "GET"; - url: "/users/:username/installation"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type AppsGetUserInstallationResponseDataPermissions = { - checks: string; - metadata: string; - contents: string; -}; -declare type AppsGetUserInstallationResponseDataAccount = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type AppsGetUserInstallationResponseData = { - id: number; - account: AppsGetUserInstallationResponseDataAccount; - repository_selection: string; - access_tokens_url: string; - repositories_url: string; - html_url: string; - app_id: number; - target_id: number; - target_type: string; - permissions: AppsGetUserInstallationResponseDataPermissions; - events: Array; - created_at: string; - updated_at: string; - single_file_name: null; -}; -declare type UsersListPublicKeysForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type UsersListPublicKeysForUserRequestOptions = { - method: "GET"; - url: "/users/:username/keys"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type UsersListPublicKeysForUserResponseDataItem = { - id: number; - key: string; -}; -declare type UsersListPublicKeysForUserResponseData = Array; -declare type OrgsListForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type OrgsListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/orgs"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type OrgsListForUserResponseDataItem = { - login: string; - id: number; - node_id: string; - url: string; - repos_url: string; - events_url: string; - hooks_url: string; - issues_url: string; - members_url: string; - public_members_url: string; - avatar_url: string; - description: string; -}; -declare type OrgsListForUserResponseData = Array; -declare type ProjectsListForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`. - */ - state?: "open" | "closed" | "all"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -} & RequiredPreview<"inertia">; -declare type ProjectsListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/projects"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ProjectsListForUserResponseDataItemCreator = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ProjectsListForUserResponseDataItem = { - owner_url: string; - url: string; - html_url: string; - columns_url: string; - id: number; - node_id: string; - name: string; - body: string; - number: number; - state: string; - creator: ProjectsListForUserResponseDataItemCreator; - created_at: string; - updated_at: string; -}; -declare type ProjectsListForUserResponseData = Array; -declare type ActivityListReceivedEventsForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListReceivedEventsForUserRequestOptions = { - method: "GET"; - url: "/users/:username/received_events"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReceivedPublicEventsForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListReceivedPublicEventsForUserRequestOptions = { - method: "GET"; - url: "/users/:username/received_events/public"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ReposListForUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Can be one of `all`, `owner`, `member`. - */ - type?: "all" | "owner" | "member"; - /** - * Can be one of `created`, `updated`, `pushed`, `full_name`. - */ - sort?: "created" | "updated" | "pushed" | "full_name"; - /** - * Can be one of `asc` or `desc`. Default: `asc` when using `full_name`, otherwise `desc` - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ReposListForUserRequestOptions = { - method: "GET"; - url: "/users/:username/repos"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * One of `created` (when the repository was starred) or `updated` (when it was last pushed to). - */ - sort?: "created" | "updated"; - /** - * One of `asc` (ascending) or `desc` (descending). - */ - direction?: "asc" | "desc"; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListReposStarredByUserRequestOptions = { - method: "GET"; - url: "/users/:username/starred"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposStarredByUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListReposStarredByUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListReposStarredByUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposStarredByUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposStarredByUserResponseDataItemPermissions; - allow_rebase_merge: boolean; - template_repository: null; - temp_clone_token: string; - allow_squash_merge: boolean; - allow_merge_commit: boolean; - subscribers_count: number; - network_count: number; -}; -declare type ActivityListReposStarredByUserResponseData = Array; -declare type ActivityListReposWatchedByUserEndpoint = { - /** - * username parameter - */ - username: string; - /** - * Results per page (max 100) - */ - per_page?: number; - /** - * Page number of the results to fetch. - */ - page?: number; -}; -declare type ActivityListReposWatchedByUserRequestOptions = { - method: "GET"; - url: "/users/:username/subscriptions"; - headers: RequestHeaders; - request: RequestRequestOptions; -}; -declare type ActivityListReposWatchedByUserResponseDataItemLicense = { - key: string; - name: string; - spdx_id: string; - url: string; - node_id: string; -}; -declare type ActivityListReposWatchedByUserResponseDataItemPermissions = { - admin: boolean; - push: boolean; - pull: boolean; -}; -declare type ActivityListReposWatchedByUserResponseDataItemOwner = { - login: string; - id: number; - node_id: string; - avatar_url: string; - gravatar_id: string; - url: string; - html_url: string; - followers_url: string; - following_url: string; - gists_url: string; - starred_url: string; - subscriptions_url: string; - organizations_url: string; - repos_url: string; - events_url: string; - received_events_url: string; - type: string; - site_admin: boolean; -}; -declare type ActivityListReposWatchedByUserResponseDataItem = { - id: number; - node_id: string; - name: string; - full_name: string; - owner: ActivityListReposWatchedByUserResponseDataItemOwner; - private: boolean; - html_url: string; - description: string; - fork: boolean; - url: string; - archive_url: string; - assignees_url: string; - blobs_url: string; - branches_url: string; - collaborators_url: string; - comments_url: string; - commits_url: string; - compare_url: string; - contents_url: string; - contributors_url: string; - deployments_url: string; - downloads_url: string; - events_url: string; - forks_url: string; - git_commits_url: string; - git_refs_url: string; - git_tags_url: string; - git_url: string; - issue_comment_url: string; - issue_events_url: string; - issues_url: string; - keys_url: string; - labels_url: string; - languages_url: string; - merges_url: string; - milestones_url: string; - notifications_url: string; - pulls_url: string; - releases_url: string; - ssh_url: string; - stargazers_url: string; - statuses_url: string; - subscribers_url: string; - subscription_url: string; - tags_url: string; - teams_url: string; - trees_url: string; - clone_url: string; - mirror_url: string; - hooks_url: string; - svn_url: string; - homepage: string; - language: null; - forks_count: number; - stargazers_count: number; - watchers_count: number; - size: number; - default_branch: string; - open_issues_count: number; - is_template: boolean; - topics: Array; - has_issues: boolean; - has_projects: boolean; - has_wiki: boolean; - has_pages: boolean; - has_downloads: boolean; - archived: boolean; - disabled: boolean; - visibility: string; - pushed_at: string; - created_at: string; - updated_at: string; - permissions: ActivityListReposWatchedByUserResponseDataItemPermissions; - template_repository: null; - temp_clone_token: string; - subscribers_count: number; - network_count: number; - license: ActivityListReposWatchedByUserResponseDataItemLicense; -}; -declare type ActivityListReposWatchedByUserResponseData = Array; -declare type AppsCreateInstallationTokenParamsPermissions = {}; -declare type GistsCreateParamsFiles = { - content?: string; -}; -declare type GistsUpdateParamsFiles = { - content?: string; - filename?: string; -}; -declare type OrgsCreateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type OrgsUpdateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsInOrgParamsGroups = { - group_id: string; - group_name: string; - group_description: string; -}; -declare type ReposUpdateBranchProtectionParamsRequiredStatusChecks = { - strict: boolean; - contexts: string[]; -}; -declare type ReposUpdateBranchProtectionParamsRequiredPullRequestReviews = { - dismissal_restrictions?: ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions; - dismiss_stale_reviews?: boolean; - require_code_owner_reviews?: boolean; - required_approving_review_count?: number; -}; -declare type ReposUpdateBranchProtectionParamsRequiredPullRequestReviewsDismissalRestrictions = { - users?: string[]; - teams?: string[]; -}; -declare type ReposUpdateBranchProtectionParamsRestrictions = { - users: string[]; - teams: string[]; - apps?: string[]; -}; -declare type ReposUpdateProtectedBranchPullRequestReviewEnforcementParamsDismissalRestrictions = { - users?: string[]; - teams?: string[]; -}; -declare type ChecksCreateParamsOutput = { - title: string; - summary: string; - text?: string; - annotations?: ChecksCreateParamsOutputAnnotations[]; - images?: ChecksCreateParamsOutputImages[]; -}; -declare type ChecksCreateParamsOutputAnnotations = { - path: string; - start_line: number; - end_line: number; - start_column?: number; - end_column?: number; - annotation_level: "notice" | "warning" | "failure"; - message: string; - title?: string; - raw_details?: string; -}; -declare type ChecksCreateParamsOutputImages = { - alt: string; - image_url: string; - caption?: string; -}; -declare type ChecksCreateParamsActions = { - label: string; - description: string; - identifier: string; -}; -declare type ChecksUpdateParamsOutput = { - title?: string; - summary: string; - text?: string; - annotations?: ChecksUpdateParamsOutputAnnotations[]; - images?: ChecksUpdateParamsOutputImages[]; -}; -declare type ChecksUpdateParamsOutputAnnotations = { - path: string; - start_line: number; - end_line: number; - start_column?: number; - end_column?: number; - annotation_level: "notice" | "warning" | "failure"; - message: string; - title?: string; - raw_details?: string; -}; -declare type ChecksUpdateParamsOutputImages = { - alt: string; - image_url: string; - caption?: string; -}; -declare type ChecksUpdateParamsActions = { - label: string; - description: string; - identifier: string; -}; -declare type ChecksSetSuitesPreferencesParamsAutoTriggerChecks = { - app_id: number; - setting: boolean; -}; -declare type ReposCreateOrUpdateFileParamsCommitter = { - name: string; - email: string; -}; -declare type ReposCreateOrUpdateFileParamsAuthor = { - name: string; - email: string; -}; -declare type ReposDeleteFileParamsCommitter = { - name?: string; - email?: string; -}; -declare type ReposDeleteFileParamsAuthor = { - name?: string; - email?: string; -}; -declare type ReposCreateDispatchEventParamsClientPayload = {}; -declare type GitCreateCommitParamsAuthor = { - name?: string; - email?: string; - date?: string; -}; -declare type GitCreateCommitParamsCommitter = { - name?: string; - email?: string; - date?: string; -}; -declare type GitCreateTagParamsTagger = { - name?: string; - email?: string; - date?: string; -}; -declare type GitCreateTreeParamsTree = { - path?: string; - mode?: "100644" | "100755" | "040000" | "160000" | "120000"; - type?: "blob" | "tree" | "commit"; - sha?: string | null; - content?: string; -}; -declare type ReposCreateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type ReposUpdateHookParamsConfig = { - url: string; - content_type?: string; - secret?: string; - insecure_ssl?: string; -}; -declare type ReposEnablePagesSiteParamsSource = { - branch?: "master" | "gh-pages"; - path?: string; -}; -declare type PullsCreateReviewParamsComments = { - path: string; - position: number; - body: string; -}; -declare type TeamsCreateOrUpdateIdPGroupConnectionsLegacyParamsGroups = { - group_id: string; - group_name: string; - group_description: string; -}; -export {}; diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/LICENSE.md b/node_modules/@octokit/rest/node_modules/universal-user-agent/LICENSE.md deleted file mode 100644 index f105ab0c0..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/LICENSE.md +++ /dev/null @@ -1,7 +0,0 @@ -# [ISC License](https://spdx.org/licenses/ISC) - -Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/README.md b/node_modules/@octokit/rest/node_modules/universal-user-agent/README.md deleted file mode 100644 index d00d14c1f..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# universal-user-agent - -> Get a user agent string in both browser and node - -[![@latest](https://img.shields.io/npm/v/universal-user-agent.svg)](https://www.npmjs.com/package/universal-user-agent) -[![Build Status](https://travis-ci.com/gr2m/universal-user-agent.svg?branch=master)](https://travis-ci.com/gr2m/universal-user-agent) -[![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/) - -```js -const { getUserAgent } = require("universal-user-agent"); -// or import { getUserAgent } from "universal-user-agent"; - -const userAgent = getUserAgent(); -// userAgent will look like this -// in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0" -// in node: Node.js/v8.9.4 (macOS High Sierra; x64) -``` - -## Credits - -The Node implementation was originally inspired by [default-user-agent](https://www.npmjs.com/package/default-user-agent). - -## License - -[ISC](LICENSE.md) diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js deleted file mode 100644 index 80a07105f..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var osName = _interopDefault(require('os-name')); - -function getUserAgent() { - try { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; - } catch (error) { - if (/wmic os get Caption/.test(error.message)) { - return "Windows "; - } - - throw error; - } -} - -exports.getUserAgent = getUserAgent; -//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js.map b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js.map deleted file mode 100644 index aff09ec41..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-node/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sources":["../dist-src/node.js"],"sourcesContent":["import osName from \"os-name\";\nexport function getUserAgent() {\n try {\n return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`;\n }\n catch (error) {\n if (/wmic os get Caption/.test(error.message)) {\n return \"Windows \";\n }\n throw error;\n }\n}\n"],"names":["getUserAgent","process","version","substr","osName","arch","error","test","message"],"mappings":";;;;;;;;AACO,SAASA,YAAT,GAAwB;MACvB;WACQ,WAAUC,OAAO,CAACC,OAAR,CAAgBC,MAAhB,CAAuB,CAAvB,CAA0B,KAAIC,MAAM,EAAG,KAAIH,OAAO,CAACI,IAAK,GAA1E;GADJ,CAGA,OAAOC,KAAP,EAAc;QACN,sBAAsBC,IAAtB,CAA2BD,KAAK,CAACE,OAAjC,CAAJ,EAA+C;aACpC,gCAAP;;;UAEEF,KAAN;;;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/browser.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/browser.js deleted file mode 100644 index 49160f992..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/browser.js +++ /dev/null @@ -1,8 +0,0 @@ -export function getUserAgent() { - try { - return navigator.userAgent; - } - catch (e) { - return ""; - } -} diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/index.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/index.js deleted file mode 100644 index c6253f5ad..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/index.js +++ /dev/null @@ -1 +0,0 @@ -export { getUserAgent } from "./node"; diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/node.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/node.js deleted file mode 100644 index 8b70a038c..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-src/node.js +++ /dev/null @@ -1,12 +0,0 @@ -import osName from "os-name"; -export function getUserAgent() { - try { - return `Node.js/${process.version.substr(1)} (${osName()}; ${process.arch})`; - } - catch (error) { - if (/wmic os get Caption/.test(error.message)) { - return "Windows "; - } - throw error; - } -} diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/browser.d.ts b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/browser.d.ts deleted file mode 100644 index a7bb1c440..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function getUserAgent(): string; diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/index.d.ts b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/index.d.ts deleted file mode 100644 index c6253f5ad..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { getUserAgent } from "./node"; diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/node.d.ts b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/node.d.ts deleted file mode 100644 index a7bb1c440..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-types/node.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function getUserAgent(): string; diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js deleted file mode 100644 index debfd6a2f..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js +++ /dev/null @@ -1,11 +0,0 @@ -function getUserAgent() { - try { - return navigator.userAgent; - } - catch (e) { - return ""; - } -} - -export { getUserAgent }; -//# sourceMappingURL=index.js.map diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js.map b/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js.map deleted file mode 100644 index 71d4e0f3f..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/dist-web/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sources":["../dist-src/browser.js"],"sourcesContent":["export function getUserAgent() {\n try {\n return navigator.userAgent;\n }\n catch (e) {\n return \"\";\n }\n}\n"],"names":[],"mappings":"AAAO,SAAS,YAAY,GAAG;IAC3B,IAAI;QACA,OAAO,SAAS,CAAC,SAAS,CAAC;KAC9B;IACD,OAAO,CAAC,EAAE;QACN,OAAO,uBAAuB,CAAC;KAClC;CACJ;;;;"} \ No newline at end of file diff --git a/node_modules/@octokit/rest/node_modules/universal-user-agent/package.json b/node_modules/@octokit/rest/node_modules/universal-user-agent/package.json deleted file mode 100644 index 1df134d8c..000000000 --- a/node_modules/@octokit/rest/node_modules/universal-user-agent/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "universal-user-agent", - "description": "Get a user agent string in both browser and node", - "version": "4.0.1", - "license": "ISC", - "files": [ - "dist-*/", - "bin/" - ], - "pika": true, - "sideEffects": false, - "keywords": [], - "repository": "https://github.com/gr2m/universal-user-agent.git", - "dependencies": { - "os-name": "^3.1.0" - }, - "devDependencies": { - "@gr2m/pika-plugin-build-web": "^0.6.0-issue-84.1", - "@pika/pack": "^0.5.0", - "@pika/plugin-build-node": "^0.9.1", - "@pika/plugin-ts-standard-pkg": "^0.9.1", - "@types/jest": "^25.1.0", - "jest": "^24.9.0", - "prettier": "^1.18.2", - "semantic-release": "^17.0.0", - "ts-jest": "^25.1.0", - "typescript": "^3.6.2" - }, - "source": "dist-src/index.js", - "types": "dist-types/index.d.ts", - "main": "dist-node/index.js", - "module": "dist-web/index.js" -} diff --git a/node_modules/@octokit/rest/package.json b/node_modules/@octokit/rest/package.json index a878a0de3..24d0d2a76 100644 --- a/node_modules/@octokit/rest/package.json +++ b/node_modules/@octokit/rest/package.json @@ -1,17 +1,20 @@ { "name": "@octokit/rest", - "version": "16.43.2", - "publishConfig": { - "access": "public" - }, "description": "GitHub REST API client for Node.js", + "version": "18.0.11", + "license": "MIT", + "files": [ + "dist-*/", + "bin/" + ], + "pika": true, + "sideEffects": false, "keywords": [ "octokit", "github", "rest", "api-client" ], - "author": "Gregor Martynus (https://github.com/gr2m)", "contributors": [ { "name": "Mike de Boer", @@ -32,109 +35,34 @@ ], "repository": "https://github.com/octokit/rest.js", "dependencies": { - "@octokit/auth-token": "^2.4.0", - "@octokit/plugin-paginate-rest": "^1.1.1", - "@octokit/plugin-request-log": "^1.0.0", - "@octokit/plugin-rest-endpoint-methods": "2.4.0", - "@octokit/request": "^5.2.0", - "@octokit/request-error": "^1.0.2", - "atob-lite": "^2.0.0", - "before-after-hook": "^2.0.0", - "btoa-lite": "^1.0.0", - "deprecation": "^2.0.0", - "lodash.get": "^4.4.2", - "lodash.set": "^4.3.2", - "lodash.uniq": "^4.5.0", - "octokit-pagination-methods": "^1.1.0", - "once": "^1.4.0", - "universal-user-agent": "^4.0.0" + "@octokit/core": "^3.2.3", + "@octokit/plugin-paginate-rest": "^2.6.2", + "@octokit/plugin-request-log": "^1.0.2", + "@octokit/plugin-rest-endpoint-methods": "4.3.1" }, "devDependencies": { - "@gimenete/type-writer": "^0.1.3", - "@octokit/auth": "^1.1.1", - "@octokit/fixtures-server": "^5.0.6", - "@octokit/graphql": "^4.2.0", - "@types/node": "^13.1.0", - "bundlesize": "^0.18.0", - "chai": "^4.1.2", - "compression-webpack-plugin": "^3.1.0", - "cypress": "^4.0.0", - "glob": "^7.1.2", - "http-proxy-agent": "^4.0.0", - "lodash.camelcase": "^4.3.0", - "lodash.merge": "^4.6.1", - "lodash.upperfirst": "^4.3.1", - "lolex": "^6.0.0", - "mkdirp": "^1.0.0", - "mocha": "^7.0.1", - "mustache": "^4.0.0", - "nock": "^11.3.3", - "npm-run-all": "^4.1.2", - "nyc": "^15.0.0", - "prettier": "^1.14.2", - "proxy": "^1.0.0", + "@octokit/auth": "^2.0.0", + "@octokit/fixtures-server": "^6.0.11", + "@octokit/request": "^5.2.0", + "@pika/pack": "^0.5.0", + "@pika/plugin-build-node": "^0.9.2", + "@pika/plugin-build-web": "^0.9.2", + "@pika/plugin-ts-standard-pkg": "^0.9.2", + "@types/jest": "^26.0.0", + "@types/node": "^14.0.1", + "fetch-mock": "^9.0.0", + "jest": "^25.1.0", + "prettier": "^2.0.0", "semantic-release": "^17.0.0", - "sinon": "^8.0.0", - "sinon-chai": "^3.0.0", - "sort-keys": "^4.0.0", - "string-to-arraybuffer": "^1.0.0", - "string-to-jsdoc-comment": "^1.0.0", - "typescript": "^3.3.1", - "webpack": "^4.0.0", - "webpack-bundle-analyzer": "^3.0.0", - "webpack-cli": "^3.0.0" - }, - "types": "index.d.ts", - "scripts": { - "coverage": "nyc report --reporter=html && open coverage/index.html", - "lint": "prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json", - "lint:fix": "prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json", - "pretest": "npm run -s lint", - "test": "nyc mocha test/mocha-node-setup.js \"test/*/**/*-test.js\"", - "test:browser": "cypress run --browser chrome", - "build": "npm-run-all build:*", - "build:ts": "npm run -s update-endpoints:typescript", - "prebuild:browser": "mkdirp dist/", - "build:browser": "npm-run-all build:browser:*", - "build:browser:development": "webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json", - "build:browser:production": "webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map", - "generate-bundle-report": "webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html", - "update-endpoints": "npm-run-all update-endpoints:*", - "update-endpoints:fetch-json": "node scripts/update-endpoints/fetch-json", - "update-endpoints:typescript": "node scripts/update-endpoints/typescript", - "prevalidate:ts": "npm run -s build:ts", - "validate:ts": "tsc --target es6 --noImplicitAny index.d.ts", - "postvalidate:ts": "tsc --noEmit --target es6 test/typescript-validate.ts", - "start-fixtures-server": "octokit-fixtures-server" + "semantic-release-plugin-update-version-in-files": "^1.0.0", + "ts-jest": "^25.2.0", + "typescript": "^3.7.5" }, - "license": "MIT", - "files": [ - "index.js", - "index.d.ts", - "lib", - "plugins" - ], - "nyc": { - "ignore": [ - "test" - ] - }, - "release": { - "publish": [ - "@semantic-release/npm", - { - "path": "@semantic-release/github", - "assets": [ - "dist/*", - "!dist/*.map.gz" - ] - } - ] + "publishConfig": { + "access": "public" }, - "bundlesize": [ - { - "path": "./dist/octokit-rest.min.js.gz", - "maxSize": "33 kB" - } - ] + "source": "dist-src/index.js", + "types": "dist-types/index.d.ts", + "main": "dist-node/index.js", + "module": "dist-web/index.js" } diff --git a/node_modules/@octokit/rest/plugins/authentication-deprecated/authenticate.js b/node_modules/@octokit/rest/plugins/authentication-deprecated/authenticate.js deleted file mode 100644 index 86ce9e951..000000000 --- a/node_modules/@octokit/rest/plugins/authentication-deprecated/authenticate.js +++ /dev/null @@ -1,52 +0,0 @@ -module.exports = authenticate; - -const { Deprecation } = require("deprecation"); -const once = require("once"); - -const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation)); - -function authenticate(state, options) { - deprecateAuthenticate( - state.octokit.log, - new Deprecation( - '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.' - ) - ); - - if (!options) { - state.auth = false; - return; - } - - switch (options.type) { - case "basic": - if (!options.username || !options.password) { - throw new Error( - "Basic authentication requires both a username and password to be set" - ); - } - break; - - case "oauth": - if (!options.token && !(options.key && options.secret)) { - throw new Error( - "OAuth2 authentication requires a token or key & secret to be set" - ); - } - break; - - case "token": - case "app": - if (!options.token) { - throw new Error("Token authentication requires a token to be set"); - } - break; - - default: - throw new Error( - "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'" - ); - } - - state.auth = options; -} diff --git a/node_modules/@octokit/rest/plugins/authentication-deprecated/before-request.js b/node_modules/@octokit/rest/plugins/authentication-deprecated/before-request.js deleted file mode 100644 index dbb83abd4..000000000 --- a/node_modules/@octokit/rest/plugins/authentication-deprecated/before-request.js +++ /dev/null @@ -1,43 +0,0 @@ -module.exports = authenticationBeforeRequest; - -const btoa = require("btoa-lite"); -const uniq = require("lodash.uniq"); - -function authenticationBeforeRequest(state, options) { - if (!state.auth.type) { - return; - } - - if (state.auth.type === "basic") { - const hash = btoa(`${state.auth.username}:${state.auth.password}`); - options.headers.authorization = `Basic ${hash}`; - return; - } - - if (state.auth.type === "token") { - options.headers.authorization = `token ${state.auth.token}`; - return; - } - - if (state.auth.type === "app") { - options.headers.authorization = `Bearer ${state.auth.token}`; - const acceptHeaders = options.headers.accept - .split(",") - .concat("application/vnd.github.machine-man-preview+json"); - options.headers.accept = uniq(acceptHeaders) - .filter(Boolean) - .join(","); - return; - } - - options.url += options.url.indexOf("?") === -1 ? "?" : "&"; - - if (state.auth.token) { - options.url += `access_token=${encodeURIComponent(state.auth.token)}`; - return; - } - - const key = encodeURIComponent(state.auth.key); - const secret = encodeURIComponent(state.auth.secret); - options.url += `client_id=${key}&client_secret=${secret}`; -} diff --git a/node_modules/@octokit/rest/plugins/authentication-deprecated/index.js b/node_modules/@octokit/rest/plugins/authentication-deprecated/index.js deleted file mode 100644 index 7e0cc4f91..000000000 --- a/node_modules/@octokit/rest/plugins/authentication-deprecated/index.js +++ /dev/null @@ -1,31 +0,0 @@ -module.exports = authenticationPlugin; - -const { Deprecation } = require("deprecation"); -const once = require("once"); - -const deprecateAuthenticate = once((log, deprecation) => log.warn(deprecation)); - -const authenticate = require("./authenticate"); -const beforeRequest = require("./before-request"); -const requestError = require("./request-error"); - -function authenticationPlugin(octokit, options) { - if (options.auth) { - octokit.authenticate = () => { - deprecateAuthenticate( - octokit.log, - new Deprecation( - '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor' - ) - ); - }; - return; - } - const state = { - octokit, - auth: false - }; - octokit.authenticate = authenticate.bind(null, state); - octokit.hook.before("request", beforeRequest.bind(null, state)); - octokit.hook.error("request", requestError.bind(null, state)); -} diff --git a/node_modules/@octokit/rest/plugins/authentication-deprecated/request-error.js b/node_modules/@octokit/rest/plugins/authentication-deprecated/request-error.js deleted file mode 100644 index d2e7baae0..000000000 --- a/node_modules/@octokit/rest/plugins/authentication-deprecated/request-error.js +++ /dev/null @@ -1,55 +0,0 @@ -module.exports = authenticationRequestError; - -const { RequestError } = require("@octokit/request-error"); - -function authenticationRequestError(state, error, options) { - /* istanbul ignore next */ - if (!error.headers) throw error; - - const otpRequired = /required/.test(error.headers["x-github-otp"] || ""); - // handle "2FA required" error only - if (error.status !== 401 || !otpRequired) { - throw error; - } - - if ( - error.status === 401 && - otpRequired && - error.request && - error.request.headers["x-github-otp"] - ) { - throw new RequestError( - "Invalid one-time password for two-factor authentication", - 401, - { - headers: error.headers, - request: options - } - ); - } - - if (typeof state.auth.on2fa !== "function") { - throw new RequestError( - "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication", - 401, - { - headers: error.headers, - request: options - } - ); - } - - return Promise.resolve() - .then(() => { - return state.auth.on2fa(); - }) - .then(oneTimePassword => { - const newOptions = Object.assign(options, { - headers: Object.assign( - { "x-github-otp": oneTimePassword }, - options.headers - ) - }); - return state.octokit.request(newOptions); - }); -} diff --git a/node_modules/@octokit/rest/plugins/authentication/before-request.js b/node_modules/@octokit/rest/plugins/authentication/before-request.js deleted file mode 100644 index aae5daaa7..000000000 --- a/node_modules/@octokit/rest/plugins/authentication/before-request.js +++ /dev/null @@ -1,53 +0,0 @@ -module.exports = authenticationBeforeRequest; - -const btoa = require("btoa-lite"); - -const withAuthorizationPrefix = require("./with-authorization-prefix"); - -function authenticationBeforeRequest(state, options) { - if (typeof state.auth === "string") { - options.headers.authorization = withAuthorizationPrefix(state.auth); - return; - } - - if (state.auth.username) { - const hash = btoa(`${state.auth.username}:${state.auth.password}`); - options.headers.authorization = `Basic ${hash}`; - if (state.otp) { - options.headers["x-github-otp"] = state.otp; - } - return; - } - - if (state.auth.clientId) { - // There is a special case for OAuth applications, when `clientId` and `clientSecret` is passed as - // Basic Authorization instead of query parameters. The only routes where that applies share the same - // URL though: `/applications/:client_id/tokens/:access_token`. - // - // 1. [Check an authorization](https://developer.github.com/v3/oauth_authorizations/#check-an-authorization) - // 2. [Reset an authorization](https://developer.github.com/v3/oauth_authorizations/#reset-an-authorization) - // 3. [Revoke an authorization for an application](https://developer.github.com/v3/oauth_authorizations/#revoke-an-authorization-for-an-application) - // - // We identify by checking the URL. It must merge both "/applications/:client_id/tokens/:access_token" - // as well as "/applications/123/tokens/token456" - if (/\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(options.url)) { - const hash = btoa(`${state.auth.clientId}:${state.auth.clientSecret}`); - options.headers.authorization = `Basic ${hash}`; - return; - } - - options.url += options.url.indexOf("?") === -1 ? "?" : "&"; - options.url += `client_id=${state.auth.clientId}&client_secret=${state.auth.clientSecret}`; - return; - } - - return Promise.resolve() - - .then(() => { - return state.auth(); - }) - - .then(authorization => { - options.headers.authorization = withAuthorizationPrefix(authorization); - }); -} diff --git a/node_modules/@octokit/rest/plugins/authentication/index.js b/node_modules/@octokit/rest/plugins/authentication/index.js deleted file mode 100644 index 6dcb85977..000000000 --- a/node_modules/@octokit/rest/plugins/authentication/index.js +++ /dev/null @@ -1,76 +0,0 @@ -module.exports = authenticationPlugin; - -const { createTokenAuth } = require("@octokit/auth-token"); -const { Deprecation } = require("deprecation"); -const once = require("once"); - -const beforeRequest = require("./before-request"); -const requestError = require("./request-error"); -const validate = require("./validate"); -const withAuthorizationPrefix = require("./with-authorization-prefix"); - -const deprecateAuthBasic = once((log, deprecation) => log.warn(deprecation)); -const deprecateAuthObject = once((log, deprecation) => log.warn(deprecation)); - -function authenticationPlugin(octokit, options) { - // If `options.authStrategy` is set then use it and pass in `options.auth` - if (options.authStrategy) { - const auth = options.authStrategy(options.auth); - octokit.hook.wrap("request", auth.hook); - octokit.auth = auth; - return; - } - - // If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance - // is unauthenticated. The `octokit.auth()` method is a no-op and no request hook is registred. - if (!options.auth) { - octokit.auth = () => - Promise.resolve({ - type: "unauthenticated" - }); - return; - } - - const isBasicAuthString = - typeof options.auth === "string" && - /^basic/.test(withAuthorizationPrefix(options.auth)); - - // If only `options.auth` is set to a string, use the default token authentication strategy. - if (typeof options.auth === "string" && !isBasicAuthString) { - const auth = createTokenAuth(options.auth); - octokit.hook.wrap("request", auth.hook); - octokit.auth = auth; - return; - } - - // Otherwise log a deprecation message - const [deprecationMethod, deprecationMessapge] = isBasicAuthString - ? [ - deprecateAuthBasic, - 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)' - ] - : [ - deprecateAuthObject, - 'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)' - ]; - deprecationMethod( - octokit.log, - new Deprecation("[@octokit/rest] " + deprecationMessapge) - ); - - octokit.auth = () => - Promise.resolve({ - type: "deprecated", - message: deprecationMessapge - }); - - validate(options.auth); - - const state = { - octokit, - auth: options.auth - }; - - octokit.hook.before("request", beforeRequest.bind(null, state)); - octokit.hook.error("request", requestError.bind(null, state)); -} diff --git a/node_modules/@octokit/rest/plugins/authentication/request-error.js b/node_modules/@octokit/rest/plugins/authentication/request-error.js deleted file mode 100644 index 9c67d5508..000000000 --- a/node_modules/@octokit/rest/plugins/authentication/request-error.js +++ /dev/null @@ -1,61 +0,0 @@ -module.exports = authenticationRequestError; - -const { RequestError } = require("@octokit/request-error"); - -function authenticationRequestError(state, error, options) { - if (!error.headers) throw error; - - const otpRequired = /required/.test(error.headers["x-github-otp"] || ""); - // handle "2FA required" error only - if (error.status !== 401 || !otpRequired) { - throw error; - } - - if ( - error.status === 401 && - otpRequired && - error.request && - error.request.headers["x-github-otp"] - ) { - if (state.otp) { - delete state.otp; // no longer valid, request again - } else { - throw new RequestError( - "Invalid one-time password for two-factor authentication", - 401, - { - headers: error.headers, - request: options - } - ); - } - } - - if (typeof state.auth.on2fa !== "function") { - throw new RequestError( - "2FA required, but options.on2fa is not a function. See https://github.com/octokit/rest.js#authentication", - 401, - { - headers: error.headers, - request: options - } - ); - } - - return Promise.resolve() - .then(() => { - return state.auth.on2fa(); - }) - .then(oneTimePassword => { - const newOptions = Object.assign(options, { - headers: Object.assign(options.headers, { - "x-github-otp": oneTimePassword - }) - }); - return state.octokit.request(newOptions).then(response => { - // If OTP still valid, then persist it for following requests - state.otp = oneTimePassword; - return response; - }); - }); -} diff --git a/node_modules/@octokit/rest/plugins/authentication/validate.js b/node_modules/@octokit/rest/plugins/authentication/validate.js deleted file mode 100644 index abf83779d..000000000 --- a/node_modules/@octokit/rest/plugins/authentication/validate.js +++ /dev/null @@ -1,21 +0,0 @@ -module.exports = validateAuth; - -function validateAuth(auth) { - if (typeof auth === "string") { - return; - } - - if (typeof auth === "function") { - return; - } - - if (auth.username && auth.password) { - return; - } - - if (auth.clientId && auth.clientSecret) { - return; - } - - throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`); -} diff --git a/node_modules/@octokit/rest/plugins/authentication/with-authorization-prefix.js b/node_modules/@octokit/rest/plugins/authentication/with-authorization-prefix.js deleted file mode 100644 index 122cab73a..000000000 --- a/node_modules/@octokit/rest/plugins/authentication/with-authorization-prefix.js +++ /dev/null @@ -1,23 +0,0 @@ -module.exports = withAuthorizationPrefix; - -const atob = require("atob-lite"); - -const REGEX_IS_BASIC_AUTH = /^[\w-]+:/; - -function withAuthorizationPrefix(authorization) { - if (/^(basic|bearer|token) /i.test(authorization)) { - return authorization; - } - - try { - if (REGEX_IS_BASIC_AUTH.test(atob(authorization))) { - return `basic ${authorization}`; - } - } catch (error) {} - - if (authorization.split(/\./).length === 3) { - return `bearer ${authorization}`; - } - - return `token ${authorization}`; -} diff --git a/node_modules/@octokit/rest/plugins/pagination/index.js b/node_modules/@octokit/rest/plugins/pagination/index.js deleted file mode 100644 index f5a3f7bc1..000000000 --- a/node_modules/@octokit/rest/plugins/pagination/index.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = paginatePlugin; - -const { paginateRest } = require("@octokit/plugin-paginate-rest"); - -function paginatePlugin(octokit) { - Object.assign(octokit, paginateRest(octokit)); -} diff --git a/node_modules/@octokit/rest/plugins/validate/index.js b/node_modules/@octokit/rest/plugins/validate/index.js deleted file mode 100644 index 995475109..000000000 --- a/node_modules/@octokit/rest/plugins/validate/index.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = octokitValidate; - -const validate = require("./validate"); - -function octokitValidate(octokit) { - octokit.hook.before("request", validate.bind(null, octokit)); -} diff --git a/node_modules/@octokit/rest/plugins/validate/validate.js b/node_modules/@octokit/rest/plugins/validate/validate.js deleted file mode 100644 index 00b30082c..000000000 --- a/node_modules/@octokit/rest/plugins/validate/validate.js +++ /dev/null @@ -1,151 +0,0 @@ -"use strict"; - -module.exports = validate; - -const { RequestError } = require("@octokit/request-error"); -const get = require("lodash.get"); -const set = require("lodash.set"); - -function validate(octokit, options) { - if (!options.request.validate) { - return; - } - const { validate: params } = options.request; - - Object.keys(params).forEach(parameterName => { - const parameter = get(params, parameterName); - - const expectedType = parameter.type; - let parentParameterName; - let parentValue; - let parentParamIsPresent = true; - let parentParameterIsArray = false; - - if (/\./.test(parameterName)) { - parentParameterName = parameterName.replace(/\.[^.]+$/, ""); - parentParameterIsArray = parentParameterName.slice(-2) === "[]"; - if (parentParameterIsArray) { - parentParameterName = parentParameterName.slice(0, -2); - } - parentValue = get(options, parentParameterName); - parentParamIsPresent = - parentParameterName === "headers" || - (typeof parentValue === "object" && parentValue !== null); - } - - const values = parentParameterIsArray - ? (get(options, parentParameterName) || []).map( - value => value[parameterName.split(/\./).pop()] - ) - : [get(options, parameterName)]; - - values.forEach((value, i) => { - const valueIsPresent = typeof value !== "undefined"; - const valueIsNull = value === null; - const currentParameterName = parentParameterIsArray - ? parameterName.replace(/\[\]/, `[${i}]`) - : parameterName; - - if (!parameter.required && !valueIsPresent) { - return; - } - - // if the parent parameter is of type object but allows null - // then the child parameters can be ignored - if (!parentParamIsPresent) { - return; - } - - if (parameter.allowNull && valueIsNull) { - return; - } - - if (!parameter.allowNull && valueIsNull) { - throw new RequestError( - `'${currentParameterName}' cannot be null`, - 400, - { - request: options - } - ); - } - - if (parameter.required && !valueIsPresent) { - throw new RequestError( - `Empty value for parameter '${currentParameterName}': ${JSON.stringify( - value - )}`, - 400, - { - request: options - } - ); - } - - // parse to integer before checking for enum - // so that string "1" will match enum with number 1 - if (expectedType === "integer") { - const unparsedValue = value; - value = parseInt(value, 10); - if (isNaN(value)) { - throw new RequestError( - `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( - unparsedValue - )} is NaN`, - 400, - { - request: options - } - ); - } - } - - if (parameter.enum && parameter.enum.indexOf(String(value)) === -1) { - throw new RequestError( - `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( - value - )}`, - 400, - { - request: options - } - ); - } - - if (parameter.validation) { - const regex = new RegExp(parameter.validation); - if (!regex.test(value)) { - throw new RequestError( - `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( - value - )}`, - 400, - { - request: options - } - ); - } - } - - if (expectedType === "object" && typeof value === "string") { - try { - value = JSON.parse(value); - } catch (exception) { - throw new RequestError( - `JSON parse error of value for parameter '${currentParameterName}': ${JSON.stringify( - value - )}`, - 400, - { - request: options - } - ); - } - } - - set(options, parameter.mapTo || currentParameterName, value); - }); - }); - - return options; -} diff --git a/node_modules/@semantic-release/changelog/README.md b/node_modules/@semantic-release/changelog/README.md index a9b411e80..824470bb6 100644 --- a/node_modules/@semantic-release/changelog/README.md +++ b/node_modules/@semantic-release/changelog/README.md @@ -32,7 +32,9 @@ The plugin can be configured in the [**semantic-release** configuration file](ht ["@semantic-release/changelog", { "changelogFile": "docs/CHANGELOG.md", }], - "@semantic-release/git", + ["@semantic-release/git", { + "assets": ["docs/CHANGELOG.md"], + }], ] } ``` diff --git a/node_modules/@semantic-release/changelog/package.json b/node_modules/@semantic-release/changelog/package.json index 9df24926e..aba891bcc 100644 --- a/node_modules/@semantic-release/changelog/package.json +++ b/node_modules/@semantic-release/changelog/package.json @@ -1,8 +1,13 @@ { "name": "@semantic-release/changelog", "description": "semantic-release plugin to create or update a changelog file", - "version": "3.0.5", + "version": "5.0.1", "author": "Pierre Vanduynslager (https://github.com/pvdlg)", + "ava": { + "files": [ + "test/**/*.test.js" + ] + }, "bugs": { "url": "https://github.com/semantic-release/changelog/issues" }, @@ -13,21 +18,21 @@ "dependencies": { "@semantic-release/error": "^2.1.0", "aggregate-error": "^3.0.0", - "fs-extra": "^8.0.0", + "fs-extra": "^9.0.0", "lodash": "^4.17.4" }, "devDependencies": { - "ava": "^2.0.0", + "ava": "^3.1.0", "clear-module": "^4.0.0", "codecov": "^3.0.0", - "nyc": "^14.0.0", - "semantic-release": "^15.0.0", - "sinon": "^7.1.1", - "tempy": "^0.3.0", - "xo": "^0.25.0" + "nyc": "^15.0.0", + "semantic-release": "^17.0.0", + "sinon": "^9.0.0", + "tempy": "^0.5.0", + "xo": "^0.27.0" }, "engines": { - "node": ">=8.16" + "node": ">=10.18" }, "files": [ "lib", @@ -56,15 +61,14 @@ "all": true }, "peerDependencies": { - "semantic-release": ">=15.8.0 <16.0.0" + "semantic-release": ">=15.8.0 <18.0.0" }, "prettier": { "printWidth": 120, "trailingComma": "es5" }, "publishConfig": { - "access": "public", - "tag": "next" + "access": "public" }, "repository": { "type": "git", diff --git a/node_modules/@semantic-release/commit-analyzer/README.md b/node_modules/@semantic-release/commit-analyzer/README.md index c6315ea53..3d641c03d 100644 --- a/node_modules/@semantic-release/commit-analyzer/README.md +++ b/node_modules/@semantic-release/commit-analyzer/README.md @@ -8,6 +8,7 @@ [![npm latest version](https://img.shields.io/npm/v/@semantic-release/commit-analyzer/latest.svg)](https://www.npmjs.com/package/@semantic-release/commit-analyzer) [![npm next version](https://img.shields.io/npm/v/@semantic-release/commit-analyzer/next.svg)](https://www.npmjs.com/package/@semantic-release/commit-analyzer) +[![npm beta version](https://img.shields.io/npm/v/@semantic-release/commit-analyzer/beta.svg)](https://www.npmjs.com/package/@semantic-release/commit-analyzer) | Step | Description | |------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------| @@ -72,7 +73,7 @@ With this example: #### releaseRules -Release rules are used when deciding if the commits since the last release warrant a new release. If you define custom release rules the [default rules](lib/default-release-rules.js) will be used if nothing matched. Those rules will be matched against the commit objects resulting of [conventional-commits-parser](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser) parsing. +Release rules are used when deciding if the commits since the last release warrant a new release. If you define custom release rules the [default rules](lib/default-release-rules.js) will be used if nothing matched. Those rules will be matched against the commit objects resulting of [conventional-commits-parser](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser) parsing. Each rule property can be defined as a [glob](https://github.com/micromatch/micromatch#matching-features). ##### Rules definition @@ -84,7 +85,7 @@ This is an `Array` of rule objects. A rule object has a `release` property and 1 "preset": "angular", "releaseRules": [ {"type": "docs", "scope": "README", "release": "patch"}, - {"type": "refactor", "scope": "/core-.*/", "release": "minor"}, + {"type": "refactor", "scope": "core-*", "release": "minor"}, {"type": "refactor", "release": "patch"}, {"scope": "no-release", "release": false} ] @@ -103,7 +104,7 @@ See [release types](lib/default-release-types.js) for the release types hierarch With the previous example: - Commits with `type` 'docs' and `scope` 'README' will be associated with a `patch` release. - Commits with `type` 'refactor' and `scope` starting with 'core-' (i.e. 'core-ui', 'core-rules', ...) will be associated with a `minor` release. -- Other commits with `type` 'refactor' (without `scope` or with a `scope` not matching the regexp `/core-.*/`) will be associated with a `patch` release. +- Other commits with `type` 'refactor' (without `scope` or with a `scope` not matching the glob `core-*`) will be associated with a `patch` release. - Commits with scope `no-release` will not be associated with a release type. ##### Default rules matching @@ -147,7 +148,7 @@ For example with `eslint` preset: ["@semantic-release/commit-analyzer", { "preset": "eslint", "releaseRules": [ - {"tag": "Docs", "message":"/README/", "release": "patch"}, + {"tag": "Docs", "message":"*README*", "release": "patch"}, {"tag": "New", "release": "patch"} ] }], @@ -181,7 +182,7 @@ With this configuration: // File: config/release-rules.js module.exports = [ {type: 'docs', scope: 'README', release: 'patch'}, - {type: 'refactor', scope: /core-.*/, release: 'minor'}, + {type: 'refactor', scope: 'core-*', release: 'minor'}, {type: 'refactor', release: 'patch'}, ]; ``` diff --git a/node_modules/@semantic-release/commit-analyzer/lib/analyze-commit.js b/node_modules/@semantic-release/commit-analyzer/lib/analyze-commit.js index 374d09338..3103a3316 100644 --- a/node_modules/@semantic-release/commit-analyzer/lib/analyze-commit.js +++ b/node_modules/@semantic-release/commit-analyzer/lib/analyze-commit.js @@ -1,4 +1,5 @@ -const {isMatchWith, isRegExp} = require('lodash'); +const {isMatchWith, isString} = require('lodash'); +const micromatch = require('micromatch'); const debug = require('debug')('semantic-release:commit-analyzer'); const RELEASE_TYPES = require('./default-release-types'); const compareReleaseTypes = require('./compare-release-types'); @@ -22,7 +23,7 @@ module.exports = (releaseRules, commit) => { (!revert || commit.revert) && // Otherwise match the regular rules isMatchWith(commit, rule, (obj, src) => - /^\/.*\/$/.test(src) || isRegExp(src) ? new RegExp(/^\/(.*)\/$/.exec(src)[1]).test(obj) : undefined + isString(src) && isString(obj) ? micromatch.isMatch(obj, src) : undefined ) ) .every(match => { diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/.bin/conventional-commits-parser b/node_modules/@semantic-release/commit-analyzer/node_modules/.bin/conventional-commits-parser index 67dd13c94..4959532fd 120000 --- a/node_modules/@semantic-release/commit-analyzer/node_modules/.bin/conventional-commits-parser +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/.bin/conventional-commits-parser @@ -1 +1 @@ -../../../../conventional-commits-parser/cli.js \ No newline at end of file +../conventional-commits-parser/cli.js \ No newline at end of file diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/CHANGELOG.md b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/CHANGELOG.md new file mode 100644 index 000000000..36f798b00 --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/CHANGELOG.md @@ -0,0 +1,184 @@ +# Release history + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + +
+ Guiding Principles + +- Changelogs are for humans, not machines. +- There should be an entry for every single version. +- The same types of changes should be grouped. +- Versions and sections should be linkable. +- The latest version comes first. +- The release date of each versions is displayed. +- Mention whether you follow Semantic Versioning. + +
+ +
+ Types of changes + +Changelog entries are classified using the following labels _(from [keep-a-changelog](http://keepachangelog.com/)_): + +- `Added` for new features. +- `Changed` for changes in existing functionality. +- `Deprecated` for soon-to-be removed features. +- `Removed` for now removed features. +- `Fixed` for any bug fixes. +- `Security` in case of vulnerabilities. + +
+ +## [3.0.0] - 2018-04-08 + +v3.0 is a complete refactor, resulting in a faster, smaller codebase, with fewer deps, and a more accurate parser and compiler. + +**Breaking Changes** + +- The undocumented `.makeRe` method was removed + +**Non-breaking changes** + +- Caching was removed + +## [2.3.2] - 2018-04-08 + +- start refactoring +- cover sets +- better range handling + +## [2.3.1] - 2018-02-17 + +- Remove unnecessary escape in Regex. (#14) + +## [2.3.0] - 2017-10-19 + +- minor code reorganization +- optimize regex +- expose `maxLength` option + +## [2.2.1] - 2017-05-30 + +- don't condense when braces contain extglobs + +## [2.2.0] - 2017-05-28 + +- ensure word boundaries are preserved +- fixes edge case where extglob characters precede a brace pattern + +## [2.1.1] - 2017-04-27 + +- use snapdragon-node +- handle edge case +- optimizations, lint + +## [2.0.4] - 2017-04-11 + +- pass opts to compiler +- minor optimization in create method +- re-write parser handlers to remove negation regex + +## [2.0.3] - 2016-12-10 + +- use split-string +- clear queue at the end +- adds sequences example +- add unit tests + +## [2.0.2] - 2016-10-21 + +- fix comma handling in nested extglobs + +## [2.0.1] - 2016-10-20 + +- add comments +- more tests, ensure quotes are stripped + +## [2.0.0] - 2016-10-19 + +- don't expand braces inside character classes +- add quantifier pattern + +## [1.8.5] - 2016-05-21 + +- Refactor (#10) + +## [1.8.4] - 2016-04-20 + +- fixes https://github.com/jonschlinkert/micromatch/issues/66 + +## [1.8.0] - 2015-03-18 + +- adds exponent examples, tests +- fixes the first example in https://github.com/jonschlinkert/micromatch/issues/38 + +## [1.6.0] - 2015-01-30 + +- optimizations, `bash` mode: +- improve path escaping + +## [1.5.0] - 2015-01-28 + +- Merge pull request #5 from eush77/lib-files + +## [1.4.0] - 2015-01-24 + +- add extglob tests +- externalize exponent function +- better whitespace handling + +## [1.3.0] - 2015-01-24 + +- make regex patterns explicity + +## [1.1.0] - 2015-01-11 + +- don't create a match group with `makeRe` + +## [1.0.0] - 2014-12-23 + +- Merge commit '97b05f5544f8348736a8efaecf5c32bbe3e2ad6e' +- support empty brace syntax +- better bash coverage +- better support for regex strings + +## [0.1.4] - 2014-11-14 + +- improve recognition of bad args, recognize mismatched argument types +- support escaping +- remove pathname-expansion +- support whitespace in patterns + +## [0.1.0] + +- first commit + +[2.3.2]: https://github.com/micromatch/braces/compare/2.3.1...2.3.2 +[2.3.1]: https://github.com/micromatch/braces/compare/2.3.0...2.3.1 +[2.3.0]: https://github.com/micromatch/braces/compare/2.2.1...2.3.0 +[2.2.1]: https://github.com/micromatch/braces/compare/2.2.0...2.2.1 +[2.2.0]: https://github.com/micromatch/braces/compare/2.1.1...2.2.0 +[2.1.1]: https://github.com/micromatch/braces/compare/2.1.0...2.1.1 +[2.1.0]: https://github.com/micromatch/braces/compare/2.0.4...2.1.0 +[2.0.4]: https://github.com/micromatch/braces/compare/2.0.3...2.0.4 +[2.0.3]: https://github.com/micromatch/braces/compare/2.0.2...2.0.3 +[2.0.2]: https://github.com/micromatch/braces/compare/2.0.1...2.0.2 +[2.0.1]: https://github.com/micromatch/braces/compare/2.0.0...2.0.1 +[2.0.0]: https://github.com/micromatch/braces/compare/1.8.5...2.0.0 +[1.8.5]: https://github.com/micromatch/braces/compare/1.8.4...1.8.5 +[1.8.4]: https://github.com/micromatch/braces/compare/1.8.0...1.8.4 +[1.8.0]: https://github.com/micromatch/braces/compare/1.6.0...1.8.0 +[1.6.0]: https://github.com/micromatch/braces/compare/1.5.0...1.6.0 +[1.5.0]: https://github.com/micromatch/braces/compare/1.4.0...1.5.0 +[1.4.0]: https://github.com/micromatch/braces/compare/1.3.0...1.4.0 +[1.3.0]: https://github.com/micromatch/braces/compare/1.2.0...1.3.0 +[1.2.0]: https://github.com/micromatch/braces/compare/1.1.0...1.2.0 +[1.1.0]: https://github.com/micromatch/braces/compare/1.0.0...1.1.0 +[1.0.0]: https://github.com/micromatch/braces/compare/0.1.4...1.0.0 +[0.1.4]: https://github.com/micromatch/braces/compare/0.1.0...0.1.4 + +[Unreleased]: https://github.com/micromatch/braces/compare/0.1.0...HEAD +[keep-a-changelog]: https://github.com/olivierlacan/keep-a-changelog \ No newline at end of file diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/LICENSE b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/LICENSE new file mode 100644 index 000000000..d32ab4426 --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-2018, Jon Schlinkert. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/README.md b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/README.md new file mode 100644 index 000000000..cba2f600d --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/README.md @@ -0,0 +1,593 @@ +# braces [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/braces.svg?style=flat)](https://www.npmjs.com/package/braces) [![NPM monthly downloads](https://img.shields.io/npm/dm/braces.svg?style=flat)](https://npmjs.org/package/braces) [![NPM total downloads](https://img.shields.io/npm/dt/braces.svg?style=flat)](https://npmjs.org/package/braces) [![Linux Build Status](https://img.shields.io/travis/micromatch/braces.svg?style=flat&label=Travis)](https://travis-ci.org/micromatch/braces) + +> Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed. + +Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. + +## Install + +Install with [npm](https://www.npmjs.com/): + +```sh +$ npm install --save braces +``` + +## v3.0.0 Released!! + +See the [changelog](CHANGELOG.md) for details. + +## Why use braces? + +Brace patterns make globs more powerful by adding the ability to match specific ranges and sequences of characters. + +* **Accurate** - complete support for the [Bash 4.3 Brace Expansion](www.gnu.org/software/bash/) specification (passes all of the Bash braces tests) +* **[fast and performant](#benchmarks)** - Starts fast, runs fast and [scales well](#performance) as patterns increase in complexity. +* **Organized code base** - The parser and compiler are easy to maintain and update when edge cases crop up. +* **Well-tested** - Thousands of test assertions, and passes all of the Bash, minimatch, and [brace-expansion](https://github.com/juliangruber/brace-expansion) unit tests (as of the date this was written). +* **Safer** - You shouldn't have to worry about users defining aggressive or malicious brace patterns that can break your application. Braces takes measures to prevent malicious regex that can be used for DDoS attacks (see [catastrophic backtracking](https://www.regular-expressions.info/catastrophic.html)). +* [Supports lists](#lists) - (aka "sets") `a/{b,c}/d` => `['a/b/d', 'a/c/d']` +* [Supports sequences](#sequences) - (aka "ranges") `{01..03}` => `['01', '02', '03']` +* [Supports steps](#steps) - (aka "increments") `{2..10..2}` => `['2', '4', '6', '8', '10']` +* [Supports escaping](#escaping) - To prevent evaluation of special characters. + +## Usage + +The main export is a function that takes one or more brace `patterns` and `options`. + +```js +const braces = require('braces'); +// braces(patterns[, options]); + +console.log(braces(['{01..05}', '{a..e}'])); +//=> ['(0[1-5])', '([a-e])'] + +console.log(braces(['{01..05}', '{a..e}'], { expand: true })); +//=> ['01', '02', '03', '04', '05', 'a', 'b', 'c', 'd', 'e'] +``` + +### Brace Expansion vs. Compilation + +By default, brace patterns are compiled into strings that are optimized for creating regular expressions and matching. + +**Compiled** + +```js +console.log(braces('a/{x,y,z}/b')); +//=> ['a/(x|y|z)/b'] +console.log(braces(['a/{01..20}/b', 'a/{1..5}/b'])); +//=> [ 'a/(0[1-9]|1[0-9]|20)/b', 'a/([1-5])/b' ] +``` + +**Expanded** + +Enable brace expansion by setting the `expand` option to true, or by using [braces.expand()](#expand) (returns an array similar to what you'd expect from Bash, or `echo {1..5}`, or [minimatch](https://github.com/isaacs/minimatch)): + +```js +console.log(braces('a/{x,y,z}/b', { expand: true })); +//=> ['a/x/b', 'a/y/b', 'a/z/b'] + +console.log(braces.expand('{01..10}')); +//=> ['01','02','03','04','05','06','07','08','09','10'] +``` + +### Lists + +Expand lists (like Bash "sets"): + +```js +console.log(braces('a/{foo,bar,baz}/*.js')); +//=> ['a/(foo|bar|baz)/*.js'] + +console.log(braces.expand('a/{foo,bar,baz}/*.js')); +//=> ['a/foo/*.js', 'a/bar/*.js', 'a/baz/*.js'] +``` + +### Sequences + +Expand ranges of characters (like Bash "sequences"): + +```js +console.log(braces.expand('{1..3}')); // ['1', '2', '3'] +console.log(braces.expand('a/{1..3}/b')); // ['a/1/b', 'a/2/b', 'a/3/b'] +console.log(braces('{a..c}', { expand: true })); // ['a', 'b', 'c'] +console.log(braces('foo/{a..c}', { expand: true })); // ['foo/a', 'foo/b', 'foo/c'] + +// supports zero-padded ranges +console.log(braces('a/{01..03}/b')); //=> ['a/(0[1-3])/b'] +console.log(braces('a/{001..300}/b')); //=> ['a/(0{2}[1-9]|0[1-9][0-9]|[12][0-9]{2}|300)/b'] +``` + +See [fill-range](https://github.com/jonschlinkert/fill-range) for all available range-expansion options. + +### Steppped ranges + +Steps, or increments, may be used with ranges: + +```js +console.log(braces.expand('{2..10..2}')); +//=> ['2', '4', '6', '8', '10'] + +console.log(braces('{2..10..2}')); +//=> ['(2|4|6|8|10)'] +``` + +When the [.optimize](#optimize) method is used, or [options.optimize](#optionsoptimize) is set to true, sequences are passed to [to-regex-range](https://github.com/jonschlinkert/to-regex-range) for expansion. + +### Nesting + +Brace patterns may be nested. The results of each expanded string are not sorted, and left to right order is preserved. + +**"Expanded" braces** + +```js +console.log(braces.expand('a{b,c,/{x,y}}/e')); +//=> ['ab/e', 'ac/e', 'a/x/e', 'a/y/e'] + +console.log(braces.expand('a/{x,{1..5},y}/c')); +//=> ['a/x/c', 'a/1/c', 'a/2/c', 'a/3/c', 'a/4/c', 'a/5/c', 'a/y/c'] +``` + +**"Optimized" braces** + +```js +console.log(braces('a{b,c,/{x,y}}/e')); +//=> ['a(b|c|/(x|y))/e'] + +console.log(braces('a/{x,{1..5},y}/c')); +//=> ['a/(x|([1-5])|y)/c'] +``` + +### Escaping + +**Escaping braces** + +A brace pattern will not be expanded or evaluted if _either the opening or closing brace is escaped_: + +```js +console.log(braces.expand('a\\{d,c,b}e')); +//=> ['a{d,c,b}e'] + +console.log(braces.expand('a{d,c,b\\}e')); +//=> ['a{d,c,b}e'] +``` + +**Escaping commas** + +Commas inside braces may also be escaped: + +```js +console.log(braces.expand('a{b\\,c}d')); +//=> ['a{b,c}d'] + +console.log(braces.expand('a{d\\,c,b}e')); +//=> ['ad,ce', 'abe'] +``` + +**Single items** + +Following bash conventions, a brace pattern is also not expanded when it contains a single character: + +```js +console.log(braces.expand('a{b}c')); +//=> ['a{b}c'] +``` + +## Options + +### options.maxLength + +**Type**: `Number` + +**Default**: `65,536` + +**Description**: Limit the length of the input string. Useful when the input string is generated or your application allows users to pass a string, et cetera. + +```js +console.log(braces('a/{b,c}/d', { maxLength: 3 })); //=> throws an error +``` + +### options.expand + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: Generate an "expanded" brace pattern (alternatively you can use the `braces.expand()` method, which does the same thing). + +```js +console.log(braces('a/{b,c}/d', { expand: true })); +//=> [ 'a/b/d', 'a/c/d' ] +``` + +### options.nodupes + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: Remove duplicates from the returned array. + +### options.rangeLimit + +**Type**: `Number` + +**Default**: `1000` + +**Description**: To prevent malicious patterns from being passed by users, an error is thrown when `braces.expand()` is used or `options.expand` is true and the generated range will exceed the `rangeLimit`. + +You can customize `options.rangeLimit` or set it to `Inifinity` to disable this altogether. + +**Examples** + +```js +// pattern exceeds the "rangeLimit", so it's optimized automatically +console.log(braces.expand('{1..1000}')); +//=> ['([1-9]|[1-9][0-9]{1,2}|1000)'] + +// pattern does not exceed "rangeLimit", so it's NOT optimized +console.log(braces.expand('{1..100}')); +//=> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '100'] +``` + +### options.transform + +**Type**: `Function` + +**Default**: `undefined` + +**Description**: Customize range expansion. + +**Example: Transforming non-numeric values** + +```js +const alpha = braces.expand('x/{a..e}/y', { + transform(value, index) { + // When non-numeric values are passed, "value" is a character code. + return 'foo/' + String.fromCharCode(value) + '-' + index; + } +}); +console.log(alpha); +//=> [ 'x/foo/a-0/y', 'x/foo/b-1/y', 'x/foo/c-2/y', 'x/foo/d-3/y', 'x/foo/e-4/y' ] +``` + +**Example: Transforming numeric values** + +```js +const numeric = braces.expand('{1..5}', { + transform(value) { + // when numeric values are passed, "value" is a number + return 'foo/' + value * 2; + } +}); +console.log(numeric); +//=> [ 'foo/2', 'foo/4', 'foo/6', 'foo/8', 'foo/10' ] +``` + +### options.quantifiers + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: In regular expressions, quanitifiers can be used to specify how many times a token can be repeated. For example, `a{1,3}` will match the letter `a` one to three times. + +Unfortunately, regex quantifiers happen to share the same syntax as [Bash lists](#lists) + +The `quantifiers` option tells braces to detect when [regex quantifiers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp#quantifiers) are defined in the given pattern, and not to try to expand them as lists. + +**Examples** + +```js +const braces = require('braces'); +console.log(braces('a/b{1,3}/{x,y,z}')); +//=> [ 'a/b(1|3)/(x|y|z)' ] +console.log(braces('a/b{1,3}/{x,y,z}', {quantifiers: true})); +//=> [ 'a/b{1,3}/(x|y|z)' ] +console.log(braces('a/b{1,3}/{x,y,z}', {quantifiers: true, expand: true})); +//=> [ 'a/b{1,3}/x', 'a/b{1,3}/y', 'a/b{1,3}/z' ] +``` + +### options.unescape + +**Type**: `Boolean` + +**Default**: `undefined` + +**Description**: Strip backslashes that were used for escaping from the result. + +## What is "brace expansion"? + +Brace expansion is a type of parameter expansion that was made popular by unix shells for generating lists of strings, as well as regex-like matching when used alongside wildcards (globs). + +In addition to "expansion", braces are also used for matching. In other words: + +* [brace expansion](#brace-expansion) is for generating new lists +* [brace matching](#brace-matching) is for filtering existing lists + +
+More about brace expansion (click to expand) + +There are two main types of brace expansion: + +1. **lists**: which are defined using comma-separated values inside curly braces: `{a,b,c}` +2. **sequences**: which are defined using a starting value and an ending value, separated by two dots: `a{1..3}b`. Optionally, a third argument may be passed to define a "step" or increment to use: `a{1..100..10}b`. These are also sometimes referred to as "ranges". + +Here are some example brace patterns to illustrate how they work: + +**Sets** + +``` +{a,b,c} => a b c +{a,b,c}{1,2} => a1 a2 b1 b2 c1 c2 +``` + +**Sequences** + +``` +{1..9} => 1 2 3 4 5 6 7 8 9 +{4..-4} => 4 3 2 1 0 -1 -2 -3 -4 +{1..20..3} => 1 4 7 10 13 16 19 +{a..j} => a b c d e f g h i j +{j..a} => j i h g f e d c b a +{a..z..3} => a d g j m p s v y +``` + +**Combination** + +Sets and sequences can be mixed together or used along with any other strings. + +``` +{a,b,c}{1..3} => a1 a2 a3 b1 b2 b3 c1 c2 c3 +foo/{a,b,c}/bar => foo/a/bar foo/b/bar foo/c/bar +``` + +The fact that braces can be "expanded" from relatively simple patterns makes them ideal for quickly generating test fixtures, file paths, and similar use cases. + +## Brace matching + +In addition to _expansion_, brace patterns are also useful for performing regular-expression-like matching. + +For example, the pattern `foo/{1..3}/bar` would match any of following strings: + +``` +foo/1/bar +foo/2/bar +foo/3/bar +``` + +But not: + +``` +baz/1/qux +baz/2/qux +baz/3/qux +``` + +Braces can also be combined with [glob patterns](https://github.com/jonschlinkert/micromatch) to perform more advanced wildcard matching. For example, the pattern `*/{1..3}/*` would match any of following strings: + +``` +foo/1/bar +foo/2/bar +foo/3/bar +baz/1/qux +baz/2/qux +baz/3/qux +``` + +## Brace matching pitfalls + +Although brace patterns offer a user-friendly way of matching ranges or sets of strings, there are also some major disadvantages and potential risks you should be aware of. + +### tldr + +**"brace bombs"** + +* brace expansion can eat up a huge amount of processing resources +* as brace patterns increase _linearly in size_, the system resources required to expand the pattern increase exponentially +* users can accidentally (or intentially) exhaust your system's resources resulting in the equivalent of a DoS attack (bonus: no programming knowledge is required!) + +For a more detailed explanation with examples, see the [geometric complexity](#geometric-complexity) section. + +### The solution + +Jump to the [performance section](#performance) to see how Braces solves this problem in comparison to other libraries. + +### Geometric complexity + +At minimum, brace patterns with sets limited to two elements have quadradic or `O(n^2)` complexity. But the complexity of the algorithm increases exponentially as the number of sets, _and elements per set_, increases, which is `O(n^c)`. + +For example, the following sets demonstrate quadratic (`O(n^2)`) complexity: + +``` +{1,2}{3,4} => (2X2) => 13 14 23 24 +{1,2}{3,4}{5,6} => (2X2X2) => 135 136 145 146 235 236 245 246 +``` + +But add an element to a set, and we get a n-fold Cartesian product with `O(n^c)` complexity: + +``` +{1,2,3}{4,5,6}{7,8,9} => (3X3X3) => 147 148 149 157 158 159 167 168 169 247 248 + 249 257 258 259 267 268 269 347 348 349 357 + 358 359 367 368 369 +``` + +Now, imagine how this complexity grows given that each element is a n-tuple: + +``` +{1..100}{1..100} => (100X100) => 10,000 elements (38.4 kB) +{1..100}{1..100}{1..100} => (100X100X100) => 1,000,000 elements (5.76 MB) +``` + +Although these examples are clearly contrived, they demonstrate how brace patterns can quickly grow out of control. + +**More information** + +Interested in learning more about brace expansion? + +* [linuxjournal/bash-brace-expansion](http://www.linuxjournal.com/content/bash-brace-expansion) +* [rosettacode/Brace_expansion](https://rosettacode.org/wiki/Brace_expansion) +* [cartesian product](https://en.wikipedia.org/wiki/Cartesian_product) + +
+ +## Performance + +Braces is not only screaming fast, it's also more accurate the other brace expansion libraries. + +### Better algorithms + +Fortunately there is a solution to the ["brace bomb" problem](#brace-matching-pitfalls): _don't expand brace patterns into an array when they're used for matching_. + +Instead, convert the pattern into an optimized regular expression. This is easier said than done, and braces is the only library that does this currently. + +**The proof is in the numbers** + +Minimatch gets exponentially slower as patterns increase in complexity, braces does not. The following results were generated using `braces()` and `minimatch.braceExpand()`, respectively. + +| **Pattern** | **braces** | **[minimatch][]** | +| --- | --- | --- | +| `{1..9007199254740991}`[^1] | `298 B` (5ms 459μs)| N/A (freezes) | +| `{1..1000000000000000}` | `41 B` (1ms 15μs) | N/A (freezes) | +| `{1..100000000000000}` | `40 B` (890μs) | N/A (freezes) | +| `{1..10000000000000}` | `39 B` (2ms 49μs) | N/A (freezes) | +| `{1..1000000000000}` | `38 B` (608μs) | N/A (freezes) | +| `{1..100000000000}` | `37 B` (397μs) | N/A (freezes) | +| `{1..10000000000}` | `35 B` (983μs) | N/A (freezes) | +| `{1..1000000000}` | `34 B` (798μs) | N/A (freezes) | +| `{1..100000000}` | `33 B` (733μs) | N/A (freezes) | +| `{1..10000000}` | `32 B` (5ms 632μs) | `78.89 MB` (16s 388ms 569μs) | +| `{1..1000000}` | `31 B` (1ms 381μs) | `6.89 MB` (1s 496ms 887μs) | +| `{1..100000}` | `30 B` (950μs) | `588.89 kB` (146ms 921μs) | +| `{1..10000}` | `29 B` (1ms 114μs) | `48.89 kB` (14ms 187μs) | +| `{1..1000}` | `28 B` (760μs) | `3.89 kB` (1ms 453μs) | +| `{1..100}` | `22 B` (345μs) | `291 B` (196μs) | +| `{1..10}` | `10 B` (533μs) | `20 B` (37μs) | +| `{1..3}` | `7 B` (190μs) | `5 B` (27μs) | + +### Faster algorithms + +When you need expansion, braces is still much faster. + +_(the following results were generated using `braces.expand()` and `minimatch.braceExpand()`, respectively)_ + +| **Pattern** | **braces** | **[minimatch][]** | +| --- | --- | --- | +| `{1..10000000}` | `78.89 MB` (2s 698ms 642μs) | `78.89 MB` (18s 601ms 974μs) | +| `{1..1000000}` | `6.89 MB` (458ms 576μs) | `6.89 MB` (1s 491ms 621μs) | +| `{1..100000}` | `588.89 kB` (20ms 728μs) | `588.89 kB` (156ms 919μs) | +| `{1..10000}` | `48.89 kB` (2ms 202μs) | `48.89 kB` (13ms 641μs) | +| `{1..1000}` | `3.89 kB` (1ms 796μs) | `3.89 kB` (1ms 958μs) | +| `{1..100}` | `291 B` (424μs) | `291 B` (211μs) | +| `{1..10}` | `20 B` (487μs) | `20 B` (72μs) | +| `{1..3}` | `5 B` (166μs) | `5 B` (27μs) | + +If you'd like to run these comparisons yourself, see [test/support/generate.js](test/support/generate.js). + +## Benchmarks + +### Running benchmarks + +Install dev dependencies: + +```bash +npm i -d && npm benchmark +``` + +### Latest results + +Braces is more accurate, without sacrificing performance. + +```bash +# range (expanded) + braces x 29,040 ops/sec ±3.69% (91 runs sampled)) + minimatch x 4,735 ops/sec ±1.28% (90 runs sampled) + +# range (optimized for regex) + braces x 382,878 ops/sec ±0.56% (94 runs sampled) + minimatch x 1,040 ops/sec ±0.44% (93 runs sampled) + +# nested ranges (expanded) + braces x 19,744 ops/sec ±2.27% (92 runs sampled)) + minimatch x 4,579 ops/sec ±0.50% (93 runs sampled) + +# nested ranges (optimized for regex) + braces x 246,019 ops/sec ±2.02% (93 runs sampled) + minimatch x 1,028 ops/sec ±0.39% (94 runs sampled) + +# set (expanded) + braces x 138,641 ops/sec ±0.53% (95 runs sampled) + minimatch x 219,582 ops/sec ±0.98% (94 runs sampled) + +# set (optimized for regex) + braces x 388,408 ops/sec ±0.41% (95 runs sampled) + minimatch x 44,724 ops/sec ±0.91% (89 runs sampled) + +# nested sets (expanded) + braces x 84,966 ops/sec ±0.48% (94 runs sampled) + minimatch x 140,720 ops/sec ±0.37% (95 runs sampled) + +# nested sets (optimized for regex) + braces x 263,340 ops/sec ±2.06% (92 runs sampled) + minimatch x 28,714 ops/sec ±0.40% (90 runs sampled) +``` + +## About + +
+Contributing + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +
+ +
+Running Tests + +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: + +```sh +$ npm install && npm test +``` + +
+ +
+Building docs + +_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ + +To generate the readme, run the following command: + +```sh +$ npm install -g verbose/verb#dev verb-generate-readme && verb +``` + +
+ +### Contributors + +| **Commits** | **Contributor** | +| --- | --- | +| 197 | [jonschlinkert](https://github.com/jonschlinkert) | +| 4 | [doowb](https://github.com/doowb) | +| 1 | [es128](https://github.com/es128) | +| 1 | [eush77](https://github.com/eush77) | +| 1 | [hemanth](https://github.com/hemanth) | +| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | + +### Author + +**Jon Schlinkert** + +* [GitHub Profile](https://github.com/jonschlinkert) +* [Twitter Profile](https://twitter.com/jonschlinkert) +* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert) + +### License + +Copyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). + +*** + +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on April 08, 2019._ \ No newline at end of file diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/index.js b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/index.js new file mode 100644 index 000000000..0eee0f567 --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/index.js @@ -0,0 +1,170 @@ +'use strict'; + +const stringify = require('./lib/stringify'); +const compile = require('./lib/compile'); +const expand = require('./lib/expand'); +const parse = require('./lib/parse'); + +/** + * Expand the given pattern or create a regex-compatible string. + * + * ```js + * const braces = require('braces'); + * console.log(braces('{a,b,c}', { compile: true })); //=> ['(a|b|c)'] + * console.log(braces('{a,b,c}')); //=> ['a', 'b', 'c'] + * ``` + * @param {String} `str` + * @param {Object} `options` + * @return {String} + * @api public + */ + +const braces = (input, options = {}) => { + let output = []; + + if (Array.isArray(input)) { + for (let pattern of input) { + let result = braces.create(pattern, options); + if (Array.isArray(result)) { + output.push(...result); + } else { + output.push(result); + } + } + } else { + output = [].concat(braces.create(input, options)); + } + + if (options && options.expand === true && options.nodupes === true) { + output = [...new Set(output)]; + } + return output; +}; + +/** + * Parse the given `str` with the given `options`. + * + * ```js + * // braces.parse(pattern, [, options]); + * const ast = braces.parse('a/{b,c}/d'); + * console.log(ast); + * ``` + * @param {String} pattern Brace pattern to parse + * @param {Object} options + * @return {Object} Returns an AST + * @api public + */ + +braces.parse = (input, options = {}) => parse(input, options); + +/** + * Creates a braces string from an AST, or an AST node. + * + * ```js + * const braces = require('braces'); + * let ast = braces.parse('foo/{a,b}/bar'); + * console.log(stringify(ast.nodes[2])); //=> '{a,b}' + * ``` + * @param {String} `input` Brace pattern or AST. + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.stringify = (input, options = {}) => { + if (typeof input === 'string') { + return stringify(braces.parse(input, options), options); + } + return stringify(input, options); +}; + +/** + * Compiles a brace pattern into a regex-compatible, optimized string. + * This method is called by the main [braces](#braces) function by default. + * + * ```js + * const braces = require('braces'); + * console.log(braces.compile('a/{b,c}/d')); + * //=> ['a/(b|c)/d'] + * ``` + * @param {String} `input` Brace pattern or AST. + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.compile = (input, options = {}) => { + if (typeof input === 'string') { + input = braces.parse(input, options); + } + return compile(input, options); +}; + +/** + * Expands a brace pattern into an array. This method is called by the + * main [braces](#braces) function when `options.expand` is true. Before + * using this method it's recommended that you read the [performance notes](#performance)) + * and advantages of using [.compile](#compile) instead. + * + * ```js + * const braces = require('braces'); + * console.log(braces.expand('a/{b,c}/d')); + * //=> ['a/b/d', 'a/c/d']; + * ``` + * @param {String} `pattern` Brace pattern + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.expand = (input, options = {}) => { + if (typeof input === 'string') { + input = braces.parse(input, options); + } + + let result = expand(input, options); + + // filter out empty strings if specified + if (options.noempty === true) { + result = result.filter(Boolean); + } + + // filter out duplicates if specified + if (options.nodupes === true) { + result = [...new Set(result)]; + } + + return result; +}; + +/** + * Processes a brace pattern and returns either an expanded array + * (if `options.expand` is true), a highly optimized regex-compatible string. + * This method is called by the main [braces](#braces) function. + * + * ```js + * const braces = require('braces'); + * console.log(braces.create('user-{200..300}/project-{a,b,c}-{1..10}')) + * //=> 'user-(20[0-9]|2[1-9][0-9]|300)/project-(a|b|c)-([1-9]|10)' + * ``` + * @param {String} `pattern` Brace pattern + * @param {Object} `options` + * @return {Array} Returns an array of expanded values. + * @api public + */ + +braces.create = (input, options = {}) => { + if (input === '' || input.length < 3) { + return [input]; + } + + return options.expand !== true + ? braces.compile(input, options) + : braces.expand(input, options); +}; + +/** + * Expose "braces" + */ + +module.exports = braces; diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/compile.js b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/compile.js new file mode 100644 index 000000000..3e984a4bb --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/compile.js @@ -0,0 +1,57 @@ +'use strict'; + +const fill = require('fill-range'); +const utils = require('./utils'); + +const compile = (ast, options = {}) => { + let walk = (node, parent = {}) => { + let invalidBlock = utils.isInvalidBrace(parent); + let invalidNode = node.invalid === true && options.escapeInvalid === true; + let invalid = invalidBlock === true || invalidNode === true; + let prefix = options.escapeInvalid === true ? '\\' : ''; + let output = ''; + + if (node.isOpen === true) { + return prefix + node.value; + } + if (node.isClose === true) { + return prefix + node.value; + } + + if (node.type === 'open') { + return invalid ? (prefix + node.value) : '('; + } + + if (node.type === 'close') { + return invalid ? (prefix + node.value) : ')'; + } + + if (node.type === 'comma') { + return node.prev.type === 'comma' ? '' : (invalid ? node.value : '|'); + } + + if (node.value) { + return node.value; + } + + if (node.nodes && node.ranges > 0) { + let args = utils.reduce(node.nodes); + let range = fill(...args, { ...options, wrap: false, toRegex: true }); + + if (range.length !== 0) { + return args.length > 1 && range.length > 1 ? `(${range})` : range; + } + } + + if (node.nodes) { + for (let child of node.nodes) { + output += walk(child, node); + } + } + return output; + }; + + return walk(ast); +}; + +module.exports = compile; diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/constants.js b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/constants.js new file mode 100644 index 000000000..a93794366 --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/constants.js @@ -0,0 +1,57 @@ +'use strict'; + +module.exports = { + MAX_LENGTH: 1024 * 64, + + // Digits + CHAR_0: '0', /* 0 */ + CHAR_9: '9', /* 9 */ + + // Alphabet chars. + CHAR_UPPERCASE_A: 'A', /* A */ + CHAR_LOWERCASE_A: 'a', /* a */ + CHAR_UPPERCASE_Z: 'Z', /* Z */ + CHAR_LOWERCASE_Z: 'z', /* z */ + + CHAR_LEFT_PARENTHESES: '(', /* ( */ + CHAR_RIGHT_PARENTHESES: ')', /* ) */ + + CHAR_ASTERISK: '*', /* * */ + + // Non-alphabetic chars. + CHAR_AMPERSAND: '&', /* & */ + CHAR_AT: '@', /* @ */ + CHAR_BACKSLASH: '\\', /* \ */ + CHAR_BACKTICK: '`', /* ` */ + CHAR_CARRIAGE_RETURN: '\r', /* \r */ + CHAR_CIRCUMFLEX_ACCENT: '^', /* ^ */ + CHAR_COLON: ':', /* : */ + CHAR_COMMA: ',', /* , */ + CHAR_DOLLAR: '$', /* . */ + CHAR_DOT: '.', /* . */ + CHAR_DOUBLE_QUOTE: '"', /* " */ + CHAR_EQUAL: '=', /* = */ + CHAR_EXCLAMATION_MARK: '!', /* ! */ + CHAR_FORM_FEED: '\f', /* \f */ + CHAR_FORWARD_SLASH: '/', /* / */ + CHAR_HASH: '#', /* # */ + CHAR_HYPHEN_MINUS: '-', /* - */ + CHAR_LEFT_ANGLE_BRACKET: '<', /* < */ + CHAR_LEFT_CURLY_BRACE: '{', /* { */ + CHAR_LEFT_SQUARE_BRACKET: '[', /* [ */ + CHAR_LINE_FEED: '\n', /* \n */ + CHAR_NO_BREAK_SPACE: '\u00A0', /* \u00A0 */ + CHAR_PERCENT: '%', /* % */ + CHAR_PLUS: '+', /* + */ + CHAR_QUESTION_MARK: '?', /* ? */ + CHAR_RIGHT_ANGLE_BRACKET: '>', /* > */ + CHAR_RIGHT_CURLY_BRACE: '}', /* } */ + CHAR_RIGHT_SQUARE_BRACKET: ']', /* ] */ + CHAR_SEMICOLON: ';', /* ; */ + CHAR_SINGLE_QUOTE: '\'', /* ' */ + CHAR_SPACE: ' ', /* */ + CHAR_TAB: '\t', /* \t */ + CHAR_UNDERSCORE: '_', /* _ */ + CHAR_VERTICAL_LINE: '|', /* | */ + CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF' /* \uFEFF */ +}; diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/expand.js b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/expand.js new file mode 100644 index 000000000..376c748af --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/expand.js @@ -0,0 +1,113 @@ +'use strict'; + +const fill = require('fill-range'); +const stringify = require('./stringify'); +const utils = require('./utils'); + +const append = (queue = '', stash = '', enclose = false) => { + let result = []; + + queue = [].concat(queue); + stash = [].concat(stash); + + if (!stash.length) return queue; + if (!queue.length) { + return enclose ? utils.flatten(stash).map(ele => `{${ele}}`) : stash; + } + + for (let item of queue) { + if (Array.isArray(item)) { + for (let value of item) { + result.push(append(value, stash, enclose)); + } + } else { + for (let ele of stash) { + if (enclose === true && typeof ele === 'string') ele = `{${ele}}`; + result.push(Array.isArray(ele) ? append(item, ele, enclose) : (item + ele)); + } + } + } + return utils.flatten(result); +}; + +const expand = (ast, options = {}) => { + let rangeLimit = options.rangeLimit === void 0 ? 1000 : options.rangeLimit; + + let walk = (node, parent = {}) => { + node.queue = []; + + let p = parent; + let q = parent.queue; + + while (p.type !== 'brace' && p.type !== 'root' && p.parent) { + p = p.parent; + q = p.queue; + } + + if (node.invalid || node.dollar) { + q.push(append(q.pop(), stringify(node, options))); + return; + } + + if (node.type === 'brace' && node.invalid !== true && node.nodes.length === 2) { + q.push(append(q.pop(), ['{}'])); + return; + } + + if (node.nodes && node.ranges > 0) { + let args = utils.reduce(node.nodes); + + if (utils.exceedsLimit(...args, options.step, rangeLimit)) { + throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.'); + } + + let range = fill(...args, options); + if (range.length === 0) { + range = stringify(node, options); + } + + q.push(append(q.pop(), range)); + node.nodes = []; + return; + } + + let enclose = utils.encloseBrace(node); + let queue = node.queue; + let block = node; + + while (block.type !== 'brace' && block.type !== 'root' && block.parent) { + block = block.parent; + queue = block.queue; + } + + for (let i = 0; i < node.nodes.length; i++) { + let child = node.nodes[i]; + + if (child.type === 'comma' && node.type === 'brace') { + if (i === 1) queue.push(''); + queue.push(''); + continue; + } + + if (child.type === 'close') { + q.push(append(q.pop(), queue, enclose)); + continue; + } + + if (child.value && child.type !== 'open') { + queue.push(append(queue.pop(), child.value)); + continue; + } + + if (child.nodes) { + walk(child, node); + } + } + + return queue; + }; + + return utils.flatten(walk(ast)); +}; + +module.exports = expand; diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/parse.js b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/parse.js new file mode 100644 index 000000000..145ea2648 --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/parse.js @@ -0,0 +1,333 @@ +'use strict'; + +const stringify = require('./stringify'); + +/** + * Constants + */ + +const { + MAX_LENGTH, + CHAR_BACKSLASH, /* \ */ + CHAR_BACKTICK, /* ` */ + CHAR_COMMA, /* , */ + CHAR_DOT, /* . */ + CHAR_LEFT_PARENTHESES, /* ( */ + CHAR_RIGHT_PARENTHESES, /* ) */ + CHAR_LEFT_CURLY_BRACE, /* { */ + CHAR_RIGHT_CURLY_BRACE, /* } */ + CHAR_LEFT_SQUARE_BRACKET, /* [ */ + CHAR_RIGHT_SQUARE_BRACKET, /* ] */ + CHAR_DOUBLE_QUOTE, /* " */ + CHAR_SINGLE_QUOTE, /* ' */ + CHAR_NO_BREAK_SPACE, + CHAR_ZERO_WIDTH_NOBREAK_SPACE +} = require('./constants'); + +/** + * parse + */ + +const parse = (input, options = {}) => { + if (typeof input !== 'string') { + throw new TypeError('Expected a string'); + } + + let opts = options || {}; + let max = typeof opts.maxLength === 'number' ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH; + if (input.length > max) { + throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`); + } + + let ast = { type: 'root', input, nodes: [] }; + let stack = [ast]; + let block = ast; + let prev = ast; + let brackets = 0; + let length = input.length; + let index = 0; + let depth = 0; + let value; + let memo = {}; + + /** + * Helpers + */ + + const advance = () => input[index++]; + const push = node => { + if (node.type === 'text' && prev.type === 'dot') { + prev.type = 'text'; + } + + if (prev && prev.type === 'text' && node.type === 'text') { + prev.value += node.value; + return; + } + + block.nodes.push(node); + node.parent = block; + node.prev = prev; + prev = node; + return node; + }; + + push({ type: 'bos' }); + + while (index < length) { + block = stack[stack.length - 1]; + value = advance(); + + /** + * Invalid chars + */ + + if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) { + continue; + } + + /** + * Escaped chars + */ + + if (value === CHAR_BACKSLASH) { + push({ type: 'text', value: (options.keepEscaping ? value : '') + advance() }); + continue; + } + + /** + * Right square bracket (literal): ']' + */ + + if (value === CHAR_RIGHT_SQUARE_BRACKET) { + push({ type: 'text', value: '\\' + value }); + continue; + } + + /** + * Left square bracket: '[' + */ + + if (value === CHAR_LEFT_SQUARE_BRACKET) { + brackets++; + + let closed = true; + let next; + + while (index < length && (next = advance())) { + value += next; + + if (next === CHAR_LEFT_SQUARE_BRACKET) { + brackets++; + continue; + } + + if (next === CHAR_BACKSLASH) { + value += advance(); + continue; + } + + if (next === CHAR_RIGHT_SQUARE_BRACKET) { + brackets--; + + if (brackets === 0) { + break; + } + } + } + + push({ type: 'text', value }); + continue; + } + + /** + * Parentheses + */ + + if (value === CHAR_LEFT_PARENTHESES) { + block = push({ type: 'paren', nodes: [] }); + stack.push(block); + push({ type: 'text', value }); + continue; + } + + if (value === CHAR_RIGHT_PARENTHESES) { + if (block.type !== 'paren') { + push({ type: 'text', value }); + continue; + } + block = stack.pop(); + push({ type: 'text', value }); + block = stack[stack.length - 1]; + continue; + } + + /** + * Quotes: '|"|` + */ + + if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) { + let open = value; + let next; + + if (options.keepQuotes !== true) { + value = ''; + } + + while (index < length && (next = advance())) { + if (next === CHAR_BACKSLASH) { + value += next + advance(); + continue; + } + + if (next === open) { + if (options.keepQuotes === true) value += next; + break; + } + + value += next; + } + + push({ type: 'text', value }); + continue; + } + + /** + * Left curly brace: '{' + */ + + if (value === CHAR_LEFT_CURLY_BRACE) { + depth++; + + let dollar = prev.value && prev.value.slice(-1) === '$' || block.dollar === true; + let brace = { + type: 'brace', + open: true, + close: false, + dollar, + depth, + commas: 0, + ranges: 0, + nodes: [] + }; + + block = push(brace); + stack.push(block); + push({ type: 'open', value }); + continue; + } + + /** + * Right curly brace: '}' + */ + + if (value === CHAR_RIGHT_CURLY_BRACE) { + if (block.type !== 'brace') { + push({ type: 'text', value }); + continue; + } + + let type = 'close'; + block = stack.pop(); + block.close = true; + + push({ type, value }); + depth--; + + block = stack[stack.length - 1]; + continue; + } + + /** + * Comma: ',' + */ + + if (value === CHAR_COMMA && depth > 0) { + if (block.ranges > 0) { + block.ranges = 0; + let open = block.nodes.shift(); + block.nodes = [open, { type: 'text', value: stringify(block) }]; + } + + push({ type: 'comma', value }); + block.commas++; + continue; + } + + /** + * Dot: '.' + */ + + if (value === CHAR_DOT && depth > 0 && block.commas === 0) { + let siblings = block.nodes; + + if (depth === 0 || siblings.length === 0) { + push({ type: 'text', value }); + continue; + } + + if (prev.type === 'dot') { + block.range = []; + prev.value += value; + prev.type = 'range'; + + if (block.nodes.length !== 3 && block.nodes.length !== 5) { + block.invalid = true; + block.ranges = 0; + prev.type = 'text'; + continue; + } + + block.ranges++; + block.args = []; + continue; + } + + if (prev.type === 'range') { + siblings.pop(); + + let before = siblings[siblings.length - 1]; + before.value += prev.value + value; + prev = before; + block.ranges--; + continue; + } + + push({ type: 'dot', value }); + continue; + } + + /** + * Text + */ + + push({ type: 'text', value }); + } + + // Mark imbalanced braces and brackets as invalid + do { + block = stack.pop(); + + if (block.type !== 'root') { + block.nodes.forEach(node => { + if (!node.nodes) { + if (node.type === 'open') node.isOpen = true; + if (node.type === 'close') node.isClose = true; + if (!node.nodes) node.type = 'text'; + node.invalid = true; + } + }); + + // get the location of the block on parent.nodes (block's siblings) + let parent = stack[stack.length - 1]; + let index = parent.nodes.indexOf(block); + // replace the (invalid) block with it's nodes + parent.nodes.splice(index, 1, ...block.nodes); + } + } while (stack.length > 0); + + push({ type: 'eos' }); + return ast; +}; + +module.exports = parse; diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/stringify.js b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/stringify.js new file mode 100644 index 000000000..414b7bcc6 --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/stringify.js @@ -0,0 +1,32 @@ +'use strict'; + +const utils = require('./utils'); + +module.exports = (ast, options = {}) => { + let stringify = (node, parent = {}) => { + let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent); + let invalidNode = node.invalid === true && options.escapeInvalid === true; + let output = ''; + + if (node.value) { + if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) { + return '\\' + node.value; + } + return node.value; + } + + if (node.value) { + return node.value; + } + + if (node.nodes) { + for (let child of node.nodes) { + output += stringify(child); + } + } + return output; + }; + + return stringify(ast); +}; + diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/utils.js b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/utils.js new file mode 100644 index 000000000..e3551a674 --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/lib/utils.js @@ -0,0 +1,112 @@ +'use strict'; + +exports.isInteger = num => { + if (typeof num === 'number') { + return Number.isInteger(num); + } + if (typeof num === 'string' && num.trim() !== '') { + return Number.isInteger(Number(num)); + } + return false; +}; + +/** + * Find a node of the given type + */ + +exports.find = (node, type) => node.nodes.find(node => node.type === type); + +/** + * Find a node of the given type + */ + +exports.exceedsLimit = (min, max, step = 1, limit) => { + if (limit === false) return false; + if (!exports.isInteger(min) || !exports.isInteger(max)) return false; + return ((Number(max) - Number(min)) / Number(step)) >= limit; +}; + +/** + * Escape the given node with '\\' before node.value + */ + +exports.escapeNode = (block, n = 0, type) => { + let node = block.nodes[n]; + if (!node) return; + + if ((type && node.type === type) || node.type === 'open' || node.type === 'close') { + if (node.escaped !== true) { + node.value = '\\' + node.value; + node.escaped = true; + } + } +}; + +/** + * Returns true if the given brace node should be enclosed in literal braces + */ + +exports.encloseBrace = node => { + if (node.type !== 'brace') return false; + if ((node.commas >> 0 + node.ranges >> 0) === 0) { + node.invalid = true; + return true; + } + return false; +}; + +/** + * Returns true if a brace node is invalid. + */ + +exports.isInvalidBrace = block => { + if (block.type !== 'brace') return false; + if (block.invalid === true || block.dollar) return true; + if ((block.commas >> 0 + block.ranges >> 0) === 0) { + block.invalid = true; + return true; + } + if (block.open !== true || block.close !== true) { + block.invalid = true; + return true; + } + return false; +}; + +/** + * Returns true if a node is an open or close node + */ + +exports.isOpenOrClose = node => { + if (node.type === 'open' || node.type === 'close') { + return true; + } + return node.open === true || node.close === true; +}; + +/** + * Reduce an array of text nodes. + */ + +exports.reduce = nodes => nodes.reduce((acc, node) => { + if (node.type === 'text') acc.push(node.value); + if (node.type === 'range') node.type = 'text'; + return acc; +}, []); + +/** + * Flatten an array + */ + +exports.flatten = (...args) => { + const result = []; + const flat = arr => { + for (let i = 0; i < arr.length; i++) { + let ele = arr[i]; + Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele); + } + return result; + }; + flat(args); + return result; +}; diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/braces/package.json b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/package.json new file mode 100644 index 000000000..3f52e346f --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/braces/package.json @@ -0,0 +1,77 @@ +{ + "name": "braces", + "description": "Bash-like brace expansion, implemented in JavaScript. Safer than other brace expansion libs, with complete support for the Bash 4.3 braces specification, without sacrificing speed.", + "version": "3.0.2", + "homepage": "https://github.com/micromatch/braces", + "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "Brian Woodward (https://twitter.com/doowb)", + "Elan Shanker (https://github.com/es128)", + "Eugene Sharygin (https://github.com/eush77)", + "hemanth.hm (http://h3manth.com)", + "Jon Schlinkert (http://twitter.com/jonschlinkert)" + ], + "repository": "micromatch/braces", + "bugs": { + "url": "https://github.com/micromatch/braces/issues" + }, + "license": "MIT", + "files": [ + "index.js", + "lib" + ], + "main": "index.js", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "mocha", + "benchmark": "node benchmark" + }, + "dependencies": { + "fill-range": "^7.0.1" + }, + "devDependencies": { + "ansi-colors": "^3.2.4", + "bash-path": "^2.0.1", + "gulp-format-md": "^2.0.0", + "mocha": "^6.1.1" + }, + "keywords": [ + "alpha", + "alphabetical", + "bash", + "brace", + "braces", + "expand", + "expansion", + "filepath", + "fill", + "fs", + "glob", + "globbing", + "letter", + "match", + "matches", + "matching", + "number", + "numerical", + "path", + "range", + "ranges", + "sh" + ], + "verb": { + "toc": false, + "layout": "default", + "tasks": [ + "readme" + ], + "lint": { + "reflinks": true + }, + "plugins": [ + "gulp-format-md" + ] + } +} diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/CHANGELOG.md b/node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/CHANGELOG.md new file mode 100644 index 000000000..588198708 --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/CHANGELOG.md @@ -0,0 +1,418 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# [3.1.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.8...conventional-commits-parser@3.1.0) (2020-05-08) + + +### Bug Fixes + +* **deps:** update yargs-parser to move off a flagged-vulnerable version. ([#635](https://github.com/conventional-changelog/conventional-changelog/issues/635)) ([aafc0f0](https://github.com/conventional-changelog/conventional-changelog/commit/aafc0f00412c3e4b23b8418300e5a570a48fe24d)) + + +### Features + +* **conventional-commits-parser:** add issuePrefixesCaseSensitive parser option ([#580](https://github.com/conventional-changelog/conventional-changelog/issues/580)) ([526b282](https://github.com/conventional-changelog/conventional-changelog/commit/526b28214d12c55158eb2e4d44408378587ceb97)) +* support slash in headerPattern default options ([93a547d](https://github.com/conventional-changelog/conventional-changelog/commit/93a547d742634d8676f499cfa2a274bc3792d020)) + + + + + +## [3.0.8](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.7...conventional-commits-parser@3.0.8) (2019-11-14) + + +### Bug Fixes + +* add types for cli flags ([#551](https://github.com/conventional-changelog/conventional-changelog/issues/551)) ([bf1d64a](https://github.com/conventional-changelog/conventional-changelog/commit/bf1d64aeaf8f262d4b2beec02d2aebb78df7343b)) + + + + + +## [3.0.7](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.6...conventional-commits-parser@3.0.7) (2019-11-07) + + +### Bug Fixes + +* **conventional-commits-parser:** add breaking change notes if header match `breakingHeaderPattern` ([#544](https://github.com/conventional-changelog/conventional-changelog/issues/544)) ([efdf3cb](https://github.com/conventional-changelog/conventional-changelog/commit/efdf3cbc9de3278b180a48beebb74e596e3c5f94)) +* **conventional-commits-parser:** add missing separator pipe to non tty parser ([#546](https://github.com/conventional-changelog/conventional-changelog/issues/546)) ([c522743](https://github.com/conventional-changelog/conventional-changelog/commit/c5227437b0b300f30a57e8ba5df2a8ab8d163af0)) + + + + + +## [3.0.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.5...conventional-commits-parser@3.0.6) (2019-10-24) + + +### Bug Fixes + +* **conventional-commits-parser:** downgrade is-text-path due to node 6 incompatibility ([#536](https://github.com/conventional-changelog/conventional-changelog/issues/536)) ([3aa2637](https://github.com/conventional-changelog/conventional-changelog/commit/3aa2637a1c65bb4db3d8bf2c6ce17e6f5abe1ca1)) +* **deps:** update lodash to fix security issues ([#535](https://github.com/conventional-changelog/conventional-changelog/issues/535)) ([ac43f51](https://github.com/conventional-changelog/conventional-changelog/commit/ac43f51de1f3b597c32f7f8442917a2d06199018)) + + + + + +## [3.0.4](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.3...conventional-commits-parser@3.0.4) (2019-10-02) + +**Note:** Version bump only for package conventional-commits-parser + + + + + +## [3.0.3](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.2...conventional-commits-parser@3.0.3) (2019-05-18) + + +### Bug Fixes + +* **deps:** update dependency is-text-path to v2 ([#455](https://github.com/conventional-changelog/conventional-changelog/issues/455)) ([0f40ec3](https://github.com/conventional-changelog/conventional-changelog/commit/0f40ec3)) + + + + + +## [3.0.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.1...conventional-commits-parser@3.0.2) (2019-04-10) + + +### Bug Fixes + +* **deps:** update dependency through2 to v3 ([#392](https://github.com/conventional-changelog/conventional-changelog/issues/392)) ([26fe91f](https://github.com/conventional-changelog/conventional-changelog/commit/26fe91f)) + + + + + +## [3.0.1](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@3.0.0...conventional-commits-parser@3.0.1) (2018-11-01) + + +### Bug Fixes + +* Upgrade to Lerna 3, fix Node.js v11 error ([#385](https://github.com/conventional-changelog/conventional-changelog/issues/385)) ([cdef282](https://github.com/conventional-changelog/conventional-changelog/commit/cdef282)) + + + + + + +# [3.0.0](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@2.1.7...conventional-commits-parser@3.0.0) (2018-05-29) + + +### Chores + +* **package:** set Node requirement to oldest supported LTS ([#329](https://github.com/conventional-changelog/conventional-changelog/issues/329)) ([cae2fe0](https://github.com/conventional-changelog/conventional-changelog/commit/cae2fe0)) + + +### BREAKING CHANGES + +* **package:** Set the package's minimum required Node version to be the oldest LTS +currently supported by the Node Release working group. At this time, +that is Node 6 (which is in its Maintenance LTS phase). + + + + + +## [2.1.7](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@2.1.6...conventional-commits-parser@2.1.7) (2018-03-27) + + + + +**Note:** Version bump only for package conventional-commits-parser + + +## [2.1.6](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@2.1.5...conventional-commits-parser@2.1.6) (2018-03-22) + + + + +**Note:** Version bump only for package conventional-commits-parser + + +## [2.1.5](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@2.1.4...conventional-commits-parser@2.1.5) (2018-02-24) + + + + +**Note:** Version bump only for package conventional-commits-parser + + +## [2.1.4](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-commits-parser@2.1.3...conventional-commits-parser@2.1.4) (2018-02-20) + + + + +**Note:** Version bump only for package conventional-commits-parser + + +## [2.1.3](https://github.com/conventional-changelog/conventional-commits-parser/compare/conventional-commits-parser@2.1.2...conventional-commits-parser@2.1.3) (2018-02-13) + + + + +**Note:** Version bump only for package conventional-commits-parser + + +## [2.1.2](https://github.com/conventional-changelog/conventional-commits-parser/compare/conventional-commits-parser@2.1.1...conventional-commits-parser@2.1.2) (2018-02-13) + + + + +**Note:** Version bump only for package conventional-commits-parser + + +## [2.1.1](https://github.com/conventional-changelog/conventional-commits-parser/compare/conventional-commits-parser@2.1.0...conventional-commits-parser@2.1.1) (2018-02-05) + + +### Bug Fixes + +* truncate after scissors line ([#267](https://github.com/conventional-changelog/conventional-commits-parser/issues/267)) ([e09df10](https://github.com/conventional-changelog/conventional-commits-parser/commit/e09df10)) + + + + + +# [2.1.0](https://github.com/conventional-changelog/conventional-commits-parser/compare/conventional-commits-parser@2.0.1...conventional-commits-parser@2.1.0) (2017-12-08) + + +### Bug Fixes + +* always parse references ([e84a9ae](https://github.com/conventional-changelog/conventional-commits-parser/commit/e84a9ae)), closes [#248](https://github.com/conventional-changelog/conventional-commits-parser/issues/248) + + +### Features + +* make comment stripping optional ([db5b711](https://github.com/conventional-changelog/conventional-commits-parser/commit/db5b711)), closes [#251](https://github.com/conventional-changelog/conventional-commits-parser/issues/251) + + + + + +## [2.0.1](https://github.com/conventional-changelog/conventional-commits-parser/compare/conventional-commits-parser@2.0.0...conventional-commits-parser@2.0.1) (2017-11-13) + + +### Bug Fixes + +* **conventional-commits-parser:** ignore comments ([#231](https://github.com/conventional-changelog/conventional-commits-parser/issues/231)) ([9db53e3](https://github.com/conventional-changelog/conventional-commits-parser/commit/9db53e3)), closes [#224](https://github.com/conventional-changelog/conventional-commits-parser/issues/224) + + + + + +# 2.0.0 (2017-07-17) + + +### Bug Fixes + +* **cli:** commit can be split when testing a commit file ([f3b3a3f](https://github.com/conventional-changelog/conventional-commits-parser/commit/f3b3a3f)) +* **cli:** error handling for ENOENT is fixed ([3c92233](https://github.com/conventional-changelog/conventional-commits-parser/commit/3c92233)) +* **cli:** fix "undefined" in json string ([0680e42](https://github.com/conventional-changelog/conventional-commits-parser/commit/0680e42)) +* **cli:** options format ([491357e](https://github.com/conventional-changelog/conventional-commits-parser/commit/491357e)) +* **deps:** require split2 ([1941c37](https://github.com/conventional-changelog/conventional-commits-parser/commit/1941c37)) +* **error:** change error type and wordings ([d8be5e5](https://github.com/conventional-changelog/conventional-commits-parser/commit/d8be5e5)) +* **footer:** notes contains more than one paragraphs after references ([d744ec7](https://github.com/conventional-changelog/conventional-commits-parser/commit/d744ec7)) +* **headerCorrespondence:** string value for cli ([fb774fc](https://github.com/conventional-changelog/conventional-commits-parser/commit/fb774fc)) +* **headerPattern:** change how capturing groups works ([fe1fe0c](https://github.com/conventional-changelog/conventional-commits-parser/commit/fe1fe0c)) +* **issuePrefixes:** should return noMatch if falsy ([72db2bf](https://github.com/conventional-changelog/conventional-commits-parser/commit/72db2bf)) +* **mention:** fix mention matching ([965986b](https://github.com/conventional-changelog/conventional-commits-parser/commit/965986b)), closes [#26](https://github.com/conventional-changelog/conventional-commits-parser/issues/26) +* **newlines:** preserve newlines in a part ([06b8c7c](https://github.com/conventional-changelog/conventional-commits-parser/commit/06b8c7c)), closes [#15](https://github.com/conventional-changelog/conventional-commits-parser/issues/15) +* **notes:** note keywords must appear at the beginning of a sentence ([5a2059e](https://github.com/conventional-changelog/conventional-commits-parser/commit/5a2059e)), closes [#23](https://github.com/conventional-changelog/conventional-commits-parser/issues/23) +* **parser:** do not trim spaces but newlines ([1e8c4c5](https://github.com/conventional-changelog/conventional-commits-parser/commit/1e8c4c5)) +* **parser:** it returns null if there is no header ([8571c9e](https://github.com/conventional-changelog/conventional-commits-parser/commit/8571c9e)) +* **regex:** do not treat it as note if there are texts after keywords ([571b03e](https://github.com/conventional-changelog/conventional-commits-parser/commit/571b03e)) +* **regex:** make getReferencePartsRegex stricter ([62adf54](https://github.com/conventional-changelog/conventional-commits-parser/commit/62adf54)), closes [#27](https://github.com/conventional-changelog/conventional-commits-parser/issues/27) [#30](https://github.com/conventional-changelog/conventional-commits-parser/issues/30) [#27](https://github.com/conventional-changelog/conventional-commits-parser/issues/27) [#28](https://github.com/conventional-changelog/conventional-commits-parser/issues/28) +* **revertPattern:** correct regex ([8628983](https://github.com/conventional-changelog/conventional-commits-parser/commit/8628983)) +* **util:** remove an accidentally commited file ([3710a8c](https://github.com/conventional-changelog/conventional-commits-parser/commit/3710a8c)) +* **warn:** should tell which commit cannot be parsed ([04b0a9b](https://github.com/conventional-changelog/conventional-commits-parser/commit/04b0a9b)) + + +### Chores + +* init ([a529841](https://github.com/conventional-changelog/conventional-commits-parser/commit/a529841)) + + +### Code Refactoring + +* **breaks:** change `breaks` to `notes` ([5189a61](https://github.com/conventional-changelog/conventional-commits-parser/commit/5189a61)), closes [#2](https://github.com/conventional-changelog/conventional-commits-parser/issues/2) +* **merge:** pull-request should be merge ([4e7c61c](https://github.com/conventional-changelog/conventional-commits-parser/commit/4e7c61c)) +* **regex:** regex now takes `options` ([eea319a](https://github.com/conventional-changelog/conventional-commits-parser/commit/eea319a)) + + +### Features + +* **cli:** able to have two files, separator works for interactive ([db1e3b5](https://github.com/conventional-changelog/conventional-commits-parser/commit/db1e3b5)) +* **cli:** add aliases, more help details and tests ([eb654a2](https://github.com/conventional-changelog/conventional-commits-parser/commit/eb654a2)) +* **cli:** add missing options ([8ac1cf7](https://github.com/conventional-changelog/conventional-commits-parser/commit/8ac1cf7)) +* **cli:** add warn function for interactive shell ([84fe31f](https://github.com/conventional-changelog/conventional-commits-parser/commit/84fe31f)) +* **correspondence:** add `headerCorrespondence` and improve commit parts ([aca9e95](https://github.com/conventional-changelog/conventional-commits-parser/commit/aca9e95)), closes [#6](https://github.com/conventional-changelog/conventional-commits-parser/issues/6) +* **fieldPattern:** should support string format ([b6b6b52](https://github.com/conventional-changelog/conventional-commits-parser/commit/b6b6b52)) +* **hash:** drop support ([1ccc751](https://github.com/conventional-changelog/conventional-commits-parser/commit/1ccc751)) +* **headerParts:** headerParts can be anything ([31e1c11](https://github.com/conventional-changelog/conventional-commits-parser/commit/31e1c11)), closes [#10](https://github.com/conventional-changelog/conventional-commits-parser/issues/10) +* **issuePrefixes:** init and referenceKeywords -> referenceActions ([86bf798](https://github.com/conventional-changelog/conventional-commits-parser/commit/86bf798)), closes [#11](https://github.com/conventional-changelog/conventional-commits-parser/issues/11) +* **maxSubjectLength:** removed ([3448582](https://github.com/conventional-changelog/conventional-commits-parser/commit/3448582)) +* **mentions:** [@someone](https://github.com/someone) in commit ([d60fe76](https://github.com/conventional-changelog/conventional-commits-parser/commit/d60fe76)), closes [#24](https://github.com/conventional-changelog/conventional-commits-parser/issues/24) +* **newline:** fields does not contain leading or trailing newlines ([6db453b](https://github.com/conventional-changelog/conventional-commits-parser/commit/6db453b)), closes [#14](https://github.com/conventional-changelog/conventional-commits-parser/issues/14) +* **note:** noteKeywords is case insensitive ([f779a29](https://github.com/conventional-changelog/conventional-commits-parser/commit/f779a29)), closes [#21](https://github.com/conventional-changelog/conventional-commits-parser/issues/21) +* **options:** all options can be a string ([0fa17b4](https://github.com/conventional-changelog/conventional-commits-parser/commit/0fa17b4)) +* **otherFields:** other fields are possible to be included ([9e06278](https://github.com/conventional-changelog/conventional-commits-parser/commit/9e06278)) +* improvements and bug fixes ([1cde104](https://github.com/conventional-changelog/conventional-commits-parser/commit/1cde104)), closes [#5](https://github.com/conventional-changelog/conventional-commits-parser/issues/5) +* migrate repo to lerna mono-repo ([793e823](https://github.com/conventional-changelog/conventional-commits-parser/commit/793e823)) +* **regex:** matching JIRA-123 like references ([20f1f7a](https://github.com/conventional-changelog/conventional-commits-parser/commit/20f1f7a)), closes [#19](https://github.com/conventional-changelog/conventional-commits-parser/issues/19) +* support squash commits ([#31](https://github.com/conventional-changelog/conventional-changelog/issues/31)) ([fff60c0](https://github.com/conventional-changelog/conventional-commits-parser/commit/fff60c0)) +* **owner:** yield owner field ([d8d0334](https://github.com/conventional-changelog/conventional-commits-parser/commit/d8d0334)), closes [#12](https://github.com/conventional-changelog/conventional-commits-parser/issues/12) +* **parser:** notes can have more than one paragraph ([733bfa9](https://github.com/conventional-changelog/conventional-commits-parser/commit/733bfa9)), closes [#3](https://github.com/conventional-changelog/conventional-commits-parser/issues/3) +* **pullRequest:** Allow to skip and parse pull request header ([a2e929f](https://github.com/conventional-changelog/conventional-commits-parser/commit/a2e929f)), closes [#20](https://github.com/conventional-changelog/conventional-commits-parser/issues/20) +* **reference:** able to reference an issue without an action ([6474123](https://github.com/conventional-changelog/conventional-commits-parser/commit/6474123)), closes [#22](https://github.com/conventional-changelog/conventional-commits-parser/issues/22) +* **reference:** expose prefix ([47df766](https://github.com/conventional-changelog/conventional-commits-parser/commit/47df766)), closes [#17](https://github.com/conventional-changelog/conventional-commits-parser/issues/17) +* **references:** allow header to reference an issue ([df18a24](https://github.com/conventional-changelog/conventional-commits-parser/commit/df18a24)) +* **references:** support other formats of references ([7c70213](https://github.com/conventional-changelog/conventional-commits-parser/commit/7c70213)), closes [#4](https://github.com/conventional-changelog/conventional-commits-parser/issues/4) [#8](https://github.com/conventional-changelog/conventional-commits-parser/issues/8) +* **regex:** leading and trailing space for closes and breaks keywords are trimmed ([9639860](https://github.com/conventional-changelog/conventional-commits-parser/commit/9639860)) +* **revert:** parse a commit that reverts ([2af7233](https://github.com/conventional-changelog/conventional-commits-parser/commit/2af7233)) +* **stream:** emmit an empty string to down stream if commit cannot be parsed ([76bf84e](https://github.com/conventional-changelog/conventional-commits-parser/commit/76bf84e)) +* **sync:** add the sync function ([82071c6](https://github.com/conventional-changelog/conventional-commits-parser/commit/82071c6)), closes [#13](https://github.com/conventional-changelog/conventional-commits-parser/issues/13) +* **warn:** optionally warn user what is wrong when commit cannot be parsed ([32b3cda](https://github.com/conventional-changelog/conventional-commits-parser/commit/32b3cda)) + + +### Performance Improvements + +* **regex:** regex should be constructed in index.html ([15afd26](https://github.com/conventional-changelog/conventional-commits-parser/commit/15afd26)) + + +### BREAKING CHANGES + +* **merge:** `pull request` should be `merge`. Also make the parsed result to be consistent with other parts. +* This module is imported from https://github.com/ajoslin/conventional-changelog, and is originally written by @vojtajina, @btford and @ajoslin. +* **hash:** hash is no longer supported. This parser should just parse raw commit messages. Also text fields are appended with a newline " +". +* **regex:** It returns a nomatch regex if it's keywords are missing. +* **headerParts:** `headerParts` does not limit to `type`, `scope` and `subject`. They can now be defined in `options.headerCorrespondence` and the order is the order of capturing group in `options.headerPattern`. If part is missing in `options.headerCorrespondence` it is `undefined`. If part is not captured but is not missing in `options.headerCorrespondence` it is `null`. +* **maxSubjectLength:** `maxSubjectLength` is not available any more. +* **issuePrefixes:** `options.referenceKeywords` is now `options.referenceActions` +* **references:** `closes` now becomes `references` and it is loosely based the links above. +* **parser:** The regex for matching notes are loosen. The semicolon and space are optional. The `notes` object is no longer a key-value object but an array of note object, such as +```js +{ +title: 'BREAKING AMEND', +text: 'some breaking change' +} +``` +The detection of notes, closes, continueNote and isBody are mutually exclusive. +* **breaks:** Variable name related to `breaks` changes to `notes`, because "Important Notes" a more generic term. There is no functional changes. +* **stream:** It no longer skips the chunk if commit cannot be parsed. An empty string is passed to down stream +* **correspondence:** body and footer will be null if they are not found. type and subject are nullable too. + + +# [1.3.0](https://github.com/conventional-changelog/conventional-commits-parser/compare/v1.2.3...v1.3.0) (2016-10-15) + + +### Features + +* support squash commits (#31) ([860c7a1](https://github.com/conventional-changelog/conventional-commits-parser/commit/860c7a1)) + + + + +## [1.2.3](https://github.com/conventional-changelog/conventional-commits-parser/compare/v1.2.2...v1.2.3) (2016-08-06) + + +### Bug Fixes + +* **regex:** do not treat it as note if there are texts after keywords ([9cb56bc](https://github.com/conventional-changelog/conventional-commits-parser/commit/9cb56bc)) + + + + +## [1.2.2](https://github.com/conventional-changelog/conventional-commits-parser/compare/v1.2.1...v1.2.2) (2016-05-04) + + +### Bug Fixes + +* **regex:** make getReferencePartsRegex stricter ([b8a9fda](https://github.com/conventional-changelog/conventional-commits-parser/commit/b8a9fda)), closes [#27](https://github.com/conventional-changelog/conventional-commits-parser/issues/27) [(#30](https://github.com/(/issues/30) [#27](https://github.com/conventional-changelog/conventional-commits-parser/issues/27) [#28](https://github.com/conventional-changelog/conventional-commits-parser/issues/28) + + + + +## [1.2.1](https://github.com/conventional-changelog/conventional-commits-parser/compare/v1.2.0...v1.2.1) (2016-04-24) + + +### Bug Fixes + +* **mention:** fix mention matching ([43b32e7](https://github.com/conventional-changelog/conventional-commits-parser/commit/43b32e7)), closes [#26](https://github.com/conventional-changelog/conventional-commits-parser/issues/26) + + + + +# [1.2.0](https://github.com/conventional-changelog/conventional-commits-parser/compare/v1.1.0...v1.2.0) (2016-04-15) + + +### Features + +* **mentions:** @someone in commit ([b2eabbf](https://github.com/conventional-changelog/conventional-commits-parser/commit/b2eabbf)), closes [#24](https://github.com/conventional-changelog/conventional-commits-parser/issues/24) + + + + +# [1.1.0](https://github.com/conventional-changelog/conventional-commits-parser/compare/v1.0.1...v1.1.0) (2016-04-10) + + +### Bug Fixes + +* **notes:** note keywords must appear at the beginning of a sentence ([6e13789](https://github.com/conventional-changelog/conventional-commits-parser/commit/6e13789)), closes [#23](https://github.com/conventional-changelog/conventional-commits-parser/issues/23) + +### Features + +* **reference:** able to reference an issue without an action ([cf847b1](https://github.com/conventional-changelog/conventional-commits-parser/commit/cf847b1)), closes [#22](https://github.com/conventional-changelog/conventional-commits-parser/issues/22) + + + + +## [1.0.1](https://github.com/stevemao/conventional-commits-parser/compare/v1.0.0...v1.0.1) (2016-02-05) + + +### Bug Fixes + +* **deps:** require split2 ([ad55810](https://github.com/stevemao/conventional-commits-parser/commit/ad55810)) + + + + +# [1.0.0](https://github.com/stevemao/conventional-commits-parser/compare/v0.2.0...v1.0.0) (2016-02-05) + + + + + +# [0.2.0](https://github.com/stevemao/conventional-commits-parser/compare/v0.1.2...v0.2.0) (2016-02-04) + + +### Features + +* **note:** noteKeywords is case insensitive ([4442b86](https://github.com/stevemao/conventional-commits-parser/commit/4442b86)), closes [#21](https://github.com/stevemao/conventional-commits-parser/issues/21) +* **pullRequest:** Allow to skip and parse pull request header ([aa85033](https://github.com/stevemao/conventional-commits-parser/commit/aa85033)), closes [#20](https://github.com/stevemao/conventional-commits-parser/issues/20) +* **regex:** matching JIRA-123 like references ([5342f45](https://github.com/stevemao/conventional-commits-parser/commit/5342f45)), closes [#19](https://github.com/stevemao/conventional-commits-parser/issues/19) + + + + +## [0.1.2](https://github.com/stevemao/conventional-commits-parser/compare/v0.1.1...v0.1.2) (2015-09-18) + + +### Bug Fixes + +* **parser:** do not trim spaces but newlines ([62e7bf5](https://github.com/stevemao/conventional-commits-parser/commit/62e7bf5)) + + + + +## [0.1.1](https://github.com/stevemao/conventional-commits-parser/compare/v0.1.0...v0.1.1) (2015-09-12) + + +### Bug Fixes + +* **newlines:** preserve newlines in a part ([beb3d05](https://github.com/stevemao/conventional-commits-parser/commit/beb3d05)), closes [#15](https://github.com/stevemao/conventional-commits-parser/issues/15) + +### Features + +* **reference:** expose prefix ([9962dda](https://github.com/stevemao/conventional-commits-parser/commit/9962dda)), closes [#17](https://github.com/stevemao/conventional-commits-parser/issues/17) diff --git a/node_modules/btoa-lite/LICENSE.md b/node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/LICENSE.md similarity index 50% rename from node_modules/btoa-lite/LICENSE.md rename to node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/LICENSE.md index ee27ba4b4..97b4ed538 100644 --- a/node_modules/btoa-lite/LICENSE.md +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/LICENSE.md @@ -1,18 +1,21 @@ -This software is released under the MIT license: +### MIT License + +Copyright © [conventional-changelog team](https://github.com/conventional-changelog) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/README.md b/node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/README.md new file mode 100644 index 000000000..b0ae9df7d --- /dev/null +++ b/node_modules/@semantic-release/commit-analyzer/node_modules/conventional-commits-parser/README.md @@ -0,0 +1,376 @@ +# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url] + +> Parse raw conventional commits + + +## Conventional Commit Message Format + +A minimum input should contain a raw message. + +Each commit message consists of a **merge header**, a **header** (mandatory), a **body** and a **footer**. **Mention** (optional) someone using the `@` notation. + +``` + +
+ +